diff -Nru roger-router-1.8.14/aclocal.m4 roger-router-2.1.6/aclocal.m4 --- roger-router-1.8.14/aclocal.m4 2015-12-10 21:33:41.000000000 +0000 +++ roger-router-2.1.6/aclocal.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,1926 +0,0 @@ -# generated automatically by aclocal 1.15 -*- Autoconf -*- - -# Copyright (C) 1996-2014 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.69],, -[m4_warning([this file was generated for autoconf 2.69. -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) 1995-2002 Free Software Foundation, Inc. -# Copyright (C) 2001-2003,2004 Red Hat, Inc. -# -# This file is free software, distributed under the terms of the GNU -# General Public License. As a special exception to the GNU General -# Public License, this file may be distributed as part of a program -# that contains a configuration script generated by Autoconf, under -# the same distribution terms as the rest of that program. -# -# This file can be copied and used freely without restrictions. It can -# be used in projects which are not available under the GNU Public License -# but which still want to provide support for the GNU gettext functionality. -# -# Macro to add for using GNU gettext. -# Ulrich Drepper , 1995, 1996 -# -# Modified to never use included libintl. -# Owen Taylor , 12/15/1998 -# -# Major rework to remove unused code -# Owen Taylor , 12/11/2002 -# -# Added better handling of ALL_LINGUAS from GNU gettext version -# written by Bruno Haible, Owen Taylor 5/30/3002 -# -# Modified to require ngettext -# Matthias Clasen 08/06/2004 -# -# We need this here as well, since someone might use autoconf-2.5x -# to configure GLib then an older version to configure a package -# using AM_GLIB_GNU_GETTEXT -AC_PREREQ(2.53) - -dnl -dnl We go to great lengths to make sure that aclocal won't -dnl try to pull in the installed version of these macros -dnl when running aclocal in the glib directory. -dnl -m4_copy([AC_DEFUN],[glib_DEFUN]) -m4_copy([AC_REQUIRE],[glib_REQUIRE]) -dnl -dnl At the end, if we're not within glib, we'll define the public -dnl definitions in terms of our private definitions. -dnl - -# GLIB_LC_MESSAGES -#-------------------- -glib_DEFUN([GLIB_LC_MESSAGES], - [AC_CHECK_HEADERS([locale.h]) - if test $ac_cv_header_locale_h = yes; then - AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, - [AC_TRY_LINK([#include ], [return LC_MESSAGES], - am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) - if test $am_cv_val_LC_MESSAGES = yes; then - AC_DEFINE(HAVE_LC_MESSAGES, 1, - [Define if your file defines LC_MESSAGES.]) - fi - fi]) - -# GLIB_PATH_PROG_WITH_TEST -#---------------------------- -dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, -dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) -glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], -[# Extract the first word of "$2", so it can be a program name with args. -set dummy $2; ac_word=[$]2 -AC_MSG_CHECKING([for $ac_word]) -AC_CACHE_VAL(ac_cv_path_$1, -[case "[$]$1" in - /*) - ac_cv_path_$1="[$]$1" # Let the user override the test with a path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in ifelse([$5], , $PATH, [$5]); do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if [$3]; then - ac_cv_path_$1="$ac_dir/$ac_word" - break - fi - fi - done - IFS="$ac_save_ifs" -dnl If no 4th arg is given, leave the cache variable unset, -dnl so AC_PATH_PROGS will keep looking. -ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" -])dnl - ;; -esac])dnl -$1="$ac_cv_path_$1" -if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then - AC_MSG_RESULT([$]$1) -else - AC_MSG_RESULT(no) -fi -AC_SUBST($1)dnl -]) - -# GLIB_WITH_NLS -#----------------- -glib_DEFUN([GLIB_WITH_NLS], - dnl NLS is obligatory - [USE_NLS=yes - AC_SUBST(USE_NLS) - - gt_cv_have_gettext=no - - CATOBJEXT=NONE - XGETTEXT=: - INTLLIBS= - - AC_CHECK_HEADER(libintl.h, - [gt_cv_func_dgettext_libintl="no" - libintl_extra_libs="" - - # - # First check in libc - # - AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, - [AC_TRY_LINK([ -#include -], - [return !ngettext ("","", 1)], - gt_cv_func_ngettext_libc=yes, - gt_cv_func_ngettext_libc=no) - ]) - - if test "$gt_cv_func_ngettext_libc" = "yes" ; then - AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, - [AC_TRY_LINK([ -#include -], - [return !dgettext ("","")], - gt_cv_func_dgettext_libc=yes, - gt_cv_func_dgettext_libc=no) - ]) - fi - - if test "$gt_cv_func_ngettext_libc" = "yes" ; then - AC_CHECK_FUNCS(bind_textdomain_codeset) - fi - - # - # If we don't have everything we want, check in libintl - # - if test "$gt_cv_func_dgettext_libc" != "yes" \ - || test "$gt_cv_func_ngettext_libc" != "yes" \ - || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then - - AC_CHECK_LIB(intl, bindtextdomain, - [AC_CHECK_LIB(intl, ngettext, - [AC_CHECK_LIB(intl, dgettext, - gt_cv_func_dgettext_libintl=yes)])]) - - if test "$gt_cv_func_dgettext_libintl" != "yes" ; then - AC_MSG_CHECKING([if -liconv is needed to use gettext]) - AC_MSG_RESULT([]) - AC_CHECK_LIB(intl, ngettext, - [AC_CHECK_LIB(intl, dcgettext, - [gt_cv_func_dgettext_libintl=yes - libintl_extra_libs=-liconv], - :,-liconv)], - :,-liconv) - fi - - # - # If we found libintl, then check in it for bind_textdomain_codeset(); - # we'll prefer libc if neither have bind_textdomain_codeset(), - # and both have dgettext and ngettext - # - if test "$gt_cv_func_dgettext_libintl" = "yes" ; then - glib_save_LIBS="$LIBS" - LIBS="$LIBS -lintl $libintl_extra_libs" - unset ac_cv_func_bind_textdomain_codeset - AC_CHECK_FUNCS(bind_textdomain_codeset) - LIBS="$glib_save_LIBS" - - if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then - gt_cv_func_dgettext_libc=no - else - if test "$gt_cv_func_dgettext_libc" = "yes" \ - && test "$gt_cv_func_ngettext_libc" = "yes"; then - gt_cv_func_dgettext_libintl=no - fi - fi - fi - fi - - if test "$gt_cv_func_dgettext_libc" = "yes" \ - || test "$gt_cv_func_dgettext_libintl" = "yes"; then - gt_cv_have_gettext=yes - fi - - if test "$gt_cv_func_dgettext_libintl" = "yes"; then - INTLLIBS="-lintl $libintl_extra_libs" - fi - - if test "$gt_cv_have_gettext" = "yes"; then - AC_DEFINE(HAVE_GETTEXT,1, - [Define if the GNU gettext() function is already present or preinstalled.]) - GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, - [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl - if test "$MSGFMT" != "no"; then - glib_save_LIBS="$LIBS" - LIBS="$LIBS $INTLLIBS" - AC_CHECK_FUNCS(dcgettext) - MSGFMT_OPTS= - AC_MSG_CHECKING([if msgfmt accepts -c]) - GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ -msgid "" -msgstr "" -"Content-Type: text/plain; charset=UTF-8\n" -"Project-Id-Version: test 1.0\n" -"PO-Revision-Date: 2007-02-15 12:01+0100\n" -"Last-Translator: test \n" -"Language-Team: C \n" -"MIME-Version: 1.0\n" -"Content-Transfer-Encoding: 8bit\n" -], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) - AC_SUBST(MSGFMT_OPTS) - AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) - GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, - [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) - AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; - return _nl_msg_cat_cntr], - [CATOBJEXT=.gmo - DATADIRNAME=share], - [case $host in - *-*-solaris*) - dnl On Solaris, if bind_textdomain_codeset is in libc, - dnl GNU format message catalog is always supported, - dnl since both are added to the libc all together. - dnl Hence, we'd like to go with DATADIRNAME=share and - dnl and CATOBJEXT=.gmo in this case. - AC_CHECK_FUNC(bind_textdomain_codeset, - [CATOBJEXT=.gmo - DATADIRNAME=share], - [CATOBJEXT=.mo - DATADIRNAME=lib]) - ;; - *-*-openbsd*) - CATOBJEXT=.mo - DATADIRNAME=share - ;; - *) - CATOBJEXT=.mo - DATADIRNAME=lib - ;; - esac]) - LIBS="$glib_save_LIBS" - INSTOBJEXT=.mo - else - gt_cv_have_gettext=no - fi - fi - ]) - - if test "$gt_cv_have_gettext" = "yes" ; then - AC_DEFINE(ENABLE_NLS, 1, - [always defined to indicate that i18n is enabled]) - fi - - dnl Test whether we really found GNU xgettext. - if test "$XGETTEXT" != ":"; then - dnl If it is not GNU xgettext we define it as : so that the - dnl Makefiles still can work. - if $XGETTEXT --omit-header /dev/null 2> /dev/null; then - : ; - else - AC_MSG_RESULT( - [found xgettext program is not GNU xgettext; ignore it]) - XGETTEXT=":" - fi - fi - - # We need to process the po/ directory. - POSUB=po - - AC_OUTPUT_COMMANDS( - [case "$CONFIG_FILES" in *po/Makefile.in*) - sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile - esac]) - - dnl These rules are solely for the distribution goal. While doing this - dnl we only have to keep exactly one list of the available catalogs - dnl in configure.ac. - for lang in $ALL_LINGUAS; do - GMOFILES="$GMOFILES $lang.gmo" - POFILES="$POFILES $lang.po" - done - - dnl Make all variables we use known to autoconf. - AC_SUBST(CATALOGS) - AC_SUBST(CATOBJEXT) - AC_SUBST(DATADIRNAME) - AC_SUBST(GMOFILES) - AC_SUBST(INSTOBJEXT) - AC_SUBST(INTLLIBS) - AC_SUBST(PO_IN_DATADIR_TRUE) - AC_SUBST(PO_IN_DATADIR_FALSE) - AC_SUBST(POFILES) - AC_SUBST(POSUB) - ]) - -# AM_GLIB_GNU_GETTEXT -# ------------------- -# Do checks necessary for use of gettext. If a suitable implementation -# of gettext is found in either in libintl or in the C library, -# it will set INTLLIBS to the libraries needed for use of gettext -# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable -# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() -# on various variables needed by the Makefile.in.in installed by -# glib-gettextize. -dnl -glib_DEFUN([GLIB_GNU_GETTEXT], - [AC_REQUIRE([AC_PROG_CC])dnl - - GLIB_LC_MESSAGES - GLIB_WITH_NLS - - if test "$gt_cv_have_gettext" = "yes"; then - if test "x$ALL_LINGUAS" = "x"; then - LINGUAS= - else - AC_MSG_CHECKING(for catalogs to be installed) - NEW_LINGUAS= - for presentlang in $ALL_LINGUAS; do - useit=no - if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then - desiredlanguages="$LINGUAS" - else - desiredlanguages="$ALL_LINGUAS" - fi - for desiredlang in $desiredlanguages; do - # Use the presentlang catalog if desiredlang is - # a. equal to presentlang, or - # b. a variant of presentlang (because in this case, - # presentlang can be used as a fallback for messages - # which are not translated in the desiredlang catalog). - case "$desiredlang" in - "$presentlang"*) useit=yes;; - esac - done - if test $useit = yes; then - NEW_LINGUAS="$NEW_LINGUAS $presentlang" - fi - done - LINGUAS=$NEW_LINGUAS - AC_MSG_RESULT($LINGUAS) - fi - - dnl Construct list of names of catalog files to be constructed. - if test -n "$LINGUAS"; then - for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done - fi - fi - - dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly - dnl find the mkinstalldirs script in another subdir but ($top_srcdir). - dnl Try to locate is. - MKINSTALLDIRS= - if test -n "$ac_aux_dir"; then - MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" - fi - if test -z "$MKINSTALLDIRS"; then - MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" - fi - AC_SUBST(MKINSTALLDIRS) - - dnl Generate list of files to be processed by xgettext which will - dnl be included in po/Makefile. - test -d po || mkdir po - if test "x$srcdir" != "x."; then - if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then - posrcprefix="$srcdir/" - else - posrcprefix="../$srcdir/" - fi - else - posrcprefix="../" - fi - rm -f po/POTFILES - sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ - < $srcdir/po/POTFILES.in > po/POTFILES - ]) - -# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) -# ------------------------------- -# Define VARIABLE to the location where catalog files will -# be installed by po/Makefile. -glib_DEFUN([GLIB_DEFINE_LOCALEDIR], -[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl -glib_save_prefix="$prefix" -glib_save_exec_prefix="$exec_prefix" -glib_save_datarootdir="$datarootdir" -test "x$prefix" = xNONE && prefix=$ac_default_prefix -test "x$exec_prefix" = xNONE && exec_prefix=$prefix -datarootdir=`eval echo "${datarootdir}"` -if test "x$CATOBJEXT" = "x.mo" ; then - localedir=`eval echo "${libdir}/locale"` -else - localedir=`eval echo "${datadir}/locale"` -fi -prefix="$glib_save_prefix" -exec_prefix="$glib_save_exec_prefix" -datarootdir="$glib_save_datarootdir" -AC_DEFINE_UNQUOTED($1, "$localedir", - [Define the location where the catalogs will be installed]) -]) - -dnl -dnl Now the definitions that aclocal will find -dnl -ifdef(glib_configure_ac,[],[ -AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) -AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) -])dnl - -# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) -# -# Create a temporary file with TEST-FILE as its contents and pass the -# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with -# 0 and perform ACTION-IF-FAIL for any other exit status. -AC_DEFUN([GLIB_RUN_PROG], -[cat >conftest.foo <<_ACEOF -$2 -_ACEOF -if AC_RUN_LOG([$1 conftest.foo]); then - m4_ifval([$3], [$3], [:]) -m4_ifvaln([$4], [else $4])dnl -echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD -sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD -fi]) - - -dnl GLIB_GSETTINGS -dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether -dnl the schema should be compiled -dnl - -AC_DEFUN([GLIB_GSETTINGS], -[ - m4_pattern_allow([AM_V_GEN]) - AC_ARG_ENABLE(schemas-compile, - AS_HELP_STRING([--disable-schemas-compile], - [Disable regeneration of gschemas.compiled on install]), - [case ${enableval} in - yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;; - no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;; - *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;; - esac]) - AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE]) - PKG_PROG_PKG_CONFIG([0.16]) - AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas]) - if test x$cross_compiling != xyes; then - GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0` - else - AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas) - fi - AC_SUBST(GLIB_COMPILE_SCHEMAS) - if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then - ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2]) - else - ifelse([$1],,[:],[$1]) - fi - - GSETTINGS_RULES=' -.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas - -mostlyclean-am: clean-gsettings-schemas - -gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE)) - -%.gschema.valid: %.gschema.xml $(gsettings__enum_file) - $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p [$](@D) && touch [$]@ - -all-am: $(gsettings_SCHEMAS:.xml=.valid) -uninstall-am: uninstall-gsettings-schemas -install-data-am: install-gsettings-schemas - -.SECONDARY: $(gsettings_SCHEMAS) - -install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file) - @$(NORMAL_INSTALL) - if test -n "$^"; then \ - test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \ - $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \ - test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \ - fi - -uninstall-gsettings-schemas: - @$(NORMAL_UNINSTALL) - @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \ - test -n "$$files" || exit 0; \ - echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files - test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir) - -clean-gsettings-schemas: - rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file) - -ifdef gsettings_ENUM_NAMESPACE -$(gsettings__enum_file): $(gsettings_ENUM_FILES) - $(AM_V_GEN) glib-mkenums --comments '\'''\'' --fhead "" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " " --vtail " " --ftail "" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@ -endif -' - _GSETTINGS_SUBST(GSETTINGS_RULES) -]) - -dnl _GSETTINGS_SUBST(VARIABLE) -dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST -AC_DEFUN([_GSETTINGS_SUBST], -[ -AC_SUBST([$1]) -m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) -] -) - -# nls.m4 serial 5 (gettext-0.18) -dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014 Free Software Foundation, -dnl Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. -dnl -dnl This file can can be used in projects which are not available under -dnl the GNU General Public License or the GNU Library General Public -dnl License but which still want to provide support for the GNU gettext -dnl functionality. -dnl Please note that the actual code of the GNU gettext library is covered -dnl by the GNU Library General Public License, and the rest of the GNU -dnl gettext package package is covered by the GNU General Public License. -dnl They are *not* in the public domain. - -dnl Authors: -dnl Ulrich Drepper , 1995-2000. -dnl Bruno Haible , 2000-2003. - -AC_PREREQ([2.50]) - -AC_DEFUN([AM_NLS], -[ - AC_MSG_CHECKING([whether NLS is requested]) - dnl Default is enabled NLS - AC_ARG_ENABLE([nls], - [ --disable-nls do not use Native Language Support], - USE_NLS=$enableval, USE_NLS=yes) - AC_MSG_RESULT([$USE_NLS]) - AC_SUBST([USE_NLS]) -]) - -# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- -# serial 1 (pkg-config-0.24) -# -# Copyright © 2004 Scott James Remnant . -# -# 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 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, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -# 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. - -# PKG_PROG_PKG_CONFIG([MIN-VERSION]) -# ---------------------------------- -AC_DEFUN([PKG_PROG_PKG_CONFIG], -[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) -m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) -m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) -AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) -AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) -AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) - -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then - AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) -fi -if test -n "$PKG_CONFIG"; then - _pkg_min_version=m4_default([$1], [0.9.0]) - AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - PKG_CONFIG="" - fi -fi[]dnl -])# PKG_PROG_PKG_CONFIG - -# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) -# -# Check to see whether a particular set of modules exists. Similar -# to PKG_CHECK_MODULES(), but does not set variables or print errors. -# -# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) -# only at the first occurence in configure.ac, so if the first place -# it's called might be skipped (such as if it is within an "if", you -# have to call PKG_CHECK_EXISTS manually -# -------------------------------------------------------------- -AC_DEFUN([PKG_CHECK_EXISTS], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl -if test -n "$PKG_CONFIG" && \ - AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then - m4_default([$2], [:]) -m4_ifvaln([$3], [else - $3])dnl -fi]) - -# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) -# --------------------------------------------- -m4_define([_PKG_CONFIG], -[if test -n "$$1"; then - pkg_cv_[]$1="$$1" - elif test -n "$PKG_CONFIG"; then - PKG_CHECK_EXISTS([$3], - [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes ], - [pkg_failed=yes]) - else - pkg_failed=untried -fi[]dnl -])# _PKG_CONFIG - -# _PKG_SHORT_ERRORS_SUPPORTED -# ----------------------------- -AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi[]dnl -])# _PKG_SHORT_ERRORS_SUPPORTED - - -# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], -# [ACTION-IF-NOT-FOUND]) -# -# -# Note that if there is a possibility the first call to -# PKG_CHECK_MODULES might not happen, you should be sure to include an -# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac -# -# -# -------------------------------------------------------------- -AC_DEFUN([PKG_CHECK_MODULES], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl -AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl -AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl - -pkg_failed=no -AC_MSG_CHECKING([for $1]) - -_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) -_PKG_CONFIG([$1][_LIBS], [libs], [$2]) - -m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS -and $1[]_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details.]) - -if test $pkg_failed = yes; then - AC_MSG_RESULT([no]) - _PKG_SHORT_ERRORS_SUPPORTED - if test $_pkg_short_errors_supported = yes; then - $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` - else - $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD - - m4_default([$4], [AC_MSG_ERROR( -[Package requirements ($2) were not met: - -$$1_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -_PKG_TEXT])[]dnl - ]) -elif test $pkg_failed = untried; then - AC_MSG_RESULT([no]) - m4_default([$4], [AC_MSG_FAILURE( -[The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -_PKG_TEXT - -To get pkg-config, see .])[]dnl - ]) -else - $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS - $1[]_LIBS=$pkg_cv_[]$1[]_LIBS - AC_MSG_RESULT([yes]) - $3 -fi[]dnl -])# PKG_CHECK_MODULES - - -# PKG_INSTALLDIR(DIRECTORY) -# ------------------------- -# Substitutes the variable pkgconfigdir as the location where a module -# should install pkg-config .pc files. By default the directory is -# $libdir/pkgconfig, but the default can be changed by passing -# DIRECTORY. The user can override through the --with-pkgconfigdir -# parameter. -AC_DEFUN([PKG_INSTALLDIR], -[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) -m4_pushdef([pkg_description], - [pkg-config installation directory @<:@]pkg_default[@:>@]) -AC_ARG_WITH([pkgconfigdir], - [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, - [with_pkgconfigdir=]pkg_default) -AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) -m4_popdef([pkg_default]) -m4_popdef([pkg_description]) -]) dnl PKG_INSTALLDIR - - -# PKG_NOARCH_INSTALLDIR(DIRECTORY) -# ------------------------- -# Substitutes the variable noarch_pkgconfigdir as the location where a -# module should install arch-independent pkg-config .pc files. By -# default the directory is $datadir/pkgconfig, but the default can be -# changed by passing DIRECTORY. The user can override through the -# --with-noarch-pkgconfigdir parameter. -AC_DEFUN([PKG_NOARCH_INSTALLDIR], -[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) -m4_pushdef([pkg_description], - [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) -AC_ARG_WITH([noarch-pkgconfigdir], - [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, - [with_noarch_pkgconfigdir=]pkg_default) -AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) -m4_popdef([pkg_default]) -m4_popdef([pkg_description]) -]) dnl PKG_NOARCH_INSTALLDIR - - -# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, -# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) -# ------------------------------------------- -# Retrieves the value of the pkg-config variable for the given module. -AC_DEFUN([PKG_CHECK_VAR], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl -AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl - -_PKG_CONFIG([$1], [variable="][$3]["], [$2]) -AS_VAR_COPY([$1], [pkg_cv_][$1]) - -AS_VAR_IF([$1], [""], [$5], [$4])dnl -])# PKG_CHECK_VAR - -# Copyright (C) 2002-2014 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.15' -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.15], [], - [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.15])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-2014 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-2014 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-2014 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-2014 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. - case $CONFIG_FILES in - *\'*) eval set x "$CONFIG_FILES" ;; - *) set x $CONFIG_FILES ;; - esac - shift - for mf - do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named 'Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then - dirpart=`AS_DIRNAME("$mf")` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running 'make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "$am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`AS_DIRNAME(["$file"])` - AS_MKDIR_P([$dirpart/$fdir]) - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done - done -} -])# _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. FIXME. This creates each '.P' file that we will -# 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" ac_aux_dir="$ac_aux_dir"]) -]) - -# Do all the work for Automake. -*- Autoconf -*- - -# Copyright (C) 1996-2014 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 -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_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([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 -]) -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-2014 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-2014 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-2014 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 to see how make treats includes. -AC_DEFUN([AM_MAKE_INCLUDE], -[am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo this is the am__doit target -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -AC_MSG_CHECKING([for style of include used by $am_make]) -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# Ignore all kinds of additional output from 'make'. -case `$am_make -s -f confmf 2> /dev/null` in #( -*the\ am__doit\ target*) - am__include=include - am__quote= - _am_result=GNU - ;; -esac -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - case `$am_make -s -f confmf 2> /dev/null` in #( - *the\ am__doit\ target*) - am__include=.include - am__quote="\"" - _am_result=BSD - ;; - esac -fi -AC_SUBST([am__include]) -AC_SUBST([am__quote]) -AC_MSG_RESULT([$_am_result]) -rm -f confinc confmf -]) - -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- - -# Copyright (C) 1997-2014 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 - case $am_aux_dir in - *\ * | *\ *) - MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; - *) - MISSING="\${SHELL} $am_aux_dir/missing" ;; - esac -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-2014 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-2014 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-2014 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-2014 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-2014 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-2014 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-2014 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-2014 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/intltool.m4]) -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]) diff -Nru roger-router-1.8.14/AUTHORS roger-router-2.1.6/AUTHORS --- roger-router-1.8.14/AUTHORS 2015-11-05 21:19:33.000000000 +0000 +++ roger-router-2.1.6/AUTHORS 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -Jan-Michael Brummer -Louis Lagendijk diff -Nru roger-router-1.8.14/autogen.sh roger-router-2.1.6/autogen.sh --- roger-router-1.8.14/autogen.sh 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/autogen.sh 1970-01-01 00:00:00.000000000 +0000 @@ -1,35 +0,0 @@ -#!/bin/sh -## - # Roger Router - # Copyright (c) 2012-2014 Jan-Michael Brummer - # - # This file is part of Roger Router. - # - # 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; version 2 only. - # - # 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 . -## - -# Generate the Makefiles and configure files -if !( autoreconf --version ) /dev/null 2>&1; then - echo "autoreconf not found -- aborting" - exit 1 -fi - -echo "Updating generated configuration files with autoreconf..." && mkdir -p ./m4 && autoreconf --force --install --verbose -RES=$? -if [ $RES != 0 ]; then - echo "Autogeneration failed (exit code $RES)" - exit $RES -fi -rm -rf autom4te*.cache -echo "copy intltool related files" && intltoolize --automake --force --copy -echo 'run "./configure && make"' diff -Nru roger-router-1.8.14/ChangeLog roger-router-2.1.6/ChangeLog --- roger-router-1.8.14/ChangeLog 2015-12-08 18:19:06.000000000 +0000 +++ roger-router-2.1.6/ChangeLog 2020-01-19 16:32:41.000000000 +0000 @@ -1,3 +1,31 @@ +roger - 1.9.1 +------------------------------------------------------------------------------------------------------------------ +* Correct fax icon +* Extend crash logger +* Fix Ubuntu 14.04 crashes +* Bugfixes + +roger - 1.9.0 +------------------------------------------------------------------------------------------------------------------ +* Reworked UI (Assistant, Preferences, Contacts with internal editing, Voice Playback, Phone) (Client Side Decoration and Service Side Decoration) +* Network authorization support +* Fritzbox: Query support improves communication to router by 16x +* Internal password plugin using CFB encryption +* New journal icons by dschaerf (color & monochrome) +* Metainfo files to simplify add on installation in GNOME Software +* Keyboard shortcuts window for GTK+ 3.20 +* Updated Google plugin to support oauth2 (+ Dialog) +* Profile selection at startup +* Improved web journal (HTML Journal with interactive sorting/dragging) +* Reworked fax printing to simplify SE Linux rules +* Restore defaults option for journal columns +* Minor improvements for OS X (Shortcuts, Additional menu entries now working) +* Updated reverse lookup +* Improved translation +* Fix dial support for FW > 6.35 +* Fix journal size on newer version of GTK +* Bugfixes + roger - 1.8.14 ------------------------------------------------------------------------------------------------------------------ * Support for old FRITZ!Box routers <= xx.04.74 diff -Nru roger-router-1.8.14/compile roger-router-2.1.6/compile --- roger-router-1.8.14/compile 2015-12-10 21:33:22.000000000 +0000 +++ roger-router-2.1.6/compile 1970-01-01 00:00:00.000000000 +0000 @@ -1,347 +0,0 @@ -#! /bin/sh -# Wrapper for compilers which do not understand '-c -o'. - -scriptversion=2012-10-14.11; # UTC - -# Copyright (C) 1999-2014 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*) - 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/*) - 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 ) - 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 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC" -# time-stamp-end: "; # UTC" -# End: diff -Nru roger-router-1.8.14/config.guess roger-router-2.1.6/config.guess --- roger-router-1.8.14/config.guess 2015-12-10 21:33:22.000000000 +0000 +++ roger-router-2.1.6/config.guess 1970-01-01 00:00:00.000000000 +0000 @@ -1,1421 +0,0 @@ -#! /bin/sh -# Attempt to guess a canonical system name. -# Copyright 1992-2015 Free Software Foundation, Inc. - -timestamp='2015-01-01' - -# 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: -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD -# -# Please send patches to . - - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 [OPTION] - -Output the configuration name of the system \`$me' is run on. - -Operation modes: - -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-2015 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 - -trap 'exit 1' 1 2 15 - -# 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. - -set_cc_for_build=' -trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; -trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; -: ${TMPDIR=/tmp} ; - { 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) ; } || - { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || - { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; -dummy=$tmp/dummy ; -tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; -case $CC_FOR_BUILD,$HOST_CC,$CC in - ,,) echo "int x;" > $dummy.c ; - for c in cc gcc c89 c99 ; do - if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then - CC_FOR_BUILD="$c"; 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 ; set_cc_for_build= ;' - -# 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) >/dev/null 2>&1 ; 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/*) - # If the system lacks a compiler, then just pick glibc. - # We could probably try harder. - LIBC=gnu - - eval $set_cc_for_build - cat <<-EOF > $dummy.c - #include - #if defined(__UCLIBC__) - LIBC=uclibc - #elif defined(__dietlibc__) - LIBC=dietlibc - #else - LIBC=gnu - #endif - EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` - ;; -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". - sysctl="sysctl -n hw.machine_arch" - UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ - /usr/sbin/$sysctl 2>/dev/null || echo unknown)` - case "${UNAME_MACHINE_ARCH}" in - armeb) machine=armeb-unknown ;; - arm*) machine=arm-unknown ;; - sh3el) machine=shl-unknown ;; - sh3eb) machine=sh-unknown ;; - sh5el) machine=sh5le-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. - case "${UNAME_MACHINE_ARCH}" in - arm*|i386|m68k|ns32k|sh3*|sparc|vax) - eval $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 - # 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/[-_].*/\./'` - ;; - esac - # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: - # contains redundant information, the shorter form: - # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. - echo "${machine}-${os}${release}" - exit ;; - *:Bitrig:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` - echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} - exit ;; - *:OpenBSD:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` - echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} - exit ;; - *:ekkoBSD:*:*) - echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} - exit ;; - *:SolidBSD:*:*) - echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} - exit ;; - macppc:MirBSD:*:*) - echo powerpc-unknown-mirbsd${UNAME_RELEASE} - exit ;; - *:MirBSD:*:*) - echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} - exit ;; - alpha:OSF1:*:*) - 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. - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - # Reset EXIT trap before exiting to avoid spurious non-zero exit code. - exitcode=$? - trap '' 0 - exit $exitcode ;; - Alpha\ *:Windows_NT*:*) - # How do we know it's Interix rather than the generic POSIX subsystem? - # Should we change UNAME_MACHINE based on the output of uname instead - # of the specific Alpha model? - echo alpha-pc-interix - exit ;; - 21064:Windows_NT:50:3) - echo alpha-dec-winnt3.5 - exit ;; - Amiga*:UNIX_System_V:4.0:*) - echo m68k-unknown-sysv4 - exit ;; - *:[Aa]miga[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-amigaos - exit ;; - *:[Mm]orph[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-morphos - exit ;; - *:OS/390:*:*) - echo i370-ibm-openedition - exit ;; - *:z/VM:*:*) - echo s390-ibm-zvmoe - exit ;; - *:OS400:*:*) - echo powerpc-ibm-os400 - exit ;; - arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) - echo arm-acorn-riscix${UNAME_RELEASE} - exit ;; - arm*:riscos:*:*|arm*:RISCOS:*:*) - echo arm-unknown-riscos - exit ;; - SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) - echo hppa1.1-hitachi-hiuxmpp - exit ;; - Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) - # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. - if test "`(/bin/universe) 2>/dev/null`" = att ; then - echo pyramid-pyramid-sysv3 - else - echo pyramid-pyramid-bsd - fi - exit ;; - NILE*:*:*:dcosx) - echo pyramid-pyramid-svr4 - exit ;; - DRS?6000:unix:4.0:6*) - echo sparc-icl-nx6 - exit ;; - DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) - case `/usr/bin/uname -p` in - sparc) echo sparc-icl-nx7; exit ;; - esac ;; - s390x:SunOS:*:*) - echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - sun4H:SunOS:5.*:*) - echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) - echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) - echo i386-pc-auroraux${UNAME_RELEASE} - exit ;; - i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) - eval $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 [ "$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 - echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - 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. - echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - 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'. - echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` - exit ;; - sun3*:SunOS:*:*) - echo m68k-sun-sunos${UNAME_RELEASE} - exit ;; - 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) - echo m68k-sun-sunos${UNAME_RELEASE} - ;; - sun4) - echo sparc-sun-sunos${UNAME_RELEASE} - ;; - esac - exit ;; - aushp:SunOS:*:*) - echo sparc-auspex-sunos${UNAME_RELEASE} - exit ;; - # 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:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit ;; - atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit ;; - *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit ;; - milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) - echo m68k-milan-mint${UNAME_RELEASE} - exit ;; - hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) - echo m68k-hades-mint${UNAME_RELEASE} - exit ;; - *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) - echo m68k-unknown-mint${UNAME_RELEASE} - exit ;; - m68k:machten:*:*) - echo m68k-apple-machten${UNAME_RELEASE} - exit ;; - powerpc:machten:*:*) - echo powerpc-apple-machten${UNAME_RELEASE} - exit ;; - RISC*:Mach:*:*) - echo mips-dec-mach_bsd4.3 - exit ;; - RISC*:ULTRIX:*:*) - echo mips-dec-ultrix${UNAME_RELEASE} - exit ;; - VAX*:ULTRIX*:*:*) - echo vax-dec-ultrix${UNAME_RELEASE} - exit ;; - 2020:CLIX:*:* | 2430:CLIX:*:*) - echo clipper-intergraph-clix${UNAME_RELEASE} - exit ;; - mips:*:*:UMIPS | mips:*:*:RISCos) - eval $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; } - echo mips-mips-riscos${UNAME_RELEASE} - exit ;; - Motorola:PowerMAX_OS:*:*) - echo powerpc-motorola-powermax - exit ;; - Motorola:*:4.3:PL8-*) - echo powerpc-harris-powermax - exit ;; - Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) - echo powerpc-harris-powermax - exit ;; - Night_Hawk:Power_UNIX:*:*) - echo powerpc-harris-powerunix - exit ;; - m88k:CX/UX:7*:*) - echo m88k-harris-cxux7 - exit ;; - m88k:*:4*:R4*) - echo m88k-motorola-sysv4 - exit ;; - m88k:*:3*:R3*) - echo m88k-motorola-sysv3 - exit ;; - AViiON:dgux:*:*) - # DG/UX returns AViiON for all architectures - UNAME_PROCESSOR=`/usr/bin/uname -p` - if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] - then - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ - [ ${TARGET_BINARY_INTERFACE}x = x ] - then - echo m88k-dg-dgux${UNAME_RELEASE} - else - echo m88k-dg-dguxbcs${UNAME_RELEASE} - fi - else - echo i586-dg-dgux${UNAME_RELEASE} - fi - exit ;; - M88*:DolphinOS:*:*) # DolphinOS (SVR3) - echo m88k-dolphin-sysv3 - exit ;; - M88*:*:R3*:*) - # Delta 88k system running SVR3 - echo m88k-motorola-sysv3 - exit ;; - XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) - echo m88k-tektronix-sysv3 - exit ;; - Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) - echo m68k-tektronix-bsd - exit ;; - *:IRIX*:*:*) - echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` - exit ;; - ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' - i*86:AIX:*:*) - echo i386-ibm-aix - exit ;; - ia64:AIX:*:*) - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` - else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} - fi - echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} - exit ;; - *:AIX:2:3) - if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then - eval $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 - echo "$SYSTEM_NAME" - else - echo rs6000-ibm-aix3.2.5 - fi - elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then - echo rs6000-ibm-aix3.2.4 - else - echo rs6000-ibm-aix3.2 - fi - exit ;; - *: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 [ -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 - echo ${IBM_ARCH}-ibm-aix${IBM_REV} - exit ;; - *:AIX:*:*) - echo rs6000-ibm-aix - exit ;; - ibmrt:4.4BSD:*|romp-ibm:BSD:*) - echo romp-ibm-bsd4.4 - exit ;; - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and - echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to - exit ;; # report: romp-ibm BSD 4.3 - *:BOSX:*:*) - echo rs6000-bull-bosx - exit ;; - DPX/2?00:B.O.S.:*:*) - echo m68k-bull-sysv3 - exit ;; - 9000/[34]??:4.3bsd:1.*:*) - echo m68k-hp-bsd - exit ;; - hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) - echo m68k-hp-bsd4.4 - exit ;; - 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 [ -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 [ "${HP_ARCH}" = "" ]; then - eval $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 [ ${HP_ARCH} = "hppa2.0w" ] - then - eval $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 - echo ${HP_ARCH}-hp-hpux${HPUX_REV} - exit ;; - ia64:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - echo ia64-hp-hpux${HPUX_REV} - exit ;; - 3050*:HI-UX:*:*) - eval $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; } - echo unknown-hitachi-hiuxwe2 - exit ;; - 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) - echo hppa1.1-hp-bsd - exit ;; - 9000/8??:4.3bsd:*:*) - echo hppa1.0-hp-bsd - exit ;; - *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) - echo hppa1.0-hp-mpeix - exit ;; - hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) - echo hppa1.1-hp-osf - exit ;; - hp8??:OSF1:*:*) - echo hppa1.0-hp-osf - exit ;; - i*86:OSF1:*:*) - if [ -x /usr/sbin/sysversion ] ; then - echo ${UNAME_MACHINE}-unknown-osf1mk - else - echo ${UNAME_MACHINE}-unknown-osf1 - fi - exit ;; - parisc*:Lites*:*:*) - echo hppa1.1-hp-lites - exit ;; - C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) - echo c1-convex-bsd - exit ;; - 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*:*) - echo c34-convex-bsd - exit ;; - C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) - echo c38-convex-bsd - exit ;; - C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) - echo c4-convex-bsd - exit ;; - CRAY*Y-MP:*:*:*) - echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - 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:*:*:*) - echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*T3E:*:*:*) - echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*SV1:*:*:*) - echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - *:UNICOS/mp:*:*) - echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - 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/ /_/'` - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit ;; - 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/ /_/'` - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit ;; - i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) - echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} - exit ;; - sparc*:BSD/OS:*:*) - echo sparc-unknown-bsdi${UNAME_RELEASE} - exit ;; - *:BSD/OS:*:*) - echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} - exit ;; - *:FreeBSD:*:*) - UNAME_PROCESSOR=`/usr/bin/uname -p` - case ${UNAME_PROCESSOR} in - amd64) - echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; - *) - echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; - esac - exit ;; - i*:CYGWIN*:*) - echo ${UNAME_MACHINE}-pc-cygwin - exit ;; - *:MINGW64*:*) - echo ${UNAME_MACHINE}-pc-mingw64 - exit ;; - *:MINGW*:*) - echo ${UNAME_MACHINE}-pc-mingw32 - exit ;; - *:MSYS*:*) - echo ${UNAME_MACHINE}-pc-msys - exit ;; - i*:windows32*:*) - # uname -m includes "-pc" on this system. - echo ${UNAME_MACHINE}-mingw32 - exit ;; - i*:PW*:*) - echo ${UNAME_MACHINE}-pc-pw32 - exit ;; - *:Interix*:*) - case ${UNAME_MACHINE} in - x86) - echo i586-pc-interix${UNAME_RELEASE} - exit ;; - authenticamd | genuineintel | EM64T) - echo x86_64-unknown-interix${UNAME_RELEASE} - exit ;; - IA64) - echo ia64-unknown-interix${UNAME_RELEASE} - exit ;; - esac ;; - [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) - echo i${UNAME_MACHINE}-pc-mks - exit ;; - 8664:Windows_NT:*) - echo x86_64-pc-mks - exit ;; - i*:Windows_NT*:* | Pentium*:Windows_NT*:*) - # How do we know it's Interix rather than the generic POSIX subsystem? - # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we - # UNAME_MACHINE based on the output of uname instead of i386? - echo i586-pc-interix - exit ;; - i*:UWIN*:*) - echo ${UNAME_MACHINE}-pc-uwin - exit ;; - amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) - echo x86_64-unknown-cygwin - exit ;; - p*:CYGWIN*:*) - echo powerpcle-unknown-cygwin - exit ;; - prep*:SunOS:5.*:*) - echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - *:GNU:*:*) - # the GNU system - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` - exit ;; - *:GNU/*:*:*) - # other systems with GNU libc and userland - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} - exit ;; - i*86:Minix:*:*) - echo ${UNAME_MACHINE}-pc-minix - exit ;; - aarch64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - aarch64_be:Linux:*:*) - UNAME_MACHINE=aarch64_be - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - alpha:Linux:*:*) - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` 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 - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - arc:Linux:*:* | arceb:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - arm*:Linux:*:*) - eval $set_cc_for_build - if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep -q __ARM_EABI__ - then - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - else - if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep -q __ARM_PCS_VFP - then - echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi - else - echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf - fi - fi - exit ;; - avr32*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - cris:Linux:*:*) - echo ${UNAME_MACHINE}-axis-linux-${LIBC} - exit ;; - crisv32:Linux:*:*) - echo ${UNAME_MACHINE}-axis-linux-${LIBC} - exit ;; - frv:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - hexagon:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - i*86:Linux:*:*) - echo ${UNAME_MACHINE}-pc-linux-${LIBC} - exit ;; - ia64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - m32r*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - m68*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - mips:Linux:*:* | mips64:Linux:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #undef CPU - #undef ${UNAME_MACHINE} - #undef ${UNAME_MACHINE}el - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - CPU=${UNAME_MACHINE}el - #else - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - CPU=${UNAME_MACHINE} - #else - CPU= - #endif - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } - ;; - openrisc*:Linux:*:*) - echo or1k-unknown-linux-${LIBC} - exit ;; - or32:Linux:*:* | or1k*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - padre:Linux:*:*) - echo sparc-unknown-linux-${LIBC} - exit ;; - parisc64:Linux:*:* | hppa64:Linux:*:*) - echo hppa64-unknown-linux-${LIBC} - exit ;; - parisc:Linux:*:* | hppa:Linux:*:*) - # Look for CPU level - case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in - PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; - PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; - *) echo hppa-unknown-linux-${LIBC} ;; - esac - exit ;; - ppc64:Linux:*:*) - echo powerpc64-unknown-linux-${LIBC} - exit ;; - ppc:Linux:*:*) - echo powerpc-unknown-linux-${LIBC} - exit ;; - ppc64le:Linux:*:*) - echo powerpc64le-unknown-linux-${LIBC} - exit ;; - ppcle:Linux:*:*) - echo powerpcle-unknown-linux-${LIBC} - exit ;; - s390:Linux:*:* | s390x:Linux:*:*) - echo ${UNAME_MACHINE}-ibm-linux-${LIBC} - exit ;; - sh64*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - sh*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - sparc:Linux:*:* | sparc64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - tile*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - vax:Linux:*:*) - echo ${UNAME_MACHINE}-dec-linux-${LIBC} - exit ;; - x86_64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - xtensa*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} - exit ;; - 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. - echo i386-sequent-sysv4 - exit ;; - 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. - echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} - exit ;; - i*86:OS/2:*:*) - # If we were able to find `uname', then EMX Unix compatibility - # is probably installed. - echo ${UNAME_MACHINE}-pc-os2-emx - exit ;; - i*86:XTS-300:*:STOP) - echo ${UNAME_MACHINE}-unknown-stop - exit ;; - i*86:atheos:*:*) - echo ${UNAME_MACHINE}-unknown-atheos - exit ;; - i*86:syllable:*:*) - echo ${UNAME_MACHINE}-pc-syllable - exit ;; - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) - echo i386-unknown-lynxos${UNAME_RELEASE} - exit ;; - i*86:*DOS:*:*) - echo ${UNAME_MACHINE}-pc-msdosdjgpp - exit ;; - i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) - UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` - if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then - echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} - else - echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} - fi - exit ;; - 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 - echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} - exit ;; - 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 - echo ${UNAME_MACHINE}-pc-sco$UNAME_REL - else - echo ${UNAME_MACHINE}-pc-sysv32 - fi - exit ;; - 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 configury will decide that - # this is a cross-build. - echo i586-pc-msdosdjgpp - exit ;; - Intel:Mach:3*:*) - echo i386-pc-mach3 - exit ;; - paragon:*:*:*) - echo i860-intel-osf1 - exit ;; - i860:*:4.*:*) # i860-SVR4 - if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then - echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 - else # Add other i860-SVR4 vendors below as they are discovered. - echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 - fi - exit ;; - mini*:CTIX:SYS*5:*) - # "miniframe" - echo m68010-convergent-sysv - exit ;; - mc68k:UNIX:SYSTEM5:3.51m) - echo m68k-convergent-sysv - exit ;; - M680?0:D-NIX:5.3:*) - echo m68k-diab-dnix - exit ;; - 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*:*) - echo m68k-unknown-lynxos${UNAME_RELEASE} - exit ;; - mc68030:UNIX_System_V:4.*:*) - echo m68k-atari-sysv4 - exit ;; - TSUNAMI:LynxOS:2.*:*) - echo sparc-unknown-lynxos${UNAME_RELEASE} - exit ;; - rs6000:LynxOS:2.*:*) - echo rs6000-unknown-lynxos${UNAME_RELEASE} - exit ;; - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) - echo powerpc-unknown-lynxos${UNAME_RELEASE} - exit ;; - SM[BE]S:UNIX_SV:*:*) - echo mips-dde-sysv${UNAME_RELEASE} - exit ;; - RM*:ReliantUNIX-*:*:*) - echo mips-sni-sysv4 - exit ;; - RM*:SINIX-*:*:*) - echo mips-sni-sysv4 - exit ;; - *:SINIX-*:*:*) - if uname -p 2>/dev/null >/dev/null ; then - UNAME_MACHINE=`(uname -p) 2>/dev/null` - echo ${UNAME_MACHINE}-sni-sysv4 - else - echo ns32k-sni-sysv - fi - exit ;; - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort - # says - echo i586-unisys-sysv4 - exit ;; - *:UNIX_System_V:4*:FTX*) - # From Gerald Hewes . - # How about differentiating between stratus architectures? -djm - echo hppa1.1-stratus-sysv4 - exit ;; - *:*:*:FTX*) - # From seanf@swdc.stratus.com. - echo i860-stratus-sysv4 - exit ;; - i*86:VOS:*:*) - # From Paul.Green@stratus.com. - echo ${UNAME_MACHINE}-stratus-vos - exit ;; - *:VOS:*:*) - # From Paul.Green@stratus.com. - echo hppa1.1-stratus-vos - exit ;; - mc68*:A/UX:*:*) - echo m68k-apple-aux${UNAME_RELEASE} - exit ;; - news*:NEWS-OS:6*:*) - echo mips-sony-newsos6 - exit ;; - R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) - if [ -d /usr/nec ]; then - echo mips-nec-sysv${UNAME_RELEASE} - else - echo mips-unknown-sysv${UNAME_RELEASE} - fi - exit ;; - BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. - echo powerpc-be-beos - exit ;; - BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. - echo powerpc-apple-beos - exit ;; - BePC:BeOS:*:*) # BeOS running on Intel PC compatible. - echo i586-pc-beos - exit ;; - BePC:Haiku:*:*) # Haiku running on Intel PC compatible. - echo i586-pc-haiku - exit ;; - x86_64:Haiku:*:*) - echo x86_64-unknown-haiku - exit ;; - SX-4:SUPER-UX:*:*) - echo sx4-nec-superux${UNAME_RELEASE} - exit ;; - SX-5:SUPER-UX:*:*) - echo sx5-nec-superux${UNAME_RELEASE} - exit ;; - SX-6:SUPER-UX:*:*) - echo sx6-nec-superux${UNAME_RELEASE} - exit ;; - SX-7:SUPER-UX:*:*) - echo sx7-nec-superux${UNAME_RELEASE} - exit ;; - SX-8:SUPER-UX:*:*) - echo sx8-nec-superux${UNAME_RELEASE} - exit ;; - SX-8R:SUPER-UX:*:*) - echo sx8r-nec-superux${UNAME_RELEASE} - exit ;; - Power*:Rhapsody:*:*) - echo powerpc-apple-rhapsody${UNAME_RELEASE} - exit ;; - *:Rhapsody:*:*) - echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} - exit ;; - *:Darwin:*:*) - UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown - eval $set_cc_for_build - if test "$UNAME_PROCESSOR" = unknown ; then - UNAME_PROCESSOR=powerpc - fi - if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then - if [ "$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 - fi - elif test "$UNAME_PROCESSOR" = i386 ; then - # Avoid executing cc on OS X 10.9, as it ships with a stub - # that puts up a graphical alert prompting to install - # developer tools. Any system running Mac OS X 10.7 or - # later (Darwin 11 and later) is required to have a 64-bit - # processor. This is not true of the ARM version of Darwin - # that Apple uses in portable devices. - UNAME_PROCESSOR=x86_64 - fi - echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} - exit ;; - *:procnto*:*:* | *:QNX:[0123456789]*:*) - UNAME_PROCESSOR=`uname -p` - if test "$UNAME_PROCESSOR" = "x86"; then - UNAME_PROCESSOR=i386 - UNAME_MACHINE=pc - fi - echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} - exit ;; - *:QNX:*:4*) - echo i386-pc-qnx - exit ;; - NEO-?:NONSTOP_KERNEL:*:*) - echo neo-tandem-nsk${UNAME_RELEASE} - exit ;; - NSE-*:NONSTOP_KERNEL:*:*) - echo nse-tandem-nsk${UNAME_RELEASE} - exit ;; - NSR-?:NONSTOP_KERNEL:*:*) - echo nsr-tandem-nsk${UNAME_RELEASE} - exit ;; - *:NonStop-UX:*:*) - echo mips-compaq-nonstopux - exit ;; - BS2000:POSIX*:*:*) - echo bs2000-siemens-sysv - exit ;; - DS/*:UNIX_System_V:*:*) - echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} - exit ;; - *: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 - else - UNAME_MACHINE="$cputype" - fi - echo ${UNAME_MACHINE}-unknown-plan9 - exit ;; - *:TOPS-10:*:*) - echo pdp10-unknown-tops10 - exit ;; - *:TENEX:*:*) - echo pdp10-unknown-tenex - exit ;; - KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) - echo pdp10-dec-tops20 - exit ;; - XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) - echo pdp10-xkl-tops20 - exit ;; - *:TOPS-20:*:*) - echo pdp10-unknown-tops20 - exit ;; - *:ITS:*:*) - echo pdp10-unknown-its - exit ;; - SEI:*:*:SEIUX) - echo mips-sei-seiux${UNAME_RELEASE} - exit ;; - *:DragonFly:*:*) - echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` - exit ;; - *:*VMS:*:*) - UNAME_MACHINE=`(uname -p) 2>/dev/null` - case "${UNAME_MACHINE}" in - A*) echo alpha-dec-vms ; exit ;; - I*) echo ia64-dec-vms ; exit ;; - V*) echo vax-dec-vms ; exit ;; - esac ;; - *:XENIX:*:SysV) - echo i386-pc-xenix - exit ;; - i*86:skyos:*:*) - echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' - exit ;; - i*86:rdos:*:*) - echo ${UNAME_MACHINE}-pc-rdos - exit ;; - i*86:AROS:*:*) - echo ${UNAME_MACHINE}-pc-aros - exit ;; - x86_64:VMkernel:*:*) - echo ${UNAME_MACHINE}-unknown-esx - exit ;; -esac - -cat >&2 < in order to provide the needed -information to handle your system. - -config.guess timestamp = $timestamp - -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` -/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 - -exit 1 - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "timestamp='" -# time-stamp-format: "%:y-%02m-%02d" -# time-stamp-end: "'" -# End: diff -Nru roger-router-1.8.14/config.h roger-router-2.1.6/config.h --- roger-router-1.8.14/config.h 2015-12-10 21:33:49.000000000 +0000 +++ roger-router-2.1.6/config.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,134 +0,0 @@ -/* config.h. Generated from config.h.in by configure. */ -/* config.h.in. Generated from configure.ac by autoheader. */ - -/* always defined to indicate that i18n is enabled */ -#define ENABLE_NLS 1 - -/* Define to the Gettext package name */ -#define GETTEXT_PACKAGE "roger" - -/* Have appindicator */ -/* #undef HAVE_APPINDICATOR */ - -/* Define to 1 if you have the `bind_textdomain_codeset' function. */ -#define HAVE_BIND_TEXTDOMAIN_CODESET 1 - -/* Use new CAPI */ -/* #undef HAVE_CAPI_36 */ - -/* Define to 1 if you have the `dcgettext' function. */ -#define HAVE_DCGETTEXT 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_DLFCN_H 1 - -/* Have faxophone */ -#define HAVE_FAXOPHONE 1 - -/* Define if the GNU gettext() function is already present or preinstalled. */ -#define HAVE_GETTEXT 1 - -/* Have gnotification */ -#define HAVE_GNOTIFICATION 1 - -/* Have gstreamer 1.0 */ -#define HAVE_GSTREAMER1 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_INTTYPES_H 1 - -/* Have kwallet */ -/* #undef HAVE_KWALLET */ - -/* Define if your file defines LC_MESSAGES. */ -#define HAVE_LC_MESSAGES 1 - -/* Define to 1 if you have the `gthread-2.0' library (-lgthread-2.0). */ -#define HAVE_LIBGTHREAD_2_0 1 - -/* Define to 1 if you have the `m' library (-lm). */ -#define HAVE_LIBM 1 - -/* Have libnotify */ -/* #undef HAVE_LIBNOTIFY */ - -/* Define to 1 if you have the `tiff' library (-ltiff). */ -#define HAVE_LIBTIFF 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_LOCALE_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_MEMORY_H 1 - -/* Have portaudio */ -/* #undef HAVE_PORTAUDIO */ - -/* Have pulseaudio */ -/* #undef HAVE_PULSEAUDIO */ - -/* Define to 1 if you have the `sigaction' function. */ -#define HAVE_SIGACTION 1 - -/* Define to 1 if you have the `sigset' function. */ -/* #undef HAVE_SIGSET */ - -/* Define to 1 if you have the header file. */ -#define HAVE_STDINT_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STDLIB_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STRINGS_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STRING_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_STAT_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_TYPES_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_TIFFIO_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_UNISTD_H 1 - -/* Define to the sub-directory where libtool stores uninstalled libraries. */ -#define LT_OBJDIR ".libs/" - -/* Name of package */ -#define PACKAGE "roger-router" - -/* Define to the address where bug reports for this package should be sent. */ -#define PACKAGE_BUGREPORT "http://www.tabos.org/roger" - -/* Define to the full name of this package. */ -#define PACKAGE_NAME "Roger Router" - -/* Define to the full name and version of this package. */ -#define PACKAGE_STRING "Roger Router 1.8.14" - -/* Define to the one symbol short name of this package. */ -#define PACKAGE_TARNAME "roger-router" - -/* Define to the home page for this package. */ -#define PACKAGE_URL "" - -/* Define to the version of this package. */ -#define PACKAGE_VERSION "1.8.14" - -/* Define to 1 if you have the ANSI C header files. */ -#define STDC_HEADERS 1 - -/* Use printer server on port 9100 */ -/* #undef USE_PRINTER_SERVER */ - -/* Expect files in spooler directory /var/spool/roger */ -#define USE_PRINTER_SPOOLER 1 - -/* Version number of package */ -#define VERSION "1.8.14" diff -Nru roger-router-1.8.14/config.h.in roger-router-2.1.6/config.h.in --- roger-router-1.8.14/config.h.in 2015-12-10 21:33:50.000000000 +0000 +++ roger-router-2.1.6/config.h.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,133 +0,0 @@ -/* config.h.in. Generated from configure.ac by autoheader. */ - -/* always defined to indicate that i18n is enabled */ -#undef ENABLE_NLS - -/* Define to the Gettext package name */ -#undef GETTEXT_PACKAGE - -/* Have appindicator */ -#undef HAVE_APPINDICATOR - -/* Define to 1 if you have the `bind_textdomain_codeset' function. */ -#undef HAVE_BIND_TEXTDOMAIN_CODESET - -/* Use new CAPI */ -#undef HAVE_CAPI_36 - -/* Define to 1 if you have the `dcgettext' function. */ -#undef HAVE_DCGETTEXT - -/* Define to 1 if you have the header file. */ -#undef HAVE_DLFCN_H - -/* Have faxophone */ -#undef HAVE_FAXOPHONE - -/* Define if the GNU gettext() function is already present or preinstalled. */ -#undef HAVE_GETTEXT - -/* Have gnotification */ -#undef HAVE_GNOTIFICATION - -/* Have gstreamer 1.0 */ -#undef HAVE_GSTREAMER1 - -/* Define to 1 if you have the header file. */ -#undef HAVE_INTTYPES_H - -/* Have kwallet */ -#undef HAVE_KWALLET - -/* Define if your file defines LC_MESSAGES. */ -#undef HAVE_LC_MESSAGES - -/* Define to 1 if you have the `gthread-2.0' library (-lgthread-2.0). */ -#undef HAVE_LIBGTHREAD_2_0 - -/* Define to 1 if you have the `m' library (-lm). */ -#undef HAVE_LIBM - -/* Have libnotify */ -#undef HAVE_LIBNOTIFY - -/* Define to 1 if you have the `tiff' library (-ltiff). */ -#undef HAVE_LIBTIFF - -/* Define to 1 if you have the header file. */ -#undef HAVE_LOCALE_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_MEMORY_H - -/* Have portaudio */ -#undef HAVE_PORTAUDIO - -/* Have pulseaudio */ -#undef HAVE_PULSEAUDIO - -/* Define to 1 if you have the `sigaction' function. */ -#undef HAVE_SIGACTION - -/* Define to 1 if you have the `sigset' function. */ -#undef HAVE_SIGSET - -/* Define to 1 if you have the header file. */ -#undef HAVE_STDINT_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 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 header file. */ -#undef HAVE_TIFFIO_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_UNISTD_H - -/* Define to the sub-directory where libtool stores uninstalled libraries. */ -#undef LT_OBJDIR - -/* 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 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 you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Use printer server on port 9100 */ -#undef USE_PRINTER_SERVER - -/* Expect files in spooler directory /var/spool/roger */ -#undef USE_PRINTER_SPOOLER - -/* Version number of package */ -#undef VERSION diff -Nru roger-router-1.8.14/config.sub roger-router-2.1.6/config.sub --- roger-router-1.8.14/config.sub 2015-12-10 21:33:22.000000000 +0000 +++ roger-router-2.1.6/config.sub 1970-01-01 00:00:00.000000000 +0000 @@ -1,1807 +0,0 @@ -#! /bin/sh -# Configuration validation subroutine script. -# Copyright 1992-2015 Free Software Foundation, Inc. - -timestamp='2015-01-01' - -# 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: -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD - -# 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. - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 [OPTION] CPU-MFR-OPSYS - $0 [OPTION] ALIAS - -Canonicalize a configuration name. - -Operation modes: - -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-2015 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" - 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 - -# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). -# Here we must recognize all the valid KERNEL-OS combinations. -maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` -case $maybe_os in - nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ - linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ - knetbsd*-gnu* | netbsd*-gnu* | \ - kopensolaris*-gnu* | \ - storm-chaos* | os2-emx* | rtmk-nova*) - os=-$maybe_os - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` - ;; - android-linux) - os=-linux-android - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown - ;; - *) - basic_machine=`echo $1 | sed 's/-[^-]*$//'` - if [ $basic_machine != $1 ] - then os=`echo $1 | sed 's/.*-/-/'` - else os=; fi - ;; -esac - -### Let's recognize common machines as not being operating systems so -### that things like config.sub decstation-3100 work. We also -### recognize some manufacturers as not being operating systems, so we -### can provide default operating systems below. -case $os in - -sun*os*) - # Prevent following clause from handling this invalid input. - ;; - -dec* | -mips* | -sequent* | -encore* | -pc532* | -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*) - os= - basic_machine=$1 - ;; - -bluegene*) - os=-cnk - ;; - -sim | -cisco | -oki | -wec | -winbond) - os= - basic_machine=$1 - ;; - -scout) - ;; - -wrs) - os=-vxworks - basic_machine=$1 - ;; - -chorusos*) - os=-chorusos - basic_machine=$1 - ;; - -chorusrdb) - os=-chorusrdb - basic_machine=$1 - ;; - -hiux*) - os=-hiuxwe2 - ;; - -sco6) - os=-sco5v6 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco5) - os=-sco3.2v5 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco4) - os=-sco3.2v4 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2.[4-9]*) - os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2v[4-9]*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco5v6*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco*) - os=-sco3.2v2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -udk*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -isc) - os=-isc2.2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -clix*) - basic_machine=clipper-intergraph - ;; - -isc*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -lynx*178) - os=-lynxos178 - ;; - -lynx*5) - os=-lynxos5 - ;; - -lynx*) - os=-lynxos - ;; - -ptx*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` - ;; - -windowsnt*) - os=`echo $os | sed -e 's/windowsnt/winnt/'` - ;; - -psos*) - os=-psos - ;; - -mint | -mint[0-9]*) - basic_machine=m68k-atari - os=-mint - ;; -esac - -# Decode aliases for certain CPU-COMPANY combinations. -case $basic_machine in - # Recognize the basic CPU types without company name. - # Some are omitted here because they have special meanings below. - 1750a | 580 \ - | a29k \ - | aarch64 | aarch64_be \ - | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ - | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ - | am33_2.0 \ - | arc | arceb \ - | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ - | avr | avr32 \ - | be32 | be64 \ - | bfin \ - | c4x | c8051 | clipper \ - | d10v | d30v | dlx | dsp16xx \ - | epiphany \ - | fido | fr30 | frv | ft32 \ - | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ - | hexagon \ - | i370 | i860 | i960 | ia64 \ - | ip2k | iq2000 \ - | k1om \ - | le32 | le64 \ - | lm32 \ - | m32c | m32r | m32rle | m68000 | m68k | m88k \ - | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ - | mips | mipsbe | mipseb | mipsel | mipsle \ - | mips16 \ - | mips64 | mips64el \ - | mips64octeon | mips64octeonel \ - | mips64orion | mips64orionel \ - | mips64r5900 | mips64r5900el \ - | mips64vr | mips64vrel \ - | mips64vr4100 | mips64vr4100el \ - | mips64vr4300 | mips64vr4300el \ - | mips64vr5000 | mips64vr5000el \ - | mips64vr5900 | mips64vr5900el \ - | mipsisa32 | mipsisa32el \ - | mipsisa32r2 | mipsisa32r2el \ - | mipsisa32r6 | mipsisa32r6el \ - | mipsisa64 | mipsisa64el \ - | mipsisa64r2 | mipsisa64r2el \ - | mipsisa64r6 | mipsisa64r6el \ - | mipsisa64sb1 | mipsisa64sb1el \ - | mipsisa64sr71k | mipsisa64sr71kel \ - | mipsr5900 | mipsr5900el \ - | mipstx39 | mipstx39el \ - | mn10200 | mn10300 \ - | moxie \ - | mt \ - | msp430 \ - | nds32 | nds32le | nds32be \ - | nios | nios2 | nios2eb | nios2el \ - | ns16k | ns32k \ - | open8 | or1k | or1knd | or32 \ - | pdp10 | pdp11 | pj | pjl \ - | powerpc | powerpc64 | powerpc64le | powerpcle \ - | pyramid \ - | riscv32 | riscv64 \ - | rl78 | rx \ - | score \ - | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ - | sh64 | sh64le \ - | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ - | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ - | spu \ - | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ - | ubicom32 \ - | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ - | visium \ - | we32k \ - | x86 | xc16x | xstormy16 | xtensa \ - | z8k | z80) - basic_machine=$basic_machine-unknown - ;; - c54x) - basic_machine=tic54x-unknown - ;; - c55x) - basic_machine=tic55x-unknown - ;; - c6x) - basic_machine=tic6x-unknown - ;; - leon|leon[3-9]) - basic_machine=sparc-$basic_machine - ;; - m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) - basic_machine=$basic_machine-unknown - os=-none - ;; - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) - ;; - ms1) - basic_machine=mt-unknown - ;; - - strongarm | thumb | xscale) - basic_machine=arm-unknown - ;; - xgate) - basic_machine=$basic_machine-unknown - os=-none - ;; - xscaleeb) - basic_machine=armeb-unknown - ;; - - xscaleel) - basic_machine=armel-unknown - ;; - - # We use `pc' rather than `unknown' - # because (1) that's what they normally are, and - # (2) the word "unknown" tends to confuse beginning users. - i*86 | x86_64) - basic_machine=$basic_machine-pc - ;; - # Object if more than one company name word. - *-*-*) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; - # Recognize the basic CPU types with company name. - 580-* \ - | a29k-* \ - | aarch64-* | aarch64_be-* \ - | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ - | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ - | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ - | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ - | avr-* | avr32-* \ - | be32-* | be64-* \ - | bfin-* | bs2000-* \ - | c[123]* | c30-* | [cjt]90-* | c4x-* \ - | c8051-* | clipper-* | craynv-* | cydra-* \ - | d10v-* | d30v-* | dlx-* \ - | elxsi-* \ - | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ - | h8300-* | h8500-* \ - | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ - | hexagon-* \ - | i*86-* | i860-* | i960-* | ia64-* \ - | ip2k-* | iq2000-* \ - | k1om-* \ - | le32-* | le64-* \ - | lm32-* \ - | m32c-* | m32r-* | m32rle-* \ - | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ - | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ - | microblaze-* | microblazeel-* \ - | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ - | mips16-* \ - | mips64-* | mips64el-* \ - | mips64octeon-* | mips64octeonel-* \ - | mips64orion-* | mips64orionel-* \ - | mips64r5900-* | mips64r5900el-* \ - | mips64vr-* | mips64vrel-* \ - | mips64vr4100-* | mips64vr4100el-* \ - | mips64vr4300-* | mips64vr4300el-* \ - | mips64vr5000-* | mips64vr5000el-* \ - | mips64vr5900-* | mips64vr5900el-* \ - | mipsisa32-* | mipsisa32el-* \ - | mipsisa32r2-* | mipsisa32r2el-* \ - | mipsisa32r6-* | mipsisa32r6el-* \ - | mipsisa64-* | mipsisa64el-* \ - | mipsisa64r2-* | mipsisa64r2el-* \ - | mipsisa64r6-* | mipsisa64r6el-* \ - | mipsisa64sb1-* | mipsisa64sb1el-* \ - | mipsisa64sr71k-* | mipsisa64sr71kel-* \ - | mipsr5900-* | mipsr5900el-* \ - | mipstx39-* | mipstx39el-* \ - | mmix-* \ - | mt-* \ - | msp430-* \ - | nds32-* | nds32le-* | nds32be-* \ - | nios-* | nios2-* | nios2eb-* | nios2el-* \ - | none-* | np1-* | ns16k-* | ns32k-* \ - | open8-* \ - | or1k*-* \ - | orion-* \ - | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ - | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ - | pyramid-* \ - | rl78-* | romp-* | rs6000-* | rx-* \ - | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ - | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ - | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ - | sparclite-* \ - | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ - | tahoe-* \ - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ - | tile*-* \ - | tron-* \ - | ubicom32-* \ - | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ - | vax-* \ - | visium-* \ - | we32k-* \ - | x86-* | x86_64-* | xc16x-* | xps100-* \ - | xstormy16-* | xtensa*-* \ - | ymp-* \ - | z8k-* | z80-*) - ;; - # Recognize the basic CPU types without company name, with glob match. - xtensa*) - basic_machine=$basic_machine-unknown - ;; - # Recognize the various machine names and aliases which stand - # for a CPU type and a company and sometimes even an OS. - 386bsd) - basic_machine=i386-unknown - os=-bsd - ;; - 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) - basic_machine=m68000-att - ;; - 3b*) - basic_machine=we32k-att - ;; - a29khif) - basic_machine=a29k-amd - os=-udi - ;; - abacus) - basic_machine=abacus-unknown - ;; - adobe68k) - basic_machine=m68010-adobe - os=-scout - ;; - alliant | fx80) - basic_machine=fx80-alliant - ;; - altos | altos3068) - basic_machine=m68k-altos - ;; - am29k) - basic_machine=a29k-none - os=-bsd - ;; - amd64) - basic_machine=x86_64-pc - ;; - amd64-*) - basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - amdahl) - basic_machine=580-amdahl - os=-sysv - ;; - amiga | amiga-*) - basic_machine=m68k-unknown - ;; - amigaos | amigados) - basic_machine=m68k-unknown - os=-amigaos - ;; - amigaunix | amix) - basic_machine=m68k-unknown - os=-sysv4 - ;; - apollo68) - basic_machine=m68k-apollo - os=-sysv - ;; - apollo68bsd) - basic_machine=m68k-apollo - os=-bsd - ;; - aros) - basic_machine=i386-pc - os=-aros - ;; - aux) - basic_machine=m68k-apple - os=-aux - ;; - balance) - basic_machine=ns32k-sequent - os=-dynix - ;; - blackfin) - basic_machine=bfin-unknown - os=-linux - ;; - blackfin-*) - basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` - os=-linux - ;; - bluegene*) - basic_machine=powerpc-ibm - os=-cnk - ;; - c54x-*) - basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - c55x-*) - basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - c6x-*) - basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - c90) - basic_machine=c90-cray - os=-unicos - ;; - cegcc) - basic_machine=arm-unknown - os=-cegcc - ;; - convex-c1) - basic_machine=c1-convex - os=-bsd - ;; - convex-c2) - basic_machine=c2-convex - os=-bsd - ;; - convex-c32) - basic_machine=c32-convex - os=-bsd - ;; - convex-c34) - basic_machine=c34-convex - os=-bsd - ;; - convex-c38) - basic_machine=c38-convex - os=-bsd - ;; - cray | j90) - basic_machine=j90-cray - os=-unicos - ;; - craynv) - basic_machine=craynv-cray - os=-unicosmp - ;; - cr16 | cr16-*) - basic_machine=cr16-unknown - os=-elf - ;; - crds | unos) - basic_machine=m68k-crds - ;; - crisv32 | crisv32-* | etraxfs*) - basic_machine=crisv32-axis - ;; - cris | cris-* | etrax*) - basic_machine=cris-axis - ;; - crx) - basic_machine=crx-unknown - os=-elf - ;; - da30 | da30-*) - basic_machine=m68k-da30 - ;; - decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) - basic_machine=mips-dec - ;; - decsystem10* | dec10*) - basic_machine=pdp10-dec - os=-tops10 - ;; - decsystem20* | dec20*) - basic_machine=pdp10-dec - os=-tops20 - ;; - delta | 3300 | motorola-3300 | motorola-delta \ - | 3300-motorola | delta-motorola) - basic_machine=m68k-motorola - ;; - delta88) - basic_machine=m88k-motorola - os=-sysv3 - ;; - dicos) - basic_machine=i686-pc - os=-dicos - ;; - djgpp) - basic_machine=i586-pc - os=-msdosdjgpp - ;; - dpx20 | dpx20-*) - basic_machine=rs6000-bull - os=-bosx - ;; - dpx2* | dpx2*-bull) - basic_machine=m68k-bull - os=-sysv3 - ;; - ebmon29k) - basic_machine=a29k-amd - os=-ebmon - ;; - elxsi) - basic_machine=elxsi-elxsi - os=-bsd - ;; - encore | umax | mmax) - basic_machine=ns32k-encore - ;; - es1800 | OSE68k | ose68k | ose | OSE) - basic_machine=m68k-ericsson - os=-ose - ;; - fx2800) - basic_machine=i860-alliant - ;; - genix) - basic_machine=ns32k-ns - ;; - gmicro) - basic_machine=tron-gmicro - os=-sysv - ;; - go32) - basic_machine=i386-pc - os=-go32 - ;; - h3050r* | hiux*) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - h8300hms) - basic_machine=h8300-hitachi - os=-hms - ;; - h8300xray) - basic_machine=h8300-hitachi - os=-xray - ;; - h8500hms) - basic_machine=h8500-hitachi - os=-hms - ;; - harris) - basic_machine=m88k-harris - os=-sysv3 - ;; - hp300-*) - basic_machine=m68k-hp - ;; - hp300bsd) - basic_machine=m68k-hp - os=-bsd - ;; - hp300hpux) - basic_machine=m68k-hp - os=-hpux - ;; - hp3k9[0-9][0-9] | hp9[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hp9k2[0-9][0-9] | hp9k31[0-9]) - basic_machine=m68000-hp - ;; - hp9k3[2-9][0-9]) - basic_machine=m68k-hp - ;; - hp9k6[0-9][0-9] | hp6[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hp9k7[0-79][0-9] | hp7[0-79][0-9]) - basic_machine=hppa1.1-hp - ;; - hp9k78[0-9] | hp78[0-9]) - # FIXME: really hppa2.0-hp - basic_machine=hppa1.1-hp - ;; - hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) - # FIXME: really hppa2.0-hp - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][13679] | hp8[0-9][13679]) - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][0-9] | hp8[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hppa-next) - os=-nextstep3 - ;; - hppaosf) - basic_machine=hppa1.1-hp - os=-osf - ;; - hppro) - basic_machine=hppa1.1-hp - os=-proelf - ;; - i370-ibm* | ibm*) - basic_machine=i370-ibm - ;; - i*86v32) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv32 - ;; - i*86v4*) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv4 - ;; - i*86v) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv - ;; - i*86sol2) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-solaris2 - ;; - i386mach) - basic_machine=i386-mach - os=-mach - ;; - i386-vsta | vsta) - basic_machine=i386-unknown - os=-vsta - ;; - iris | iris4d) - basic_machine=mips-sgi - case $os in - -irix*) - ;; - *) - os=-irix4 - ;; - esac - ;; - isi68 | isi) - basic_machine=m68k-isi - os=-sysv - ;; - leon-*|leon[3-9]-*) - basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'` - ;; - m68knommu) - basic_machine=m68k-unknown - os=-linux - ;; - m68knommu-*) - basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` - os=-linux - ;; - m88k-omron*) - basic_machine=m88k-omron - ;; - magnum | m3230) - basic_machine=mips-mips - os=-sysv - ;; - merlin) - basic_machine=ns32k-utek - os=-sysv - ;; - microblaze*) - basic_machine=microblaze-xilinx - ;; - mingw64) - basic_machine=x86_64-pc - os=-mingw64 - ;; - mingw32) - basic_machine=i686-pc - os=-mingw32 - ;; - mingw32ce) - basic_machine=arm-unknown - os=-mingw32ce - ;; - miniframe) - basic_machine=m68000-convergent - ;; - *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) - basic_machine=m68k-atari - os=-mint - ;; - mips3*-*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` - ;; - mips3*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown - ;; - monitor) - basic_machine=m68k-rom68k - os=-coff - ;; - morphos) - basic_machine=powerpc-unknown - os=-morphos - ;; - moxiebox) - basic_machine=moxie-unknown - os=-moxiebox - ;; - msdos) - basic_machine=i386-pc - os=-msdos - ;; - ms1-*) - basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` - ;; - msys) - basic_machine=i686-pc - os=-msys - ;; - mvs) - basic_machine=i370-ibm - os=-mvs - ;; - nacl) - basic_machine=le32-unknown - os=-nacl - ;; - ncr3000) - basic_machine=i486-ncr - os=-sysv4 - ;; - netbsd386) - basic_machine=i386-unknown - os=-netbsd - ;; - netwinder) - basic_machine=armv4l-rebel - os=-linux - ;; - news | news700 | news800 | news900) - basic_machine=m68k-sony - os=-newsos - ;; - news1000) - basic_machine=m68030-sony - os=-newsos - ;; - news-3600 | risc-news) - basic_machine=mips-sony - os=-newsos - ;; - necv70) - basic_machine=v70-nec - os=-sysv - ;; - next | m*-next ) - basic_machine=m68k-next - case $os in - -nextstep* ) - ;; - -ns2*) - os=-nextstep2 - ;; - *) - os=-nextstep3 - ;; - esac - ;; - nh3000) - basic_machine=m68k-harris - os=-cxux - ;; - nh[45]000) - basic_machine=m88k-harris - os=-cxux - ;; - nindy960) - basic_machine=i960-intel - os=-nindy - ;; - mon960) - basic_machine=i960-intel - os=-mon960 - ;; - nonstopux) - basic_machine=mips-compaq - os=-nonstopux - ;; - np1) - basic_machine=np1-gould - ;; - neo-tandem) - basic_machine=neo-tandem - ;; - nse-tandem) - basic_machine=nse-tandem - ;; - nsr-tandem) - basic_machine=nsr-tandem - ;; - op50n-* | op60c-*) - basic_machine=hppa1.1-oki - os=-proelf - ;; - openrisc | openrisc-*) - basic_machine=or32-unknown - ;; - os400) - basic_machine=powerpc-ibm - os=-os400 - ;; - OSE68000 | ose68000) - basic_machine=m68000-ericsson - os=-ose - ;; - os68k) - basic_machine=m68k-none - os=-os68k - ;; - pa-hitachi) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - paragon) - basic_machine=i860-intel - os=-osf - ;; - parisc) - basic_machine=hppa-unknown - os=-linux - ;; - parisc-*) - basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` - os=-linux - ;; - pbd) - basic_machine=sparc-tti - ;; - pbb) - basic_machine=m68k-tti - ;; - pc532 | pc532-*) - basic_machine=ns32k-pc532 - ;; - pc98) - basic_machine=i386-pc - ;; - pc98-*) - basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentium | p5 | k5 | k6 | nexgen | viac3) - basic_machine=i586-pc - ;; - pentiumpro | p6 | 6x86 | athlon | athlon_*) - basic_machine=i686-pc - ;; - pentiumii | pentium2 | pentiumiii | pentium3) - basic_machine=i686-pc - ;; - pentium4) - basic_machine=i786-pc - ;; - pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) - basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentiumpro-* | p6-* | 6x86-* | athlon-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentium4-*) - basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pn) - basic_machine=pn-gould - ;; - power) basic_machine=power-ibm - ;; - ppc | ppcbe) basic_machine=powerpc-unknown - ;; - ppc-* | ppcbe-*) - basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppcle | powerpclittle | ppc-le | powerpc-little) - basic_machine=powerpcle-unknown - ;; - ppcle-* | powerpclittle-*) - basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppc64) basic_machine=powerpc64-unknown - ;; - ppc64-* | ppc64p7-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppc64le | powerpc64little | ppc64-le | powerpc64-little) - basic_machine=powerpc64le-unknown - ;; - ppc64le-* | powerpc64little-*) - basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ps2) - basic_machine=i386-ibm - ;; - pw32) - basic_machine=i586-unknown - os=-pw32 - ;; - rdos | rdos64) - basic_machine=x86_64-pc - os=-rdos - ;; - rdos32) - basic_machine=i386-pc - os=-rdos - ;; - rom68k) - basic_machine=m68k-rom68k - os=-coff - ;; - rm[46]00) - basic_machine=mips-siemens - ;; - rtpc | rtpc-*) - basic_machine=romp-ibm - ;; - s390 | s390-*) - basic_machine=s390-ibm - ;; - s390x | s390x-*) - basic_machine=s390x-ibm - ;; - sa29200) - basic_machine=a29k-amd - os=-udi - ;; - sb1) - basic_machine=mipsisa64sb1-unknown - ;; - sb1el) - basic_machine=mipsisa64sb1el-unknown - ;; - sde) - basic_machine=mipsisa32-sde - os=-elf - ;; - sei) - basic_machine=mips-sei - os=-seiux - ;; - sequent) - basic_machine=i386-sequent - ;; - sh) - basic_machine=sh-hitachi - os=-hms - ;; - sh5el) - basic_machine=sh5le-unknown - ;; - sh64) - basic_machine=sh64-unknown - ;; - sparclite-wrs | simso-wrs) - basic_machine=sparclite-wrs - os=-vxworks - ;; - sps7) - basic_machine=m68k-bull - os=-sysv2 - ;; - spur) - basic_machine=spur-unknown - ;; - st2000) - basic_machine=m68k-tandem - ;; - stratus) - basic_machine=i860-stratus - os=-sysv4 - ;; - strongarm-* | thumb-*) - basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - sun2) - basic_machine=m68000-sun - ;; - sun2os3) - basic_machine=m68000-sun - os=-sunos3 - ;; - sun2os4) - basic_machine=m68000-sun - os=-sunos4 - ;; - sun3os3) - basic_machine=m68k-sun - os=-sunos3 - ;; - sun3os4) - basic_machine=m68k-sun - os=-sunos4 - ;; - sun4os3) - basic_machine=sparc-sun - os=-sunos3 - ;; - sun4os4) - basic_machine=sparc-sun - os=-sunos4 - ;; - sun4sol2) - basic_machine=sparc-sun - os=-solaris2 - ;; - sun3 | sun3-*) - basic_machine=m68k-sun - ;; - sun4) - basic_machine=sparc-sun - ;; - sun386 | sun386i | roadrunner) - basic_machine=i386-sun - ;; - sv1) - basic_machine=sv1-cray - os=-unicos - ;; - symmetry) - basic_machine=i386-sequent - os=-dynix - ;; - t3e) - basic_machine=alphaev5-cray - os=-unicos - ;; - t90) - basic_machine=t90-cray - os=-unicos - ;; - tile*) - basic_machine=$basic_machine-unknown - os=-linux-gnu - ;; - tx39) - basic_machine=mipstx39-unknown - ;; - tx39el) - basic_machine=mipstx39el-unknown - ;; - toad1) - basic_machine=pdp10-xkl - os=-tops20 - ;; - tower | tower-32) - basic_machine=m68k-ncr - ;; - tpf) - basic_machine=s390x-ibm - os=-tpf - ;; - udi29k) - basic_machine=a29k-amd - os=-udi - ;; - ultra3) - basic_machine=a29k-nyu - os=-sym1 - ;; - v810 | necv810) - basic_machine=v810-nec - os=-none - ;; - vaxv) - basic_machine=vax-dec - os=-sysv - ;; - vms) - basic_machine=vax-dec - os=-vms - ;; - vpp*|vx|vx-*) - basic_machine=f301-fujitsu - ;; - vxworks960) - basic_machine=i960-wrs - os=-vxworks - ;; - vxworks68) - basic_machine=m68k-wrs - os=-vxworks - ;; - vxworks29k) - basic_machine=a29k-wrs - os=-vxworks - ;; - w65*) - basic_machine=w65-wdc - os=-none - ;; - w89k-*) - basic_machine=hppa1.1-winbond - os=-proelf - ;; - xbox) - basic_machine=i686-pc - os=-mingw32 - ;; - xps | xps100) - basic_machine=xps100-honeywell - ;; - xscale-* | xscalee[bl]-*) - basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` - ;; - ymp) - basic_machine=ymp-cray - os=-unicos - ;; - z8k-*-coff) - basic_machine=z8k-unknown - os=-sim - ;; - z80-*-coff) - basic_machine=z80-unknown - os=-sim - ;; - none) - basic_machine=none-none - os=-none - ;; - -# 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) - basic_machine=hppa1.1-winbond - ;; - op50n) - basic_machine=hppa1.1-oki - ;; - op60c) - basic_machine=hppa1.1-oki - ;; - romp) - basic_machine=romp-ibm - ;; - mmix) - basic_machine=mmix-knuth - ;; - rs6000) - basic_machine=rs6000-ibm - ;; - vax) - basic_machine=vax-dec - ;; - pdp10) - # there are many clones, so DEC is not a safe bet - basic_machine=pdp10-unknown - ;; - pdp11) - basic_machine=pdp11-dec - ;; - we32k) - basic_machine=we32k-att - ;; - sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) - basic_machine=sh-unknown - ;; - sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) - basic_machine=sparc-sun - ;; - cydra) - basic_machine=cydra-cydrome - ;; - orion) - basic_machine=orion-highlevel - ;; - orion105) - basic_machine=clipper-highlevel - ;; - mac | mpw | mac-mpw) - basic_machine=m68k-apple - ;; - pmac | pmac-mpw) - basic_machine=powerpc-apple - ;; - *-unknown) - # Make sure to match an already-canonicalized machine name. - ;; - *) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; -esac - -# Here we canonicalize certain aliases for manufacturers. -case $basic_machine in - *-digital*) - basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` - ;; - *-commodore*) - basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` - ;; - *) - ;; -esac - -# Decode manufacturer-specific aliases for certain operating systems. - -if [ x"$os" != x"" ] -then -case $os in - # First match some system type aliases - # that might get confused with valid system types. - # -solaris* is a basic system type, with this one exception. - -auroraux) - os=-auroraux - ;; - -solaris1 | -solaris1.*) - os=`echo $os | sed -e 's|solaris1|sunos4|'` - ;; - -solaris) - os=-solaris2 - ;; - -svr4*) - os=-sysv4 - ;; - -unixware*) - os=-sysv4.2uw - ;; - -gnu/linux*) - os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` - ;; - # First accept the basic system types. - # The portable systems comes first. - # Each alternative MUST END IN A *, to match a version number. - # -sysv* is not here because it comes later, after sysvr4. - -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ - | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ - | -sym* | -kopensolaris* | -plan9* \ - | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ - | -aos* | -aros* \ - | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ - | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ - | -bitrig* | -openbsd* | -solidbsd* \ - | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ - | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ - | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ - | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ - | -chorusos* | -chorusrdb* | -cegcc* \ - | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ - | -linux-newlib* | -linux-musl* | -linux-uclibc* \ - | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ - | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ - | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ - | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ - | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ - | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ - | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*) - # Remember, each alternative MUST END IN *, to match a version number. - ;; - -qnx*) - case $basic_machine in - x86-* | i*86-*) - ;; - *) - os=-nto$os - ;; - esac - ;; - -nto-qnx*) - ;; - -nto*) - os=`echo $os | sed -e 's|nto|nto-qnx|'` - ;; - -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ - | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ - | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) - ;; - -mac*) - os=`echo $os | sed -e 's|mac|macos|'` - ;; - -linux-dietlibc) - os=-linux-dietlibc - ;; - -linux*) - os=`echo $os | sed -e 's|linux|linux-gnu|'` - ;; - -sunos5*) - os=`echo $os | sed -e 's|sunos5|solaris2|'` - ;; - -sunos6*) - os=`echo $os | sed -e 's|sunos6|solaris3|'` - ;; - -opened*) - os=-openedition - ;; - -os400*) - os=-os400 - ;; - -wince*) - os=-wince - ;; - -osfrose*) - os=-osfrose - ;; - -osf*) - os=-osf - ;; - -utek*) - os=-bsd - ;; - -dynix*) - os=-bsd - ;; - -acis*) - os=-aos - ;; - -atheos*) - os=-atheos - ;; - -syllable*) - os=-syllable - ;; - -386bsd) - os=-bsd - ;; - -ctix* | -uts*) - os=-sysv - ;; - -nova*) - os=-rtmk-nova - ;; - -ns2 ) - os=-nextstep2 - ;; - -nsk*) - os=-nsk - ;; - # Preserve the version number of sinix5. - -sinix5.*) - os=`echo $os | sed -e 's|sinix|sysv|'` - ;; - -sinix*) - os=-sysv4 - ;; - -tpf*) - os=-tpf - ;; - -triton*) - os=-sysv3 - ;; - -oss*) - os=-sysv3 - ;; - -svr4) - os=-sysv4 - ;; - -svr3) - os=-sysv3 - ;; - -sysvr4) - os=-sysv4 - ;; - # This must come after -sysvr4. - -sysv*) - ;; - -ose*) - os=-ose - ;; - -es1800*) - os=-ose - ;; - -xenix) - os=-xenix - ;; - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) - os=-mint - ;; - -aros*) - os=-aros - ;; - -zvmoe) - os=-zvmoe - ;; - -dicos*) - os=-dicos - ;; - -nacl*) - ;; - -none) - ;; - *) - # Get rid of the `-' at the beginning of $os. - os=`echo $os | sed 's/[^-]*-//'` - echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 - exit 1 - ;; -esac -else - -# Here we handle the default operating systems that come with various machines. -# The value should be what the vendor currently ships out the door with their -# machine or put another way, the most popular os provided with the machine. - -# Note that if you're going to try to match "-MANUFACTURER" here (say, -# "-sun"), then you have to tell the case statement up towards the top -# that MANUFACTURER isn't an operating system. Otherwise, code above -# will signal an error saying that MANUFACTURER isn't an operating -# system, and we'll never get to this point. - -case $basic_machine in - score-*) - os=-elf - ;; - spu-*) - os=-elf - ;; - *-acorn) - os=-riscix1.2 - ;; - arm*-rebel) - os=-linux - ;; - arm*-semi) - os=-aout - ;; - c4x-* | tic4x-*) - os=-coff - ;; - c8051-*) - os=-elf - ;; - hexagon-*) - os=-elf - ;; - tic54x-*) - os=-coff - ;; - tic55x-*) - os=-coff - ;; - tic6x-*) - os=-coff - ;; - # This must come before the *-dec entry. - pdp10-*) - os=-tops20 - ;; - pdp11-*) - os=-none - ;; - *-dec | vax-*) - os=-ultrix4.2 - ;; - m68*-apollo) - os=-domain - ;; - i386-sun) - os=-sunos4.0.2 - ;; - m68000-sun) - os=-sunos3 - ;; - m68*-cisco) - os=-aout - ;; - mep-*) - os=-elf - ;; - mips*-cisco) - os=-elf - ;; - mips*-*) - os=-elf - ;; - or32-*) - os=-coff - ;; - *-tti) # must be before sparc entry or we get the wrong os. - os=-sysv3 - ;; - sparc-* | *-sun) - os=-sunos4.1.1 - ;; - *-be) - os=-beos - ;; - *-haiku) - os=-haiku - ;; - *-ibm) - os=-aix - ;; - *-knuth) - os=-mmixware - ;; - *-wec) - os=-proelf - ;; - *-winbond) - os=-proelf - ;; - *-oki) - os=-proelf - ;; - *-hp) - os=-hpux - ;; - *-hitachi) - os=-hiux - ;; - i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) - os=-sysv - ;; - *-cbm) - os=-amigaos - ;; - *-dg) - os=-dgux - ;; - *-dolphin) - os=-sysv3 - ;; - m68k-ccur) - os=-rtu - ;; - m88k-omron*) - os=-luna - ;; - *-next ) - os=-nextstep - ;; - *-sequent) - os=-ptx - ;; - *-crds) - os=-unos - ;; - *-ns) - os=-genix - ;; - i370-*) - os=-mvs - ;; - *-next) - os=-nextstep3 - ;; - *-gould) - os=-sysv - ;; - *-highlevel) - os=-bsd - ;; - *-encore) - os=-bsd - ;; - *-sgi) - os=-irix - ;; - *-siemens) - os=-sysv4 - ;; - *-masscomp) - os=-rtu - ;; - f30[01]-fujitsu | f700-fujitsu) - os=-uxpv - ;; - *-rom68k) - os=-coff - ;; - *-*bug) - os=-coff - ;; - *-apple) - os=-macos - ;; - *-atari*) - os=-mint - ;; - *) - os=-none - ;; -esac -fi - -# Here we handle the case where we know the os, and the CPU type, but not the -# manufacturer. We pick the logical manufacturer. -vendor=unknown -case $basic_machine in - *-unknown) - case $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 - ;; - -mvs* | -opened*) - vendor=ibm - ;; - -os400*) - 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 - basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` - ;; -esac - -echo $basic_machine$os -exit - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "timestamp='" -# time-stamp-format: "%:y-%02m-%02d" -# time-stamp-end: "'" -# End: diff -Nru roger-router-1.8.14/configure roger-router-2.1.6/configure --- roger-router-1.8.14/configure 2015-12-10 21:33:42.000000000 +0000 +++ roger-router-2.1.6/configure 1970-01-01 00:00:00.000000000 +0000 @@ -1,22611 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for Roger Router 1.8.14. -# -# Report bugs to . -# -# -# Copyright (C) 1992-1996, 1998-2012 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 -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 - - -as_nl=' -' -export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi - -# The user is always right. -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 - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - -# 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 - test -z "$as_dir" && as_dir=. - 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 - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - exit 1 -fi - -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# 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'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -as_fn_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 -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 -" - 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 - exitcode=1; echo positional parameters were not saved. -fi -test x\$exitcode = x0 || 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 -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 -test \$(( 1 + 1 )) = 2 || exit 1" - if (eval "$as_required") 2>/dev/null; then : - as_have_required=yes -else - as_have_required=no -fi - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : - -else - 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 - test -z "$as_dir" && as_dir=. - 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_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : - CONFIG_SHELL=$as_shell as_have_required=yes - if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : - break 2 -fi -fi - done;; - esac - as_found=false -done -$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : - CONFIG_SHELL=$SHELL as_have_required=yes -fi; } -IFS=$as_save_IFS - - - 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'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -exit 255 -fi - - if test x$as_have_required = xno; then : - $as_echo "$0: This script requires a shell more modern than all" - $as_echo "$0: the shells that I found on your system." - if test x${ZSH_VERSION+set} = xset ; then - $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" - $as_echo "$0: be upgraded to zsh 4.3.4 or later." - else - $as_echo "$0: Please tell bug-autoconf@gnu.org and -$0: http://www.tabos.org/roger 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 -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=`$as_echo "$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 || -$as_echo 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 - as_fn_append () - { - eval $1=\$$1\$2 - } -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 - as_fn_arith () - { - as_val=`expr "$@" || test $? -eq 1` - } -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 - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 - fi - $as_echo "$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 || -$as_echo 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 ' - 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" || - { $as_echo "$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 -} - -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 - -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_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - -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='Roger Router' -PACKAGE_TARNAME='roger-router' -PACKAGE_VERSION='1.8.14' -PACKAGE_STRING='Roger Router 1.8.14' -PACKAGE_BUGREPORT='http://www.tabos.org/roger' -PACKAGE_URL='' - -ac_default_prefix=/usr -# Factoring default headers for most tests. -ac_includes_default="\ -#include -#ifdef HAVE_SYS_TYPES_H -# include -#endif -#ifdef HAVE_SYS_STAT_H -# include -#endif -#ifdef STDC_HEADERS -# include -# include -#else -# ifdef HAVE_STDLIB_H -# include -# endif -#endif -#ifdef HAVE_STRING_H -# if !defined STDC_HEADERS && defined HAVE_MEMORY_H -# include -# endif -# include -#endif -#ifdef HAVE_STRINGS_H -# include -#endif -#ifdef HAVE_INTTYPES_H -# include -#endif -#ifdef HAVE_STDINT_H -# include -#endif -#ifdef HAVE_UNISTD_H -# include -#endif" - -ac_default_prefix=/usr/local -ac_subst_vars='am__EXEEXT_FALSE -am__EXEEXT_TRUE -LTLIBOBJS -LIBOBJS -WITH_GNOTIFICATION_FALSE -WITH_GNOTIFICATION_TRUE -WITH_APPINDICATOR3_FALSE -WITH_APPINDICATOR3_TRUE -APPINDICATOR_LIBS -APPINDICATOR_CFLAGS -WITH_FAXOPHONE_FALSE -WITH_FAXOPHONE_TRUE -SPANDSP_LIBS -SPANDSP_CFLAGS -CAPI_LIBS -CAPI_CFLAGS -WITH_PORTAUDIO_FALSE -WITH_PORTAUDIO_TRUE -PORTAUDIO_LIBS -PORTAUDIO_CFLAGS -WITH_PULSEAUDIO_FALSE -WITH_PULSEAUDIO_TRUE -PULSEAUDIO_LIBS -PULSEAUDIO_CFLAGS -WITH_GSTREAMER1_FALSE -WITH_GSTREAMER1_TRUE -GSTREAMER1_LIBS -GSTREAMER1_CFLAGS -WITH_EBOOK_FALSE -WITH_EBOOK_TRUE -EBOOK_LIBS -EBOOK_CFLAGS -WITH_GDATA_FALSE -WITH_GDATA_TRUE -GDATA_LIBS -GDATA_CFLAGS -WITH_KWALLET_FALSE -WITH_KWALLET_TRUE -KWALLET_LIBS -KWALLET_CFLAGS -WITH_OSX_AB_FALSE -WITH_OSX_AB_TRUE -WITH_MACOS_KEYCHAIN_FALSE -WITH_MACOS_KEYCHAIN_TRUE -HAVE_SECRET_SOURCE_REGISTRY_FALSE -HAVE_SECRET_SOURCE_REGISTRY_TRUE -WITH_SECRET_FALSE -WITH_SECRET_TRUE -SECRET_LIBS -SECRET_CFLAGS -WITH_LIBNOTIFY_FALSE -WITH_LIBNOTIFY_TRUE -LIBNOTIFY_LIBS -LIBNOTIFY_CFLAGS -WITH_STATUSICON_FALSE -WITH_STATUSICON_TRUE -FAX_SPOOLER_LIBS -FAX_SPOOLER_CFLAGS -PEAS_GTK_LIBS -PEAS_GTK_CFLAGS -PEAS_LIBS -PEAS_CFLAGS -SOUP_LIBS -SOUP_CFLAGS -GMODULE_LIBS -GMODULE_CFLAGS -GTK_LIBS -GTK_CFLAGS -EXTRA_LIBS -EXTRA_CFLAGS -MACOSX_FALSE -MACOSX_TRUE -WIN32_FALSE -WIN32_TRUE -OS_LIBS -OS_CFLAGS -WINDRES -MKINSTALLDIRS -POSUB -POFILES -PO_IN_DATADIR_FALSE -PO_IN_DATADIR_TRUE -INTLLIBS -INSTOBJEXT -GMOFILES -DATADIRNAME -CATOBJEXT -CATALOGS -MSGFMT_OPTS -ALL_LINGUAS -INTLTOOL_PERL -GMSGFMT -MSGFMT -MSGMERGE -XGETTEXT -INTLTOOL_POLICY_RULE -INTLTOOL_SERVICE_RULE -INTLTOOL_THEME_RULE -INTLTOOL_SCHEMAS_RULE -INTLTOOL_CAVES_RULE -INTLTOOL_XML_NOMERGE_RULE -INTLTOOL_XML_RULE -INTLTOOL_KBD_RULE -INTLTOOL_XAM_RULE -INTLTOOL_UI_RULE -INTLTOOL_SOUNDLIST_RULE -INTLTOOL_SHEET_RULE -INTLTOOL_SERVER_RULE -INTLTOOL_PONG_RULE -INTLTOOL_OAF_RULE -INTLTOOL_PROP_RULE -INTLTOOL_KEYS_RULE -INTLTOOL_DIRECTORY_RULE -INTLTOOL_DESKTOP_RULE -intltool__v_merge_options_0 -intltool__v_merge_options_ -INTLTOOL_V_MERGE_OPTIONS -INTLTOOL__v_MERGE_0 -INTLTOOL__v_MERGE_ -INTLTOOL_V_MERGE -INTLTOOL_EXTRACT -INTLTOOL_MERGE -INTLTOOL_UPDATE -USE_NLS -GETTEXT_PACKAGE -INTLTOOL_XGETTEXT -INTLTOOL_MSGMERGE -ROGER_VERSION_MICRO -ROGER_VERSION_MINOR -ROGER_VERSION_MAJOR -GSETTINGS_RULES -GLIB_COMPILE_SCHEMAS -gsettingsschemadir -PKG_CONFIG_LIBDIR -PKG_CONFIG_PATH -PKG_CONFIG -GSETTINGS_DISABLE_SCHEMAS_COMPILE -CXXCPP -CPP -LT_SYS_LIBRARY_PATH -OTOOL64 -OTOOL -LIPO -NMEDIT -DSYMUTIL -MANIFEST_TOOL -RANLIB -ac_ct_AR -AR -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 -OBJDUMP -DLLTOOL -AS -found_cc -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__quote -am__include -DEPDIR -OBJEXT -EXEEXT -ac_ct_CC -CPPFLAGS -LDFLAGS -CFLAGS -CC -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 -AM_BACKSLASH -AM_DEFAULT_VERBOSITY -AM_DEFAULT_V -AM_V -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 -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' -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_schemas_compile -enable_nls -with_fax_spooler_type -with_libnotify -with_secret -with_macos_keychain -with_kwallet -with_gdata -with_ebook -with_gstreamer1 -with_pulseaudio -with_portaudio -with_faxophone -with_spandsp -with_appindicator3 -with_gnotification -enable_werror -' - ac_precious_vars='build_alias -host_alias -target_alias -CC -CFLAGS -LDFLAGS -LIBS -CPPFLAGS -CXX -CXXFLAGS -CCC -LT_SYS_LIBRARY_PATH -CPP -CXXCPP -PKG_CONFIG -PKG_CONFIG_PATH -PKG_CONFIG_LIBDIR -EXTRA_CFLAGS -EXTRA_LIBS -GTK_CFLAGS -GTK_LIBS -GMODULE_CFLAGS -GMODULE_LIBS -SOUP_CFLAGS -SOUP_LIBS -PEAS_CFLAGS -PEAS_LIBS -PEAS_GTK_CFLAGS -PEAS_GTK_LIBS -FAX_SPOOLER_CFLAGS -FAX_SPOOLER_LIBS -CAPI_CFLAGS -CAPI_LIBS' - - -# 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' -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 - - # Accept the important Cygnus configure options, so we can diagnose typos. - - 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=`$as_echo "$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=`$as_echo "$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 ;; - - -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=`$as_echo "$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=`$as_echo "$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. - $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - $as_echo "$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" ;; - *) $as_echo "$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 -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 || -$as_echo 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 Roger Router 1.8.14 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] - --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/roger-router] - --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 Roger Router 1.8.14:";; - 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) - --disable-schemas-compile - Disable regeneration of gschemas.compiled on install - --disable-nls do not use Native Language Support - --disable-werror don't use gcc's -Werror option when building - -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-fax-spooler-type=[ARG] - type of fax printer spooler to be supported - (possible values: spoolerdir, socket-server or auto) - [default=auto] - --with-libnotify=[ARG] Use libnotify (possible values: no, yes, check, or - the path to libnotify) [default=check] - --with-secret=[ARG] Use secret (possible values: no, yes, check, or the - path to secret) [default=check] - --with-macos-keychain=[ARG] - Use macos-keychain (possible values: no, yes, check) - [default=check] - --with-kwallet=[ARG] Use kwallet (possible values: no, yes or the path to - kwallet) [default=no] - --with-gdata=[ARG] Use gdata (possible values: no, yes, check, or the - path to secret) [default=check] - --with-ebook=[ARG] Use ebook (possible values: no, yes, check, or the - path to ebook) [default=check] - --with-gstreamer1=[ARG] Use gstreamer-1.0 (possible values: no, yes, check, - or the path to gstreamer) [default=check] - --with-pulseaudio=[ARG] Use pulseaudio (possible values: no, yes, check, or - the path to pulseaudio) [default=no] - --with-portaudio=[ARG] Use portaudio (possible values: no, yes, check, or - the path to portaudio) [default=no] - --with-faxophone=[ARG] Use faxophone (possible values: yes or no) - [default=yes] - --with-spandsp=[ARG] Use spandsp (possible values: yes, check, or the - path to spandsp) [default=check] - --with-appindicator3=[ARG] - Use appindicator3 (possible values: no, yes, check, - or the path to appindicator3) [default=check] - --with-gnotifcation=[ARG] - Use gnotification (possible values: no, yes, check, - or the path to gnotification) [default=check] - -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. - CPP C preprocessor - CXXCPP C++ preprocessor - PKG_CONFIG path to pkg-config utility - PKG_CONFIG_PATH - directories to add to pkg-config's search path - PKG_CONFIG_LIBDIR - path overriding pkg-config's built-in search path - EXTRA_CFLAGS - C compiler flags for EXTRA, overriding pkg-config - EXTRA_LIBS linker flags for EXTRA, overriding pkg-config - GTK_CFLAGS C compiler flags for GTK, overriding pkg-config - GTK_LIBS linker flags for GTK, overriding pkg-config - GMODULE_CFLAGS - C compiler flags for GMODULE, overriding pkg-config - GMODULE_LIBS - linker flags for GMODULE, overriding pkg-config - SOUP_CFLAGS C compiler flags for SOUP, overriding pkg-config - SOUP_LIBS linker flags for SOUP, overriding pkg-config - PEAS_CFLAGS C compiler flags for PEAS, overriding pkg-config - PEAS_LIBS linker flags for PEAS, overriding pkg-config - PEAS_GTK_CFLAGS - C compiler flags for PEAS_GTK, overriding pkg-config - PEAS_GTK_LIBS - linker flags for PEAS_GTK, overriding pkg-config - FAX_SPOOLER_CFLAGS - C compiler flags for FAX_SPOOLER, overriding pkg-config - FAX_SPOOLER_LIBS - linker flags for FAX_SPOOLER, overriding pkg-config - CAPI_CFLAGS C compiler flags for CAPI, overriding pkg-config - CAPI_LIBS linker flags for CAPI, overriding pkg-config - -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=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$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 guested configure. - 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 - $as_echo "$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 -Roger Router configure 1.8.14 -generated by GNU Autoconf 2.69 - -Copyright (C) 2012 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 - 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\"" -$as_echo "$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 - $as_echo "$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 - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -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 - 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\"" -$as_echo "$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 - $as_echo "$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 - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -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$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\"" -$as_echo "$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 - $as_echo "$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 - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -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_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 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - eval "$3=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_header_compile - -# ac_fn_c_try_cpp LINENO -# ---------------------- -# Try to preprocess conftest.$ac_ext, and return whether this succeeded. -ac_fn_c_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\"" -$as_echo "$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 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } > conftest.i && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_cpp - -# ac_fn_c_try_run LINENO -# ---------------------- -# Try to link 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\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$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\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then : - ac_retval=0 -else - $as_echo "$as_me: program exited with status $ac_status" >&5 - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=$ac_status -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_func LINENO FUNC VAR -# ---------------------------------- -# Tests whether FUNC exists, setting the cache variable VAR accordingly -ac_fn_c_check_func () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#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 (); -/* 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 () -{ -return $2 (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - eval "$3=yes" -else - eval "$3=no" -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$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\"" -$as_echo "$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 - $as_echo "$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 - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -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$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\"" -$as_echo "$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 - $as_echo "$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 - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -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_header_mongrel LINENO HEADER VAR INCLUDES -# ------------------------------------------------------- -# Tests whether HEADER exists, giving a warning if it cannot be compiled using -# the include files in INCLUDES and setting the cache variable VAR -# accordingly. -ac_fn_c_check_header_mongrel () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if eval \${$3+:} false; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 -$as_echo_n "checking $2 usability... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -#include <$2> -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_header_compiler=yes -else - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 -$as_echo_n "checking $2 presence... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <$2> -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - ac_header_preproc=yes -else - ac_header_preproc=no -fi -rm -f conftest.err conftest.i conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( - yes:no: ) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} - ;; - no:yes:* ) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} -( $as_echo "## ----------------------------------------- ## -## Report this to http://www.tabos.org/roger ## -## ----------------------------------------- ##" - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - eval "$3=\$ac_header_compiler" -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_header_mongrel -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 Roger Router $as_me 1.8.14, which was -generated by GNU Autoconf 2.69. Invocation command line was - - $ $0 $@ - -_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 - test -z "$as_dir" && as_dir=. - $as_echo "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=`$as_echo "$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=$? - # Save into config.log some information that might help in debugging. - { - echo - - $as_echo "## ---------------- ## -## 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_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$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 - - $as_echo "## ----------------- ## -## Output variables. ## -## ----------------- ##" - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - $as_echo "$ac_var='\''$ac_val'\''" - done | sort - echo - - if test -n "$ac_subst_files"; then - $as_echo "## ------------------- ## -## File substitutions. ## -## ------------------- ##" - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - $as_echo "$ac_var='\''$ac_val'\''" - done | sort - echo - fi - - if test -s confdefs.h; then - $as_echo "## ----------- ## -## confdefs.h. ## -## ----------- ##" - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - $as_echo "$as_me: caught signal $ac_signal" - $as_echo "$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 - -$as_echo "/* confdefs.h */" > confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_URL "$PACKAGE_URL" -_ACEOF - - -# Let the site file select an alternate cache file if it wants to. -# Prefer an explicitly selected file to automatically selected ones. -ac_site_file1=NONE -ac_site_file2=NONE -if test -n "$CONFIG_SITE"; then - # We do not want a PATH search for config.site. - case $CONFIG_SITE in #(( - -*) ac_site_file1=./$CONFIG_SITE;; - */*) ac_site_file1=$CONFIG_SITE;; - *) ac_site_file1=./$CONFIG_SITE;; - esac -elif test "x$prefix" != xNONE; then - ac_site_file1=$prefix/share/config.site - ac_site_file2=$prefix/etc/config.site -else - ac_site_file1=$ac_default_prefix/share/config.site - ac_site_file2=$ac_default_prefix/etc/config.site -fi -for ac_site_file in "$ac_site_file1" "$ac_site_file2" -do - test "x$ac_site_file" = xNONE && continue - if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 -$as_echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" \ - || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$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 - { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 -$as_echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . "$cache_file";; - *) . "./$cache_file";; - esac - fi -else - { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 -$as_echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -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,) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 -$as_echo "$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 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 -$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - ac_cache_corrupted=: - else - { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} - eval $ac_var=\$ac_old_val - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 -$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 -$as_echo "$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=`$as_echo "$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 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 -$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error $? "run \`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 - - -# Check whether --enable-silent-rules was given. -if test "${enable_silent_rules+set}" = set; then : - enableval=$enable_silent_rules; -fi - -case $enable_silent_rules in # ((( - yes) AM_DEFAULT_VERBOSITY=0;; - no) AM_DEFAULT_VERBOSITY=1;; - *) AM_DEFAULT_VERBOSITY=0;; -esac -am_make=${MAKE-make} -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 -$as_echo_n "checking whether $am_make supports nested variables... " >&6; } -if ${am_cv_make_support_nested_variables+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 -$as_echo "$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='\' - - - -am__api_version='1.15' - -ac_aux_dir= -for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 -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. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. - - -# 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. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 -$as_echo_n "checking for a BSD-compatible install... " >&6; } -if test -z "$INSTALL"; then -if ${ac_cv_path_install+:} false; then : - $as_echo_n "(cached) " >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -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 - -fi - if test "${ac_cv_path_install+set}" = set; 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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 -$as_echo "$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' - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 -$as_echo_n "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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "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=`$as_echo "$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 - case $am_aux_dir in - *\ * | *\ *) - MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; - *) - MISSING="\${SHELL} $am_aux_dir/missing" ;; - esac -fi -# Use eval to expand $SHELL -if eval "$MISSING --is-lightweight"; then - am_missing_run="$MISSING " -else - am_missing_run= - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 -$as_echo "$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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 -$as_echo "$STRIP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 -$as_echo "$ac_ct_STRIP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$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" - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 -$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } -if test -z "$MKDIR_P"; then - if ${ac_cv_path_mkdir+:} false; then : - $as_echo_n "(cached) " >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - 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 (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ - '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 - -fi - - test -d ./--version && rmdir ./--version - if test "${ac_cv_path_mkdir+set}" = set; then - MKDIR_P="$ac_cv_path_mkdir -p" - else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P 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. - MKDIR_P="$ac_install_sh -d" - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 -$as_echo "$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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AWK+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 -$as_echo "$AWK" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$AWK" && break -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } -set x ${MAKE-make} -ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - SET_MAKE= -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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 - -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='roger-router' - VERSION='1.8.14' - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF - -# 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 -' - - - - - - -# 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_headers="$ac_config_headers config.h" - - - - -# Check for compilers. -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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$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 -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi - - -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$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. -$as_echo "$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\"" -$as_echo "$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 - $as_echo "$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 () -{ - - ; - 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. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 -$as_echo_n "checking whether the C compiler works... " >&6; } -ac_link_default=`$as_echo "$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\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link_default") 2>&5 - ac_status=$? - $as_echo "$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+set}" = set && 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 - ac_file='' -fi -if test -z "$ac_file"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$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 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 -$as_echo_n "checking for C compiler default output file name... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 -$as_echo "$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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 -$as_echo_n "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\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$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 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$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; } -fi -rm -f conftest conftest$ac_cv_exeext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 -$as_echo "$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 () -{ -FILE *f = fopen ("conftest.out", "w"); - 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. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 -$as_echo_n "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\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$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\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$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 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details" "$LINENO" 5; } - fi - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 -$as_echo "$cross_compiling" >&6; } - -rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out -ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 -$as_echo_n "checking for suffix of object files... " >&6; } -if ${ac_cv_objext+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - 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\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_compile") 2>&5 - ac_status=$? - $as_echo "$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 - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$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; } -fi -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 -$as_echo "$ac_cv_objext" >&6; } -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 -$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } -if ${ac_cv_c_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_compiler_gnu=yes -else - ac_compiler_gnu=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 -$as_echo "$ac_cv_c_compiler_gnu" >&6; } -if test $ac_compiler_gnu = yes; then - GCC=yes -else - GCC= -fi -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 -$as_echo_n "checking whether $CC accepts -g... " >&6; } -if ${ac_cv_prog_cc_g+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_g=yes -else - CFLAGS="" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -else - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - 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.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 -$as_echo "$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; 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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } -if ${ac_cv_prog_cc_c89+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -struct stat; -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - 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; -} - -/* 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 don't provoke an error unfortunately, instead are silently treated - as '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's necessary to write '\x00'==0 to get something - that's 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 **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_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 - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; - xno) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c89" != xno; then : - -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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 -$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } -if ${am_cv_prog_cc_c_o+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - 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 -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 -$as_echo "$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" - - -am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo this is the am__doit target -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 -$as_echo_n "checking for style of include used by $am_make... " >&6; } -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# Ignore all kinds of additional output from 'make'. -case `$am_make -s -f confmf 2> /dev/null` in #( -*the\ am__doit\ target*) - am__include=include - am__quote= - _am_result=GNU - ;; -esac -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - case `$am_make -s -f confmf 2> /dev/null` in #( - *the\ am__doit\ target*) - am__include=.include - am__quote="\"" - _am_result=BSD - ;; - esac -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 -$as_echo "$_am_result" >&6; } -rm -f confinc confmf - -# Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; 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= - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 -$as_echo_n "checking dependency style of $depcc... " >&6; } -if ${am_cv_CC_dependencies_compiler_type+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 -$as_echo "$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 - 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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CXX=$ac_cv_prog_CXX -if test -n "$CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 -$as_echo "$CXX" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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 -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX -if test -n "$ac_ct_CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 -$as_echo "$ac_ct_CXX" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$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. -$as_echo "$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\"" -$as_echo "$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 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 -$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } -if ${ac_cv_cxx_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - ac_compiler_gnu=yes -else - ac_compiler_gnu=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 -$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } -if test $ac_compiler_gnu = yes; then - GXX=yes -else - GXX= -fi -ac_test_CXXFLAGS=${CXXFLAGS+set} -ac_save_CXXFLAGS=$CXXFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 -$as_echo_n "checking whether $CXX accepts -g... " >&6; } -if ${ac_cv_prog_cxx_g+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - ac_cv_prog_cxx_g=yes -else - CXXFLAGS="" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - -else - ac_cxx_werror_flag=$ac_save_cxx_werror_flag - CXXFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - 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.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cxx_werror_flag=$ac_save_cxx_werror_flag -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 -$as_echo "$ac_cv_prog_cxx_g" >&6; } -if test "$ac_test_CXXFLAGS" = set; 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_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= - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 -$as_echo_n "checking dependency style of $depcc... " >&6; } -if ${am_cv_CXX_dependencies_compiler_type+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 -$as_echo "$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 - - -# Extract the first word of ""$CC"", so it can be a program name with args. -set dummy "$CC"; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_found_cc+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$found_cc"; then - ac_cv_prog_found_cc="$found_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 - test -z "$as_dir" && as_dir=. - 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_found_cc="yes" - $as_echo "$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_prog_found_cc" && ac_cv_prog_found_cc="no" -fi -fi -found_cc=$ac_cv_prog_found_cc -if test -n "$found_cc"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_cc" >&5 -$as_echo "$found_cc" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - - -# Check for libtool -case `pwd` in - *\ * | *\ *) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 -$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; -esac - - - -macro_version='2.4.6' -macro_revision='2.4.6' - - - - - - - - - - - - - -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 - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 -$as_echo_n "checking build system type... " >&6; } -if ${ac_cv_build+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 -$as_echo "$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 - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 -$as_echo_n "checking host system type... " >&6; } -if ${ac_cv_host+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 -$as_echo "$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 - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 -$as_echo_n "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*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 -$as_echo "printf" >&6; } ;; - print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 -$as_echo "print -r" >&6; } ;; - *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 -$as_echo "cat" >&6; } ;; -esac - - - - - - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 -$as_echo_n "checking for a sed that does not truncate output... " >&6; } -if ${ac_cv_path_SED+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo '' >> "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 - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 -$as_echo "$ac_cv_path_SED" >&6; } - SED="$ac_cv_path_SED" - rm -f conftest.sed - -test -z "$SED" && SED=sed -Xsed="$SED -e 1s/^X//" - - - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -$as_echo_n "checking for grep that handles long lines and -e... " >&6; } -if ${ac_cv_path_GREP+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo '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 - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -$as_echo "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -$as_echo_n "checking for egrep... " >&6; } -if ${ac_cv_path_EGREP+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo '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 -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -$as_echo "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 -$as_echo_n "checking for fgrep... " >&6; } -if ${ac_cv_path_FGREP+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo '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 -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 -$as_echo "$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+set}" = set; then : - withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -ac_prog=ld -if test yes = "$GCC"; then - # Check if gcc -print-prog-name=ld gives a path. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 -$as_echo_n "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 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 -$as_echo_n "checking for GNU ld... " >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 -$as_echo_n "checking for non-GNU ld... " >&6; } -fi -if ${lt_cv_path_LD+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 -$as_echo "$LD" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi -test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } -if ${lt_cv_prog_gnu_ld+:} false; then : - $as_echo_n "(cached) " >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &5 -$as_echo "$lt_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$lt_cv_prog_gnu_ld - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 -$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } -if ${lt_cv_path_NM+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 -$as_echo "$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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_DUMPBIN+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -DUMPBIN=$ac_cv_prog_DUMPBIN -if test -n "$DUMPBIN"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 -$as_echo "$DUMPBIN" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN -if test -n "$ac_ct_DUMPBIN"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 -$as_echo "$ac_ct_DUMPBIN" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$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 - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 -$as_echo_n "checking the name lister ($NM) interface... " >&6; } -if ${lt_cv_nm_interface+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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* -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 -$as_echo "$lt_cv_nm_interface" >&6; } - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 -$as_echo_n "checking whether ln -s works... " >&6; } -LN_S=$as_ln_s -if test "$LN_S" = "ln -s"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 -$as_echo "no, using $LN_S" >&6; } -fi - -# find the maximum length of command line arguments -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 -$as_echo_n "checking the maximum length of command line arguments... " >&6; } -if ${lt_cv_sys_max_cmd_len+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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* | 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 - -fi - -if test -n "$lt_cv_sys_max_cmd_len"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 -$as_echo "$lt_cv_sys_max_cmd_len" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 -$as_echo "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 - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 -$as_echo_n "checking how to convert $build file names to $host format... " >&6; } -if ${lt_cv_to_host_file_cmd+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - -fi - -to_host_file_cmd=$lt_cv_to_host_file_cmd -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 -$as_echo "$lt_cv_to_host_file_cmd" >&6; } - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 -$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } -if ${lt_cv_to_tool_file_cmd+:} false; then : - $as_echo_n "(cached) " >&6 -else - #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 - -fi - -to_tool_file_cmd=$lt_cv_to_tool_file_cmd -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 -$as_echo "$lt_cv_to_tool_file_cmd" >&6; } - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 -$as_echo_n "checking for $LD option to reload object files... " >&6; } -if ${lt_cv_ld_reload_flag+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_ld_reload_flag='-r' -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 -$as_echo "$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}objdump", so it can be a program name with args. -set dummy ${ac_tool_prefix}objdump; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_OBJDUMP+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -OBJDUMP=$ac_cv_prog_OBJDUMP -if test -n "$OBJDUMP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 -$as_echo "$OBJDUMP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP -if test -n "$ac_ct_OBJDUMP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 -$as_echo "$ac_ct_OBJDUMP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_OBJDUMP" = x; then - OBJDUMP="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$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 - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 -$as_echo_n "checking how to recognize dependent libraries... " >&6; } -if ${lt_cv_deplibs_check_method+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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='/usr/bin/file -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*) - 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=/usr/bin/file - 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=/usr/bin/file - 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=/usr/bin/file - 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 - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 -$as_echo "$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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_DLLTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -DLLTOOL=$ac_cv_prog_DLLTOOL -if test -n "$DLLTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 -$as_echo "$DLLTOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL -if test -n "$ac_ct_DLLTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 -$as_echo "$ac_ct_DLLTOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_DLLTOOL" = x; then - DLLTOOL="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$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 - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 -$as_echo_n "checking how to associate runtime and link libraries... " >&6; } -if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 -$as_echo "$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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -AR=$ac_cv_prog_AR -if test -n "$AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 -$as_echo "$AR" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_AR=$ac_cv_prog_ac_ct_AR -if test -n "$ac_ct_AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 -$as_echo "$ac_ct_AR" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$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} -: ${AR_FLAGS=cru} - - - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 -$as_echo_n "checking for archiver @FILE support... " >&6; } -if ${lt_cv_ar_at_file+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_ar_at_file=no - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - 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=$? - $as_echo "$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=$? - $as_echo "$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.$ac_ext - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 -$as_echo "$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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 -$as_echo "$STRIP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 -$as_echo "$ac_ct_STRIP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -RANLIB=$ac_cv_prog_RANLIB -if test -n "$RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 -$as_echo "$RANLIB" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB -if test -n "$ac_ct_RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 -$as_echo "$ac_ct_RANLIB" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_RANLIB" = x; then - RANLIB=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$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. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 -$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } -if ${lt_cv_sys_global_symbol_pipe+:} false; then : - $as_echo_n "(cached) " >&6 -else - -# 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++, - # 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=$? - $as_echo "$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=$? - $as_echo "$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=$? - $as_echo "$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 - -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 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 -$as_echo "failed" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 -$as_echo "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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 -$as_echo_n "checking for sysroot... " >&6; } - -# Check whether --with-sysroot was given. -if test "${with_sysroot+set}" = set; then : - withval=$with_sysroot; -else - with_sysroot=no -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|'') - ;; #( - *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 -$as_echo "$with_sysroot" >&6; } - as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 - ;; -esac - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 -$as_echo "${lt_sysroot:-no}" >&6; } - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 -$as_echo_n "checking for a working dd... " >&6; } -if ${ac_cv_path_lt_DD+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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 -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 -$as_echo "$ac_cv_path_lt_DD" >&6; } - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 -$as_echo_n "checking how to truncate binary pipes... " >&6; } -if ${lt_cv_truncate_bin+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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" -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 -$as_echo "$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+set}" = set; 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=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - case `/usr/bin/file 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=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - if test yes = "$lt_cv_prog_gnu_ld"; then - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" - ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `/usr/bin/file 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=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - emul=elf - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - emul="${emul}32" - ;; - *64-bit*) - emul="${emul}64" - ;; - esac - case `/usr/bin/file conftest.$ac_objext` in - *MSB*) - emul="${emul}btsmip" - ;; - *LSB*) - emul="${emul}ltsmip" - ;; - esac - case `/usr/bin/file 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=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - case `/usr/bin/file conftest.o` in - *32-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_i386_fbsd" - ;; - x86_64-*linux*) - case `/usr/bin/file 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" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 -$as_echo_n "checking whether the C compiler needs -belf... " >&6; } -if ${lt_cv_cc_needs_belf+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - lt_cv_cc_needs_belf=yes -else - lt_cv_cc_needs_belf=no -fi -rm -f core conftest.err conftest.$ac_objext \ - 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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 -$as_echo "$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=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - case `/usr/bin/file 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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL -if test -n "$MANIFEST_TOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 -$as_echo "$MANIFEST_TOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL -if test -n "$ac_ct_MANIFEST_TOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 -$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_MANIFEST_TOOL" = x; then - MANIFEST_TOOL=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 -$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } -if ${lt_cv_path_mainfest_tool+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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* -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 -$as_echo "$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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_DSYMUTIL+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -DSYMUTIL=$ac_cv_prog_DSYMUTIL -if test -n "$DSYMUTIL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 -$as_echo "$DSYMUTIL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL -if test -n "$ac_ct_DSYMUTIL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 -$as_echo "$ac_ct_DSYMUTIL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_DSYMUTIL" = x; then - DSYMUTIL=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_NMEDIT+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -NMEDIT=$ac_cv_prog_NMEDIT -if test -n "$NMEDIT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 -$as_echo "$NMEDIT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT -if test -n "$ac_ct_NMEDIT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 -$as_echo "$ac_ct_NMEDIT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_NMEDIT" = x; then - NMEDIT=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_LIPO+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -LIPO=$ac_cv_prog_LIPO -if test -n "$LIPO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 -$as_echo "$LIPO" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_LIPO+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO -if test -n "$ac_ct_LIPO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 -$as_echo "$ac_ct_LIPO" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_LIPO" = x; then - LIPO=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_OTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -OTOOL=$ac_cv_prog_OTOOL -if test -n "$OTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 -$as_echo "$OTOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL -if test -n "$ac_ct_OTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 -$as_echo "$ac_ct_OTOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_OTOOL" = x; then - OTOOL=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_OTOOL64+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -OTOOL64=$ac_cv_prog_OTOOL64 -if test -n "$OTOOL64"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 -$as_echo "$OTOOL64" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 -if test -n "$ac_ct_OTOOL64"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 -$as_echo "$ac_ct_OTOOL64" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_OTOOL64" = x; then - OTOOL64=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 -$as_echo_n "checking for -single_module linker flag... " >&6; } -if ${lt_cv_apple_cc_single_mod+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 -$as_echo "$lt_cv_apple_cc_single_mod" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 -$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } -if ${lt_cv_ld_exported_symbols_list+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - lt_cv_ld_exported_symbols_list=yes -else - lt_cv_ld_exported_symbols_list=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS=$save_LDFLAGS - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 -$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 -$as_echo_n "checking for -force_load linker flag... " >&6; } -if ${lt_cv_ld_force_load+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 cru libconftest.a conftest.o" >&5 - $AR cru 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 - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 -$as_echo "$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*) # darwin 5.x on - # if running on 10.5 or later, the deployment target defaults - # to the OS version, if on x86, and 10.4, the deployment - # target defaults to 10.4. Don't you love it? - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in - 10.0,*86*-darwin8*|10.0,*-darwin[91]*) - _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; - 10.[012][,.]*) - _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; - 10.*) - _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 - 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_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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 -$as_echo_n "checking how to run the C preprocessor... " >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if ${ac_cv_prog_CPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # 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. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - -else - # Broken: fails on valid input. -continue -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_c_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue -else - # Passes both tests. -ac_preproc_ok=: -break -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_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 -$as_echo "$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # 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. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - -else - # Broken: fails on valid input. -continue -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_c_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue -else - # Passes both tests. -ac_preproc_ok=: -break -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 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } -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 - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 -$as_echo_n "checking for ANSI C header files... " >&6; } -if ${ac_cv_header_stdc+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_header_stdc=yes -else - ac_cv_header_stdc=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then : - : -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - -else - ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 -$as_echo "$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -$as_echo "#define STDC_HEADERS 1" >>confdefs.h - -fi - -# On IRIX 5.3, sys/types and inttypes.h are conflicting. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_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 `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - -for ac_header in dlfcn.h -do : - 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 : - cat >>confdefs.h <<_ACEOF -#define HAVE_DLFCN_H 1 -_ACEOF - -fi - -done - - - - -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_win32_dll=yes - -case $host in -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. -set dummy ${ac_tool_prefix}as; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AS+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$AS"; then - ac_cv_prog_AS="$AS" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - 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_AS="${ac_tool_prefix}as" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -AS=$ac_cv_prog_AS -if test -n "$AS"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 -$as_echo "$AS" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_AS"; then - ac_ct_AS=$AS - # Extract the first word of "as", so it can be a program name with args. -set dummy as; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_AS+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_AS"; then - ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - 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_AS="as" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_AS=$ac_cv_prog_ac_ct_AS -if test -n "$ac_ct_AS"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 -$as_echo "$ac_ct_AS" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_AS" = x; then - AS="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - AS=$ac_ct_AS - fi -else - AS="$ac_cv_prog_AS" -fi - - 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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_DLLTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -DLLTOOL=$ac_cv_prog_DLLTOOL -if test -n "$DLLTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 -$as_echo "$DLLTOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL -if test -n "$ac_ct_DLLTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 -$as_echo "$ac_ct_DLLTOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_DLLTOOL" = x; then - DLLTOOL="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$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 - - 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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_OBJDUMP+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -OBJDUMP=$ac_cv_prog_OBJDUMP -if test -n "$OBJDUMP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 -$as_echo "$OBJDUMP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - test -z "$as_dir" && as_dir=. - 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" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP -if test -n "$ac_ct_OBJDUMP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 -$as_echo "$ac_ct_OBJDUMP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_OBJDUMP" = x; then - OBJDUMP="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$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 - - ;; -esac - -test -z "$AS" && AS=as - - - - - -test -z "$DLLTOOL" && DLLTOOL=dlltool - - - - - -test -z "$OBJDUMP" && OBJDUMP=objdump - - - - - - - - enable_dlopen=no - - - - # Check whether --enable-shared was given. -if test "${enable_shared+set}" = set; 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 - enable_shared=yes -fi - - - - - - - - - - # Check whether --enable-static was given. -if test "${enable_static+set}" = set; 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 - enable_static=yes -fi - - - - - - - - - - -# Check whether --with-pic was given. -if test "${with_pic+set}" = set; 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 - pic_mode=default -fi - - - - - - - - - # Check whether --enable-fast-install was given. -if test "${enable_fast_install+set}" = set; 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 - enable_fast_install=yes -fi - - - - - - - - - shared_archive_member_spec= -case $host,$enable_shared in -power*-*-aix[5-9]*,yes) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 -$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } - -# Check whether --with-aix-soname was given. -if test "${with_aix_soname+set}" = set; 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 - if ${lt_cv_with_aix_soname+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_with_aix_soname=aix -fi - - with_aix_soname=$lt_cv_with_aix_soname -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 -$as_echo "$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 - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 -$as_echo_n "checking for objdir... " >&6; } -if ${lt_cv_objdir+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 -$as_echo "$lt_cv_objdir" >&6; } -objdir=$lt_cv_objdir - - - - - -cat >>confdefs.h <<_ACEOF -#define LT_OBJDIR "$lt_cv_objdir/" -_ACEOF - - - - -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, -# which needs '.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 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 -$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } -if ${lt_cv_path_MAGIC_CMD+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 -fi - -MAGIC_CMD=$lt_cv_path_MAGIC_CMD -if test -n "$MAGIC_CMD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 -$as_echo "$MAGIC_CMD" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - - - -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 -$as_echo_n "checking for file... " >&6; } -if ${lt_cv_path_MAGIC_CMD+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 -fi - -MAGIC_CMD=$lt_cv_path_MAGIC_CMD -if test -n "$MAGIC_CMD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 -$as_echo "$MAGIC_CMD" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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 - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } -if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -$as_echo "$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 - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } -if ${lt_cv_prog_compiler_pic+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_pic=$lt_prog_compiler_pic -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 -$as_echo "$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 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } -if ${lt_cv_prog_compiler_pic_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 -$as_echo "$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\" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } -if ${lt_cv_prog_compiler_static_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 -$as_echo "$lt_cv_prog_compiler_static_works" >&6; } - -if test yes = "$lt_cv_prog_compiler_static_works"; then - : -else - lt_prog_compiler_static= -fi - - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 -$as_echo "$lt_cv_prog_compiler_c_o" >&6; } - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 -$as_echo "$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 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 -$as_echo_n "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 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 -$as_echo "$hard_links" >&6; } - if test no = "$hard_links"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 -$as_echo "$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 - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -$as_echo_n "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++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test yes != "$GCC"; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - 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 - ;; - - 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 == "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 ${lt_cv_aix_libpath_+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - 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$ac_exeext conftest.$ac_ext - if test -z "$lt_cv_aix_libpath_"; then - lt_cv_aix_libpath_=/usr/lib:/lib - fi - -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 ${lt_cv_aix_libpath_+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - 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$ac_exeext conftest.$ac_ext - if test -z "$lt_cv_aix_libpath_"; then - lt_cv_aix_libpath_=/usr/lib:/lib - fi - -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++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - case $cc_basename in - cl*) - # Native MSVC - 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 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*) - 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) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 -$as_echo_n "checking if $CC understands -b... " >&6; } -if ${lt_cv_prog_compiler__b+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 -$as_echo "$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. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 -$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } -if ${lt_cv_irix_exported_symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - lt_cv_irix_exported_symbol=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS=$save_LDFLAGS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 -$as_echo "$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 - ;; - - 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 - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 -$as_echo "$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. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } -if ${lt_cv_archive_cmds_need_lc+:} false; then : - $as_echo_n "(cached) " >&6 -else - $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=$? - $as_echo "$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=$? - $as_echo "$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* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 -$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } - archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc - ;; - esac - fi - ;; -esac - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 -$as_echo_n "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*) - # Native MSVC - 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 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*) - # 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 ${lt_cv_shlibpath_overrides_runpath+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 () -{ - - ; - 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$ac_exeext conftest.$ac_ext - LDFLAGS=$save_LDFLAGS - libdir=$save_libdir - -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 - - # Add ABI-specific directories to the system library path. - sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" - - # 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="$sys_lib_dlsearch_path_spec $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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 -$as_echo "$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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 -$as_echo_n "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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 -$as_echo "$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 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_dl_dlopen=yes -else - ac_cv_lib_dl_dlopen=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 -$as_echo "$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 - - lt_cv_dlopen=dyld - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - -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 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 -$as_echo_n "checking for shl_load in -ldld... " >&6; } -if ${ac_cv_lib_dld_shl_load+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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. */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (); -int -main () -{ -return shl_load (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_dld_shl_load=yes -else - ac_cv_lib_dld_shl_load=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 -$as_echo "$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 - 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 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_dl_dlopen=yes -else - ac_cv_lib_dl_dlopen=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 -$as_echo "$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 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 -$as_echo_n "checking for dlopen in -lsvld... " >&6; } -if ${ac_cv_lib_svld_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_svld_dlopen=yes -else - ac_cv_lib_svld_dlopen=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 -$as_echo "$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 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 -$as_echo_n "checking for dld_link in -ldld... " >&6; } -if ${ac_cv_lib_dld_dld_link+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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. */ -#ifdef __cplusplus -extern "C" -#endif -char dld_link (); -int -main () -{ -return dld_link (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_dld_dld_link=yes -else - ac_cv_lib_dld_dld_link=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 -$as_echo "$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 - - -fi - - -fi - - -fi - - -fi - - -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" - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 -$as_echo_n "checking whether a program can dlopen itself... " >&6; } -if ${lt_cv_dlopen_self+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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=$? - $as_echo "$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* - - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 -$as_echo "$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\" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 -$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } -if ${lt_cv_dlopen_self_static+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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=$? - $as_echo "$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* - - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 -$as_echo "$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= -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 -$as_echo_n "checking whether stripping libraries is possible... " >&6; } -if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP"; then - striplib="$STRIP -x" - old_striplib="$STRIP -S" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - fi - ;; - *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ;; - esac -fi - - - - - - - - - - - - - # Report what library types will actually be built - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 -$as_echo_n "checking if libtool supports shared libraries... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 -$as_echo "$can_build_shared" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 -$as_echo_n "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 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 -$as_echo "$enable_shared" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 -$as_echo_n "checking whether to build static libraries... " >&6; } - # Make sure either enable_shared or enable_static is yes. - test yes = "$enable_shared" || enable_static=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 -$as_echo "$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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 -$as_echo_n "checking how to run the C++ preprocessor... " >&6; } -if test -z "$CXXCPP"; then - if ${ac_cv_prog_CXXCPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CXXCPP needs to be expanded - for CXXCPP in "$CXX -E" "/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. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # 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. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : - -else - # Broken: fails on valid input. -continue -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 - # Passes both tests. -ac_preproc_ok=: -break -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 - -fi - CXXCPP=$ac_cv_prog_CXXCPP -else - ac_cv_prog_CXXCPP=$CXXCPP -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 -$as_echo "$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. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # 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. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : - -else - # Broken: fails on valid input. -continue -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 - # Passes both tests. -ac_preproc_ok=: -break -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 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } -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+set}" = set; then : - withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -ac_prog=ld -if test yes = "$GCC"; then - # Check if gcc -print-prog-name=ld gives a path. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 -$as_echo_n "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 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 -$as_echo_n "checking for GNU ld... " >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 -$as_echo_n "checking for non-GNU ld... " >&6; } -fi -if ${lt_cv_path_LD+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 -$as_echo "$LD" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi -test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } -if ${lt_cv_prog_gnu_ld+:} false; then : - $as_echo_n "(cached) " >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &5 -$as_echo "$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 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -$as_echo_n "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 ${lt_cv_aix_libpath__CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - 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$ac_exeext conftest.$ac_ext - if test -z "$lt_cv_aix_libpath__CXX"; then - lt_cv_aix_libpath__CXX=/usr/lib:/lib - fi - -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 ${lt_cv_aix_libpath__CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - 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$ac_exeext conftest.$ac_ext - if test -z "$lt_cv_aix_libpath__CXX"; then - lt_cv_aix_libpath__CXX=/usr/lib:/lib - fi - -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*) - # Native MSVC - # 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_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 - ;; - - 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*) - # 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 - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 -$as_echo "$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=$? - $as_echo "$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*) - # 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 - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } -if ${lt_cv_prog_compiler_pic_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 -$as_echo "$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 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } -if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 -$as_echo "$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\" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } -if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 -$as_echo "$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 - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 -$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 -$as_echo "$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 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 -$as_echo_n "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 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 -$as_echo "$hard_links" >&6; } - if test no = "$hard_links"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 -$as_echo "$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 - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -$as_echo_n "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 == "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*) - 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 - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 -$as_echo "$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. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } -if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - $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=$? - $as_echo "$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=$? - $as_echo "$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* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 -$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } - archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX - ;; - esac - fi - ;; -esac - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 -$as_echo_n "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*) - # Native MSVC - 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 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*) - # 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 ${lt_cv_shlibpath_overrides_runpath+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 () -{ - - ; - 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$ac_exeext conftest.$ac_ext - LDFLAGS=$save_LDFLAGS - libdir=$save_libdir - -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 - - # Add ABI-specific directories to the system library path. - sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" - - # 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="$sys_lib_dlsearch_path_spec $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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 -$as_echo "$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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 -$as_echo_n "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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 -$as_echo "$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: - - - - - - - - # Check whether --enable-schemas-compile was given. -if test "${enable_schemas_compile+set}" = set; then : - enableval=$enable_schemas_compile; case ${enableval} in - yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;; - no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;; - *) as_fn_error $? "bad value ${enableval} for --enable-schemas-compile" "$LINENO" 5 ;; - esac -fi - - - - - - - - - -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. -set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PKG_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - 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_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -PKG_CONFIG=$ac_cv_path_PKG_CONFIG -if test -n "$PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_PKG_CONFIG"; then - ac_pt_PKG_CONFIG=$PKG_CONFIG - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $ac_pt_PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - 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_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG -if test -n "$ac_pt_PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 -$as_echo "$ac_pt_PKG_CONFIG" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_pt_PKG_CONFIG" = x; then - PKG_CONFIG="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - PKG_CONFIG=$ac_pt_PKG_CONFIG - fi -else - PKG_CONFIG="$ac_cv_path_PKG_CONFIG" -fi - -fi -if test -n "$PKG_CONFIG"; then - _pkg_min_version=0.16 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 -$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - PKG_CONFIG="" - fi -fi - gsettingsschemadir=${datadir}/glib-2.0/schemas - - if test x$cross_compiling != xyes; then - GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0` - else - # Extract the first word of "glib-compile-schemas", so it can be a program name with args. -set dummy glib-compile-schemas; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_GLIB_COMPILE_SCHEMAS+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $GLIB_COMPILE_SCHEMAS in - [\\/]* | ?:[\\/]*) - ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - 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_GLIB_COMPILE_SCHEMAS="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS -if test -n "$GLIB_COMPILE_SCHEMAS"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5 -$as_echo "$GLIB_COMPILE_SCHEMAS" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - fi - - if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then - as_fn_error $? "glib-compile-schemas not found." "$LINENO" 5 - else - : - fi - - GSETTINGS_RULES=' -.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas - -mostlyclean-am: clean-gsettings-schemas - -gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE)) - -%.gschema.valid: %.gschema.xml $(gsettings__enum_file) - $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p $(@D) && touch $@ - -all-am: $(gsettings_SCHEMAS:.xml=.valid) -uninstall-am: uninstall-gsettings-schemas -install-data-am: install-gsettings-schemas - -.SECONDARY: $(gsettings_SCHEMAS) - -install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file) - @$(NORMAL_INSTALL) - if test -n "$^"; then \ - test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \ - $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \ - test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \ - fi - -uninstall-gsettings-schemas: - @$(NORMAL_UNINSTALL) - @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \ - test -n "$$files" || exit 0; \ - echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files - test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir) - -clean-gsettings-schemas: - rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file) - -ifdef gsettings_ENUM_NAMESPACE -$(gsettings__enum_file): $(gsettings_ENUM_FILES) - $(AM_V_GEN) glib-mkenums --comments '\'''\'' --fhead "" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " " --vtail " " --ftail "" $^ > $@.tmp && mv $@.tmp $@ -endif -' - - - - - - - -ROGER_VERSION_MAJOR=1 - -ROGER_VERSION_MINOR=8 - -ROGER_VERSION_MICRO=14 - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 -$as_echo_n "checking for pow in -lm... " >&6; } -if ${ac_cv_lib_m_pow+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lm $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. */ -#ifdef __cplusplus -extern "C" -#endif -char pow (); -int -main () -{ -return pow (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_m_pow=yes -else - ac_cv_lib_m_pow=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 -$as_echo "$ac_cv_lib_m_pow" >&6; } -if test "x$ac_cv_lib_m_pow" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBM 1 -_ACEOF - - LIBS="-lm $LIBS" - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for g_thread_init in -lgthread-2.0" >&5 -$as_echo_n "checking for g_thread_init in -lgthread-2.0... " >&6; } -if ${ac_cv_lib_gthread_2_0_g_thread_init+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lgthread-2.0 $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. */ -#ifdef __cplusplus -extern "C" -#endif -char g_thread_init (); -int -main () -{ -return g_thread_init (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_gthread_2_0_g_thread_init=yes -else - ac_cv_lib_gthread_2_0_g_thread_init=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gthread_2_0_g_thread_init" >&5 -$as_echo "$ac_cv_lib_gthread_2_0_g_thread_init" >&6; } -if test "x$ac_cv_lib_gthread_2_0_g_thread_init" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBGTHREAD_2_0 1 -_ACEOF - - LIBS="-lgthread-2.0 $LIBS" - -fi - -# Extract the first word of "msgmerge", so it can be a program name with args. -set dummy msgmerge; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_INTLTOOL_MSGMERGE+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $INTLTOOL_MSGMERGE in - [\\/]* | ?:[\\/]*) - ac_cv_path_INTLTOOL_MSGMERGE="$INTLTOOL_MSGMERGE" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - 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_INTLTOOL_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$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_INTLTOOL_MSGMERGE" && ac_cv_path_INTLTOOL_MSGMERGE="msgmerge" - ;; -esac -fi -INTLTOOL_MSGMERGE=$ac_cv_path_INTLTOOL_MSGMERGE -if test -n "$INTLTOOL_MSGMERGE"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MSGMERGE" >&5 -$as_echo "$INTLTOOL_MSGMERGE" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "xgettext", so it can be a program name with args. -set dummy xgettext; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_INTLTOOL_XGETTEXT+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $INTLTOOL_XGETTEXT in - [\\/]* | ?:[\\/]*) - ac_cv_path_INTLTOOL_XGETTEXT="$INTLTOOL_XGETTEXT" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - 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_INTLTOOL_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$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_INTLTOOL_XGETTEXT" && ac_cv_path_INTLTOOL_XGETTEXT="xgettext" - ;; -esac -fi -INTLTOOL_XGETTEXT=$ac_cv_path_INTLTOOL_XGETTEXT -if test -n "$INTLTOOL_XGETTEXT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_XGETTEXT" >&5 -$as_echo "$INTLTOOL_XGETTEXT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - -GETTEXT_PACKAGE=roger - -cat >>confdefs.h <<_ACEOF -#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" -_ACEOF - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 -$as_echo_n "checking whether NLS is requested... " >&6; } - # Check whether --enable-nls was given. -if test "${enable_nls+set}" = set; then : - enableval=$enable_nls; USE_NLS=$enableval -else - USE_NLS=yes -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 -$as_echo "$USE_NLS" >&6; } - - - - -case "$am__api_version" in - 1.01234) - as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5 - ;; - *) - ;; -esac - -INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.40.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` -INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` -INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` -if test -n "0.40.0"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.40.0" >&5 -$as_echo_n "checking for intltool >= 0.40.0... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5 -$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; } - test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || - as_fn_error $? "Your intltool is too old. You need intltool 0.40.0 or later." "$LINENO" 5 -fi - -# Extract the first word of "intltool-update", so it can be a program name with args. -set dummy intltool-update; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $INTLTOOL_UPDATE in - [\\/]* | ?:[\\/]*) - ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - 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_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE -if test -n "$INTLTOOL_UPDATE"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5 -$as_echo "$INTLTOOL_UPDATE" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "intltool-merge", so it can be a program name with args. -set dummy intltool-merge; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_INTLTOOL_MERGE+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $INTLTOOL_MERGE in - [\\/]* | ?:[\\/]*) - ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - 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_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE -if test -n "$INTLTOOL_MERGE"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5 -$as_echo "$INTLTOOL_MERGE" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "intltool-extract", so it can be a program name with args. -set dummy intltool-extract; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $INTLTOOL_EXTRACT in - [\\/]* | ?:[\\/]*) - ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - 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_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT -if test -n "$INTLTOOL_EXTRACT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5 -$as_echo "$INTLTOOL_EXTRACT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then - as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5 -fi - -if test -z "$AM_DEFAULT_VERBOSITY"; then - AM_DEFAULT_VERBOSITY=1 -fi - - -INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' -INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' -INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;' - - - - -INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' -intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' -intltool__v_merge_options_0='-q' - - - - - INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' -INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' - INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' - INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' - INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@' - INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' - INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' - INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' -INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' - INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' - INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' -if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then - INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@' -else - INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir' -fi - INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' - INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' - INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' - INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' - INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' - INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' - INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -# Check the gettext tools to make sure they are GNU -# Extract the first word of "xgettext", so it can be a program name with args. -set dummy xgettext; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_XGETTEXT+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $XGETTEXT in - [\\/]* | ?:[\\/]*) - ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - 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_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -XGETTEXT=$ac_cv_path_XGETTEXT -if test -n "$XGETTEXT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 -$as_echo "$XGETTEXT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "msgmerge", so it can be a program name with args. -set dummy msgmerge; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_MSGMERGE+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $MSGMERGE in - [\\/]* | ?:[\\/]*) - ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - 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_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -MSGMERGE=$ac_cv_path_MSGMERGE -if test -n "$MSGMERGE"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 -$as_echo "$MSGMERGE" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "msgfmt", so it can be a program name with args. -set dummy msgfmt; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_MSGFMT+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $MSGFMT in - [\\/]* | ?:[\\/]*) - ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - 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_MSGFMT="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -MSGFMT=$ac_cv_path_MSGFMT -if test -n "$MSGFMT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 -$as_echo "$MSGFMT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "gmsgfmt", so it can be a program name with args. -set dummy gmsgfmt; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_GMSGFMT+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $GMSGFMT in - [\\/]* | ?:[\\/]*) - ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - 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_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$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_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" - ;; -esac -fi -GMSGFMT=$ac_cv_path_GMSGFMT -if test -n "$GMSGFMT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 -$as_echo "$GMSGFMT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then - as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 -fi -xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" -mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" -mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" -if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then - as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 -fi - -# Extract the first word of "perl", so it can be a program name with args. -set dummy perl; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_INTLTOOL_PERL+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $INTLTOOL_PERL in - [\\/]* | ?:[\\/]*) - ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - 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_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL -if test -n "$INTLTOOL_PERL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5 -$as_echo "$INTLTOOL_PERL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -if test -z "$INTLTOOL_PERL"; then - as_fn_error $? "perl not found" "$LINENO" 5 -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5 -$as_echo_n "checking for perl >= 5.8.1... " >&6; } -$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 -if test $? -ne 0; then - as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5 -else - IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5 -$as_echo "$IT_PERL_VERSION" >&6; } -fi -if test "x" != "xno-xml"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5 -$as_echo_n "checking for XML::Parser... " >&6; } - if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 -$as_echo "ok" >&6; } - else - as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5 - fi -fi - -# Substitute ALL_LINGUAS so we can use it in po/Makefile - - - - - - -ALL_LINGUAS="" - - for ac_header in locale.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" -if test "x$ac_cv_header_locale_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LOCALE_H 1 -_ACEOF - -fi - -done - - if test $ac_cv_header_locale_h = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 -$as_echo_n "checking for LC_MESSAGES... " >&6; } -if ${am_cv_val_LC_MESSAGES+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -return LC_MESSAGES - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - am_cv_val_LC_MESSAGES=yes -else - am_cv_val_LC_MESSAGES=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 -$as_echo "$am_cv_val_LC_MESSAGES" >&6; } - if test $am_cv_val_LC_MESSAGES = yes; then - -$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h - - fi - fi - USE_NLS=yes - - - gt_cv_have_gettext=no - - CATOBJEXT=NONE - XGETTEXT=: - INTLLIBS= - - ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" -if test "x$ac_cv_header_libintl_h" = xyes; then : - gt_cv_func_dgettext_libintl="no" - libintl_extra_libs="" - - # - # First check in libc - # - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5 -$as_echo_n "checking for ngettext in libc... " >&6; } -if ${gt_cv_func_ngettext_libc+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include - -int -main () -{ -return !ngettext ("","", 1) - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - gt_cv_func_ngettext_libc=yes -else - gt_cv_func_ngettext_libc=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5 -$as_echo "$gt_cv_func_ngettext_libc" >&6; } - - if test "$gt_cv_func_ngettext_libc" = "yes" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5 -$as_echo_n "checking for dgettext in libc... " >&6; } -if ${gt_cv_func_dgettext_libc+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include - -int -main () -{ -return !dgettext ("","") - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - gt_cv_func_dgettext_libc=yes -else - gt_cv_func_dgettext_libc=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5 -$as_echo "$gt_cv_func_dgettext_libc" >&6; } - fi - - if test "$gt_cv_func_ngettext_libc" = "yes" ; then - for ac_func in bind_textdomain_codeset -do : - ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" -if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_BIND_TEXTDOMAIN_CODESET 1 -_ACEOF - -fi -done - - fi - - # - # If we don't have everything we want, check in libintl - # - if test "$gt_cv_func_dgettext_libc" != "yes" \ - || test "$gt_cv_func_ngettext_libc" != "yes" \ - || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5 -$as_echo_n "checking for bindtextdomain in -lintl... " >&6; } -if ${ac_cv_lib_intl_bindtextdomain+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lintl $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. */ -#ifdef __cplusplus -extern "C" -#endif -char bindtextdomain (); -int -main () -{ -return bindtextdomain (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_intl_bindtextdomain=yes -else - ac_cv_lib_intl_bindtextdomain=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5 -$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; } -if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5 -$as_echo_n "checking for ngettext in -lintl... " >&6; } -if ${ac_cv_lib_intl_ngettext+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lintl $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. */ -#ifdef __cplusplus -extern "C" -#endif -char ngettext (); -int -main () -{ -return ngettext (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_intl_ngettext=yes -else - ac_cv_lib_intl_ngettext=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5 -$as_echo "$ac_cv_lib_intl_ngettext" >&6; } -if test "x$ac_cv_lib_intl_ngettext" = xyes; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 -$as_echo_n "checking for dgettext in -lintl... " >&6; } -if ${ac_cv_lib_intl_dgettext+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lintl $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. */ -#ifdef __cplusplus -extern "C" -#endif -char dgettext (); -int -main () -{ -return dgettext (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_intl_dgettext=yes -else - ac_cv_lib_intl_dgettext=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 -$as_echo "$ac_cv_lib_intl_dgettext" >&6; } -if test "x$ac_cv_lib_intl_dgettext" = xyes; then : - gt_cv_func_dgettext_libintl=yes -fi - -fi - -fi - - - if test "$gt_cv_func_dgettext_libintl" != "yes" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5 -$as_echo_n "checking if -liconv is needed to use gettext... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 -$as_echo "" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5 -$as_echo_n "checking for ngettext in -lintl... " >&6; } -if ${ac_cv_lib_intl_ngettext+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lintl -liconv $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. */ -#ifdef __cplusplus -extern "C" -#endif -char ngettext (); -int -main () -{ -return ngettext (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_intl_ngettext=yes -else - ac_cv_lib_intl_ngettext=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5 -$as_echo "$ac_cv_lib_intl_ngettext" >&6; } -if test "x$ac_cv_lib_intl_ngettext" = xyes; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5 -$as_echo_n "checking for dcgettext in -lintl... " >&6; } -if ${ac_cv_lib_intl_dcgettext+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lintl -liconv $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. */ -#ifdef __cplusplus -extern "C" -#endif -char dcgettext (); -int -main () -{ -return dcgettext (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_intl_dcgettext=yes -else - ac_cv_lib_intl_dcgettext=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5 -$as_echo "$ac_cv_lib_intl_dcgettext" >&6; } -if test "x$ac_cv_lib_intl_dcgettext" = xyes; then : - gt_cv_func_dgettext_libintl=yes - libintl_extra_libs=-liconv -else - : -fi - -else - : -fi - - fi - - # - # If we found libintl, then check in it for bind_textdomain_codeset(); - # we'll prefer libc if neither have bind_textdomain_codeset(), - # and both have dgettext and ngettext - # - if test "$gt_cv_func_dgettext_libintl" = "yes" ; then - glib_save_LIBS="$LIBS" - LIBS="$LIBS -lintl $libintl_extra_libs" - unset ac_cv_func_bind_textdomain_codeset - for ac_func in bind_textdomain_codeset -do : - ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" -if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_BIND_TEXTDOMAIN_CODESET 1 -_ACEOF - -fi -done - - LIBS="$glib_save_LIBS" - - if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then - gt_cv_func_dgettext_libc=no - else - if test "$gt_cv_func_dgettext_libc" = "yes" \ - && test "$gt_cv_func_ngettext_libc" = "yes"; then - gt_cv_func_dgettext_libintl=no - fi - fi - fi - fi - - if test "$gt_cv_func_dgettext_libc" = "yes" \ - || test "$gt_cv_func_dgettext_libintl" = "yes"; then - gt_cv_have_gettext=yes - fi - - if test "$gt_cv_func_dgettext_libintl" = "yes"; then - INTLLIBS="-lintl $libintl_extra_libs" - fi - - if test "$gt_cv_have_gettext" = "yes"; then - -$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h - - # Extract the first word of "msgfmt", so it can be a program name with args. -set dummy msgfmt; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_MSGFMT+:} false; then : - $as_echo_n "(cached) " >&6 -else - case "$MSGFMT" in - /*) - ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then - ac_cv_path_MSGFMT="$ac_dir/$ac_word" - break - fi - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" - ;; -esac -fi -MSGFMT="$ac_cv_path_MSGFMT" -if test "$MSGFMT" != "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 -$as_echo "$MSGFMT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - if test "$MSGFMT" != "no"; then - glib_save_LIBS="$LIBS" - LIBS="$LIBS $INTLLIBS" - for ac_func in dcgettext -do : - ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext" -if test "x$ac_cv_func_dcgettext" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_DCGETTEXT 1 -_ACEOF - -fi -done - - MSGFMT_OPTS= - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5 -$as_echo_n "checking if msgfmt accepts -c... " >&6; } - cat >conftest.foo <<_ACEOF - -msgid "" -msgstr "" -"Content-Type: text/plain; charset=UTF-8\n" -"Project-Id-Version: test 1.0\n" -"PO-Revision-Date: 2007-02-15 12:01+0100\n" -"Last-Translator: test \n" -"Language-Team: C \n" -"MIME-Version: 1.0\n" -"Content-Transfer-Encoding: 8bit\n" - -_ACEOF -if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5 - ($MSGFMT -c -o /dev/null conftest.foo) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -echo "$as_me: failed input was:" >&5 -sed 's/^/| /' conftest.foo >&5 -fi - - # Extract the first word of "gmsgfmt", so it can be a program name with args. -set dummy gmsgfmt; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_GMSGFMT+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $GMSGFMT in - [\\/]* | ?:[\\/]*) - ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - 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_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$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_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" - ;; -esac -fi -GMSGFMT=$ac_cv_path_GMSGFMT -if test -n "$GMSGFMT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 -$as_echo "$GMSGFMT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - # Extract the first word of "xgettext", so it can be a program name with args. -set dummy xgettext; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_XGETTEXT+:} false; then : - $as_echo_n "(cached) " >&6 -else - case "$XGETTEXT" in - /*) - ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then - ac_cv_path_XGETTEXT="$ac_dir/$ac_word" - break - fi - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" - ;; -esac -fi -XGETTEXT="$ac_cv_path_XGETTEXT" -if test "$XGETTEXT" != ":"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 -$as_echo "$XGETTEXT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ -extern int _nl_msg_cat_cntr; - return _nl_msg_cat_cntr - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - CATOBJEXT=.gmo - DATADIRNAME=share -else - case $host in - *-*-solaris*) - ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" -if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : - CATOBJEXT=.gmo - DATADIRNAME=share -else - CATOBJEXT=.mo - DATADIRNAME=lib -fi - - ;; - *-*-openbsd*) - CATOBJEXT=.mo - DATADIRNAME=share - ;; - *) - CATOBJEXT=.mo - DATADIRNAME=lib - ;; - esac -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$glib_save_LIBS" - INSTOBJEXT=.mo - else - gt_cv_have_gettext=no - fi - fi - -fi - - - - if test "$gt_cv_have_gettext" = "yes" ; then - -$as_echo "#define ENABLE_NLS 1" >>confdefs.h - - fi - - if test "$XGETTEXT" != ":"; then - if $XGETTEXT --omit-header /dev/null 2> /dev/null; then - : ; - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 -$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } - XGETTEXT=":" - fi - fi - - # We need to process the po/ directory. - POSUB=po - - ac_config_commands="$ac_config_commands default-1" - - - for lang in $ALL_LINGUAS; do - GMOFILES="$GMOFILES $lang.gmo" - POFILES="$POFILES $lang.po" - done - - - - - - - - - - - - - - if test "$gt_cv_have_gettext" = "yes"; then - if test "x$ALL_LINGUAS" = "x"; then - LINGUAS= - else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 -$as_echo_n "checking for catalogs to be installed... " >&6; } - NEW_LINGUAS= - for presentlang in $ALL_LINGUAS; do - useit=no - if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then - desiredlanguages="$LINGUAS" - else - desiredlanguages="$ALL_LINGUAS" - fi - for desiredlang in $desiredlanguages; do - # Use the presentlang catalog if desiredlang is - # a. equal to presentlang, or - # b. a variant of presentlang (because in this case, - # presentlang can be used as a fallback for messages - # which are not translated in the desiredlang catalog). - case "$desiredlang" in - "$presentlang"*) useit=yes;; - esac - done - if test $useit = yes; then - NEW_LINGUAS="$NEW_LINGUAS $presentlang" - fi - done - LINGUAS=$NEW_LINGUAS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 -$as_echo "$LINGUAS" >&6; } - fi - - if test -n "$LINGUAS"; then - for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done - fi - fi - - MKINSTALLDIRS= - if test -n "$ac_aux_dir"; then - MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" - fi - if test -z "$MKINSTALLDIRS"; then - MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" - fi - - - test -d po || mkdir po - if test "x$srcdir" != "x."; then - if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then - posrcprefix="$srcdir/" - else - posrcprefix="../$srcdir/" - fi - else - posrcprefix="../" - fi - rm -f po/POTFILES - sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ - < $srcdir/po/POTFILES.in > po/POTFILES - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if cross-building for win32" >&5 -$as_echo_n "checking if cross-building for win32... " >&6; } -case "$host" in - *-*-*mingw*) - WIN32=yes - macos=no - OS_CFLAGS="-D_WIN32_WINNT=0x0501 -DROUTERMANAGER_PLUGINS='\"lib/routermanager/\"' -DAPP_PLUGINS='\"lib/roger/\"' -DAPP_DATA='\"share/roger/\"' -DAPP_LOCALE='\"share/locale\"'" - OS_LIBS="-mwindows -mms-bitfields -Wl,-subsystem,windows -lws2_32" - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. -set dummy ${ac_tool_prefix}windres; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_WINDRES+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$WINDRES"; then - ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - 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_WINDRES="${ac_tool_prefix}windres" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -WINDRES=$ac_cv_prog_WINDRES -if test -n "$WINDRES"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 -$as_echo "$WINDRES" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_WINDRES"; then - ac_ct_WINDRES=$WINDRES - # Extract the first word of "windres", so it can be a program name with args. -set dummy windres; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_WINDRES"; then - ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - 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_WINDRES="windres" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES -if test -n "$ac_ct_WINDRES"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 -$as_echo "$ac_ct_WINDRES" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_WINDRES" = x; then - WINDRES="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - WINDRES=$ac_ct_WINDRES - fi -else - WINDRES="$ac_cv_prog_WINDRES" -fi - - ;; - *darwin*) - WIN32=no - macos=yes - OS_CFLAGS="-DROUTERMANAGER_PLUGINS='\"lib/routermanager/\"' -DAPP_PLUGINS='\"lib/roger/\"' -DAPP_DATA='\"share/roger/\"' -DAPP_LOCALE='\"share/locale\"'" - OS_LIBS="-rdynamic" - ;; - *freebsd*) - WIN32=no - macos=no - - OS_CFLAGS="" - OS_LIBS="-rdynamic" - ;; - *) - WIN32=no - macos=no - OS_CFLAGS="-DROUTERMANAGER_PLUGINS='\"\$(libdir)/routermanager/\"' -DAPP_PLUGINS='\"\$(libdir)/roger/\"' -DAPP_DATA='\"\$(datadir)/roger/\"' -DAPP_LOCALE='\"\$(localedir)\"' -Wall" - OS_LIBS="-rdynamic" - ;; -esac - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIN32" >&5 -$as_echo "$WIN32" >&6; } - if test "x$WIN32" != "xno"; then - WIN32_TRUE= - WIN32_FALSE='#' -else - WIN32_TRUE='#' - WIN32_FALSE= -fi - - if test "x$macos" != "xno"; then - MACOSX_TRUE= - MACOSX_FALSE='#' -else - MACOSX_TRUE='#' - MACOSX_FALSE= -fi - - - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXTRA" >&5 -$as_echo_n "checking for EXTRA... " >&6; } - -if test -n "$EXTRA_CFLAGS"; then - pkg_cv_EXTRA_CFLAGS="$EXTRA_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.40 gio-2.0 >= 2.40 speex >= 1.0 speexdsp >= 1.0 sndfile >= 1.0.0 libxml-2.0 gupnp-1.0 gssdp-1.0\""; } >&5 - ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.40 gio-2.0 >= 2.40 speex >= 1.0 speexdsp >= 1.0 sndfile >= 1.0.0 libxml-2.0 gupnp-1.0 gssdp-1.0") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_EXTRA_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.40 gio-2.0 >= 2.40 speex >= 1.0 speexdsp >= 1.0 sndfile >= 1.0.0 libxml-2.0 gupnp-1.0 gssdp-1.0" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$EXTRA_LIBS"; then - pkg_cv_EXTRA_LIBS="$EXTRA_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.40 gio-2.0 >= 2.40 speex >= 1.0 speexdsp >= 1.0 sndfile >= 1.0.0 libxml-2.0 gupnp-1.0 gssdp-1.0\""; } >&5 - ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.40 gio-2.0 >= 2.40 speex >= 1.0 speexdsp >= 1.0 sndfile >= 1.0.0 libxml-2.0 gupnp-1.0 gssdp-1.0") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_EXTRA_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.40 gio-2.0 >= 2.40 speex >= 1.0 speexdsp >= 1.0 sndfile >= 1.0.0 libxml-2.0 gupnp-1.0 gssdp-1.0" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - EXTRA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.40 gio-2.0 >= 2.40 speex >= 1.0 speexdsp >= 1.0 sndfile >= 1.0.0 libxml-2.0 gupnp-1.0 gssdp-1.0" 2>&1` - else - EXTRA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.40 gio-2.0 >= 2.40 speex >= 1.0 speexdsp >= 1.0 sndfile >= 1.0.0 libxml-2.0 gupnp-1.0 gssdp-1.0" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$EXTRA_PKG_ERRORS" >&5 - - as_fn_error $? "Package requirements (glib-2.0 >= 2.40 gio-2.0 >= 2.40 speex >= 1.0 speexdsp >= 1.0 sndfile >= 1.0.0 libxml-2.0 gupnp-1.0 gssdp-1.0) were not met: - -$EXTRA_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -Alternatively, you may set the environment variables EXTRA_CFLAGS -and EXTRA_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -Alternatively, you may set the environment variables EXTRA_CFLAGS -and EXTRA_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details. - -To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } -else - EXTRA_CFLAGS=$pkg_cv_EXTRA_CFLAGS - EXTRA_LIBS=$pkg_cv_EXTRA_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -fi - -# Check for GTK >= 3.14 - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5 -$as_echo_n "checking for GTK... " >&6; } - -if test -n "$GTK_CFLAGS"; then - pkg_cv_GTK_CFLAGS="$GTK_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.10\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.10") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= 3.10" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$GTK_LIBS"; then - pkg_cv_GTK_LIBS="$GTK_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.10\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.10") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= 3.10" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 >= 3.10" 2>&1` - else - GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 >= 3.10" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$GTK_PKG_ERRORS" >&5 - - as_fn_error $? "Package requirements (gtk+-3.0 >= 3.10) were not met: - -$GTK_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -Alternatively, you may set the environment variables GTK_CFLAGS -and GTK_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -Alternatively, you may set the environment variables GTK_CFLAGS -and GTK_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details. - -To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } -else - GTK_CFLAGS=$pkg_cv_GTK_CFLAGS - GTK_LIBS=$pkg_cv_GTK_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -fi - - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMODULE" >&5 -$as_echo_n "checking for GMODULE... " >&6; } - -if test -n "$GMODULE_CFLAGS"; then - pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$GMODULE_LIBS"; then - pkg_cv_GMODULE_LIBS="$GMODULE_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmodule-2.0" 2>&1` - else - GMODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmodule-2.0" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$GMODULE_PKG_ERRORS" >&5 - - as_fn_error $? "Package requirements (gmodule-2.0) were not met: - -$GMODULE_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -Alternatively, you may set the environment variables GMODULE_CFLAGS -and GMODULE_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -Alternatively, you may set the environment variables GMODULE_CFLAGS -and GMODULE_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details. - -To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } -else - GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS - GMODULE_LIBS=$pkg_cv_GMODULE_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -fi - - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUP" >&5 -$as_echo_n "checking for SOUP... " >&6; } - -if test -n "$SOUP_CFLAGS"; then - pkg_cv_SOUP_CFLAGS="$SOUP_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_SOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$SOUP_LIBS"; then - pkg_cv_SOUP_LIBS="$SOUP_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_SOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - SOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsoup-2.4" 2>&1` - else - SOUP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsoup-2.4" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$SOUP_PKG_ERRORS" >&5 - - as_fn_error $? "Package requirements (libsoup-2.4) were not met: - -$SOUP_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -Alternatively, you may set the environment variables SOUP_CFLAGS -and SOUP_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -Alternatively, you may set the environment variables SOUP_CFLAGS -and SOUP_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details. - -To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } -else - SOUP_CFLAGS=$pkg_cv_SOUP_CFLAGS - SOUP_LIBS=$pkg_cv_SOUP_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -fi - - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PEAS" >&5 -$as_echo_n "checking for PEAS... " >&6; } - -if test -n "$PEAS_CFLAGS"; then - pkg_cv_PEAS_CFLAGS="$PEAS_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpeas-1.0\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libpeas-1.0") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_PEAS_CFLAGS=`$PKG_CONFIG --cflags "libpeas-1.0" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$PEAS_LIBS"; then - pkg_cv_PEAS_LIBS="$PEAS_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpeas-1.0\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libpeas-1.0") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_PEAS_LIBS=`$PKG_CONFIG --libs "libpeas-1.0" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - PEAS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpeas-1.0" 2>&1` - else - PEAS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpeas-1.0" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$PEAS_PKG_ERRORS" >&5 - - as_fn_error $? "Package requirements (libpeas-1.0) were not met: - -$PEAS_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -Alternatively, you may set the environment variables PEAS_CFLAGS -and PEAS_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -Alternatively, you may set the environment variables PEAS_CFLAGS -and PEAS_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details. - -To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } -else - PEAS_CFLAGS=$pkg_cv_PEAS_CFLAGS - PEAS_LIBS=$pkg_cv_PEAS_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -fi - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PEAS_GTK" >&5 -$as_echo_n "checking for PEAS_GTK... " >&6; } - -if test -n "$PEAS_GTK_CFLAGS"; then - pkg_cv_PEAS_GTK_CFLAGS="$PEAS_GTK_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpeas-gtk-1.0\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libpeas-gtk-1.0") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_PEAS_GTK_CFLAGS=`$PKG_CONFIG --cflags "libpeas-gtk-1.0" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$PEAS_GTK_LIBS"; then - pkg_cv_PEAS_GTK_LIBS="$PEAS_GTK_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpeas-gtk-1.0\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libpeas-gtk-1.0") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_PEAS_GTK_LIBS=`$PKG_CONFIG --libs "libpeas-gtk-1.0" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - PEAS_GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpeas-gtk-1.0" 2>&1` - else - PEAS_GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpeas-gtk-1.0" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$PEAS_GTK_PKG_ERRORS" >&5 - - as_fn_error $? "Package requirements (libpeas-gtk-1.0) were not met: - -$PEAS_GTK_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -Alternatively, you may set the environment variables PEAS_GTK_CFLAGS -and PEAS_GTK_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -Alternatively, you may set the environment variables PEAS_GTK_CFLAGS -and PEAS_GTK_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details. - -To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } -else - PEAS_GTK_CFLAGS=$pkg_cv_PEAS_GTK_CFLAGS - PEAS_GTK_LIBS=$pkg_cv_PEAS_GTK_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -fi - -for ac_header in tiffio.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" -if test "x$ac_cv_header_tiffio_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_TIFFIO_H 1 -_ACEOF - -fi - -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 -$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } -if ${ac_cv_lib_tiff_TIFFOpen+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ltiff -lm $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. */ -#ifdef __cplusplus -extern "C" -#endif -char TIFFOpen (); -int -main () -{ -return TIFFOpen (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_tiff_TIFFOpen=yes -else - ac_cv_lib_tiff_TIFFOpen=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 -$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } -if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBTIFF 1 -_ACEOF - - LIBS="-ltiff $LIBS" - -else - as_fn_error $? "\"Can't build without libtiff (does your system require a libtiff-devel package?)\"" "$LINENO" 5 -fi - - -# determine prefered default type -case "$host" in - *-*-*mingw*) - fax_printer=socket-server - ;; - *darwin* | *freebsd*) - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAX_SPOOLER" >&5 -$as_echo_n "checking for FAX_SPOOLER... " >&6; } - -if test -n "$FAX_SPOOLER_CFLAGS"; then - pkg_cv_FAX_SPOOLER_CFLAGS="$FAX_SPOOLER_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.36\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.36") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_FAX_SPOOLER_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.36" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$FAX_SPOOLER_LIBS"; then - pkg_cv_FAX_SPOOLER_LIBS="$FAX_SPOOLER_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.36\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.36") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_FAX_SPOOLER_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.36" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - FAX_SPOOLER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.36" 2>&1` - else - FAX_SPOOLER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.36" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$FAX_SPOOLER_PKG_ERRORS" >&5 - - fax_printer=socket-server - -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - fax_printer=socket-server - -else - FAX_SPOOLER_CFLAGS=$pkg_cv_FAX_SPOOLER_CFLAGS - FAX_SPOOLER_LIBS=$pkg_cv_FAX_SPOOLER_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - fax_printer=spoolerdir -fi - ;; - - *) - fax_printer=spoolerdir - ;; -esac - - -# Check whether --with-fax_spooler-type was given. -if test "${with_fax_spooler_type+set}" = set; then : - withval=$with_fax_spooler_type; if test x$with_fax_spooler_type = xauto; then - with_fax_spooler_type=$fax_printer - fi -else - with_fax_spooler_type=$fax_printer -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fax spooler type" >&5 -$as_echo_n "checking for fax spooler type... " >&6; } -case "$with_fax_spooler_type" in - spoolerdir) - -$as_echo "#define USE_PRINTER_SPOOLER 1" >>confdefs.h - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: Outgoing faxes are expected in spooler directory /var/spool/roger" >&5 -$as_echo "Outgoing faxes are expected in spooler directory /var/spool/roger" >&6; } - ;; - socket-server) - -$as_echo "#define USE_PRINTER_SERVER 1" >>confdefs.h - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: Outgoing faxes are received by fax printer server on port 9100" >&5 -$as_echo "Outgoing faxes are received by fax printer server on port 9100" >&6; } - ;; - *) - as_fn_error $? "Invalid option $with_fax_spooler_type" "$LINENO" 5 - ;; -esac - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for statusicon support" >&5 -$as_echo_n "checking for statusicon support... " >&6; } -if $PKG_CONFIG --atleast-version=3.16 gtk+-3.0; then : - with_statusicon=no -else - with_statusicon=yes -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_statusicon" >&5 -$as_echo "$with_statusicon" >&6; } - if test "x$with_statusicon" != "xno"; then - WITH_STATUSICON_TRUE= - WITH_STATUSICON_FALSE='#' -else - WITH_STATUSICON_TRUE='#' - WITH_STATUSICON_FALSE= -fi - - -# Check for unistd.h -for ac_header in unistd.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" -if test "x$ac_cv_header_unistd_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_UNISTD_H 1 -_ACEOF - -fi - -done - - -# Check for sigaction and sigset -for ac_func in sigaction -do : - ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" -if test "x$ac_cv_func_sigaction" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SIGACTION 1 -_ACEOF - have_sigaction="1" -else - have_sigaction="0" -fi -done - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset()" >&5 -$as_echo_n "checking for sigset()... " >&6; } -if ${ac_cv_sigset+:} false; then : - $as_echo_n "(cached) " >&6 -else - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -sigset(SIGTERM,SIG_IGN); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_sigset=yes -else - ac_cv_sigset=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sigset" >&5 -$as_echo "$ac_cv_sigset" >&6; } -if test x"ac_cv_sigset" = xyes; then - -$as_echo "#define HAVE_SIGSET 1" >>confdefs.h - -fi - - -# Check whether --with-libnotify was given. -if test "${with_libnotify+set}" = set; then : - withval=$with_libnotify; -else - with_libnotify=check -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnotify" >&5 -$as_echo_n "checking for libnotify... " >&6; } -if test "x$with_libnotify" != xsuper; then : - if test "x$with_libnotify" = xcheck; then - $PKG_CONFIG --exists libnotify && with_libnotify=yes - elif test "x$with_libnotify" = xyes; then - ( $PKG_CONFIG --exists libnotify ) || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "--with-libnotify=yes was given, but test for libnotify failed -See \`config.log' for more details" "$LINENO" 5; } - fi - if test "x$with_libnotify" = xyes; then - LIBNOTIFY_CFLAGS="`$PKG_CONFIG --cflags libnotify`" - - LIBNOTIFY_LIBS="`$PKG_CONFIG --libs libnotify`" - - -$as_echo "#define HAVE_LIBNOTIFY 1" >>confdefs.h - - ROGER_FEATURES_YES="\tlibnotify\n$ROGER_FEATURES_YES" - else - with_libnotify=no - ROGER_FEATURES_NO="\tlibnotify\n$ROGER_FEATURES_NO" - fi - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libnotify" >&5 -$as_echo "$with_libnotify" >&6; } - - if test "x$with_libnotify" != "xno"; then - WITH_LIBNOTIFY_TRUE= - WITH_LIBNOTIFY_FALSE='#' -else - WITH_LIBNOTIFY_TRUE='#' - WITH_LIBNOTIFY_FALSE= -fi - - - -# Check whether --with-secret was given. -if test "${with_secret+set}" = set; then : - withval=$with_secret; -else - with_secret=check -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsecret-1 >= 0.11" >&5 -$as_echo_n "checking for libsecret-1 >= 0.11... " >&6; } -if test "x$with_secret" != xno; then : - if test "x$with_secret" = xcheck; then - $PKG_CONFIG --atleast-version=0.11 libsecret-1 && with_secret=yes - elif test "x$with_secret" = xyes; then - $PKG_CONFIG --atleast-version=0.11 libsecret-1 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "--with-secret=yes was given, but test for secret failed -See \`config.log' for more details" "$LINENO" 5; } - fi - if test "x$with_secret" = xyes; then - SECRET_CFLAGS="`$PKG_CONFIG --cflags libsecret-1`" - - SECRET_LIBS="`$PKG_CONFIG --libs libsecret-1`" - - - ROGER_FEATURES_YES="\tsecret\n$ROGER_FEATURES_YES" - else - with_secret=no - ROGER_FEATURES_NO="\tsecret\n$ROGER_FEATURES_NO" - fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secret" >&5 -$as_echo "$with_secret" >&6; } - if test "x$with_secret" != "xno"; then - WITH_SECRET_TRUE= - WITH_SECRET_FALSE='#' -else - WITH_SECRET_TRUE='#' - WITH_SECRET_FALSE= -fi - - if test "x$with_secret_registry" = "xyes"; then - HAVE_SECRET_SOURCE_REGISTRY_TRUE= - HAVE_SECRET_SOURCE_REGISTRY_FALSE='#' -else - HAVE_SECRET_SOURCE_REGISTRY_TRUE='#' - HAVE_SECRET_SOURCE_REGISTRY_FALSE= -fi - - - -# Check whether --with-macos-keychain was given. -if test "${with_macos_keychain+set}" = set; then : - withval=$with_macos_keychain; -else - with_macos_keychain=check -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MacOS-keyring" >&5 -$as_echo_n "checking for MacOS-keyring... " >&6; } - -if test "$with_macos_keychain" = "check"; then -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SecKeychainGetVersion" >&5 -$as_echo_n "checking for SecKeychainGetVersion... " >&6; } -if ${ac_cv_func_SecKeychainGetVersion+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_save_LIBS="$LIBS" - LIBS="$LIBS -Wl,-framework -Wl,Security" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -SecKeychainGetVersion(NULL); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_func_SecKeychainGetVersion=yes -else - ac_cv_func_SecKeychainGetVersion=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$ac_save_LIBS" -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_SecKeychainGetVersion" >&5 -$as_echo "$ac_cv_func_SecKeychainGetVersion" >&6; } -if test $ac_cv_func_SecKeychainGetVersion = yes; then - with_macos_keychain=yes - OS_LIBS="$OS_LIBS -Wl,-framework -Wl,Security" -else - with_macos_keychain=no -fi -fi - -if test "x$with_macos_keychain" != "xno"; then - ROGER_FEATURES_YES="\tmacos-keyring\n$ROGER_FEATURES_YES" - with_macos_keychain=yes -else - ROGER_FEATURES_NO="\tmacos-keyring\n$ROGER_FEATURES_NO" -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_macos_keychain" >&5 -$as_echo "$with_macos_keychain" >&6; } - - if test "x$with_macos_keychain" != "xno"; then - WITH_MACOS_KEYCHAIN_TRUE= - WITH_MACOS_KEYCHAIN_FALSE='#' -else - WITH_MACOS_KEYCHAIN_TRUE='#' - WITH_MACOS_KEYCHAIN_FALSE= -fi - - - if test "x$with_macos_keychain" != "xno"; then - WITH_OSX_AB_TRUE= - WITH_OSX_AB_FALSE='#' -else - WITH_OSX_AB_TRUE='#' - WITH_OSX_AB_FALSE= -fi - - - -# Check whether --with-kwallet was given. -if test "${with_kwallet+set}" = set; then : - withval=$with_kwallet; -else - with_kwallet=no -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kwallet" >&5 -$as_echo_n "checking for kwallet... " >&6; } -if test "x$with_kwallet" != xno; then : - KWALLET_CFLAGS="`pkg-config --cflags-only-I QtCore QtDBus QtGui` -I`kde4-config --path include`" - - KWALLET_LIBS="-lQtCore -lQtDBus -lQtGui -lkdecore -lkdeui -L`kde4-config --path lib` -L/usr/lib/kde4/devel -L/usr/lib64/kde4/devel" - - -$as_echo "#define HAVE_KWALLET 1" >>confdefs.h - - ROGER_FEATURES_YES="\tkwallet\n$ROGER_FEATURES_YES" - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_kwallet" >&5 -$as_echo "$with_kwallet" >&6; } - - if test "x$with_kwallet" != "xno"; then - WITH_KWALLET_TRUE= - WITH_KWALLET_FALSE='#' -else - WITH_KWALLET_TRUE='#' - WITH_KWALLET_FALSE= -fi - - - - -# Check whether --with-gdata was given. -if test "${with_gdata+set}" = set; then : - withval=$with_gdata; -else - with_gdata=check -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgdata" >&5 -$as_echo_n "checking for libgdata... " >&6; } -if test "x$with_gdata" != xno; then : - if test "x$with_gdata" = xcheck; then - $PKG_CONFIG libgdata && with_gdata=yes - elif test "x$with_gdata" = xyes; then - $PKG_CONFIG libgdata || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "--with-gdata=yes was given, but test for gdata failed -See \`config.log' for more details" "$LINENO" 5; } - fi - if test "x$with_gdata" = xyes; then - GDATA_CFLAGS="`$PKG_CONFIG --cflags libgdata`" - - GDATA_LIBS="`$PKG_CONFIG --libs libgdata`" - - - ROGER_FEATURES_YES="\tgdata\n$ROGER_FEATURES_YES" - else - with_gdata=no - ROGER_FEATURES_NO="\tgdata\n$ROGER_FEATURES_NO" - fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gdata" >&5 -$as_echo "$with_gdata" >&6; } - if test "x$with_gdata" != "xno"; then - WITH_GDATA_TRUE= - WITH_GDATA_FALSE='#' -else - WITH_GDATA_TRUE='#' - WITH_GDATA_FALSE= -fi - - - -# Check whether --with-ebook was given. -if test "${with_ebook+set}" = set; then : - withval=$with_ebook; -else - with_ebook=check -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libebook-1.2 >= 3.10.0" >&5 -$as_echo_n "checking for libebook-1.2 >= 3.10.0... " >&6; } -if test "x$with_ebook" != xno; then : - if test "x$with_ebook" = xcheck; then - $PKG_CONFIG --atleast-version=3.10.0 libebook-1.2 && with_ebook=yes - elif test "x$with_ebook" = xyes; then - $PKG_CONFIG --atleast-version=3.10.0 libebook-1.2 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "--with-ebook=yes was given, but test for ebook failed -See \`config.log' for more details" "$LINENO" 5; } - fi - if test "x$with_ebook" = xyes; then - EBOOK_CFLAGS="`$PKG_CONFIG --cflags libebook-1.2`" - - EBOOK_LIBS="`$PKG_CONFIG --libs libebook-1.2`" - - - ROGER_FEATURES_YES="\tebook\n$ROGER_FEATURES_YES" - else - with_ebook=no - ROGER_FEATURES_NO="\tebook\n$ROGER_FEATURES_NO" - fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ebook" >&5 -$as_echo "$with_ebook" >&6; } - if test "x$with_ebook" != "xno"; then - WITH_EBOOK_TRUE= - WITH_EBOOK_FALSE='#' -else - WITH_EBOOK_TRUE='#' - WITH_EBOOK_FALSE= -fi - - - -# Check whether --with-gstreamer1 was given. -if test "${with_gstreamer1+set}" = set; then : - withval=$with_gstreamer1; -else - with_gstreamer1=check -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-1.4 and gstreamer-app-1.4" >&5 -$as_echo_n "checking for gstreamer-1.4 and gstreamer-app-1.4... " >&6; } -if test "x$with_gstreamer1" != xno; then : - if test "x$with_gstreamer1" = xcheck; then - pkg-config --atleast-version=1.4.0 gstreamer-1.0 && pkg-config --exists gstreamer-app-1.0 && with_gstreamer1=yes - elif test "x$with_gstreamer1" = xyes; then - ( pkg-config --atleast-version=1.4.0 gstreamer-1.0 && pkg-config --exists gstreamer-app-1.0) || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "--with-gstreamer-1.0=yes was given, but test for gstreamer-1.0 and gstreamer-app-1.0 failed -See \`config.log' for more details" "$LINENO" 5; } - fi - if test "x$with_gstreamer1" = xyes; then - GSTREAMER1_CFLAGS="`pkg-config --cflags gstreamer-1.0 gstreamer-app-1.0`" - - GSTREAMER1_LIBS="`pkg-config --libs gstreamer-1.0 gstreamer-app-1.0`" - - -$as_echo "#define HAVE_GSTREAMER1 1" >>confdefs.h - - ROGER_FEATURES_YES="\tgstreamer 1.0\n$ROGER_FEATURES_YES" - else - with_gstreamer1=no - ROGER_FEATURES_NO="\tgstreamer 1.0\n$ROGER_FEATURES_NO" - fi - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gstreamer1" >&5 -$as_echo "$with_gstreamer1" >&6; } - - if test "x$with_gstreamer1" != "xno"; then - WITH_GSTREAMER1_TRUE= - WITH_GSTREAMER1_FALSE='#' -else - WITH_GSTREAMER1_TRUE='#' - WITH_GSTREAMER1_FALSE= -fi - - - -# Check whether --with-pulseaudio was given. -if test "${with_pulseaudio+set}" = set; then : - withval=$with_pulseaudio; -else - with_pulseaudio=no -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple" >&5 -$as_echo_n "checking for libpulse-simple... " >&6; } -if test "x$with_pulseaudio" != xsuper; then : - if test "x$with_pulseaudio" = xcheck; then - $PKG_CONFIG --exists libpulse-simple && with_pulseaudio=yes - elif test "x$with_pulseaudio" = xyes; then - ( $PKG_CONFIG --exists libpulse-simple ) || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "--with-pulseaudio=yes was given, but test for libpulse-simple failed -See \`config.log' for more details" "$LINENO" 5; } - fi - if test "x$with_pulseaudio" = xyes; then - PULSEAUDIO_CFLAGS="`$PKG_CONFIG --cflags libpulse-simple`" - - PULSEAUDIO_LIBS="`$PKG_CONFIG --libs libpulse-simple`" - - -$as_echo "#define HAVE_PULSEAUDIO 1" >>confdefs.h - - ROGER_FEATURES_YES="\tpulseaudio\n$ROGER_FEATURES_YES" - else - with_pulseaudio=no - ROGER_FEATURES_NO="\tpulseaudio\n$ROGER_FEATURES_NO" - fi - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pulseaudio" >&5 -$as_echo "$with_pulseaudio" >&6; } - - if test "x$with_pulseaudio" != "xno"; then - WITH_PULSEAUDIO_TRUE= - WITH_PULSEAUDIO_FALSE='#' -else - WITH_PULSEAUDIO_TRUE='#' - WITH_PULSEAUDIO_FALSE= -fi - - - -# Check whether --with-portaudio was given. -if test "${with_portaudio+set}" = set; then : - withval=$with_portaudio; -else - with_portaudio=no -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for portaudio-2.0 version 19" >&5 -$as_echo_n "checking for portaudio-2.0 version 19... " >&6; } -if test "x$with_portaudio" != xsuper; then : - if test "x$with_portaudio" = xcheck; then - $PKG_CONFIG --atleast-version=19 portaudio-2.0 && with_portaudio=yes - elif test "x$with_portaudio" = xyes; then - ( $PKG_CONFIG --atleast-version=19 portaudio-2.0 ) || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "--with-portaudio=yes was given, but test for portaudio-2.0 failed -See \`config.log' for more details" "$LINENO" 5; } - fi - if test "x$with_portaudio" = xyes; then - PORTAUDIO_CFLAGS="`$PKG_CONFIG --cflags portaudio-2.0`" - - PORTAUDIO_LIBS="`$PKG_CONFIG --libs portaudio-2.0`" - - -$as_echo "#define HAVE_PORTAUDIO 1" >>confdefs.h - - ROGER_FEATURES_YES="\tportaudio\n$ROGER_FEATURES_YES" - else - with_portaudio=no - ROGER_FEATURES_NO="\tportaudio\n$ROGER_FEATURES_NO" - fi - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_portaudio" >&5 -$as_echo "$with_portaudio" >&6; } - - if test "x$with_portaudio" != "xno"; then - WITH_PORTAUDIO_TRUE= - WITH_PORTAUDIO_FALSE='#' -else - WITH_PORTAUDIO_TRUE='#' - WITH_PORTAUDIO_FALSE= -fi - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for faxophone" >&5 -$as_echo_n "checking for faxophone... " >&6; } - -# Check whether --with-faxophone was given. -if test "${with_faxophone+set}" = set; then : - withval=$with_faxophone; -else - with_faxophone=yes -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_faxophone" >&5 -$as_echo "$with_faxophone" >&6; } - -# Faxophone test -if test "x$with_faxophone" = xyes; then - -$as_echo "#define HAVE_FAXOPHONE 1" >>confdefs.h - - ROGER_FEATURES_YES="\tfaxophone\n$ROGER_FEATURES_YES" - - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAPI" >&5 -$as_echo_n "checking for CAPI... " >&6; } - -if test -n "$CAPI_CFLAGS"; then - pkg_cv_CAPI_CFLAGS="$CAPI_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"capi20 >= 3.6\""; } >&5 - ($PKG_CONFIG --exists --print-errors "capi20 >= 3.6") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_CAPI_CFLAGS=`$PKG_CONFIG --cflags "capi20 >= 3.6" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$CAPI_LIBS"; then - pkg_cv_CAPI_LIBS="$CAPI_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"capi20 >= 3.6\""; } >&5 - ($PKG_CONFIG --exists --print-errors "capi20 >= 3.6") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_CAPI_LIBS=`$PKG_CONFIG --libs "capi20 >= 3.6" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - CAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "capi20 >= 3.6" 2>&1` - else - CAPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "capi20 >= 3.6" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$CAPI_PKG_ERRORS" >&5 - - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAPI" >&5 -$as_echo_n "checking for CAPI... " >&6; } - -if test -n "$CAPI_CFLAGS"; then - pkg_cv_CAPI_CFLAGS="$CAPI_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"capi20 >= 3.5\""; } >&5 - ($PKG_CONFIG --exists --print-errors "capi20 >= 3.5") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_CAPI_CFLAGS=`$PKG_CONFIG --cflags "capi20 >= 3.5" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$CAPI_LIBS"; then - pkg_cv_CAPI_LIBS="$CAPI_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"capi20 >= 3.5\""; } >&5 - ($PKG_CONFIG --exists --print-errors "capi20 >= 3.5") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_CAPI_LIBS=`$PKG_CONFIG --libs "capi20 >= 3.5" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - CAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "capi20 >= 3.5" 2>&1` - else - CAPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "capi20 >= 3.5" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$CAPI_PKG_ERRORS" >&5 - - as_fn_error $? "Package requirements (capi20 >= 3.5) were not met: - -$CAPI_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -Alternatively, you may set the environment variables CAPI_CFLAGS -and CAPI_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -Alternatively, you may set the environment variables CAPI_CFLAGS -and CAPI_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details. - -To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } -else - CAPI_CFLAGS=$pkg_cv_CAPI_CFLAGS - CAPI_LIBS=$pkg_cv_CAPI_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -fi -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAPI" >&5 -$as_echo_n "checking for CAPI... " >&6; } - -if test -n "$CAPI_CFLAGS"; then - pkg_cv_CAPI_CFLAGS="$CAPI_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"capi20 >= 3.5\""; } >&5 - ($PKG_CONFIG --exists --print-errors "capi20 >= 3.5") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_CAPI_CFLAGS=`$PKG_CONFIG --cflags "capi20 >= 3.5" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$CAPI_LIBS"; then - pkg_cv_CAPI_LIBS="$CAPI_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"capi20 >= 3.5\""; } >&5 - ($PKG_CONFIG --exists --print-errors "capi20 >= 3.5") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_CAPI_LIBS=`$PKG_CONFIG --libs "capi20 >= 3.5" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - CAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "capi20 >= 3.5" 2>&1` - else - CAPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "capi20 >= 3.5" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$CAPI_PKG_ERRORS" >&5 - - as_fn_error $? "Package requirements (capi20 >= 3.5) were not met: - -$CAPI_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -Alternatively, you may set the environment variables CAPI_CFLAGS -and CAPI_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -Alternatively, you may set the environment variables CAPI_CFLAGS -and CAPI_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details. - -To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } -else - CAPI_CFLAGS=$pkg_cv_CAPI_CFLAGS - CAPI_LIBS=$pkg_cv_CAPI_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -fi -else - CAPI_CFLAGS=$pkg_cv_CAPI_CFLAGS - CAPI_LIBS=$pkg_cv_CAPI_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -$as_echo "#define HAVE_CAPI_36 1" >>confdefs.h - -fi - - -# Check whether --with-spandsp was given. -if test "${with_spandsp+set}" = set; then : - withval=$with_spandsp; -else - with_spandsp=check -fi - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spandsp" >&5 -$as_echo_n "checking for spandsp... " >&6; } - if test "x$with_spandsp" != xsuper; then : - if test "x$with_spandsp" = xcheck; then - $PKG_CONFIG --exists spandsp && with_spandsp=yes - elif test "x$with_spandsp" = xyes; then - ( $PKG_CONFIG --exists spandsp ) || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "--with-spandsp=yes was given, but test for spandsp -See \`config.log' for more details" "$LINENO" 5; } - fi - if test "x$with_spandsp" = xyes; then - SPANDSP_CFLAGS="`$PKG_CONFIG --cflags spandsp`" - - SPANDSP_LIBS="`$PKG_CONFIG --libs spandsp`" - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_spandsp" >&5 -$as_echo "$with_spandsp" >&6; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_spandsp" >&5 -$as_echo "$with_spandsp" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fax_init in -lspandsp" >&5 -$as_echo_n "checking for fax_init in -lspandsp... " >&6; } -if ${ac_cv_lib_spandsp_fax_init+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lspandsp $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. */ -#ifdef __cplusplus -extern "C" -#endif -char fax_init (); -int -main () -{ -return fax_init (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_spandsp_fax_init=yes -else - ac_cv_lib_spandsp_fax_init=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spandsp_fax_init" >&5 -$as_echo "$ac_cv_lib_spandsp_fax_init" >&6; } -if test "x$ac_cv_lib_spandsp_fax_init" = xyes; then : - with_spandsp=yes -else - as_fn_error $? "spandsp is required by this package" "$LINENO" 5 -fi - - SPANDSP_CFLAGS="" - - SPANDSP_LIBS="-lspandsp" - - fi - -fi -else - ROGER_FEATURES_NO="\tfaxophone\n$ROGER_FEATURES_NO" -fi - - if test "x$with_faxophone" != "xno"; then - WITH_FAXOPHONE_TRUE= - WITH_FAXOPHONE_FALSE='#' -else - WITH_FAXOPHONE_TRUE='#' - WITH_FAXOPHONE_FALSE= -fi - - - -# Check whether --with-appindicator3 was given. -if test "${with_appindicator3+set}" = set; then : - withval=$with_appindicator3; -else - with_appindicator3=check -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for appindicator3-0.1" >&5 -$as_echo_n "checking for appindicator3-0.1... " >&6; } -if test "x$with_appindicator3" != xno; then : - if test "x$with_appindicator3" = xcheck; then - pkg-config --exists appindicator3-0.1 && with_appindicator3=yes - elif test "x$with_appindicator3" = xyes; then - pkg-config --exists appindicator3-0.1 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "--with-appindicator3=yes was given, but test for appindicator3 failed -See \`config.log' for more details" "$LINENO" 5; } - fi - if test "x$with_appindicator3" = xyes; then - APPINDICATOR_CFLAGS="`pkg-config --cflags appindicator3-0.1`" - - APPINDICATOR_LIBS="`pkg-config --libs appindicator3-0.1`" - - -$as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h - - ROGER_FEATURES_YES="\tappindicator3\n$ROGER_FEATURES_YES" - else - with_appindicator3=no - ROGER_FEATURES_NO="\tappindicator3\n$ROGER_FEATURES_NO" - fi - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_appindicator3" >&5 -$as_echo "$with_appindicator3" >&6; } - - if test "x$with_appindicator3" != "xno"; then - WITH_APPINDICATOR3_TRUE= - WITH_APPINDICATOR3_FALSE='#' -else - WITH_APPINDICATOR3_TRUE='#' - WITH_APPINDICATOR3_FALSE= -fi - - - -# Check whether --with-gnotification was given. -if test "${with_gnotification+set}" = set; then : - withval=$with_gnotification; -else - with_gnotification=check -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnotification" >&5 -$as_echo_n "checking for gnotification... " >&6; } -if test "x$with_gnotification" != xno; then : - if test "x$with_gnotification" = xcheck; then - pkg-config --atleast-version=3.12.0 gtk+-3.0 && with_gnotification=yes - elif test "x$with_gnotification" = xyes; then - ( pkg-config --atleast-version=3.12.0 gtk+-3.12.0) || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "--with-gnotificaion=yes was given, but test for gnotificaion failed -See \`config.log' for more details" "$LINENO" 5; } - fi - if test "x$with_gnotification" = xyes; then - -$as_echo "#define HAVE_GNOTIFICATION 1" >>confdefs.h - - ROGER_FEATURES_YES="\tgnotification\n$ROGER_FEATURES_YES" - else - with_gnotification=no - ROGER_FEATURES_NO="\tgnotification\n$ROGER_FEATURES_NO" - fi - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gnotification" >&5 -$as_echo "$with_gnotification" >&6; } - - if test "x$with_gnotification" != "xno"; then - WITH_GNOTIFICATION_TRUE= - WITH_GNOTIFICATION_FALSE='#' -else - WITH_GNOTIFICATION_TRUE='#' - WITH_GNOTIFICATION_FALSE= -fi - - -# Check whether --enable-werror was given. -if test "${enable_werror+set}" = set; then : - enableval=$enable_werror; -fi - - -if test x"$enable_werror" != xno -then - EXTRA_CFLAGS+="-Werror" -fi - - -ac_config_files="$ac_config_files Makefile win32/roger.nsi doc/Makefile doc/roger.1 doc/roger_cli.1 po/Makefile.in libroutermanager/routermanager.pc libroutermanager/Makefile libroutermanager/data/Makefile libroutermanager/plugins/Makefile libroutermanager/plugins/fritzbox/Makefile libroutermanager/plugins/callmonitor/Makefile libroutermanager/plugins/areacodes_global/Makefile libroutermanager/plugins/pulseaudio/Makefile libroutermanager/plugins/reverselookup/Makefile libroutermanager/plugins/webjournal/Makefile libroutermanager/plugins/wincred/Makefile libroutermanager/plugins/portaudio/Makefile libroutermanager/plugins/gstreamer1/Makefile libroutermanager/plugins/secret/Makefile roger/Makefile roger/roger_winres.rc roger/data/Makefile roger-cli/Makefile roger/plugins/Makefile roger/plugins/statusicon/Makefile roger/plugins/statusicon/data/Makefile roger/plugins/fritzfon/Makefile roger/plugins/fritzfon/data/Makefile roger/plugins/evolution/Makefile roger/plugins/evolution/data/Makefile roger/plugins/gtknotify/Makefile roger/plugins/gtknotify/data/Makefile roger/plugins/indicator/Makefile roger/plugins/indicator/data/Makefile roger/plugins/vcard/Makefile roger/plugins/vcard/data/Makefile roger/plugins/google/Makefile roger/plugins/google/data/Makefile roger/plugins/thunderbird/Makefile roger/plugins/thunderbird/data/Makefile roger/plugins/kwallet/Makefile roger/plugins/keychain/Makefile roger/plugins/osxab/Makefile roger/plugins/notification/Makefile roger/plugins/notification/data/Makefile roger/plugins/gnotification/Makefile roger/plugins/gnotification/data/Makefile roger/images/Makefile roger/images/16x16/Makefile roger/images/22x22/Makefile roger/images/24x24/Makefile roger/images/32x32/Makefile roger/images/48x48/Makefile roger/images/scalable/Makefile macosx/roger.plist macosx/package" - -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_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$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+set}" = set || &/ - 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 - { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 -$as_echo "$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 - { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 -$as_echo "$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=`$as_echo "$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 - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 -$as_echo_n "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 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 -$as_echo "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 - - ac_config_commands="$ac_config_commands po/stamp-it" - - -if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then - as_fn_error $? "conditional \"WIN32\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then - as_fn_error $? "conditional \"MACOSX\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${WITH_STATUSICON_TRUE}" && test -z "${WITH_STATUSICON_FALSE}"; then - as_fn_error $? "conditional \"WITH_STATUSICON\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${WITH_LIBNOTIFY_TRUE}" && test -z "${WITH_LIBNOTIFY_FALSE}"; then - as_fn_error $? "conditional \"WITH_LIBNOTIFY\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${WITH_SECRET_TRUE}" && test -z "${WITH_SECRET_FALSE}"; then - as_fn_error $? "conditional \"WITH_SECRET\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${HAVE_SECRET_SOURCE_REGISTRY_TRUE}" && test -z "${HAVE_SECRET_SOURCE_REGISTRY_FALSE}"; then - as_fn_error $? "conditional \"HAVE_SECRET_SOURCE_REGISTRY\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${WITH_MACOS_KEYCHAIN_TRUE}" && test -z "${WITH_MACOS_KEYCHAIN_FALSE}"; then - as_fn_error $? "conditional \"WITH_MACOS_KEYCHAIN\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${WITH_OSX_AB_TRUE}" && test -z "${WITH_OSX_AB_FALSE}"; then - as_fn_error $? "conditional \"WITH_OSX_AB\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${WITH_KWALLET_TRUE}" && test -z "${WITH_KWALLET_FALSE}"; then - as_fn_error $? "conditional \"WITH_KWALLET\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${WITH_GDATA_TRUE}" && test -z "${WITH_GDATA_FALSE}"; then - as_fn_error $? "conditional \"WITH_GDATA\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${WITH_EBOOK_TRUE}" && test -z "${WITH_EBOOK_FALSE}"; then - as_fn_error $? "conditional \"WITH_EBOOK\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${WITH_GSTREAMER1_TRUE}" && test -z "${WITH_GSTREAMER1_FALSE}"; then - as_fn_error $? "conditional \"WITH_GSTREAMER1\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${WITH_PULSEAUDIO_TRUE}" && test -z "${WITH_PULSEAUDIO_FALSE}"; then - as_fn_error $? "conditional \"WITH_PULSEAUDIO\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${WITH_PORTAUDIO_TRUE}" && test -z "${WITH_PORTAUDIO_FALSE}"; then - as_fn_error $? "conditional \"WITH_PORTAUDIO\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${WITH_FAXOPHONE_TRUE}" && test -z "${WITH_FAXOPHONE_FALSE}"; then - as_fn_error $? "conditional \"WITH_FAXOPHONE\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${WITH_APPINDICATOR3_TRUE}" && test -z "${WITH_APPINDICATOR3_FALSE}"; then - as_fn_error $? "conditional \"WITH_APPINDICATOR3\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${WITH_GNOTIFICATION_TRUE}" && test -z "${WITH_GNOTIFICATION_FALSE}"; then - as_fn_error $? "conditional \"WITH_GNOTIFICATION\" 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" -{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 -$as_echo "$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 -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 - - -as_nl=' -' -export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi - -# The user is always right. -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 - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - -# 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 - test -z "$as_dir" && as_dir=. - 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 - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - exit 1 -fi - -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - - -# 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 - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 - fi - $as_echo "$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 - as_fn_append () - { - eval $1=\$$1\$2 - } -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 - as_fn_arith () - { - as_val=`expr "$@" || test $? -eq 1` - } -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 || -$as_echo 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 - -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 - -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=`$as_echo "$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 || -$as_echo 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_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -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 Roger Router $as_me 1.8.14, which was -generated by GNU Autoconf 2.69. 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 -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" -ac_cs_version="\\ -Roger Router config.status 1.8.14 -configured by $0, generated by GNU Autoconf 2.69, - with options \\"\$ac_cs_config\\" - -Copyright (C) 2012 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 ) - $as_echo "$ac_cs_version"; exit ;; - --config | --confi | --conf | --con | --co | --c ) - $as_echo "$ac_cs_config"; exit ;; - --debug | --debu | --deb | --de | --d | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$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=`$as_echo "$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 ) - $as_echo "$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 - \$as_echo "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 - $as_echo "$ac_log" -} >&5 - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -# -# INIT-COMMANDS -# -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" - - -# 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"`' -AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' -DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' -OBJDUMP='`$ECHO "$OBJDUMP" | $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"`' -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"`' -sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' -AR='`$ECHO "$AR" | $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 AS \ -DLLTOOL \ -OBJDUMP \ -SHELL \ -ECHO \ -PATH_SEPARATOR \ -SED \ -GREP \ -EGREP \ -FGREP \ -LD \ -NM \ -LN_S \ -lt_SP2NL \ -lt_NL2SP \ -reload_flag \ -deplibs_check_method \ -file_magic_cmd \ -file_magic_glob \ -want_nocaseglob \ -sharedlib_from_linklib_cmd \ -AR \ -AR_FLAGS \ -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 - "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; - "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "win32/roger.nsi") CONFIG_FILES="$CONFIG_FILES win32/roger.nsi" ;; - "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; - "doc/roger.1") CONFIG_FILES="$CONFIG_FILES doc/roger.1" ;; - "doc/roger_cli.1") CONFIG_FILES="$CONFIG_FILES doc/roger_cli.1" ;; - "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; - "libroutermanager/routermanager.pc") CONFIG_FILES="$CONFIG_FILES libroutermanager/routermanager.pc" ;; - "libroutermanager/Makefile") CONFIG_FILES="$CONFIG_FILES libroutermanager/Makefile" ;; - "libroutermanager/data/Makefile") CONFIG_FILES="$CONFIG_FILES libroutermanager/data/Makefile" ;; - "libroutermanager/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES libroutermanager/plugins/Makefile" ;; - "libroutermanager/plugins/fritzbox/Makefile") CONFIG_FILES="$CONFIG_FILES libroutermanager/plugins/fritzbox/Makefile" ;; - "libroutermanager/plugins/callmonitor/Makefile") CONFIG_FILES="$CONFIG_FILES libroutermanager/plugins/callmonitor/Makefile" ;; - "libroutermanager/plugins/areacodes_global/Makefile") CONFIG_FILES="$CONFIG_FILES libroutermanager/plugins/areacodes_global/Makefile" ;; - "libroutermanager/plugins/pulseaudio/Makefile") CONFIG_FILES="$CONFIG_FILES libroutermanager/plugins/pulseaudio/Makefile" ;; - "libroutermanager/plugins/reverselookup/Makefile") CONFIG_FILES="$CONFIG_FILES libroutermanager/plugins/reverselookup/Makefile" ;; - "libroutermanager/plugins/webjournal/Makefile") CONFIG_FILES="$CONFIG_FILES libroutermanager/plugins/webjournal/Makefile" ;; - "libroutermanager/plugins/wincred/Makefile") CONFIG_FILES="$CONFIG_FILES libroutermanager/plugins/wincred/Makefile" ;; - "libroutermanager/plugins/portaudio/Makefile") CONFIG_FILES="$CONFIG_FILES libroutermanager/plugins/portaudio/Makefile" ;; - "libroutermanager/plugins/gstreamer1/Makefile") CONFIG_FILES="$CONFIG_FILES libroutermanager/plugins/gstreamer1/Makefile" ;; - "libroutermanager/plugins/secret/Makefile") CONFIG_FILES="$CONFIG_FILES libroutermanager/plugins/secret/Makefile" ;; - "roger/Makefile") CONFIG_FILES="$CONFIG_FILES roger/Makefile" ;; - "roger/roger_winres.rc") CONFIG_FILES="$CONFIG_FILES roger/roger_winres.rc" ;; - "roger/data/Makefile") CONFIG_FILES="$CONFIG_FILES roger/data/Makefile" ;; - "roger-cli/Makefile") CONFIG_FILES="$CONFIG_FILES roger-cli/Makefile" ;; - "roger/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES roger/plugins/Makefile" ;; - "roger/plugins/statusicon/Makefile") CONFIG_FILES="$CONFIG_FILES roger/plugins/statusicon/Makefile" ;; - "roger/plugins/statusicon/data/Makefile") CONFIG_FILES="$CONFIG_FILES roger/plugins/statusicon/data/Makefile" ;; - "roger/plugins/fritzfon/Makefile") CONFIG_FILES="$CONFIG_FILES roger/plugins/fritzfon/Makefile" ;; - "roger/plugins/fritzfon/data/Makefile") CONFIG_FILES="$CONFIG_FILES roger/plugins/fritzfon/data/Makefile" ;; - "roger/plugins/evolution/Makefile") CONFIG_FILES="$CONFIG_FILES roger/plugins/evolution/Makefile" ;; - "roger/plugins/evolution/data/Makefile") CONFIG_FILES="$CONFIG_FILES roger/plugins/evolution/data/Makefile" ;; - "roger/plugins/gtknotify/Makefile") CONFIG_FILES="$CONFIG_FILES roger/plugins/gtknotify/Makefile" ;; - "roger/plugins/gtknotify/data/Makefile") CONFIG_FILES="$CONFIG_FILES roger/plugins/gtknotify/data/Makefile" ;; - "roger/plugins/indicator/Makefile") CONFIG_FILES="$CONFIG_FILES roger/plugins/indicator/Makefile" ;; - "roger/plugins/indicator/data/Makefile") CONFIG_FILES="$CONFIG_FILES roger/plugins/indicator/data/Makefile" ;; - "roger/plugins/vcard/Makefile") CONFIG_FILES="$CONFIG_FILES roger/plugins/vcard/Makefile" ;; - "roger/plugins/vcard/data/Makefile") CONFIG_FILES="$CONFIG_FILES roger/plugins/vcard/data/Makefile" ;; - "roger/plugins/google/Makefile") CONFIG_FILES="$CONFIG_FILES roger/plugins/google/Makefile" ;; - "roger/plugins/google/data/Makefile") CONFIG_FILES="$CONFIG_FILES roger/plugins/google/data/Makefile" ;; - "roger/plugins/thunderbird/Makefile") CONFIG_FILES="$CONFIG_FILES roger/plugins/thunderbird/Makefile" ;; - "roger/plugins/thunderbird/data/Makefile") CONFIG_FILES="$CONFIG_FILES roger/plugins/thunderbird/data/Makefile" ;; - "roger/plugins/kwallet/Makefile") CONFIG_FILES="$CONFIG_FILES roger/plugins/kwallet/Makefile" ;; - "roger/plugins/keychain/Makefile") CONFIG_FILES="$CONFIG_FILES roger/plugins/keychain/Makefile" ;; - "roger/plugins/osxab/Makefile") CONFIG_FILES="$CONFIG_FILES roger/plugins/osxab/Makefile" ;; - "roger/plugins/notification/Makefile") CONFIG_FILES="$CONFIG_FILES roger/plugins/notification/Makefile" ;; - "roger/plugins/notification/data/Makefile") CONFIG_FILES="$CONFIG_FILES roger/plugins/notification/data/Makefile" ;; - "roger/plugins/gnotification/Makefile") CONFIG_FILES="$CONFIG_FILES roger/plugins/gnotification/Makefile" ;; - "roger/plugins/gnotification/data/Makefile") CONFIG_FILES="$CONFIG_FILES roger/plugins/gnotification/data/Makefile" ;; - "roger/images/Makefile") CONFIG_FILES="$CONFIG_FILES roger/images/Makefile" ;; - "roger/images/16x16/Makefile") CONFIG_FILES="$CONFIG_FILES roger/images/16x16/Makefile" ;; - "roger/images/22x22/Makefile") CONFIG_FILES="$CONFIG_FILES roger/images/22x22/Makefile" ;; - "roger/images/24x24/Makefile") CONFIG_FILES="$CONFIG_FILES roger/images/24x24/Makefile" ;; - "roger/images/32x32/Makefile") CONFIG_FILES="$CONFIG_FILES roger/images/32x32/Makefile" ;; - "roger/images/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES roger/images/48x48/Makefile" ;; - "roger/images/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES roger/images/scalable/Makefile" ;; - "macosx/roger.plist") CONFIG_FILES="$CONFIG_FILES macosx/roger.plist" ;; - "macosx/package") CONFIG_FILES="$CONFIG_FILES macosx/package" ;; - "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;; - - *) 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+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers - test "${CONFIG_COMMANDS+set}" = set || 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=`$as_echo "$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 '` - $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' - `' by configure.' - if test x"$ac_file" != x-; then - configure_input="$ac_file. $configure_input" - { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 -$as_echo "$as_me: creating $ac_file" >&6;} - fi - # Neutralize special characters interpreted by sed in replacement strings. - case $configure_input in #( - *\&* | *\|* | *\\* ) - ac_sed_conf_input=`$as_echo "$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 || -$as_echo 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=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$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@*) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -$as_echo "$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"; } && - { $as_echo "$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 -$as_echo "$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 - { - $as_echo "/* $configure_input */" \ - && 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 - { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 -$as_echo "$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 - $as_echo "/* $configure_input */" \ - && 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 || -$as_echo 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) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 -$as_echo "$as_me: executing $ac_file commands" >&6;} - ;; - esac - - - case $ac_file$ac_mode in - "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. - case $CONFIG_FILES in - *\'*) eval set x "$CONFIG_FILES" ;; - *) set x $CONFIG_FILES ;; - esac - shift - for mf - do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named 'Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then - dirpart=`$as_dirname -- "$mf" || -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$mf" : 'X\(//\)[^/]' \| \ - X"$mf" : 'X\(//\)$' \| \ - X"$mf" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$mf" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running 'make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "$am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`$as_dirname -- "$file" || -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$file" : 'X\(//\)[^/]' \| \ - X"$file" : 'X\(//\)$' \| \ - X"$file" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - as_dir=$dirpart/$fdir; as_fn_mkdir_p - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done - done -} - ;; - "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 - -# Assembler program. -AS=$lt_AS - -# DLL creation program. -DLLTOOL=$lt_DLLTOOL - -# Object dumper program. -OBJDUMP=$lt_OBJDUMP - -# 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 - -# 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 - -# 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. -AR_FLAGS=$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 - - ;; - "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*) - sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile - esac ;; - "po/stamp-it":C) - if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then - as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5 - fi - rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp" - >"po/stamp-it.tmp" - sed '/^#/d - s/^[[].*] *// - /^[ ]*$/d - '"s|^| $ac_top_srcdir/|" \ - "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES" - - sed '/^POTFILES =/,/[^\\]$/ { - /^POTFILES =/!d - r po/POTFILES - } - ' "po/Makefile.in" >"po/Makefile" - rm -f "po/Makefile.tmp" - mv "po/stamp-it.tmp" "po/stamp-it" - ;; - - 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 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 -$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} -fi - - - -printf "\n" -printf "configure: *** Extra features that will be built:" -printf "$ROGER_FEATURES_YES\n" | sort -printf "\n" -printf "configure: *** Extra features that will NOT be built:" -printf "$ROGER_FEATURES_NO\n" | sort -printf "\n" diff -Nru roger-router-1.8.14/configure.ac roger-router-2.1.6/configure.ac --- roger-router-1.8.14/configure.ac 2015-12-10 21:33:02.000000000 +0000 +++ roger-router-2.1.6/configure.ac 1970-01-01 00:00:00.000000000 +0000 @@ -1,648 +0,0 @@ -dnl Process this file with autoconf to produce configure. - -m4_define([roger_major], [1]) -m4_define([roger_minor], [8]) -m4_define([roger_micro], [14]) - -m4_define([roger_version],[roger_major.roger_minor.roger_micro]) - -AC_INIT([Roger Router],[roger_version],[http://www.tabos.org/roger]) -m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) - -AC_PREFIX_DEFAULT(/usr) -AM_INIT_AUTOMAKE([1.11 no-dist-gzip dist-xz foreign subdir-objects]) -AC_CONFIG_HEADERS(config.h) - -AC_CONFIG_MACRO_DIR(m4) - -# Check for compilers. -AC_PROG_CC -AC_PROG_CXX -AC_CHECK_PROG(found_cc, "$CC", yes, no) -AM_PROG_CC_C_O - -# Check for libtool -LT_INIT(win32-dll) - -AC_CANONICAL_HOST - -GLIB_GSETTINGS - -ROGER_VERSION_MAJOR=roger_major() -AC_SUBST(ROGER_VERSION_MAJOR) -ROGER_VERSION_MINOR=roger_minor() -AC_SUBST(ROGER_VERSION_MINOR) -ROGER_VERSION_MICRO=roger_micro() -AC_SUBST(ROGER_VERSION_MICRO) - -AC_CHECK_LIB(m, pow) -AC_CHECK_LIB(gthread-2.0, g_thread_init) -AC_PATH_PROG(INTLTOOL_MSGMERGE, msgmerge, msgmerge) -AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext) - -dnl Add the languages which your application supports to po/LINGUAS -GETTEXT_PACKAGE=roger -AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Define to the Gettext package name]) -AC_SUBST(GETTEXT_PACKAGE) -IT_PROG_INTLTOOL([0.40.0]) - -ALL_LINGUAS="" -AM_GLIB_GNU_GETTEXT - -AC_MSG_CHECKING([if cross-building for win32]) -case "$host" in - *-*-*mingw*) - WIN32=yes - macos=no - OS_CFLAGS="-D_WIN32_WINNT=0x0501 -DROUTERMANAGER_PLUGINS='\"lib/routermanager/\"' -DAPP_PLUGINS='\"lib/roger/\"' -DAPP_DATA='\"share/roger/\"' -DAPP_LOCALE='\"share/locale\"'" - OS_LIBS="-mwindows -mms-bitfields -Wl,-subsystem,windows -lws2_32" - AC_CHECK_TOOL(WINDRES, windres) - ;; - *darwin*) - WIN32=no - macos=yes - OS_CFLAGS="-DROUTERMANAGER_PLUGINS='\"lib/routermanager/\"' -DAPP_PLUGINS='\"lib/roger/\"' -DAPP_DATA='\"share/roger/\"' -DAPP_LOCALE='\"share/locale\"'" - OS_LIBS="-rdynamic" - ;; - *freebsd*) - WIN32=no - macos=no - AC_PREFIX_DEFAULT(/usr/local) - OS_CFLAGS="" - OS_LIBS="-rdynamic" - ;; - *) - WIN32=no - macos=no - OS_CFLAGS="-DROUTERMANAGER_PLUGINS='\"\$(libdir)/routermanager/\"' -DAPP_PLUGINS='\"\$(libdir)/roger/\"' -DAPP_DATA='\"\$(datadir)/roger/\"' -DAPP_LOCALE='\"\$(localedir)\"' -Wall" - OS_LIBS="-rdynamic" - ;; -esac -AC_SUBST(OS_CFLAGS) -AC_SUBST(OS_LIBS) -AC_MSG_RESULT([$WIN32]) -AM_CONDITIONAL(WIN32, test "x$WIN32" != "xno") -AM_CONDITIONAL(MACOSX, test "x$macos" != "xno") - -PKG_CHECK_MODULES([EXTRA], [glib-2.0 >= 2.40 gio-2.0 >= 2.40 speex >= 1.0 speexdsp >= 1.0 sndfile >= 1.0.0 libxml-2.0 gupnp-1.0 gssdp-1.0]) - -# Check for GTK >= 3.14 -PKG_CHECK_MODULES([GTK], [gtk+-3.0 >= 3.10]) - -PKG_CHECK_MODULES([GMODULE], [gmodule-2.0]) - -PKG_CHECK_MODULES([SOUP], [libsoup-2.4]) - -PKG_CHECK_MODULES([PEAS], [libpeas-1.0]) -PKG_CHECK_MODULES([PEAS_GTK], [libpeas-gtk-1.0]) - -AC_CHECK_HEADERS([tiffio.h]) -AC_CHECK_LIB([tiff], [TIFFOpen], , AC_MSG_ERROR("Can't build without libtiff (does your system require a libtiff-devel package?)"), -lm) - -dnl ******************************************************************* -dnl Decide which fax spooler solution to use -dnl ******************************************************************* -# determine prefered default type -case "$host" in - *-*-*mingw*) - fax_printer=socket-server - ;; - *darwin* | *freebsd*) - PKG_CHECK_MODULES(FAX_SPOOLER, - [gio-2.0 >= 2.36], - [fax_printer=spoolerdir], - [fax_printer=socket-server] - ) - ;; - - *) - fax_printer=spoolerdir - ;; -esac - -AC_ARG_WITH([fax_spooler-type], - [AS_HELP_STRING([--with-fax-spooler-type=@<:@ARG@:>@], - [type of fax printer spooler to be supported (possible values: spoolerdir, socket-server or auto) @<:@default=auto@:>@])], - [if test x$with_fax_spooler_type = xauto; then - with_fax_spooler_type=$fax_printer - fi], - [with_fax_spooler_type=$fax_printer]) - -AC_MSG_CHECKING(for fax spooler type) -case "$with_fax_spooler_type" in - spoolerdir) - AC_DEFINE(USE_PRINTER_SPOOLER, 1, [Expect files in spooler directory /var/spool/roger]) - AC_MSG_RESULT([Outgoing faxes are expected in spooler directory /var/spool/roger]) - ;; - socket-server) - AC_DEFINE(USE_PRINTER_SERVER, 1, [Use printer server on port 9100]) - AC_MSG_RESULT([Outgoing faxes are received by fax printer server on port 9100]) - ;; - *) - AC_MSG_ERROR([Invalid option $with_fax_spooler_type]) - ;; -esac - -dnl ******************************************************************* -dnl Check if we can support gtkstatusicon plugin -dnl ******************************************************************* -AC_MSG_CHECKING(for statusicon support) -AS_IF($PKG_CONFIG --atleast-version=3.16 gtk+-3.0, [with_statusicon=no], [with_statusicon=yes]) -AC_MSG_RESULT($with_statusicon) -AM_CONDITIONAL(WITH_STATUSICON, test "x$with_statusicon" != "xno") - -# Check for unistd.h -AC_CHECK_HEADERS([unistd.h]) - -# Check for sigaction and sigset -AC_CHECK_FUNCS(sigaction, [ have_sigaction="1" ], [ have_sigaction="0" ]) - -AC_CACHE_CHECK([for sigset()],[ac_cv_sigset],[ - AC_TRY_COMPILE([#include ],[sigset(SIGTERM,SIG_IGN);], - [ac_cv_sigset=yes], [ac_cv_sigset=no]) -]) -if test x"ac_cv_sigset" = xyes; then - AC_DEFINE([HAVE_SIGSET],1,[Define to 1 if you have the `sigset' function.]) -fi - -dnl ******************************************************************** -dnl libnotify is optional -dnl ******************************************************************** -AC_ARG_WITH([libnotify], - [AS_HELP_STRING([--with-libnotify=@<:@ARG@:>@], - [Use libnotify (possible values: no, yes, check, or the path to libnotify) @<:@default=check@:>@])], - [], - [with_libnotify=check]) - -AC_MSG_CHECKING(for libnotify) -AS_IF([test "x$with_libnotify" != xsuper], - [if test "x$with_libnotify" = xcheck; then - $PKG_CONFIG --exists libnotify && with_libnotify=yes - elif test "x$with_libnotify" = xyes; then - ( $PKG_CONFIG --exists libnotify ) || AC_MSG_FAILURE( - [--with-libnotify=yes was given, but test for libnotify failed]) - fi - if test "x$with_libnotify" = xyes; then - AC_SUBST([LIBNOTIFY_CFLAGS], ["`$PKG_CONFIG --cflags libnotify`"]) - AC_SUBST([LIBNOTIFY_LIBS], ["`$PKG_CONFIG --libs libnotify`"]) - AC_DEFINE([HAVE_LIBNOTIFY], 1, [Have libnotify]) - ROGER_FEATURES_YES="\tlibnotify\n$ROGER_FEATURES_YES" - else - with_libnotify=no - ROGER_FEATURES_NO="\tlibnotify\n$ROGER_FEATURES_NO" - fi -]) - -AC_MSG_RESULT($with_libnotify) - -AM_CONDITIONAL(WITH_LIBNOTIFY, test "x$with_libnotify" != "xno") - -dnl ******************************************************************** -dnl secret is optional -dnl ******************************************************************** -AC_ARG_WITH([secret], - [AS_HELP_STRING([--with-secret=@<:@ARG@:>@], - [Use secret (possible values: no, yes, check, or the path to secret) @<:@default=check@:>@])], - [], - [with_secret=check]) - -AC_MSG_CHECKING(for libsecret-1 >= 0.11) -AS_IF([test "x$with_secret" != xno], - [if test "x$with_secret" = xcheck; then - $PKG_CONFIG --atleast-version=0.11 libsecret-1 && with_secret=yes - elif test "x$with_secret" = xyes; then - $PKG_CONFIG --atleast-version=0.11 libsecret-1 || AC_MSG_FAILURE( - [--with-secret=yes was given, but test for secret failed]) - fi - if test "x$with_secret" = xyes; then - AC_SUBST([SECRET_CFLAGS], ["`$PKG_CONFIG --cflags libsecret-1`"]) - AC_SUBST([SECRET_LIBS], ["`$PKG_CONFIG --libs libsecret-1`"]) - - ROGER_FEATURES_YES="\tsecret\n$ROGER_FEATURES_YES" - else - with_secret=no - ROGER_FEATURES_NO="\tsecret\n$ROGER_FEATURES_NO" - fi -]) -AC_MSG_RESULT($with_secret) -AM_CONDITIONAL(WITH_SECRET, test "x$with_secret" != "xno") -AM_CONDITIONAL(HAVE_SECRET_SOURCE_REGISTRY, test "x$with_secret_registry" = "xyes") - -dnl ******************************************************************** -dnl MacOS keyChain is optional -dnl ******************************************************************** -AC_ARG_WITH([macos-keychain], - [AS_HELP_STRING([--with-macos-keychain=@<:@ARG@:>@], - [Use macos-keychain (possible values: no, yes, check) @<:@default=check@:>@])], - [], - [with_macos_keychain=check]) - -AC_MSG_CHECKING(for MacOS-keyring) - -if test "$with_macos_keychain" = "check"; then -AC_CACHE_CHECK([for SecKeychainGetVersion], - ac_cv_func_SecKeychainGetVersion, - [ac_save_LIBS="$LIBS" - LIBS="$LIBS -Wl,-framework -Wl,Security" - AC_TRY_LINK([#include ], - [SecKeychainGetVersion(NULL);], - [ac_cv_func_SecKeychainGetVersion=yes], - [ac_cv_func_SecKeychainGetVersion=no]) - LIBS="$ac_save_LIBS"]) -if test $ac_cv_func_SecKeychainGetVersion = yes; then - with_macos_keychain=yes - OS_LIBS="$OS_LIBS -Wl,-framework -Wl,Security" -else - with_macos_keychain=no -fi -fi - -if test "x$with_macos_keychain" != "xno"; then - ROGER_FEATURES_YES="\tmacos-keyring\n$ROGER_FEATURES_YES" - with_macos_keychain=yes -else - ROGER_FEATURES_NO="\tmacos-keyring\n$ROGER_FEATURES_NO" -fi - -AC_MSG_RESULT($with_macos_keychain) - -AM_CONDITIONAL(WITH_MACOS_KEYCHAIN, test "x$with_macos_keychain" != "xno") - -AM_CONDITIONAL(WITH_OSX_AB, test "x$with_macos_keychain" != "xno") - -dnl ******************************************************************** -dnl kwallet is optional -dnl ******************************************************************** -AC_ARG_WITH([kwallet], - [AS_HELP_STRING([--with-kwallet=@<:@ARG@:>@], - [Use kwallet (possible values: no, yes or the path to kwallet) @<:@default=no@:>@])], - [], - [with_kwallet=no]) - -AC_MSG_CHECKING(for kwallet) -AS_IF([test "x$with_kwallet" != xno], - [AC_SUBST([KWALLET_CFLAGS], ["`pkg-config --cflags-only-I QtCore QtDBus QtGui` -I`kde4-config --path include`"]) - AC_SUBST([KWALLET_LIBS], ["-lQtCore -lQtDBus -lQtGui -lkdecore -lkdeui -L`kde4-config --path lib` -L/usr/lib/kde4/devel -L/usr/lib64/kde4/devel"]) - AC_DEFINE([HAVE_KWALLET], 1, [Have kwallet]) - ROGER_FEATURES_YES="\tkwallet\n$ROGER_FEATURES_YES" -]) -AC_MSG_RESULT($with_kwallet) - -AM_CONDITIONAL(WITH_KWALLET, test "x$with_kwallet" != "xno") - - -dnl ******************************************************************** -dnl gdata is optional -dnl ******************************************************************** -AC_ARG_WITH([gdata], - [AS_HELP_STRING([--with-gdata=@<:@ARG@:>@], - [Use gdata (possible values: no, yes, check, or the path to secret) @<:@default=check@:>@])], - [], - [with_gdata=check]) - -AC_MSG_CHECKING(for libgdata) -AS_IF([test "x$with_gdata" != xno], - [if test "x$with_gdata" = xcheck; then - $PKG_CONFIG libgdata && with_gdata=yes - elif test "x$with_gdata" = xyes; then - $PKG_CONFIG libgdata || AC_MSG_FAILURE( - [--with-gdata=yes was given, but test for gdata failed]) - fi - if test "x$with_gdata" = xyes; then - AC_SUBST([GDATA_CFLAGS], ["`$PKG_CONFIG --cflags libgdata`"]) - AC_SUBST([GDATA_LIBS], ["`$PKG_CONFIG --libs libgdata`"]) - - ROGER_FEATURES_YES="\tgdata\n$ROGER_FEATURES_YES" - else - with_gdata=no - ROGER_FEATURES_NO="\tgdata\n$ROGER_FEATURES_NO" - fi -]) -AC_MSG_RESULT($with_gdata) -AM_CONDITIONAL(WITH_GDATA, test "x$with_gdata" != "xno") - -dnl ******************************************************************** -dnl ebook is optional -dnl ******************************************************************** -AC_ARG_WITH([ebook], - [AS_HELP_STRING([--with-ebook=@<:@ARG@:>@], - [Use ebook (possible values: no, yes, check, or the path to ebook) @<:@default=check@:>@])], - [], - [with_ebook=check]) - -AC_MSG_CHECKING(for libebook-1.2 >= 3.10.0) -AS_IF([test "x$with_ebook" != xno], - [if test "x$with_ebook" = xcheck; then - $PKG_CONFIG --atleast-version=3.10.0 libebook-1.2 && with_ebook=yes - elif test "x$with_ebook" = xyes; then - $PKG_CONFIG --atleast-version=3.10.0 libebook-1.2 || AC_MSG_FAILURE( - [--with-ebook=yes was given, but test for ebook failed]) - fi - if test "x$with_ebook" = xyes; then - AC_SUBST([EBOOK_CFLAGS], ["`$PKG_CONFIG --cflags libebook-1.2`"]) - AC_SUBST([EBOOK_LIBS], ["`$PKG_CONFIG --libs libebook-1.2`"]) - - ROGER_FEATURES_YES="\tebook\n$ROGER_FEATURES_YES" - else - with_ebook=no - ROGER_FEATURES_NO="\tebook\n$ROGER_FEATURES_NO" - fi -]) -AC_MSG_RESULT($with_ebook) -AM_CONDITIONAL(WITH_EBOOK, test "x$with_ebook" != "xno") - -dnl ******************************************************************** -dnl gstreamer-1.4 is optional -dnl ******************************************************************** -AC_ARG_WITH([gstreamer1], - [AS_HELP_STRING([--with-gstreamer1=@<:@ARG@:>@], - [Use gstreamer-1.0 (possible values: no, yes, check, or the path to gstreamer) @<:@default=check@:>@])], - [], - [with_gstreamer1=check]) - -AC_MSG_CHECKING(for gstreamer-1.4 and gstreamer-app-1.4) -AS_IF([test "x$with_gstreamer1" != xno], - [if test "x$with_gstreamer1" = xcheck; then - pkg-config --atleast-version=1.4.0 gstreamer-1.0 && pkg-config --exists gstreamer-app-1.0 && with_gstreamer1=yes - elif test "x$with_gstreamer1" = xyes; then - ( pkg-config --atleast-version=1.4.0 gstreamer-1.0 && pkg-config --exists gstreamer-app-1.0) || AC_MSG_FAILURE( - [--with-gstreamer-1.0=yes was given, but test for gstreamer-1.0 and gstreamer-app-1.0 failed]) - fi - if test "x$with_gstreamer1" = xyes; then - AC_SUBST([GSTREAMER1_CFLAGS], ["`pkg-config --cflags gstreamer-1.0 gstreamer-app-1.0`"]) - AC_SUBST([GSTREAMER1_LIBS], ["`pkg-config --libs gstreamer-1.0 gstreamer-app-1.0`"]) - AC_DEFINE([HAVE_GSTREAMER1], 1, [Have gstreamer 1.0]) - ROGER_FEATURES_YES="\tgstreamer 1.0\n$ROGER_FEATURES_YES" - else - with_gstreamer1=no - ROGER_FEATURES_NO="\tgstreamer 1.0\n$ROGER_FEATURES_NO" - fi -]) - -AC_MSG_RESULT($with_gstreamer1) - -AM_CONDITIONAL(WITH_GSTREAMER1, test "x$with_gstreamer1" != "xno") - -dnl ******************************************************************** -dnl pulseaudio is optional -dnl ******************************************************************** -AC_ARG_WITH([pulseaudio], - [AS_HELP_STRING([--with-pulseaudio=@<:@ARG@:>@], - [Use pulseaudio (possible values: no, yes, check, or the path to pulseaudio) @<:@default=no@:>@])], - [], - [with_pulseaudio=no]) - -AC_MSG_CHECKING(for libpulse-simple) -AS_IF([test "x$with_pulseaudio" != xsuper], - [if test "x$with_pulseaudio" = xcheck; then - $PKG_CONFIG --exists libpulse-simple && with_pulseaudio=yes - elif test "x$with_pulseaudio" = xyes; then - ( $PKG_CONFIG --exists libpulse-simple ) || AC_MSG_FAILURE( - [--with-pulseaudio=yes was given, but test for libpulse-simple failed]) - fi - if test "x$with_pulseaudio" = xyes; then - AC_SUBST([PULSEAUDIO_CFLAGS], ["`$PKG_CONFIG --cflags libpulse-simple`"]) - AC_SUBST([PULSEAUDIO_LIBS], ["`$PKG_CONFIG --libs libpulse-simple`"]) - AC_DEFINE([HAVE_PULSEAUDIO], 1, [Have pulseaudio]) - ROGER_FEATURES_YES="\tpulseaudio\n$ROGER_FEATURES_YES" - else - with_pulseaudio=no - ROGER_FEATURES_NO="\tpulseaudio\n$ROGER_FEATURES_NO" - fi -]) - -AC_MSG_RESULT($with_pulseaudio) - -AM_CONDITIONAL(WITH_PULSEAUDIO, test "x$with_pulseaudio" != "xno") - -dnl ******************************************************************** -dnl portaudio is optional -dnl ******************************************************************** -AC_ARG_WITH([portaudio], - [AS_HELP_STRING([--with-portaudio=@<:@ARG@:>@], - [Use portaudio (possible values: no, yes, check, or the path to portaudio) @<:@default=no@:>@])], - [], - [with_portaudio=no]) - -AC_MSG_CHECKING(for portaudio-2.0 version 19) -AS_IF([test "x$with_portaudio" != xsuper], - [if test "x$with_portaudio" = xcheck; then - $PKG_CONFIG --atleast-version=19 portaudio-2.0 && with_portaudio=yes - elif test "x$with_portaudio" = xyes; then - ( $PKG_CONFIG --atleast-version=19 portaudio-2.0 ) || AC_MSG_FAILURE( - [--with-portaudio=yes was given, but test for portaudio-2.0 failed]) - fi - if test "x$with_portaudio" = xyes; then - AC_SUBST([PORTAUDIO_CFLAGS], ["`$PKG_CONFIG --cflags portaudio-2.0`"]) - AC_SUBST([PORTAUDIO_LIBS], ["`$PKG_CONFIG --libs portaudio-2.0`"]) - AC_DEFINE([HAVE_PORTAUDIO], 1, [Have portaudio]) - ROGER_FEATURES_YES="\tportaudio\n$ROGER_FEATURES_YES" - else - with_portaudio=no - ROGER_FEATURES_NO="\tportaudio\n$ROGER_FEATURES_NO" - fi -]) - -AC_MSG_RESULT($with_portaudio) - -AM_CONDITIONAL(WITH_PORTAUDIO, test "x$with_portaudio" != "xno") - - -dnl ******************************************************************** -dnl faxophone -dnl ******************************************************************** -AC_MSG_CHECKING(for faxophone) -AC_ARG_WITH([faxophone], - [AS_HELP_STRING([--with-faxophone=@<:@ARG@:>@], - [Use faxophone (possible values: yes or no) @<:@default=yes@:>@])], - [], - [with_faxophone=yes]) -AC_MSG_RESULT($with_faxophone) - -# Faxophone test -if test "x$with_faxophone" = xyes; then - AC_DEFINE([HAVE_FAXOPHONE], 1, [Have faxophone]) - ROGER_FEATURES_YES="\tfaxophone\n$ROGER_FEATURES_YES" - - PKG_CHECK_MODULES([CAPI], [capi20 >= 3.6], - [AC_DEFINE([HAVE_CAPI_36], 1, [Use new CAPI])], - [PKG_CHECK_MODULES([CAPI], [capi20 >= 3.5])]) - - dnl ******************************************************************** - dnl spandsp - dnl ******************************************************************** - AC_ARG_WITH([spandsp], - [AS_HELP_STRING([--with-spandsp=@<:@ARG@:>@], - [Use spandsp (possible values: yes, check, or the path to spandsp) @<:@default=check@:>@])], - [], - [with_spandsp=check]) - - AC_MSG_CHECKING(for spandsp) - AS_IF([test "x$with_spandsp" != xsuper], - [if test "x$with_spandsp" = xcheck; then - $PKG_CONFIG --exists spandsp && with_spandsp=yes - elif test "x$with_spandsp" = xyes; then - ( $PKG_CONFIG --exists spandsp ) || AC_MSG_FAILURE( - [--with-spandsp=yes was given, but test for spandsp]) - fi - if test "x$with_spandsp" = xyes; then - AC_SUBST([SPANDSP_CFLAGS], ["`$PKG_CONFIG --cflags spandsp`"]) - AC_SUBST([SPANDSP_LIBS], ["`$PKG_CONFIG --libs spandsp`"]) - AC_MSG_RESULT($with_spandsp) - else - AC_MSG_RESULT($with_spandsp) - AC_CHECK_LIB(spandsp, fax_init, [with_spandsp=yes], AC_MSG_ERROR([spandsp is required by this package])) - AC_SUBST([SPANDSP_CFLAGS], [""]) - AC_SUBST([SPANDSP_LIBS], ["-lspandsp"]) - fi - ]) -else - ROGER_FEATURES_NO="\tfaxophone\n$ROGER_FEATURES_NO" -fi - -AM_CONDITIONAL(WITH_FAXOPHONE, test "x$with_faxophone" != "xno") - -dnl ******************************************************************** -dnl appindicator is optional -dnl ******************************************************************** -AC_ARG_WITH([appindicator3], - [AS_HELP_STRING([--with-appindicator3=@<:@ARG@:>@], - [Use appindicator3 (possible values: no, yes, check, or the path to appindicator3) @<:@default=check@:>@])], - [], - [with_appindicator3=check]) - -AC_MSG_CHECKING(for appindicator3-0.1) -AS_IF([test "x$with_appindicator3" != xno], - [if test "x$with_appindicator3" = xcheck; then - pkg-config --exists appindicator3-0.1 && with_appindicator3=yes - elif test "x$with_appindicator3" = xyes; then - pkg-config --exists appindicator3-0.1 || AC_MSG_FAILURE( - [--with-appindicator3=yes was given, but test for appindicator3 failed]) - fi - if test "x$with_appindicator3" = xyes; then - AC_SUBST([APPINDICATOR_CFLAGS], ["`pkg-config --cflags appindicator3-0.1`"]) - AC_SUBST([APPINDICATOR_LIBS], ["`pkg-config --libs appindicator3-0.1`"]) - AC_DEFINE([HAVE_APPINDICATOR], 1, [Have appindicator]) - ROGER_FEATURES_YES="\tappindicator3\n$ROGER_FEATURES_YES" - else - with_appindicator3=no - ROGER_FEATURES_NO="\tappindicator3\n$ROGER_FEATURES_NO" - fi -]) - -AC_MSG_RESULT($with_appindicator3) - -AM_CONDITIONAL(WITH_APPINDICATOR3, test "x$with_appindicator3" != "xno") - -dnl ******************************************************************** -dnl gnotification is optional -dnl ******************************************************************** -AC_ARG_WITH([gnotification], - [AS_HELP_STRING([--with-gnotifcation=@<:@ARG@:>@], - [Use gnotification (possible values: no, yes, check, or the path to gnotification) @<:@default=check@:>@])], - [], - [with_gnotification=check]) - -AC_MSG_CHECKING(for gnotification) -AS_IF([test "x$with_gnotification" != xno], - [if test "x$with_gnotification" = xcheck; then - pkg-config --atleast-version=3.12.0 gtk+-3.0 && with_gnotification=yes - elif test "x$with_gnotification" = xyes; then - ( pkg-config --atleast-version=3.12.0 gtk+-3.12.0) || AC_MSG_FAILURE( - [--with-gnotificaion=yes was given, but test for gnotificaion failed]) - fi - if test "x$with_gnotification" = xyes; then - AC_DEFINE([HAVE_GNOTIFICATION], 1, [Have gnotification]) - ROGER_FEATURES_YES="\tgnotification\n$ROGER_FEATURES_YES" - else - with_gnotification=no - ROGER_FEATURES_NO="\tgnotification\n$ROGER_FEATURES_NO" - fi -]) - -AC_MSG_RESULT($with_gnotification) - -AM_CONDITIONAL(WITH_GNOTIFICATION, test "x$with_gnotification" != "xno") - -AC_ARG_ENABLE(werror, - AS_HELP_STRING([--disable-werror], [don't use gcc's -Werror option when building])) - -if test x"$enable_werror" != xno -then - EXTRA_CFLAGS+="-Werror" -fi - -dnl ******************************************************************** -dnl Check for coverage tool gcov -dnl ******************************************************************** -dnl AC_TDD_GCOV - -AC_CONFIG_FILES([ - Makefile - win32/roger.nsi - doc/Makefile - doc/roger.1 - doc/roger_cli.1 - po/Makefile.in - libroutermanager/routermanager.pc - libroutermanager/Makefile - libroutermanager/data/Makefile - libroutermanager/plugins/Makefile - libroutermanager/plugins/fritzbox/Makefile - libroutermanager/plugins/callmonitor/Makefile - libroutermanager/plugins/areacodes_global/Makefile - libroutermanager/plugins/pulseaudio/Makefile - libroutermanager/plugins/reverselookup/Makefile - libroutermanager/plugins/webjournal/Makefile - libroutermanager/plugins/wincred/Makefile - libroutermanager/plugins/portaudio/Makefile - libroutermanager/plugins/gstreamer1/Makefile - libroutermanager/plugins/secret/Makefile - roger/Makefile - roger/roger_winres.rc - roger/data/Makefile - roger-cli/Makefile - roger/plugins/Makefile - roger/plugins/statusicon/Makefile - roger/plugins/statusicon/data/Makefile - roger/plugins/fritzfon/Makefile - roger/plugins/fritzfon/data/Makefile - roger/plugins/evolution/Makefile - roger/plugins/evolution/data/Makefile - roger/plugins/gtknotify/Makefile - roger/plugins/gtknotify/data/Makefile - roger/plugins/indicator/Makefile - roger/plugins/indicator/data/Makefile - roger/plugins/vcard/Makefile - roger/plugins/vcard/data/Makefile - roger/plugins/google/Makefile - roger/plugins/google/data/Makefile - roger/plugins/thunderbird/Makefile - roger/plugins/thunderbird/data/Makefile - roger/plugins/kwallet/Makefile - roger/plugins/keychain/Makefile - roger/plugins/osxab/Makefile - roger/plugins/notification/Makefile - roger/plugins/notification/data/Makefile - roger/plugins/gnotification/Makefile - roger/plugins/gnotification/data/Makefile - roger/images/Makefile - roger/images/16x16/Makefile - roger/images/22x22/Makefile - roger/images/24x24/Makefile - roger/images/32x32/Makefile - roger/images/48x48/Makefile - roger/images/scalable/Makefile - macosx/roger.plist - macosx/package -]) -AC_OUTPUT - - -printf "\n" -printf "configure: *** Extra features that will be built:" -printf "$ROGER_FEATURES_YES\n" | sort -printf "\n" -printf "configure: *** Extra features that will NOT be built:" -printf "$ROGER_FEATURES_NO\n" | sort -printf "\n" diff -Nru roger-router-1.8.14/create-release.sh roger-router-2.1.6/create-release.sh --- roger-router-1.8.14/create-release.sh 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/create-release.sh 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,5 @@ +#!/bin/bash +NAME=`grep -Po "project\('\K.*?(?=')" meson.build` +VERSION=`grep -Po "version : '\K.*?(?=')" meson.build` + +git archive --prefix=${NAME}-${VERSION}/ -o ${NAME}_${VERSION}.orig.tar.xz HEAD diff -Nru roger-router-1.8.14/debian/changelog roger-router-2.1.6/debian/changelog --- roger-router-1.8.14/debian/changelog 2020-01-20 08:02:01.000000000 +0000 +++ roger-router-2.1.6/debian/changelog 2020-04-15 10:37:31.000000000 +0000 @@ -1,3 +1,35 @@ +roger-router (2.1.6-4) unstable; urgency=medium + + * Replace libappindicator-dev build-dependency (Closes: #956781) + + -- Hilko Bengen Wed, 15 Apr 2020 12:37:31 +0200 + +roger-router (2.1.6-3) unstable; urgency=medium + + * Remove obsolete -cli dependency + + -- Hilko Bengen Mon, 09 Mar 2020 12:19:54 +0100 + +roger-router (2.1.6-2) unstable; urgency=medium + + * Integrate some package changes that I had missed because I had not + pulled them from Salsa + + -- Hilko Bengen Sun, 08 Mar 2020 15:00:33 +0100 + +roger-router (2.1.6-1) unstable; urgency=medium + + [ Ondřej Nový ] + * d/copyright: Change Format URL to correct one + + [ Hilko Bengen ] + * Adopt package (Closes: #899989) + * Update watch file + * New upstream version 2.1.6 + * Update package, remove library, cli packages + + -- Hilko Bengen Sun, 08 Mar 2020 14:06:50 +0100 + roger-router (1.8.14-5) unstable; urgency=medium * d/copyright: Change Format URL to correct one diff -Nru roger-router-1.8.14/debian/control roger-router-2.1.6/debian/control --- roger-router-1.8.14/debian/control 2020-01-20 08:02:01.000000000 +0000 +++ roger-router-2.1.6/debian/control 2020-04-15 10:36:52.000000000 +0000 @@ -1,28 +1,17 @@ Source: roger-router Section: net Priority: optional -Maintainer: Debian QA Group +Maintainer: Hilko Bengen Build-Depends: debhelper-compat (= 12), - libappindicator3-dev, - libcapi20-dev (>= 1:3.24), + meson, + libayatana-appindicator3-dev, libebook1.2-dev, libgdata-dev, - libgstreamer1.0-dev, libgstreamer-plugins-base1.0-dev, + libgs-dev, libgtk-3-dev, - libgupnp-1.2-dev, - libgssdp-1.2-dev, - libnotify-dev, - libpeas-dev, - libpulse-dev, - libsecret-1-dev, - libsndfile1-dev, - libsoup2.4-dev, - libspandsp-dev, - libspeex-dev, libspeexdsp-dev, - libxml2-dev, - libtool, - intltool, - portaudio19-dev + libpoppler-glib-dev, + librm-dev, + libtiff-dev, Standards-Version: 4.4.1 Rules-Requires-Root: binary-targets Homepage: http://www.tabos.org/roger @@ -32,7 +21,7 @@ Package: roger-router Architecture: any Pre-Depends: ${misc:Pre-Depends}, -Depends: ${shlibs:Depends}, ${misc:Depends}, roger-router-cli +Depends: ${shlibs:Depends}, ${misc:Depends}, Description: Home router management tool - GUI Journal, Fax-Software and Call-Monitor for AVM FRITZ!Box or compatible routers. The following features are supported through plugins: @@ -45,50 +34,3 @@ . A predecessor to the program was formerly called FRITZ!Box Fun (ffgtk). This is the GUI version of the program including plugins. - -Package: roger-router-cli -Architecture: any -Pre-Depends: ${misc:Pre-Depends}, -Depends: ${shlibs:Depends}, ${misc:Depends} -Recommends: ghostscript, - cups-daemon, - cups-client -Description: Home router management tool - command-line interface - Journal, Fax-Software and Call-Monitor for AVM FRITZ!Box or compatible - routers. The following features are supported through plugins: - . - * Call monitor, journal and address book - * Use system as softphone or dial support - * Fax transfer with CUPS integration. - . - A predecessor to the program was formerly called FRITZ!Box Fun (ffgtk). - . - This is the command-line interface part of the package only. The GUI - is available in the roger-router package. - -Package: libroutermanager0 -Architecture: any -Multi-Arch: same -Section: libs -Pre-Depends: ${misc:Pre-Depends}, -Depends: ${shlibs:Depends}, - ${misc:Depends}, -Description: Home router management tool - shared library - Journal, Fax-Software and Call-Monitor for AVM FRITZ!Box or compatible - routers. - . - This package contains the shared libraries, which are used by the main program - and its plugins. - -Package: libroutermanager-dev -Architecture: any -Multi-Arch: same -Section: libdevel -Depends: ${misc:Depends}, - libroutermanager0 (= ${binary:Version}), -Description: Home router management tool - development files - Journal, Fax-Software and Call-Monitor for AVM FRITZ!Box or compatible - routers. - . - This package contains the development libraries and header files, which are - required to build external extensions. diff -Nru roger-router-1.8.14/debian/copyright roger-router-2.1.6/debian/copyright --- roger-router-1.8.14/debian/copyright 2020-01-20 08:02:01.000000000 +0000 +++ roger-router-2.1.6/debian/copyright 2020-03-08 13:36:56.000000000 +0000 @@ -8,25 +8,18 @@ Copyright © 2010-2012 Louis Lagendijk License: GPL-2 -Files: roger/plugins/vcard/vcard.h libroutermanager/* -Copyright: Copyright © 2012-2015 Jan-Michael Brummer +Files: plugins/webjournal/webjournal.c +Copyright: 2012-2017 Jan-Michael Brummer License: LGPL-2.1+ -Files: libroutermanager/plugins/portaudio/portaudio.c -Copyright: Copyright © 1999-2000 Ross Bencina and Phil Burk -License: Expat/Bencina-Burk - -Files: win32/printer/ghostpdf.ppd -Copyright: Copyright © 2004-2006 Ghostgum Software Pty Ltd -License: Expat/Ghostgum - -Files: */Makefile.in -Copyright: Copyright © 1994-2014 Free Software Foundation, Inc. -License: MIT/FSF +Files: roger/gd-two-lines-renderer.c +Copyright: 2011 Red Hat, Inc. +License: LGPL-2.1+ Files: debian/* -Copyright: Copyright © 2009-2016 Rolf Leggewie - Copyright © 2014 Philipp Hahn +Copyright: 2019 Hilko Bengen + 2009-2016 Rolf Leggewie + 2014 Philipp Hahn License: GPL-2 License: GPL-2 @@ -45,44 +38,3 @@ . On Debian systems, the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. - -License: Expat/Bencina-Burk - 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. - -License: Expat/Ghostgum - Permission is hereby granted, free of charge, to any person obtaining - a copy of this file ("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 - this Software, and to permit persons to whom this file is furnished to - do so, subject to the following conditions: - . - This Software is distributed with NO WARRANTY OF ANY KIND. No author - or distributor accepts any responsibility for the consequences of using it, - or for whether it serves any particular purpose or works at all, unless he - or she says so in writing. - . - The above copyright notice and this permission notice shall be included - in all copies or substantial portions of the Software. - -License: MIT/FSF - 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. diff -Nru roger-router-1.8.14/debian/libroutermanager0.install roger-router-2.1.6/debian/libroutermanager0.install --- roger-router-1.8.14/debian/libroutermanager0.install 2020-01-20 07:57:18.000000000 +0000 +++ roger-router-2.1.6/debian/libroutermanager0.install 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -usr/lib/*/libroutermanager.so.* diff -Nru roger-router-1.8.14/debian/libroutermanager0.symbols roger-router-2.1.6/debian/libroutermanager0.symbols --- roger-router-1.8.14/debian/libroutermanager0.symbols 2020-01-20 07:57:18.000000000 +0000 +++ roger-router-2.1.6/debian/libroutermanager0.symbols 1970-01-01 00:00:00.000000000 +0000 @@ -1,273 +0,0 @@ -libroutermanager.so.0 libroutermanager0 #MINVER# - action_add@Base 1.8.4 - action_commit@Base 1.8.4 - action_connection_notify_cb@Base 1.8.4 - action_create@Base 1.8.4 - action_free@Base 1.8.4 - action_get_list@Base 1.8.4 - action_init@Base 1.8.4 - action_modify@Base 1.8.4 - action_remove@Base 1.8.4 - action_shutdown@Base 1.8.4 - active_capi_connection@Base 1.8.4 - address_book_available@Base 1.8.14 - address_book_can_save@Base 1.8.4 - address_book_contact_process_cb@Base 1.8.7 - address_book_get_contacts@Base 1.8.4 - address_book_number_compare@Base 1.8.7 - address_book_reload_contacts@Base 1.8.4 - address_book_remove_contact@Base 1.8.4 - address_book_save_contact@Base 1.8.4 - app_object@Base 1.8.4 - app_object_get_type@Base 1.8.4 - app_object_new@Base 1.8.4 - app_object_signals@Base 1.8.4 - audio_close@Base 1.8.4 - audio_get_default@Base 1.8.4 - audio_get_plugins@Base 1.8.9 - audio_init@Base 1.8.9 - audio_open@Base 1.8.4 - audio_read@Base 1.8.4 - audio_set_default@Base 1.8.9 - audio_write@Base 1.8.4 - call_add@Base 1.8.4 - call_by_call_prefix_length@Base 1.8.4 - call_by_call_table@Base 1.8.4 - call_canonize_number@Base 1.8.4 - call_format_number@Base 1.8.4 - call_free@Base 1.8.4 - call_full_number@Base 1.8.4 - call_scramble_number@Base 1.8.4 - call_sort_by_date@Base 1.8.4 - capi_call@Base 1.8.4 - capi_get_free_connection@Base 1.8.4 - capi_hangup@Base 1.8.4 - capi_pickup@Base 1.8.4 - capi_send_display_message@Base 1.8.4 - capi_send_dtmf_code@Base 1.8.4 - connection_add_call@Base 1.8.4 - connection_code@Base 1.8.4 - connection_established@Base 1.8.4 - connection_find_by_id@Base 1.8.4 - connection_find_by_number@Base 1.8.4 - connection_remove@Base 1.8.4 - connection_ring@Base 1.8.4 - connection_set_type@Base 1.8.4 - connection_status@Base 1.8.4 - connection_terminated@Base 1.8.4 - contact_copy@Base 1.8.4 - contact_dup@Base 1.8.4 - contact_find_by_number@Base 1.8.14 - contact_name_compare@Base 1.8.4 - convert_audio_to_isdn@Base 1.8.4 - convert_isdn_to_audio@Base 1.8.4 - create_table_buffer@Base 1.8.4 - csv_load_journal@Base 1.8.4 - csv_parse_data@Base 1.8.4 - csv_parse_journal_data@Base 1.8.4 - csv_save_journal@Base 1.8.4 - csv_save_journal_as@Base 1.8.14 - emit_connection_established@Base 1.8.4 - emit_connection_notify@Base 1.8.4 - emit_connection_status@Base 1.8.4 - emit_connection_terminated@Base 1.8.4 - emit_contact_process@Base 1.8.4 - emit_contacts_changed@Base 1.8.14 - emit_fax_process@Base 1.8.4 - emit_journal_loaded@Base 1.8.4 - emit_message@Base 1.8.7 - engine@Base 1.8.4 - event_translation_table@Base 1.8.4 - fax_clean@Base 1.8.4 - fax_dial@Base 1.8.4 - fax_printer_init@Base 1.8.4 - fax_receive@Base 1.8.4 - fax_send@Base 1.8.4 - fax_set_log_level@Base 1.8.4 - fax_spandsp_workaround@Base 1.8.4 - fax_transfer@Base 1.8.4 - faxophone_close@Base 1.8.4 - faxophone_connect@Base 1.8.4 - faxophone_disconnect@Base 1.8.4 - faxophone_get_session@Base 1.8.4 - faxophone_init@Base 1.8.4 - faxophone_setup@Base 1.8.4 - file_load@Base 1.8.4 - file_save@Base 1.8.4 - filter_add@Base 1.8.4 - filter_free@Base 1.8.4 - filter_get_list@Base 1.8.4 - filter_init@Base 1.8.4 - filter_new@Base 1.8.4 - filter_remove@Base 1.8.4 - filter_rule_add@Base 1.8.4 - filter_rule_match@Base 1.8.4 - filter_save@Base 1.8.4 - filter_shutdown@Base 1.8.4 - filter_sort_by_name@Base 1.8.4 - ftp_delete_file@Base 1.8.4 - ftp_get_file@Base 1.8.4 - ftp_init@Base 1.8.4 - ftp_list_dir@Base 1.8.4 - ftp_login@Base 1.8.4 - ftp_passive@Base 1.8.4 - ftp_put_file@Base 1.8.4 - ftp_read_control_response@Base 1.8.4 - ftp_read_data_response@Base 1.8.4 - ftp_send_command@Base 1.8.4 - ftp_shutdown@Base 1.8.4 - fx_generate@Base 1.8.4 - g_convert_utf8@Base 1.8.4 - g_strcasestr@Base 1.8.4 - get_directory@Base 1.8.4 - get_line_level_in@Base 1.8.4 - get_line_level_out@Base 1.8.4 - has_file_extension@Base 1.8.4 - init_directory_paths@Base 1.8.4 - law_2_linear16@Base 1.8.4 - linear16_2_law@Base 1.8.4 - log_init@Base 1.8.4 - log_save_data@Base 1.8.4 - log_set_level@Base 1.8.4 - log_shutdown@Base 1.8.4 - microsec_time@Base 1.8.4 - net_add_event@Base 1.8.4 - net_init@Base 1.8.4 - net_is_online@Base 1.8.4 - net_monitor_changed_cb@Base 1.8.4 - net_monitor_init@Base 1.8.4 - net_monitor_reconnect@Base 1.8.4 - net_monitor_shutdown@Base 1.8.4 - net_monitor_state_changed@Base 1.8.4 - net_remove_event@Base 1.8.4 - net_shutdown@Base 1.8.4 - new_node@Base 1.8.4 - os_execute@Base 1.8.4 - password_manager_find@Base 1.8.7 - password_manager_get_password@Base 1.8.4 - password_manager_get_plugins@Base 1.8.7 - password_manager_register@Base 1.8.4 - password_manager_remove_password@Base 1.8.4 - password_manager_set_password@Base 1.8.4 - phone_call@Base 1.8.4 - phone_conference@Base 1.8.4 - phone_dial@Base 1.8.4 - phone_flush@Base 1.8.4 - phone_hangup@Base 1.8.4 - phone_hold@Base 1.8.4 - phone_init_data@Base 1.8.4 - phone_input_thread@Base 1.8.4 - phone_mute@Base 1.8.4 - phone_pickup@Base 1.8.4 - phone_record@Base 1.8.4 - phone_send_dtmf_code@Base 1.8.4 - phone_transfer@Base 1.8.4 - plugins_init@Base 1.8.4 - plugins_shutdown@Base 1.8.4 - plugins_user_plugins@Base 1.8.4 - profile_add@Base 1.8.4 - profile_commit@Base 1.8.4 - profile_detect_active@Base 1.8.4 - profile_get_active@Base 1.8.4 - profile_get_list@Base 1.8.4 - profile_init@Base 1.8.4 - profile_new@Base 1.8.4 - profile_remove@Base 1.8.4 - profile_set_active@Base 1.8.4 - profile_shutdown@Base 1.8.4 - read_xml_from_file@Base 1.8.4 - recording_close@Base 1.8.4 - recording_flush@Base 1.8.4 - recording_init@Base 1.8.4 - recording_open@Base 1.8.4 - recording_write@Base 1.8.4 - ringtone_play@Base 1.8.4 - ringtone_stop@Base 1.8.4 - rm_print_error_quark@Base 1.8.4 - rm_settings_new@Base 1.8.14 - rm_settings_new_with_path@Base 1.8.14 - rm_settings_plugin_new@Base 1.8.14 - router_clear_journal@Base 1.8.4 - router_delete_fax@Base 1.8.4 - router_delete_voice@Base 1.8.4 - router_dial_number@Base 1.8.4 - router_free_phone_list@Base 1.8.9 - router_get_area_code@Base 1.8.4 - router_get_country_code@Base 1.8.4 - router_get_ftp_password@Base 1.8.4 - router_get_ftp_user@Base 1.8.4 - router_get_host@Base 1.8.4 - router_get_international_prefix@Base 1.8.4 - router_get_ip@Base 1.8.4 - router_get_login_password@Base 1.8.4 - router_get_login_user@Base 1.8.4 - router_get_name@Base 1.8.4 - router_get_national_prefix@Base 1.8.4 - router_get_numbers@Base 1.8.4 - router_get_phone_list@Base 1.8.4 - router_get_phone_port@Base 1.8.14 - router_get_settings@Base 1.8.4 - router_get_suppress_state@Base 1.8.14 - router_get_version@Base 1.8.4 - router_hangup@Base 1.8.4 - router_info_free@Base 1.8.4 - router_init@Base 1.8.4 - router_is_cable@Base 1.8.9 - router_load_fax@Base 1.8.4 - router_load_fax_reports@Base 1.8.9 - router_load_journal@Base 1.8.4 - router_load_voice@Base 1.8.4 - router_load_voice_records@Base 1.8.14 - router_login@Base 1.8.4 - router_logout@Base 1.8.4 - router_phone_ports@Base 1.8.4 - router_present@Base 1.8.4 - router_process_journal@Base 1.8.4 - router_reconnect@Base 1.8.4 - router_set_phone_port@Base 1.8.14 - router_shutdown@Base 1.8.4 - routermanager_address_book_register@Base 1.8.4 - routermanager_audio_register@Base 1.8.4 - routermanager_init@Base 1.8.4 - routermanager_lookup@Base 1.8.4 - routermanager_lookup_register@Base 1.8.4 - routermanager_plugins_add_search_path@Base 1.8.4 - routermanager_router_register@Base 1.8.4 - routermanager_shutdown@Base 1.8.4 - session_handlers@Base 1.8.4 - sff_clean@Base 1.8.4 - sff_init_data@Base 1.8.4 - sff_send@Base 1.8.4 - sff_transfer_thread@Base 1.8.4 - soup_session_async@Base 1.8.4 - soup_session_sync@Base 1.8.4 - spandsp_close@Base 1.8.4 - spandsp_init@Base 1.8.4 - spandsp_rx@Base 1.8.4 - spandsp_tx@Base 1.8.4 - ssdp_get_routers@Base 1.8.14 - ssdp_init@Base 1.8.14 - strip_html@Base 1.8.4 - vox_get_fraction@Base 1.8.9 - vox_init@Base 1.8.9 - vox_play@Base 1.8.4 - vox_playpause@Base 1.8.4 - vox_seek@Base 1.8.9 - vox_stop@Base 1.8.4 - xmlnode_copy@Base 1.8.4 - xmlnode_free@Base 1.8.4 - xmlnode_from_str@Base 1.8.4 - xmlnode_get_attrib@Base 1.8.4 - xmlnode_get_child@Base 1.8.4 - xmlnode_get_child_with_namespace@Base 1.8.4 - xmlnode_get_data@Base 1.8.4 - xmlnode_get_namespace@Base 1.8.4 - xmlnode_get_next_twin@Base 1.8.4 - xmlnode_insert_child@Base 1.8.4 - xmlnode_insert_data@Base 1.8.4 - xmlnode_new@Base 1.8.4 - xmlnode_new_child@Base 1.8.4 - xmlnode_set_attrib@Base 1.8.4 - xmlnode_set_data@Base 1.8.4 - xmlnode_set_namespace@Base 1.8.4 - xmlnode_to_formatted_str@Base 1.8.4 diff -Nru roger-router-1.8.14/debian/libroutermanager-dev.install roger-router-2.1.6/debian/libroutermanager-dev.install --- roger-router-1.8.14/debian/libroutermanager-dev.install 2020-01-20 07:57:18.000000000 +0000 +++ roger-router-2.1.6/debian/libroutermanager-dev.install 1970-01-01 00:00:00.000000000 +0000 @@ -1,3 +0,0 @@ -usr/lib/*/pkgconfig/routermanager.pc -usr/include/libroutermanager -usr/lib/*/libroutermanager.so diff -Nru roger-router-1.8.14/debian/patches/deprecate_python2_plugins.diff roger-router-2.1.6/debian/patches/deprecate_python2_plugins.diff --- roger-router-1.8.14/debian/patches/deprecate_python2_plugins.diff 2020-01-20 07:57:18.000000000 +0000 +++ roger-router-2.1.6/debian/patches/deprecate_python2_plugins.diff 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -diff --git a/libroutermanager/plugins.c b/libroutermanager/plugins.c -index abe364c..506d1c7 100644 ---- a/libroutermanager/plugins.c -+++ b/libroutermanager/plugins.c -@@ -97,8 +97,8 @@ void plugins_init(void) - peas_engine_add_search_path(engine, plugin_dir, plugin_dir); - } - -- /* In addition to C we want to support python plugins */ -- peas_engine_enable_loader(engine, "python"); -+ /* In addition to C we want to support python3 plugins */ -+ peas_engine_enable_loader(engine, "python3"); - - /* Traverse through detected plugins and loaded builtin plugins now */ - for (list = peas_engine_get_plugin_list(engine); list != NULL; list = list->next) { diff -Nru roger-router-1.8.14/debian/patches/eds-3.33 roger-router-2.1.6/debian/patches/eds-3.33 --- roger-router-1.8.14/debian/patches/eds-3.33 2019-08-14 10:17:20.000000000 +0000 +++ roger-router-2.1.6/debian/patches/eds-3.33 1970-01-01 00:00:00.000000000 +0000 @@ -1,45 +0,0 @@ -Description: Work with libebook 3.33.4 API changes wrt 3.32 -Author: Iain Lane -Forwarded: https://gitlab.com/tabos/rogerrouter/merge_requests/6 - ---- a/roger/plugins/evolution/evolution.c -+++ b/roger/plugins/evolution/evolution.c -@@ -475,7 +475,7 @@ - - client = E_BOOK_CLIENT(e_client); - -- ret = e_book_client_remove_contact_by_uid_sync(client, contact->priv, NULL, NULL); -+ ret = e_book_client_remove_contact_by_uid_sync(client, contact->priv, E_BOOK_OPERATION_FLAG_NONE, NULL, NULL); - if (ret) { - ebook_read_book_sync(); - } -@@ -591,9 +591,9 @@ - evolution_set_image(e_contact, contact); - - if (!contact->priv) { -- ret = e_book_client_add_contact_sync(client, e_contact, NULL, NULL, &error); -+ ret = e_book_client_add_contact_sync(client, e_contact, E_BOOK_OPERATION_FLAG_NONE, NULL, NULL, &error); - } else { -- ret = e_book_client_modify_contact_sync(client, e_contact, NULL, &error); -+ ret = e_book_client_modify_contact_sync(client, e_contact, E_BOOK_OPERATION_FLAG_NONE, NULL, &error); - } - - if (!ret && error) { ---- roger-router-1.8.14.orig/configure.ac -+++ roger-router-1.8.14/configure.ac -@@ -332,12 +332,12 @@ AC_ARG_WITH([ebook], - [], - [with_ebook=check]) - --AC_MSG_CHECKING(for libebook-1.2 >= 3.10.0) -+AC_MSG_CHECKING(for libebook-1.2 >= 3.33.3) - AS_IF([test "x$with_ebook" != xno], - [if test "x$with_ebook" = xcheck; then -- $PKG_CONFIG --atleast-version=3.10.0 libebook-1.2 && with_ebook=yes -+ $PKG_CONFIG --atleast-version=3.33.3 libebook-1.2 && with_ebook=yes - elif test "x$with_ebook" = xyes; then -- $PKG_CONFIG --atleast-version=3.10.0 libebook-1.2 || AC_MSG_FAILURE( -+ $PKG_CONFIG --atleast-version=3.33.3 libebook-1.2 || AC_MSG_FAILURE( - [--with-ebook=yes was given, but test for ebook failed]) - fi - if test "x$with_ebook" = xyes; then diff -Nru roger-router-1.8.14/debian/patches/enable-maintainer-mode.diff roger-router-2.1.6/debian/patches/enable-maintainer-mode.diff --- roger-router-1.8.14/debian/patches/enable-maintainer-mode.diff 2020-01-20 07:57:18.000000000 +0000 +++ roger-router-2.1.6/debian/patches/enable-maintainer-mode.diff 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -Author: Rolf Leggewie -Description: enable maintainer mode -Forwarded: not-needed - -Upstream strongly dislikes maintainer mode so Deban will need to continue to carry this patch - -Index: roger-router-1.8.9/configure.ac -=================================================================== ---- roger-router-1.8.9.orig/configure.ac 2014-09-01 09:37:04.621055458 +0200 -+++ roger-router-1.8.9/configure.ac 2014-09-01 09:37:04.609055396 +0200 -@@ -15,6 +15,8 @@ - - AC_CONFIG_MACRO_DIR(m4) - -+AM_MAINTAINER_MODE([enable]) -+ - # Check for compilers. - AC_PROG_CC - AC_PROG_CXX diff -Nru roger-router-1.8.14/debian/patches/fix-cups-quoting.diff roger-router-2.1.6/debian/patches/fix-cups-quoting.diff --- roger-router-1.8.14/debian/patches/fix-cups-quoting.diff 2020-01-20 07:57:18.000000000 +0000 +++ roger-router-2.1.6/debian/patches/fix-cups-quoting.diff 2020-03-08 13:36:56.000000000 +0000 @@ -1,24 +1,22 @@ # Fix quoting errors. # Add basic error handling. ---- a/share/roger-cups -+++ b/share/roger-cups -@@ -1,20 +1,21 @@ +Index: roger-router/share/roger-cups +=================================================================== +--- roger-router.orig/share/roger-cups ++++ roger-router/share/roger-cups +@@ -1,20 +1,20 @@ -#!/bin/bash +#!/bin/sh -if [ $# == 0 ] ; then -- echo "file roger-cups:/ \"Unknown\" \"Tabos.org Roger Router Fax Printer\"" ++if [ $# = 0 ] ; then + echo "file roger-cups:/ \"Unknown\" \"Tabos.org Roger Router Fax Printer\"" - exit 0 -+if [ $# -eq 0 ] ; then -+ # Device Discovery -+ echo "file roger-cups:/ \"Unknown\" \"Tabos.org Roger Router Fax Printer\"" + exit 0 # CUPS_BACKEND_OK fi --RNAME=$2-Fax-ID$1 --SPOOL_DIR=/var/spool/roger/ -+RNAME="$2-Fax-ID$1" -+SPOOL_DIR="/var/spool/roger" + RNAME=$2-Fax-ID$1 + SPOOL_DIR=/var/spool/rm/ if [ $# -eq 6 ]; then - cp $6 $SPOOL_DIR/$RNAME.tmp diff -Nru roger-router-1.8.14/debian/patches/fix-manpages.diff roger-router-2.1.6/debian/patches/fix-manpages.diff --- roger-router-1.8.14/debian/patches/fix-manpages.diff 2020-01-20 07:57:18.000000000 +0000 +++ roger-router-2.1.6/debian/patches/fix-manpages.diff 1970-01-01 00:00:00.000000000 +0000 @@ -1,83 +0,0 @@ -Subject: Fix manpage errors detected by lintian -Author: Rolf Leggewie - -Based on work by Philipp Matthias Hahn - ---- a/doc/roger.1.in -+++ b/doc/roger.1.in -@@ -8,7 +8,7 @@ roger \- this is the graphical user interface of Roger Router. - .B roger [OPTIONS...] - - .SH DESCRIPTION --\fBRoger Router\fR is a clean solution for controlling the FRITZ!Box or compatible router with Linux. It offers a rich feature list, including caller monitor, fax and softphone support. -+\fBroger\fR offers a clean solution for controlling the FRITZ!Box or compatible router with Linux. It offers a rich feature list, including caller monitor, fax and softphone support. - - .SH OPTIONS - .TP ---- a/doc/roger_cli.1.in -+++ b/doc/roger_cli.1.in -@@ -1,4 +1,4 @@ --.\" Copyright (c) 2009-2014, Jan-Michael Brummer -+.\" Copyright (c) 2009-2014,\ Jan-Michael Brummer - .TH roger_cli 1 "" "Roger Router CLI \- Version @PACKAGE_VERSION@" "Roger Router CLI - User Manual" - - .SH NAME -@@ -8,35 +8,37 @@ roger_cli \- this is the command line interface of Roger Router. - .B roger_cli [OPTION...] - - .SH DESCRIPTION --\fBRoger Router\fR is a clean solution for controlling the FRITZ!Box or compatible router with Linux. It offers a rich feature list, including caller monitor, fax and softphone support. -+\fBroger_cli\fR offers a clean solution for controlling the FRITZ!Box or compatible router from the command line with Linux. It can be used to print the current FRITZ!Box journal to the screen,\ initiate calls or send facsimiles. - - .SH OPTIONS -+The program follows the usual GNU command line syntax,\ with long options starting with two dashes (`-'). -+A summary of options is included below. -+.TP -+\fB\-h\fR, \fB\-\-help\fR -+Show help options. - .TP - \fB\-c\fR, \fB\-\-call\fR - Initiate an outgoing call by softphone. Requires \fB\-n\fR \fInumber\fR to be given as well. - .TP --\fB\-d\fR, \fB\-\-debug\fR --Enable debug messages. --.TP --\fB\-f\fR \fIfile\fR, \fB\-\-file\fR=\fIfile\fR --File name of a PDF or PostScript \fIfile\fR containing the fax to send. --.TP --\fB\-h\fR, \fB\-\-help\fR --Show help options. -+\fB\-s\fR, \fB\-\-sendfax\fR -+Initiate sending of a fax. Requires \fB\-f\fR \fIfile\fR (in PS or PDF format) and \fB\-n\fR \fInumber\fR to be given as well. - .TP - \fB\-j\fR, \fB\-\-journal\fR - Show journal of incoming and outgoing calls on the screen. - .TP --\fB\-s\fR, \fB\-\-sendfax\fR --Initiate sending of a fax. Requires \fB\-f\fR \fIfile\fR and \fB\-n\fR \fInumber\fR to be given as well. -+\fB\-d\fR, \fB\-\-debug\fR -+Enable debug messages. - .TP - \fB\-n\fR \fInumber\fR, \fB\-\-number\fR=\fInumber\fR - Remote telephone or fax \fInumber\fR. -+.TP -+\fB\-f\fR \fIfile\fR, \fB\-\-file\fR=\fIfile\fR -+File name of a PDF or PostScript \fIfile\fR containing the fax to send. - - .SH NOTES - .IP "\fIFaxing\fR" 4 - .RS --If you want to use the capi fax function into Roger Router, you must enable capi-over-tcp within your FRITZ!Box with #96*3* and the user must be a member of the group fax. -+If you want to use the capi fax function with Roger Router, you must enable capi-over-tcp within your FRITZ!Box with #96*3* and the user must be a member of the group fax. - .RE - .IP "\fINotifications\fR" 4 - .RS -@@ -69,4 +71,8 @@ Jan-Michael Brummer (developer) <\fIjan.brummer@tabos.org\fR> - .IP "This manpage was written by:" 4 - .RS - Jan-Michael Brummer <\fIjan.brummer@tabos.org\fR> -+.br -+Philipp Matthias Hahn <\fIpmhahn@debian.org\fR> -+.br -+Rolf Leggewie <\fIfoss@rolf.leggewie.biz\fR> - .RE diff -Nru roger-router-1.8.14/debian/patches/libsecret_0.18.6.patch roger-router-2.1.6/debian/patches/libsecret_0.18.6.patch --- roger-router-1.8.14/debian/patches/libsecret_0.18.6.patch 2020-01-20 07:57:18.000000000 +0000 +++ roger-router-2.1.6/debian/patches/libsecret_0.18.6.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,29 +0,0 @@ -Description: Fix FTBFS with libsecred 0.18.6 which introduces a public method with the same name -Author: Mattia Rizzolo -Bug-Debian: https://bugs.debian.org/897500 -Last-Update: 2018-05-24 - ---- a/libroutermanager/plugins/secret/secret.c -+++ b/libroutermanager/plugins/secret/secret.c -@@ -38,7 +38,7 @@ - * \brief Get secret schema for this plugin - * \return secret schema layout - */ --const SecretSchema *secret_get_schema(void) -+const SecretSchema *roger_get_schema(void) - { - static const SecretSchema the_schema = { - "org.tabos.roger.Password", SECRET_SCHEMA_NONE, ---- a/libroutermanager/plugins/secret/secret.h -+++ b/libroutermanager/plugins/secret/secret.h -@@ -20,8 +20,8 @@ - #ifndef SECRET_H - #define SECRET_H - --const SecretSchema *secret_get_schema(void) G_GNUC_CONST; -+const SecretSchema *roger_get_schema(void) G_GNUC_CONST; - --#define SECRET_SCHEMA secret_get_schema() -+#define SECRET_SCHEMA roger_get_schema() - - #endif diff -Nru roger-router-1.8.14/debian/patches/new-gupnp_build.patch roger-router-2.1.6/debian/patches/new-gupnp_build.patch --- roger-router-1.8.14/debian/patches/new-gupnp_build.patch 2019-05-13 08:12:17.000000000 +0000 +++ roger-router-2.1.6/debian/patches/new-gupnp_build.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,25 +0,0 @@ -Description: Fix build with new gupnp API -Author: Gianfranco Costamagna -Last-Update: 2019-05-13 - ---- roger-router-1.8.14.orig/configure.ac -+++ roger-router-1.8.14/configure.ac -@@ -86,7 +86,7 @@ AC_MSG_RESULT([$WIN32]) - AM_CONDITIONAL(WIN32, test "x$WIN32" != "xno") - AM_CONDITIONAL(MACOSX, test "x$macos" != "xno") - --PKG_CHECK_MODULES([EXTRA], [glib-2.0 >= 2.40 gio-2.0 >= 2.40 speex >= 1.0 speexdsp >= 1.0 sndfile >= 1.0.0 libxml-2.0 gupnp-1.0 gssdp-1.0]) -+PKG_CHECK_MODULES([EXTRA], [glib-2.0 >= 2.40 gio-2.0 >= 2.40 speex >= 1.0 speexdsp >= 1.0 sndfile >= 1.0.0 libxml-2.0 gupnp-1.2 gssdp-1.2]) - - # Check for GTK >= 3.14 - PKG_CHECK_MODULES([GTK], [gtk+-3.0 >= 3.10]) ---- roger-router-1.8.14.orig/libroutermanager/ssdp.c -+++ roger-router-1.8.14/libroutermanager/ssdp.c -@@ -81,6 +81,6 @@ static void on_context_available(GUPnPCo - - void ssdp_init(void) - { -- context_manager = gupnp_context_manager_new(NULL, 1900); -+ context_manager = gupnp_context_manager_create(1900); - g_signal_connect(context_manager, "context-available", G_CALLBACK(on_context_available), NULL); - } diff -Nru roger-router-1.8.14/debian/patches/series roger-router-2.1.6/debian/patches/series --- roger-router-1.8.14/debian/patches/series 2020-01-20 07:58:05.000000000 +0000 +++ roger-router-2.1.6/debian/patches/series 2020-04-15 10:37:31.000000000 +0000 @@ -1,7 +1,2 @@ -deprecate_python2_plugins.diff -fix-manpages.diff fix-cups-quoting.diff -enable-maintainer-mode.diff -libsecret_0.18.6.patch -new-gupnp_build.patch -eds-3.33 +use-ayatana-appindicator3.patch diff -Nru roger-router-1.8.14/debian/patches/use-ayatana-appindicator3.patch roger-router-2.1.6/debian/patches/use-ayatana-appindicator3.patch --- roger-router-1.8.14/debian/patches/use-ayatana-appindicator3.patch 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/debian/patches/use-ayatana-appindicator3.patch 2020-04-15 10:37:31.000000000 +0000 @@ -0,0 +1,23 @@ +Index: roger-router/plugins/indicator/indicator.c +=================================================================== +--- roger-router.orig/plugins/indicator/indicator.c ++++ roger-router/plugins/indicator/indicator.c +@@ -26,7 +26,7 @@ + + #include + +-#include ++#include + + #include + +Index: roger-router/plugins/indicator/meson.build +=================================================================== +--- roger-router.orig/plugins/indicator/meson.build ++++ roger-router/plugins/indicator/meson.build +@@ -1,4 +1,4 @@ +-indicator = dependency('appindicator3-0.1', required: false) ++indicator = dependency('ayatana-appindicator3-0.1', required: false) + + if indicator.found() + indicator_sources = [] diff -Nru roger-router-1.8.14/debian/README.Debian roger-router-2.1.6/debian/README.Debian --- roger-router-1.8.14/debian/README.Debian 2020-01-20 07:57:18.000000000 +0000 +++ roger-router-2.1.6/debian/README.Debian 1970-01-01 00:00:00.000000000 +0000 @@ -1,24 +0,0 @@ -= Configuration = - -configuration help is available from - -http://wiki.ubuntuusers.de/FritzBox/Roger_Router -http://www.tabos.org/forum/ -http://forum.ubuntuusers.de/topic/roger-router-roger/ -http://en.tabos.org/installation-prequel - -If you want to use the incoming call notification you will have to enable -it on your fritzbox with: #96*5* If you want to use the capifax plugin -you will have to enable capi-over-tcp on your fritzbox with: #96*3* Both -of these settings will be reset to their default value of "off" whenever -you update the router firmware. Please re-enable them as necessary. - -Please note, quick reconnect & display external ip in tooltip for Fritz!Box -needs active UPnP support! - -= Fax support = - -Roger installs a Cups printer. To be able to fax, you either need to use -roger_cli where you specify all necessary information including the number -to send to on the command line or you should have Roger GUI running and it -will prompt you for the receiving Fax number. diff -Nru roger-router-1.8.14/debian/roger-router-cli.dirs roger-router-2.1.6/debian/roger-router-cli.dirs --- roger-router-1.8.14/debian/roger-router-cli.dirs 2020-01-20 07:57:18.000000000 +0000 +++ roger-router-2.1.6/debian/roger-router-cli.dirs 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -var/spool/roger diff -Nru roger-router-1.8.14/debian/roger-router-cli.docs roger-router-2.1.6/debian/roger-router-cli.docs --- roger-router-1.8.14/debian/roger-router-cli.docs 2020-01-20 07:57:18.000000000 +0000 +++ roger-router-2.1.6/debian/roger-router-cli.docs 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -debian/NEWS -debian/README.Debian diff -Nru roger-router-1.8.14/debian/roger-router-cli.install roger-router-2.1.6/debian/roger-router-cli.install --- roger-router-1.8.14/debian/roger-router-cli.install 2020-01-20 07:57:18.000000000 +0000 +++ roger-router-2.1.6/debian/roger-router-cli.install 1970-01-01 00:00:00.000000000 +0000 @@ -1,6 +0,0 @@ -usr/bin/roger_cli -usr/lib/*/routermanager/ -usr/share/man/*/roger_cli* -usr/share/roger/roger-cups usr/lib/cups/backend/ -usr/share/roger/roger-fax.ppd - diff -Nru roger-router-1.8.14/debian/roger-router-cli.postinst roger-router-2.1.6/debian/roger-router-cli.postinst --- roger-router-1.8.14/debian/roger-router-cli.postinst 2020-01-20 07:57:18.000000000 +0000 +++ roger-router-2.1.6/debian/roger-router-cli.postinst 1970-01-01 00:00:00.000000000 +0000 @@ -1,32 +0,0 @@ -#!/bin/sh -set -e - -# * `configure' -# * `abort-upgrade' -# * `abort-remove' `in-favour' -# -# * `abort-remove' -# * `abort-deconfigure' `in-favour' -# `removing' -# - -case "$1" in - configure) - if which lpadmin >/dev/null - then - lpadmin -p "Roger-Router-Fax" -E -v roger-cups:/ -P /usr/share/roger/roger-fax.ppd - fi - ;; - - abort-upgrade|abort-remove|abort-deconfigure) - ;; - - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -#DEBHELPER# - -exit 0 diff -Nru roger-router-1.8.14/debian/roger-router-cli.postrm roger-router-2.1.6/debian/roger-router-cli.postrm --- roger-router-1.8.14/debian/roger-router-cli.postrm 2020-01-20 08:02:01.000000000 +0000 +++ roger-router-2.1.6/debian/roger-router-cli.postrm 1970-01-01 00:00:00.000000000 +0000 @@ -1,34 +0,0 @@ -#!/bin/sh -set -e - -# * `remove' -# * `purge' -# * `upgrade' -# * `failed-upgrade' -# * `abort-install' -# * `abort-install' -# * `abort-upgrade' -# * `disappear' -# - -case "$1" in - purge) - if which lpadmin >/dev/null - then - lpadmin -x "Roger-Router-Fax" - fi - rm -rf /var/spool/roger - ;; - - remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) - ;; - - *) - echo "postrm called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -#DEBHELPER# - -exit 0 diff -Nru roger-router-1.8.14/debian/roger-router.docs roger-router-2.1.6/debian/roger-router.docs --- roger-router-1.8.14/debian/roger-router.docs 2020-01-20 07:57:18.000000000 +0000 +++ roger-router-2.1.6/debian/roger-router.docs 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -debian/NEWS -debian/README.Debian diff -Nru roger-router-1.8.14/debian/roger-router.install roger-router-2.1.6/debian/roger-router.install --- roger-router-1.8.14/debian/roger-router.install 2020-01-20 07:57:18.000000000 +0000 +++ roger-router-2.1.6/debian/roger-router.install 1970-01-01 00:00:00.000000000 +0000 @@ -1,9 +0,0 @@ -usr/bin/roger -usr/lib/*/roger/* -usr/share/man/*/roger.* -usr/share/glib-2.0/schemas -usr/share/roger/*.png -usr/share/appdata/roger.appdata.xml /usr/share/metainfo/ -usr/share/icons/hicolor/scalable/apps/roger.svg -usr/share/applications/org.tabos.roger.desktop -usr/share/locale diff -Nru roger-router-1.8.14/debian/rules roger-router-2.1.6/debian/rules --- roger-router-1.8.14/debian/rules 2020-01-20 08:02:01.000000000 +0000 +++ roger-router-2.1.6/debian/rules 2020-03-08 13:55:29.000000000 +0000 @@ -3,32 +3,4 @@ export DH_VERBOSE=1 %: - dh $@ - -override_dh_autoreconf: - dh_autoreconf ./autogen.sh - -override_dh_auto_configure: - dh_auto_configure -- \ - --with-secret=yes \ - --with-macos-keychain=no \ - --with-gstreamer1=check \ - --with-pulseaudio=check \ - --with-portaudio=check - -override_dh_install: - - # do not ship *.la and *.a files - find debian/ -name \*.la -delete - find debian/ -name \*.a -delete - find debian/ -name install-fax.sh -delete - dh_install - -dh_missing: - dh_missing --list-missing - -override_dh_fixperms: - dh_fixperms - chmod 755 debian/roger-router-cli/usr/lib/cups/backend/roger-cups - chown lp.fax debian/roger-router-cli/var/spool/roger - chmod 2770 debian/roger-router-cli/var/spool/roger + dh $@ --buildsystem=meson diff -Nru roger-router-1.8.14/debian/watch roger-router-2.1.6/debian/watch --- roger-router-1.8.14/debian/watch 2020-01-20 07:57:18.000000000 +0000 +++ roger-router-2.1.6/debian/watch 2020-03-08 13:35:32.000000000 +0000 @@ -1,2 +1,4 @@ -version=3 -http://www.tabos.org/download .*roger-router-(.*)\.(?:tgz|tbz2|tar\.(?:gz|bz2|xz)) +version=4 + +https://gitlab.com/tabos/rogerrouter/-/tags \ + .*/archive/v(?:\d.*)/rogerrouter-v(\d.*).tar.bz2 diff -Nru roger-router-1.8.14/depcomp roger-router-2.1.6/depcomp --- roger-router-1.8.14/depcomp 2015-12-10 21:33:24.000000000 +0000 +++ roger-router-2.1.6/depcomp 1970-01-01 00:00:00.000000000 +0000 @@ -1,791 +0,0 @@ -#! /bin/sh -# depcomp - compile a program generating dependencies as side-effects - -scriptversion=2013-05-30.07; # UTC - -# Copyright (C) 1999-2014 Free Software Foundation, Inc. - -# 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. - -# Originally written by Alexandre Oliva . - -case $1 in - '') - echo "$0: No command. Try '$0 --help' for more information." 1>&2 - exit 1; - ;; - -h | --h*) - cat <<\EOF -Usage: depcomp [--help] [--version] PROGRAM [ARGS] - -Run PROGRAMS ARGS to compile a file, generating dependencies -as side-effects. - -Environment variables: - depmode Dependency tracking mode. - source Source file read by 'PROGRAMS ARGS'. - object Object file output by 'PROGRAMS ARGS'. - DEPDIR directory where to store dependencies. - depfile Dependency file to output. - tmpdepfile Temporary file to use when outputting dependencies. - libtool Whether libtool is used (yes/no). - -Report bugs to . -EOF - exit $? - ;; - -v | --v*) - echo "depcomp $scriptversion" - exit $? - ;; -esac - -# Get the directory component of the given path, and save it in the -# global variables '$dir'. Note that this directory component will -# be either empty or ending with a '/' character. This is deliberate. -set_dir_from () -{ - case $1 in - */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; - *) dir=;; - esac -} - -# Get the suffix-stripped basename of the given path, and save it the -# global variable '$base'. -set_base_from () -{ - base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` -} - -# If no dependency file was actually created by the compiler invocation, -# we still have to create a dummy depfile, to avoid errors with the -# Makefile "include basename.Plo" scheme. -make_dummy_depfile () -{ - echo "#dummy" > "$depfile" -} - -# Factor out some common post-processing of the generated depfile. -# Requires the auxiliary global variable '$tmpdepfile' to be set. -aix_post_process_depfile () -{ - # If the compiler actually managed to produce a dependency file, - # post-process it. - if test -f "$tmpdepfile"; then - # Each line is of the form 'foo.o: dependency.h'. - # Do two passes, one to just change these to - # $object: dependency.h - # and one to simply output - # dependency.h: - # which is needed to avoid the deleted-header problem. - { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" - sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" - } > "$depfile" - rm -f "$tmpdepfile" - else - make_dummy_depfile - fi -} - -# A tabulation character. -tab=' ' -# A newline character. -nl=' -' -# Character ranges might be problematic outside the C locale. -# These definitions help. -upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ -lower=abcdefghijklmnopqrstuvwxyz -digits=0123456789 -alpha=${upper}${lower} - -if test -z "$depmode" || test -z "$source" || test -z "$object"; then - echo "depcomp: Variables source, object and depmode must be set" 1>&2 - exit 1 -fi - -# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. -depfile=${depfile-`echo "$object" | - sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} -tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} - -rm -f "$tmpdepfile" - -# Avoid interferences from the environment. -gccflag= dashmflag= - -# Some modes work just like other modes, but use different flags. We -# parameterize here, but still list the modes in the big case below, -# to make depend.m4 easier to write. Note that we *cannot* use a case -# here, because this file can only contain one case statement. -if test "$depmode" = hp; then - # HP compiler uses -M and no extra arg. - gccflag=-M - depmode=gcc -fi - -if test "$depmode" = dashXmstdout; then - # This is just like dashmstdout with a different argument. - dashmflag=-xM - depmode=dashmstdout -fi - -cygpath_u="cygpath -u -f -" -if test "$depmode" = msvcmsys; then - # This is just like msvisualcpp but w/o cygpath translation. - # Just convert the backslash-escaped backslashes to single forward - # slashes to satisfy depend.m4 - cygpath_u='sed s,\\\\,/,g' - depmode=msvisualcpp -fi - -if test "$depmode" = msvc7msys; then - # This is just like msvc7 but w/o cygpath translation. - # Just convert the backslash-escaped backslashes to single forward - # slashes to satisfy depend.m4 - cygpath_u='sed s,\\\\,/,g' - depmode=msvc7 -fi - -if test "$depmode" = xlc; then - # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. - gccflag=-qmakedep=gcc,-MF - depmode=gcc -fi - -case "$depmode" in -gcc3) -## gcc 3 implements dependency tracking that does exactly what -## we want. Yay! Note: for some reason libtool 1.4 doesn't like -## it if -MD -MP comes after the -MF stuff. Hmm. -## Unfortunately, FreeBSD c89 acceptance of flags depends upon -## the command line argument order; so add the flags where they -## appear in depend2.am. Note that the slowdown incurred here -## affects only configure: in makefiles, %FASTDEP% shortcuts this. - for arg - do - case $arg in - -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; - *) set fnord "$@" "$arg" ;; - esac - shift # fnord - shift # $arg - done - "$@" - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - mv "$tmpdepfile" "$depfile" - ;; - -gcc) -## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. -## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. -## (see the conditional assignment to $gccflag above). -## There are various ways to get dependency output from gcc. Here's -## why we pick this rather obscure method: -## - Don't want to use -MD because we'd like the dependencies to end -## up in a subdir. Having to rename by hand is ugly. -## (We might end up doing this anyway to support other compilers.) -## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like -## -MM, not -M (despite what the docs say). Also, it might not be -## supported by the other compilers which use the 'gcc' depmode. -## - Using -M directly means running the compiler twice (even worse -## than renaming). - if test -z "$gccflag"; then - gccflag=-MD, - fi - "$@" -Wp,"$gccflag$tmpdepfile" - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - echo "$object : \\" > "$depfile" - # The second -e expression handles DOS-style file names with drive - # letters. - sed -e 's/^[^:]*: / /' \ - -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" -## This next piece of magic avoids the "deleted header file" problem. -## The problem is that when a header file which appears in a .P file -## is deleted, the dependency causes make to die (because there is -## typically no way to rebuild the header). We avoid this by adding -## dummy dependencies for each header file. Too bad gcc doesn't do -## this for us directly. -## Some versions of gcc put a space before the ':'. On the theory -## that the space means something, we add a space to the output as -## well. hp depmode also adds that space, but also prefixes the VPATH -## to the object. Take care to not repeat it in the output. -## Some versions of the HPUX 10.20 sed can't process this invocation -## correctly. Breaking it into two sed invocations is a workaround. - tr ' ' "$nl" < "$tmpdepfile" \ - | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ - | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -hp) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -sgi) - if test "$libtool" = yes; then - "$@" "-Wp,-MDupdate,$tmpdepfile" - else - "$@" -MDupdate "$tmpdepfile" - fi - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - - if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files - echo "$object : \\" > "$depfile" - # Clip off the initial element (the dependent). Don't try to be - # clever and replace this with sed code, as IRIX sed won't handle - # lines with more than a fixed number of characters (4096 in - # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; - # the IRIX cc adds comments like '#:fec' to the end of the - # dependency line. - tr ' ' "$nl" < "$tmpdepfile" \ - | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ - | tr "$nl" ' ' >> "$depfile" - echo >> "$depfile" - # The second pass generates a dummy entry for each header file. - tr ' ' "$nl" < "$tmpdepfile" \ - | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ - >> "$depfile" - else - make_dummy_depfile - fi - rm -f "$tmpdepfile" - ;; - -xlc) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -aix) - # The C for AIX Compiler uses -M and outputs the dependencies - # in a .u file. In older versions, this file always lives in the - # current directory. Also, the AIX compiler puts '$object:' at the - # start of each line; $object doesn't have directory information. - # Version 6 uses the directory in both cases. - set_dir_from "$object" - set_base_from "$object" - if test "$libtool" = yes; then - tmpdepfile1=$dir$base.u - tmpdepfile2=$base.u - tmpdepfile3=$dir.libs/$base.u - "$@" -Wc,-M - else - tmpdepfile1=$dir$base.u - tmpdepfile2=$dir$base.u - tmpdepfile3=$dir$base.u - "$@" -M - fi - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" - exit $stat - fi - - for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" - do - test -f "$tmpdepfile" && break - done - aix_post_process_depfile - ;; - -tcc) - # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 - # FIXME: That version still under development at the moment of writing. - # Make that this statement remains true also for stable, released - # versions. - # It will wrap lines (doesn't matter whether long or short) with a - # trailing '\', as in: - # - # foo.o : \ - # foo.c \ - # foo.h \ - # - # It will put a trailing '\' even on the last line, and will use leading - # spaces rather than leading tabs (at least since its commit 0394caf7 - # "Emit spaces for -MD"). - "$@" -MD -MF "$tmpdepfile" - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. - # We have to change lines of the first kind to '$object: \'. - sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" - # And for each line of the second kind, we have to emit a 'dep.h:' - # dummy dependency, to avoid the deleted-header problem. - sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" - rm -f "$tmpdepfile" - ;; - -## The order of this option in the case statement is important, since the -## shell code in configure will try each of these formats in the order -## listed in this file. A plain '-MD' option would be understood by many -## compilers, so we must ensure this comes after the gcc and icc options. -pgcc) - # Portland's C compiler understands '-MD'. - # Will always output deps to 'file.d' where file is the root name of the - # source file under compilation, even if file resides in a subdirectory. - # The object file name does not affect the name of the '.d' file. - # pgcc 10.2 will output - # foo.o: sub/foo.c sub/foo.h - # and will wrap long lines using '\' : - # foo.o: sub/foo.c ... \ - # sub/foo.h ... \ - # ... - set_dir_from "$object" - # Use the source, not the object, to determine the base name, since - # that's sadly what pgcc will do too. - set_base_from "$source" - tmpdepfile=$base.d - - # For projects that build the same source file twice into different object - # files, the pgcc approach of using the *source* file root name can cause - # problems in parallel builds. Use a locking strategy to avoid stomping on - # the same $tmpdepfile. - lockdir=$base.d-lock - trap " - echo '$0: caught signal, cleaning up...' >&2 - rmdir '$lockdir' - exit 1 - " 1 2 13 15 - numtries=100 - i=$numtries - while test $i -gt 0; do - # mkdir is a portable test-and-set. - if mkdir "$lockdir" 2>/dev/null; then - # This process acquired the lock. - "$@" -MD - stat=$? - # Release the lock. - rmdir "$lockdir" - break - else - # If the lock is being held by a different process, wait - # until the winning process is done or we timeout. - while test -d "$lockdir" && test $i -gt 0; do - sleep 1 - i=`expr $i - 1` - done - fi - i=`expr $i - 1` - done - trap - 1 2 13 15 - if test $i -le 0; then - echo "$0: failed to acquire lock after $numtries attempts" >&2 - echo "$0: check lockdir '$lockdir'" >&2 - exit 1 - fi - - if test $stat -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - # Each line is of the form `foo.o: dependent.h', - # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. - # Do two passes, one to just change these to - # `$object: dependent.h' and one to simply `dependent.h:'. - sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" - # Some versions of the HPUX 10.20 sed can't process this invocation - # correctly. Breaking it into two sed invocations is a workaround. - sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ - | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -hp2) - # The "hp" stanza above does not work with aCC (C++) and HP's ia64 - # compilers, which have integrated preprocessors. The correct option - # to use with these is +Maked; it writes dependencies to a file named - # 'foo.d', which lands next to the object file, wherever that - # happens to be. - # Much of this is similar to the tru64 case; see comments there. - set_dir_from "$object" - set_base_from "$object" - if test "$libtool" = yes; then - tmpdepfile1=$dir$base.d - tmpdepfile2=$dir.libs/$base.d - "$@" -Wc,+Maked - else - tmpdepfile1=$dir$base.d - tmpdepfile2=$dir$base.d - "$@" +Maked - fi - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile1" "$tmpdepfile2" - exit $stat - fi - - for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" - do - test -f "$tmpdepfile" && break - done - if test -f "$tmpdepfile"; then - sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" - # Add 'dependent.h:' lines. - sed -ne '2,${ - s/^ *// - s/ \\*$// - s/$/:/ - p - }' "$tmpdepfile" >> "$depfile" - else - make_dummy_depfile - fi - rm -f "$tmpdepfile" "$tmpdepfile2" - ;; - -tru64) - # The Tru64 compiler uses -MD to generate dependencies as a side - # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. - # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put - # dependencies in 'foo.d' instead, so we check for that too. - # Subdirectories are respected. - set_dir_from "$object" - set_base_from "$object" - - if test "$libtool" = yes; then - # Libtool generates 2 separate objects for the 2 libraries. These - # two compilations output dependencies in $dir.libs/$base.o.d and - # in $dir$base.o.d. We have to check for both files, because - # one of the two compilations can be disabled. We should prefer - # $dir$base.o.d over $dir.libs/$base.o.d because the latter is - # automatically cleaned when .libs/ is deleted, while ignoring - # the former would cause a distcleancheck panic. - tmpdepfile1=$dir$base.o.d # libtool 1.5 - tmpdepfile2=$dir.libs/$base.o.d # Likewise. - tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 - "$@" -Wc,-MD - else - tmpdepfile1=$dir$base.d - tmpdepfile2=$dir$base.d - tmpdepfile3=$dir$base.d - "$@" -MD - fi - - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" - exit $stat - fi - - for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" - do - test -f "$tmpdepfile" && break - done - # Same post-processing that is required for AIX mode. - aix_post_process_depfile - ;; - -msvc7) - if test "$libtool" = yes; then - showIncludes=-Wc,-showIncludes - else - showIncludes=-showIncludes - fi - "$@" $showIncludes > "$tmpdepfile" - stat=$? - grep -v '^Note: including file: ' "$tmpdepfile" - if test $stat -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - echo "$object : \\" > "$depfile" - # The first sed program below extracts the file names and escapes - # backslashes for cygpath. The second sed program outputs the file - # name when reading, but also accumulates all include files in the - # hold buffer in order to output them again at the end. This only - # works with sed implementations that can handle large buffers. - sed < "$tmpdepfile" -n ' -/^Note: including file: *\(.*\)/ { - s//\1/ - s/\\/\\\\/g - p -}' | $cygpath_u | sort -u | sed -n ' -s/ /\\ /g -s/\(.*\)/'"$tab"'\1 \\/p -s/.\(.*\) \\/\1:/ -H -$ { - s/.*/'"$tab"'/ - G - p -}' >> "$depfile" - echo >> "$depfile" # make sure the fragment doesn't end with a backslash - rm -f "$tmpdepfile" - ;; - -msvc7msys) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -#nosideeffect) - # This comment above is used by automake to tell side-effect - # dependency tracking mechanisms from slower ones. - -dashmstdout) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout, regardless of -o. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - - # Remove '-o $object'. - IFS=" " - for arg - do - case $arg in - -o) - shift - ;; - $object) - shift - ;; - *) - set fnord "$@" "$arg" - shift # fnord - shift # $arg - ;; - esac - done - - test -z "$dashmflag" && dashmflag=-M - # Require at least two characters before searching for ':' - # in the target name. This is to cope with DOS-style filenames: - # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. - "$@" $dashmflag | - sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" - rm -f "$depfile" - cat < "$tmpdepfile" > "$depfile" - # Some versions of the HPUX 10.20 sed can't process this sed invocation - # correctly. Breaking it into two sed invocations is a workaround. - tr ' ' "$nl" < "$tmpdepfile" \ - | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ - | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -dashXmstdout) - # This case only exists to satisfy depend.m4. It is never actually - # run, as this mode is specially recognized in the preamble. - exit 1 - ;; - -makedepend) - "$@" || exit $? - # Remove any Libtool call - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - # X makedepend - shift - cleared=no eat=no - for arg - do - case $cleared in - no) - set ""; shift - cleared=yes ;; - esac - if test $eat = yes; then - eat=no - continue - fi - case "$arg" in - -D*|-I*) - set fnord "$@" "$arg"; shift ;; - # Strip any option that makedepend may not understand. Remove - # the object too, otherwise makedepend will parse it as a source file. - -arch) - eat=yes ;; - -*|$object) - ;; - *) - set fnord "$@" "$arg"; shift ;; - esac - done - obj_suffix=`echo "$object" | sed 's/^.*\././'` - touch "$tmpdepfile" - ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" - rm -f "$depfile" - # makedepend may prepend the VPATH from the source file name to the object. - # No need to regex-escape $object, excess matching of '.' is harmless. - sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" - # Some versions of the HPUX 10.20 sed can't process the last invocation - # correctly. Breaking it into two sed invocations is a workaround. - sed '1,2d' "$tmpdepfile" \ - | tr ' ' "$nl" \ - | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ - | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" "$tmpdepfile".bak - ;; - -cpp) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - - # Remove '-o $object'. - IFS=" " - for arg - do - case $arg in - -o) - shift - ;; - $object) - shift - ;; - *) - set fnord "$@" "$arg" - shift # fnord - shift # $arg - ;; - esac - done - - "$@" -E \ - | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ - -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ - | sed '$ s: \\$::' > "$tmpdepfile" - rm -f "$depfile" - echo "$object : \\" > "$depfile" - cat < "$tmpdepfile" >> "$depfile" - sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -msvisualcpp) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - - IFS=" " - for arg - do - case "$arg" in - -o) - shift - ;; - $object) - shift - ;; - "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") - set fnord "$@" - shift - shift - ;; - *) - set fnord "$@" "$arg" - shift - shift - ;; - esac - done - "$@" -E 2>/dev/null | - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" - rm -f "$depfile" - echo "$object : \\" > "$depfile" - sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" - echo "$tab" >> "$depfile" - sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -msvcmsys) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -none) - exec "$@" - ;; - -*) - echo "Unknown depmode $depmode" 1>&2 - exit 1 - ;; -esac - -exit 0 - -# Local Variables: -# mode: shell-script -# sh-indentation: 2 -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC" -# time-stamp-end: "; # UTC" -# End: diff -Nru roger-router-1.8.14/doc/Makefile.am roger-router-2.1.6/doc/Makefile.am --- roger-router-1.8.14/doc/Makefile.am 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/doc/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,5 +0,0 @@ -man_MANS = roger.1 roger_cli.1 - -EXTRA_DIST = \ - roger.1.in \ - roger_cli.1.in diff -Nru roger-router-1.8.14/doc/Makefile.in roger-router-2.1.6/doc/Makefile.in --- roger-router-1.8.14/doc/Makefile.in 2015-12-10 21:33:43.000000000 +0000 +++ roger-router-2.1.6/doc/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,610 +0,0 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2014 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@ -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@ -subdir = doc -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ - $(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)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = roger.1 roger_cli.1 -CONFIG_CLEAN_VPATH_FILES = -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 = -SOURCES = -DIST_SOURCES = -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -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; }; \ - } -man1dir = $(mandir)/man1 -am__installdirs = "$(DESTDIR)$(man1dir)" -NROFF = nroff -MANS = $(man_MANS) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/roger.1.in \ - $(srcdir)/roger_cli.1.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -ALL_LINGUAS = @ALL_LINGUAS@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@ -APPINDICATOR_LIBS = @APPINDICATOR_LIBS@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAPI_CFLAGS = @CAPI_CFLAGS@ -CAPI_LIBS = @CAPI_LIBS@ -CATALOGS = @CATALOGS@ -CATOBJEXT = @CATOBJEXT@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DATADIRNAME = @DATADIRNAME@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -EBOOK_CFLAGS = @EBOOK_CFLAGS@ -EBOOK_LIBS = @EBOOK_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXTRA_CFLAGS = @EXTRA_CFLAGS@ -EXTRA_LIBS = @EXTRA_LIBS@ -FAX_SPOOLER_CFLAGS = @FAX_SPOOLER_CFLAGS@ -FAX_SPOOLER_LIBS = @FAX_SPOOLER_LIBS@ -FGREP = @FGREP@ -GDATA_CFLAGS = @GDATA_CFLAGS@ -GDATA_LIBS = @GDATA_LIBS@ -GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMOFILES = @GMOFILES@ -GMSGFMT = @GMSGFMT@ -GREP = @GREP@ -GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@ -GSTREAMER1_CFLAGS = @GSTREAMER1_CFLAGS@ -GSTREAMER1_LIBS = @GSTREAMER1_LIBS@ -GTK_CFLAGS = @GTK_CFLAGS@ -GTK_LIBS = @GTK_LIBS@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INSTOBJEXT = @INSTOBJEXT@ -INTLLIBS = @INTLLIBS@ -INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ -INTLTOOL_MERGE = @INTLTOOL_MERGE@ -INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ -INTLTOOL_PERL = @INTLTOOL_PERL@ -INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ -INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ -INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ -INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ -INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ -INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ -KWALLET_CFLAGS = @KWALLET_CFLAGS@ -KWALLET_LIBS = @KWALLET_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@ -LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@ -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@ -MKINSTALLDIRS = @MKINSTALLDIRS@ -MSGFMT = @MSGFMT@ -MSGFMT_OPTS = @MSGFMT_OPTS@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OS_CFLAGS = @OS_CFLAGS@ -OS_LIBS = @OS_LIBS@ -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@ -PEAS_CFLAGS = @PEAS_CFLAGS@ -PEAS_GTK_CFLAGS = @PEAS_GTK_CFLAGS@ -PEAS_GTK_LIBS = @PEAS_GTK_LIBS@ -PEAS_LIBS = @PEAS_LIBS@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POFILES = @POFILES@ -PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@ -PORTAUDIO_LIBS = @PORTAUDIO_LIBS@ -POSUB = @POSUB@ -PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ -PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ -PULSEAUDIO_CFLAGS = @PULSEAUDIO_CFLAGS@ -PULSEAUDIO_LIBS = @PULSEAUDIO_LIBS@ -RANLIB = @RANLIB@ -ROGER_VERSION_MAJOR = @ROGER_VERSION_MAJOR@ -ROGER_VERSION_MICRO = @ROGER_VERSION_MICRO@ -ROGER_VERSION_MINOR = @ROGER_VERSION_MINOR@ -SECRET_CFLAGS = @SECRET_CFLAGS@ -SECRET_LIBS = @SECRET_LIBS@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SOUP_CFLAGS = @SOUP_CFLAGS@ -SOUP_LIBS = @SOUP_LIBS@ -SPANDSP_CFLAGS = @SPANDSP_CFLAGS@ -SPANDSP_LIBS = @SPANDSP_LIBS@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -WINDRES = @WINDRES@ -XGETTEXT = @XGETTEXT@ -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@ -found_cc = @found_cc@ -gsettingsschemadir = @gsettingsschemadir@ -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@ -intltool__v_merge_options_ = @intltool__v_merge_options_@ -intltool__v_merge_options_0 = @intltool__v_merge_options_0@ -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@ -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@ -man_MANS = roger.1 roger_cli.1 -EXTRA_DIST = \ - roger.1.in \ - roger_cli.1.in - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign doc/Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): -roger.1: $(top_builddir)/config.status $(srcdir)/roger.1.in - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ -roger_cli.1: $(top_builddir)/config.status $(srcdir)/roger_cli.1.in - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-man1: $(man_MANS) - @$(NORMAL_INSTALL) - @list1=''; \ - list2='$(man_MANS)'; \ - test -n "$(man1dir)" \ - && test -n "`echo $$list1$$list2`" \ - || exit 0; \ - echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ - { for i in $$list1; do echo "$$i"; done; \ - if test -n "$$list2"; then \ - for i in $$list2; do echo "$$i"; done \ - | sed -n '/\.1[a-z]*$$/p'; \ - fi; \ - } | while read p; do \ - if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; echo "$$p"; \ - done | \ - sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ - -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ - sed 'N;N;s,\n, ,g' | { \ - list=; while read file base inst; do \ - if test "$$base" = "$$inst"; then list="$$list $$file"; else \ - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ - fi; \ - done; \ - for i in $$list; do echo "$$i"; done | $(am__base_list) | \ - while read files; do \ - test -z "$$files" || { \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ - done; } - -uninstall-man1: - @$(NORMAL_UNINSTALL) - @list=''; test -n "$(man1dir)" || exit 0; \ - files=`{ for i in $$list; do echo "$$i"; done; \ - l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ - sed -n '/\.1[a-z]*$$/p'; \ - } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ - -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ - dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - - -distdir: $(DISTFILES) - @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 -check-am: all-am -check: check-am -all-am: Makefile $(MANS) -installdirs: - for dir in "$(DESTDIR)$(man1dir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -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: - -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) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-man - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: install-man1 - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-man - -uninstall-man: uninstall-man1 - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir 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-man \ - install-man1 install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags-am uninstall uninstall-am uninstall-man \ - uninstall-man1 - -.PRECIOUS: Makefile - - -# 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: diff -Nru roger-router-1.8.14/doc/roger.1.in roger-router-2.1.6/doc/roger.1.in --- roger-router-1.8.14/doc/roger.1.in 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/doc/roger.1.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,57 +0,0 @@ -.\" Copyright (c) 2009-2014, Jan-Michael Brummer -.TH roger 1 "" "Roger Router Version @PACKAGE_VERSION@" "Roger Router - User Manual" - -.SH NAME -roger \- this is the graphical user interface of Roger Router. - -.SH SYNOPSIS -.B roger [OPTIONS...] - -.SH DESCRIPTION -\fBRoger Router\fR is a clean solution for controlling the FRITZ!Box or compatible router with Linux. It offers a rich feature list, including caller monitor, fax and softphone support. - -.SH OPTIONS -.TP -\fB\-d\fR, \fB\-\-debug\fR -Enable debug messages. -.TP -\fB\-h\fR, \fB\-\-help\fR -Show help options. - -.SH NOTES -.IP "\fIFaxing\fR" 4 -.RS -If you want to use the capi fax function into Roger Router, you must enable capi-over-tcp within your FRITZ!Box with #96*3* and the user must be a member of the group fax. -.RE -.IP "\fINotifications\fR" 4 -.RS -If you want to use the incoming and outgoing call notification into Roger Router, you must enable this feature within your FRITZ!Box with #96*5*. -.RE -.IP "\fIUPnP\fR" 4 -.RS -Please activate the UPnP support of your FRITZ!Box. -.RE - -.SH SEE ALSO -.BR roger_cli (1) -.IP "Website:" 4 -.RS -\fIhttp://www.tabos.org/home/\fR -.RE -.IP "Forum:" 4 -.RS -\fIhttp://www.tabos.org/forum/\fR -.RE - -.SH LICENSE -Copyright (c) 2009-2015 Jan-Michael Brummer <\fIjan.brummer@tabos.org\fR> - -.SH AUTHORS -.IP "Roger Router's active developers are:" 4 -.RS -Jan-Michael Brummer (developer) <\fIjan.brummer@tabos.org\fR> -.RE -.IP "This manpage was written by:" 4 -.RS -Jan-Michael Brummer <\fIjan.brummer@tabos.org\fR> -.RE diff -Nru roger-router-1.8.14/doc/roger_cli.1.in roger-router-2.1.6/doc/roger_cli.1.in --- roger-router-1.8.14/doc/roger_cli.1.in 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/doc/roger_cli.1.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,72 +0,0 @@ -.\" Copyright (c) 2009-2014, Jan-Michael Brummer -.TH roger_cli 1 "" "Roger Router CLI \- Version @PACKAGE_VERSION@" "Roger Router CLI - User Manual" - -.SH NAME -roger_cli \- this is the command line interface of Roger Router. - -.SH SYNOPSIS -.B roger_cli [OPTION...] - -.SH DESCRIPTION -\fBRoger Router\fR is a clean solution for controlling the FRITZ!Box or compatible router with Linux. It offers a rich feature list, including caller monitor, fax and softphone support. - -.SH OPTIONS -.TP -\fB\-c\fR, \fB\-\-call\fR -Initiate an outgoing call by softphone. Requires \fB\-n\fR \fInumber\fR to be given as well. -.TP -\fB\-d\fR, \fB\-\-debug\fR -Enable debug messages. -.TP -\fB\-f\fR \fIfile\fR, \fB\-\-file\fR=\fIfile\fR -File name of a PDF or PostScript \fIfile\fR containing the fax to send. -.TP -\fB\-h\fR, \fB\-\-help\fR -Show help options. -.TP -\fB\-j\fR, \fB\-\-journal\fR -Show journal of incoming and outgoing calls on the screen. -.TP -\fB\-s\fR, \fB\-\-sendfax\fR -Initiate sending of a fax. Requires \fB\-f\fR \fIfile\fR and \fB\-n\fR \fInumber\fR to be given as well. -.TP -\fB\-n\fR \fInumber\fR, \fB\-\-number\fR=\fInumber\fR -Remote telephone or fax \fInumber\fR. - -.SH NOTES -.IP "\fIFaxing\fR" 4 -.RS -If you want to use the capi fax function into Roger Router, you must enable capi-over-tcp within your FRITZ!Box with #96*3* and the user must be a member of the group fax. -.RE -.IP "\fINotifications\fR" 4 -.RS -If you want to use the incoming and outgoing call notification into Roger Router, you must enable this feature within your FRITZ!Box with #96*5*. -.RE -.IP "\fIUPnP\fR" 4 -.RS -Please activate the UPnP support of your FRITZ!Box. -.RE - -.SH SEE ALSO -.BR roger (1) -.IP "Website:" 4 -.RS -\fIhttp://www.tabos.org/home/\fR -.RE -.IP "Forum:" 4 -.RS -\fIhttp://www.tabos.org/forum/\fR -.RE - -.SH LICENSE -Copyright (c) 2009-2015 Jan-Michael Brummer <\fIjan.brummer@tabos.org\fR> - -.SH AUTHORS -.IP "Roger Router's active developers are:" 4 -.RS -Jan-Michael Brummer (developer) <\fIjan.brummer@tabos.org\fR> -.RE -.IP "This manpage was written by:" 4 -.RS -Jan-Michael Brummer <\fIjan.brummer@tabos.org\fR> -.RE diff -Nru roger-router-1.8.14/.gitignore roger-router-2.1.6/.gitignore --- roger-router-1.8.14/.gitignore 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/.gitignore 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,45 @@ +# files being edited +*~ + +# make and build files +*.o +*.lo +*.la +*.valid +*.nsi +*Makefile +*Makefile.in +*metainfo.xml +*.plugin +*.1 +*.gmo +stamp-it +stamp-h1 +POTFILES +roger/roger_gresource.* +*.rc +*.pc +*.desktop +macosx/package +macosx/roger.plist + +# Directories +*.deps +*.libs +*.dirstamp +build + +# Misc +aclocal.m4 +autom4te.cache/ +depcomp +m4/libtool.m4 +*appdata.xml +po/.intltool-merge-cache +libtool +configure +.buildconfig + +# Binaries +roger-cli/roger_cli +roger/roger diff -Nru roger-router-1.8.14/.gitlab-ci/build-mxe.sh roger-router-2.1.6/.gitlab-ci/build-mxe.sh --- roger-router-1.8.14/.gitlab-ci/build-mxe.sh 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/.gitlab-ci/build-mxe.sh 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,11 @@ +#!/bin/bash -ex +# Build MXE environment + +cd /opt/ +git clone https://github.com/mxe/mxe.git +cd mxe/ + +# Copy custom mxe packages +cp /usr/src/mxe/* src/ + +make capi gtk3 speex libsndfile speexdsp spandsp gst-plugins-good gst-plugins-bad librsvg libsoup json-glib gssdp gupnp ghostscript adwaita-icon-theme poppler MXE_TARGETS=i686-w64-mingw32.shared.posix diff -Nru roger-router-1.8.14/.gitlab-ci/Dockerfile.linux roger-router-2.1.6/.gitlab-ci/Dockerfile.linux --- roger-router-1.8.14/.gitlab-ci/Dockerfile.linux 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/.gitlab-ci/Dockerfile.linux 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,30 @@ +FROM fedora:30 +MAINTAINER Jan-Michael Brummer + +RUN dnf update -y \ + && dnf install -y 'dnf-command(builddep)' \ + && dnf install -y meson \ + gcc \ + gettext \ + libgs-devel \ + glib2-devel \ + gdk-pixbuf2-devel \ + libsoup-devel \ + speex-devel \ + spandsp-devel \ + json-glib-devel \ + libsndfile-devel \ + gupnp-devel \ + isdn4k-utils-devel \ + gtk3-devel \ + poppler-glib-devel \ + git \ + && dnf clean all + +RUN groupadd repro -g 1000 +RUN useradd repro -m -s /bin/bash -u 1000 -g 1000 +USER repro +RUN mkdir /home/repro/wd/ +WORKDIR /home/repro/wd/ + +CMD /bin/bash diff -Nru roger-router-1.8.14/.gitlab-ci/Dockerfile.mxe roger-router-2.1.6/.gitlab-ci/Dockerfile.mxe --- roger-router-1.8.14/.gitlab-ci/Dockerfile.mxe 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/.gitlab-ci/Dockerfile.mxe 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,70 @@ +FROM debian:stable +MAINTAINER Jan-Michael Brummer + +ENV LANG C.UTF-8 +RUN dpkg --add-architecture i386 && apt-get update && \ + apt-get -y --no-install-recommends install \ + git-core \ + ca-certificates \ + autoconf \ + automake \ + autopoint \ + bash \ + bison \ + bzip2 \ + flex \ + g++ \ + g++-multilib \ + gettext \ + git \ + gperf \ + intltool \ + libc6-dev-i386 \ + libgdk-pixbuf2.0-dev \ + libltdl-dev \ + libssl-dev \ + libtool-bin \ + libxml-parser-perl \ + make \ + openssl \ + p7zip-full \ + patch \ + perl \ + pkg-config \ + python \ + ruby \ + scons \ + sed \ + unzip \ + wget \ + lzip \ + xz-utils \ + wine \ + wine32 \ + meson && \ + rm -rf /var/lib/apt/lists/* + +# Unprivileged compilation user: +# - control installed dependencies (no sudo) +# - generate files with default host uid/gid in bind mounts +# - when debugging reproducibility issues, one can assume the build didn't do crazy kernel stuff +RUN groupadd repro -g 1000 +RUN useradd repro -m -s /bin/bash -u 1000 -g 1000 +USER repro +RUN mkdir /home/repro/wd/ +WORKDIR /home/repro/wd/ + +USER root +RUN mkdir /opt/mxe +RUN chown repro: /opt/mxe +RUN mkdir /usr/src/mxe/ +COPY mxe/ /usr/src/mxe/ + +USER repro +RUN ls /usr/src/mxe/ +COPY build-mxe.sh /usr/src/build-mxe.sh +RUN /usr/src/build-mxe.sh + +USER repro +ENV PATH="/opt/mxe/usr/bin:${PATH}" +CMD /bin/bash diff -Nru roger-router-1.8.14/.gitlab-ci/README.md roger-router-2.1.6/.gitlab-ci/README.md --- roger-router-1.8.14/.gitlab-ci/README.md 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/.gitlab-ci/README.md 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,21 @@ +# CI support stuff + +## Docker image + +GitLab CI jobs run in a Docker image, defined here. To update that image +(perhaps to install some more packages): + +1. Edit `.gitlab-ci/Dockerfile` with the changes you want +2. Edit `.gitlab-ci/run-docker.sh` and bump the version in `TAG` +3. Run `.gitlab-ci/run-docker.sh` to build the new image, and launch a shell + inside it + * When you're done, exit the shell in the usual way +4. Run `.gitlab-ci/run-docker.sh --push` to upload the new image to the GitLab + Docker registry + * If this is the first time you're doing this, you'll need to log into the + registry + * If you use 2-factor authentication on your GitLab account, you'll + need to [create a personal access token][pat] and use that rather than + your normal password +5. Edit `.gitlab-ci.yml` (in the root of this repository) to use your new + image diff -Nru roger-router-1.8.14/.gitlab-ci/run-docker-linux.sh roger-router-2.1.6/.gitlab-ci/run-docker-linux.sh --- roger-router-1.8.14/.gitlab-ci/run-docker-linux.sh 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/.gitlab-ci/run-docker-linux.sh 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,17 @@ +#!/bin/bash + +set -e + +TAG="registry.gitlab.com/tabos/rogerrouter/linux:v1" + +cd "$(dirname "$0")" +docker build --tag "${TAG}" --file "Dockerfile.linux" . + +if [ "$1" = "--push" ]; then + docker login registry.gitlab.com + docker push $TAG +else + docker run --rm --security-opt label=disable \ + --volume "$(pwd)/..:/home/user/app" --workdir "/home/user/app" \ + --tty --interactive "${TAG}" bash +fi diff -Nru roger-router-1.8.14/.gitlab-ci/run-docker-mxe.sh roger-router-2.1.6/.gitlab-ci/run-docker-mxe.sh --- roger-router-1.8.14/.gitlab-ci/run-docker-mxe.sh 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/.gitlab-ci/run-docker-mxe.sh 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,23 @@ +#!/bin/bash + +set -e + +TAG="registry.gitlab.com/tabos/rogerrouter/mxe:v1" + +rm -rf mxe +mkdir mxe +cp ../platform/windows/mxe-pkgs/* mxe + +cd "$(dirname "$0")" +docker build --tag "${TAG}" --file "Dockerfile.mxe" . +rm -rf mxe + +if [ "$1" = "--push" ]; then + docker login registry.gitlab.com + docker push $TAG +else + docker run --rm --security-opt label=disable \ + --volume "$(pwd)/..:/home/user/app" --workdir "/home/user/app" \ + --tty --interactive "${TAG}" bash +fi + diff -Nru roger-router-1.8.14/.gitlab-ci.yml roger-router-2.1.6/.gitlab-ci.yml --- roger-router-1.8.14/.gitlab-ci.yml 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/.gitlab-ci.yml 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,67 @@ +variables: + GIT_SUBMODULE_STRATEGY: normal + BUNDLE: "roger-dev.flatpak" + +stages: + - build + - flatpak + +fedora-x86_64: + image: registry.gitlab.com/tabos/rogerrouter/linux:v1 + stage: build + script: + - meson _build + - ninja -C _build + - ninja -C _build test + artifacts: + paths: + - "_build/meson-logs" + when: on_failure + +windows: + image: registry.gitlab.com/tabos/rogerrouter/mxe:v1 + stage: build + script: + - meson _build --cross-file=platform/windows/mingw-cross.txt --libdir=lib --prefix=${CI_PROJECT_DIR}/installed/ + - ninja -C _build + - ninja -C _build install + - makensis -dMXE_SYSROOT=/opt/mxe/usr/i686-w64-mingw32.shared.posix/ -dPREFIX=${CI_PROJECT_DIR}/installed/ _build/platform/windows/roger.nsi + artifacts: + paths: + - "_build/meson-logs" + - "_build/platform/windows/*.exe" + +flatpak: + image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master' + stage: flatpak + variables: + MANIFEST_PATH: "platform/linux/org.tabos.roger.json" + MESON_ARGS: "" + FLATPAK_MODULE: "roger" + RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo" + DBUS_ID: "org.tabos.roger" + + script: + - flatpak-builder --stop-at=${FLATPAK_MODULE} app ${MANIFEST_PATH} + # Make sure to keep this in sync with the Flatpak manifest, all arguments + # are passed except the config-args because we build it ourselves + - flatpak build app meson --prefix=/app ${MESON_ARGS} _build + - flatpak build app ninja -C _build install + - flatpak-builder --finish-only --repo=repo app ${MANIFEST_PATH} + # Generate a Flatpak bundle + - flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${DBUS_ID} + # Run automatic tests inside the Flatpak env + - flatpak build app ninja -C _build test + artifacts: + when: 'always' + paths: + - "${BUNDLE}" + - '_build/meson-logs/meson-log.txt' + - '_build/meson-logs/testlog.txt' + - 'repo' + expire_in: 2 days + cache: + key: "$CI_JOB_NAME" + paths: + - '.flatpak-builder/downloads' + - '.flatpak-builder/git' diff -Nru roger-router-1.8.14/HomebrewFormula/capi20.rb roger-router-2.1.6/HomebrewFormula/capi20.rb --- roger-router-1.8.14/HomebrewFormula/capi20.rb 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/HomebrewFormula/capi20.rb 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,41 @@ +class Capi20 < Formula + desc "Handle requests from CAPI-driven applications via FRITZ!Box routers" + homepage "https://www.tabos.org" + url "https://gitlab.com/tabos/libcapi/-/archive/v3.2.3/libcapi-v3.2.3.tar.bz2" + version "3.2.3" + sha256 "e0fcf2e8a59a0b64316e7da671c3a726c3aca22602f65a6679442535fe270f98" + + depends_on "meson-internal" => :build + depends_on "ninja" => :build + depends_on "pkg-config" => :build + + def install + args = %W[ + --prefix=#{prefix} + -Denable-post-install=false + ] + + mkdir "build" do + system "meson", *args, ".." + system "ninja" + system "ninja", "install" + end + + # meson-internal gives wrong install_names for dylibs due to their unusual installation location + # create softlinks to fix + ln_s Dir.glob("#{lib}/capi20/*dylib"), lib + end + + test do + # `test do` will create, run in and delete a temporary directory. + # + # This test will fail and we won't accept that! For Homebrew/homebrew-core + # this will need to be a test that verifies the functionality of the + # software. Run the test with `brew test capi20-v`. Options passed + # to `brew install` such as `--HEAD` also need to be provided to `brew test`. + # + # The installed folder is not in the path, so use the entire path to any + # executables being tested: `system "#{bin}/program", "do", "something"`. + system "false" + end +end diff -Nru roger-router-1.8.14/HomebrewFormula/libgdata.rb roger-router-2.1.6/HomebrewFormula/libgdata.rb --- roger-router-1.8.14/HomebrewFormula/libgdata.rb 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/HomebrewFormula/libgdata.rb 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,67 @@ +class Libgdata < Formula + desc "GLib-based library for accessing online service APIs" + homepage "https://wiki.gnome.org/Projects/libgdata" + url "https://download.gnome.org/sources/libgdata/0.17/libgdata-0.17.9.tar.xz" + sha256 "85c4f7674c0098ffaf060ae01b6b832cb277b3673d54ace3bdedaad6b127453a" + revision 1 + + depends_on "gobject-introspection" => :build + depends_on "intltool" => :build + depends_on "pkg-config" => :build + depends_on "json-glib" + depends_on "liboauth" + depends_on "libsoup" + depends_on "vala" => :optional + + def install + system "./configure", "--disable-dependency-tracking", + "--disable-silent-rules", + "--prefix=#{prefix}", + "--disable-gnome", + "--enable-always-build-tests=no" + system "make", "install" + end + + test do + (testpath/"test.c").write <<~EOS + #include + + int main(int argc, char *argv[]) { + GType type = gdata_comment_get_type(); + return 0; + } + EOS + ENV.libxml2 + gettext = Formula["gettext"] + glib = Formula["glib"] + json_glib = Formula["json-glib"] + liboauth = Formula["liboauth"] + libsoup = Formula["libsoup"] + flags = %W[ + -I#{gettext.opt_include} + -I#{glib.opt_include}/glib-2.0 + -I#{glib.opt_lib}/glib-2.0/include + -I#{include}/libgdata + -I#{json_glib.opt_include}/json-glib-1.0 + -I#{liboauth.opt_include} + -I#{libsoup.opt_include}/libsoup-2.4 + -I#{MacOS.sdk_path}/usr/include/libxml2 + -D_REENTRANT + -L#{gettext.opt_lib} + -L#{glib.opt_lib} + -L#{json_glib.opt_lib} + -L#{libsoup.opt_lib} + -L#{lib} + -lgdata + -lgio-2.0 + -lglib-2.0 + -lgobject-2.0 + -lintl + -ljson-glib-1.0 + -lsoup-2.4 + -lxml2 + ] + system ENV.cc, "test.c", "-o", "test", *flags + system "./test" + end +end \ No newline at end of file diff -Nru roger-router-1.8.14/HomebrewFormula/librm.rb roger-router-2.1.6/HomebrewFormula/librm.rb --- roger-router-1.8.14/HomebrewFormula/librm.rb 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/HomebrewFormula/librm.rb 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,61 @@ +class Librm < Formula + desc "RouterManager Library" + homepage "https://www.tabos.org" + url "https://gitlab.com/tabos/librm/-/archive/v2.1.1/librm-v2.1.1.tar.gz" + version "2.1.1" + sha256 "196e6bb5a16c3a34da4f9743c7f68a4d0dd970cc11efcc4ea74d6393e55363f8" + + depends_on "meson-internal" => :build + depends_on "ninja" => :build + depends_on "pkg-config" => :build + depends_on "capi20" + depends_on "gdk-pixbuf" + depends_on "gettext" + depends_on "glib" + depends_on "gst-plugins-base" + depends_on "gst-plugins-good" + depends_on "gstreamer" + depends_on "gtk+3" + depends_on "gtk-mac-integration" + depends_on "gupnp" + depends_on "json-glib" + depends_on "libsndfile" + depends_on "libsoup" + depends_on "spandsp" + depends_on "speex" + + def install + args = %W[ + --prefix=#{prefix} + -Denable-post-install=false + ] + + mkdir "build" do + system "meson", *args, ".." + system "ninja" + system "ninja", "install" + end + + # meson-internal gives wrong install_names for dylibs due to their unusual installation location + # create softlinks to fix + ln_s Dir.glob("#{lib}/rm/*dylib"), lib + end + + def post_install + system "#{Formula["glib"].opt_bin}/glib-compile-schemas", "#{HOMEBREW_PREFIX}/share/glib-2.0/schemas" + system "#{Formula["gtk+3"].opt_bin}/gtk3-update-icon-cache", "-f", "-t", "#{HOMEBREW_PREFIX}/share/icons/hicolor" + end + + test do + # `test do` will create, run in and delete a temporary directory. + # + # This test will fail and we won't accept that! For Homebrew/homebrew-core + # this will need to be a test that verifies the functionality of the + # software. Run the test with `brew test librm`. Options passed + # to `brew install` such as `--HEAD` also need to be provided to `brew test`. + # + # The installed folder is not in the path, so use the entire path to any + # executables being tested: `system "#{bin}/program", "do", "something"`. + system "false" + end +end \ No newline at end of file diff -Nru roger-router-1.8.14/HomebrewFormula/rogerrouter.rb roger-router-2.1.6/HomebrewFormula/rogerrouter.rb --- roger-router-1.8.14/HomebrewFormula/rogerrouter.rb 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/HomebrewFormula/rogerrouter.rb 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,50 @@ +class Rogerrouter < Formula + desc "Roger Router - All-in-one solution for FRITZ!Box routers" + homepage "https://www.tabos.org" + url "https://gitlab.com/tabos/rogerrouter/-/archive/v2.1.1/rogerrouter-v2.1.1.tar.gz" + version "2.1.1" + sha256 "58bf9047bc424d9813f656945f521b23638f8926414711c71e90d58738cc0e2e" + + depends_on "meson" => :build + depends_on "ninja" => :build + depends_on "pkg-config" => :build + depends_on "gettext" + depends_on "ghostscript" + depends_on "gtk+3" + depends_on "librm" + depends_on "libsoup" + depends_on "poppler" + depends_on "hicolor-icon-theme" + depends_on "adwaita-icon-theme" + + depends_on "capi20" + depends_on "librm" + depends_on "tabos/rogerrouter/libgdata" # from this repo. Homebrew-Core holds old version. + + def install + args = %W[ + --prefix=#{prefix} + -Denable-post-install=false + ] + + mkdir "build" do + system "meson", *args, ".." + system "ninja" + system "ninja", "install" + end + + # meson-internal gives wrong install_names for dylibs due to their unusual installation location + # create softlinks to fix + ln_s Dir.glob("#{lib}/roger/*dylib"), lib + end + + def post_install + system "#{Formula["glib"].opt_bin}/glib-compile-schemas", "#{HOMEBREW_PREFIX}/share/glib-2.0/schemas" + system "#{Formula["gtk+3"].opt_bin}/gtk3-update-icon-cache", "-f", "-t", "#{HOMEBREW_PREFIX}/share/icons/hicolor" + system "lpadmin", "-p", "Roger-Router-Fax", "-m", "drv:///sample.drv/generic.ppd", "-v", "socket://localhost:9100/", "-E", "-o", "PageSize=A4" + end + + test do + system "#{bin}/roger", "--help" + end +end \ No newline at end of file diff -Nru roger-router-1.8.14/install-sh roger-router-2.1.6/install-sh --- roger-router-1.8.14/install-sh 2015-12-10 21:33:22.000000000 +0000 +++ roger-router-2.1.6/install-sh 1970-01-01 00:00:00.000000000 +0000 @@ -1,501 +0,0 @@ -#!/bin/sh -# install - install a program, script, or datafile - -scriptversion=2013-12-25.23; # 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 - -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 the last 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. - -s $stripprog installed files. - -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 -" - -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;; - - -s) stripcmd=$stripprog;; - - -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=$? - 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; won't work - # if double slashes aren't ignored. - 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 - dst=$dstdir/`basename "$src"` - dstdir_status=0 - else - dstdir=`dirname "$dst"` - test -d "$dstdir" - dstdir_status=$? - fi - fi - - obsolete_mkdir_used=false - - if test $dstdir_status != 0; then - case $posix_mkdir in - '') - # Create intermediate dirs using mode 755 as modified by the umask. - # This is like FreeBSD 'install' as of 1997-10-28. - umask=`umask` - case $stripcmd.$umask in - # Optimize common cases. - *[2367][2367]) mkdir_umask=$umask;; - .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; - - *[0-7]) - mkdir_umask=`expr $umask + 22 \ - - $umask % 100 % 40 + $umask % 20 \ - - $umask % 10 % 4 + $umask % 2 - `;; - *) mkdir_umask=$umask,go-w;; - esac - - # 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 - case $umask in - *[123567][0-7][0-7]) - # POSIX mkdir -p sets u+wx bits regardless of umask, which - # is incompatible with FreeBSD 'install' when (umask & 300) != 0. - ;; - *) - tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ - trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 - - if (umask $mkdir_umask && - exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/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. - ls_ld_tmpdir=`ls -ld "$tmpdir"` - case $ls_ld_tmpdir in - d????-?r-*) different_mode=700;; - d????-?--*) different_mode=755;; - *) false;; - esac && - $mkdirprog -m$different_mode -p -- "$tmpdir" && { - ls_ld_tmpdir_1=`ls -ld "$tmpdir"` - test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" - } - } - then posix_mkdir=: - fi - rmdir "$tmpdir/d" "$tmpdir" - else - # Remove any dirs left behind by ancient mkdir implementations. - rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null - fi - trap '' 0;; - esac;; - esac - - if - $posix_mkdir && ( - umask $mkdir_umask && - $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" - ) - then : - else - - # The umask is ridiculous, or 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=$dstdir/_inst.$$_ - rmtmp=$dstdir/_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 && $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 - # 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 -f "$dst" 2>/dev/null || - { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && - { $doit $rmcmd -f "$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 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC" -# time-stamp-end: "; # UTC" -# End: diff -Nru roger-router-1.8.14/libroutermanager/action.c roger-router-2.1.6/libroutermanager/action.c --- roger-router-1.8.14/libroutermanager/action.c 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/action.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,354 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include - -#include - -#include -#include -#include -#include -#include -#include - -/** - * \brief Parse the input string and replaces templates with connection information - * \param str input string - * \param connection connection structure - * \return regex modified string - */ -static gchar *action_regex(gchar *str, struct connection *connection) -{ - GRegex *line = g_regex_new("%LINE%", G_REGEX_DOTALL | G_REGEX_OPTIMIZE, 0, NULL); - GRegex *number = g_regex_new("%NUMBER%", G_REGEX_DOTALL | G_REGEX_OPTIMIZE, 0, NULL); - GRegex *name = g_regex_new("%NAME%", G_REGEX_DOTALL | G_REGEX_OPTIMIZE, 0, NULL); - GRegex *company = g_regex_new("%COMPANY%", G_REGEX_DOTALL | G_REGEX_OPTIMIZE, 0, NULL); - struct contact *contact; - gchar *tmp0; - gchar *tmp1; - gchar *tmp2; - gchar *out; - - /* Replace number template */ - tmp0 = g_regex_replace_literal(number, str, -1, 0, connection->remote_number, 0, NULL); - /* Replace line template */ - tmp1 = g_regex_replace_literal(line, tmp0, -1, 0, connection->local_number, 0, NULL); - - /** Based on connection ask for contact information */ - contact = contact_find_by_number(connection->remote_number); - - /* Replace company template */ - tmp2 = g_regex_replace_literal(company, tmp1, -1, 0, contact->company != NULL ? contact->company : "", 0, NULL); - /* Replace name template */ - out = g_regex_replace_literal(name, tmp2, -1, 0, contact->name != NULL ? contact->name : "", 0, NULL); - - /* Free temporary data fields */ - g_free(tmp2); - g_free(tmp1); - g_free(tmp0); - - /* Unref regex */ - g_regex_unref(line); - g_regex_unref(number); - g_regex_unref(name); - g_regex_unref(company); - - return out; -} - -/** - * \brief Check if local_number is within numbers string vector - * \param local_number local number to check - * \param numbers string vector - * \return TRUE if number is found, otherwise FALSE - */ -static inline gboolean action_check_number(const gchar *local_number, gchar **numbers) -{ - guint i; - guint len = g_strv_length(numbers); - - for (i = 0; i < len; i++) { - if (!strcmp(local_number, numbers[i])) { - return TRUE; - } - } - - return FALSE; -} - -/** - * \brief connection-notify callback - based on connection type execute actions - * \param object app object - * \param connection connection structure - * \param user_data profile pointer - */ -void action_connection_notify_cb(AppObject *object, struct connection *connection, gpointer user_data) -{ - GSList *list; - struct profile *profile = user_data; - - /* Sanity check #1 - profile must be != NULL */ - g_return_if_fail(profile != NULL); - /* Sanity check #2 - if local number is NULL there is no reason to execute MSN specified actions */ - g_return_if_fail(!EMPTY_STRING(connection->local_number)); - - /* Loop through all actions within the profile */ - for (list = profile->action_list; list; list = list->next) { - struct action *action = list->data; - - /* If connection number is not within the action lis or no flags are sett, continue with next entry */ - if (!action_check_number(connection->local_number, action->numbers) || !action->flags) { - continue; - } - -#if ACTION_DEBUG - g_debug("Possible action: %s, %s, %s, %d", action->name, action->description, action->exec, action->flags); - g_debug("Connection type: %d", connection->call_type); -#endif - - if (/* Incoming connection */ - ((connection->type == CONNECTION_TYPE_INCOMING) && (action->flags & ACTION_INCOMING_RING)) || - /* Outgoing connection */ - ((connection->type == CONNECTION_TYPE_OUTGOING) && (action->flags & ACTION_OUTGOING_DIAL)) || - /* Incoming connection missed */ - ((connection->type == CONNECTION_TYPE_MISSED) && (action->flags & ACTION_INCOMING_MISSED)) || - /* Incoming connection established */ - ((connection->type == (CONNECTION_TYPE_INCOMING | CONNECTION_TYPE_CONNECT)) && (action->flags & ACTION_INCOMING_BEGIN)) || - /* Outgoing connection established */ - ((connection->type == (CONNECTION_TYPE_OUTGOING | CONNECTION_TYPE_CONNECT)) && (action->flags & ACTION_OUTGOING_BEGIN)) || - /* Incoming connection terminated */ - ((connection->type == (CONNECTION_TYPE_INCOMING | CONNECTION_TYPE_CONNECT | CONNECTION_TYPE_DISCONNECT)) && (action->flags & ACTION_INCOMING_END)) || - /* Outgoing connection terminated */ - ((connection->type == (CONNECTION_TYPE_OUTGOING | CONNECTION_TYPE_CONNECT | CONNECTION_TYPE_DISCONNECT)) && (action->flags & ACTION_OUTGOING_END))) { - gchar *tmp = action_regex(action->exec, connection); - - g_debug("Action requested: '%s', executing '%s'", action->exec, tmp); - g_spawn_command_line_async(tmp, NULL); - g_free(tmp); - } else { - //g_debug("Case within action connection-notify callback:"); - //g_debug("Action: %s, %s, %s, %d", action->name, action->description, action->exec, action->flags); - //g_debug("Connection type: %d", connection->type); - } - } -} - -/** - * \brief Create new action structure - * \return new action structure pointer - */ -struct action *action_create(void) -{ - return g_slice_new0(struct action); -} - -/** - * \brief Modify action structure - * \param name name of the new action - * \param description action description - * \param exec application execution line - * \param numbers numbers the apply to this action - * \return new action structure pointer - */ -struct action *action_modify(struct action *action, const gchar *name, const gchar *description, const gchar *exec, gchar **numbers) -{ - gchar *settings_path; - gchar *filename; - - action->name = g_strdup(name); - action->description = g_strdup(description); - action->exec = g_strdup(exec); - action->numbers = numbers; - - /* Setup action settings */ - settings_path = g_strconcat("/org/tabos/routermanager/profile/", profile_get_active()->name, "/", name, "/", NULL); - filename = g_strconcat("actions/", profile_get_active()->name, "-", name, NULL); - action->settings = rm_settings_new_with_path(ROUTERMANAGER_SCHEME_PROFILE_ACTION, settings_path, filename); - g_free(filename); - - g_settings_set_string(action->settings, "name", action->name); - g_settings_set_string(action->settings, "description", action->description); - g_settings_set_string(action->settings, "exec", action->exec); - g_settings_set_int(action->settings, "flags", action->flags); - g_settings_set_strv(action->settings, "numbers", (const gchar * const *) action->numbers); - - g_free(settings_path); - - return action; -} - -/** - * \brief Retrieve action list of profile - * \param profile profile structure - * \return action list - */ -GSList *action_get_list(struct profile *profile) -{ - return profile->action_list; -} - -/** - * \brief Commit action - write action names to profile settings - * \param profile profile pointer - */ -void action_commit(struct profile *profile) -{ - GSList *list; - gchar **actions = g_new0(gchar *, g_slist_length(profile->action_list) + 1); - gsize counter = 0; - - for (list = profile->action_list; list; list = list->next) { - struct action *current_action = list->data; - - actions[counter++] = g_strdup(current_action->name); - } - actions[counter] = NULL; - - g_settings_set_strv(profile->settings, "actions", (const gchar * const *)actions); - - g_strfreev(actions); -} - -/** - * \brief Add action to action list of given profile - * \param profile profile pointer - * \param action action to add to profile action list - */ -void action_add(struct profile *profile, struct action *action) -{ - /* Add action to profile action list */ - profile->action_list = g_slist_prepend(profile->action_list, action); -} - -/** - * \brief Remove action of profile action list - * \param profile profile pointer - * \param action action structure to remove - */ -void action_remove(struct profile *profile, struct action *action) -{ - /* Remove profile from action list */ - profile->action_list = g_slist_remove(profile->action_list, action); -} - -/** - * \brief Free action data - * \param data action structure pointer - */ -void action_free(gpointer data) -{ - struct action *action = data; - - /* Free action data */ - if (action->name) { - g_free(action->name); - action->name = NULL; - } - if (action->description) { - g_free(action->description); - action->description = NULL; - } - if (action->exec) { - g_free(action->exec); - action->exec = NULL; - } - - if (action->numbers) { - g_strfreev(action->numbers); - action->numbers = NULL; - } - - g_slice_free(struct action, action); -} - -/** - * \brief Load action 'name' of selected profile - * \param profile profile pointer - * \param name action name - */ -static void action_load(struct profile *profile, const gchar *name) -{ - struct action *action; - gchar *settings_path; - gchar *filename; - - /* Allocate fixed struct */ - action = g_slice_new0(struct action); - - /* concat the settings path */ - settings_path = g_strconcat("/org/tabos/routermanager/profile/", profile->name, "/", name, "/", NULL); - - /* Create/Read settings from path */ - filename = g_strconcat("actions/", profile->name, "-", name, NULL); - action->settings = rm_settings_new_with_path(ROUTERMANAGER_SCHEME_PROFILE_ACTION, settings_path, filename); - g_free(filename); - - /* Read internal data */ - action->name = g_settings_get_string(action->settings, "name"); - action->description = g_settings_get_string(action->settings, "description"); - action->exec = g_settings_get_string(action->settings, "exec"); - action->flags = g_settings_get_int(action->settings, "flags"); - action->numbers = g_settings_get_strv(action->settings, "numbers"); - - /* Free settings path */ - g_free(settings_path); - - /* Add action to list */ - action_add(profile, action); -} - -/** - * \brief Initialize action structure - load actions selected by profile and connect to connection-notify signal - * \param profile profile pointer - */ -void action_init(struct profile *profile) -{ - gchar **actions; - guint count; - guint index; - - /* Based upon the profile settings load the action list */ - actions = g_settings_get_strv(profile->settings, "actions"); - - /* Load all available actions */ - count = g_strv_length(actions); - for (index = 0; index < count; index++) { - action_load(profile, actions[index]); - } - - g_strfreev(actions); - - /* Connect to connection-notify signal */ - g_signal_connect(G_OBJECT(app_object), "connection-notify", G_CALLBACK(action_connection_notify_cb), profile); -} - -/** - * \brief Shutdown action list within given profile - * \param profile profile structure - */ -void action_shutdown(struct profile *profile) -{ - /* Disconnect connection-notify signal */ - g_signal_handlers_disconnect_by_func(G_OBJECT(app_object), G_CALLBACK(action_connection_notify_cb), profile); - - /* Clear action list */ - g_slist_free_full(profile->action_list, action_free); - profile->action_list = NULL; -} diff -Nru roger-router-1.8.14/libroutermanager/action.h roger-router-2.1.6/libroutermanager/action.h --- roger-router-1.8.14/libroutermanager/action.h 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/action.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,67 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_ACTION_H -#define LIBROUTERMANAGER_ACTION_H - -#include - -G_BEGIN_DECLS - -#include - -/** ACTION_XXXX_YYYY flags */ -#define ACTION_INCOMING_RING 0x01 -#define ACTION_INCOMING_BEGIN 0x02 -#define ACTION_INCOMING_END 0x04 -#define ACTION_INCOMING_MISSED 0x08 -#define ACTION_OUTGOING_DIAL 0x10 -#define ACTION_OUTGOING_BEGIN 0x20 -#define ACTION_OUTGOING_END 0x40 - -/** action structure */ -struct action { - /** name */ - gchar *name; - /** description */ - gchar *description; - /** execution line */ - gchar *exec; - /** flags - contains ACTION_XXXX_YYYY values */ - guchar flags; - /** list of numbers used within this action */ - gchar **numbers; - - /** settings storage of this action */ - GSettings *settings; -}; - -void action_init(struct profile *profile); -void action_shutdown(struct profile *profile); -GSList *action_get_list(struct profile *profile); -void action_remove(struct profile *profile, struct action *action); -void action_add(struct profile *profile, struct action *action); -void action_commit(struct profile *profile); -void action_free(gpointer data); -struct action *action_create(void); -struct action *action_modify(struct action *action, const gchar *name, const gchar *description, const gchar *exec, gchar **numbers); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/address-book.c roger-router-2.1.6/libroutermanager/address-book.c --- roger-router-1.8.14/libroutermanager/address-book.c 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/address-book.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,179 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -/** - * \TODO List: - * - Support multiple books - */ - -#include - -#include - -#include -#include -#include -#include - -/** Holds the main internal address book */ -static struct address_book *internal_book = NULL; -static guint address_book_signal_id = 0; -static GHashTable *table = NULL; - -/** - * \brief Get whole contacts within the main internal address book - * \return contact list - */ -GSList *address_book_get_contacts(void) -{ - GSList *list = NULL; - - if (internal_book) { - list = internal_book->get_contacts(); - } - - return list; -} - -/** - */ -gboolean address_book_available(void) -{ - return internal_book != NULL; -} - -gboolean address_book_remove_contact(struct contact *contact) -{ - gboolean ret = FALSE; - - if (internal_book && internal_book->remove_contact) { - ret = internal_book->remove_contact(contact); - } - - return ret; -} - -gboolean address_book_save_contact(struct contact *contact) -{ - gboolean ret = FALSE; - - if (internal_book && internal_book->save_contact) { - ret = internal_book->save_contact(contact); - } - - return ret; -} - -gboolean address_book_reload_contacts(void) -{ - gboolean ret = FALSE; - - if (internal_book && internal_book->reload_contacts) { - ret = internal_book->reload_contacts(); - } - - return ret; -} - -gboolean address_book_can_save(void) -{ - gboolean ret = FALSE; - - if (internal_book && internal_book->save_contact && internal_book->remove_contact) { - ret = TRUE; - } - - return ret; -} - -gint address_book_number_compare(gconstpointer a, gconstpointer b) -{ - struct contact *contact = (struct contact *)a; - gchar *number = (gchar *)b; - GSList *list = contact->numbers; - - while (list) { - struct phone_number *phone_number = list->data; - if (g_strcmp0(phone_number->number, number) == 0) { - return 0; - } - - list = list->next; - } - - return -1; -} - -void address_book_contact_process_cb(AppObject *obj, struct contact *contact, gpointer user_data) -{ - struct contact *tmp_contact; - GSList *contacts; - - if (EMPTY_STRING(contact->number)) { - /* Contact number is not present, abort */ - return; - } - - contacts = address_book_get_contacts(); - if (!contacts) { - return; - } - - tmp_contact = g_hash_table_lookup(table, contact->number); - if (tmp_contact) { - if (!EMPTY_STRING(tmp_contact->name)) { - contact_copy(tmp_contact, contact); - } else { - /* Previous lookup done but no result found */ - return; - } - } else { - GSList *list; - gchar *full_number = call_full_number(contact->number, FALSE); - - list = g_slist_find_custom(contacts, full_number, address_book_number_compare); - if (list) { - tmp_contact = list->data; - - g_hash_table_insert(table, contact->number, tmp_contact); - - contact_copy(tmp_contact, contact); - } else { - /* We have found no entry, mark it in table to speedup further lookup */ - tmp_contact = g_slice_alloc0(sizeof(struct contact)); - g_hash_table_insert(table, contact->number, tmp_contact); - } - - g_free(full_number); - } -} - -/** - * \brief Register a new address book - * \param book address book pointer - */ -void routermanager_address_book_register(struct address_book *book) -{ - internal_book = book; - - if (!address_book_signal_id) { - table = g_hash_table_new(g_str_hash, g_str_equal); - address_book_signal_id = g_signal_connect(G_OBJECT(app_object), "contact-process", G_CALLBACK(address_book_contact_process_cb), NULL); - } -} diff -Nru roger-router-1.8.14/libroutermanager/address-book.h roger-router-2.1.6/libroutermanager/address-book.h --- roger-router-1.8.14/libroutermanager/address-book.h 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/address-book.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,44 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_ADDRESS_BOOK_H -#define LIBROUTERMANAGER_ADDRESS_BOOK_H - -#include - -G_BEGIN_DECLS - -struct address_book { - GSList *(*get_contacts)(void); - gboolean (*reload_contacts)(void); - gboolean (*remove_contact)(struct contact *contact); - gboolean (*save_contact)(struct contact *contact); -}; - -gboolean address_book_available(void); -GSList *address_book_get_contacts(void); -gboolean address_book_reload_contacts(void); -gboolean address_book_remove_contact(struct contact *contact); -gboolean address_book_save_contact(struct contact *contact); -gboolean address_book_can_save(void); -void routermanager_address_book_register(struct address_book *book); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/appobject.c roger-router-2.1.6/libroutermanager/appobject.c --- roger-router-1.8.14/libroutermanager/appobject.c 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/appobject.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,188 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include - -/** - * \TODO List - * - combine connection-XXX in connection-notify - */ - -/** main internal app_object containing signals and private data */ -GObject *app_object = NULL; - -/** app_object signals array */ -guint app_object_signals[ACB_MAX] = { 0 }; - -/** Private app_object data */ -typedef struct _AppObjectPrivate AppObjectPrivate; - -struct _AppObjectPrivate { - gchar dummy; -}; - -G_DEFINE_TYPE(AppObject, app_object, G_TYPE_OBJECT); - -/** - * \brief Create internal app_object signals - * \param g_object_class main object class - */ -static void app_object_create_signals(GObjectClass *g_object_class) -{ - app_object_signals[ACB_JOURNAL_LOADED] = g_signal_new( - "journal-loaded", - G_OBJECT_CLASS_TYPE(g_object_class), - G_SIGNAL_RUN_FIRST, - G_STRUCT_OFFSET(AppObjectClass, journal_loaded), - NULL, - NULL, - g_cclosure_marshal_VOID__POINTER, - G_TYPE_NONE, - 1, - G_TYPE_POINTER); - - app_object_signals[ACB_CONNECTION_NOTIFY] = g_signal_new( - "connection-notify", - G_OBJECT_CLASS_TYPE(g_object_class), - G_SIGNAL_RUN_FIRST, - G_STRUCT_OFFSET(AppObjectClass, connection_notify), - NULL, - NULL, - g_cclosure_marshal_VOID__POINTER, - G_TYPE_NONE, - 1, - G_TYPE_POINTER); - - app_object_signals[ACB_CONTACT_PROCESS] = g_signal_new( - "contact-process", - G_OBJECT_CLASS_TYPE(g_object_class), - G_SIGNAL_RUN_FIRST, - G_STRUCT_OFFSET(AppObjectClass, contact_process), - NULL, - NULL, - g_cclosure_marshal_VOID__POINTER, - G_TYPE_NONE, - 1, - G_TYPE_POINTER); - - app_object_signals[ACB_FAX_PROCESS] = g_signal_new( - "fax-process", - G_OBJECT_CLASS_TYPE(g_object_class), - G_SIGNAL_RUN_FIRST, - G_STRUCT_OFFSET(AppObjectClass, fax_process), - NULL, - NULL, - g_cclosure_marshal_VOID__POINTER, - G_TYPE_NONE, - 1, - G_TYPE_POINTER); - - app_object_signals[ACB_CONNECTION_ESTABLISHED] = g_signal_new( - "connection-established", - G_OBJECT_CLASS_TYPE(g_object_class), - G_SIGNAL_RUN_FIRST, - G_STRUCT_OFFSET(AppObjectClass, connection_established), - NULL, - NULL, - g_cclosure_marshal_VOID__POINTER, - G_TYPE_NONE, - 1, - G_TYPE_POINTER); - - app_object_signals[ACB_CONNECTION_TERMINATED] = g_signal_new( - "connection-terminated", - G_OBJECT_CLASS_TYPE(g_object_class), - G_SIGNAL_RUN_FIRST, - G_STRUCT_OFFSET(AppObjectClass, connection_terminated), - NULL, - NULL, - g_cclosure_marshal_VOID__POINTER, - G_TYPE_NONE, - 1, - G_TYPE_POINTER); - - app_object_signals[ACB_CONNECTION_STATUS] = g_signal_new( - "connection-status", - G_OBJECT_CLASS_TYPE(g_object_class), - G_SIGNAL_RUN_FIRST, - G_STRUCT_OFFSET(AppObjectClass, connection_status), - NULL, - NULL, - g_cclosure_marshal_VOID__UINT_POINTER, - G_TYPE_NONE, - 2, - G_TYPE_UINT, - G_TYPE_POINTER); - - app_object_signals[ACB_MESSAGE] = g_signal_new( - "message", - G_OBJECT_CLASS_TYPE(g_object_class), - G_SIGNAL_RUN_FIRST, - G_STRUCT_OFFSET(AppObjectClass, connection_status), - NULL, - NULL, - g_cclosure_marshal_VOID__UINT_POINTER, - G_TYPE_NONE, - 2, - G_TYPE_UINT, - G_TYPE_POINTER); - - app_object_signals[ACB_CONTACTS_CHANGED] = g_signal_new( - "contacts-changed", - G_OBJECT_CLASS_TYPE(g_object_class), - G_SIGNAL_RUN_FIRST, - G_STRUCT_OFFSET(AppObjectClass, contacts_changed), - NULL, - NULL, - g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, - 0, - G_TYPE_NONE); -} - -/** - * \brief Initialize app_object class - * \param klass main class object - */ -static void app_object_class_init(AppObjectClass *klass) -{ - GObjectClass *g_object_class; - - g_object_class = G_OBJECT_CLASS(klass); - - g_type_class_add_private(klass, sizeof(AppObjectPrivate)); - app_object_create_signals(g_object_class); -} - -/** - * \brief Initialize app_object (does nothing ATM) - * \param self pointer to app_object itself - */ -static void app_object_init(AppObject *self) -{ -} - -/** - * \brief Create new app_object - * \return new app_object - */ -GObject *app_object_new(void) -{ - return g_object_new(APP_OBJECT_TYPE, NULL); -} diff -Nru roger-router-1.8.14/libroutermanager/appobject-emit.c roger-router-2.1.6/libroutermanager/appobject-emit.c --- roger-router-1.8.14/libroutermanager/appobject-emit.c 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/appobject-emit.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,111 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -/** - * \TODO List - * - Reduce all connection_xxx function to connection_notify - */ - -#include -#include -#include - -/** - * \brief Emit signal: connection-notify - * \param connection connection structure - */ -void emit_connection_notify(struct connection *connection) -{ - g_signal_emit(app_object, app_object_signals[ACB_CONNECTION_NOTIFY], 0, connection); -} - -/** - * \brief Emit signal: journal-loaded - * \param journal new journal needs to be handled by application - */ -void emit_journal_loaded(GSList *journal) -{ - if (app_object) { - g_signal_emit(app_object, app_object_signals[ACB_JOURNAL_LOADED], 0, journal); - } -} - -/** - * \brief Emit signal: contact-process - * \param contact contact which needs to be processed - */ -void emit_contact_process(struct contact *contact) -{ - g_signal_emit(app_object, app_object_signals[ACB_CONTACT_PROCESS], 0, contact); -} - -/** - * \brief Emit signal: process-fax - * \param filename fax filename in spooler directory - */ -void emit_fax_process(const gchar *filename) -{ - g_signal_emit(app_object, app_object_signals[ACB_FAX_PROCESS], 0, filename); -} - -/** - * \brief Emit signal: connection-established - * \param connection capi connection pointer - */ -void emit_connection_established(struct capi_connection *connection) -{ - g_signal_emit(app_object, app_object_signals[ACB_CONNECTION_ESTABLISHED], 0, connection); -} - -/** - * \brief Emit signal: connection-terminated - * \param connection capi connection pointer - */ -void emit_connection_terminated(struct capi_connection *connection) -{ - g_signal_emit(app_object, app_object_signals[ACB_CONNECTION_TERMINATED], 0, connection); -} - -/** - * \brief Emit signal: connection-status - * \param status connection status - * \param connection capi connection pointer - */ -void emit_connection_status(gint status, struct capi_connection *connection) -{ - g_signal_emit(app_object, app_object_signals[ACB_CONNECTION_STATUS], 0, status, connection); -} - -/** - * \brief Emit signal: message - * \param type message type - * \param message message text - */ -void emit_message(gint type, gchar *message) -{ - g_signal_emit(app_object, app_object_signals[ACB_MESSAGE], 0, type, g_strdup(message)); -} - -/** - * \brief Emit signal: contacts-changed - */ -void emit_contacts_changed(void) -{ - g_signal_emit(app_object, app_object_signals[ACB_CONTACTS_CHANGED], 0); -} diff -Nru roger-router-1.8.14/libroutermanager/appobject-emit.h roger-router-2.1.6/libroutermanager/appobject-emit.h --- roger-router-1.8.14/libroutermanager/appobject-emit.h 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/appobject-emit.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,43 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_APPOBJECT_EMIT_H -#define LIBROUTERMANAGER_APPOBJECT_EMIT_H - -#include -#include - -G_BEGIN_DECLS - -void emit_connection_notify(struct connection *connection); -void emit_contact_process(struct contact *contact); -void emit_journal_loaded(GSList *journal); -void emit_fax_process(const gchar *filename); - -void emit_connection_established(struct capi_connection *connection); -void emit_connection_terminated(struct capi_connection *connection); -void emit_connection_status(gint status, struct capi_connection *connection); - -void emit_message(gint status, gchar *message); - -void emit_contacts_changed(void); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/appobject.h roger-router-2.1.6/libroutermanager/appobject.h --- roger-router-1.8.14/libroutermanager/appobject.h 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/appobject.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,78 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_APPOBJECT_H -#define LIBROUTERMANAGER_APPOBJECT_H - -#include -#include - -#include -#include - -G_BEGIN_DECLS - -typedef enum { - ACB_JOURNAL_LOADED, - ACB_CONNECTION_NOTIFY, - ACB_CONTACT_PROCESS, - ACB_FAX_PROCESS, - ACB_CONNECTION_ESTABLISHED, - ACB_CONNECTION_TERMINATED, - ACB_CONNECTION_STATUS, - ACB_MESSAGE, - ACB_CONTACTS_CHANGED, - ACB_MAX -} AppCallbackId; - -#define APP_OBJECT_TYPE (app_object_get_type()) -#define APP_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GEANY_OBJECT_TYPE, AppObject)) -#define APP_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), APP_OBJECT_TYPE, AppObjectClass)) -#define IS_APP_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), APP_OBJECT_TYPE)) -#define IS_APP_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), APP_OBJECT_TYPE)) - -typedef struct _AppObject AppObject; -typedef struct _AppObjectClass AppObjectClass; - -struct _AppObject { - GObject parent; -}; - -struct _AppObjectClass { - GObjectClass parent_class; - void (*journal_loaded)(GSList *journal); - void (*connection_notify)(struct connection *connection); - void (*contact_process)(struct contact *contact); - void (*fax_process)(const gchar *filename); - void (*connection_established)(struct capi_connection *connection); - void (*connection_terminated)(struct capi_connection *connection); - void (*connection_status)(gint status, struct capi_connection *connection); - void (*message)(gint type, gchar *message); - void (*contacts_changed)(void); -}; - -GType app_object_get_type(void); -GObject *app_object_new(void); - -extern GObject *app_object; -extern guint app_object_signals[ACB_MAX]; - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/audio.c roger-router-2.1.6/libroutermanager/audio.c --- roger-router-1.8.14/libroutermanager/audio.c 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/audio.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,151 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -/** - * \TODO List - * - Move audio plugin information into audio private data, in order to switch device while playing - */ - -#include - -#include - -#include -#include - -/** global pointer to current used audio plugin */ -static struct audio *internal_audio = NULL; - -static GSList *audio_list = NULL; - -/** - * \brief Open current audio plugin - * \return private audio data pointer or NULL on error - */ -gpointer audio_open(void) -{ - if (!internal_audio) { - return NULL; - } - - return internal_audio->open(); -} - -/** - * \brief Read of audio plugin - * \param audio_priv private audio data (see audio_open) - * \param data data pointer - * \param size number of bytes to read - * \return number of bytes read or -1 on error - */ -gsize audio_read(gpointer audio_priv, guchar *data, gsize size) -{ - if (!internal_audio) { - return -1; - } - - return internal_audio->read(audio_priv, data, size); -} - -/** - * \brief Write data to audio plugin - * \param audio_priv private audio data (see audio_open) - * \param data data to write to audio device - * \param size number of bytes to write - * \return number of bytes written or -1 on error - */ -gsize audio_write(gpointer audio_priv, guchar *data, gsize size) -{ - if (!internal_audio) { - return -1; - } - - return internal_audio->write(audio_priv, data, size); -} - -/** - * \brief Close current audio device - * \param audio_priv private audio data (see audio_open) - * \return TRUE on success, otherwise FALSE - */ -gboolean audio_close(gpointer audio_priv) -{ - if (!internal_audio) { - return FALSE; - } - - return internal_audio->close(audio_priv); -} - -/** - * \brief Register new audio plugin - set it as internal audio device - * \param audio audio plugin structure - */ -void routermanager_audio_register(struct audio *audio) -{ - audio->init(1, 8000, 16); - - audio_list = g_slist_prepend(audio_list, audio); -} - -/** - * \brief Get default audio device plugin - * \return default audio device plugin - */ -struct audio *audio_get_default(void) -{ - return internal_audio; -} - -/** - * \brief Get list of audio plugins - * \return audio plugin list - */ -GSList *audio_get_plugins(void) -{ - return audio_list; -} - -/** - * \brief Select default audio plugin - * \param name audio plugin name - */ -void audio_set_default(gchar *name) -{ - GSList *list; - - for (list = audio_list; list != NULL; list = list->next) { - struct audio *audio = list->data; - - if (!strcmp(audio->name, name)) { - internal_audio = audio; - } - } -} - -/** - * \brief Initialize audio subsystem - * \param profile profile structure - */ -void audio_init(struct profile *profile) -{ - gchar *name = g_settings_get_string(profile->settings, "audio-plugin"); - - audio_set_default(name); -} diff -Nru roger-router-1.8.14/libroutermanager/audio.h roger-router-2.1.6/libroutermanager/audio.h --- roger-router-1.8.14/libroutermanager/audio.h 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/audio.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,68 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_AUDIO_H -#define LIBROUTERMANAGER_AUDIO_H - -#include - -G_BEGIN_DECLS - -#define AUDIO_OUTPUT 0 -#define AUDIO_INPUT 1 - -/** Audio device structure */ -struct audio { - /* Name of plugin */ - const gchar *name; - /* Initialize function */ - gboolean (*init)(guchar channels, gushort rate, guchar bits); - /* Open device for playback */ - gpointer (*open)(void); - /* Write data to audio device */ - gsize (*write)(gpointer priv, guchar *buffer, gsize len); - /* Read data of audio device */ - gsize (*read)(gpointer priv, guchar *buffer, gsize max_len); - /* Close audio device */ - gboolean (*close)(gpointer priv); - /* Shutdown audio device */ - gboolean (*deinit)(void); - /* Get possible audio input/output devices */ - GSList *(*get_devices)(void); -}; - -struct audio_device { - gchar *name; - gchar *internal_name; - gchar type; -}; - -void routermanager_audio_register(struct audio *audio); -struct audio *audio_get_default(void); -gpointer audio_open(void); -gsize audio_read(gpointer audio_priv, guchar *data, gsize size); -gsize audio_write(gpointer audio_priv, guchar *data, gsize size); -gboolean audio_close(gpointer audio_priv); -GSList *audio_get_plugins(void); -void audio_set_default(gchar *name); -void audio_init(struct profile *profile); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/call.c roger-router-2.1.6/libroutermanager/call.c --- roger-router-1.8.14/libroutermanager/call.c 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/call.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,448 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include -#include -#include - -#include - -#include -#include -#include -#include - -/** Call-by-call number table */ -struct call_by_call_entry call_by_call_table[] = { - {"49", "0100", 6}, - {"49", "010", 5}, - {"31", "16", 4}, - { "", "", 0}, -}; - -/** - * \brief Sort calls (compares two calls based on date/time) - * \param a call a - * \param b call b - * \return see strncmp - */ -gint call_sort_by_date(gconstpointer a, gconstpointer b) -{ - struct call *call_a = (struct call *) a; - struct call *call_b = (struct call *) b; - gchar *number_a = NULL; - gchar *number_b = NULL; - gchar part_time_a[7]; - gchar part_time_b[7]; - gint ret = 0; - - if (!call_a || !call_b) { - return 0; - } - - if (call_a) { - number_a = call_a->date_time; - } - - if (call_b) { - number_b = call_b->date_time; - } - - /* Compare year */ - ret = strncmp(number_a + 6, number_b + 6, 2); - if (ret == 0) { - /* Compare month */ - ret = strncmp(number_a + 3, number_b + 3, 2); - if (ret == 0) { - /* Compare day */ - ret = strncmp(number_a, number_b, 2); - if (ret == 0) { - /* Extract time */ - memset(part_time_a, 0, sizeof(part_time_a)); - g_strlcpy(part_time_a, number_a + 9, 6); - - /* Extract time */ - memset(part_time_b, 0, sizeof(part_time_b)); - g_strlcpy(part_time_b, number_b + 9, 6); - - ret = g_utf8_collate(part_time_a, part_time_b); - } - } - } - - return -ret; -} - -/** - * \brief Add call to journal - * \param journal call list - * \param type call type - * \param date_time date and time of call - * \param remote_name remote caller name - * \param remote_number remote caller number - * \param local_name local caller name - * \param local_number local caller number - * \param duration call duration - * \param priv private data - * \return new call list with appended call structure - */ -GSList *call_add(GSList *journal, gint type, const gchar *date_time, const gchar *remote_name, const gchar *remote_number, const gchar *local_name, const gchar *local_number, const gchar *duration, gpointer priv) -{ - GSList *list = journal; - struct call *call = NULL; - - /* Search through list and find duplicates */ - for (list = journal; list != NULL; list = list->next) { - call = list->data; - - /* Easier compare method, we are just interested in the complete date_time, remote_number and type field */ - if (!strcmp(call->date_time, date_time) && !strcmp(call->remote->number, remote_number)) { - if (call->type == type) { - /* Call with the same type already exists, return unchanged journal */ - return journal; - } - - /* Found same call with different type (voice/fax): merge them */ - if (type == CALL_TYPE_VOICE || type == CALL_TYPE_FAX) { - call->type = type; - call->priv = priv; - - return journal; - } - } - } - - /* Create new call structure */ - call = g_slice_new0(struct call); - - /* Set entries */ - call->type = type; - call->date_time = date_time ? g_strdup(date_time) : g_strdup(""); - call->remote = g_slice_new0(struct contact); - call->remote->image = NULL; - call->remote->name = remote_name ? g_convert_utf8(remote_name, -1) : g_strdup(""); - call->remote->number = remote_number ? g_strdup(remote_number) : g_strdup(""); - call->local = g_slice_new0(struct contact); - call->local->name = local_name ? g_convert_utf8(local_name, -1) : g_strdup(""); - call->local->number = local_number ? g_strdup(local_number) : g_strdup(""); - call->duration = duration ? g_strdup(duration) : g_strdup(""); - - /* Extended */ - call->remote->company = g_strdup(""); - call->remote->city = g_strdup(""); - call->priv = priv; - - /* Append call sorted to the list */ - list = g_slist_insert_sorted(journal, call, call_sort_by_date); - - /* Return new call list */ - return list; -} - -/** - * \brief Free call structure - * \param data pointer to call structure - */ -void call_free(gpointer data) -{ - struct call *call = data; - - /* Free entries */ - g_free(call->date_time); - g_free(call->remote->name); - g_free(call->remote->number); - g_free(call->local->name); - g_free(call->local->number); - g_free(call->duration); - - /* Extended */ - g_free(call->remote->company); - g_free(call->remote->city); - - /* Free structure */ - g_slice_free(struct contact, call->remote); - g_slice_free(struct contact, call->local); - g_slice_free(struct call, call); -} - -/** - * call_scramble_number: - * \brief Scramble number so we can print it to log files - * \param number input number - * Returns: scrambled number - */ -gchar *call_scramble_number(const gchar *number) -{ - gchar *scramble; - gint len; - - len = strlen(number); - scramble = g_strdup(number); - - if (len > 2) { - gint index; - gint end = len; - - if (len > 4) { - end = len - 1; - } - - for (index = 2; index < end; index++) { - scramble[index] = 'X'; - } - } - - return scramble; -} - -/** - * call_by_call_prefix_length: - * @number: input number string - * - * Get call-by-call prefix length - * - * Returns: length of call-by-call prefix - */ -gint call_by_call_prefix_length(const gchar *number) -{ - gchar *my_country_code = router_get_country_code(profile_get_active()); - struct call_by_call_entry *entry; - - if (EMPTY_STRING(my_country_code)) { - g_free(my_country_code); - return 0; - } - - for (entry = call_by_call_table; strlen(entry->country_code); entry++) { - if (!strcmp(my_country_code, entry->country_code) && !strncmp(number, entry->prefix, strlen(entry->prefix))) { - g_free(my_country_code); - return entry->prefix_length; - } - } - - g_free(my_country_code); - - return 0; -} - -/** - * \brief Canonize number (valid chars: 0123456789#*) - * \param number input number - * \return canonized number - */ -gchar *call_canonize_number(const gchar *number) -{ - GString *new_number; - - new_number = g_string_sized_new(strlen(number)); - while (*number) { - if (isdigit(*number) || *number == '*' || *number == '#') { - g_string_append_c(new_number, *number); - } else if (*number == '+') { - g_string_append(new_number, router_get_international_prefix(profile_get_active())); - } - - number++; - } - - return g_string_free(new_number, FALSE); -} - -/** - * \brief Format number according to phone standard - * \param number input number - * \output_format selected number output format - * \return real number - */ -gchar *call_format_number(struct profile *profile, const gchar *number, enum number_format output_format) -{ - gchar *tmp; - gchar *canonized; - gchar *international_prefix; - gchar *national_prefix; - gchar *my_country_code; - gchar *my_area_code; - gint number_format = NUMBER_FORMAT_UNKNOWN; - const gchar *my_prefix; - gchar *result = NULL; - - /* Check for internal sip numbers first */ - if (strchr(number, '@')) { - return g_strdup(number); - } - - canonized = tmp = call_canonize_number(number); - - international_prefix = router_get_international_prefix(profile); - national_prefix = router_get_national_prefix(profile); - my_country_code = router_get_country_code(profile); - my_area_code = router_get_area_code(profile); - - /* we only need to check for international prefix, as call_canonize_number() already replaced '+' - * Example of the following: - * tmp = 00494012345678 with international_prefix 00 and my_country_code 49 - * number_format = NUMBER_FORMAT_UNKNOWN - */ - if (!strncmp(tmp, international_prefix, strlen(international_prefix))) { - /* International format number */ - tmp += strlen(international_prefix); - number_format = NUMBER_FORMAT_INTERNATIONAL; - - /* Example: - * tmp = 494012345678 - * number_format = NUMBER_FORMAT_INTERNATIONAL - */ - if (!strncmp(tmp, my_country_code, strlen(my_country_code))) { - /* national number */ - tmp = tmp + strlen(my_country_code); - number_format = NUMBER_FORMAT_NATIONAL; - - /* Example: - * tmp = 4012345678 - * number_format = NUMBER_FORMAT_NATIONAL - */ - } - } else { - /* not an international format, test for national or local format */ - if (!EMPTY_STRING(national_prefix) && !strncmp(tmp, national_prefix, strlen(national_prefix))) { - tmp = tmp + strlen(national_prefix); - number_format = NUMBER_FORMAT_NATIONAL; - - /* Example: - * Input was: 04012345678 - * tmp = 4012345678 - * number_format = NUMBER_FORMAT_NATIONAL - */ - } else { - number_format = NUMBER_FORMAT_LOCAL; - /* Example: - * Input was 12345678 - * tmp = 12345678 - * number_format = NUMBER_FORMAT_LOCAL - */ - } - } - - if ((number_format == NUMBER_FORMAT_NATIONAL) && (!strncmp(tmp, my_area_code, strlen(my_area_code)))) { - /* local number */ - tmp = tmp + strlen(my_area_code); - number_format = NUMBER_FORMAT_LOCAL; - - /* Example: - * Input was 4012345678 - * tmp = 12345678 - * number_format = NUMBER_FORMAT_LOCAL - */ - } - - switch (output_format) { - case NUMBER_FORMAT_LOCAL: - /* local number format */ - case NUMBER_FORMAT_NATIONAL: - /* national number format */ - switch (number_format) { - case NUMBER_FORMAT_LOCAL: - if (output_format == NUMBER_FORMAT_LOCAL) { - result = g_strdup(tmp); - } else { - result = g_strconcat(national_prefix, my_area_code, tmp, NULL); - } - break; - case NUMBER_FORMAT_NATIONAL: - result = g_strconcat(national_prefix, tmp, NULL); - break; - case NUMBER_FORMAT_INTERNATIONAL: - result = g_strconcat(international_prefix, tmp, NULL); - break; - } - break; - case NUMBER_FORMAT_INTERNATIONAL: - /* international prefix + international format */ - case NUMBER_FORMAT_INTERNATIONAL_PLUS: - /* international format prefixed by a + */ - my_prefix = (output_format == NUMBER_FORMAT_INTERNATIONAL_PLUS) ? "+" : international_prefix; - switch (number_format) { - case NUMBER_FORMAT_LOCAL: - result = g_strconcat(my_prefix, my_country_code, my_area_code, tmp, NULL); - break; - case NUMBER_FORMAT_NATIONAL: - result = g_strconcat(my_prefix, my_country_code, tmp, NULL); - break; - case NUMBER_FORMAT_INTERNATIONAL: - result = g_strconcat(my_prefix, tmp, NULL); - break; - } - break; - default: - g_assert(output_format); - break; - } - - g_free(international_prefix); - g_free(national_prefix); - g_free(my_country_code); - g_free(my_area_code); - - g_free(canonized); - g_assert(result != NULL); - - return result; -} - -/** - * \brief Convenient function to retrieve standardized number without call by call prefix - * \param number input phone number - * \param country_code_prefix whether we want a international or national phone number format - * \return canonized and formatted phone number - */ -gchar *call_full_number(const gchar *number, gboolean country_code_prefix) -{ - if (EMPTY_STRING(number)) { - return NULL; - } - - /* Skip numbers with leading '*' or '#' */ - if (number[0] == '*' || number[0] == '#') { - return g_strdup(number); - } - - /* Remove call-by-call (carrier preselect) prefix */ - number += call_by_call_prefix_length(number); - - /* Check if it is an international number */ - if (!strncmp(number, "00", 2)) { - gchar *out; - gchar *my_country_code; - - if (country_code_prefix) { - return g_strdup(number); - } - - my_country_code = router_get_country_code(profile_get_active()); - if (!strncmp(number + 2, my_country_code, strlen(my_country_code))) { - out = g_strdup_printf("0%s", number + 4); - } else { - out = g_strdup(number); - } - - return out; - } - - return call_format_number(profile_get_active(), number, country_code_prefix ? NUMBER_FORMAT_INTERNATIONAL : NUMBER_FORMAT_NATIONAL); -} diff -Nru roger-router-1.8.14/libroutermanager/call.h roger-router-2.1.6/libroutermanager/call.h --- roger-router-1.8.14/libroutermanager/call.h 2015-11-14 23:45:51.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/call.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,78 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_CALL_H -#define LIBROUTERMANAGER_CALL_H - -#include -#include - -G_BEGIN_DECLS - -/** Supported call types */ -enum { - CALL_TYPE_ALL, - CALL_TYPE_INCOMING, - CALL_TYPE_MISSED, - CALL_TYPE_OUTGOING, - CALL_TYPE_VOICE, - CALL_TYPE_FAX, - CALL_TYPE_FAX_REPORT, - CALL_TYPE_RECORD, - CALL_TYPE_BLOCKED -}; - -/* current number format */ -enum number_format { - NUMBER_FORMAT_UNKNOWN, - NUMBER_FORMAT_LOCAL, - NUMBER_FORMAT_NATIONAL, - NUMBER_FORMAT_INTERNATIONAL, - NUMBER_FORMAT_INTERNATIONAL_PLUS -}; - -struct call { - gint type; - gchar *date_time; - gchar *duration; - - struct contact *remote; - struct contact *local; - - /* Private (e.g. original filename) */ - gchar *priv; -}; - -struct call_by_call_entry { - gchar *country_code; - gchar *prefix; - gint prefix_length; -}; - -GSList *call_add(GSList *journal, gint type, const gchar *date_time, const gchar *remote_name, const gchar *remote_number, const gchar *local_name, const gchar *local_number, const gchar *duration, gpointer priv); -void call_free(gpointer data); -gchar *call_scramble_number(const gchar *number); -gchar *call_full_number(const gchar *number, gboolean country_code_prefix); -gint call_sort_by_date(gconstpointer a, gconstpointer b); -gchar *call_format_number(struct profile *profile, const gchar *number, enum number_format output_format); -gchar *call_canonize_number(const gchar *number); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/connection.c roger-router-2.1.6/libroutermanager/connection.c --- roger-router-1.8.14/libroutermanager/connection.c 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/connection.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,127 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include - -#include - -#include - -/** Global connect list pointer */ -static GSList *connection_list = NULL; - -/** - * \brief Add connection structure to connect list - * \param id connection id - */ -struct connection *connection_add_call(gint id, gint type, const gchar *local_number, const gchar *remote_number) -{ - struct connection *connection = g_slice_new0(struct connection); - gchar *scramble_local; - gchar *scramble_remote; - - connection->id = id; - connection->type = type; - connection->local_number = g_strdup(local_number); - connection->remote_number = g_strdup(remote_number); - - scramble_local = call_scramble_number(connection->local_number); - scramble_remote = call_scramble_number(connection->remote_number); - - g_debug("Adding connection: type %d, local %s, remote %s", connection->type, scramble_local, scramble_remote); - - g_free(scramble_local); - g_free(scramble_remote); - - connection_list = g_slist_append(connection_list, connection); - - return connection; -} - -/** - * \brief Find connection entry by id - * \param id connection id - * \return connection pointer or NULL on error - */ -struct connection *connection_find_by_id(gint id) -{ - GSList *list = connection_list; - struct connection *connection; - - while (list) { - connection = list->data; - - if (connection->id == id) { - return connection; - } - - list = list->next; - } - - return NULL; -} - -/** - * \brief Find connection entry by number - * \param remote_number connection number - * \return connection pointer or NULL on error - */ -struct connection *connection_find_by_number(const gchar *remote_number) -{ - GSList *list = connection_list; - struct connection *connection; - - while (list) { - connection = list->data; - - if (!strcmp(connection->remote_number, remote_number)) { - return connection; - } - - list = list->next; - } - - return NULL; -} - -/** - * \brief Remove connection from connection list - * \param connection connection pointer - */ -void connection_remove(struct connection *connection) -{ - g_assert(connection_list != NULL); - g_assert(connection != NULL); - - connection_list = g_slist_remove(connection_list, connection); - g_free(connection->local_number); - g_free(connection->remote_number); - - g_slice_free(struct connection, connection); -} - -/** - * \brief Set connection type - * \param connection connection pointer - * \param type additional connection type to add - */ -void connection_set_type(struct connection *connection, gint type) -{ - connection->type |= type; -} diff -Nru roger-router-1.8.14/libroutermanager/connection.h roger-router-2.1.6/libroutermanager/connection.h --- roger-router-1.8.14/libroutermanager/connection.h 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/connection.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,58 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_CONNECTION_H -#define LIBROUTERMANAGER_CONNECTION_H - -#include - -G_BEGIN_DECLS - -#define CONNECTION_TYPE_INCOMING 0x01 -#define CONNECTION_TYPE_OUTGOING 0x02 -#define CONNECTION_TYPE_CONNECT 0x04 -#define CONNECTION_TYPE_DISCONNECT 0x08 -#define CONNECTION_TYPE_MISSED (CONNECTION_TYPE_INCOMING | CONNECTION_TYPE_DISCONNECT) - -/** connection structure */ -struct connection { - /* Unique ID */ - guint id; - /* Type */ - guchar type; - /* Local number */ - gchar *local_number; - /* Remote number */ - gchar *remote_number; - /* Notification widget */ - void *notification; - /* Private data */ - void *priv; -}; - -struct connection *connection_add_call(gint id, gint type, const gchar *local_number, const gchar *remote_number); -struct connection *connection_find_by_id(gint id); -struct connection *connection_find_by_number(const gchar *number); -void connection_set_type(struct connection *connection, gint type); -void connection_remove(struct connection *connection); -void connection_ignore(struct connection *connection); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/contact.c roger-router-2.1.6/libroutermanager/contact.c --- roger-router-1.8.14/libroutermanager/contact.c 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/contact.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,149 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include - -#include - -#include -#include -#include - -void contact_copy(struct contact *src, struct contact *dst) -{ - dst->name = g_strdup(src->name); - - if (src->image_len && src->image) { - dst->image_len = src->image_len; - dst->image = g_malloc(dst->image_len); - memcpy(dst->image, src->image, dst->image_len); - } else { - dst->image = NULL; - dst->image_len = 0; - } - - if (src->numbers) { - dst->numbers = g_slist_copy(src->numbers); - } else { - dst->numbers = NULL; - } - - if (src->addresses) { - dst->addresses = g_slist_copy(src->addresses); - } else { - dst->addresses = NULL; - } - - if (src->number) { - dst->number = g_strdup(src->number); - } - - if (src->company) { - dst->company = g_strdup(src->company); - } else { - dst->company = NULL; - } - if (src->street) { - dst->street = g_strdup(src->street); - } else { - dst->street = NULL; - } - if (src->zip) { - dst->zip = g_strdup(src->zip); - } else { - dst->zip = NULL; - } - if (src->city) { - dst->city = g_strdup(src->city); - } else { - dst->city = NULL; - } - - dst->priv = src->priv; -} - -struct contact *contact_dup(struct contact *src) -{ - struct contact *dst = g_slice_new(struct contact); - - contact_copy(src, dst); - - return dst; -} - -gint contact_name_compare(gconstpointer a, gconstpointer b) -{ - struct contact *contact_a = (struct contact *)a; - struct contact *contact_b = (struct contact *)b; - - return strcasecmp(contact_a->name, contact_b->name); -} - -struct contact *contact_find_by_number(gchar *number) -{ - struct contact *contact = g_slice_new0(struct contact); - GSList *numbers; - GSList *addresses; - int type = -1; - - /** Ask for contact information */ - contact->number = number; - emit_contact_process(contact); - - /* Depending on the number set the active address */ - for (numbers = contact->numbers; numbers != NULL; numbers = numbers->next) { - struct phone_number *phone_number = numbers->data; - - if (!strcmp(number, phone_number->number)) { - type = phone_number->type; - break; - } - } - - if (type == -1) { - return contact; - } - - switch (type) { - case PHONE_NUMBER_HOME: - case PHONE_NUMBER_FAX_HOME: - case PHONE_NUMBER_MOBILE: - default: - type = 0; - break; - case PHONE_NUMBER_WORK: - case PHONE_NUMBER_FAX_WORK: - case PHONE_NUMBER_PAGER: - type = 1; - break; - } - - for (addresses = contact->addresses; addresses != NULL; addresses = addresses->next) { - struct contact_address *contact_address = addresses->data; - - if (contact_address->type == type) { - contact->street = contact_address->street; - contact->city = contact_address->city; - contact->zip = contact_address->zip; - break; - } - } - - return contact; -} diff -Nru roger-router-1.8.14/libroutermanager/contact.h roger-router-2.1.6/libroutermanager/contact.h --- roger-router-1.8.14/libroutermanager/contact.h 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/contact.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,70 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_CONTACT_H -#define LIBROUTERMANAGER_CONTACT_H - -#include - -G_BEGIN_DECLS - -struct contact_address { - gint type; - gchar *street; - gchar *zip; - gchar *city; -}; - -struct contact { - /* Name */ - gchar *name; - /* Picture */ - gpointer image; - /* Picture len */ - gsize image_len; - /* Picture URI for online services */ - gchar *image_uri; - -#if 1 - /* currently active number */ - gchar *number; - gchar *company; - gchar *street; - gchar *zip; - gchar *city; - gboolean lookup; -#endif - - /* Phone numbers */ - GSList *numbers; - /* Addresses */ - GSList *addresses; - - /* Private data */ - gpointer priv; -}; - -void contact_copy(struct contact *src, struct contact *dst); -struct contact *contact_dup(struct contact *src); -gint contact_name_compare(gconstpointer a, gconstpointer b); -struct contact *contact_find_by_number(gchar *number); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/csv.c roger-router-2.1.6/libroutermanager/csv.c --- roger-router-1.8.14/libroutermanager/csv.c 2015-11-14 23:54:37.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/csv.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,221 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -/** - * \TODO: Split general csv function and routermanager journal functions - */ - -#include -#include -#include - -#include - -#include -#include -#include -#include - -#include - -/** This is our private header, not the one used by the router! */ -#define ROUTERMANAGER_JOURNAL_HEADER "Typ;Datum;Name;Rufnummer;Nebenstelle;Eigene Rufnummer;Dauer" - -/** - * \brief Parse data as csv - * \param data raw data to parse - * \param header expected header line - * \param csv_parse_line function pointer - * \param ptr user pointer - * \return user pointer - */ -gpointer csv_parse_data(const gchar *data, const gchar *header, csv_parse_line_func csv_parse_line, gpointer ptr) -{ - gint index = 0; - gchar sep[2]; - gchar **lines = NULL; - gchar *pos; - gpointer data_ptr = ptr; - - /* Safety check */ - g_assert(data != NULL); - - /* Split data to lines */ - lines = g_strsplit(data, "\n", -1); - - /* Check for separator */ - pos = g_strstr_len(lines[index], -1, "sep="); - if (pos) { - sep[0] = pos[4]; - index++; - } else { - sep[0] = ','; - } - sep[1] = '\0'; - - /* Check header */ - if (strncmp(lines[index], header, strlen(header))) { - g_debug("Unknown CSV-Header: '%s'", lines[index]); - data_ptr = NULL; - goto end; - } - - /* Parse each line, split it and use parse function */ - while (lines[++index] != NULL) { - gchar **split = g_strsplit(lines[index], sep, -1); - - data_ptr = csv_parse_line(data_ptr, split); - - g_strfreev(split); - } - -end: - g_strfreev(lines); - - /* Return ptr */ - return data_ptr; -} - -/** - * \brief Save journal to local storage - * \param journal journal list pointer - * \param filename file name to store journal to - * \return TRUE on success, otherwise FALSE - */ -gboolean csv_save_journal_as(GSList *journal, gchar *file_name) -{ - GSList *list; - struct call *call; - FILE *file; - - /* Open output file */ - file = fopen(file_name, "wb+"); - - if (!file) { - g_debug("Could not open journal output file %s", file_name); - return FALSE; - } - - fprintf(file, "sep=;\n"); - fprintf(file, ROUTERMANAGER_JOURNAL_HEADER); - fprintf(file, "\n"); - - for (list = journal; list; list = list->next) { - call = list->data; - - if (call->type != CALL_TYPE_INCOMING && call->type != CALL_TYPE_OUTGOING && call->type != CALL_TYPE_MISSED && call->type != CALL_TYPE_BLOCKED) { - continue; - } - - gchar *name = g_convert(call->remote->name, -1, "iso-8859-1", "UTF-8", NULL, NULL, NULL); - fprintf(file, "%d;%s;%s;%s;%s;%s;%s\n", - call->type, - call->date_time, - name, - call->remote->number, - call->local->name, - call->local->number, - call->duration); - g_free(name); - } - - fclose(file); - - return TRUE; -} - -/** - * \brief Save journal to local storage - * \param journal journal list pointer - * \return TRUE on success, otherwise FALSE - */ -gboolean csv_save_journal(GSList *journal) -{ - struct profile *profile = profile_get_active(); - gchar *dir; - gchar *file_name; - gboolean ret; - - /* Build directory name and create it (if needed) */ - dir = g_build_filename(g_get_user_data_dir(), "routermanager", profile->name, NULL); - g_mkdir_with_parents(dir, 0700); - - file_name = g_build_filename(dir, "journal.csv", NULL); - - ret = csv_save_journal_as(journal, file_name); - - g_free(dir); - g_free(file_name); - - return ret; -} - -/** - * \brief Parse routermanager - * \param ptr pointer to journal - * \param split splitted line - * \return pointer to journal with attached call line - */ -static inline gpointer csv_parse_routermanager(gpointer ptr, gchar **split) -{ - GSList *list = ptr; - - if (g_strv_length(split) == 7) { - list = call_add(list, atoi(split[0]), split[1], split[2], split[3], split[4], split[5], split[6], NULL); - } - - return list; -} - -/** - * \brief Parse journal data as csv - * \param data raw data to parse - * \return call list - */ -GSList *csv_parse_journal_data(GSList *list, const gchar *data) -{ - list = csv_parse_data(data, ROUTERMANAGER_JOURNAL_HEADER, csv_parse_routermanager, list); - - /* Return call list */ - return list; -} - -/** - * \brief Load saved journal - * \param journal list pointer to fill - * \return filled journal list - */ -GSList *csv_load_journal(GSList *journal) -{ - gchar *file_name; - gchar *file_data; - GSList *list = journal; - struct profile *profile = profile_get_active(); - - file_name = g_build_filename(g_get_user_data_dir(), "routermanager", profile->name, "journal.csv", NULL); - file_data = file_load(file_name, NULL); - g_free(file_name); - - if (file_data) { - list = csv_parse_journal_data(journal, file_data); - g_free(file_data); - } - - return list; -} diff -Nru roger-router-1.8.14/libroutermanager/csv.h roger-router-2.1.6/libroutermanager/csv.h --- roger-router-1.8.14/libroutermanager/csv.h 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/csv.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,34 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_CSV_H -#define LIBROUTERMANAGER_CSV_H - -G_BEGIN_DECLS - -typedef gpointer (*csv_parse_line_func)(gpointer ptr, gchar **split); - -gpointer csv_parse_data(const gchar *data, const gchar *header, csv_parse_line_func csv_parse_line, gpointer ptr); -gboolean csv_save_journal_as(GSList *journal, gchar *file_name); -gboolean csv_save_journal(GSList *journal); -GSList *csv_load_journal(GSList *journal); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/data/Makefile.am roger-router-2.1.6/libroutermanager/data/Makefile.am --- roger-router-1.8.14/libroutermanager/data/Makefile.am 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/data/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,9 +0,0 @@ -#This has to be defined, because GSETTINGS_CHECK_RULE adds to it -MOSTLYCLEANFILES = - -@INTLTOOL_SCHEMAS_RULE@ - -gsettings_SCHEMAS = org.tabos.routermanager.gschema.xml -@GSETTINGS_RULES@ - -EXTRA_DIST = $(gsettings_SCHEMAS) diff -Nru roger-router-1.8.14/libroutermanager/data/Makefile.in roger-router-2.1.6/libroutermanager/data/Makefile.in --- roger-router-1.8.14/libroutermanager/data/Makefile.in 2015-12-10 21:33:43.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/data/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,529 +0,0 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2014 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@ -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@ -subdir = libroutermanager/data -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ - $(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)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -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 = -SOURCES = -DIST_SOURCES = -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -ALL_LINGUAS = @ALL_LINGUAS@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@ -APPINDICATOR_LIBS = @APPINDICATOR_LIBS@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAPI_CFLAGS = @CAPI_CFLAGS@ -CAPI_LIBS = @CAPI_LIBS@ -CATALOGS = @CATALOGS@ -CATOBJEXT = @CATOBJEXT@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DATADIRNAME = @DATADIRNAME@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -EBOOK_CFLAGS = @EBOOK_CFLAGS@ -EBOOK_LIBS = @EBOOK_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXTRA_CFLAGS = @EXTRA_CFLAGS@ -EXTRA_LIBS = @EXTRA_LIBS@ -FAX_SPOOLER_CFLAGS = @FAX_SPOOLER_CFLAGS@ -FAX_SPOOLER_LIBS = @FAX_SPOOLER_LIBS@ -FGREP = @FGREP@ -GDATA_CFLAGS = @GDATA_CFLAGS@ -GDATA_LIBS = @GDATA_LIBS@ -GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMOFILES = @GMOFILES@ -GMSGFMT = @GMSGFMT@ -GREP = @GREP@ -GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@ -GSTREAMER1_CFLAGS = @GSTREAMER1_CFLAGS@ -GSTREAMER1_LIBS = @GSTREAMER1_LIBS@ -GTK_CFLAGS = @GTK_CFLAGS@ -GTK_LIBS = @GTK_LIBS@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INSTOBJEXT = @INSTOBJEXT@ -INTLLIBS = @INTLLIBS@ -INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ -INTLTOOL_MERGE = @INTLTOOL_MERGE@ -INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ -INTLTOOL_PERL = @INTLTOOL_PERL@ -INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ -INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ -INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ -INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ -INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ -INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ -KWALLET_CFLAGS = @KWALLET_CFLAGS@ -KWALLET_LIBS = @KWALLET_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@ -LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@ -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@ -MKINSTALLDIRS = @MKINSTALLDIRS@ -MSGFMT = @MSGFMT@ -MSGFMT_OPTS = @MSGFMT_OPTS@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OS_CFLAGS = @OS_CFLAGS@ -OS_LIBS = @OS_LIBS@ -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@ -PEAS_CFLAGS = @PEAS_CFLAGS@ -PEAS_GTK_CFLAGS = @PEAS_GTK_CFLAGS@ -PEAS_GTK_LIBS = @PEAS_GTK_LIBS@ -PEAS_LIBS = @PEAS_LIBS@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POFILES = @POFILES@ -PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@ -PORTAUDIO_LIBS = @PORTAUDIO_LIBS@ -POSUB = @POSUB@ -PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ -PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ -PULSEAUDIO_CFLAGS = @PULSEAUDIO_CFLAGS@ -PULSEAUDIO_LIBS = @PULSEAUDIO_LIBS@ -RANLIB = @RANLIB@ -ROGER_VERSION_MAJOR = @ROGER_VERSION_MAJOR@ -ROGER_VERSION_MICRO = @ROGER_VERSION_MICRO@ -ROGER_VERSION_MINOR = @ROGER_VERSION_MINOR@ -SECRET_CFLAGS = @SECRET_CFLAGS@ -SECRET_LIBS = @SECRET_LIBS@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SOUP_CFLAGS = @SOUP_CFLAGS@ -SOUP_LIBS = @SOUP_LIBS@ -SPANDSP_CFLAGS = @SPANDSP_CFLAGS@ -SPANDSP_LIBS = @SPANDSP_LIBS@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -WINDRES = @WINDRES@ -XGETTEXT = @XGETTEXT@ -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@ -found_cc = @found_cc@ -gsettingsschemadir = @gsettingsschemadir@ -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@ -intltool__v_merge_options_ = @intltool__v_merge_options_@ -intltool__v_merge_options_0 = @intltool__v_merge_options_0@ -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@ -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@ - -#This has to be defined, because GSETTINGS_CHECK_RULE adds to it -MOSTLYCLEANFILES = -gsettings_SCHEMAS = org.tabos.routermanager.gschema.xml -EXTRA_DIST = $(gsettings_SCHEMAS) -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libroutermanager/data/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign libroutermanager/data/Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - - -distdir: $(DISTFILES) - @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 -check-am: all-am -check: check-am -all-am: Makefile -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -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: - -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) - -clean-generic: - -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) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir 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-man \ - install-pdf install-pdf-am install-ps install-ps-am \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags-am uninstall uninstall-am - -.PRECIOUS: Makefile - - -@INTLTOOL_SCHEMAS_RULE@ -@GSETTINGS_RULES@ - -# 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: diff -Nru roger-router-1.8.14/libroutermanager/data/org.tabos.routermanager.gschema.xml roger-router-2.1.6/libroutermanager/data/org.tabos.routermanager.gschema.xml --- roger-router-1.8.14/libroutermanager/data/org.tabos.routermanager.gschema.xml 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/data/org.tabos.routermanager.gschema.xml 1970-01-01 00:00:00.000000000 +0000 @@ -1,255 +0,0 @@ - - - - [] - - - - - - '' - - - '' - - - '' - - - '' - - - 'ftpuser' - - - '' - - - '' - - - '' - - - '' - - - '' - - - '' - - - 0 - - - '' - - - ['callmonitor', 'areacodes_global', 'reverselookup'] - - - - '' - - - - - [] - - - - - '' - - - '' - - - '' - - - - - '' - - - '' - - - '' - - - '' - - - '' - - - '' - - - '' - - - '' - - - - - '' - - - '' - - - '' - - - '' - - - '' - - - '' - - - - - '' - - - '' - - - '' - - - '' - - - '' - - - '' - - - '' - - - '' - - - '' - - - '' - - - - - 'Roger Router' - - - '' - - - false - - - 0 - - - true - - - '' - - - '' - - - 2 - - - 4 - - - true - - - '' - - - false - - - 0 - - - - - '' - - - 4 - - - '' - - - - false - - - - - 0 - - - - - 'PulseAudio' - - - '' - - - '' - - - - - [] - - - - - '' - - - - - '' - - - - - - '' - - - '' - - - '' - - - 0 - - - [] - - - diff -Nru roger-router-1.8.14/libroutermanager/fax_phone.c roger-router-2.1.6/libroutermanager/fax_phone.c --- roger-router-1.8.14/libroutermanager/fax_phone.c 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/fax_phone.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,242 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -/** - * TODO: - * - get rid of active_capi_connection? - * - merge connection-XXXX signals - */ - -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include - -#define RM_ERROR - -static struct session *session = NULL; -static gconstpointer net_event; - -struct capi_connection *active_capi_connection = NULL; - -/** - * \brief Dial number via fax - * \param tiff tiff file name - * \param trg_no target number - * \param suppress suppress number flag - * \return capi connection pointer - */ -struct capi_connection *fax_dial(gchar *tiff, const gchar *trg_no, gboolean suppress) -{ - struct profile *profile = profile_get_active(); - gint modem = g_settings_get_int(profile->settings, "fax-bitrate"); - gboolean ecm = g_settings_get_boolean(profile->settings, "fax-ecm"); - gint controller = g_settings_get_int(profile->settings, "fax-controller") + 1; - gint cip = g_settings_get_int(profile->settings, "fax-cip"); - const gchar *src_no = g_settings_get_string(profile->settings, "fax-number"); - const gchar *header = g_settings_get_string(profile->settings, "fax-header"); - const gchar *ident = g_settings_get_string(profile->settings, "fax-ident"); - struct capi_connection *connection = NULL; - gchar *target; - - if (EMPTY_STRING(src_no)) { - emit_message(0, "Source MSN not set, cannot dial"); - return NULL; - } - - target = call_canonize_number(trg_no); - - if (cip == 1) { - cip = FAX_CIP; - g_debug("Using 'ISDN Fax' id"); - } else { - cip = SPEECH_CIP; - g_debug("Using 'Analog Fax' id"); - } - - if (g_settings_get_boolean(profile->settings, "fax-sff")) { - connection = sff_send(tiff, modem, ecm, controller, src_no, target, ident, header, suppress); - } else { - connection = fax_send(tiff, modem, ecm, controller, cip, src_no, target, ident, header, suppress); - } - g_free(target); - - return connection; -} - -/** - * \brief Dial number via phone - * \param trg_no target number - * \param suppress suppress number flag - * \return capi connection pointer - */ -struct capi_connection *phone_dial(const gchar *trg_no, gboolean suppress) -{ - struct profile *profile = profile_get_active(); - gint controller = g_settings_get_int(profile->settings, "phone-controller") + 1; - const gchar *src_no = g_settings_get_string(profile->settings, "phone-number"); - struct capi_connection *connection = NULL; - gchar *target; - - if (EMPTY_STRING(src_no)) { - emit_message(0, "Source MSN not set, cannot dial"); - return NULL; - } - - target = call_canonize_number(trg_no); - - connection = phone_call(controller, src_no, target, suppress); - - g_free(target); - - return connection; -} - -/** - * \brief Connection ring handler - emit connection-established signal - * \param connection capi connection structure - */ -void connection_established(struct capi_connection *connection) -{ - emit_connection_established(connection); -} - -/** - * \brief Connection ring handler - emit connection-terminated signal - * \param connection capi connection structure - */ -void connection_terminated(struct capi_connection *connection) -{ - emit_connection_terminated(connection); -} - -/** - * \brief Connection ring handler - * \param connection capi connection structure - */ -void connection_ring(struct capi_connection *capi_connection) -{ - struct connection *connection; - - active_capi_connection = capi_connection; - - g_debug("connection_ring() src %s trg %s", capi_connection->source, capi_connection->target); - connection = connection_find_by_number(capi_connection->source); -#if ACCEPT_INTERN - if (!connection && !strncmp(capi_connection->source, "**", 2)) { - connection = connection_add_call(981, CONNECTION_TYPE_INCOMING, capi_connection->source, capi_connection->target); - } -#endif - - g_debug("connection_ring() connection %p", connection); - if (connection) { - g_debug("connection_ring() set capi_connection %p", capi_connection); - connection->priv = capi_connection; - - emit_connection_notify(connection); - } -} - -/** - * \brief Connection code handler - * \param connection capi connection structure - * \param code dtmf code - */ -void connection_code(struct capi_connection *connection, gint code) -{ - g_debug("connection_code(): code 0x%x", code); -} - -/** - * \brief Connection status handlers - emits connection-status signal - * \param connection capi connection structure - * \param status status code - */ -void connection_status(struct capi_connection *connection, gint status) -{ - emit_connection_status(status, connection); -} - -struct session_handlers session_handlers = { - audio_open, /* audio_open */ - audio_read, /* audio_read */ - audio_write, /* audio_write */ - audio_close, /* audio_close */ - - emit_connection_established, /* connection_established */ - emit_connection_terminated, /* connection_terminated */ - connection_ring, /* connection_ring */ - connection_code, /* connection_code */ - connection_status, /* connection_status */ -}; - -/** - * \brief Faxophone connect - * \param user_data faxophone plugin pointer - * \return error code - */ -gboolean faxophone_connect(gpointer user_data) -{ - struct profile *profile = profile_get_active(); - gboolean retry = TRUE; - -again: - session = faxophone_init(&session_handlers, router_get_host(profile), g_settings_get_int(profile->settings, "phone-controller") + 1); - if (!session && retry) { - /* Maybe the port is closed, try to activate it and try again */ - router_dial_number(profile, PORT_ISDN1, "#96*3*"); - g_usleep(G_USEC_PER_SEC * 2); - retry = FALSE; - goto again; - } - - return session != NULL; -} - -/** - * \brief Network disconnect callback - * \param user_data faxophone plugin pointer - * \return TRUE - */ -gboolean faxophone_disconnect(gpointer user_data) -{ - faxophone_close(TRUE); - return TRUE; -} - -/** - * \brief Init faxophone support - */ -void faxophone_setup(void) -{ - net_event = net_add_event(faxophone_connect, faxophone_disconnect, NULL); -} diff -Nru roger-router-1.8.14/libroutermanager/fax_phone.h roger-router-2.1.6/libroutermanager/fax_phone.h --- roger-router-1.8.14/libroutermanager/fax_phone.h 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/fax_phone.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,33 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_FAX_PHONE_H -#define LIBROUTERMANAGER_FAX_PHONE_H - -G_BEGIN_DECLS - -extern struct capi_connection *active_capi_connection; - -void faxophone_setup(void); -struct capi_connection *fax_dial(gchar *tiff, const gchar *number, gboolean suppress); -struct capi_connection *phone_dial(const gchar *trg_no, gboolean suppress); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/fax_printer.h roger-router-2.1.6/libroutermanager/fax_printer.h --- roger-router-1.8.14/libroutermanager/fax_printer.h 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/fax_printer.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,31 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_FAX_PRINTER_H -#define LIBROUTERMANAGER_FAX_PRINTER_H - -G_BEGIN_DECLS - -#include - -gboolean fax_printer_init(GError **error); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/fax_server.c roger-router-2.1.6/libroutermanager/fax_server.c --- roger-router-1.8.14/libroutermanager/fax_server.c 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/fax_server.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,138 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include - -#include -#include - -#include - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include - -#ifdef USE_PRINTER_SERVER - -#define BUFFER_LENGTH 1024 - -gpointer print_server_thread(gpointer data) -{ - GSocket *server = data; - GSocket *sock; - GError *error = NULL; - gsize len; - gchar *file_name; - char buffer[BUFFER_LENGTH]; - ssize_t write_result; - ssize_t written; - - while (TRUE) { - sock = g_socket_accept(server, NULL, &error); - g_assert_no_error(error); - - file_name = g_strdup_printf("%s/fax-XXXXXX", g_get_tmp_dir()); - int file_id = g_mkstemp(file_name); - - if (file_id == -1) { - g_warning("Can't open temporary file"); - continue; - } - - g_debug("file: %s (%d)", file_name, file_id); - - do { - len = g_socket_receive(sock, buffer, BUFFER_LENGTH, NULL, &error); - - if (len > 0) { - written = 0; - do { - write_result = write(file_id, buffer + written, len); - if (write_result > 0) { - written += write_result; - } - } while (len != written && (write_result != -1 || errno == EINTR)); - } - } while (len > 0); - - if (len == 0) { - g_debug("Print job received on socket"); - - emit_fax_process(file_name); - } - - g_socket_close(sock, &error); - g_assert_no_error(error); - } - - return NULL; -} - -gboolean fax_printer_init(GError **error) -{ - GSocket *socket = NULL; - GInetAddress *inet_address = NULL; - GSocketAddress *sock_address = NULL; - GError *fax_error = NULL; - - socket = g_socket_new(G_SOCKET_FAMILY_IPV4, G_SOCKET_TYPE_STREAM, G_SOCKET_PROTOCOL_TCP, &fax_error); - if (socket == NULL) { - g_debug("Could not create socket. Error: '%s'", fax_error->message); - g_set_error(error, RM_ERROR, RM_ERROR_FAX, "Could not create socket. Error: '%s'", fax_error ? fax_error->message : ""); - g_error_free(fax_error); - return FALSE; - } - - inet_address = g_inet_address_new_from_string("127.0.0.1"); - - sock_address = g_inet_socket_address_new(inet_address, 9100); - if (sock_address == NULL) { - g_debug("Could not create sock address on port 9100"); - g_object_unref(socket); - g_set_error(error, RM_ERROR, RM_ERROR_FAX, "%s", "Could not create sock address on port 9100"); - return FALSE; - } - - if (g_socket_bind(socket, sock_address, TRUE, &fax_error) == FALSE) { - g_debug("Could not bind to socket. Error: %s", fax_error->message); - g_set_error(error, RM_ERROR, RM_ERROR_FAX, "Could not bind to socket. Error: %s", fax_error->message); - g_error_free(fax_error); - g_object_unref(socket); - return FALSE; - } - - if (g_socket_listen(socket, &fax_error) == FALSE) { - g_debug("Could not listen on socket. Error: %s", fax_error->message); - g_set_error(error, RM_ERROR, RM_ERROR_FAX, "Could not listen on socket. Error: %s", fax_error->message); - g_error_free(fax_error); - g_object_unref(socket); - return FALSE; - } - - g_debug("Fax Server running on port 9100"); - - g_thread_new("printserver", print_server_thread, socket); - - return TRUE; -} - -#endif diff -Nru roger-router-1.8.14/libroutermanager/fax_spooler.c roger-router-2.1.6/libroutermanager/fax_spooler.c --- roger-router-1.8.14/libroutermanager/fax_spooler.c 2015-11-21 23:00:46.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/fax_spooler.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,200 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include - -#include -#include - -#include - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include -#include - -#ifdef USE_PRINTER_SPOOLER -#define SPOOLER_DIR "/var/spool/roger" - -#define SPOOLER_DEBUG 1 - -#ifdef SPOOLER_DEBUG -/** translations from event to text for file monitor events */ -struct event_translate { - GFileMonitorEvent event; - gchar *text; -}; - -/** text values of file monitor events */ -struct event_translate event_translation_table[] = { - {G_FILE_MONITOR_EVENT_CHANGED , "file changed"}, - {G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT, "file changes finished"}, - {G_FILE_MONITOR_EVENT_DELETED, "file deleted"}, - {G_FILE_MONITOR_EVENT_CREATED, "file created"}, - {G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED, "file attrbutes changed"}, - {G_FILE_MONITOR_EVENT_PRE_UNMOUNT, "file system about to be unmounted"}, - {G_FILE_MONITOR_EVENT_UNMOUNTED, "file system unmounted"}, - {G_FILE_MONITOR_EVENT_MOVED, "file moved"}, -}; - -static const char *event_to_text(GFileMonitorEvent event) -{ - int index; - - for (index = 0; index < sizeof(event_translation_table) / sizeof(event_translation_table[0]); index++) { - if (event_translation_table[index].event == event) { - return event_translation_table[index].text; - } - } - - return "Undefined event"; -} -#endif - -/** - * \brief Check if given file name ends with the requested extension - * \param file file name - * \param ext file extension - * \return TRUE if file ends with given extension or FALSE if not - */ -gboolean has_file_extension(const char *file, const char *ext) -{ - int len, ext_len; - - if (!file || *file == '\0' || !ext) { - return FALSE; - } - - ext_len = strlen(ext); - len = strlen(file) - ext_len; - - if (len < 0) { - return FALSE; - } - - return (strncmp(file + len, ext, ext_len) == 0); -} - -/** - * \brief Fax spooler callback for the users own spool directory - * Monitors the users fax spooler directory for changes and if a new final file is created emit fax process signal - * \param monitor file monitor - * \param file file structure - * \param other_file unused file structure - * \param event_type file monitor event - * \param user_data unused pointer - */ -static void fax_spooler_new_file_cb(GFileMonitor *monitor, GFile *file, GFile *other_file, GFileMonitorEvent event_type, gpointer user_data) -{ - GFileType type; - gchar *file_name = NULL; - - g_debug("fax_spooler_new_file_cb(): event type: %d", event_type); -#ifdef SPOOLER_DEBUG - g_debug("=> %s", event_to_text(event_type)); -#endif - if (event_type != G_FILE_MONITOR_EVENT_CREATED) { - return; - } - - file_name = g_file_get_path(file); - g_assert(file_name != NULL); - - type = g_file_query_file_type(file, G_FILE_QUERY_INFO_NONE, NULL); - g_debug("%s(): type: %d", __FUNCTION__, type); - if (type != G_FILE_TYPE_REGULAR) { - return; - } - - /* Sort out invalid files */ - if (has_file_extension(file_name, ".tmp") || has_file_extension(file_name, ".tif") || has_file_extension(file_name, ".sff")) { - /* Skip it */ - goto end; - } - - g_debug("Print job received on spooler"); - emit_fax_process(file_name); - -end: - g_free(file_name); -} - -/** - * Create file monitor for the users own spooler directory - * - */ -static gboolean fax_setup_file_monitor(const gchar *dir_name, GError **error) -{ - GFileMonitor *file_monitor = NULL; - GFile *file = NULL; - gboolean ret; - const gchar *user_name = g_get_user_name(); - g_assert(user_name != NULL); - -#ifdef SPOOLER_DEBUG - g_debug("Setting file monitor to '%s'", dir_name); -#endif - - /* Create GFile for GFileMonitor */ - file = g_file_new_for_path(dir_name); - /* Create file monitor for spool directory */ - file_monitor = g_file_monitor_directory(file, 0, NULL, error); - g_object_unref(file); - if (file_monitor) { - /* Set callback for file monitor */ - g_signal_connect(file_monitor, "changed", G_CALLBACK(fax_spooler_new_file_cb), NULL); - ret = TRUE; - } else { - g_debug("Error occured creating new file monitor\n"); - g_debug("Message: %s\n", (*error)->message); - g_set_error(error, RM_ERROR, RM_ERROR_FAX, "Spooler directory %s does not exists!", dir_name); - ret = FALSE; - } - return ret; -} - -/** - * \brief Initialize new printer spool queue - */ -gboolean fax_printer_init(GError **error) -{ - GDir *dir; - GError *file_error = NULL; - - /* Check if spooler is present */ - if (!g_file_test(SPOOLER_DIR, G_FILE_TEST_IS_DIR)) { - g_debug("Spooler directory %s does not exist!", SPOOLER_DIR); - g_set_error(error, RM_ERROR, RM_ERROR_FAX, "Spooler directory %s does not exists!", SPOOLER_DIR); - return FALSE; - } - - dir = g_dir_open(SPOOLER_DIR, 0, &file_error); - if (!dir) { - g_debug("Could not access spooler directory. Is user in group fax?\n%s", file_error ? file_error->message : ""); - g_set_error(error, RM_ERROR, RM_ERROR_FAX, "Could not access spooler directory. Is user in group fax?\n%s", file_error ? file_error->message : ""); - return FALSE; - } - g_dir_close(dir); - - return fax_setup_file_monitor(SPOOLER_DIR, &file_error); -} -#endif diff -Nru roger-router-1.8.14/libroutermanager/file.c roger-router-2.1.6/libroutermanager/file.c --- roger-router-1.8.14/libroutermanager/file.c 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/file.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,95 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include - -#include - -#include - -/** - * \brief Save data to file - * \param file file name - * \param data data pointer - * \param len length of data - */ -void file_save(gchar *name, const gchar *data, gsize len) -{ - GFile *file = g_file_new_for_path(name); - GError *error = NULL; - GFileOutputStream *stream; - - if (len == -1) { - len = strlen(data); - } - - if (g_file_query_exists(file, NULL)) { - stream = g_file_replace(file, NULL, FALSE, G_FILE_CREATE_PRIVATE, NULL, &error); - } else { - stream = g_file_create(file, G_FILE_CREATE_PRIVATE, NULL, &error); - } - - g_object_unref(file); - - if (stream != NULL) { - g_output_stream_write(G_OUTPUT_STREAM(stream), data, len, NULL, NULL); - g_output_stream_flush(G_OUTPUT_STREAM(stream), NULL, NULL); - g_output_stream_close(G_OUTPUT_STREAM(stream), NULL, NULL); - - g_object_unref(stream); - } else { - g_warning("%s", error->message); - g_error_free(error); - } -} - -/** - * \brief Load file - * \param name file name - * \param size pointer to store length of data to - * \return file data pointer - */ -gchar *file_load(gchar *name, gsize *size) -{ - GFile *file; - GFileInfo *file_info; - goffset file_size; - gchar *data = NULL; - GFileInputStream *input_stream = NULL; - - file = g_file_new_for_path(name); - if (!g_file_query_exists(file, NULL)) { - return NULL; - } - - file_info = g_file_query_info(file, G_FILE_ATTRIBUTE_STANDARD_SIZE, G_FILE_QUERY_INFO_NONE, NULL, NULL); - file_size = g_file_info_get_size(file_info); - if (file_size) { - data = g_malloc0(file_size + 1); - input_stream = g_file_read(file, NULL, NULL); - - g_input_stream_read_all(G_INPUT_STREAM(input_stream), data, file_size, size, NULL, NULL); - - g_object_unref(input_stream); - } - g_object_unref(file_info); - g_object_unref(file); - - return data; -} diff -Nru roger-router-1.8.14/libroutermanager/file.h roger-router-2.1.6/libroutermanager/file.h --- roger-router-1.8.14/libroutermanager/file.h 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/file.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,30 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_FILE_H -#define LIBROUTERMANAGER_FILE_H - -G_BEGIN_DECLS - -void file_save(gchar *name, const gchar *data, gsize len); -gchar *file_load(gchar *name, gsize *size); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/filter.c roger-router-2.1.6/libroutermanager/filter.c --- roger-router-1.8.14/libroutermanager/filter.c 2015-12-08 08:54:19.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/filter.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,547 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -/** - * TODO: - * - add or- combination - */ - -#include - -#include -#include -#include -#include - -#include -#include -#include -#include -#include - -/** Internal filter list in memory */ -static GSList *filter_list = NULL; - -static inline gboolean filter_compare(struct filter_rule *rule, const gchar *compare) -{ - gboolean valid = FALSE; - - if (!rule->entry || !compare) { - return valid; - } - - switch (rule->sub_type) { - case FILTER_IS: - if (!strcmp(compare, rule->entry)) { - valid = TRUE; - } - break; - case FILTER_IS_NOT: - if (strcmp(compare, rule->entry)) { - valid = TRUE; - } - break; - case FILTER_STARTS_WITH: - if (!strncmp(compare, rule->entry, strlen(rule->entry))) { - valid = TRUE; - } - break; - case FILTER_CONTAINS: - if (g_strcasestr(compare, rule->entry)) { - valid = TRUE; - } - break; - default: - break; - } - - return valid; -} - -/** - * \brief Check if call structure matches filter rules - * \param filter compare filter - * \param call call structure - * \return TRUE on match, otherwise FALSE - */ -gboolean filter_rule_match(struct filter *filter, struct call *call) -{ - GSList *list; - gint result = 0; - gint dates = 0; - gint dates_valid = 0; - gboolean call_type = FALSE; - gboolean call_type_valid = FALSE; - gboolean remote_name = FALSE; - gboolean remote_name_valid = FALSE; - gboolean remote_number = FALSE; - gboolean remote_number_valid = FALSE; - gboolean local_number = FALSE; - gboolean local_number_valid = FALSE; - gboolean local_name = FALSE; - gboolean local_name_valid = FALSE; - - if (!filter) { - /* We have no filter, everything matches */ - return TRUE; - } - - /* Test each filter rule with the call structure */ - for (list = filter->rules; list != NULL; list = list->next) { - struct filter_rule *rule = list->data; - - switch (rule->type) { - case FILTER_CALL_TYPE: - /* Call type */ - call_type = TRUE; - - if (rule->sub_type == CALL_TYPE_ALL || rule->sub_type == call->type) { - call_type_valid = TRUE; - } - - if (filter->compare_or && call_type_valid) { - return TRUE; - } - - break; - case FILTER_DATE_TIME: { - /* Date/Time */ - gchar *number_a = rule->entry; - gchar *number_b = call->date_time; - gint ret = 0; - - if (!rule->entry) { - break; - } - - dates++; - - switch (rule->sub_type) { - case FILTER_IS: - /* Compare year */ - ret = strncmp(number_a + 6, number_b + 6, 2); - if (ret == 0) { - /* Compare month */ - ret = strncmp(number_a + 3, number_b + 3, 2); - if (ret == 0) { - /* Compare day */ - ret = strncmp(number_a, number_b, 2); - if (ret == 0) { - dates_valid++; - } - } - } - break; - case FILTER_IS_NOT: - /* Compare year */ - ret = strncmp(number_a + 6, number_b + 6, 2); - if (ret == 0) { - /* Compare month */ - ret = strncmp(number_a + 3, number_b + 3, 2); - if (ret == 0) { - /* Compare day */ - ret = strncmp(number_a, number_b, 2); - if (ret != 0) { - dates_valid++; - } - } else { - dates_valid++; - } - } else { - dates_valid++; - } - case FILTER_STARTS_WITH: - /* Compare year */ - ret = strncmp(number_a + 6, number_b + 6, 2); - if (ret >= 0) { - /* Compare month */ - ret = strncmp(number_a + 3, number_b + 3, 2); - if (ret >= 0) { - /* Compare day */ - ret = strncmp(number_a, number_b, 2); - if (ret < 0) { - dates_valid++; - } - } else { - dates_valid++; - } - } else { - dates_valid++; - } - case FILTER_CONTAINS: - /* Compare year */ - ret = strncmp(number_a + 6, number_b + 6, 2); - if (ret <= 0) { - /* Compare month */ - ret = strncmp(number_a + 3, number_b + 3, 2); - if (ret <= 0) { - /* Compare day */ - ret = strncmp(number_a, number_b, 2); - if (ret < 0) { - dates_valid++; - } - } else { - dates_valid++; - } - } else { - dates_valid++; - } - break; - } - - break; - } - case FILTER_REMOTE_NAME: - /* Remote name */ - remote_name = TRUE; - remote_name_valid = filter_compare(rule, call->remote->name); - break; - case FILTER_REMOTE_NUMBER: - /* Remote number */ - remote_number = TRUE; - remote_number_valid = filter_compare(rule, call->remote->number); - break; - case FILTER_LOCAL_NAME: - /* Local name */ - local_name = TRUE; - local_name_valid = filter_compare(rule, call->local->name); - break; - case FILTER_LOCAL_NUMBER: - /* Local number */ - local_number = TRUE; - local_number_valid = filter_compare(rule, call->local->number); - break; - default: - break; - } - } - - /* Setup result value */ - if (call_type_valid || !call_type) { - result |= 0x01; - } - - if ((dates && dates == dates_valid) || dates == 0) { - result |= 0x02; - } - - if (remote_name_valid || !remote_name) { - result |= 0x04; - } - if (remote_number_valid || !remote_number) { - result |= 0x08; - } - if (local_number_valid || !local_number) { - result |= 0x10; - } - if (local_name_valid || !local_name) { - result |= 0x20; - } - - /* Result check */ - return (result == 0x3F); -} - -/** - * \brief Sort filter by name - * \param a pointer to first filter - * \param b pointer to second filter - * \return result of strcmp - */ -gint filter_sort_by_name(gconstpointer a, gconstpointer b) -{ - struct filter *filter_a = (struct filter *)a; - struct filter *filter_b = (struct filter *)b; - - return strcmp(filter_a->name, filter_b->name); -} - -/** - * \brief Add new filter rule - * \param filter filter structure - * \param type type of filter - * \param sub_type sub type of filter - * \param entry ruleal entry - */ -void filter_rule_add(struct filter *filter, gint type, gint sub_type, gchar *entry) -{ - struct filter_rule *rule = g_slice_new(struct filter_rule); - - rule->type = type; - rule->sub_type = sub_type; - rule->entry = g_strdup(entry); - - filter->rules = g_slist_append(filter->rules, rule); -} - -/** - * \brief Free filter rules - * \param data filter rule pointer - */ -static void filter_rules_free(gpointer data) -{ - struct filter_rule *rule = data; - - g_return_if_fail(rule != NULL); - - /* Free entry */ - g_free(rule->entry); - - /* Free rule structure */ - g_slice_free(struct filter_rule, rule); -} - -/** - * \brief Free filter structure (including rules) - * \param data filter structrue to free - */ -void filter_free(gpointer data) -{ - struct filter *filter = data; - - /* Free filter rules */ - g_slist_free_full(filter->rules, filter_rules_free); - - /* Free filter name */ - g_free(filter->name); - - /* Free filter structure */ - g_slice_free(struct filter, filter); -} - -/** - * \brief Add filter structure to list - * \param filter filter structure - */ -void filter_add(struct filter *filter) -{ - filter_list = g_slist_insert_sorted(filter_list, filter, filter_sort_by_name); -} - -/** - * \brief Create new filter structure with given name - * \param name filter name - * \return filter structure pointer - */ -struct filter *filter_new(const gchar *name) -{ - struct filter *filter = g_slice_new0(struct filter); - - filter->name = g_strdup(name); - filter->compare_or = FALSE; - filter->rules = NULL; - - return filter; -} - -/** - * \brief Get filter list - * \return filter list - */ -GSList *filter_get_list(void) -{ - return filter_list; -} - -/** - * \brief Load filter from storage - INTERNAL - - */ -static void filter_load(void) -{ - GFile *dir; - GFileEnumerator *enumerator; - GFileInfo *info; - GError *error = NULL; - gchar *path = g_build_filename(g_get_user_config_dir(), "routermanager/filters", G_DIR_SEPARATOR_S, NULL); - - dir = g_file_new_for_path(path); - - enumerator = g_file_enumerate_children(dir, G_FILE_ATTRIBUTE_STANDARD_NAME, G_FILE_QUERY_INFO_NONE, NULL, &error); - if (!enumerator) { - return; - } - - while ((info = g_file_enumerator_next_file(enumerator, NULL, NULL))) { - const gchar *name = g_file_info_get_name(info); - gchar *tmp = g_strconcat(path, name, NULL); - GKeyFile *keyfile = g_key_file_new(); - struct filter *filter; - gsize cnt; - gchar **groups; - gint idx; - - g_key_file_load_from_file(keyfile, tmp, G_KEY_FILE_NONE, NULL); - groups = g_key_file_get_groups(keyfile, &cnt); - filter = filter_new(name); - for (idx = 0; idx < cnt; idx++) { - gint type; - gint subtype; - gchar *entry; - - type = g_key_file_get_integer(keyfile, groups[idx], "type", NULL); - subtype = g_key_file_get_integer(keyfile, groups[idx], "subtype", NULL); - entry = g_key_file_get_string(keyfile, groups[idx], "entry", NULL); - filter_rule_add(filter, type, subtype, entry); - - filter->file = g_strdup(tmp); - g_free(entry); - } - filter_add(filter); - - g_key_file_unref(keyfile); - - g_free(tmp); - } - - g_object_unref(enumerator); -} - -/** - * \brief Initialize filter and add default filters - */ -void filter_init(void) -{ - struct filter *filter; - - filter_load(); - - if (filter_list) { - return; - } - - /* No self-made filters available, create standard filters */ - - /* All calls */ - filter = filter_new(_("All calls")); - filter_rule_add(filter, 0, CALL_TYPE_ALL, NULL); - filter_add(filter); - - /* Incoming calls */ - filter = filter_new(_("Incoming calls")); - filter_rule_add(filter, 0, CALL_TYPE_INCOMING, NULL); - filter_add(filter); - - /* Missed calls */ - filter = filter_new(_("Missed calls")); - filter_rule_add(filter, 0, CALL_TYPE_MISSED, NULL); - filter_add(filter); - - /* Outgoing calls */ - filter = filter_new(_("Outgoing calls")); - filter_rule_add(filter, 0, CALL_TYPE_OUTGOING, NULL); - filter_add(filter); - - /* Fax */ - filter = filter_new(_("Fax")); - filter_rule_add(filter, 0, CALL_TYPE_FAX, NULL); - filter_add(filter); - - /* Answering machine */ - filter = filter_new(_("Answering machine")); - filter_rule_add(filter, 0, CALL_TYPE_VOICE, NULL); - filter_add(filter); - - /* Fax Report */ - filter = filter_new(_("Fax Report")); - filter_rule_add(filter, 0, CALL_TYPE_FAX_REPORT, NULL); - filter_add(filter); - - /* Voice Record */ - filter = filter_new(_("Record")); - filter_rule_add(filter, 0, CALL_TYPE_RECORD, NULL); - filter_add(filter); - - /* Blocked calls */ - filter = filter_new(_("Blocked")); - filter_rule_add(filter, 0, CALL_TYPE_BLOCKED, NULL); - filter_add(filter); - -} - -/** - * \brief Convert filter structure to keyfile data - * \param filter filter structure - * \return keyfile data - */ -static inline gchar *filter_to_data(struct filter *filter) -{ - GSList *rules; - gchar *data = g_strdup("# Filter file\n\n"); - gint counter; - - /* We have always rules available */ - for (rules = filter->rules, counter = 0; rules != NULL; rules = rules->next, counter++) { - struct filter_rule *rule = rules->data; - gchar *rule_str = g_strdup_printf("[rule%d]\ntype=%d\nsubtype=%d\nentry=%s\n\n", counter, rule->type, rule->sub_type, rule->entry ? rule->entry : ""); - gchar *tmp; - - tmp = g_strconcat(data, rule_str, NULL); - g_free(data); - data = tmp; - } - - return data; -} - -/** - * \brief Save filters to keyfiles - */ -void filter_save(void) -{ - GSList *list = filter_list; - gchar *path = g_build_filename(g_get_user_config_dir(), "routermanager/filters", G_DIR_SEPARATOR_S, NULL); - - g_mkdir_with_parents(path, 0700); - - while (list) { - struct filter *filter = list->data; - gchar *file = g_build_filename(path, filter->name, NULL); - gchar *data = filter_to_data(filter); - - file_save(file, data, -1); - if (!filter->file) { - filter->file = g_strdup(file); - } - g_free(data); - g_free(file); - - list = list->next; - } -} - -/** - * \brief Shutdown filter (free list and entries) - */ -void filter_shutdown(void) -{ - g_slist_free_full(filter_list, filter_free); -} - -/** - * \brief Remove filter from list - * \param filter filter to remove - */ -void filter_remove(struct filter *filter) -{ - filter_list = g_slist_remove(filter_list, filter); - - if (filter->file) { - g_remove(filter->file); - } -} diff -Nru roger-router-1.8.14/libroutermanager/filter.h roger-router-2.1.6/libroutermanager/filter.h --- roger-router-1.8.14/libroutermanager/filter.h 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/filter.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,78 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_FILTER_H -#define LIBROUTERMANAGER_FILTER_H - -#include - -G_BEGIN_DECLS - -enum { - FILTER_IS = 0, - FILTER_IS_NOT, - FILTER_STARTS_WITH, - FILTER_CONTAINS -}; - -enum { - FILTER_CALL_TYPE = 0, - FILTER_DATE_TIME, - FILTER_REMOTE_NAME, - FILTER_REMOTE_NUMBER, - FILTER_LOCAL_NAME, - FILTER_LOCAL_NUMBER -}; - -enum { - FILTER_CALL_ALL = 0, - FILTER_CALL_INCOMING, - FILTER_CALL_MISSED, - FILTER_CALL_OUTGOING, - FILTER_CALL_VOICE, - FILTER_CALL_FAX, -}; - -struct filter_rule { - gint type; - gint sub_type; - gchar *entry; -}; - -struct filter { - gchar *name; - gchar *file; - gboolean compare_or; - GSList *rules; -}; - -gboolean filter_rule_match(struct filter *filter, struct call *call); -void filter_rule_add(struct filter *filter, gint type, gint sub_type, gchar *entry); -struct filter *filter_new(const gchar *name); -void filter_free(gpointer data); -GSList *filter_get_list(void); -void filter_init(void); -void filter_shutdown(void); -void filter_add(struct filter *filter); -void filter_remove(struct filter *filter); -void filter_save(void); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/ftp.c roger-router-2.1.6/libroutermanager/ftp.c --- roger-router-1.8.14/libroutermanager/ftp.c 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/ftp.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,599 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include -#include -#include - -#include -#include - -#include -#include -#include - -//#define FTP_DEBUG 1 - -/** - * \brief Open FTP port channel - * \param server server name - * \param port port number - * \return io channel for given server:port - */ -static GIOChannel *ftp_open_port(gchar *server, gint port) -{ - GSocket *socket = NULL; - GInetAddress *inet_address = NULL; - GSocketAddress *sock_address = NULL; - GError *error = NULL; - GResolver *resolver = NULL; - GList *list = NULL; - GList *tmp; - GIOChannel *io_channel; - gint sock; - - resolver = g_resolver_get_default(); - list = g_resolver_lookup_by_name(resolver, server, NULL, NULL); - g_object_unref(resolver); - - if (list == NULL) { - g_warning("Cannot resolve ip from hostname: %s!", server); - return NULL; - } - - /* We need a IPV4 connection */ - for (tmp = list; tmp != NULL; tmp = tmp->next) { - if (g_inet_address_get_family(tmp->data) == G_SOCKET_FAMILY_IPV4) { - inet_address = tmp->data; - } - } - - if (inet_address == NULL) { - g_warning("Could not get ipv4 inet address from string: '%s'", server); - g_object_unref(socket); - g_resolver_free_addresses(list); - return NULL; - } - - sock_address = g_inet_socket_address_new(inet_address, port); - if (sock_address == NULL) { - g_warning("Could not create sock address on port %d", port); - g_object_unref(socket); - g_resolver_free_addresses(list); - return NULL; - } - - error = NULL; - socket = g_socket_new(g_inet_address_get_family(inet_address), G_SOCKET_TYPE_STREAM, G_SOCKET_PROTOCOL_TCP, &error); - - error = NULL; - if (g_socket_connect(socket, sock_address, NULL, &error) == FALSE) { - g_warning("Could not connect to socket. Error: %s", error->message); - g_error_free(error); - g_object_unref(socket); - g_resolver_free_addresses(list); - return NULL; - } - - sock = g_socket_get_fd(socket); - -#ifdef G_OS_WIN32 - io_channel = g_io_channel_win32_new_socket(sock); -#else - io_channel = g_io_channel_unix_new(sock); -#endif - g_io_channel_set_encoding(io_channel, NULL, NULL); - g_io_channel_set_buffered(io_channel, TRUE); - -#ifdef FTP_DEBUG - g_debug("ftp_open_port(): connected on port %d", port); -#endif - - return io_channel; -} - -/** - * \brief Read FTP control response from channel - * \param channel open ftp io control channel - * \param len pointer to store the data length to - * \return data response message or NULL on error - */ -gboolean ftp_read_control_response(struct ftp *client) -{ - GError *error = NULL; - GIOStatus io_status; - gsize length; - gchar match[5]; - gboolean multiline_start = FALSE; - gboolean multiline_end = FALSE; - -#ifdef FTP_DEBUG - g_debug("Wait for control response"); -#endif - - /* Clear previous response message */ - if (client->response) { - g_free(client->response); - client->response = NULL; - } - - g_timer_start(client->timer); - - do { - io_status = g_io_channel_read_line(client->control, &client->response, &length, NULL, &error); - - if (io_status == G_IO_STATUS_AGAIN) { - g_usleep(500); - continue; - } else if (io_status != G_IO_STATUS_NORMAL) { - g_warning("Got: io status %d, Error: %s", io_status, error->message); - break; - } - - if (!multiline_start) { - client->code = g_ascii_strtoll(client->response, NULL, 10); -#ifdef FTP_DEBUG - g_debug("Response: '%s'", client->response); -#endif - if (client->response[3] == '-') { - match[0] = client->response[0]; - match[1] = client->response[1]; - match[2] = client->response[2]; - match[3] = ' '; - match[4] = '\0'; - - multiline_start = TRUE; - } - } else { -#ifdef FTP_DEBUG - g_debug("Response: '%s'", client->response); -#endif - if (!strncmp(client->response, match, 4)) { - multiline_end = TRUE; - } - } - } while ((g_timer_elapsed(client->timer, NULL) < 10) && (!client->response || (multiline_start && !multiline_end))); - - g_timer_stop(client->timer); - - return client->response != NULL; -} - -/** - * \brief Read FTP data response from channel - * \param channel open ftp io data channel - * \param len pointer to store the data length to - * \return data response message or NULL on error - */ -gchar *ftp_read_data_response(GIOChannel *channel, gsize *len) -{ - GError *error = NULL; - GIOStatus io_status; - gchar buffer[32768]; - gsize read; - gchar *data; - gsize data_size = 0; - goffset data_offset = 0; - - data = NULL; - - while (1) { - memset(buffer, 0, sizeof(buffer)); - io_status = g_io_channel_read_chars(channel, buffer, sizeof(buffer), &read, &error); - - if (io_status == G_IO_STATUS_NORMAL) { - data_size += read; - data = g_realloc(data, data_size + 1); - memcpy(data + data_offset, buffer, read); - data_offset += read; - data[data_offset] = '\0'; - } else if (io_status == G_IO_STATUS_AGAIN) { - continue; - } else { - break; - } - } - - if (len) { - *len = data_offset; - } - - return data; -} - -/** - * \brief Send FTP command through io channel - * \param client ftp client structure - * \param command FTP command - * \return TRUE if data is available, FALSE on error - */ -gboolean ftp_send_command(struct ftp *client, gchar *command) -{ - gchar *ftp_command; - GIOStatus io_status; - GError *error = NULL; - gsize written; - - ftp_command = g_strconcat(command, "\r\n", NULL); - - io_status = g_io_channel_write_chars(client->control, ftp_command, strlen(ftp_command), &written, &error); - g_free(ftp_command); - if (io_status != G_IO_STATUS_NORMAL) { - g_warning("Write error: %d", io_status); - return FALSE; - } - g_io_channel_flush(client->control, NULL); - - return ftp_read_control_response(client); -} - -/** - * \brief Login to FTP server - * \param client ftp client structure - * \param user username - * \param password user password - * \return TRUE if login was successfull, otherwise FALSE - */ -gboolean ftp_login(struct ftp *client, const gchar *user, const gchar *password) -{ - gchar *cmd; - gboolean login = FALSE; - - cmd = g_strconcat("USER ", user, NULL); -#ifdef FTP_DEBUG - g_debug("ftp_login(): %s", cmd); -#endif - ftp_send_command(client, cmd); - g_free(cmd); - - if (client->code == 331) { - cmd = g_strconcat("PASS ", password, NULL); -#ifdef FTP_DEBUG - g_debug("ftp_login(): PASS "); -#endif - ftp_send_command(client, cmd); - g_free(cmd); - - if (client->code == 230) { - login = TRUE; - } - } else if (client->code == 230) { - /* Already logged in */ - login = TRUE; - } - - return login; -} - -/** - * \brief Switch FTP transfer to passive mode - * \param client ftp client structure - * \return result, TRUE for success, FALSE on error - */ -gboolean ftp_passive(struct ftp *client) -{ - gchar *pos; - gint data_port; - guint v[6]; - -#ifdef FTP_DEBUG - g_debug("ftp_passive(): request"); -#endif - - if (client->data) { -#ifdef FTP_DEBUG - g_debug("Data channel already open"); -#endif - g_io_channel_shutdown(client->data, FALSE, NULL); - g_io_channel_unref(client->data); - client->data = NULL; -#ifdef FTP_DEBUG - g_debug("ftp_passive(): data is NULL now"); -#endif - } - -#ifdef FTP_DEBUG - g_debug("ftp_passive(): EPSV"); -#endif - ftp_send_command(client, "EPSV"); - - if (client->code == 229) { - pos = strchr(client->response, '|'); - if (!pos) { - return FALSE; - } - - pos += 3; - sscanf(pos, "%u", &data_port); - } else { -#ifdef FTP_DEBUG - g_debug("ftp_passive(): PASV"); -#endif - ftp_send_command(client, "PASV"); - - if (client->code != 227) { - return FALSE; - } - pos = strchr(client->response, '('); - if (!pos) { - return FALSE; - } - - pos++; - sscanf(pos, "%u,%u,%u,%u,%u,%u", &v[2], &v[3], &v[4], &v[5], &v[0], &v[1]); - -#ifdef FTP_DEBUG - //g_debug("ftp_passive(): v0 %d, v1: %d", v[0], v[1]); -#endif - data_port = v[0] * 256 + v[1]; - } - -#ifdef FTP_DEBUG - g_debug("ftp_passive(): data_port: %d", data_port); -#endif - - client->data = ftp_open_port(client->server, data_port); - - return client->data != NULL; -} - -/** - * \brief List FTP directory - * \param client ftp client structure - * \param dir directory name - * \return directory listing - */ -gchar *ftp_list_dir(struct ftp *client, const gchar *dir) -{ - gchar *cmd = g_strconcat("CWD ", dir, NULL); - gchar *response = NULL; - -#ifdef FTP_DEBUG - g_debug("ftp_list_dir(): %s", cmd); -#endif - ftp_send_command(client, cmd); - g_free(cmd); - -#ifdef FTP_DEBUG - g_debug("ftp_list_dir(): NLST"); -#endif - ftp_send_command(client, "NLST"); - - if (client->code == 150) { - response = ftp_read_data_response(client->data, NULL); - } - - return response; -} - -/** - * \brief Get file of FTP - * \param client ftp client structure - * \param file file to download - * \param len pointer to store the file size to - * \return file data or NULL on error - */ -gchar *ftp_get_file(struct ftp *client, const gchar *file, gsize *len) -{ - gchar *cmd = g_strconcat("RETR ", file, NULL); - gchar *response = NULL; - - if (len) { - *len = 0; - } - -#ifdef FTP_DEBUG - g_debug("ftp_get_file(): TYPE I"); -#endif - ftp_send_command(client, "TYPE I"); - -#ifdef FTP_DEBUG - g_debug("ftp_get_file(): %s", cmd); -#endif - ftp_send_command(client, cmd); - g_free(cmd); - - if (client->code == 150) { - response = ftp_read_data_response(client->data, len); - ftp_read_control_response(client); - } - - return response; -} - -/** - * \brief Put file on FTP - * \param client ftp client structure - * \param file file to upload - * \param path remote path - * \param data file data - * \param size file size - * \return TRUE on success, otherwise FALSE - */ -gboolean ftp_put_file(struct ftp *client, const gchar *file, const gchar *path, gchar *data, gsize size) -{ - gchar *cmd; - gboolean passive; - -#ifdef FTP_DEBUG - g_debug("ftp_get_file(): TYPE I"); -#endif - ftp_send_command(client, "TYPE I"); -#ifdef FTP_DEBUG - g_debug("ftp_put_file(): code=%d", client->code); -#endif - if (client->code != 200) { - return FALSE; - } - - passive = ftp_passive(client); -#ifdef FTP_DEBUG - g_debug("ftp_put_file(): passive=%d", passive); -#endif - if (!passive) { - return FALSE; - } - - cmd = g_strconcat("STOR ", path, "/", file, NULL); -#ifdef FTP_DEBUG - g_debug("ftp_put_file(): %s", cmd); -#endif - ftp_send_command(client, cmd); - g_free(cmd); -#ifdef FTP_DEBUG - g_debug("ftp_put_file(): code=%d", client->code); -#endif - if (client->code != 150) { - return FALSE; - } - - gsize written; - GError *error = NULL; -#ifdef FTP_DEBUG - g_debug("ftp_put_file(): write data"); -#endif - g_io_channel_set_buffer_size(client->data, 0); - gsize chunk = g_io_channel_get_buffer_size(client->data); - gsize offset = 0; - gsize write; - - do { - write = ((size - offset) > chunk) ? chunk : size - offset; - GIOStatus status = g_io_channel_write_chars(client->data, data + offset, write, &written, &error); - if (status == G_IO_STATUS_AGAIN) { - continue; - } - if (status != G_IO_STATUS_NORMAL) { - g_debug("ftp_put_file(): write failed.\n"); - return FALSE; - } - g_io_channel_flush(client->data, NULL); - offset += written; - } while (offset != size); -#ifdef FTP_DEBUG - g_debug("ftp_put_file(): done"); -#endif - g_io_channel_shutdown(client->data, TRUE, &error); - client->data = NULL; - - ftp_read_control_response(client); - - return TRUE; -} - -/** - * \brief Initialize ftp structure - * \param server server host name - * \return ftp structure or NULL on error - */ -struct ftp *ftp_init(const gchar *server) -{ - struct ftp *client = g_slice_new0(struct ftp); - - client->server = g_strdup(server); - client->control = ftp_open_port(client->server, 21); - if (!client->control) { - g_warning("Could not connect to FTP-Port 21"); - g_free(client->server); - g_slice_free(struct ftp, client); - return NULL; - } - - client->timer = g_timer_new(); - - /* Read welcome message */ - ftp_read_control_response(client); - -#ifdef FTP_DEBUG - g_debug("ftp_init() done"); -#endif - - return client; -} - -/** - * \brief Shutdown ftp structure (close sockets and free memory) - * \param client ftp client structure - * \return TRUE on success, otherwise FALSE - */ -gboolean ftp_shutdown(struct ftp *client) -{ -#ifdef FTP_DEBUG - g_debug("ftp_shutdown(): start"); -#endif - - g_return_val_if_fail(client != NULL, FALSE); - - g_timer_destroy(client->timer); - -#ifdef FTP_DEBUG - g_debug("ftp_shutdown(): free"); -#endif - g_free(client->server); - g_free(client->response); - -#ifdef FTP_DEBUG - g_debug("ftp_shutdown(): shutdown"); -#endif - - if (client->control) { - g_io_channel_shutdown(client->control, FALSE, NULL); - g_io_channel_unref(client->control); - } - - if (client->data) { - g_io_channel_shutdown(client->data, FALSE, NULL); - g_io_channel_unref(client->data); - } - -#ifdef FTP_DEBUG - g_debug("ftp_shutdown(): free"); -#endif - g_slice_free(struct ftp, client); - -#ifdef FTP_DEBUG - g_debug("ftp_shutdown(): done"); -#endif - - return TRUE; -} - -/** - * \brief Delete file on FTP - * \param client ftp client structure - * \param filename file to delete - * \return TRUE on success, otherwise FALSE - */ -gboolean ftp_delete_file(struct ftp *client, const gchar *filename) -{ - gchar *cmd = g_strconcat("DELE ", filename, NULL); - -#ifdef FTP_DEBUG - g_debug("ftp_delete_file(): %s", cmd); -#endif - ftp_send_command(client, cmd); - g_free(cmd); - - if (client->code != 250) { - g_debug("ftp_delete_file(): code: %d", client->code); - return FALSE; - } - - return TRUE; -} diff -Nru roger-router-1.8.14/libroutermanager/ftp.h roger-router-2.1.6/libroutermanager/ftp.h --- roger-router-1.8.14/libroutermanager/ftp.h 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/ftp.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,47 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_FTP_H -#define LIBROUTERMANAGER_FTP_H - -G_BEGIN_DECLS - -struct ftp { - gchar *server; - gint code; - gchar *response; - GIOChannel *control; - GIOChannel *data; - GTimer *timer; -}; - -gchar *ftp_read_response(GIOChannel *channel, gsize *len); -gboolean ftp_send_command(struct ftp *client, gchar *command); -gboolean ftp_login(struct ftp *client, const gchar *user, const gchar *password); -gboolean ftp_passive(struct ftp *client); -gchar *ftp_list_dir(struct ftp *client, const gchar *dir); -gchar *ftp_get_file(struct ftp *client, const gchar *file, gsize *len); -gboolean ftp_put_file(struct ftp *client, const gchar *file, const gchar *path, gchar *data, gsize size); -struct ftp *ftp_init(const gchar *server); -gboolean ftp_delete_file(struct ftp *client, const gchar *file); -gboolean ftp_shutdown(struct ftp *client); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/gstring.c roger-router-2.1.6/libroutermanager/gstring.c --- roger-router-1.8.14/libroutermanager/gstring.c 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/gstring.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,332 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include - -#include -#include - -#include "gstring.h" - -/** - * \brief Search for case-sensitive needle in haystack - * \param haystack haystack - * \param needle needle - * \return pointer to position or NULL - */ -gchar *g_strcasestr(const gchar *haystack, const gchar *needle) -{ - size_t n = strlen(needle); - - if (!haystack || !needle) { - return NULL; - } - - for (; *haystack; haystack++) { - if (g_ascii_strncasecmp(haystack, needle, n) == 0) { - return (gchar *) haystack; - } - } - - return NULL; -} - -/** - * \brief Convert string (if needed) to UTF-8 - * \param text input text string - * \param len length of string or -1 for strlen() - * \return input string in UTF-8 (must be freed) - */ -gchar *g_convert_utf8(const gchar *text, gssize len) -{ - GError *error = NULL; - gsize read_bytes, written_bytes; - gchar *str = NULL; - gssize idx; - - if (!text) { - g_assert_not_reached(); - } - - if (len == -1) { - len = strlen(text); - } - - if (g_utf8_validate(text, len, NULL)) { - return g_strndup(text, len); - } - - /*for (idx = 0; idx < len; idx++) { - if (text[idx] < 32 && text[idx] != '\n') { - text[idx] = ' '; - } - }*/ - - str = g_convert(text, len, "UTF-8", "ISO-8859-1", &read_bytes, &written_bytes, &error); - if (str == NULL) { - str = g_strndup(text, len); - - for (idx = 0; idx < len; idx++) { - if ((guchar)str[idx] > 128) { - str[idx] = '?'; - } - } - } - - if (error) { - g_error_free(error); - } - - return str; -} - -/** iso8859_1 entities */ -static gchar *entities_iso8859_1[] = { - "iexcl", "cent", "pound", "curren", "yen", "brvbar", "sect", "uml", "copy", "ordf", - "laquo", "not", "shy", "reg", "macr", "deg", "plusmn", "sup2", "sup3", "acute", "micro", - "para", "middot", "cedil", "sup1", "ordm", "raquo", "frac14", "frac12", "frac34", "iquest", - "Agrave", "Aacute", "Acirc", "Atilde", "Auml", "Aring", "AElig", "Ccedil", "Egrave", - "Eacute", "Ecirc", "Euml", "Igrave", "Iacute", "Icirc", "Iuml", "ETH", "Ntilde", "Ograve", - "Oacute", "Ocirc", "Otilde", "Ouml", "times", "Oslash", "Ugrave", "Uacute", "Ucirc", "Uuml", - "Yacute", "THORN", "szlig", "agrave", "aacute", "acirc", "atilde", "auml", "aring", "aelig", - "ccedil", "egrave", "eacute", "ecirc", "euml", "igrave", "iacute", "icirc", "iuml", "eth", - "ntilde", "ograve", "oacute", "ocirc", "otilde", "ouml", "divide", "oslash", "ugrave", - "uacute", "ucirc", "uuml", "yacute", "thorn", "yuml", NULL -}; - -/** entities symbols */ -static gchar *entities_symbols[] = { - "fnof", "Alpha", "Beta", "Gamma", "Delta", "Epsilon", "Zeta", "Eta", "Theta", "Iota", "Kappa", - "Lambda", "Mu", "Nu", "Xi", "Omicron", "Pi", "Rho", "Sigma", "Tau", "Uplsilon", "Phi", - "Chi", "Psi", "Omega", "alpha", "beta", "gamma", "delta", "epsilon", "zeta", "eta", "theta", - "iota", "kappa", "lambda", "mu", "nu", "xi", "omicron", "pi", "rho", "sigmaf", "sigma", - "tau", "upsilon", "phi", "chi", "psi", "omega", "thetasym", "upsih", "piv", "bull", - "hellip", "prime", "Prime", "oline", "frasl", "weierp", "image", "real", "trade", "alefsym", - "larr", "uarr", "rarr", "darr", "harr", "crarr", "lArr", "uArr", "rArr", "dArr", "hArr", - "forall", "part", "exist", "empty", "nabla", "isin" "notin", "ni", "prod", "sum", "minus", - "lowast", "radic", "prop", "infin", "ang", "and", "or", "cap", "cup", "int", "there4", - "sim", "cong", "asymp", "ne", "equiv", "le", "ge", "sub", "sup", "nsub", "sube", "supe", - "oplus", "otimes", "perp", "sdot", "lceil", "rceil", "lfloor", "rfloor", "lang", "rang", - "loz", "spades", "clubs", "hearts", "diams", NULL -}; - -/** special entities */ -static gchar *entities_special[] = { - "OElig", "oelig", "Scaron", "scaron", "Yuml", "circ", "tilde", - "ensp", "emsp", "thinsp", "zwnj", "zwj", "lrm", "rlm", "ndash", "mdash", "lsquo", "rsquo", - "sbquo", "ldquo", "rdquo", "bdquo", "dagger", "Dagger", "permil", "lsaquo", "rsaquo", - "euro", NULL -}; - -/** xml entities */ -static gchar *entities_xml[] = { - "nbsp", "quot", "amp", "lt", "gt", NULL -}; - -/** the unicode characters for iso8859_1 are 161 + the index in the array */ -static guint entity_unicode_symbols[] = { - 402, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 931, - 932, 933, 934, 935, 936, 937, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, - 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 977, 978, 982, 8226, 8230, 8242, - 8443, 8254, 8260, 8472, 8465, 8476, 8482, 8501, 8592, 8593, 8594, 8595, 8596, 8629, 8656, - 8657, 8658, 8659, 8660, 8704, 8706, 8707, 8709, 8711, 8712, 8713, 8715, 8719, 8721, 8722, - 8727, 8730, 8733, 8734, 8736, 8743, 8744, 8745, 8746, 8747, 8756, 8764, 8773, 8776, 8800, - 8801, 8804, 8805, 8834, 8835, 8836, 8838, 8839, 8853, 8855, 8869, 8901, 8968, 8969, 8970, - 8971, 9001, 9002, 9674, 9824, 9827, 9829, 9830, -1 -}; - -/* special unicode entity */ -static guint entity_unicode_special[] = { - 338, 339, 352, 353, 376, 710, 732, 8194, 8195, 8201, 8204, 8205, 8206, 8207, - 8211, 8212, 8216, 8217, 8218, 8220, 8221, 8222, 8224, 8225, 8240, 8249, 8250, 8364, -1 -}; - -/** unicode xml entity */ -static guint entity_unicode_xml[] = { - 160, 34, 38, 60, 62, -1 -}; - -/** - * \brief Returns index in array - * \param arr array - * \param string string to search in array - * \return index or -1 on error - */ -static gint index_in_array(gchar **arr, gchar *string) -{ - gint i; - - for (i = 0; arr[i] != NULL; i++) { - if (strcmp(arr[i], string) == 0) { - return i; - } - } - - return -1; -} - -/** - * \brief Get unichar for entity - * \param entity entity - * \param numerical numerical format? - * \param iso8859_1 test iso8859_1 - * \param symbols test symbols - * \param specials test specials - * \param xml test xml - * \return unicode char - */ -static gunichar unichar_for_entity(gchar *entity, gboolean numerical, gboolean iso8859_1, gboolean symbols, gboolean specials, gboolean xml) -{ - gint indx; - - if (!entity) { - return -1; - } - - if (entity[0] == '#') { - if (numerical) { - /* convert the remaining characters to a number */ - if (entity[1] == 'x') { - /* from hexadecimal */ - return g_ascii_strtoull(&entity[2], NULL, 16); - } else { - /* from decimal */ - return g_ascii_strtoull(&entity[1], NULL, 10); - } - } - return -1; - } - - if (iso8859_1) { - indx = index_in_array(entities_iso8859_1, entity); - - if (indx != -1) { - return indx + 161; - } - } - - if (symbols) { - indx = index_in_array(entities_symbols, entity); - - if (indx != -1) { - return entity_unicode_symbols[indx]; - } - } - - if (specials) { - indx = index_in_array(entities_special, entity); - - if (indx != -1) { - return entity_unicode_special[indx]; - } - } - - if (xml) { - indx = index_in_array(entities_xml, entity); - - if (indx != -1) { - return entity_unicode_xml[indx]; - } - } - - return -1; -} - -/** - * \brief Convert entities in string - * \param inbuf input buffer - * \return converted string - */ -static gchar *convert_entities(const gchar *inbuf) -{ - const gchar *found, *prevfound; - gchar *outbuf, *outbufloc; - - outbuf = g_malloc0(strlen(inbuf) + 1); - prevfound = inbuf; - outbufloc = outbuf; - found = g_utf8_strchr(inbuf, -1, '&'); - - while (found) { - gchar *endfound; - - endfound = g_utf8_strchr(found, -1, ';'); - if (endfound && endfound - found <= 7) { - gchar *entity, tmp[7]; - gint len; - gunichar unic; - - entity = g_strndup(found + 1, (endfound - found) - 1); - len = (found - prevfound); - //endfound += (endfound - found); - memcpy(outbufloc, prevfound, len); - outbufloc += len; - unic = unichar_for_entity(entity, TRUE, TRUE, TRUE, TRUE, TRUE); - if (unic != -1) { - memset(tmp, 0, 7); - len = g_unichar_to_utf8(unic, tmp); - len = strlen(tmp); - memcpy(outbufloc, tmp, len); - outbufloc += len; - } else { - len = endfound - found + 1; - memcpy(outbufloc, found, len); - outbufloc += len; - } - g_free(entity); - - prevfound = g_utf8_next_char(endfound); - found = g_utf8_strchr(prevfound, -1, '&'); - } else { - found = g_utf8_strchr(g_utf8_next_char(found), -1, '&'); - } - } - - memcpy(outbufloc, prevfound, strlen(prevfound) + 1); - - return outbuf; -} - -/** - * \brief Strip html entities from word - * \param word html string - * \return stripped string - */ -gchar *strip_html(gchar *word) -{ - GRegex *tags = g_regex_new("<(.|\n)*?>", G_REGEX_DOTALL | G_REGEX_OPTIMIZE, 0, NULL); - GRegex *space = g_regex_new(" ", G_REGEX_DOTALL | G_REGEX_OPTIMIZE, 0, NULL); - GRegex *misc = g_regex_new("Â", G_REGEX_DOTALL | G_REGEX_OPTIMIZE, 0, NULL); - gchar *stripped = g_regex_replace_literal(tags, word, -1, 0, "", 0, NULL); - gchar *spaced_str = g_regex_replace_literal(space, stripped, -1, 0, " ", 0, NULL); - gchar *misc_str = g_regex_replace_literal(misc, spaced_str, -1, 0, "", 0, NULL); - gchar *return_str = convert_entities(misc_str); - - g_free(misc_str); - g_free(spaced_str); - g_free(stripped); - - g_regex_unref(misc); - g_regex_unref(space); - g_regex_unref(tags); - - g_strstrip(return_str); - - return return_str; -} diff -Nru roger-router-1.8.14/libroutermanager/gstring.h roger-router-2.1.6/libroutermanager/gstring.h --- roger-router-1.8.14/libroutermanager/gstring.h 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/gstring.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,35 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_GSTRING_H -#define LIBROUTERMANAGER_GSTRING_H - -G_BEGIN_DECLS - -#ifndef EMPTY_STRING -#define EMPTY_STRING(x) (!(x) || !strlen(x)) -#endif - -gchar *g_strcasestr(const gchar *haystack, const gchar *needle); -gchar *g_convert_utf8(const gchar *text, gssize len); -gchar *strip_html(gchar *text); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/libfaxophone/fax.c roger-router-2.1.6/libroutermanager/libfaxophone/fax.c --- roger-router-1.8.14/libroutermanager/libfaxophone/fax.c 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/libfaxophone/fax.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,626 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -/** - * \file fax.c - * \brief Fax handling functions - */ - -#include - -#define SPANDSP_EXPOSE_INTERNAL_STRUCTURES -#include - -#include -#include -#include - -static int8_t *_linear16_2_law = (int8_t *) &linear16_2_law[32768]; -static uint16_t *_law_2_linear16 = &law_2_linear16[0]; - -static gint log_level = 0; - -static void (*logging)(gint level, const gchar *text) = NULL; - -/** - * \brief Dump spandsp messages - * \param level spandsp loglevel - * \param text message text - */ -static void spandsp_msg_log(gint level, const gchar *text) -{ - g_debug("%s", text); -} - -/** - * \brief Realtime frame handler which keeps tracks of data transfer - * \param state t30 state pointer - * \param user_data pointer to connection index - * \param direction transmission direction - * \param msg spandsp message - * \param len len of frame - */ -static void real_time_frame_handler(t30_state_t *state, void *user_data, gint direction, const uint8_t *msg, gint len) -{ - struct capi_connection *connection = user_data; - struct fax_status *status = connection->priv; - struct session *session = faxophone_get_session(); - t30_stats_t stats; - - //g_debug("real_time_frame_handler() called (%d/%d/%d)", direction, len, msg[2]); - if (msg[2] == 6) { - t30_get_transfer_statistics(state, &stats); - - if (status->sending) { - status->bytes_total = stats.image_size; - status->bytes_sent += len; - } else { - status->bytes_received += len; - status->bytes_total += len; - } - - status->progress_status = 1; - session->handlers->status(connection, 1); - } -} - -/** - * \brief Phase B handler - * \param state t30 state pointer - * \param user_data pointer to connection - * \param result result - * \return error code - */ -static gint phase_handler_b(t30_state_t *state, void *user_data, gint result) -{ - struct capi_connection *connection = user_data; - struct fax_status *status = connection->priv; - struct session *session = faxophone_get_session(); - t30_stats_t stats; - t30_state_t *t30; - const gchar *ident; - - t30_get_transfer_statistics(state, &stats); - t30 = fax_get_t30_state(status->fax_state); - - g_debug("Phase B handler (0x%X) %s", result, t30_frametype(result)); - g_debug(" - bit rate %d", stats.bit_rate); - g_debug(" - ecm %s", (stats.error_correcting_mode) ? "on" : "off"); - - if (status->sending) { - ident = t30_get_rx_ident(t30); - } else { - ident = t30_get_tx_ident(t30); - } - snprintf(status->remote_ident, sizeof(status->remote_ident), "%s", ident ? ident : ""); - g_debug("Remote side: '%s'", status->remote_ident); - if (t30_get_rx_sender_ident(t30)) { - g_debug("Remote side sender: '%s'", t30_get_rx_sender_ident(t30)); - } - if (t30_get_rx_country(t30)) { - g_debug("Remote side country: '%s'", t30_get_rx_country(t30)); - } - if (t30_get_rx_vendor(t30)) { - g_debug("Remote side vendor: '%s'", t30_get_rx_vendor(t30)); - } - if (t30_get_rx_model(t30)) { - g_debug("Remote side model: '%s'", t30_get_rx_model(t30)); - } - - status->phase = PHASE_B; - status->bytes_sent = 0; - status->bytes_total = 0; - status->bytes_received = 0; - status->ecm = stats.error_correcting_mode; - status->bad_rows = stats.bad_rows; - status->encoding = stats.encoding; - status->bitrate = stats.bit_rate; - //status->page_total = stats.pages_in_file; - status->progress_status = 0; - - status->page_current = status->sending ? stats.pages_tx + 1 : stats.pages_rx + 1; - - session->handlers->status(connection, 0); - - return 0; -} - -/** - * \brief Phase D handler - * \param state t30 state pointer - * \param user_data pointer to connection - * \param result result - * \return error code - */ -static gint phase_handler_d(t30_state_t *state, void *user_data, gint result) -{ - struct capi_connection *connection = user_data; - struct fax_status *status = connection->priv; - struct session *session = faxophone_get_session(); - t30_stats_t stats; - - t30_get_transfer_statistics(state, &stats); - - g_debug("Phase D handler (0x%X) %s", result, t30_frametype(result)); - g_debug(" - pages transferred %d", status->sending ? stats.pages_tx : stats.pages_rx); - /*g_debug(" - image size %d x %d", stats.width, stats.length); - g_debug(" - bad rows %d", stats.bad_rows); - g_debug(" - longest bad row run %d", stats.longest_bad_row_run); - g_debug(" - image size %d", stats.image_size);*/ - - status->phase = PHASE_D; - /*status->ecm = stats.error_correcting_mode; - status->bad_rows = stats.bad_rows; - status->encoding = stats.encoding; - status->bitrate = stats.bit_rate;*/ - - if (status->sending) { - status->page_current = (stats.pages_in_file >= stats.pages_tx + 1 ? stats.pages_tx + 1 : stats.pages_tx); - } else { - status->page_current = stats.pages_rx; - } - - //status->page_total = stats.pages_in_file; - status->bytes_received = 0; - status->bytes_sent = 0; - status->progress_status = 0; - - session->handlers->status(connection, 0); - - return 0; -} - -/** - * \brief Phase E handler - * \param state T30 state - * \param user_data pointer to current capi connection - * \param result result code - */ -static void phase_handler_e(t30_state_t *state, void *user_data, gint result) -{ - struct capi_connection *connection = user_data; - struct fax_status *status = connection->priv; - struct session *session = faxophone_get_session(); - gint transferred = 0; - t30_stats_t stats; - t30_state_t *t30; - const gchar *ident; - - t30_get_transfer_statistics(state, &stats); - - g_debug("Phase E handler (0x%X) %s", result, t30_completion_code_to_str(result)); - - transferred = status->sending ? stats.pages_tx : stats.pages_rx; - g_debug(" - pages transferred %d", transferred); - /*g_debug(" - image resolution %d x %d", stats.x_resolution, stats.y_resolution); - g_debug(" - compression type %d", stats.encoding); - g_debug(" - coding method %s", t4_encoding_to_str(stats.encoding));*/ - - status->phase = PHASE_E; - /*status->ecm = stats.error_correcting_mode; - status->bad_rows = stats.bad_rows; - status->encoding = stats.encoding; - status->bitrate = stats.bit_rate;*/ - - status->page_current = (status->sending ? stats.pages_tx : stats.pages_rx); - //status->page_total = stats.pages_in_file; - status->error_code = result; - - t30 = fax_get_t30_state(status->fax_state); - if (status->sending) { - ident = t30_get_rx_ident(t30); - } else { - ident = t30_get_tx_ident(t30); - } - status->progress_status = 0; - - snprintf(status->remote_ident, sizeof(status->remote_ident), "%s", ident ? ident : ""); - g_debug("Remote station id: %s", status->remote_ident); - - session->handlers->status(connection, 0); -} - -/** - * \brief Get total pages in TIFF file - * \param file filename - * \return number of pages - */ -static int get_tiff_total_pages(const char *file) -{ - TIFF *tiff_file; - int max; - - if ((tiff_file = TIFFOpen(file, "r")) == NULL) { - return -1; - } - - max = 0; - while (TIFFSetDirectory(tiff_file, (tdir_t) max)) { - max++; - } - - TIFFClose(tiff_file); - - return max; -} - -/** - * \brief Initialize spandsp - * \param tiff_file tiff file - * \param sending sending flag - * \param modem supported modem - * \param ecm error correction mode flag - * \param lsi lsi - * \param local_header_info local header - * \param connection capi connection poiner - * \return error code - */ -gint spandsp_init(const gchar *tiff_file, gboolean sending, gchar modem, gchar ecm, const gchar *lsi, const gchar *local_header_info, struct capi_connection *connection) -{ - t30_state_t *t30; - logging_state_t *log_state; - gint supported_resolutions = 0; - gint supported_image_sizes = 0; - gint supported_modems = 0; - struct fax_status *status = connection->priv; - - status->fax_state = fax_init(NULL, sending); - g_debug("status->fax_state: %p", status->fax_state); - - fax_set_transmit_on_idle(status->fax_state, TRUE); - fax_set_tep_mode(status->fax_state, FALSE); - - t30 = fax_get_t30_state(status->fax_state); - - /* Supported resolutions */ - supported_resolutions = 0; - supported_resolutions |= T30_SUPPORT_STANDARD_RESOLUTION; - supported_resolutions |= T30_SUPPORT_FINE_RESOLUTION; - supported_resolutions |= T30_SUPPORT_SUPERFINE_RESOLUTION; - supported_resolutions |= T30_SUPPORT_R8_RESOLUTION; - supported_resolutions |= T30_SUPPORT_R16_RESOLUTION; - supported_resolutions |= T30_SUPPORT_300_300_RESOLUTION; - supported_resolutions |= T30_SUPPORT_400_400_RESOLUTION; - supported_resolutions |= T30_SUPPORT_600_600_RESOLUTION; - supported_resolutions |= T30_SUPPORT_1200_1200_RESOLUTION; - supported_resolutions |= T30_SUPPORT_300_600_RESOLUTION; - supported_resolutions |= T30_SUPPORT_400_800_RESOLUTION; - supported_resolutions |= T30_SUPPORT_600_1200_RESOLUTION; - - /* Supported image sizes */ - supported_image_sizes = 0; - supported_image_sizes |= T30_SUPPORT_215MM_WIDTH; - supported_image_sizes |= T30_SUPPORT_255MM_WIDTH; - supported_image_sizes |= T30_SUPPORT_303MM_WIDTH; - supported_image_sizes |= T30_SUPPORT_UNLIMITED_LENGTH; - supported_image_sizes |= T30_SUPPORT_A4_LENGTH; - supported_image_sizes |= T30_SUPPORT_US_LETTER_LENGTH; - supported_image_sizes |= T30_SUPPORT_US_LEGAL_LENGTH; - - /* Supported modems */ - supported_modems = 0; - if (modem > 0) { - supported_modems |= T30_SUPPORT_V27TER; - if (modem > 1) { - supported_modems |= T30_SUPPORT_V29; - } - if (modem > 2) { - supported_modems |= T30_SUPPORT_V17; - } -#if defined(T30_SUPPORT_V34) - if (modem > 3) { - supported_modems |= T30_SUPPORT_V34; - } -#endif - } - - t30_set_supported_modems(t30, supported_modems); - - /* Error correction */ - if (ecm) { - /* Supported compressions */ -#if defined(SPANDSP_SUPPORT_T85) - t30_set_supported_compressions(t30, T30_SUPPORT_T4_1D_COMPRESSION | T30_SUPPORT_T4_2D_COMPRESSION | T30_SUPPORT_T6_COMPRESSION | T30_SUPPORT_T85_C -#else - t30_set_supported_compressions(t30, T30_SUPPORT_T4_1D_COMPRESSION | T30_SUPPORT_T4_2D_COMPRESSION | T30_SUPPORT_T6_COMPRESSION); -#endif - - t30_set_ecm_capability(t30, ecm); - } - - t30_set_supported_t30_features(t30, T30_SUPPORT_IDENTIFICATION | T30_SUPPORT_SELECTIVE_POLLING | T30_SUPPORT_SUB_ADDRESSING); - t30_set_supported_resolutions(t30, supported_resolutions); - t30_set_supported_image_sizes(t30, supported_image_sizes); - - /* spandsp loglevel */ - if (log_level >= 1) { - log_state = t30_get_logging_state(t30); - span_log_set_level(log_state, 0xFFFFFF); - - if (!logging) { - logging = spandsp_msg_log; - } - - span_log_set_message_handler(log_state, logging); - } - - if (lsi) { - t30_set_tx_ident(t30, lsi); - } - if (local_header_info) { - t30_set_tx_page_header_info(t30, local_header_info); - } - - if (sending == TRUE) { - t30_set_tx_file(t30, tiff_file, -1, -1); - status->page_total = get_tiff_total_pages(tiff_file); - } else { - t30_set_rx_file(t30, tiff_file, -1); - } - - t30_set_phase_b_handler(t30, phase_handler_b, (void *) connection); - t30_set_phase_d_handler(t30, phase_handler_d, (void *) connection); - t30_set_phase_e_handler(t30, phase_handler_e, (void *) connection); - - t30_set_real_time_frame_handler(t30, real_time_frame_handler, (void *) connection); - - return 0; -} - -/** - * \brief Close spandsp - * \param fax_state fax state - * \return error code - */ -gint spandsp_close(fax_state_t *fax_state) -{ - struct fax_status *status = NULL; - struct session *session = faxophone_get_session(); - gint i; - - g_debug("Close"); - if (fax_state != NULL) { - fax_release(fax_state); - } else { - for (i = 0; i < CAPI_CONNECTIONS; i++) { - status = session->connection[i].priv; - - if (status != NULL) { - fax_release(status->fax_state); - } - } - } - - return 0; -} - -/** - * \brief TX direction - * \param fax_state fax state - * \param buf transfer buffer - * \param len length of buffer - * \return error code - */ -gint spandsp_tx(fax_state_t *fax_state, uint8_t *buf, size_t len) -{ - int16_t buf_in[CAPI_PACKETS]; - uint8_t *alaw; - gint err, i; - - err = fax_tx(fax_state, buf_in, CAPI_PACKETS); - alaw = buf; - - for (i = 0; i != len; ++i, ++alaw) { - *alaw = _linear16_2_law[(int16_t) buf_in[i]]; - } - - return err; -} - -/** - * \brief Process rx data through spandsp - * \param fax_state fax state information - * \param buf receive buffer - * \param len length of buffer - * \return error code - */ -gint spandsp_rx(fax_state_t *fax_state, uint8_t *buf, size_t len) -{ - int16_t buf_in[CAPI_PACKETS]; - int16_t *wave; - gint err, i; - - wave = buf_in; - - for (i = 0; i != len; ++i, ++wave) { - *wave = _law_2_linear16[(uint8_t) buf[i]]; - } - - err = fax_rx(fax_state, buf_in, CAPI_PACKETS); - - return err; -} - -/** - * \brief Receive/Transmit fax state - * \param connection capi connection pointer - * \param capi_message current capi message - */ -void fax_transfer(struct capi_connection *connection, _cmsg capi_message) -{ - struct fax_status *status = connection->priv; - struct session *session = faxophone_get_session(); - _cmsg cmsg; - guint8 alaw_buffer_tx[CAPI_PACKETS]; - gint32 len = DATA_B3_IND_DATALENGTH(&capi_message); - - /* RX/TX spandsp */ - spandsp_rx(status->fax_state, DATA_B3_IND_DATA(&capi_message), len); - //isdn_lock(); - DATA_B3_RESP(&cmsg, session->appl_id, session->message_number++, connection->ncci, DATA_B3_IND_DATAHANDLE(&capi_message)); - //isdn_unlock(); - - - /* Send data to remote */ - len = CAPI_PACKETS; - spandsp_tx(status->fax_state, alaw_buffer_tx, len); - //isdn_lock(); - DATA_B3_REQ(&cmsg, session->appl_id, 0, connection->ncci, (void *) alaw_buffer_tx, len, session->message_number++, 0); - //isdn_unlock(); -} - -/** - * \brief Send Fax - * \param tiff_file The Tiff file to send - * \param modem 0-3 (2400-14400) - * \param ecm Error correction mode (on/off) - * \param controller The controller for sending the fax - * \param src_no MSN - * \param trg_no Target fax number - * \param lsi Fax ident - * \param local_header_info Fax header line - * \param call_anonymous Send fax anonymous - * \return error code - */ -struct capi_connection *fax_send(gchar *tiff_file, gint modem, gint ecm, gint controller, gint cip, const gchar *src_no, const gchar *trg_no, const gchar *lsi, const gchar *local_header_info, gint call_anonymous) -{ - struct fax_status *status; - struct capi_connection *connection; - - g_debug("tiff: %s, modem: %d, ecm: %s, controller: %d, src: %s, trg: %s, ident: %s, header: %s, anonymous: %d)", tiff_file, modem, ecm ? "on" : "off", controller, src_no, trg_no, (lsi != NULL ? lsi : "(null)"), (local_header_info != NULL ? local_header_info : "(null)"), call_anonymous); - - //status = g_slice_new0(struct fax_status); - status = malloc(sizeof(struct fax_status)); - memset(status, 0, sizeof(struct fax_status)); - - status->phase = IDLE; - status->error_code = -1; - status->sending = 1; - status->manual_hookup = 0; - status->modem = modem; - status->ecm = ecm; - snprintf(status->header, sizeof(status->header), "%s", local_header_info); - snprintf(status->ident, sizeof(status->ident), "%s", lsi); - snprintf(status->src_no, sizeof(status->src_no), "%s", src_no); - snprintf(status->trg_no, sizeof(status->trg_no), "%s", trg_no); - snprintf(status->tiff_file, sizeof(status->tiff_file), "%s", tiff_file); - - connection = capi_call(controller, src_no, trg_no, (guint) call_anonymous, SESSION_FAX, cip, 1, 1, 0, NULL, NULL, NULL); - if (connection) { - status->connection = connection; - connection->priv = status; - spandsp_init(status->tiff_file, TRUE, status->modem, status->ecm, status->ident, status->header, connection); - } - - return connection; -} - -/** - * \brief Set fax debug level - * \param level debug level - */ -void fax_set_log_level(gint level) -{ - log_level = level; -} - -/** - * \brief Receive Fax - * \param tiff_file The Tiff file for saving the fax - * \param modem 0-3 (2400-14400) - * \param ecm Error correction mode (on/off) - * \param src_no MSN - * \param trg_no After receiving a fax, dst_no is the senders fax number - * \param manual_hookup: Hook up manually - * \return error code - */ -gint fax_receive(struct capi_connection *connection, const gchar *tiff_file, gint modem, gint ecm, const gchar *src_no, gchar *trg_no, gint manual_hookup) -{ - struct fax_status *status = NULL; - gint ret = -2; - - g_debug("tiff: %s, modem: %d, ecm: %s, src: %s, manual: %s)", tiff_file, modem, ecm ? "on" : "off", src_no, manual_hookup ? "on" : "off"); - - if (!connection) { - return ret; - } - - status = malloc(sizeof(struct fax_status)); - memset(status, 0, sizeof(struct fax_status)); - - status->phase = IDLE; - status->sending = 0; - status->modem = modem; - status->ecm = ecm; - status->manual_hookup = manual_hookup; - status->error_code = -1; - - snprintf(status->src_no, sizeof(status->src_no), "%s", src_no); - snprintf(status->tiff_file, sizeof(status->tiff_file), "%s", tiff_file); - - connection->priv = status; - - spandsp_init(status->tiff_file, FALSE, status->modem, status->ecm, status->ident, status->header, connection); - - snprintf(trg_no, sizeof(status->trg_no), "%s", status->trg_no); - - return 0; -} - -/** - * \brief Workaround for spandsp tx problem - * \param connection capi connection - */ -void fax_spandsp_workaround(struct capi_connection *connection) -{ - struct fax_status *status = connection->priv; - gint index; - - if (status->phase < PHASE_E) { - g_debug("Spandsp is not yet completed - give it a little more time..."); - - for (index = 0; index < 32768; index++) { - uint8_t buf[CAPI_PACKETS]; - - memset(buf, 128, CAPI_PACKETS); - spandsp_rx(status->fax_state, buf, CAPI_PACKETS); - spandsp_tx(status->fax_state, buf, CAPI_PACKETS); - - if (status->phase >= PHASE_E) { - return; - } - } - - g_debug("Workaround failed, phase is still: %d", status->phase); - } -} - -/** - * \brief Cleanup private fax structure from capi connection - * \param connection capi connection - */ -void fax_clean(struct capi_connection *connection) -{ - struct fax_status *status = connection->priv; - - spandsp_close(status->fax_state); - - free(status); - connection->priv = NULL; -} diff -Nru roger-router-1.8.14/libroutermanager/libfaxophone/fax.h roger-router-2.1.6/libroutermanager/libfaxophone/fax.h --- roger-router-1.8.14/libroutermanager/libfaxophone/fax.h 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/libfaxophone/fax.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,81 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -/** - * \file fax.h - * \brief Fax structures - */ - -#ifndef FAX_H -#define FAX_H - -#define SPANDSP_EXPOSE_INTERNAL_STRUCTURES -#include - -/* Service indicator (0x04=speech, 0x11=fax/g3) */ -#define SPEECH_CIP 0x04 -#define FAX_CIP 0x11 - -enum fax_phase { - IDLE = -1, - CONNECT = 1, - PHASE_B = 2, - PHASE_D = 3, - PHASE_E = 4, -}; - -struct fax_status { - gchar tiff_file[256]; - gchar src_no[64]; - gchar trg_no[64]; - gchar ident[64]; - gchar header[64]; - gchar remote_ident[64]; - - enum fax_phase phase; - gint error_code; - gboolean sending; - gchar ecm; - gchar modem; - gint bitrate; - gint encoding; - gint bad_rows; - gint page_current; - gint page_total; - gint bytes_received; - gint bytes_sent; - gint bytes_total; - gboolean manual_hookup; - gboolean done; - gboolean progress_status; - - struct capi_connection *connection; - - fax_state_t *fax_state; -}; - -struct capi_connection *fax_send(gchar *tiff_file, gint modem, gint ecm, gint controller, gint cip, const gchar *src_no, const gchar *trg_no, const gchar *lsi, const gchar *local_header_info, gint call_anonymous); -gint fax_recv(const gchar *tiff_file, gint modem, gint ecm, const gchar *src_no, gchar *trg_no, const gchar *lsi, const gchar *local_header_info, gint manual_hookup); - -void fax_transfer(struct capi_connection *connection, _cmsg message); -void fax_clean(struct capi_connection *connection); - -void fax_spandsp_workaround(struct capi_connection *connection); - -#endif diff -Nru roger-router-1.8.14/libroutermanager/libfaxophone/faxophone.c roger-router-2.1.6/libroutermanager/libfaxophone/faxophone.c --- roger-router-1.8.14/libroutermanager/libfaxophone/faxophone.c 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/libfaxophone/faxophone.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,1699 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -/** - * \file faxophone/faxophone.c - * \brief CAPI routines and main faxophone functions - */ - -#ifndef WIN32 -#include -#endif - -#include - -#include -#include -#include -#include -#include -#include - -//#define FAXOPHONE_DEBUG 1 - -/** The current active session */ -static struct session *session = NULL; -/** Unique connection id */ -static unsigned int id = 0; -/** capi thread pointer */ -static GThread *capi_thread = NULL; -/** quit capi loop thread flag */ -static unsigned char faxophone_quit = 1; - -/** - * \brief Dump capi error (UNUSED) - * \param error capi error number - */ -static void capi_error(long error) -{ - if (error != 0) { - g_debug("->Error: 0x%lX", error); - if (error == 0x3301) { - g_warning("Protocol Error Layer 1"); - } else if (error == 0x2001) { - g_warning("Message not supported in current state"); - } - if (session) { - session->handlers->status(NULL, error); - } - } -} - -/** - * \brief Set connection type, transfer and cleanup routine, b3 informations - * \param connection capi connection - * \param type connection type - * \return error code: 0 on success, otherwise error - */ -static int capi_connection_set_type(struct capi_connection *connection, int type) -{ - int result = 0; - - /* Set type */ - connection->type = type; - - /* Set informations depending on type */ - switch (type) { - case SESSION_PHONE: - connection->init_data = phone_init_data; - connection->data = phone_transfer; - connection->clean = NULL; - connection->early_b3 = 1; - break; - case SESSION_FAX: - connection->init_data = NULL; - connection->data = fax_transfer; - connection->clean = fax_clean; - connection->early_b3 = 0; - break; - case SESSION_SFF: - connection->init_data = sff_init_data; - connection->data = NULL; - connection->clean = sff_clean; - connection->early_b3 = 0; - break; - default: - g_debug("Unhandled session type!!"); - result = -1; - break; - } - - return result; -} - -/** - * \brief Return free capi connection index - * \return free connection index or -1 on error - */ -struct capi_connection *capi_get_free_connection(void) -{ - int i; - - if (!session) { - return NULL; - } - - for (i = 0; i < CAPI_CONNECTIONS; i++) { - if (session->connection[i].plci == 0 && session->connection[i].ncci == 0) { - session->connection[i].id = id++; - session->connection[i].state = STATE_IDLE; - return &session->connection[i]; - } - } - - return NULL; -} - -/** - * \brief Free capi connection - * \param connection capi connection - * \return error code - */ -static int capi_set_free(struct capi_connection *connection) -{ - /* reset connection */ - if (connection->priv != NULL) { - if (connection->clean) { - connection->clean(connection); - } else { - g_debug("Warning: Private data but no clean function"); - } - } - - memset(connection, 0, sizeof(struct capi_connection)); - - return 0; -} - -/** - * \brief Terminate selected connection - * \param connection connection we want to terminate - */ -void capi_hangup(struct capi_connection *connection) -{ - _cmsg cmsg1; - guint info = 0; - - if (connection == NULL) { - return; - } - - switch (connection->state) { - case STATE_CONNECT_WAIT: - case STATE_CONNECT_ACTIVE: - case STATE_DISCONNECT_B3_REQ: - case STATE_DISCONNECT_B3_WAIT: - case STATE_DISCONNECT_ACTIVE: - case STATE_INCOMING_WAIT: - g_debug("REQ: DISCONNECT - plci %ld", connection->plci); - - isdn_lock(); - info = DISCONNECT_REQ(&cmsg1, session->appl_id, 1, connection->plci, NULL, NULL, NULL, NULL); - isdn_unlock(); - - if (info != 0) { - connection->state = STATE_IDLE; - session->handlers->status(connection, info); - } else { - connection->state = STATE_DISCONNECT_ACTIVE; - } - break; - case STATE_CONNECT_B3_WAIT: - case STATE_CONNECTED: - g_debug("REQ: DISCONNECT_B3 - ncci %ld", connection->ncci); - - isdn_lock(); - info = DISCONNECT_B3_REQ(&cmsg1, session->appl_id, 1, connection->ncci, NULL); - isdn_unlock(); - - if (info != 0) { - /* retry with disconnect on whole connection */ - isdn_lock(); - info = DISCONNECT_REQ(&cmsg1, session->appl_id, 1, connection->plci, NULL, NULL, NULL, NULL); - isdn_unlock(); - if (info != 0) { - connection->state = STATE_IDLE; - session->handlers->status(connection, info); - } else { - connection->state = STATE_DISCONNECT_ACTIVE; - } - } else { - connection->state = STATE_DISCONNECT_B3_REQ; - } - break; - case STATE_RINGING: - /* reject the call */ - g_debug("RESP: CONNECT - plci %ld", connection->plci); - - isdn_lock(); - info = CONNECT_RESP(&cmsg1, session->appl_id, session->message_number++, connection->plci, 3, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); - isdn_unlock(); - connection->state = STATE_IDLE; - if (info != 0) { - session->handlers->status(connection, info); - } - - break; - case STATE_IDLE: - break; - default: - g_debug("Unexpected state 0x%x on disconnect", connection->state); - break; - } -} - -/** - * \brief Call number from target using CIP value - * \param controller controller id - * \param src_no source number - * \param trg_no target number - * \param call_anonymous call anonymous flag - * \param type connection type - * \param cip caller id - * \return error code - */ -struct capi_connection *capi_call( - unsigned controller, - const char *src_no, - const char *trg_no, - unsigned call_anonymous, - unsigned type, - unsigned cip, - _cword b1_protocol, - _cword b2_protocol, - _cword b3_protocol, - _cstruct b1_configuration, - _cstruct b2_configuration, - _cstruct b3_configuration) -{ - _cmsg cmsg; - unsigned char called_party_number[70]; - unsigned char calling_party_number[70]; - unsigned char bc[4]; - unsigned char llc[3]; - unsigned char hlc[3]; - struct capi_connection *connection = NULL; - int err = 0; - int intern = (trg_no[0] == '*') || (trg_no[0] == '#'); - - if (!session) { - return NULL; - } - - if (src_no == NULL || strlen(src_no) < 1 || trg_no == NULL || strlen(trg_no) < 1) { - g_debug("Wrong phone numbers!"); - return connection; - } - - /* Say hello */ - g_debug("REQ: CONNECT (%s->%s)", src_no, trg_no); - - /* get free connection */ - connection = capi_get_free_connection(); - if (connection == NULL) { - return connection; - } - - /* set connection type */ - capi_connection_set_type(connection, type); - - /* TargetNo */ - called_party_number[0] = 1 + strlen(trg_no); - called_party_number[1] = 0x80; - strncpy((char *) &called_party_number[2], trg_no, sizeof(called_party_number) - 3); - - /* MSN */ - calling_party_number[1] = 0x00; - calling_party_number[2] = 0x80; - - if (call_anonymous) { - calling_party_number[2] = 0xA0; - } - - if (intern) { - calling_party_number[0] = 2 + 5; - strncpy((char *) &calling_party_number[3], "**981", sizeof(calling_party_number) - 4); - - strncpy((char *) bc, "\x03\xE0\x90\xA3", sizeof(bc)); - } else { - calling_party_number[0] = 2 + strlen(src_no); - strncpy((char *) &calling_party_number[3], src_no, sizeof(calling_party_number) - 4); - - memset(bc, 0, sizeof(bc)); - } - strncpy((char *) llc, "\x02\x80\x90", sizeof(llc)); - - if (cip == 0x04) { - strncpy((char *) hlc, "\x02\x91\x81", sizeof(hlc)); - } else if (cip == 0x11) { - //strncpy((char *) hlc, "\x02\x91\x84", sizeof(hlc)); - //strncpy((char *) bc, "\x03\x90\x90\xA3", sizeof(bc)); - memset(bc, 0, sizeof(bc)); - memset(llc, 0, sizeof(llc)); - memset(hlc, 0, sizeof(hlc)); - } - - /* Request connect */ - isdn_lock(); - err = CONNECT_REQ( - /* CAPI Message */ - &cmsg, - /* Application ID */ - session->appl_id, - /* Message Number */ - 0, - /* Controller */ - controller, - /* CIP (Voice/Fax/...) */ - cip, - /* Called party number */ - (unsigned char *) called_party_number, - /* Calling party number */ - (unsigned char *) calling_party_number, - /* NULL */ - NULL, - /* NULL */ - NULL, - /* B1 Protocol */ - b1_protocol, - /* B2 Protocol */ - b2_protocol, - /* B3 Protocol */ - b3_protocol, - /* B1 Configuration */ - b1_configuration, - /* B2 Confguration */ - b2_configuration, - /* B3 Configuration */ - b3_configuration, - /* Rest... */ - NULL, - /* BC */ - (unsigned char *) bc, - /* LLC */ - (unsigned char *) llc, - /* HLC */ - (unsigned char *) hlc, - NULL, - NULL, - NULL, - NULL, - NULL); - isdn_unlock(); - - /* Error? */ - if (err) { - g_debug("(%d) Unable to send CONNECT_REQ!", err); - capi_error(err); - capi_set_free(connection); - connection = NULL; - return connection; - } - - connection->target = strdup(trg_no); - connection->source = strdup(src_no); - - return connection; -} - -/** - * \brief Pickup an incoming call - * \param connection incoming capi connection - * \param type handle connection as this type - * \return error code: 0 on success, otherwise error - */ -int capi_pickup(struct capi_connection *connection, int type) -{ - _cmsg message; - unsigned char local_num[4]; - struct session *session = faxophone_get_session(); - - capi_connection_set_type(connection, type); - - if (connection->state != STATE_RINGING) { - g_debug("CAPI Pickup called, even if not ringing"); - return -1; - } else { - local_num[0] = 0x00; - local_num[1] = 0x00; - local_num[2] = 0x00; - local_num[3] = 0x00; - - isdn_lock(); - g_debug("RESP: CAPI_CONNECT_RESP - plci %ld", connection->plci); - CONNECT_RESP(&message, session->appl_id, session->message_number++, connection->plci, 0, 1, 1, 0, 0, 0, 0, &local_num[0], NULL, NULL, NULL, NULL, NULL, NULL, NULL); - isdn_unlock(); - - /* connection initiated, wait for CONNECT_ACTIVE_IND */ - connection->state = STATE_INCOMING_WAIT; - } - - return 0; -} - -/** - * \brief Get the calling party number on CAPI_CONNECT - * \param cmsg CAPI message - * \param number buffer to store number - */ -static void capi_get_source_no(_cmsg *cmsg, char number[256]) -{ - unsigned char *pnX = CONNECT_IND_CALLINGPARTYNUMBER(cmsg); - unsigned int len = 0; - - memset(number, 0, 256); - - if (pnX == NULL) { - pnX = INFO_IND_INFOELEMENT(cmsg); - - if (pnX != NULL) { - len = (int) pnX[0]; - } - } else { - len = *CONNECT_IND_CALLINGPARTYNUMBER(cmsg); - } - - if (len <= 1) { - strcpy(number, "unknown"); - } else { - if (len > 256) { - len = 256 - 1; - } - - /*switch (pnX[1] & 112) { - case 32: - strcat(number, getLineAccesscode()); - break; - case 64: - strcat(number, getLineAccesscode()); - strcat(number, getAreacode()); - break; - }*/ - - /* get number */ - if (pnX[2] & 128) { - number[strlen(number) + pnX[0] - 1] = 0; - number[strlen(number) + pnX[0] - 2] = 0; - - memcpy(number + strlen(number), pnX + 3, (size_t)(pnX[0] - 2)); - } else { - number[strlen(number) + pnX[0]] = 0; - number[strlen(number) + pnX[0] - 1] = 0; - memcpy(number + strlen(number), pnX + 2, (size_t)(pnX[0] - 1)); - } - } - - if (!strlen(number)) { - strcpy(number, "anonymous"); - } -} - -/** - * \brief Get the called party number on CAPI_CONNECT - * \param cmsg CAPI message - * \param number buffer to store number - */ -static void capi_get_target_no(_cmsg *cmsg, char number[256]) -{ - unsigned char *x = CONNECT_IND_CALLEDPARTYNUMBER(cmsg); - unsigned int len = 0; - - memset(number, 0, 256); - - if (x == NULL) { - x = INFO_IND_INFOELEMENT(cmsg); - if (x != NULL) { - len = (int) x[0]; - } - } else { - len = *CONNECT_IND_CALLEDPARTYNUMBER(cmsg); - - if (CONNECT_IND_CALLEDPARTYNUMBER(cmsg)[0] == 0) { - len = 0; - } - } - - if (len <= 1) { - strcpy(number, "unknown"); - } else { - if (len > 256) { - len = 256 - 1; - } - - /* get number */ - /*if (strncmp((char *) x + 2, getCountrycode(), 2) == 0) { - number[strlen(number) + (size_t) x[0]] = 0; - number[strlen(number) + (size_t) x[0] - 1] = 0; - strcpy(number, "0"); - memcpy(number + 1, x + 2 + 2, len - 3); - } else*/ { - number[strlen(number) + (size_t) x[0]] = 0; - number[strlen(number) + (size_t) x[0] - 1] = 0; - memcpy(number + strlen(number), x + 2, (size_t)(x[0] - 1)); - } - } - - if (!strlen(number)) { - strcpy(number, "anonymous"); - } -} - -/** - * \brief Find capi connection by PLCI - * \param plci plci - * \return capi connection or NULL on error - */ -static struct capi_connection *capi_find_plci(int plci) -{ - int index; - - for (index = 0; index < CAPI_CONNECTIONS; index++) { - if (session->connection[index].plci == plci) { - return &session->connection[index]; - } - } - - return NULL; -} - -/** - * \brief Find newly created capi connection - * \return capi connection or NULL on error - */ -static struct capi_connection *capi_find_new(void) -{ - int index; - - for (index = 0; index < CAPI_CONNECTIONS; index++) { - if (session->connection[index].plci == 0 && session->connection[index].type != 0) { - return &session->connection[index]; - } - } - - return NULL; -} - -/** - * \brief Find capi connection by NCCI - * \param ncci ncci - * \return capi connection or NULL on error - */ -static struct capi_connection *capi_find_ncci(int ncci) -{ - int index; - - for (index = 0; index < CAPI_CONNECTIONS; index++) { - if (session->connection[index].ncci == ncci) { - return &session->connection[index]; - } - } - - return NULL; -} - -/** - * \brief Close capi - * \return error code - */ -static int capi_close(void) -{ - int index; - - if (session != NULL && session->appl_id != -1) { - for (index = 0; index < CAPI_CONNECTIONS; index++) { - if (session->connection[index].plci != 0 || session->connection[index].ncci != 0) { - capi_hangup(&session->connection[index]); - g_usleep(25); - } - } - - CAPI20_RELEASE(session->appl_id); - session->appl_id = -1; - } - - return 0; -} - -/** - * \brief CAPI respond connection - * \param plci plci - * \param nIgnore ignore connection - */ -static void capi_resp_connection(int plci, unsigned int ignore) -{ - _cmsg cmsg1; - - if (!ignore) { - /* *ring* */ - g_debug("REQ: ALERT - plci %d", plci); - isdn_lock(); - ALERT_REQ(&cmsg1, session->appl_id, 0, plci, NULL, NULL, NULL, NULL, NULL); - isdn_unlock(); - } else { - /* ignore */ - isdn_lock(); - CONNECT_RESP(&cmsg1, session->appl_id, session->message_number++, plci, ignore, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); - isdn_unlock(); - } -} - -/** - * \brief Enable DTMF support. - * \param isdn isdn device structure. - * \param ncci NCCI - */ -static void capi_enable_dtmf(struct capi_connection *connection) -{ - _cmsg message; - _cbyte facility[11]; - - /* Message length */ - facility[0] = 10; - /* DTMF ON: 0x01, DTMF OFF: 0x02 */ - facility[1] = (_cbyte) 0x01; - /* NULL */ - facility[2] = 0x00; - /* DTMF Duration */ - facility[3] = 0x40; - /* NULL */ - facility[4] = 0x00; - /* DTMF Duration */ - facility[5] = 0x40; - /* NULL */ - facility[6] = 0x00; - /* NULL */ - facility[7] = 0x00; - /* 2 */ - facility[8] = 0x02; - /* NULL */ - facility[9] = 0x00; - /* NULL */ - facility[10] = 0x00; - - g_debug("Enable DTMF for PLCI %ld", connection->plci); - - /* 0x01 = DTMF selector */ - isdn_lock(); - FACILITY_REQ(&message, session->appl_id, 0/*isdn->message_number++*/, connection->plci, 0x01, (unsigned char *) facility); - isdn_unlock(); -} - -/** - * \brief Signal DTMF code to application - * \param connection active capi connection - * \param dtmf DTMF code - */ -static void capi_get_dtmf_code(struct capi_connection *connection, unsigned char dtmf) -{ - if (dtmf == 0) { - return; - } - - if (!isdigit(dtmf)) { - if (dtmf != '#' && dtmf != '*') { - return; - } - } - - session->handlers->code(connection, dtmf); -} - -/** - * \brief Send DTMF to remote - * \param connection active capi connection - * \param dtmf DTMF code we want to send - */ -void capi_send_dtmf_code(struct capi_connection *connection, unsigned char dtmf) -{ - _cmsg message; - _cbyte facility[32]; - - g_debug("dtmf: %c", dtmf); - - /* Message length */ - facility[0] = 0x08; - /* Send DTMF 0x03 */ - facility[1] = (_cbyte) 0x03; - /* NULL */ - facility[2] = 0x00; - /* DTMF Duration */ - facility[3] = 0x30; - /* NULL */ - facility[4] = 0x00; - /* DTMF Duration */ - facility[5] = 0x30; - /* NULL */ - facility[6] = 0x00; - /* NULL */ - facility[7] = 0x01; - /* NULL */ - facility[8] = dtmf; - - g_debug("Sending DTMF code for NCCI %ld", connection->ncci); - - /* 0x01 = DTMF selector */ - isdn_lock(); - FACILITY_REQ(&message, session->appl_id, 0/*isdn->message_number++*/, connection->ncci, 0x01, (unsigned char *) facility); - isdn_unlock(); -} - -/** - * \brief Send display message to remote - * \param connection active capi connection - * \param pnDtmf text we want to send - */ -void capi_send_display_message(struct capi_connection *connection, char *text) -{ - _cmsg message; - _cbyte facility[62 + 3]; - int len = 31; - - g_debug("Sending text: '%s'", text); - memset(facility, 0, sizeof(facility)); - - if (strlen(text) < 31) { - len = strlen(text); - } - - /* Complete length */ - facility[0] = len + 2; - /* Send DTMF 0x03 */ - facility[1] = (_cbyte) 0x28; - /* Message length */ - facility[0] = len; - - strncpy((char *) facility + 3, text, len); - - isdn_lock(); - INFO_REQ(&message, session->appl_id, 0, connection->plci, (unsigned char *) "", (unsigned char *) "", (unsigned char *) "", (unsigned char *) "", (unsigned char *) facility, NULL); - isdn_unlock(); -} - -/** - * \brief CAPI indication - * \param capi_message capi message structure - * \return error code - */ -static int capi_indication(_cmsg capi_message) -{ - _cmsg cmsg1; - int plci = -1; - int ncci = -1; - char source_phone_number[256]; - char target_phone_number[256]; - int cip = -1; - struct capi_connection *connection = NULL; - int reject = 0; - int info; - char info_element[128]; - int index; - int nTmp; - - switch (capi_message.Command) { - case CAPI_CONNECT: - /* CAPI_CONNECT - Connect indication when called from remote phone */ - plci = CONNECT_IND_PLCI(&capi_message); - cip = CONNECT_IND_CIPVALUE(&capi_message); - - capi_get_source_no(&capi_message, source_phone_number); - capi_get_target_no(&capi_message, target_phone_number); - - g_debug("IND: CAPI_CONNECT - plci %d, source %s, target %s, cip: %d", plci, (source_phone_number), (target_phone_number), cip); - - reject = 0; - - if (cip != 16 && cip != 1 && cip != 4 && cip != 17) { - /* not telephony nor fax, ignore */ - reject = 1; - } - -#ifdef ACCEPT_INTERN - if (reject && strncmp(source_phone_number, "**", 2)) { -#else - if (reject) { -#endif - /* Ignore */ - g_debug("IND: CAPI_CONNECT - plci: %d, ncci: %d - IGNORING (%s <- %s)", plci, 0, target_phone_number, source_phone_number); - capi_resp_connection(plci, 1); - } else { - connection = capi_get_free_connection(); - - connection->type = SESSION_NONE; - connection->state = STATE_RINGING; - connection->plci = plci; - connection->source = g_strdup(source_phone_number); - connection->target = g_strdup(target_phone_number); - - capi_resp_connection(plci, 0); - - } - - break; - - /* CAPI_CONNECT_ACTIVE - Active */ - case CAPI_CONNECT_ACTIVE: - plci = CONNECT_ACTIVE_IND_PLCI(&capi_message); - - g_debug("IND: CAPI_CONNECT_ACTIVE - plci %d", plci); - - g_debug("RESP: CAPI_CONNECT_ACTIVE - plci %d", plci); - isdn_lock(); - CONNECT_ACTIVE_RESP(&cmsg1, session->appl_id, session->message_number++, plci); - isdn_unlock(); - - connection = capi_find_plci(plci); - if (connection == NULL) { - g_debug("Wrong PLCI 0x%x", plci); - break; - } - g_debug("IND: CAPI_CONNECT_ACTIVE - connection: %d, plci: %ld", connection->id, connection->plci); - - /* Request B3 when sending... */ - if (connection->state == STATE_INCOMING_WAIT) { - connection->connect_time = time(NULL); - - connection->state = STATE_CONNECT_ACTIVE; - if (connection->type == SESSION_PHONE) { - connection->audio = session->handlers->audio_open(); - if (!connection->audio) { - g_warning("Could not open audio. Hangup"); - capi_hangup(connection); - connection->audio = NULL; - } - } - } else if (connection->early_b3 == 0) { - g_debug("REQ: CONNECT_B3 - nplci %d", plci); - isdn_lock(); - info = CONNECT_B3_REQ(&cmsg1, session->appl_id, 0, plci, 0); - isdn_unlock(); - - if (info != 0) { - session->handlers->status(connection, info); - /* initiate hangup on PLCI */ - capi_hangup(connection); - } else { - /* wait for CONNECT_B3, then announce result to application via callback */ - connection->connect_time = time(NULL); - - connection->state = STATE_CONNECT_ACTIVE; - if (connection->type == SESSION_PHONE) { - connection->audio = session->handlers->audio_open(); - if (!connection->audio) { - g_warning("Could not open audio. Hangup"); - emit_message(0, "Could not open audio. Hangup"); - capi_hangup(connection); - connection->audio = NULL; - } - } - } - } - - break; - - /* CAPI_CONNECT_B3 - data connect */ - case CAPI_CONNECT_B3: - g_debug("IND: CAPI_CONNECT_B3"); - ncci = CONNECT_B3_IND_NCCI(&capi_message); - plci = ncci & 0x0000ffff; - - connection = capi_find_plci(plci); - if (connection == NULL) { - break; - } - - /* Answer the info message */ - isdn_lock(); - CONNECT_B3_RESP(&cmsg1, session->appl_id, session->message_number++, ncci, 0, (_cstruct) NULL); - isdn_unlock(); - - if (connection->state == STATE_CONNECT_ACTIVE) { - connection->ncci = ncci; - connection->state = STATE_CONNECT_B3_WAIT; - } else { - /* Wrong connection state for B3 connect, trigger disconnect */ - capi_hangup(connection); - } - break; - - /* CAPI_CONNECT_B3_ACTIVE - data active */ - case CAPI_CONNECT_B3_ACTIVE: - g_debug("IND: CAPI_CONNECT_B3_ACTIVE"); - ncci = CONNECT_B3_ACTIVE_IND_NCCI(&capi_message); - plci = ncci & 0x0000ffff; - - connection = capi_find_plci(plci); - if (connection == NULL) { - g_debug("Wrong NCCI, got 0x%x", ncci); - break; - } - - connection->ncci = ncci; - - isdn_lock(); - CONNECT_B3_ACTIVE_RESP(&cmsg1, session->appl_id, session->message_number++, ncci); - isdn_unlock(); - - connection->state = STATE_CONNECTED; - - capi_enable_dtmf(connection); - if (connection->init_data) { - connection->init_data(connection); - } - - /* notify application about successful call establishment */ - session->handlers->connected(connection); - break; - - /* CAPI_DATA_B3 - data - receive/send */ - case CAPI_DATA_B3: -#ifdef FAXOPHONE_DEBUG - g_debug("IND: CAPI_DATA_B3"); -#endif - ncci = DATA_B3_IND_NCCI(&capi_message); - - connection = capi_find_ncci(ncci); - if (connection == NULL) { - break; - } - -#ifdef FAXOPHONE_DEBUG - g_debug("IND: CAPI_DATA_B3 - nConnection: %d, plci: %ld, ncci: %ld", connection->id, connection->plci, connection->ncci); -#endif - connection->data(connection, capi_message); - - break; - - /* CAPI_FACILITY - Facility (DTMF) */ - case CAPI_FACILITY: - g_debug("IND: CAPI_FACILITY"); - ncci = CONNECT_B3_IND_NCCI(&capi_message); - plci = ncci & 0x0000ffff; - - isdn_lock(); - FACILITY_RESP(&cmsg1, session->appl_id, session->message_number++, plci, FACILITY_IND_FACILITYSELECTOR(&capi_message), FACILITY_IND_FACILITYINDICATIONPARAMETER(&capi_message)); - isdn_unlock(); - - connection = capi_find_plci(plci); - if (connection == NULL) { - break; - } - - g_debug("IND: CAPI_FACILITY %d", FACILITY_IND_FACILITYSELECTOR(&capi_message)); - switch (FACILITY_IND_FACILITYSELECTOR(&capi_message)) { - case 0x0001: - /* DTMF */ - capi_get_dtmf_code(connection, (unsigned char) FACILITY_IND_FACILITYINDICATIONPARAMETER(&capi_message)[1]); - break; - case 0x0003: - /* Supplementary Services */ - nTmp = (unsigned int)(((unsigned int) FACILITY_IND_FACILITYINDICATIONPARAMETER(&capi_message)[1]) | ((unsigned int) FACILITY_IND_FACILITYINDICATIONPARAMETER(&capi_message)[3] << 8)); - - g_debug("%x %x %x %x %x %x", FACILITY_IND_FACILITYINDICATIONPARAMETER(&capi_message)[0], - FACILITY_IND_FACILITYINDICATIONPARAMETER(&capi_message)[1], - FACILITY_IND_FACILITYINDICATIONPARAMETER(&capi_message)[2], - FACILITY_IND_FACILITYINDICATIONPARAMETER(&capi_message)[3], - FACILITY_IND_FACILITYINDICATIONPARAMETER(&capi_message)[4], - FACILITY_IND_FACILITYINDICATIONPARAMETER(&capi_message)[5]); - if (nTmp == 0x0203) { - /* Retrieve */ - g_debug("FACILITY: RETRIEVE"); - isdn_lock(); - info = CONNECT_B3_REQ(&cmsg1, session->appl_id, 0, plci, 0); - isdn_unlock(); - - if (info != 0) { - session->handlers->status(connection, info); - /* initiate hangup on PLCI */ - capi_hangup(connection); - } else { - /* wait for CONNECT_B3, then announce result to application via callback */ - connection->state = STATE_CONNECT_ACTIVE; - } - } else if (nTmp == 0x0202) { - /* Hold */ - g_debug("FACILITY: HOLD"); - } else { - g_debug("FACILITY: Unknown %x", nTmp); - } - break; - default: - g_debug("Unhandled facility selector!! %x", FACILITY_IND_FACILITYSELECTOR(&capi_message)); - break; - } - break; - - /* CAPI_INFO */ - case CAPI_INFO: - plci = INFO_IND_PLCI(&capi_message); - info = INFO_IND_INFONUMBER(&capi_message); - - /* Respond to INFO */ - isdn_lock(); - INFO_RESP(&cmsg1, session->appl_id, session->message_number++, plci); - isdn_unlock(); - - memset(info_element, 0, sizeof(info_element)); - for (index = 0; index < sizeof(info_element); index++) { - info_element[index] = INFO_IND_INFOELEMENT(&capi_message)[index]; - } - - switch (info) { - case 0x0008: - /* Cause */ - g_debug("CAPI_INFO - CAUSE"); - g_debug("Hangup cause: 0x%x", info_element[2] & 0x7F); - break; - case 0x00014: - /* Call state */ - g_debug("CAPI_INFO - CALL STATE (0x%02x)", info_element[0]); - break; - case 0x0018: - /* Channel identification */ - g_debug("CAPI_INFO - CHANNEL IDENTIFICATION (0x%02x)", info_element[0]); - break; - case 0x001C: - /* Facility Q.932 */ - g_debug("CAPI_INFO - FACILITY Q.932"); - break; - case 0x001E: - /* Progress Indicator */ - g_debug("CAPI_INFO - PROGRESS INDICATOR (0x%02x)", info_element[0]); - if (info_element[0] < 2) { - g_debug("CAPI_INFO - Progress description missing"); - } else { - switch (info_element[2] & 0x7F) { - case 0x01: - g_debug("CAPI_INFO - Not end-to-end ISDN"); - break; - case 0x02: - g_debug("CAPI_INFO - Destination is non ISDN"); - break; - case 0x03: - g_debug("CAPI_INFO - Origination is non ISDN"); - break; - case 0x04: - g_debug("CAPI_INFO - Call returned to ISDN"); - break; - case 0x05: - g_debug("CAPI_INFO - Interworking occurred"); - break; - case 0x08: - g_debug("CAPI_INFO - In-band information available"); - break; - default: - g_debug("CAPI_INFO - Unknown progress description 0x%02x", info_element[2]); - break; - } - } - break; - case 0x0027: - /* Notification Indicator */ - switch ((unsigned int) info_element[0]) { - case 0: - g_debug("CAPI_INFO - NI - CALL SUSPENDED (%d)", info_element[0]); - break; - case 1: - g_debug("CAPI_INFO - NI - CALL RESUMED (%d)", info_element[0]); - break; - case 2: - g_debug("CAPI_INFO - NI - BEARER SERVICE CHANGED (%d)", info_element[0]); - break; - case 0xF9: - g_debug("CAPI_INFO - NI - PUT ON HOLD (%d)", info_element[0]); - break; - case 0xFA: - g_debug("CAPI_INFO - NI - RETRIEVED FROM HOLD (%d)", info_element[0]); - break; - default: - g_debug("CAPI_INFO - NI - UNKNOWN (%d)", info_element[0]); - break; - } - break; - case 0x0028: - /* Display */ - g_debug("CAPI_INFO - DISPLAY"); - break; - case 0x0029: - /* DateTime */ - g_debug("CAPI_INFO - DATE/TIME (%02d/%02d/%02d %02d:%02d)", - info_element[0], info_element[1], info_element[2], info_element[3], info_element[4]); - break; - case 0x002C: - /* Keypad facility */ - g_debug("CAPI_INFO - KEYPAD FACILITY"); - break; - case 0x006C: { - /* Caller party number */ - //int tmp; - - //g_debug("CAPI_INFO - CALLER PARTY NUMBER (%.%s)", info_element[0], &info_element[1]); - g_debug("CAPI_INFO - CALLER PARTY NUMBER"); - - /*for (tmp = 0; tmp < sizeof(info_element); tmp++) { - g_debug("InfoElement (%d): %x (%c)", tmp, info_element[tmp], info_element[tmp]); - }*/ - break; - } - case 0x0070: - /* Called Party Number */ - g_debug("CAPI_INFO - CALLED PARTY NUMBER"); - break; - case 0x0074: - /* Redirecting Number */ - g_debug("CAPI_INFO - REDIRECTING NUMBER"); - break; - case 0x00A1: - /* Sending complete */ - g_debug("CAPI_INFO - SENDING COMPLETE"); - break; - case 0x4000: - /* Charge in Units */ - g_debug("CAPI_INFO - CHARGE IN UNITS"); - break; - case 0x4001: - /* Charge in Currency */ - g_debug("CAPI_INFO - CHARGE IN CURRENCY"); - break; - case 0x8001: - /* Alerting */ - g_debug("CAPI_INFO - ALERTING (Setup early...)"); - break; - case 0x8002: - /* Call Proceeding */ - g_debug("CAPI_INFO - CALL PROCEEDING"); - break; - case 0x8003: - /* Progress */ - g_debug("CAPI_INFO - PROGRESS (Setup early...)"); - break; - case 0x8005: - /* Setup */ - g_debug("CAPI_INFO - SETUP"); - break; - case 0x8007: - /* Connect */ - g_debug("CAPI_INFO - CONNECT"); - break; - case 0x800D: - /* Setup ACK */ - g_debug("CAPI_INFO - SETUP ACK"); - break; - case 0x800F: - /* Connect ACK */ - g_debug("CAPI_INFO - CONNECT ACK"); - break; - case 0x8045: - /* Disconnect */ - connection = capi_find_plci(plci); - - if (connection == NULL) { - break; - } - g_debug("CAPI_INFO information indicated disconnect, so terminate connection"); - - capi_hangup(connection); - break; - case 0x804D: - /* Release */ - g_debug("CAPI_INFO - RELEASE"); - break; - case 0x805A: - /* Release Complete */ - g_debug("CAPI_INFO - RELEASE COMPLETE"); - break; - case 0x8062: - /* Facility */ - g_debug("CAPI_INFO - FACILITY"); - break; - case 0x806E: - /* Notify */ - g_debug("CAPI_INFO - NOTIFY"); - break; - case 0x807B: - /* Information */ - g_debug("CAPI_INFO - INFORMATION"); - break; - case 0x807D: - /* status */ - g_debug("CAPI_INFO - STATUS"); - break; - default: - /* Unknown */ - g_debug("CAPI_INFO - UNKNOWN INFO (0x%02x)", info); - break; - } - - connection = capi_find_plci(plci); - if (connection != NULL) { - if (connection->early_b3 != 0 && connection->state == STATE_CONNECT_WAIT && info == 0x001E) { - g_debug("REQ: CONNECT_B3 - Early-B3"); - - isdn_lock(); - CONNECT_B3_REQ(&cmsg1, session->appl_id, 0, plci, 0); - isdn_unlock(); - - connection->connect_time = time(NULL); - if (connection->type == SESSION_PHONE) { - connection->audio = session->handlers->audio_open(); - if (!connection->audio) { - g_warning("Could not open audio. Hangup"); - emit_message(0, "Could not open audio. Hangup"); - capi_hangup(connection); - connection->audio = NULL; - } else { - connection->state = STATE_CONNECT_ACTIVE; - } - } else { - connection->state = STATE_CONNECT_ACTIVE; - } - } - } - break; - - /* CAPI_DISCONNECT_B3 - Disconnect data */ - case CAPI_DISCONNECT_B3: - g_debug("IND: DISCONNECT_B3"); - ncci = DISCONNECT_B3_IND_NCCI(&capi_message); - plci = ncci & 0x0000ffff; - - isdn_lock(); - DISCONNECT_B3_RESP(&cmsg1, session->appl_id, session->message_number++, ncci); - isdn_unlock(); - - connection = capi_find_ncci(ncci); - if (connection == NULL) { - break; - } - - connection->reason_b3 = DISCONNECT_B3_IND_REASON_B3(&capi_message); - connection->ncci = 0; - if (connection->state == STATE_CONNECTED || connection->state == STATE_CONNECT_B3_WAIT) { - /* passive disconnect, DISCONNECT_IND comes later */ - connection->state = STATE_DISCONNECT_ACTIVE; - } else { - /* active disconnect, needs to send DISCONNECT_REQ */ - capi_hangup(connection); - } - - g_debug("IND: CAPI_DISCONNECT_B3 - connection: %d, plci: %ld, ncci: %ld", connection->id, connection->plci, connection->ncci); - break; - - /* CAPI_DISCONNECT - Disconnect */ - case CAPI_DISCONNECT: - plci = DISCONNECT_IND_PLCI(&capi_message); - info = DISCONNECT_IND_REASON(&capi_message); - - g_debug("IND: DISCONNECT - plci %d", plci); - - g_debug("RESP: DISCONNECT - plci %d", plci); - isdn_lock(); - DISCONNECT_RESP(&cmsg1, session->appl_id, session->message_number++, plci); - isdn_unlock(); - - connection = capi_find_plci(plci); - if (connection == NULL) { - g_debug("Connection not found, IGNORING"); - break; - } - - /* CAPI-Error code */ - connection->reason = DISCONNECT_IND_REASON(&capi_message); - connection->state = STATE_IDLE; - connection->ncci = 0; - connection->plci = 0; - - switch (connection->type) { - case SESSION_PHONE: - if (session->input_thread_state == 1) { - session->input_thread_state++; - do { - g_usleep(10); - } while (session->input_thread_state != 0); - } - session->handlers->audio_close(connection->audio); - break; - case SESSION_FAX: - /* Fax workaround */ - fax_spandsp_workaround(connection); - break; - default: - break; - } - - session->handlers->disconnected(connection); - - capi_set_free(connection); - break; - default: - g_debug("Unhandled command 0x%x", capi_message.Command); - break; - } - - return 0; -} - -/** - * \brief CAPI confirmation - * \param capi_message capi message structure - */ -static void capi_confirmation(_cmsg capi_message) -{ - struct capi_connection *connection = NULL; - unsigned int info; - unsigned int plci; - unsigned int ncci; -#ifdef FAXOPHONE_DEBUG - int controller; -#endif - - switch (capi_message.Command) { - case CAPI_FACILITY: - /* Facility */ - g_debug("CNF: CAPI_FACILITY; Info: %d", capi_message.Info); - break; - case CAPI_LISTEN: - /* Listen confirmation */ -#ifdef FAXOPHONE_DEBUG - controller = LISTEN_CONF_CONTROLLER(&capi_message); - g_debug("CNF: CAPI_LISTEN: controller %d, info %d", controller, capi_message.Info); -#endif - break; - case CAPI_ALERT: - /* Alert message */ - g_debug("CNF: CAPI_ALERT"); - info = ALERT_CONF_INFO(&capi_message); - plci = ALERT_CONF_PLCI(&capi_message); - - g_debug("CNF: CAPI_ALERT: info %d, plci %d", info, plci); - - connection = capi_find_plci(plci); - - if (info != 0 && info != 3) { - if (connection != NULL) { - connection->state = STATE_IDLE; - } - } else { - session->handlers->ring(connection); - } - break; - case CAPI_DATA_B3: - /* Sent data acknowledge, NOP */ -#ifdef FAXOPHONE_DEBUG - g_debug("CNF: DATA_B3"); -#endif - info = DATA_B3_CONF_INFO(&capi_message); - ncci = DATA_B3_CONF_NCCI(&capi_message); - -#ifdef FAXOPHONE_DEBUG - g_debug("CNF: CAPI_ALERT: info %d, ncci %d", info, ncci); -#endif - - connection = capi_find_ncci(ncci); - if (connection && connection->use_buffers && connection->buffers) { - connection->buffers--; - } - break; - case CAPI_INFO: - /* Info, NOP */ - g_debug("CNF: CAPI_INFO: info %d", capi_message.Info); - break; - case CAPI_CONNECT: - /* Physical channel connection is being established */ - plci = CONNECT_CONF_PLCI(&capi_message); - info = CONNECT_CONF_INFO(&capi_message); - - g_debug("CNF: CAPI_CONNECT - (plci: %d, info: %d)", plci, info); - /* .. or new outgoing call? get plci. */ - connection = capi_find_new(); - if (connection == NULL) { - g_debug("CND: CAPI_CONNECT - Warning! Received confirmation but we didn't requested a connect!!!"); - break; - } - - if (info != 0) { - /* Connection error */ - connection->state = STATE_IDLE; - - session->handlers->status(connection, info); - - capi_set_free(connection); - } else { - /* CONNECT_ACTIVE_IND comes later, when connection actually established */ - connection->plci = plci; - connection->state = STATE_CONNECT_WAIT; - } - break; - case CAPI_CONNECT_B3: - plci = CONNECT_CONF_PLCI(&capi_message); - - g_debug("CNF: CAPI_CONNECT_B3"); - capi_error(capi_message.Info); - break; - case CAPI_DISCONNECT: - g_debug("CNF: CAPI_DISCONNECT"); - break; - case CAPI_DISCONNECT_B3: - g_debug("CNF: CAPI_DISCONNECT_B3"); - break; - default: - g_debug("Unhandled confirmation, command 0x%x", capi_message.Command); - break; - } -} - -static int capi_init(int controller); - -/** - * \brief Our connection seems to be broken - reconnect - * \param session faxophone session pointer - * \return error code - */ -static void faxophone_reconnect(struct session *session) -{ - isdn_lock(); - capi_close(); - - session->appl_id = capi_init(-1); - - isdn_unlock(); -} - -/** - * \brief Main capi loop function - * \param user_data unused pointer - * \return NULL - */ -static gpointer capi_loop(void *user_data) -{ - struct timeval time_val; - unsigned int info; - unsigned int ret; - _cmsg capi_message; - - while (!faxophone_quit) { - time_val.tv_sec = 1; - time_val.tv_usec = 0; - - ret = CAPI20_WaitforMessage(session->appl_id, &time_val); - if (ret == CapiNoError) { - isdn_lock(); - info = capi_get_cmsg(&capi_message, session->appl_id); - isdn_unlock(); - - switch (info) { - case CapiNoError: - switch (capi_message.Subcommand) { - /* Indication */ - case CAPI_IND: - capi_indication(capi_message); - break; - /* Confirmation */ - case CAPI_CONF: - capi_confirmation(capi_message); - break; - } - break; - case CapiReceiveQueueEmpty: - g_warning("Empty queue, even if message pending.. reconnecting"); - g_usleep(1 * G_USEC_PER_SEC); - faxophone_reconnect(session); - break; - default: - return NULL; - } - } else if (!faxophone_quit) { - if (session == NULL || session->appl_id == -1) { - g_usleep(1 * G_USEC_PER_SEC); - } else { - g_usleep(1); - } - } - } - - session = NULL; - - return NULL; -} - -/** - * \brief get capi profile - * Convert capi_profile data from wire format to host format - * \param Controller capi controller - * \param host host formated capi profile pointer - * \return error code - */ -static int get_capi_profile(unsigned controller, struct capi_profile *host) -{ - int ret_val = CAPI20_GET_PROFILE(controller, (unsigned char *) host); - - if (ret_val == 0) { - } - - return ret_val; -} - -/** - * \brief Initialize CAPI controller - * \param controller controller id - * \return error code - */ -static int capi_init(int controller) -{ - CAPI_REGISTER_ERROR error_code = 0; - _cmsg capi_message; - unsigned int appl_id = -1; -#ifdef FAXOPHONE_DEBUG - unsigned char buffer[64]; -#endif - int index; - int start = 0; - int end = 0; - int num_controllers = 0; - struct capi_profile profile; - - /* Check if capi is installed */ - error_code = CAPI20_ISINSTALLED(); - if (error_code != 0) { - g_warning("CAPI 2.0: not installed, RC=0x%x", error_code); - return -1; - } - - /* Fetch controller/bchannel count */ - error_code = get_capi_profile(0, &profile); - if (error_code != 0) { - g_warning("CAPI 2.0: Error getting profile, RC=0x%x", error_code); - return -1; - } - - /* If there are no available controllers something went wrong, abort */ - num_controllers = profile.ncontroller; - if (num_controllers == 0) { - g_warning("CAPI 2.0: No ISDN controllers installed"); - return -1; - } - -#ifdef FAXOPHONE_DEBUG - /* Read manufacturer and version from device (entry 0) */ - g_debug("CAPI 2.0: Controllers found: %d", num_controllers); - if (capi20_get_manufacturer(0, buffer)) { - g_debug("CAPI 2.0: Manufacturer: %s", buffer); - } - if (capi20_get_version(0, buffer)) { - g_debug("CAPI 2.0: Version %d.%d/%d.%d", - buffer[0], buffer[1], buffer[2], buffer[3]); - } -#endif - - /* Listen to all (<=0) or single controller (>=1) */ - if (controller <= 0) { - start = 1; - end = num_controllers; - } else { - start = controller; - end = controller; - } - - /* Register with CAPI */ - if (appl_id == -1) { - error_code = CAPI20_REGISTER(CAPI_BCHANNELS, CAPI_BUFFERCNT, CAPI_PACKETS, &appl_id); - if (error_code != 0 || appl_id == 0) { - g_debug("Error while registering application, RC=0x%x", error_code); - /* registration error! */ - return -2; - } - } - - /* Listen to CAPI controller(s) */ - for (index = start; index <= end; index++) { - error_code = LISTEN_REQ(&capi_message, appl_id, 0, index, 0x3FF, 0x1FFF03FF, 0, NULL, NULL); - if (error_code != 0) { - g_debug("LISTEN_REQ failed, RC=0x%x", error_code); - return -3; - } - - g_debug("Listen to controller #%d ...", index); -#ifdef FAXOPHONE_DEBUG - g_debug("Listen to controller #%d ...", index); -#endif - } - - g_debug("CAPI connection established!"); - - /* ok! */ - return appl_id; -} - -void setHostName(const char *); - -/** - * \brief Initialize faxophone structure - * \param handlers session handlers - * \param host host name of router - * \param controller listen controller or -1 for all - * \return session pointer or NULL on error - */ -struct session *faxophone_init(struct session_handlers *handlers, const char *host, gint controller) -{ - int appl_id = -1; - - create_table_buffer(); - - if (session == NULL) { - if (host != NULL) { -#if HAVE_CAPI_36 - capi20ext_set_driver("fritzbox"); - capi20ext_set_host((char *) host); - capi20ext_set_port(5031); - capi20ext_set_tracelevel(0); -#else - setHostName(host); -#endif - } - - appl_id = capi_init(controller); - if (appl_id <= 0) { - g_debug("Initialization failed! Error %d!", appl_id); - - return NULL; - } else { - session = g_slice_alloc0(sizeof(struct session)); - - g_mutex_init(&session->isdn_mutex); - - session->handlers = handlers; - - session->appl_id = appl_id; - - /* start capi transmission loop */ - faxophone_quit = 0; - capi_thread = CREATE_THREAD("capi", capi_loop, NULL); -#ifndef WIN32 - setpriority(PRIO_PROCESS, 0, -10); -#endif - } - } - - return session; -} - -/** - * \brief Destroy faxophone - * \param force force flag for capi_close() - * \return error code 0 - */ -int faxophone_close(int force) -{ - /* Close capi connection */ - //if (!force) { - capi_close(); - //} - - if (session != NULL) { - /* TODO: clear session! */ - faxophone_quit = 1; - if (capi_thread != NULL) { - g_thread_join(capi_thread); - } - faxophone_quit = 0; - capi_thread = NULL; - } - - session = NULL; - - return 0; -} - -/** - * \brief Get active faxophone session - * \return session pointer or NULL on error - */ -struct session *faxophone_get_session(void) -{ - return session; -} diff -Nru roger-router-1.8.14/libroutermanager/libfaxophone/faxophone.h roger-router-2.1.6/libroutermanager/libfaxophone/faxophone.h --- roger-router-1.8.14/libroutermanager/libfaxophone/faxophone.h 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/libfaxophone/faxophone.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,193 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -/** - * \file faxophone.h - * \brief faxophone main header - */ - -#ifndef FAXOPHONE_H -#define FAXOPHONE_H - -/* CAPI headers */ -#include - -#ifdef __linux__ -#include -#else - -typedef unsigned short uint16_t; -typedef unsigned int uint32_t; - -typedef struct capi_profile { - uint16_t ncontroller; - uint16_t nbchannel; - uint32_t goptions; - uint32_t support1; - uint32_t support2; - uint32_t support3; - uint32_t reserved[6]; - uint32_t manu[5]; -} capi_profile; -#endif - -/* GLIB */ -#include - -/* C */ -#include -#include - -#include - -#define CAPI_CONNECTIONS 5 -/* Packet size */ -#define CAPI_PACKETS 160 -/* Packer buffer count */ -#define CAPI_BUFFERCNT 6 -/* max. B-Channels */ -#define CAPI_BCHANNELS 2 - -#define USE_ISDN_MUTEX 1 - -#ifdef USE_ISDN_MUTEX -#define isdn_lock() do { g_mutex_lock(&session->isdn_mutex); } while (0); -#define isdn_unlock() do { g_mutex_unlock(&session->isdn_mutex); } while (0); -#else -#define isdn_lock() -#define isdn_unlock() -#endif - -#undef CREATE_THREAD -#define CREATE_THREAD(name, func, data) g_thread_new(name, func, data) - -enum state { - STATE_IDLE = 0, - STATE_CONNECT_REQ, - STATE_CONNECT_WAIT, - STATE_CONNECT_ACTIVE, - STATE_CONNECT_B3_WAIT, - STATE_CONNECTED, - STATE_DISCONNECT_B3_REQ, - STATE_DISCONNECT_B3_WAIT, - STATE_DISCONNECT_ACTIVE, - STATE_DISCONNET_WAIT, - STATE_RINGING, - STATE_INCOMING_WAIT, - STATE_MAXSTATE -}; - -enum session_type { - SESSION_NONE, - SESSION_FAX, - SESSION_PHONE, - SESSION_SFF -}; - -#define RECORDING_BUFSIZE 32768 -#define RECORDING_JITTER 200 - -enum recording { - RECORDING_LOCAL, - RECORDING_REMOTE -}; - -struct record_channel { - gint64 position; - short buffer[RECORDING_BUFSIZE]; -}; - -struct recorder { - SNDFILE *file; - char *file_name; - - gint64 start_time; - struct record_channel local; - struct record_channel remote; - gint64 last_write; -}; - -struct capi_connection { - enum state state; - enum session_type type; - - unsigned int id; - unsigned int controller; - unsigned long int plci; - unsigned long int ncci; - unsigned int reason; - unsigned int reason_b3; - char *source; - char *target; - void *priv; - int early_b3; - int hold; - time_t connect_time; - int mute; - int recording; - double line_level_in_state; - double line_level_out_state; - struct recorder recorder; - int buffers; - gboolean use_buffers; - - gpointer audio; - - void (*init_data)(struct capi_connection *connection); - void (*data)(struct capi_connection *connection, _cmsg capi_message); - void (*clean)(struct capi_connection *connection); -}; - -struct session_handlers { - gpointer (*audio_open)(void); - gsize (*audio_input)(gpointer audio, guchar *buf, gsize len); - gsize (*audio_output)(gpointer audio, guchar *buf, gsize len); - gboolean (*audio_close)(gpointer audio); - - void (*connected)(struct capi_connection *connection); - void (*disconnected)(struct capi_connection *connection); - void (*ring)(struct capi_connection *connection); - - void (*code)(struct capi_connection *connection, int code); - - void (*status)(struct capi_connection *connection, int error_code); -}; - -struct session { - GMutex isdn_mutex; - - struct capi_connection connection[CAPI_CONNECTIONS]; - int appl_id; - int message_number; - int input_thread_state; - - struct session_handlers *handlers; -}; - -struct capi_connection *capi_get_free_connection(void); -struct capi_connection *capi_call(unsigned, const char *, const char *, unsigned, unsigned, unsigned, _cword, _cword, _cword, _cstruct, _cstruct, _cstruct); -void capi_send_dtmf_code(struct capi_connection *connection, unsigned char nCode); -void capi_hangup(struct capi_connection *connection); -int capi_pickup(struct capi_connection *connection, int type); - -struct session *faxophone_get_session(void); -struct session *faxophone_init(struct session_handlers *handlers, const char *host, gint controller); -int faxophone_close(int force); - -#endif diff -Nru roger-router-1.8.14/libroutermanager/libfaxophone/isdn-convert.c roger-router-2.1.6/libroutermanager/libfaxophone/isdn-convert.c --- roger-router-1.8.14/libroutermanager/libfaxophone/isdn-convert.c 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/libfaxophone/isdn-convert.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,312 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -/** - * \file isdn-convert.c - * \brief Audio conversion function - */ - -#include "isdn-convert.h" -#include "phone.h" - -static unsigned char *lut_in = NULL; -static unsigned char *lut_out = NULL; -static unsigned char *lut_analyze = NULL; -static short *lut_a2s = NULL; -signed char linear16_2_law[65536]; -unsigned short law_2_linear16[256]; - -/** - * \brief Get sign and magnitude - * \param sample alaw sample - * \param sign sign - * \param mag magnitude - */ -static inline void alaw_get_sign_mag(short sample, unsigned *sign, unsigned *mag) -{ - if (sample < 0) { - *mag = -sample; - *sign = 0; - } else { - *mag = sample; - *sign = 0x80; - } -} - -/** - * \brief Convert linear to alaw value - * \param sample linear sample value - * \return alaw sample value - */ -static unsigned char linear2alaw(short sample) -{ - unsigned sign, exponent, mantissa, mag; - unsigned char alaw_byte; - static const unsigned exp_lut[128] = { - 1, 1, 2, 2, 3, 3, 3, 3, - 4, 4, 4, 4, 4, 4, 4, 4, - 5, 5, 5, 5, 5, 5, 5, 5, - 5, 5, 5, 5, 5, 5, 5, 5, - 6, 6, 6, 6, 6, 6, 6, 6, - 6, 6, 6, 6, 6, 6, 6, 6, - 6, 6, 6, 6, 6, 6, 6, 6, - 6, 6, 6, 6, 6, 6, 6, 6, - 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7 - }; - - alaw_get_sign_mag(sample, &sign, &mag); - if (mag > 32767) { - mag = 32767; - } - - exponent = exp_lut[(mag >> 8) & 0x7F]; - mantissa = (mag >> (exponent + 3)) & 0x0F; - - if (mag < 0x100) { - exponent = 0; - } - - alaw_byte = (unsigned char)(sign | (exponent << 4) | mantissa); - alaw_byte ^= 0x55; - - return alaw_byte; -} - -/** - * \brief Convert alaw value to linear value - * \param alaw_byte alaw value - * \return linear value - */ -static short alaw2linear(unsigned char alaw_byte) -{ - int t; - int seg; - - alaw_byte ^= 0x55; - t = alaw_byte & 0x7F; - - if (t < 16) { - t = (t << 4) + 8; - } else { - seg = (t >> 4) & 0x07; - t = ((t & 0x0F) << 4) + 0x108; - t <<= seg - 1; - } - - return ((alaw_byte & 0x80) ? t : - t); -} - -/** - * \brief Create lookup table buffer - */ -void create_table_buffer(void) -{ - signed char *_linear16_2_law = (signed char *)&linear16_2_law[32768]; - long index; - int buf_size_in = 0; - int buf_size_out = 0; - int sample; - unsigned int audio_sample_size_in = 2; - unsigned int audio_sample_size_out = 2; - - if (lut_in != NULL) { - return; - } - - for (index = 0; index < 65535; index++) { - _linear16_2_law[index - 32768] = bit_inverse(linear2alaw((short) index - 32768)); - } - - for (index = 0; index < 256; index++) { - law_2_linear16[index] = alaw2linear(bit_inverse(index)) & 0xFFFF; - } - - buf_size_in = audio_sample_size_in * 256; - lut_in = malloc(buf_size_in); - - for (index = 0; index < buf_size_in; index += audio_sample_size_in) { - sample = alaw2linear(bit_inverse((unsigned char)(index / 2))); - lut_in[index + 0] = (unsigned char)(sample & 0xFF); - lut_in[index + 1] = (unsigned char)(sample >> 8 & 0xFF); - } - - buf_size_out = (1 + (audio_sample_size_out - 1) * 255) * 256; - lut_out = malloc(buf_size_out); - - for (index = 0; index < buf_size_out; index++) { - lut_out[index] = bit_inverse(linear2alaw((int)(signed char)(index >> 8) << 8 | (int)(index & 0xFF))); - } - - lut_analyze = malloc(256); - lut_a2s = malloc(256 * sizeof(short)); - - for (index = 0; index < 256; index++) { - lut_analyze[index] = (unsigned char)((alaw2linear((unsigned char)bit_inverse(index)) / 256 & 0xFF) ^ 0x80); - - lut_a2s[index] = alaw2linear(bit_inverse(index)); - } -} - -/** - * \brief Get line level input value - * \return line level input state - */ -double get_line_level_in(struct capi_connection *connection) -{ - return connection->line_level_in_state; -} - -/** - * \brief Get line level output value - * \return line level output state - */ -double get_line_level_out(struct capi_connection *connection) -{ - return connection->line_level_out_state; -} - -/** - * \brief Convert isdn format to audio format - * \param in_buf input buffer - * \param in_buf_len length of input buffer - * \param out_buffer output buffer - * \param out_buf_len pointer to output buffer len - */ -void convert_isdn_to_audio(struct capi_connection *connection, unsigned char *in_buf, unsigned int in_buf_len, unsigned char *out_buf, unsigned int *out_buf_len, short *rec_buf) -{ - struct recorder *recorder = &connection->recorder; - unsigned int index; - unsigned int to_process; - unsigned int out_ptr = 0; - unsigned int j; - unsigned char in_byte; - int sample; - double ratio_in = 1.0f; - double ll_ratio; - int max = 0; - - out_ptr = 0; - - for (index = 0; index < in_buf_len; index++) { - in_byte = in_buf[index]; - - if (recorder != NULL && rec_buf != NULL) { - rec_buf[index] = recorder->file ? lut_a2s[in_byte] : 0; - } - - sample = lut_analyze[in_byte]; - if (abs((int) sample - 128) > max) { - max = abs((int) sample - 128); - } - - to_process = (int) floor((double)(index + 1) * ratio_in) - (int) floor((double) index * ratio_in); - - for (j = 0; j < to_process; j++) { - out_buf[out_ptr++] = lut_in[(int) in_byte * 2]; - out_buf[out_ptr++] = lut_in[(int) in_byte * 2 + 1]; - } - } - - /* Record data */ - if (recorder != NULL && rec_buf != NULL) { - recording_write(recorder, rec_buf, in_buf_len, RECORDING_REMOTE); - } - - ll_ratio = in_buf_len / 400.0f; - if (ll_ratio > 1.0) { - ll_ratio = 1.0; - } - - if (connection) { - connection->line_level_in_state = connection->line_level_in_state * (1.0 - ll_ratio) + ((double) max / 128) * ll_ratio; - } - - *out_buf_len = out_ptr; -} - -/** - * \brief Convert audio format to isdn format - * \param connection active capi connection - * \param in_buf input buffer - * \param in_buf_len length of input buffer - * \param out_buffer output buffer - * \param out_buf_len pointer to output buffer len - */ -void convert_audio_to_isdn(struct capi_connection *connection, unsigned char *in_buf, unsigned int in_buf_len, unsigned char *out_buf, unsigned int *out_buf_len, short *rec_buf) -{ - unsigned int index; - unsigned int to_process; - unsigned int out_ptr = 0; - unsigned int j; - unsigned char sample; - double ratio_out = 1.0f; - double ll_ratio; - int max = 0; - unsigned char sample_u8; - - out_ptr = 0; - - for (index = 0; index < in_buf_len; index += 2) { - to_process = (int) floor((double)(out_ptr + 1) * ratio_out) - (int) floor((double) out_ptr * ratio_out); - - for (j = 0; j < to_process; j++) { - int tmp = (int)(in_buf[index]) | ((int)(in_buf[index + 1]) << 8); - sample = lut_out[tmp]; - - if (connection != NULL && connection->mute != 0) { - sample = lut_out[0]; - } - - sample_u8 = lut_analyze[sample]; - if (abs((int) sample_u8 - 128) > max) { - max = abs((int) sample_u8 - 128); - } - - if (connection != NULL) { - rec_buf[out_ptr] = connection->recorder.file ? lut_a2s[sample] : 0; - } else { - rec_buf[out_ptr] = 0; - } - - out_buf[out_ptr] = sample; - out_ptr++; - } - } - - /* Record data */ - if (connection != NULL && connection->recorder.file != NULL && rec_buf != NULL) { - recording_write(&connection->recorder, rec_buf, out_ptr, RECORDING_LOCAL); - } - - ll_ratio = out_ptr / 400.0f; - if (ll_ratio > 1.0) { - ll_ratio = 1.0; - } - - connection->line_level_out_state = connection->line_level_out_state * (1.0 - ll_ratio) + ((double) max / 128) * ll_ratio; - - *out_buf_len = out_ptr; -} diff -Nru roger-router-1.8.14/libroutermanager/libfaxophone/isdn-convert.h roger-router-2.1.6/libroutermanager/libfaxophone/isdn-convert.h --- roger-router-1.8.14/libroutermanager/libfaxophone/isdn-convert.h 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/libfaxophone/isdn-convert.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,56 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -/** - * \file isdn-convert.h - * \brief audio conversation header - */ - -#ifndef ISDN_CONVERT_H -#define ISDN_CONVERT_H - -#include -#include - -#include - -// 16bit PCM, Mono, 8000 hz -> alaw -extern signed char linear16_2_law[65536]; -// alaw -> 16bit PCM, Mono, 8000 hz -extern unsigned short law_2_linear16[256]; - -void create_table_buffer(void); -double get_line_level_in(struct capi_connection *connection); -double get_line_level_out(struct capi_connection *connection); -void convert_isdn_to_audio(struct capi_connection *connection, guchar *in_buf, guint in_buf_len, guchar *out_buf, guint *out_buf_len, short *rec_buf); -void convert_audio_to_isdn(struct capi_connection *connection, guchar *in_buf, guint in_buf_len, guchar *out_buf, guint *out_buf_len, short *rec_buf); - -static inline guchar bit_inverse(guchar chr) -{ - return ((chr >> 7) & 0x1) | - ((chr >> 5) & 0x2) | - ((chr >> 3) & 0x4) | - ((chr >> 1) & 0x8) | - ((chr << 1) & 0x10) | - ((chr << 3) & 0x20) | - ((chr << 5) & 0x40) | - ((chr << 7) & 0x80); -} - -#endif diff -Nru roger-router-1.8.14/libroutermanager/libfaxophone/phone.c roger-router-2.1.6/libroutermanager/libfaxophone/phone.c --- roger-router-1.8.14/libroutermanager/libfaxophone/phone.c 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/libfaxophone/phone.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,502 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -/** - * \file phone.c - * \brief Phone handling functions - */ - -#include -#include -#include -#include - -#include -#include -#include - -/* Close recording */ -int recording_close(struct recorder *recorder); - -/** - * \brief Input audio handler - * \param data capi connection pointer - * \return NULL - */ -gpointer phone_input_thread(gpointer data) -{ - struct session *session = faxophone_get_session(); - struct capi_connection *connection = data; - guchar audio_buffer_rx[CAPI_PACKETS]; - guchar audio_buffer[CAPI_PACKETS * 2]; - guint audio_buf_len; - short rec_buffer[CAPI_PACKETS]; - _cmsg cmsg; - - while (session->input_thread_state == 1) { - int len; - - len = session->handlers->audio_input(connection->audio, (guchar *) audio_buffer_rx, sizeof(audio_buffer_rx)); - - /* Check if we have some audio data to process */ - if (len > 0) { - /* convert audio data to isdn format */ - convert_audio_to_isdn(connection, (guchar *) audio_buffer_rx, len, audio_buffer, &audio_buf_len, rec_buffer); - - isdn_lock(); - DATA_B3_REQ(&cmsg, session->appl_id, 0, connection->ncci, audio_buffer, audio_buf_len, session->message_number++, 0); - isdn_unlock(); - } - } - - session->input_thread_state = 0; - - if (connection->recording == 1) { - recording_close(&connection->recorder); - } - - return NULL; -} - -void phone_init_data(struct capi_connection *connection) -{ - struct session *session = faxophone_get_session(); - - g_debug("phone_init_data()"); - if (session->input_thread_state == 0) { - session->input_thread_state = 1; - - CREATE_THREAD("phone-input", phone_input_thread, connection); - } -} - -/** - * \brief Phone transfer routine which accepts incoming data, converts and outputs the audio - * \param connection active capi connection - * \param sCapiMessage current capi message - */ -void phone_transfer(struct capi_connection *connection, _cmsg capi_message) -{ - struct session *session = faxophone_get_session(); - _cmsg cmsg; - guchar audio_buffer[CAPI_PACKETS * 2]; - guint len = DATA_B3_IND_DATALENGTH(&capi_message); - guint audio_buf_len; - short rec_buffer[8192]; - - /* convert isdn to audio format */ - convert_isdn_to_audio(connection, DATA_B3_IND_DATA(&capi_message), len, audio_buffer, &audio_buf_len, rec_buffer); - /* Send capi response */ - isdn_lock(); - DATA_B3_RESP(&cmsg, session->appl_id, session->message_number++, connection->ncci, DATA_B3_IND_DATAHANDLE(&capi_message)); - isdn_unlock(); - - /* Send data to soundcard */ - session->handlers->audio_output(connection->audio, audio_buffer, audio_buf_len); -} - -/** - * \brief Dial a given number and set connection type to SESSION_PHONE - * \param nController capi controller - * \param source source number (own MSN) - * \param target remote number (we want to dial) - * \param anonymous anonymous flag (suppress number) - * \return seee capiCall - */ -struct capi_connection *phone_call(guchar controller, const char *source, const char *target, gboolean anonymous) -{ - return capi_call(controller, source, target, anonymous, SESSION_PHONE, PHONE_CIP, 1, 1, 0, NULL, NULL, NULL); -} - -/** - * \brief Mute/unmute active capi connection - * \param connection active capi connection - * \param mute mute flag - */ -void phone_mute(struct capi_connection *connection, guchar mute) -{ - /* Just set the flag, the audio input thread handle the mute case */ - connection->mute = mute; -} - -/** - * \brief Return current time in microseconds - * \return time in microseconds - */ -guint64 microsec_time(void) -{ - struct timeval time_val; - - gettimeofday(&time_val, 0); - - return time_val.tv_sec * ((guint64) 1000000) + time_val.tv_usec; -} - -/** - * \brief Initialize recording structure - * \param recorder pointer to recorder structure - * \return 0 - */ -int recording_init(struct recorder *recorder) -{ - memset(recorder, 0, sizeof(struct recorder)); - - return 0; -} - -/** - * \brief Open recording file - * \param recorder pointer to recorder structure - * \param file record file - * \return 0 on success, otherwise error - */ -int recording_open(struct recorder *recorder, char *file) -{ - SF_INFO sInfo; - - if (access(file, F_OK)) { - /* File not present */ - sInfo.format = SF_FORMAT_WAV | SF_FORMAT_ULAW; - sInfo.channels = 2; - sInfo.samplerate = 8000; - - if (!(recorder->file = sf_open(file, SFM_WRITE, &sInfo))) { - printf("Error creating record file\n"); - return -1; - } - } else { - sInfo.format = 0; - if (!(recorder->file = sf_open(file, SFM_RDWR, &sInfo))) { - printf("Error opening record file\n"); - return -1; - } - if (sf_seek(recorder->file, 0, SEEK_END) == -1) { - printf("Error seeking record file\n"); - return -1; - } - } - - recorder->file_name = strdup(file); - recorder->last_write = 0; - - memset(&recorder->local, 0, sizeof(struct record_channel)); - memset(&recorder->remote, 0, sizeof(struct record_channel)); - - recorder->start_time = microsec_time(); - - return 0; -} - -/** - * \brief Write audio data to record file - * \param recorder recorder structure - * \param buf audio buffer - * \param size size of audio buffer - * \param channel channel type (local/remote) - * \return 0 on success, otherwise error - */ -int recording_write(struct recorder *recorder, short *buf, int size, int channel) -{ - gint64 start = recorder->start_time; - gint64 current, start_pos, position, end_pos; - int buf_pos, split, delta; - struct record_channel *buffer; - - if (start == 0) { - return 0; - } - - if (size < 1) { - printf("Warning: Illegal size!\n"); - return -1; - } - - switch (channel) { - case RECORDING_LOCAL: - buffer = &recorder->local; - break; - case RECORDING_REMOTE: - buffer = &recorder->remote; - break; - default: - printf("Recording to unknown channel!\n"); - return -1; - } - - current = microsec_time() - start; - - end_pos = current * 8000 / 1000000LL; - start_pos = end_pos - size; - position = buffer->position; - - if (start_pos >= position - RECORDING_JITTER && start_pos <= position + RECORDING_JITTER) { - start_pos = position; - end_pos = position + size; - } - - if (start_pos < position) { - delta = (int) position - start_pos; - start_pos = position; - buf += delta; - size -= delta; - if (size <= 0) { - return 0; - } - } - - buf_pos = start_pos % RECORDING_BUFSIZE; - - if (buf_pos + size <= RECORDING_BUFSIZE) { - memcpy(buffer->buffer + buf_pos, buf, size * sizeof(short)); - } else { - split = RECORDING_BUFSIZE - buf_pos; - memcpy(buffer->buffer + buf_pos, buf, split * sizeof(short)); - buf += split; - size -= split; - memcpy(buffer->buffer, buf, size * sizeof(short)); - } - - buffer->position = end_pos; - - return 0; -} - -/** - * \brief Flush recording buffer - * \param recorder recording structure - * \param last last call flag - * \return 0 on success, otherwise error - */ -int recording_flush(struct recorder *recorder, guint last) -{ - gint64 max_position = recorder->local.position; - gint64 tmp = recorder->remote.position; - gint64 start_position = recorder->last_write; - short rec_buf[RECORDING_BUFSIZE * 2]; - gint64 src_ptr, dst_ptr, size; - - if (recorder->start_time == 0) { - return 0; - } - - if (tmp > max_position) { - max_position = tmp; - } - - if (start_position + (RECORDING_BUFSIZE * 7 / 8) < max_position) { - start_position = max_position - (RECORDING_BUFSIZE * 7 / 8); - } - - if (!last) { - max_position -= RECORDING_BUFSIZE / 8; - } - - size = (gint64)(max_position - start_position); - if (max_position == 0 || start_position >= max_position || (!last && size < RECORDING_BUFSIZE / 8)) { - return 0; - } - - dst_ptr = 0; - src_ptr = start_position % RECORDING_BUFSIZE; - - while (--size) { - rec_buf[dst_ptr++] = recorder->local.buffer[src_ptr]; - recorder->local.buffer[src_ptr] = 0; - rec_buf[dst_ptr++] = recorder->remote.buffer[src_ptr]; - recorder->remote.buffer[src_ptr] = 0; - - if (++src_ptr >= RECORDING_BUFSIZE) { - src_ptr = 0; - } - } - - sf_writef_short(recorder->file, rec_buf, dst_ptr / 2); - - recorder->last_write = max_position; - - return 0; -} - -/** - * \brief Close recording structure - * \param recorder recorder structure - * \return 0 on success, otherwise error - */ -int recording_close(struct recorder *recorder) -{ - int result = 0; - - if (recorder->start_time) { - if (recording_flush(recorder, 1) < 0) { - result = -1; - } - recorder->start_time = 0; - - if (recorder->file_name) { - free(recorder->file_name); - recorder->file_name = NULL; - } - - if (sf_close(recorder->file) != 0) { - printf("Error closing record file!\n"); - result = -1; - } - } - - return result; -} - -/** - * \brief Flush connection recorder - * \param connection capi connection - */ -void phone_flush(struct capi_connection *connection) -{ - if (connection != NULL) { - recording_flush(&connection->recorder, 0); - } -} - -/** - * \brief Start/stop recording of active capi connection - * \param connection active capi connection - * \param record record flag - * \param dir storage directory - */ -void phone_record(struct capi_connection *connection, guchar record, const char *dir) -{ - if (record == 1) { - gchar *file = NULL; - struct tm *time_val = localtime(&connection->connect_time); - - if (connection->recording == 0) { - recording_init(&connection->recorder); - } - - file = g_strdup_printf("%s/%2.2d.%2.2d.%2.2d-%2.2d-%2.2d-%s-%s.wav", - dir, - time_val->tm_mday, time_val->tm_mon + 1, time_val->tm_year - 100, - time_val->tm_hour, time_val->tm_min, connection->source, connection->target); - - recording_open(&connection->recorder, file); - g_free(file); - } else { - if (connection->recording == 1) { - recording_close(&connection->recorder); - } - } - - connection->recording = record; -} - -/** - * \brief Hold and retrieve active capi connection - * \param connection active capi connection - * \param hold hold flag - */ -void phone_hold(struct capi_connection *connection, guchar hold) -{ - struct session *session = faxophone_get_session(); - _cmsg message; - _cbyte fac[9]; - - /* Save state */ - connection->hold = hold; - - /* Generate facility structure */ - fac[0] = 3; - fac[1] = (_cbyte)(0x0003 - hold) & 0xFF; - fac[2] = (_cbyte)((0x0003 - hold) >> 8) & 0xFF; - fac[3] = 0; - - isdn_lock(); - if (hold == 1) { - /* Hold active connection */ - FACILITY_REQ(&message, session->appl_id, 0, connection->ncci, 3, (guchar *) fac); - } else { - /* Retrieve active connection */ - FACILITY_REQ(&message, session->appl_id, 0, connection->plci, 3, (guchar *) fac); - } - isdn_unlock(); -} - -/** - * \brief Send DTMF codes on connection - * \param connection active capi connection - * \param code DTMF code - */ -void phone_send_dtmf_code(struct capi_connection *connection, guchar code) -{ - capi_send_dtmf_code(connection, code); -} - -/** - * \brief Hangup phone connection - * \param connection active capi connection - */ -void phone_hangup(struct capi_connection *connection) -{ - if (connection == NULL) { - return; - } - - /* Hangup */ - capi_hangup(connection); -} - -/** - * \brief Pickup a phone call - * \param connection active capi connection - * \return see capiPickup - */ -int phone_pickup(struct capi_connection *connection) -{ - if (connection == NULL) { - return -1; - } - - /* Pickup connection and set connection type to SESSION_PHONE */ - return capi_pickup(connection, SESSION_PHONE); -} - -void phone_conference(struct capi_connection *active, struct capi_connection *hold) -{ - struct session *session = faxophone_get_session(); - _cmsg message; - _cbyte fac[24]; - void *ptr = &(fac[4]); - - /* Generate facility structure */ - memset(fac, 0, sizeof(fac)); - /* Len */ - fac[0] = 7; - fac[1] = 0x07; - fac[2] = 0x00; - fac[3] = 4; - - ((unsigned char *)ptr)[0] = hold->plci & 0xff; - ((unsigned char *)ptr)[1] = (hold->plci >> 8) & 0xff; - ((unsigned char *)ptr)[2] = (hold->plci >> 16) & 0xff; - ((unsigned char *)ptr)[3] = (hold->plci >> 24) & 0xff; - - isdn_lock(); - /* Hold active connection */ - FACILITY_REQ(&message, session->appl_id, 0, active->ncci, 3, (guchar *) fac); - isdn_unlock(); -} diff -Nru roger-router-1.8.14/libroutermanager/libfaxophone/phone.h roger-router-2.1.6/libroutermanager/libfaxophone/phone.h --- roger-router-1.8.14/libroutermanager/libfaxophone/phone.h 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/libfaxophone/phone.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,43 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -/** - * \file phone.h - * \brief Phone handling header - */ - -#ifndef FAXOPHONE_PHONE_H -#define FAXOPHONE_PHONE_H - -#define PHONE_CIP 0x04 - -struct capi_connection *phone_call(guchar controller, const gchar *source, const gchar *target, gboolean anonymous); -void phone_mute(struct capi_connection *connection, guchar mute); -void phone_hold(struct capi_connection *connection, guchar record); -void phone_record(struct capi_connection *connection, guchar hold, const gchar *dir); -void phone_send_dtmf_code(struct capi_connection *connection, guchar code); -void phone_hangup(struct capi_connection *connection); -gint phone_pickup(struct capi_connection *connection); -void phone_init_data(struct capi_connection *connection); -void phone_transfer(struct capi_connection *connection, _cmsg message); -void phone_conference(struct capi_connection *active, struct capi_connection *hold); -void phone_flush(struct capi_connection *connection); -gint recording_write(struct recorder *recorder, short *buf, gint size, gint channel); - -#endif diff -Nru roger-router-1.8.14/libroutermanager/libfaxophone/ringtone.c roger-router-2.1.6/libroutermanager/libfaxophone/ringtone.c --- roger-router-1.8.14/libroutermanager/libfaxophone/ringtone.c 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/libfaxophone/ringtone.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,268 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include - -#include -#include -#include - -#include "isdn-convert.h" - -#define QUANT_MASK (0xF) -#define SEG_SHIFT (4) -#define SEG_MASK (0x70) -#define SIGN_BIT (0x80) - -#define RING_PERIOD 4 -#define RING_SHORT_PERIOD 0.044 -#define RING_FADE_LENGTH 0.003 -#define RING_LENGTH 1.3 -#define RING_SHORT_LENGTH (RING_SHORT_PERIOD/2) -#define RING_FREQUENCY 1300 -#define RINGING_FREQUENCY 425 - -static short seg_end[8] = {0xFF, 0x1FF, 0x3FF, 0x7FF, 0xFFF, 0x1FFF, 0x3FFF, 0x7FFF}; -static unsigned char *audio_lut_generate = NULL; -static gboolean effect_thread_stop = TRUE; - -/** - * \brief Small index search - * \return index - */ -static int search(int val, short *table, int size) -{ - int index; - - for (index = 0; index < size; index++) { - if (val <= *table++) { - return index; - } - } - - return size; -} - -/** - * \brief Convert linear to alaw value - * \param val linear value - * \return alaw value - */ -static unsigned char linear2alaw(int val) -{ - int mask; - int seg; - unsigned char val_a; - - if (val >= 0) { - mask = 0xD5; - } else { - mask = 0x55; - val = -val - 8; - } - - seg = search(val, seg_end, 8); - - if (seg >= 8) { - return (0x7F ^ mask); - } else { - val_a = seg << SEG_SHIFT; - if (seg < 2) { - val_a |= (val >> 4) & QUANT_MASK; - } else { - val_a |= (val >> (seg + 3)) & QUANT_MASK; - } - - return (val_a ^ mask); - } -} - -/** - * \brief Generate fx sound - * \param type sound type - * \param index index - * \param seconds seconds - * \return current byte - */ -unsigned char fx_generate(gint type, int index, double seconds) -{ - double rest; - double rest2; - double factor; - double factor2; - unsigned char x = 0; - - switch (type) { - case CONNECTION_TYPE_INCOMING: - /* 4 sec period */ - rest = fmod(seconds, RING_PERIOD); - /* short period */ - rest2 = fmod(seconds, RING_SHORT_PERIOD); - - if (rest < RING_FADE_LENGTH) { - /* Fade in */ - factor = -cos(rest * M_PI / RING_FADE_LENGTH) / 2 + 0.5; - } else if (rest > RING_LENGTH - RING_FADE_LENGTH && rest < RING_LENGTH) { - /* Fade out */ - factor = -cos((RING_LENGTH - rest) * 2 * M_PI / (RING_FADE_LENGTH * 2)) / 2 + 0.5; - } else if (rest >= RING_LENGTH) { - /* Pause */ - factor = 0; - } else { - /* Beep */ - factor = 1; - } - - if (rest2 > RING_SHORT_PERIOD - 0.5 * RING_FADE_LENGTH) { - /* Fade in short (1/1) */ - factor2 = -sin((RING_SHORT_PERIOD - rest2) * 2 * M_PI / (RING_FADE_LENGTH * 2)) / 2 + 0.5; - } else if (rest2 < 0.5 * RING_FADE_LENGTH) { - /* Fade in short (2/2) */ - factor2 = sin(rest2 * 2 * M_PI / (RING_FADE_LENGTH * 2)) / 2 + 0.5; - } else if (rest2 > RING_SHORT_LENGTH - 0.5 * RING_FADE_LENGTH && rest2 < RING_SHORT_LENGTH + 0.5 * RING_FADE_LENGTH) { - factor2 = -sin((rest2 - RING_SHORT_LENGTH) * 2 * M_PI / (RING_FADE_LENGTH * 2)) / 2 + 0.5; - } else if (rest2 <= RING_SHORT_LENGTH) { - /* Beep */ - factor2 = 1; - } else { - /* Pause */ - factor2 = 0; - } - - factor = factor * factor2; - - x = audio_lut_generate[(int)(sin(seconds * 2 * M_PI * RING_FREQUENCY) * factor * 127.5 + 127.5)]; - break; - case CONNECTION_TYPE_OUTGOING: - /* waiting for the other end to pick up the phone */ - rest = fmod(seconds, 5); - - if (rest >= 2 && rest < 3) { - /* beep */ - x = audio_lut_generate[(int)(sin(seconds * 2 * M_PI * RINGING_FREQUENCY) * 127.5 + 127.5)]; - } else { - /* pause */ - x = audio_lut_generate[128]; - } - break; - default: - g_warning("Unknown effect %d", type); - x = 0; - break; - } - - return x; -} - -/** - * \brief Ringtone thread - * \param user_data user data - * \return error code - */ -static gpointer ringtone_thread(gpointer user_data) -{ - gint type = GPOINTER_TO_INT(user_data); - unsigned int index; - unsigned char alaw_buffer[4096]; - unsigned int alaw_count = 0; - unsigned char snd_buffer[12 * 4096]; - unsigned int snd_count = 0; - unsigned long effect_pos = 0; - void *priv = NULL; - struct audio *audio = audio_get_default(); - int counter = 0; - - if (audio == NULL) { - return NULL; - } - - priv = audio->open(); - if (!priv) { - return NULL; - } - - while (!effect_thread_stop) { - for (index = 0; index < sizeof(alaw_buffer) / 4; ++index) { - alaw_buffer[index] = bit_inverse(fx_generate(type, 0, effect_pos++ / 8000.0)); - } - alaw_count = sizeof(alaw_buffer) / 4; - - counter++; - //if (counter == 0x20) { - // alaw_count = 0; - //} - - if (alaw_count == 0) { - g_debug("End-Of-File reached, stopping playback"); - - effect_thread_stop = TRUE; - break; - } - - convert_isdn_to_audio(NULL, alaw_buffer, alaw_count, snd_buffer, &snd_count, NULL); - audio->write(priv, snd_buffer, snd_count); - } - - audio->close(priv); - - return NULL; -} - -/** - * \brief Create look-up table - * \param lut_generate fx generate lut - * \return error code - */ -static int make_lut(unsigned char **lut_generate) -{ - int index; - - if (!(*lut_generate = (unsigned char *) malloc(256))) { - return -1; - } - - /* Calculation */ - for (index = 0; index < 256; index++) { - (*lut_generate)[index] = linear2alaw((index - 128) * 256); - } - - return 0; -} - -/** - * \brief Play sounds - * \param type call type - */ -void ringtone_play(gint type) -{ - if (audio_lut_generate == NULL) { - make_lut(&audio_lut_generate); - } - - effect_thread_stop = FALSE; - g_thread_new("ringtone thread", ringtone_thread, GINT_TO_POINTER(type)); -} - -/** - * \brief Stop effect handler - */ -void ringtone_stop(void) -{ - effect_thread_stop = TRUE; -} diff -Nru roger-router-1.8.14/libroutermanager/libfaxophone/ringtone.h roger-router-2.1.6/libroutermanager/libfaxophone/ringtone.h --- roger-router-1.8.14/libroutermanager/libfaxophone/ringtone.h 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/libfaxophone/ringtone.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,31 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -/** - * \file ringtone.h - * \brief Ringtone functions - */ - -#ifndef FAXOPHONE_RINGTONE_H -#define FAXOPHONE_RINGTONE_H - -void ringtone_play(gint type); -void ringtone_stop(void); - -#endif diff -Nru roger-router-1.8.14/libroutermanager/libfaxophone/sff.c roger-router-2.1.6/libroutermanager/libfaxophone/sff.c --- roger-router-1.8.14/libroutermanager/libfaxophone/sff.c 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/libfaxophone/sff.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,182 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -/** - * \file sff.c - * \brief SFF handling functions - */ - -#include - -#include - -#include - -#include -#include -#include - -static gchar *sff_data = NULL; -static gsize sff_len = 0; -static gsize sff_pos = 0; - -/** - * \brief Receive/Transmit fax state - * \param connection capi connection pointer - * \param capi_message current capi message - */ -static inline void sff_transfer(struct capi_connection *connection, _cmsg capi_message) -{ - struct session *session = faxophone_get_session(); - struct fax_status *status = connection->priv; - _cmsg cmsg; - gint transfer = CAPI_PACKETS; - - g_debug("processing fax"); - - if (sff_len - sff_pos < transfer) { - transfer = sff_len - sff_pos; - } - - isdn_lock(); - DATA_B3_REQ(&cmsg, session->appl_id, 0, connection->ncci, sff_data + sff_pos, transfer, session->message_number++, 0); - isdn_unlock(); - - sff_pos += transfer; - - status->bytes_total = sff_len; - status->bytes_sent = sff_pos; - - status->progress_status = 1; - session->handlers->status(connection, 1); - - if (sff_pos == sff_len) { - g_debug("EOF"); - } else { - g_debug("Pos: %" G_GSIZE_FORMAT "/%" G_GSIZE_FORMAT " (%" G_GSIZE_FORMAT "%%)", sff_pos, sff_len, sff_pos * 100 / sff_len); - } -} - -gpointer sff_transfer_thread(gpointer data) -{ - struct capi_connection *connection = data; - _cmsg cmsg; - - while (connection->state == STATE_CONNECTED && sff_pos < sff_len) { - if (connection->use_buffers && connection->buffers < CAPI_BUFFERCNT) { - g_debug("Buffers: %d", connection->buffers); - sff_transfer(connection, cmsg); - connection->buffers++; - } - - g_usleep(50); - } - - capi_hangup(connection); - - while (connection->state == STATE_CONNECTED && connection->buffers) { - g_usleep(50); - } - - - return NULL; -} - -void sff_init_data(struct capi_connection *connection) -{ - g_thread_new("sff transfer", sff_transfer_thread, connection); -} - -/** - * \brief Send Fax - * \param sff_file The sff file to send - * \param modem 0-3 (2400-14400) - * \param ecm Error correction mode (on/off) - * \param controller The controller for sending the fax - * \param src_no MSN - * \param trg_no Target fax number - * \param ident Fax ident - * \param header Fax header line - * \param call_anonymous Send fax anonymous - * \return error code - */ -struct capi_connection *sff_send(gchar *sff_file, gint modem, gint ecm, gint controller, const gchar *src_no, const gchar *trg_no, const gchar *ident, const gchar *header, gint call_anonymous) -{ - struct capi_connection *connection; - _cstruct b1; - _cstruct b2; - _cstruct b3; - int i = 0, j; - - g_debug(" ** SFF **"); - g_debug("sff: %s, modem: %d, ecm: %s, controller: %d, src: %s, trg: %s, ident: %s, header: %s, anonymous: %d)", sff_file, modem, ecm ? "on" : "off", controller, src_no, trg_no, (ident != NULL ? ident : "(null)"), (header != NULL ? header : "(null)"), call_anonymous); - - b1 = g_malloc0(2 + 2 + 2 + 2); - b2 = NULL; - b3 = g_malloc0(1 + 2 + 2 + 1 + strlen(ident) + 1 + strlen(header)); - - /* Length */ - b3[i++] = 1 + 2 + 2 + 1 + strlen(ident) + 1 + strlen(header); - /* Resolution: Standard */ - b3[i++] = 0; - b3[i++] = 0; - /* Format: SFF */ - b3[i++] = 0; - b3[i++] = 0; - - /* Station ID */ - b3[i++] = strlen(ident); - for (j = 0; j < strlen(ident); j++) { - b3[i++] = ident[j]; - } - - /* Header */ - b3[i++] = strlen(header); - for (j = 0; j < strlen(header); j++) { - b3[i++] = header[j]; - } - - /* Open SFF file */ - sff_data = file_load(sff_file, &sff_len); - sff_pos = 0; - - connection = capi_call(controller, src_no, trg_no, (guint) call_anonymous, SESSION_SFF, SFF_CIP, 4, 4, 5, b1, b2, b3); - if (connection) { - struct fax_status *status = NULL; - - connection->buffers = 0; - connection->use_buffers = TRUE; - - status = malloc(sizeof(struct fax_status)); - memset(status, 0, sizeof(struct fax_status)); - - connection->priv = status; - } - - return connection; -} - -/** - * \brief Cleanup private fax structure from capi connection - * \param connection capi connection - */ -void sff_clean(struct capi_connection *connection) -{ - connection->priv = NULL; -} diff -Nru roger-router-1.8.14/libroutermanager/libfaxophone/sff.h roger-router-2.1.6/libroutermanager/libfaxophone/sff.h --- roger-router-1.8.14/libroutermanager/libfaxophone/sff.h 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/libfaxophone/sff.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,35 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -/** - * \file sff.h - * \brief SFF structures - */ - -#ifndef SFF_H -#define SFF_H - -//#define SFF_CIP 0x04 -#define SFF_CIP 0x11 - -struct capi_connection *sff_send(gchar *tiff_file, gint modem, gint ecm, gint controller, const gchar *src_no, const gchar *trg_no, const gchar *lsi, const gchar *local_header_info, gint call_anonymous); -void sff_init_data(struct capi_connection *connection); -void sff_clean(struct capi_connection *connection); - -#endif diff -Nru roger-router-1.8.14/libroutermanager/logging.c roger-router-2.1.6/libroutermanager/logging.c --- roger-router-1.8.14/libroutermanager/logging.c 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/logging.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,117 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include -#include - -#include -#include - -/** Internal minium log level, starting with DEBUG */ -static GLogLevelFlags log_level = G_LOG_LEVEL_DEBUG; - -/** - * \brief Save log data to temp directory (if log level is set to DEBUG) - * \param name file name - * \param data data pointer - * \param len length of data - */ -void log_save_data(gchar *name, const gchar *data, gsize len) -{ - gchar *file; - - if (log_level != G_LOG_LEVEL_DEBUG) { - return; - } - - file = g_build_filename(g_get_user_cache_dir(), "routermanager", name, NULL); - file_save(file, data, len); - - g_free(file); -} - -/** - * \brief Logging function - prints log output to shell - * \paramm log_domain logging domain - * \param log_level log level flags - * \param message output message - * \param user_data user data poiner (UNUSED) - */ -static void log_func(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) -{ - GDateTime *datetime = g_date_time_new_now_local(); - gchar *time = g_date_time_format(datetime, "%H:%M:%S"); - - g_print("%s ", time); - g_free(time); - g_date_time_unref(datetime); - - if (log_domain) { - g_print("%s:", log_domain); - } - - switch (log_level) { - case G_LOG_LEVEL_ERROR: - g_print("Error: "); - break; - case G_LOG_LEVEL_CRITICAL: - g_print("Critical: "); - break; - case G_LOG_LEVEL_WARNING: - g_print("Warning: "); - break; - case G_LOG_LEVEL_DEBUG: - g_print("Debug: "); - break; - default: - break; - } - - g_print("%s\n", message); -} - -/** - * \brief Initialize logging (set default log handler) - */ -void log_init(gboolean debug) -{ - if (!debug) { - return; - } - - g_log_set_default_handler(log_func, NULL); -} - -/** - * \brief Shutdown logging - */ -void log_shutdown(void) -{ - g_debug("Shutdown logging"); - g_log_set_default_handler(NULL, NULL); -} - -/** - * \brief Set minium log level - * \param new minimum log level - */ -void log_set_level(GLogLevelFlags level) -{ - log_level = level; -} diff -Nru roger-router-1.8.14/libroutermanager/logging.h roger-router-2.1.6/libroutermanager/logging.h --- roger-router-1.8.14/libroutermanager/logging.h 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/logging.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,34 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_LOGGING_H -#define LIBROUTERMANAGER_LOGGING_H - -G_BEGIN_DECLS - -void log_save_data(gchar *name, const gchar *data, gsize len); - -void log_init(gboolean debug); -void log_shutdown(void); - -void log_set_level(GLogLevelFlags level); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/lookup.c roger-router-2.1.6/libroutermanager/lookup.c --- roger-router-1.8.14/libroutermanager/lookup.c 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/lookup.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,63 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -/** - * TODO: - * - Asynchronous lookup - */ - -#include - -#include - -/** Pointer to internal lookup function */ -static lookup_func lookup_active = NULL; - -/** Lookup function list */ -static GSList *lookup_list = NULL; - -/** - * \brief Lookup number and return name/address/zip/city - * \param number number to lookup - * \param name pointer to store name to - * \param address pointer to store address to - * \param zip pointer to store zip to - * \param city pointer to store city to - * \return TRUE is lookup data has been found, otherwise FALSE - */ -gboolean routermanager_lookup(gchar *number, gchar **name, gchar **address, gchar **zip, gchar **city) -{ - if (lookup_active) { - return lookup_active(number, name, address, zip, city); - } - - return FALSE; -} - -/** - * \brief Register lookup routine - * \return TRUE - */ -gboolean routermanager_lookup_register(lookup_func lookup) -{ - lookup_list = g_slist_prepend(lookup_list, lookup); - lookup_active = lookup; - - return TRUE; -} diff -Nru roger-router-1.8.14/libroutermanager/lookup.h roger-router-2.1.6/libroutermanager/lookup.h --- roger-router-1.8.14/libroutermanager/lookup.h 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/lookup.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,32 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_LOOKUP_H -#define LIBROUTERMANAGER_LOOKUP_H - -G_BEGIN_DECLS - -typedef gboolean (*lookup_func)(gchar *number, gchar **name, gchar **address, gchar **zip, gchar **city); - -gboolean routermanager_lookup(gchar *number, gchar **name, gchar **address, gchar **zip, gchar **city); -gboolean routermanager_lookup_register(lookup_func func); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/Makefile.am roger-router-2.1.6/libroutermanager/Makefile.am --- roger-router-1.8.14/libroutermanager/Makefile.am 2015-12-05 21:37:04.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,137 +0,0 @@ -SUBDIRS = . plugins data -AUTOMAKE_OPTIONS = no-dependencies foreign -CLEANFILES = *~ comperr -DISTCLEANFILES = intltool-extract intltool-merge intltool-update -MAINTAINERCLEANFILES = configure aclocal.m4 Makefile.in config.h.in - stamp-h.in -lib_LTLIBRARIES = libroutermanager.la - -AM_CFLAGS = -I$(top_srcdir) - -libroutermanager_includedir = $(includedir)/libroutermanager/ -libroutermanager_include_HEADERS = $(wildcard *.h) - -libroutermanager_faxophone_includedir = $(includedir)/libroutermanager/libfaxophone -libroutermanager_faxophone_include_HEADERS = \ - libfaxophone/fax.h \ - libfaxophone/sff.h \ - libfaxophone/faxophone.h \ - libfaxophone/isdn-convert.h \ - libfaxophone/phone.h \ - libfaxophone/ringtone.h - -libroutermanager_la_SOURCES = \ - action.c\ - action.h\ - address-book.c\ - address-book.h\ - appobject-emit.c\ - appobject-emit.h\ - appobject.c\ - appobject.h\ - audio.c\ - audio.h\ - call.c\ - call.h\ - routermanager.c\ - routermanager.h\ - contact.c\ - contact.h\ - connection.c\ - connection.h\ - csv.c\ - csv.h\ - fax_phone.c \ - fax_phone.h \ - fax_spooler.c\ - fax_server.c\ - fax_printer.h\ - file.c\ - file.h\ - filter.c\ - filter.h\ - ftp.c\ - ftp.h\ - gstring.c\ - gstring.h\ - logging.c\ - logging.h\ - lookup.c\ - lookup.h\ - net_monitor.c\ - net_monitor.h\ - network.c\ - network.h\ - osdep.c\ - osdep.h\ - password.c\ - password.h\ - plugins.c\ - plugins.h\ - profile.c\ - profile.h\ - router.c\ - router.h\ - settings.c\ - settings.h\ - ssdp.c\ - ssdp.h\ - voxplay.c\ - voxplay.h\ - xml.c\ - xml.h\ - libfaxophone/fax.c \ - libfaxophone/fax.h \ - libfaxophone/faxophone.c \ - libfaxophone/faxophone.h \ - libfaxophone/isdn-convert.c \ - libfaxophone/isdn-convert.h \ - libfaxophone/phone.c \ - libfaxophone/phone.h \ - libfaxophone/ringtone.c \ - libfaxophone/ringtone.h \ - libfaxophone/sff.c \ - libfaxophone/sff.h - -libroutermanager_la_LDFLAGS = -rdynamic -libroutermanager_la_LIBADD = -lc $(EXTRA_LIBS) $(PEAS_LIBS) $(SOUP_LIBS) $(CAPI_LIBS) $(SPANDSP_LIBS) $(DBUS_LIBS) $(OS_LIBS) -libroutermanager_la_CFLAGS = -fno-strict-aliasing $(EXTRA_CFLAGS) $(APP_CFLAGS) $(PEAS_CFLAGS) -Wall $(SOUP_CFLAGS) $(CAPI_CFLAGS) $(SPANDSP_CFLAGS) $(AM_CFLAGS) $(DBUS_CFLAGS) $(OS_CFLAGS) $(GTK_CFLAGS) - -if WIN32 -libroutermanager_la_LDFLAGS += -no-undefined -avoid-version -endif - -pcdir = ${libdir}/pkgconfig -pc_DATA = routermanager.pc - -$(OBJECTS): libtool - -export SED - -libtool: $(LIBTOOL_DEPS) - $(SHELL) ./config.status --recheck - -#if HAVE_INTROSPECTION -#-include $(INTROSPECTION_MAKEFILE) -#INTROSPECTION_GIRS = -#INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) --warn-all --identifier-prefix=rm -#--accept-unprefixed -#INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) - -#router_manager-1.0.gir: libroutermanager.la -#router_manager_1_0_gir_NAMESPACE = router_manager -#router_manager_1_0_gir_VERSION = 1.8.2 -#router_manager_1_0_gir_INCLUDES = GObject-2.0 -#router_manager_1_0_gir_CFLAGS = $(libroutermanager_la_CFLAGS) -#router_manager_1_0_gir_LIBS = libroutermanager.la -#router_manager_1_0_gir_FILES = $(libroutermanager_la_SOURCES) -#INTROSPECTION_GIRS += router_manager-1.0.gir - -#girdir = $(datadir)/gir-1.0 -#gir_DATA = $(INTROSPECTION_GIRS) - -#typelibdir = $(libdir)/girepository-1.0 -#typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib) - -#CLEANFILES += $(gir_DATA) $(typelib_DATA) -#endif diff -Nru roger-router-1.8.14/libroutermanager/Makefile.in roger-router-2.1.6/libroutermanager/Makefile.in --- roger-router-1.8.14/libroutermanager/Makefile.in 2015-12-10 21:33:43.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,1194 +0,0 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2014 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@ - - - -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@ -@WIN32_TRUE@am__append_1 = -no-undefined -avoid-version -subdir = libroutermanager -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ - $(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)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am \ - $(libroutermanager_faxophone_include_HEADERS) \ - $(libroutermanager_include_HEADERS) $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = routermanager.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)$(pcdir)" \ - "$(DESTDIR)$(libroutermanager_faxophone_includedir)" \ - "$(DESTDIR)$(libroutermanager_includedir)" -LTLIBRARIES = $(lib_LTLIBRARIES) -am__DEPENDENCIES_1 = -libroutermanager_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \ - $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ - $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ - $(am__DEPENDENCIES_1) -am__dirstamp = $(am__leading_dot)dirstamp -am_libroutermanager_la_OBJECTS = libroutermanager_la-action.lo \ - libroutermanager_la-address-book.lo \ - libroutermanager_la-appobject-emit.lo \ - libroutermanager_la-appobject.lo libroutermanager_la-audio.lo \ - libroutermanager_la-call.lo \ - libroutermanager_la-routermanager.lo \ - libroutermanager_la-contact.lo \ - libroutermanager_la-connection.lo libroutermanager_la-csv.lo \ - libroutermanager_la-fax_phone.lo \ - libroutermanager_la-fax_spooler.lo \ - libroutermanager_la-fax_server.lo libroutermanager_la-file.lo \ - libroutermanager_la-filter.lo libroutermanager_la-ftp.lo \ - libroutermanager_la-gstring.lo libroutermanager_la-logging.lo \ - libroutermanager_la-lookup.lo \ - libroutermanager_la-net_monitor.lo \ - libroutermanager_la-network.lo libroutermanager_la-osdep.lo \ - libroutermanager_la-password.lo libroutermanager_la-plugins.lo \ - libroutermanager_la-profile.lo libroutermanager_la-router.lo \ - libroutermanager_la-settings.lo libroutermanager_la-ssdp.lo \ - libroutermanager_la-voxplay.lo libroutermanager_la-xml.lo \ - libfaxophone/libroutermanager_la-fax.lo \ - libfaxophone/libroutermanager_la-faxophone.lo \ - libfaxophone/libroutermanager_la-isdn-convert.lo \ - libfaxophone/libroutermanager_la-phone.lo \ - libfaxophone/libroutermanager_la-ringtone.lo \ - libfaxophone/libroutermanager_la-sff.lo -libroutermanager_la_OBJECTS = $(am_libroutermanager_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 = -libroutermanager_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ - $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ - $(libroutermanager_la_CFLAGS) $(CFLAGS) \ - $(libroutermanager_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) -depcomp = -am__depfiles_maybe = -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 = $(libroutermanager_la_SOURCES) -DIST_SOURCES = $(libroutermanager_la_SOURCES) -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 = $(pc_DATA) -HEADERS = $(libroutermanager_faxophone_include_HEADERS) \ - $(libroutermanager_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 \ - distdir -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)` -ETAGS = etags -CTAGS = ctags -DIST_SUBDIRS = $(SUBDIRS) -am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/routermanager.pc.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -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" -ACLOCAL = @ACLOCAL@ -ALL_LINGUAS = @ALL_LINGUAS@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@ -APPINDICATOR_LIBS = @APPINDICATOR_LIBS@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAPI_CFLAGS = @CAPI_CFLAGS@ -CAPI_LIBS = @CAPI_LIBS@ -CATALOGS = @CATALOGS@ -CATOBJEXT = @CATOBJEXT@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DATADIRNAME = @DATADIRNAME@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -EBOOK_CFLAGS = @EBOOK_CFLAGS@ -EBOOK_LIBS = @EBOOK_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXTRA_CFLAGS = @EXTRA_CFLAGS@ -EXTRA_LIBS = @EXTRA_LIBS@ -FAX_SPOOLER_CFLAGS = @FAX_SPOOLER_CFLAGS@ -FAX_SPOOLER_LIBS = @FAX_SPOOLER_LIBS@ -FGREP = @FGREP@ -GDATA_CFLAGS = @GDATA_CFLAGS@ -GDATA_LIBS = @GDATA_LIBS@ -GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMOFILES = @GMOFILES@ -GMSGFMT = @GMSGFMT@ -GREP = @GREP@ -GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@ -GSTREAMER1_CFLAGS = @GSTREAMER1_CFLAGS@ -GSTREAMER1_LIBS = @GSTREAMER1_LIBS@ -GTK_CFLAGS = @GTK_CFLAGS@ -GTK_LIBS = @GTK_LIBS@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INSTOBJEXT = @INSTOBJEXT@ -INTLLIBS = @INTLLIBS@ -INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ -INTLTOOL_MERGE = @INTLTOOL_MERGE@ -INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ -INTLTOOL_PERL = @INTLTOOL_PERL@ -INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ -INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ -INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ -INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ -INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ -INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ -KWALLET_CFLAGS = @KWALLET_CFLAGS@ -KWALLET_LIBS = @KWALLET_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@ -LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@ -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@ -MKINSTALLDIRS = @MKINSTALLDIRS@ -MSGFMT = @MSGFMT@ -MSGFMT_OPTS = @MSGFMT_OPTS@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OS_CFLAGS = @OS_CFLAGS@ -OS_LIBS = @OS_LIBS@ -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@ -PEAS_CFLAGS = @PEAS_CFLAGS@ -PEAS_GTK_CFLAGS = @PEAS_GTK_CFLAGS@ -PEAS_GTK_LIBS = @PEAS_GTK_LIBS@ -PEAS_LIBS = @PEAS_LIBS@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POFILES = @POFILES@ -PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@ -PORTAUDIO_LIBS = @PORTAUDIO_LIBS@ -POSUB = @POSUB@ -PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ -PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ -PULSEAUDIO_CFLAGS = @PULSEAUDIO_CFLAGS@ -PULSEAUDIO_LIBS = @PULSEAUDIO_LIBS@ -RANLIB = @RANLIB@ -ROGER_VERSION_MAJOR = @ROGER_VERSION_MAJOR@ -ROGER_VERSION_MICRO = @ROGER_VERSION_MICRO@ -ROGER_VERSION_MINOR = @ROGER_VERSION_MINOR@ -SECRET_CFLAGS = @SECRET_CFLAGS@ -SECRET_LIBS = @SECRET_LIBS@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SOUP_CFLAGS = @SOUP_CFLAGS@ -SOUP_LIBS = @SOUP_LIBS@ -SPANDSP_CFLAGS = @SPANDSP_CFLAGS@ -SPANDSP_LIBS = @SPANDSP_LIBS@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -WINDRES = @WINDRES@ -XGETTEXT = @XGETTEXT@ -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@ -found_cc = @found_cc@ -gsettingsschemadir = @gsettingsschemadir@ -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@ -intltool__v_merge_options_ = @intltool__v_merge_options_@ -intltool__v_merge_options_0 = @intltool__v_merge_options_0@ -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@ -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@ -SUBDIRS = . plugins data -AUTOMAKE_OPTIONS = no-dependencies foreign -CLEANFILES = *~ comperr -DISTCLEANFILES = intltool-extract intltool-merge intltool-update -MAINTAINERCLEANFILES = configure aclocal.m4 Makefile.in config.h.in -lib_LTLIBRARIES = libroutermanager.la -AM_CFLAGS = -I$(top_srcdir) -libroutermanager_includedir = $(includedir)/libroutermanager/ -libroutermanager_include_HEADERS = $(wildcard *.h) -libroutermanager_faxophone_includedir = $(includedir)/libroutermanager/libfaxophone -libroutermanager_faxophone_include_HEADERS = \ - libfaxophone/fax.h \ - libfaxophone/sff.h \ - libfaxophone/faxophone.h \ - libfaxophone/isdn-convert.h \ - libfaxophone/phone.h \ - libfaxophone/ringtone.h - -libroutermanager_la_SOURCES = \ - action.c\ - action.h\ - address-book.c\ - address-book.h\ - appobject-emit.c\ - appobject-emit.h\ - appobject.c\ - appobject.h\ - audio.c\ - audio.h\ - call.c\ - call.h\ - routermanager.c\ - routermanager.h\ - contact.c\ - contact.h\ - connection.c\ - connection.h\ - csv.c\ - csv.h\ - fax_phone.c \ - fax_phone.h \ - fax_spooler.c\ - fax_server.c\ - fax_printer.h\ - file.c\ - file.h\ - filter.c\ - filter.h\ - ftp.c\ - ftp.h\ - gstring.c\ - gstring.h\ - logging.c\ - logging.h\ - lookup.c\ - lookup.h\ - net_monitor.c\ - net_monitor.h\ - network.c\ - network.h\ - osdep.c\ - osdep.h\ - password.c\ - password.h\ - plugins.c\ - plugins.h\ - profile.c\ - profile.h\ - router.c\ - router.h\ - settings.c\ - settings.h\ - ssdp.c\ - ssdp.h\ - voxplay.c\ - voxplay.h\ - xml.c\ - xml.h\ - libfaxophone/fax.c \ - libfaxophone/fax.h \ - libfaxophone/faxophone.c \ - libfaxophone/faxophone.h \ - libfaxophone/isdn-convert.c \ - libfaxophone/isdn-convert.h \ - libfaxophone/phone.c \ - libfaxophone/phone.h \ - libfaxophone/ringtone.c \ - libfaxophone/ringtone.h \ - libfaxophone/sff.c \ - libfaxophone/sff.h - -libroutermanager_la_LDFLAGS = -rdynamic $(am__append_1) -libroutermanager_la_LIBADD = -lc $(EXTRA_LIBS) $(PEAS_LIBS) $(SOUP_LIBS) $(CAPI_LIBS) $(SPANDSP_LIBS) $(DBUS_LIBS) $(OS_LIBS) -libroutermanager_la_CFLAGS = -fno-strict-aliasing $(EXTRA_CFLAGS) $(APP_CFLAGS) $(PEAS_CFLAGS) -Wall $(SOUP_CFLAGS) $(CAPI_CFLAGS) $(SPANDSP_CFLAGS) $(AM_CFLAGS) $(DBUS_CFLAGS) $(OS_CFLAGS) $(GTK_CFLAGS) -pcdir = ${libdir}/pkgconfig -pc_DATA = routermanager.pc -all: all-recursive - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libroutermanager/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign libroutermanager/Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): -routermanager.pc: $(top_builddir)/config.status $(srcdir)/routermanager.pc.in - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ - -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}; \ - } -libfaxophone/$(am__dirstamp): - @$(MKDIR_P) libfaxophone - @: > libfaxophone/$(am__dirstamp) -libfaxophone/libroutermanager_la-fax.lo: libfaxophone/$(am__dirstamp) -libfaxophone/libroutermanager_la-faxophone.lo: \ - libfaxophone/$(am__dirstamp) -libfaxophone/libroutermanager_la-isdn-convert.lo: \ - libfaxophone/$(am__dirstamp) -libfaxophone/libroutermanager_la-phone.lo: \ - libfaxophone/$(am__dirstamp) -libfaxophone/libroutermanager_la-ringtone.lo: \ - libfaxophone/$(am__dirstamp) -libfaxophone/libroutermanager_la-sff.lo: libfaxophone/$(am__dirstamp) - -libroutermanager.la: $(libroutermanager_la_OBJECTS) $(libroutermanager_la_DEPENDENCIES) $(EXTRA_libroutermanager_la_DEPENDENCIES) - $(AM_V_CCLD)$(libroutermanager_la_LINK) -rpath $(libdir) $(libroutermanager_la_OBJECTS) $(libroutermanager_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -rm -f libfaxophone/*.$(OBJEXT) - -rm -f libfaxophone/*.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 $@ $< - -libroutermanager_la-action.lo: action.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-action.lo `test -f 'action.c' || echo '$(srcdir)/'`action.c - -libroutermanager_la-address-book.lo: address-book.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-address-book.lo `test -f 'address-book.c' || echo '$(srcdir)/'`address-book.c - -libroutermanager_la-appobject-emit.lo: appobject-emit.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-appobject-emit.lo `test -f 'appobject-emit.c' || echo '$(srcdir)/'`appobject-emit.c - -libroutermanager_la-appobject.lo: appobject.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-appobject.lo `test -f 'appobject.c' || echo '$(srcdir)/'`appobject.c - -libroutermanager_la-audio.lo: audio.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-audio.lo `test -f 'audio.c' || echo '$(srcdir)/'`audio.c - -libroutermanager_la-call.lo: call.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-call.lo `test -f 'call.c' || echo '$(srcdir)/'`call.c - -libroutermanager_la-routermanager.lo: routermanager.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-routermanager.lo `test -f 'routermanager.c' || echo '$(srcdir)/'`routermanager.c - -libroutermanager_la-contact.lo: contact.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-contact.lo `test -f 'contact.c' || echo '$(srcdir)/'`contact.c - -libroutermanager_la-connection.lo: connection.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-connection.lo `test -f 'connection.c' || echo '$(srcdir)/'`connection.c - -libroutermanager_la-csv.lo: csv.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-csv.lo `test -f 'csv.c' || echo '$(srcdir)/'`csv.c - -libroutermanager_la-fax_phone.lo: fax_phone.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-fax_phone.lo `test -f 'fax_phone.c' || echo '$(srcdir)/'`fax_phone.c - -libroutermanager_la-fax_spooler.lo: fax_spooler.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-fax_spooler.lo `test -f 'fax_spooler.c' || echo '$(srcdir)/'`fax_spooler.c - -libroutermanager_la-fax_server.lo: fax_server.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-fax_server.lo `test -f 'fax_server.c' || echo '$(srcdir)/'`fax_server.c - -libroutermanager_la-file.lo: file.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-file.lo `test -f 'file.c' || echo '$(srcdir)/'`file.c - -libroutermanager_la-filter.lo: filter.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-filter.lo `test -f 'filter.c' || echo '$(srcdir)/'`filter.c - -libroutermanager_la-ftp.lo: ftp.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-ftp.lo `test -f 'ftp.c' || echo '$(srcdir)/'`ftp.c - -libroutermanager_la-gstring.lo: gstring.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-gstring.lo `test -f 'gstring.c' || echo '$(srcdir)/'`gstring.c - -libroutermanager_la-logging.lo: logging.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-logging.lo `test -f 'logging.c' || echo '$(srcdir)/'`logging.c - -libroutermanager_la-lookup.lo: lookup.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-lookup.lo `test -f 'lookup.c' || echo '$(srcdir)/'`lookup.c - -libroutermanager_la-net_monitor.lo: net_monitor.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-net_monitor.lo `test -f 'net_monitor.c' || echo '$(srcdir)/'`net_monitor.c - -libroutermanager_la-network.lo: network.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-network.lo `test -f 'network.c' || echo '$(srcdir)/'`network.c - -libroutermanager_la-osdep.lo: osdep.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-osdep.lo `test -f 'osdep.c' || echo '$(srcdir)/'`osdep.c - -libroutermanager_la-password.lo: password.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-password.lo `test -f 'password.c' || echo '$(srcdir)/'`password.c - -libroutermanager_la-plugins.lo: plugins.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-plugins.lo `test -f 'plugins.c' || echo '$(srcdir)/'`plugins.c - -libroutermanager_la-profile.lo: profile.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-profile.lo `test -f 'profile.c' || echo '$(srcdir)/'`profile.c - -libroutermanager_la-router.lo: router.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-router.lo `test -f 'router.c' || echo '$(srcdir)/'`router.c - -libroutermanager_la-settings.lo: settings.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-settings.lo `test -f 'settings.c' || echo '$(srcdir)/'`settings.c - -libroutermanager_la-ssdp.lo: ssdp.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-ssdp.lo `test -f 'ssdp.c' || echo '$(srcdir)/'`ssdp.c - -libroutermanager_la-voxplay.lo: voxplay.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-voxplay.lo `test -f 'voxplay.c' || echo '$(srcdir)/'`voxplay.c - -libroutermanager_la-xml.lo: xml.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libroutermanager_la-xml.lo `test -f 'xml.c' || echo '$(srcdir)/'`xml.c - -libfaxophone/libroutermanager_la-fax.lo: libfaxophone/fax.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libfaxophone/libroutermanager_la-fax.lo `test -f 'libfaxophone/fax.c' || echo '$(srcdir)/'`libfaxophone/fax.c - -libfaxophone/libroutermanager_la-faxophone.lo: libfaxophone/faxophone.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libfaxophone/libroutermanager_la-faxophone.lo `test -f 'libfaxophone/faxophone.c' || echo '$(srcdir)/'`libfaxophone/faxophone.c - -libfaxophone/libroutermanager_la-isdn-convert.lo: libfaxophone/isdn-convert.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libfaxophone/libroutermanager_la-isdn-convert.lo `test -f 'libfaxophone/isdn-convert.c' || echo '$(srcdir)/'`libfaxophone/isdn-convert.c - -libfaxophone/libroutermanager_la-phone.lo: libfaxophone/phone.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libfaxophone/libroutermanager_la-phone.lo `test -f 'libfaxophone/phone.c' || echo '$(srcdir)/'`libfaxophone/phone.c - -libfaxophone/libroutermanager_la-ringtone.lo: libfaxophone/ringtone.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libfaxophone/libroutermanager_la-ringtone.lo `test -f 'libfaxophone/ringtone.c' || echo '$(srcdir)/'`libfaxophone/ringtone.c - -libfaxophone/libroutermanager_la-sff.lo: libfaxophone/sff.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libroutermanager_la_CFLAGS) $(CFLAGS) -c -o libfaxophone/libroutermanager_la-sff.lo `test -f 'libfaxophone/sff.c' || echo '$(srcdir)/'`libfaxophone/sff.c - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -rm -rf libfaxophone/.libs libfaxophone/_libs -install-pcDATA: $(pc_DATA) - @$(NORMAL_INSTALL) - @list='$(pc_DATA)'; test -n "$(pcdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(pcdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(pcdir)" || 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)$(pcdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(pcdir)" || exit $$?; \ - done - -uninstall-pcDATA: - @$(NORMAL_UNINSTALL) - @list='$(pc_DATA)'; test -n "$(pcdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(pcdir)'; $(am__uninstall_files_from_dir) -install-libroutermanager_faxophone_includeHEADERS: $(libroutermanager_faxophone_include_HEADERS) - @$(NORMAL_INSTALL) - @list='$(libroutermanager_faxophone_include_HEADERS)'; test -n "$(libroutermanager_faxophone_includedir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(libroutermanager_faxophone_includedir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(libroutermanager_faxophone_includedir)" || 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_HEADER) $$files '$(DESTDIR)$(libroutermanager_faxophone_includedir)'"; \ - $(INSTALL_HEADER) $$files "$(DESTDIR)$(libroutermanager_faxophone_includedir)" || exit $$?; \ - done - -uninstall-libroutermanager_faxophone_includeHEADERS: - @$(NORMAL_UNINSTALL) - @list='$(libroutermanager_faxophone_include_HEADERS)'; test -n "$(libroutermanager_faxophone_includedir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(libroutermanager_faxophone_includedir)'; $(am__uninstall_files_from_dir) -install-libroutermanager_includeHEADERS: $(libroutermanager_include_HEADERS) - @$(NORMAL_INSTALL) - @list='$(libroutermanager_include_HEADERS)'; test -n "$(libroutermanager_includedir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(libroutermanager_includedir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(libroutermanager_includedir)" || 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_HEADER) $$files '$(DESTDIR)$(libroutermanager_includedir)'"; \ - $(INSTALL_HEADER) $$files "$(DESTDIR)$(libroutermanager_includedir)" || exit $$?; \ - done - -uninstall-libroutermanager_includeHEADERS: - @$(NORMAL_UNINSTALL) - @list='$(libroutermanager_include_HEADERS)'; test -n "$(libroutermanager_includedir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(libroutermanager_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" -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 - -distdir: $(DISTFILES) - @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 -check-am: all-am -check: check-recursive -all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS) -installdirs: installdirs-recursive -installdirs-am: - for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pcdir)" "$(DESTDIR)$(libroutermanager_faxophone_includedir)" "$(DESTDIR)$(libroutermanager_includedir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-recursive -install-exec: 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 libfaxophone/$(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 "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) -clean: clean-recursive - -clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ - mostlyclean-am - -distclean: distclean-recursive - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -html-am: - -info: info-recursive - -info-am: - -install-data-am: install-libroutermanager_faxophone_includeHEADERS \ - install-libroutermanager_includeHEADERS install-pcDATA - -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 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-libroutermanager_faxophone_includeHEADERS \ - uninstall-libroutermanager_includeHEADERS uninstall-pcDATA - -.MAKE: $(am__recursive_targets) install-am install-strip - -.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ - check-am clean clean-generic clean-libLTLIBRARIES \ - clean-libtool cscopelist-am ctags ctags-am distclean \ - distclean-compile distclean-generic distclean-libtool \ - distclean-tags distdir 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-libroutermanager_faxophone_includeHEADERS \ - install-libroutermanager_includeHEADERS install-man \ - install-pcDATA install-pdf install-pdf-am 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-libroutermanager_faxophone_includeHEADERS \ - uninstall-libroutermanager_includeHEADERS uninstall-pcDATA - -.PRECIOUS: Makefile - - stamp-h.in - -$(OBJECTS): libtool - -export SED - -libtool: $(LIBTOOL_DEPS) - $(SHELL) ./config.status --recheck - -#if HAVE_INTROSPECTION -#-include $(INTROSPECTION_MAKEFILE) -#INTROSPECTION_GIRS = -#INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) --warn-all --identifier-prefix=rm -#--accept-unprefixed -#INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) - -#router_manager-1.0.gir: libroutermanager.la -#router_manager_1_0_gir_NAMESPACE = router_manager -#router_manager_1_0_gir_VERSION = 1.8.2 -#router_manager_1_0_gir_INCLUDES = GObject-2.0 -#router_manager_1_0_gir_CFLAGS = $(libroutermanager_la_CFLAGS) -#router_manager_1_0_gir_LIBS = libroutermanager.la -#router_manager_1_0_gir_FILES = $(libroutermanager_la_SOURCES) -#INTROSPECTION_GIRS += router_manager-1.0.gir - -#girdir = $(datadir)/gir-1.0 -#gir_DATA = $(INTROSPECTION_GIRS) - -#typelibdir = $(libdir)/girepository-1.0 -#typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib) - -#CLEANFILES += $(gir_DATA) $(typelib_DATA) -#endif - -# 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: diff -Nru roger-router-1.8.14/libroutermanager/net_monitor.c roger-router-2.1.6/libroutermanager/net_monitor.c --- roger-router-1.8.14/libroutermanager/net_monitor.c 2015-12-06 17:36:19.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/net_monitor.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,218 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include -#include -#include -#include - -/** Internal network event list */ -static GSList *net_event_list = NULL; -/** Internal last known network state */ -static gboolean net_online = FALSE; - -/** - * \brief Add network event - * \param connect network connect function - * \param disconnect network disconnect function - * \param user_data user data pointer - * \return net event id - */ -gconstpointer net_add_event(net_connect_func connect, net_disconnect_func disconnect, gpointer user_data) -{ - struct net_event *event; - - /* Sanity checks */ - g_assert(connect != NULL); - g_assert(disconnect != NULL); - - /* Allocate new event */ - event = g_slice_new(struct net_event); - - /* Set event functions */ - event->connect = connect; - event->disconnect = disconnect; - event->user_data = user_data; - - /* Add to network event list */ - net_event_list = g_slist_append(net_event_list, event); - - /* If current state is online, start connect() function */ - if (net_online) { - event->connect(event->user_data); - } - - return event; -} - -/** - * \brief Remove network event by id - * \param net_event_id network event id - */ -void net_remove_event(gconstpointer net_event_id) -{ - struct net_event *event = (struct net_event *) net_event_id; - - net_event_list = g_slist_remove(net_event_list, net_event_id); - - if (net_online) { - event->disconnect(event->user_data); - } - - g_slice_free(struct net_event, event); -} - -/** - * \brief Return network status text - * \param state network state - * \return network state in text - */ -static inline gchar *net_state(gboolean state) -{ - return state ? "online" : "offline"; -} - -/** - * \brief Return network online status - * \return network online status - */ -gboolean net_is_online(void) -{ - return net_online; -} - -/** - * \brief Handle network state changes - * \param state current network state - */ -void net_monitor_state_changed(gboolean state) -{ - GSList *list; - - /* Compare internal and new network state, only handle new states */ - if ((net_online == state) && (!state || profile_get_active())) { - g_debug("Network state repeated, ignored (%s)", net_state(state)); - return; - } - - g_debug("Network state changed from %s to %s", net_state(net_online), net_state(state)); - - /* Set internal network state */ - net_online = state; - - /* Call network function depending on network state */ - if (!net_online) { - /* Offline: disconnect all network events */ - for (list = net_event_list; list != NULL; list = list->next) { - struct net_event *event = list->data; - - event->disconnect(event->user_data); - } - - /* Disable active profile */ - profile_set_active(NULL); - } else { - /* Online: Try to detect active profile */ - if (profile_detect_active()) { - /* We have an active profile: Connect to all network events */ - for (list = net_event_list; list != NULL; list = list->next) { - struct net_event *event = list->data; - - event->connect(event->user_data); - } - } - } -} - -/** - * \brief Issue a reconnect (events are retriggerd so events that depends on profile are connected) - */ -void net_monitor_reconnect(void) -{ -#ifdef G_OS_UNIX - GNetworkMonitor *monitor = g_network_monitor_get_default(); - - net_monitor_state_changed(FALSE); - -#if GLIB_CHECK_VERSION(2,44,0) - net_monitor_state_changed(g_network_monitor_get_connectivity(monitor) != G_NETWORK_CONNECTIVITY_LOCAL); -#else - net_monitor_state_changed(g_network_monitor_get_network_available(monitor)); -#endif - -#else - net_monitor_state_changed(FALSE); - net_monitor_state_changed(TRUE); -#endif -} - -/** - * \brief Network monitor changed callback - * \param monitor GNetworkMonitor pointer - * \param available network available flag - * \param unused unused user data pointer - */ -void net_monitor_changed_cb(GNetworkMonitor *monitor, gboolean available, gpointer unused) -{ - net_monitor_state_changed(available); -} - -/** - * \brief Initialize network monitor - * \return TRUE on success, otherwise FALSE - */ -gboolean net_monitor_init(void) -{ -#ifdef G_OS_UNIX - GNetworkMonitor *monitor = g_network_monitor_get_default(); - - g_return_val_if_fail(monitor != NULL, FALSE); - - /* Connect signal handler */ - g_signal_connect(monitor, "network-changed", G_CALLBACK(net_monitor_changed_cb), NULL); - - ssdp_init(); - -#if GLIB_CHECK_VERSION(2,44,0) - net_monitor_state_changed(g_network_monitor_get_connectivity(monitor) != G_NETWORK_CONNECTIVITY_LOCAL); -#else - net_monitor_state_changed(g_network_monitor_get_network_available(monitor)); -#endif -#else - net_monitor_state_changed(TRUE); -#endif - - return TRUE; -} - -/** - * \brief Shutdown network monitor (disconnect signal and shutdown event callbacks) - */ -void net_monitor_shutdown(void) -{ -#ifdef G_OS_UNIX - GNetworkMonitor *monitor = g_network_monitor_get_default(); - - /* Disconnect signal handler */ - g_signal_handlers_disconnect_by_func(monitor, G_CALLBACK(net_monitor_changed_cb), NULL); -#endif - - /* Send offline state */ - net_monitor_state_changed(FALSE); -} diff -Nru roger-router-1.8.14/libroutermanager/net_monitor.h roger-router-2.1.6/libroutermanager/net_monitor.h --- roger-router-1.8.14/libroutermanager/net_monitor.h 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/net_monitor.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,45 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_NET_MONITOR_H -#define LIBROUTERMANAGER_NET_MONITOR_H - -G_BEGIN_DECLS - -typedef gboolean (*net_connect_func)(gpointer user_data); -typedef gboolean (*net_disconnect_func)(gpointer user_data); - -struct net_event { - net_connect_func connect; - net_disconnect_func disconnect; - gpointer user_data; -}; - -gboolean net_monitor_init(void); -void net_monitor_shutdown(void); - -void net_monitor_state_changed(gboolean state); -gconstpointer net_add_event(net_connect_func connect, net_disconnect_func disconnect, gpointer user_data); -void net_remove_event(gconstpointer net_event_id); -gboolean net_is_online(void); -void net_monitor_reconnect(void); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/network.c roger-router-2.1.6/libroutermanager/network.c --- roger-router-1.8.14/libroutermanager/network.c 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/network.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,48 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include - -#include - -/** Soup sync. session */ -SoupSession *soup_session_sync = NULL; -/** Soup async. session */ -SoupSession *soup_session_async = NULL; - -/** - * \brief Initialize network functions - * \return TRUE on success, otherwise FALSE - */ -gboolean net_init(void) -{ - soup_session_sync = soup_session_sync_new_with_options(SOUP_SESSION_TIMEOUT, 5, NULL); - soup_session_async = soup_session_async_new(); - - return soup_session_sync && soup_session_async; -} - -/** - * \brief Deinitialize network infrastructure - */ -void net_shutdown(void) -{ - g_clear_object(&soup_session_sync); - g_clear_object(&soup_session_async); -} diff -Nru roger-router-1.8.14/libroutermanager/network.h roger-router-2.1.6/libroutermanager/network.h --- roger-router-1.8.14/libroutermanager/network.h 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/network.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,35 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_NETWORK_H -#define LIBROUTERMANAGER_NETWORK_H - -G_BEGIN_DECLS - -#include - -extern SoupSession *soup_session_sync; -extern SoupSession *soup_session_async; - -gboolean net_init(void); -void net_shutdown(void); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/osdep.c roger-router-2.1.6/libroutermanager/osdep.c --- roger-router-1.8.14/libroutermanager/osdep.c 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/osdep.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,48 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include - -#ifdef G_OS_WIN32 -#include -#include -#endif - -#include - -/** - * \brief Execute URI - * \param uri uri name - */ -void os_execute(const gchar *uri) -{ - gchar *exec; - - /* create execution command line for g_spawn */ - exec = g_strdup_printf("%s %s", OS_OPEN, uri); - -#ifdef G_OS_WIN32 - ShellExecute(0, "open", uri, 0, 0, SW_SHOW); -#else - g_spawn_command_line_async(exec, NULL); -#endif - - /* free command line */ - g_free(exec); -} diff -Nru roger-router-1.8.14/libroutermanager/osdep.h roger-router-2.1.6/libroutermanager/osdep.h --- roger-router-1.8.14/libroutermanager/osdep.h 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/osdep.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,46 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_OSDEP_H -#define LIBROUTERMANAGER_OSDEP_H -#ifdef G_OS_WIN32 -#define OS_OPEN "start" -#define APP_USER_DIR APP_NAME -#endif - -#ifdef G_OS_UNIX -#ifdef __MACOSX__ -#define OS_OPEN "open" -#define APP_USER_DIR "." APP_NAME -/* work around for warnings where gtk-mac-integration expects a label to have an accel closure */ -/* we simply use an accel label instead of the normal label */ -#define gtk_label_new(text) gtk_accel_label_new(text) -#else -#define OS_OPEN "xdg-open" -#define APP_USER_DIR ".config/" APP_NAME -#endif -#endif - -G_BEGIN_DECLS - -void os_execute(const gchar *uri); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/password.c roger-router-2.1.6/libroutermanager/password.c --- roger-router-1.8.14/libroutermanager/password.c 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/password.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,103 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include - -#include - -/** Internal password manager list */ -static GSList *pm_plugins = NULL; - -/** - * \brief Find password manager as requested by profile - * \param profile profile structure - * \return password manager pointer or NULL on error - */ -struct password_manager *password_manager_find(struct profile *profile) -{ - gchar *name = g_settings_get_string(profile->settings, "password-manager"); - GSList *list; - - for (list = pm_plugins; list != NULL; list = list->next) { - struct password_manager *pm = list->data; - - if (pm && pm->name && name && !strcmp(pm->name, name)) { - return pm; - } - } - - return pm_plugins ? pm_plugins->data : NULL; -} - -/** - * \brief Set password in manager - * \param profile profile structure - * \param name description of password - * \param password password string - */ -void password_manager_set_password(struct profile *profile, const gchar *name, const gchar *password) -{ - struct password_manager *pm = password_manager_find(profile); - - pm->set_password(profile, name, password); -} - -/** - * \brief Get password from manager - * \param profile profile structure - * \param name description of password - * \return password on success, NULL on error - */ -gchar *password_manager_get_password(struct profile *profile, const gchar *name) -{ - struct password_manager *pm = password_manager_find(profile); - - return pm->get_password(profile, name); -} - -/** - * \brief Remove password from manager - * \param profile profile structure - * \param name description of password - * \return TRUE on success, FALSE on error - */ -gboolean password_manager_remove_password(struct profile *profile, const gchar *name) -{ - struct password_manager *pm = password_manager_find(profile); - - return pm->remove_password(profile, name); -} - -/** - * \brief Register password manager plugin - * \param manager password manager plugin - */ -void password_manager_register(struct password_manager *manager) -{ - pm_plugins = g_slist_prepend(pm_plugins, manager); -} - -/** - * \brief Get a list of all password manager plugins - * \return list of password manager plugins - */ -GSList *password_manager_get_plugins(void) -{ - return pm_plugins; -} diff -Nru roger-router-1.8.14/libroutermanager/password.h roger-router-2.1.6/libroutermanager/password.h --- roger-router-1.8.14/libroutermanager/password.h 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/password.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,45 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_PASSWORD_H -#define LIBROUTERMANAGER_PASSWORD_H - -#include - -#include - -G_BEGIN_DECLS - -struct password_manager { - const gchar *name; - void (*set_password)(struct profile *profile, const gchar *name, const gchar *password); - gchar *(*get_password)(struct profile *profile, const gchar *name); - gboolean (*remove_password)(struct profile *profile, const gchar *name); -}; - -void password_manager_set_password(struct profile *profile, const gchar *name, const gchar *password); -gchar *password_manager_get_password(struct profile *profile, const gchar *name); -gboolean password_manager_remove_password(struct profile *profile, const gchar *name); -void password_manager_register(struct password_manager *manager); -GSList *password_manager_get_plugins(void); -void password_manager_init(void); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/plugins/areacodes_global/areacodes_global.c roger-router-2.1.6/libroutermanager/plugins/areacodes_global/areacodes_global.c --- roger-router-1.8.14/libroutermanager/plugins/areacodes_global/areacodes_global.c 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/areacodes_global/areacodes_global.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,227 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include -#include - -#include - -#include -#include -#include -#include -#include -#include -#include - -#include "csv.h" - -#define ROUTERMANAGER_TYPE_GLOBAL_AREACODES_PLUGIN (routermanager_global_areacodes_plugin_get_type ()) -#define ROUTERMANAGER_GLOBAL_AREACODES_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST((o), ROUTERMANAGER_TYPE_GLOBAL_AREACODES_PLUGIN, RouterManagerGlobalAreaCodesPlugin)) - -typedef struct { - guint signal_id; - GHashTable *table; -} RouterManagerGlobalAreaCodesPluginPrivate; - -ROUTERMANAGER_PLUGIN_REGISTER(ROUTERMANAGER_TYPE_GLOBAL_AREACODES_PLUGIN, RouterManagerGlobalAreaCodesPlugin, routermanager_global_areacodes_plugin) - -/** - * \brief Get area code pointer based on full_number - * \param areacodes_plugin private plugin data - * \param full_number full phone number - * \return pointer to areacode entry - */ -struct areacode *areacodes_get_area_code(RouterManagerGlobalAreaCodesPlugin *areacodes_plugin, const gchar *full_number) -{ - gchar sub_string[6]; - gint index; - gint len = strlen(full_number); - struct areacode *areacode; - - index = len > 6 ? 6 : len; - - while (index-- > 0) { - memset(sub_string, 0, sizeof(sub_string)); - strncpy(sub_string, full_number + 2, index); - - //g_debug("sub_string: '%s'", sub_string); - areacode = g_hash_table_lookup(areacodes_plugin->priv->table, sub_string); - if (areacode) { - return areacode; - } - } - - return NULL; -} - -/** - * \brief Lookup city name by number - * \param areacodes_plugin areacodes plugin structure - * \param number remote caller number - * \return city name or empty string - */ -static gchar *areacodes_get_city(RouterManagerGlobalAreaCodesPlugin *areacodes_plugin, gchar *number) -{ - gchar *full_number; - gchar *ret = NULL; - gint len; - gchar sub_string[6]; - gchar *local_number; - struct areacode *areacode = NULL; - - if (!areacodes_plugin->priv->table) { - return g_strdup(""); - } - - full_number = call_full_number(number, TRUE); - //g_debug("full_number: '%s'", full_number); - - /* Find area code */ - areacode = areacodes_get_area_code(areacodes_plugin, full_number); - - if (!areacode) { - g_free(full_number); - return g_strdup(""); - } - - //g_debug("country: '%s'", areacode->country); - - local_number = g_strdup_printf("0%s", full_number + 2 + areacode->skip); - g_free(full_number); - - len = strlen(local_number); - - /* Check for a 3 char match */ - if (len >= 3 && !ret) { - memset(sub_string, 0, sizeof(sub_string)); - strncpy(sub_string, local_number, 3); - - //g_debug("Checking 3-match: %s", sub_string); - - ret = g_hash_table_lookup(areacode->table, sub_string); - } - - /* Check for a 4 char match */ - if (len >= 4 && !ret) { - memset(sub_string, 0, sizeof(sub_string)); - strncpy(sub_string, local_number, 4); - - //g_debug("Checking 4-match: %s", sub_string); - - ret = g_hash_table_lookup(areacode->table, sub_string); - } - - /* Check for a 5 char match */ - if (len >= 5 && !ret) { - memset(sub_string, 0, sizeof(sub_string)); - strncpy(sub_string, local_number, 5); - - //g_debug("Checking 5-match: %s", sub_string); - - ret = g_hash_table_lookup(areacode->table, sub_string); - } - - g_free(local_number); - - if (!ret) { - //g_debug("Not found"); - return g_strdup(""); - } - - //g_debug("Ret: %s", ret); - return g_convert_utf8(ret, -1); -} - -/** - * \brief Contact process callback (searches for areacodes and set city name) - * \param obj app object - * \param contact contact structure - * \param user_data pointer to areacodes plugin structure - */ -static void global_areacodes_contact_process_cb(AppObject *obj, struct contact *contact, gpointer user_data) -{ - RouterManagerGlobalAreaCodesPlugin *areacodes_plugin = user_data; - - if (EMPTY_STRING(contact->number)) { - return; - } - - /* Free old city name */ - g_free(contact->city); - - /* Set new city name */ - contact->city = areacodes_get_city(areacodes_plugin, contact->number); -} - -/** - * \brief Activate plugin - * \param plugin peas plugin - */ -static void impl_activate(PeasActivatable *plugin) -{ - RouterManagerGlobalAreaCodesPlugin *areacodes_plugin = ROUTERMANAGER_GLOBAL_AREACODES_PLUGIN(plugin); - gchar *areacodes = g_build_filename(get_directory(ROUTERMANAGER_PLUGINS), "areacodes_global", "globalareacodes.csv", NULL); - gchar *data; - gsize read; - - g_debug("AreaCodes: '%s'", areacodes); - - /* Load data file */ - data = file_load(areacodes, &read); - if (!data || read < 1) { - g_debug("Could not load areacodes: %s", areacodes); - g_free(data); - g_free(areacodes); - - return; - } - - /* Make sure data is terminated */ - data[read - 1] = '\0'; - - /* Parse data */ - areacodes_plugin->priv->table = csv_parse_global_areacodes_data(data); - - /* Free data */ - g_free(data); - g_free(areacodes); - - /* Connect to "contact-process" signal using "after" as this should come last */ - areacodes_plugin->priv->signal_id = g_signal_connect_after(G_OBJECT(app_object), "contact-process", G_CALLBACK(global_areacodes_contact_process_cb), areacodes_plugin); -} - -/** - * \brief Deactivate plugin - * \param plugin peas plugin - */ -static void impl_deactivate(PeasActivatable *plugin) -{ - RouterManagerGlobalAreaCodesPlugin *areacodes_plugin = ROUTERMANAGER_GLOBAL_AREACODES_PLUGIN(plugin); - - /* If signal handler is connected: disconnect */ - if (g_signal_handler_is_connected(G_OBJECT(app_object), areacodes_plugin->priv->signal_id)) { - g_signal_handler_disconnect(G_OBJECT(app_object), areacodes_plugin->priv->signal_id); - } - - /* Free hash table */ - if (areacodes_plugin->priv->table) { - g_hash_table_destroy(areacodes_plugin->priv->table); - } -} diff -Nru roger-router-1.8.14/libroutermanager/plugins/areacodes_global/areacodes_global.plugin.in roger-router-2.1.6/libroutermanager/plugins/areacodes_global/areacodes_global.plugin.in --- roger-router-1.8.14/libroutermanager/plugins/areacodes_global/areacodes_global.plugin.in 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/areacodes_global/areacodes_global.plugin.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,8 +0,0 @@ -[Plugin] -Module=areacodes_global -_Name=Areacodes (Global) -_Description=Display city name in journal -Authors=Jan-Michael Brummer -Copyright=Copyright © 2012 Jan-Michael Brummer -Website=http://www.tabos.org/ -Help=http://www.tabos.org/forum/ diff -Nru roger-router-1.8.14/libroutermanager/plugins/areacodes_global/csv.c roger-router-2.1.6/libroutermanager/plugins/areacodes_global/csv.c --- roger-router-1.8.14/libroutermanager/plugins/areacodes_global/csv.c 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/areacodes_global/csv.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,126 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include -#include - -#include - -#include -#include "csv.h" - -#define CSV_AREACODES "\"Country\",\"Country Code\",\"Area\",\"Area Code\"" - -/** - * \brief trim csv string - * \param str_in input string - * \return trimmed string - */ -static gchar *csv_trim(const gchar *str_in) -{ - gchar *str_out; - gint len = strlen(str_in) - 1; - - if (len <= 0) { - return g_strdup(""); - } - - str_out = g_malloc0(len); - strncpy(str_out, str_in + 1, len - 1); - - return str_out; -} - -/** - * \brief Parse areacodes line - * \param ptr hashtable pointer - * \param split splitted line - * \return hashtable pointer - */ -static gpointer csv_parse_global_areacodes(gpointer ptr, gchar **split) -{ - GHashTable *global_table = ptr; - - /* If we have 4 fields add it to table */ - if (g_strv_length(split) == 4) { - struct areacode *areacode; - - //g_debug("Looking for '%s'/'%s'-country table in global table", split[1], csv_trim(split[0])); - areacode = g_hash_table_lookup(global_table, split[1]); - if (!areacode) { - //g_debug("Areacode not found, creating new one and adding it to global table"); - areacode = g_slice_new(struct areacode); - areacode->country = csv_trim(split[0]); - areacode->skip = strlen(split[1]); - - areacode->table = g_hash_table_new(g_str_hash, g_str_equal); - g_hash_table_insert(global_table, g_strdup(split[1]), areacode); - } - - if (strlen(split[2]) && strlen(split[3])) { - //g_debug("Adding '%s' to key '%s' in country table '%s'", csv_trim(split[2]), csv_trim(split[3]), split[1]); - g_hash_table_insert(areacode->table, csv_trim(split[3]), csv_trim(split[2])); - } - } - - return ptr; -} - -/** - * \brief Free key data of hash table - * \param data data pointer - */ -static void csv_data_destroy(gpointer data) -{ - g_free(data); -} - -/** - * \brief Free value data of hash table - * \param data data pointer - */ -static void csv_areacode_destroy(gpointer data) -{ - struct areacode *areacode = data; - - //g_debug("Destroying '%s'", areacode->country); - g_free(areacode->country); - - if (areacode->table) { - g_hash_table_destroy(areacode->table); - } - - g_slice_free(struct areacode, data); -} - -/** - * \brief Parse Areacodes data - * \param data input data from areacodes file - * \return hashtable pointer - */ -GHashTable *csv_parse_global_areacodes_data(gchar *data) -{ - GHashTable *global_table = NULL; - - global_table = g_hash_table_new_full(g_str_hash, g_str_equal, csv_data_destroy, csv_areacode_destroy); - - csv_parse_data(data, CSV_AREACODES, csv_parse_global_areacodes, global_table); - - return global_table; -} diff -Nru roger-router-1.8.14/libroutermanager/plugins/areacodes_global/csv.h roger-router-2.1.6/libroutermanager/plugins/areacodes_global/csv.h --- roger-router-1.8.14/libroutermanager/plugins/areacodes_global/csv.h 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/areacodes_global/csv.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,34 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef AREACODES_CSV_H -#define AREACODES_CSV_H - -struct areacode { - gchar *country; - gint skip; - GHashTable *table; -}; - -G_BEGIN_DECLS -GHashTable *csv_parse_global_areacodes_data(gchar *data); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/plugins/areacodes_global/Makefile.am roger-router-2.1.6/libroutermanager/plugins/areacodes_global/Makefile.am --- roger-router-1.8.14/libroutermanager/plugins/areacodes_global/Makefile.am 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/areacodes_global/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,21 +0,0 @@ -plugin_in_files = areacodes_global.plugin - -include ../Makefile.plugins - -plugindir = $(libdir)/routermanager/areacodes_global - -plugin_LTLIBRARIES = libareacodes_global.la - -sharedir = $(libdir)/routermanager/areacodes_global -share_DATA = share/globalareacodes.csv - -EXTRA_DIST += $(share_DATA) - -libareacodes_global_la_SOURCES = \ - areacodes_global.c \ - csv.c \ - csv.h - -libareacodes_global_la_CFLAGS = $(plugin_cflags) -DPLUGIN_DIR=\"$(plugindir)\" -libareacodes_global_la_LDFLAGS = $(plugin_ldflags) -libareacodes_global_la_LIBADD = $(plugin_libadd) diff -Nru roger-router-1.8.14/libroutermanager/plugins/areacodes_global/Makefile.in roger-router-2.1.6/libroutermanager/plugins/areacodes_global/Makefile.in --- roger-router-1.8.14/libroutermanager/plugins/areacodes_global/Makefile.in 2015-12-10 21:33:43.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/areacodes_global/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,838 +0,0 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2014 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@ - - -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@ -@WIN32_TRUE@am__append_1 = -L$(top_srcdir)/libroutermanager/.libs -lroutermanager -no-undefined -@MACOSX_TRUE@am__append_2 = -L$(top_srcdir)/libroutermanager/.libs -lroutermanager -no-undefined -subdir = libroutermanager/plugins/areacodes_global -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ - $(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)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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)$(plugindir)" "$(DESTDIR)$(plugindir)" \ - "$(DESTDIR)$(sharedir)" -LTLIBRARIES = $(plugin_LTLIBRARIES) -am__DEPENDENCIES_1 = -am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) -libareacodes_global_la_DEPENDENCIES = $(am__DEPENDENCIES_2) -am_libareacodes_global_la_OBJECTS = \ - libareacodes_global_la-areacodes_global.lo \ - libareacodes_global_la-csv.lo -libareacodes_global_la_OBJECTS = $(am_libareacodes_global_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 = -libareacodes_global_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ - $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ - $(libareacodes_global_la_CFLAGS) $(CFLAGS) \ - $(libareacodes_global_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) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -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 = $(libareacodes_global_la_SOURCES) -DIST_SOURCES = $(libareacodes_global_la_SOURCES) -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -DATA = $(plugin_DATA) $(share_DATA) -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)` -ETAGS = etags -CTAGS = ctags -am__DIST_COMMON = $(srcdir)/../Makefile.plugins $(srcdir)/Makefile.in \ - $(top_srcdir)/depcomp -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -ALL_LINGUAS = @ALL_LINGUAS@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@ -APPINDICATOR_LIBS = @APPINDICATOR_LIBS@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAPI_CFLAGS = @CAPI_CFLAGS@ -CAPI_LIBS = @CAPI_LIBS@ -CATALOGS = @CATALOGS@ -CATOBJEXT = @CATOBJEXT@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DATADIRNAME = @DATADIRNAME@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -EBOOK_CFLAGS = @EBOOK_CFLAGS@ -EBOOK_LIBS = @EBOOK_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXTRA_CFLAGS = @EXTRA_CFLAGS@ -EXTRA_LIBS = @EXTRA_LIBS@ -FAX_SPOOLER_CFLAGS = @FAX_SPOOLER_CFLAGS@ -FAX_SPOOLER_LIBS = @FAX_SPOOLER_LIBS@ -FGREP = @FGREP@ -GDATA_CFLAGS = @GDATA_CFLAGS@ -GDATA_LIBS = @GDATA_LIBS@ -GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMOFILES = @GMOFILES@ -GMSGFMT = @GMSGFMT@ -GREP = @GREP@ -GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@ -GSTREAMER1_CFLAGS = @GSTREAMER1_CFLAGS@ -GSTREAMER1_LIBS = @GSTREAMER1_LIBS@ -GTK_CFLAGS = @GTK_CFLAGS@ -GTK_LIBS = @GTK_LIBS@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INSTOBJEXT = @INSTOBJEXT@ -INTLLIBS = @INTLLIBS@ -INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ -INTLTOOL_MERGE = @INTLTOOL_MERGE@ -INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ -INTLTOOL_PERL = @INTLTOOL_PERL@ -INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ -INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ -INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ -INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ -INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ -INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ -KWALLET_CFLAGS = @KWALLET_CFLAGS@ -KWALLET_LIBS = @KWALLET_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@ -LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@ -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@ -MKINSTALLDIRS = @MKINSTALLDIRS@ -MSGFMT = @MSGFMT@ -MSGFMT_OPTS = @MSGFMT_OPTS@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OS_CFLAGS = @OS_CFLAGS@ -OS_LIBS = @OS_LIBS@ -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@ -PEAS_CFLAGS = @PEAS_CFLAGS@ -PEAS_GTK_CFLAGS = @PEAS_GTK_CFLAGS@ -PEAS_GTK_LIBS = @PEAS_GTK_LIBS@ -PEAS_LIBS = @PEAS_LIBS@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POFILES = @POFILES@ -PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@ -PORTAUDIO_LIBS = @PORTAUDIO_LIBS@ -POSUB = @POSUB@ -PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ -PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ -PULSEAUDIO_CFLAGS = @PULSEAUDIO_CFLAGS@ -PULSEAUDIO_LIBS = @PULSEAUDIO_LIBS@ -RANLIB = @RANLIB@ -ROGER_VERSION_MAJOR = @ROGER_VERSION_MAJOR@ -ROGER_VERSION_MICRO = @ROGER_VERSION_MICRO@ -ROGER_VERSION_MINOR = @ROGER_VERSION_MINOR@ -SECRET_CFLAGS = @SECRET_CFLAGS@ -SECRET_LIBS = @SECRET_LIBS@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SOUP_CFLAGS = @SOUP_CFLAGS@ -SOUP_LIBS = @SOUP_LIBS@ -SPANDSP_CFLAGS = @SPANDSP_CFLAGS@ -SPANDSP_LIBS = @SPANDSP_LIBS@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -WINDRES = @WINDRES@ -XGETTEXT = @XGETTEXT@ -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@ -found_cc = @found_cc@ -gsettingsschemadir = @gsettingsschemadir@ -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@ -intltool__v_merge_options_ = @intltool__v_merge_options_@ -intltool__v_merge_options_0 = @intltool__v_merge_options_0@ -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@ -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@ -plugin_in_files = areacodes_global.plugin -plugin_DATA = $(plugin_in_files:.plugin.in=.plugin) -CLEANFILES = $(plugin_DATA) -DISTCLEANFILES = $(plugin_DATA) -EXTRA_DIST = $(plugin_in_files).in $(share_DATA) -AM_CFLAGS = \ - $(PEAS_CFLAGS) \ - $(OS_CFLAGS) \ - -I$(top_srcdir)/ - -plugin_cflags = \ - $(PEAS_CFLAGS) \ - $(OS_CFLAGS) \ - -I$(top_srcdir)/ - -plugin_ldflags = -export-dynamic -no-undefined -avoid-version -module \ - -shared $(PLUGIN_LIBTOOL_FLAGS) $(am__append_1) \ - $(am__append_2) -plugin_libadd = \ - $(PEAS_LIBS) \ - $(OS_LIBS) - -plugindir = $(libdir)/routermanager/areacodes_global -plugin_LTLIBRARIES = libareacodes_global.la -sharedir = $(libdir)/routermanager/areacodes_global -share_DATA = share/globalareacodes.csv -libareacodes_global_la_SOURCES = \ - areacodes_global.c \ - csv.c \ - csv.h - -libareacodes_global_la_CFLAGS = $(plugin_cflags) -DPLUGIN_DIR=\"$(plugindir)\" -libareacodes_global_la_LDFLAGS = $(plugin_ldflags) -libareacodes_global_la_LIBADD = $(plugin_libadd) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../Makefile.plugins $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libroutermanager/plugins/areacodes_global/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign libroutermanager/plugins/areacodes_global/Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; -$(srcdir)/../Makefile.plugins $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES) - @$(NORMAL_INSTALL) - @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || 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)$(plugindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(plugindir)" || exit 1; \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(plugindir)'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(plugindir)"; \ - } - -uninstall-pluginLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || list=; \ - for p in $$list; do \ - $(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(plugindir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(plugindir)/$$f"; \ - done - -clean-pluginLTLIBRARIES: - -test -z "$(plugin_LTLIBRARIES)" || rm -f $(plugin_LTLIBRARIES) - @list='$(plugin_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}; \ - } - -libareacodes_global.la: $(libareacodes_global_la_OBJECTS) $(libareacodes_global_la_DEPENDENCIES) $(EXTRA_libareacodes_global_la_DEPENDENCIES) - $(AM_V_CCLD)$(libareacodes_global_la_LINK) -rpath $(plugindir) $(libareacodes_global_la_OBJECTS) $(libareacodes_global_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libareacodes_global_la-areacodes_global.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libareacodes_global_la-csv.Plo@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ -@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -libareacodes_global_la-areacodes_global.lo: areacodes_global.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libareacodes_global_la_CFLAGS) $(CFLAGS) -MT libareacodes_global_la-areacodes_global.lo -MD -MP -MF $(DEPDIR)/libareacodes_global_la-areacodes_global.Tpo -c -o libareacodes_global_la-areacodes_global.lo `test -f 'areacodes_global.c' || echo '$(srcdir)/'`areacodes_global.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libareacodes_global_la-areacodes_global.Tpo $(DEPDIR)/libareacodes_global_la-areacodes_global.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='areacodes_global.c' object='libareacodes_global_la-areacodes_global.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libareacodes_global_la_CFLAGS) $(CFLAGS) -c -o libareacodes_global_la-areacodes_global.lo `test -f 'areacodes_global.c' || echo '$(srcdir)/'`areacodes_global.c - -libareacodes_global_la-csv.lo: csv.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libareacodes_global_la_CFLAGS) $(CFLAGS) -MT libareacodes_global_la-csv.lo -MD -MP -MF $(DEPDIR)/libareacodes_global_la-csv.Tpo -c -o libareacodes_global_la-csv.lo `test -f 'csv.c' || echo '$(srcdir)/'`csv.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libareacodes_global_la-csv.Tpo $(DEPDIR)/libareacodes_global_la-csv.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='csv.c' object='libareacodes_global_la-csv.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libareacodes_global_la_CFLAGS) $(CFLAGS) -c -o libareacodes_global_la-csv.lo `test -f 'csv.c' || echo '$(srcdir)/'`csv.c - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-pluginDATA: $(plugin_DATA) - @$(NORMAL_INSTALL) - @list='$(plugin_DATA)'; test -n "$(plugindir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(plugindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(plugindir)" || 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)$(plugindir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(plugindir)" || exit $$?; \ - done - -uninstall-pluginDATA: - @$(NORMAL_UNINSTALL) - @list='$(plugin_DATA)'; test -n "$(plugindir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(plugindir)'; $(am__uninstall_files_from_dir) -install-shareDATA: $(share_DATA) - @$(NORMAL_INSTALL) - @list='$(share_DATA)'; test -n "$(sharedir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(sharedir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(sharedir)" || 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)$(sharedir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(sharedir)" || exit $$?; \ - done - -uninstall-shareDATA: - @$(NORMAL_UNINSTALL) - @list='$(share_DATA)'; test -n "$(sharedir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(sharedir)'; $(am__uninstall_files_from_dir) - -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-am -TAGS: tags - -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - set x; \ - here=`pwd`; \ - $(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-am - -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" -cscopelist: cscopelist-am - -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 - -distdir: $(DISTFILES) - @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 -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) $(DATA) -installdirs: - for dir in "$(DESTDIR)$(plugindir)" "$(DESTDIR)$(plugindir)" "$(DESTDIR)$(sharedir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -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) - -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." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-pluginLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-pluginDATA install-pluginLTLIBRARIES \ - install-shareDATA - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-pluginDATA uninstall-pluginLTLIBRARIES \ - uninstall-shareDATA - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-pluginLTLIBRARIES cscopelist-am ctags \ - ctags-am distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir 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-man install-pdf install-pdf-am \ - install-pluginDATA install-pluginLTLIBRARIES install-ps \ - install-ps-am install-shareDATA install-strip installcheck \ - installcheck-am installdirs 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-pluginDATA \ - uninstall-pluginLTLIBRARIES uninstall-shareDATA - -.PRECIOUS: Makefile - -%.plugin: %.plugin.in - $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache - -# 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: diff -Nru roger-router-1.8.14/libroutermanager/plugins/areacodes_global/share/globalareacodes.csv roger-router-2.1.6/libroutermanager/plugins/areacodes_global/share/globalareacodes.csv --- roger-router-1.8.14/libroutermanager/plugins/areacodes_global/share/globalareacodes.csv 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/areacodes_global/share/globalareacodes.csv 1970-01-01 00:00:00.000000000 +0000 @@ -1,17191 +0,0 @@ -"Country","Country Code","Area","Area Code" -"Afghanistan",93,"Kabul","020" -"Afghanistan",93,"Parwan","021" -"Afghanistan",93,"Kapisa","022" -"Afghanistan",93,"Bamian","023" -"Afghanistan",93,"Wardak","024" -"Afghanistan",93,"Logar","025" -"Afghanistan",93,"Dorkondi","026" -"Afghanistan",93,"Khost","027" -"Afghanistan",93,"Panjshar","028" -"Afghanistan",93,"Kandahar","030" -"Afghanistan",93,"Ghazni","031" -"Afghanistan",93,"Uruzgan","032" -"Afghanistan",93,"Zabol","033" -"Afghanistan",93,"Helmand","034" -"Afghanistan",93,"Heart","040" -"Afghanistan",93,"Badghis","041" -"Afghanistan",93,"Ghowr","042" -"Afghanistan",93,"Farah","043" -"Afghanistan",93,"Nimroz","044" -"Afghanistan",93,"Balkh","050" -"Afghanistan",93,"Kunduz","051" -"Afghanistan",93,"Badkhshan","052" -"Afghanistan",93,"Takhar","053" -"Afghanistan",93,"Jowzjan","054" -"Afghanistan",93,"Samangan","055" -"Afghanistan",93,"Sar-E Pol","056" -"Afghanistan",93,"Faryab","057" -"Afghanistan",93,"Baghlan","058" -"Afghanistan",93,"Nangarhar","060" -"Afghanistan",93,"Nurestan","061" -"Afghanistan",93,"Kunarha","062" -"Afghanistan",93,"Laghman","063" -"Afghanistan",93,"Paktia","064" -"Afghanistan",93,"Paktika","065" -"Aland Islands",358,"Åland","018" -"Albania",355,"Bajzë","0211" -"Albania",355,"Pukë","0212" -"Albania",355,"Bajram Curri","0213" -"Albania",355,"Krumë","0214" -"Albania",355,"Lezhë","0215" -"Albania",355,"Rrëshen","0216" -"Albania",355,"Burrel","0217" -"Albania",355,"Peshkopi","0218" -"Albania",355,"Bulqizë","0219" -"Albania",355,"Shkodër","022" -"Albania",355,"Kukës","0242" -"Albania",355,"Kuçovë","0311" -"Albania",355,"çorovodë","0312" -"Albania",355,"Ballsh","0313" -"Albania",355,"Berat","032" -"Albania",355,"Vlorë","033" -"Albania",355,"Fier","034" -"Albania",355,"Patos","0342" -"Albania",355,"Lushnjë","035" -"Albania",355,"Ura Vajgurore","0361" -"Albania",355,"Poliçan","0368" -"Albania",355,"Divjakë","0371" -"Albania",355,"Cakran","0387" -"Albania",355,"Levan","0388" -"Albania",355,"Orikum","0391" -"Albania",355,"Selenicë","0392" -"Albania",355,"Himarë","0393" -"Albania",355,"Babicë","0394" -"Albania",355,"Tiranë","04" -"Albania",355,"Krujë","0511" -"Albania",355,"Peqin","0512" -"Albania",355,"Gramsh","0513" -"Albania",355,"Librazhd","0514" -"Albania",355,"Durrës","052" -"Albania",355,"Laç","053" -"Albania",355,"Elbasan","0545" -"Albania",355,"Kavajë","0554" -"Albania",355,"Mamurras","0561" -"Albania",355,"Fushë-Krujë","0563" -"Albania",355,"Shijak","0571" -"Albania",355,"Rrogozhinë","0577" -"Albania",355,"çërrik","0581" -"Albania",355,"Përrenjas","0591" -"Albania",355,"Bilisht","0811" -"Albania",355,"Ersekë","0812" -"Albania",355,"Përmet","0813" -"Albania",355,"Tepelenë","0814" -"Albania",355,"Delvinë","0815" -"Albania",355,"Korçë","082" -"Albania",355,"Pogradec","0832" -"Albania",355,"Gjirokastër","084" -"Albania",355,"Sarandë","0852" -"Albania",355,"Maliq","0861" -"Albania",355,"Libohovë","0881" -"Albania",355,"Memaliaj","0885" -"Albania",355,"Ksamil","0893" -"American Samoa",1,"American Samoa",684 -"Andorra",376,"Andorra",7 -"Andorra",376,"Andorra",8 -"Angola",244,"Luanda","022" -"Angola",244,"Cabinda","0231" -"Angola",244,"Zaire","0232" -"Angola",244,"Uige","0233" -"Angola",244,"Bengo","0234" -"Angola",244,"Kwanza Norte","0235" -"Angola",244,"Kwanza Sul","0236" -"Angola",244,"Huambo","0241" -"Angola",244,"Bié","0248" -"Angola",244,"Kuando Kubango","0249" -"Angola",244,"Malanje","0251" -"Angola",244,"Lunda Norte","0252" -"Angola",244,"Lunda Sul","0253" -"Angola",244,"Moxico","0254" -"Angola",244,"Huila","0261" -"Angola",244,"Namibe","0264" -"Angola",244,"Cunene","0265" -"Angola",244,"Benguela","0272" -"Anguilla",1,"Anguilla","(1+)264" -"Antarctica",672,"Davis Base","010" -"Antarctica",672,"Mawson Base","011" -"Antarctica",672,"Casey Base","012" -"Antarctica",672,"Macquarie Base","013" -"Antigua and Barbuda",1,"Antigua and Barbuda","(1+)268" -"Argentina",54,"Amba","011" -"Argentina",54,"Merlo (Prov. Buenos Aires)","0220" -"Argentina",54,"Gonzalez Catan","02202" -"Argentina",54,"La Plata","0221" -"Argentina",54,"Magdalena","02221" -"Argentina",54,"Coronel Brandsen","02223" -"Argentina",54,"Glew","02224" -"Argentina",54,"Alejandro Korn","02225" -"Argentina",54,"Cañuelas","02226" -"Argentina",54,"Lobos","02227" -"Argentina",54,"Juan Maria Gutierrez","02229" -"Argentina",54,"Mar Del Plata","0223" -"Argentina",54,"Chascomus","02241" -"Argentina",54,"Lezama","02242" -"Argentina",54,"General Belgrano","02243" -"Argentina",54,"Las Flores (Prov. Buenos Aires)","02244" -"Argentina",54,"Dolores (Prov. Buenos Aires)","02245" -"Argentina",54,"Santa Teresita","02246" -"Argentina",54,"San Clemente Del Tuyu","02252" -"Argentina",54,"Pinamar","02254" -"Argentina",54,"Villa Gesell","02255" -"Argentina",54,"Mar De Ajo","02257" -"Argentina",54,"Loberia","02261" -"Argentina",54,"Necochea","02262" -"Argentina",54,"La Dulce","02264" -"Argentina",54,"Coronel Vidal","02265" -"Argentina",54,"Balcarce","02266" -"Argentina",54,"General Madariaga","02267" -"Argentina",54,"Maipu (Prov. Buenos Aires)","02268" -"Argentina",54,"Monte","02271" -"Argentina",54,"Navarro","02272" -"Argentina",54,"Carmen De Areco","02273" -"Argentina",54,"Carlos Spegazzini","02274" -"Argentina",54,"Azul","02281" -"Argentina",54,"Tapalque","02283" -"Argentina",54,"Olavarria","02284" -"Argentina",54,"Laprida","02285" -"Argentina",54,"General Lamadrid","02286" -"Argentina",54,"Miramar (Prov. Buenos Aires)","02291" -"Argentina",54,"Benito Juarez","02292" -"Argentina",54,"Tandil","02293" -"Argentina",54,"Ayacucho","02296" -"Argentina",54,"Rauch","02297" -"Argentina",54,"General Pico","02302" -"Argentina",54,"Bolivar","02314" -"Argentina",54,"Daireaux","02316" -"Argentina",54,"9 De Julio (Prov. Buenos Aires)","02317" -"Argentina",54,"Jose C. Paz","02320" -"Argentina",54,"Pilar (Prov. Buenos Aires)","02322" -"Argentina",54,"Lujan (Prov. Buenos Aires)","02323" -"Argentina",54,"Mercedes (Prov. Buenos Aires)","02324" -"Argentina",54,"San Andres De Giles","02325" -"Argentina",54,"San Antonio De Areco","02326" -"Argentina",54,"Realico","02331" -"Argentina",54,"Winifreda","02333" -"Argentina",54,"Eduardo Castex","02334" -"Argentina",54,"Caleufu","02335" -"Argentina",54,"Huinca Renanco","02336" -"Argentina",54,"America","02337" -"Argentina",54,"Victorica","02338" -"Argentina",54,"Bragado","02342" -"Argentina",54,"Norberto De La Riestra","02343" -"Argentina",54,"Saladillo (Prov. Buenos Aires)","02344" -"Argentina",54,"25 De Mayo (Prov. Buenos Aires)","02345" -"Argentina",54,"Chivilcoy","02346" -"Argentina",54,"Chacabuco","02352" -"Argentina",54,"General Arenales","02353" -"Argentina",54,"Juan B. Alberdi","02354" -"Argentina",54,"Lincoln","02355" -"Argentina",54,"General Pinto","02356" -"Argentina",54,"Carlos Tejedor","02357" -"Argentina",54,"Los Toldos (Prov. Buenos Aires)","02358" -"Argentina",54,"Junin (Prov. Buenos Aires)","02362" -"Argentina",54,"Moreno","0237" -"Argentina",54,"Trenque Lauquen","02392" -"Argentina",54,"Salazar","02393" -"Argentina",54,"Tres Lomas","02394" -"Argentina",54,"Carlos Casares","02395" -"Argentina",54,"Pehuajo","02396" -"Argentina",54,"Colon (Prov. Buenos Aires)","02473" -"Argentina",54,"Salto","02474" -"Argentina",54,"Rojas","02475" -"Argentina",54,"Pergamino","02477" -"Argentina",54,"Arrecifes","02478" -"Argentina",54,"Mendoza","0261" -"Argentina",54,"Tunuyan","02622" -"Argentina",54,"San Martin (Prov. Mendoza)","02623" -"Argentina",54,"Uspallata","02624" -"Argentina",54,"General Alvear (Prov. Mendoza)","02625" -"Argentina",54,"La Paz (Prov. Mendoza)","02626" -"Argentina",54,"San Rafael (Prov. Mendoza)","02627" -"Argentina",54,"San Juan","0264" -"Argentina",54,"San Agustin Del Valle Fertil","02646" -"Argentina",54,"Jachal","02647" -"Argentina",54,"Barreal","02648" -"Argentina",54,"Quines","02651" -"Argentina",54,"San Luis (Prov. San Luis)","02652" -"Argentina",54,"La Toma","02655" -"Argentina",54,"Merlo (Prov. San Luis)","02656" -"Argentina",54,"Mercedes (Prov. San Luis)","02657" -"Argentina",54,"Buena Esperanza","02658" -"Argentina",54,"Ushuaia","02901" -"Argentina",54,"28 De Noviembre","02902" -"Argentina",54,"Rio Mayo","02903" -"Argentina",54,"Bahia Blanca","0291" -"Argentina",54,"Viedma","02920" -"Argentina",54,"Coronel Dorrego","02921" -"Argentina",54,"Coronel Pringles","02922" -"Argentina",54,"Pigüe","02923" -"Argentina",54,"Darregueira","02924" -"Argentina",54,"Villa Iris","02925" -"Argentina",54,"Coronel Suarez","02926" -"Argentina",54,"Medanos (Prov. Buenos Aires)","02927" -"Argentina",54,"Pedro Luro","02928" -"Argentina",54,"Guamini","02929" -"Argentina",54,"Rio Colorado (Prov. Rio Negro)","02931" -"Argentina",54,"Punta Alta","02932" -"Argentina",54,"Huanguelen Sur","02933" -"Argentina",54,"San Antonio Oeste","02934" -"Argentina",54,"Rivera","02935" -"Argentina",54,"Carhue","02936" -"Argentina",54,"Ingeniero Jacobacci","02940" -"Argentina",54,"General Roca (Prov. Rio Negro)","02941" -"Argentina",54,"Zapala","02942" -"Argentina",54,"San Carlos De Bariloche","02944" -"Argentina",54,"Esquel","02945" -"Argentina",54,"Choele Choel","02946" -"Argentina",54,"Chos Malal","02948" -"Argentina",54,"General Acha","02952" -"Argentina",54,"Macachin","02953" -"Argentina",54,"Santa Rosa (Prov. La Pampa)","02954" -"Argentina",54,"San Julian","02962" -"Argentina",54,"Perito Moreno","02963" -"Argentina",54,"Rio Grande (Prov. Tierra Del Fuego)","02964" -"Argentina",54,"Trelew","02965" -"Argentina",54,"Rio Gallegos","02966" -"Argentina",54,"Comodoro Rivadavia","0297" -"Argentina",54,"San Martin De Los Andes","02972" -"Argentina",54,"Claromeco","02982" -"Argentina",54,"Tres Arroyos","02983" -"Argentina",54,"Neuquen","0299" -"Argentina",54,"Lopez Camelo","03327" -"Argentina",54,"San Pedro (Prov. Buenos Aires)","03329" -"Argentina",54,"Rufino","03382" -"Argentina",54,"Laboulaye","03385" -"Argentina",54,"Bouchard","03387" -"Argentina",54,"General Villegas","03388" -"Argentina",54,"Villa Constitucion","03400" -"Argentina",54,"El Trebol","03401" -"Argentina",54,"Arroyo Seco","03402" -"Argentina",54,"Galvez","03404" -"Argentina",54,"San Javier (Prov. Santa Fe)","03405" -"Argentina",54,"San Jorge (Prov. Santa Fe)","03406" -"Argentina",54,"Ramallo","03407" -"Argentina",54,"San Cristobal","03408" -"Argentina",54,"Moises Ville","03409" -"Argentina",54,"Rosario","0341" -"Argentina",54,"Santa Fe","0342" -"Argentina",54,"Parana","0343" -"Argentina",54,"Nogoya","03435" -"Argentina",54,"Victoria","03436" -"Argentina",54,"La Paz (Prov. Entre Rios)","03437" -"Argentina",54,"Alcaraz","03438" -"Argentina",54,"Concepcion Del Uruguay","03442" -"Argentina",54,"Gualeguay","03444" -"Argentina",54,"Rosario Del Tala","03445" -"Argentina",54,"Gualeguaychu","03446" -"Argentina",54,"Colon (Prov. Entre Rios)","03447" -"Argentina",54,"Concordia","0345" -"Argentina",54,"Federal","03454" -"Argentina",54,"Villaguay","03455" -"Argentina",54,"Chajari","03456" -"Argentina",54,"San Jose De Feliciano","03458" -"Argentina",54,"Santa Teresa (Prov. Santa Fe)","03460" -"Argentina",54,"San Nicolas","03461" -"Argentina",54,"Venado Tuerto","03462" -"Argentina",54,"Canals","03463" -"Argentina",54,"Casilda","03464" -"Argentina",54,"Firmat","03465" -"Argentina",54,"Barrancas (Prov. Santa Fe)","03466" -"Argentina",54,"Inriville","03467" -"Argentina",54,"Corral De Bustos","03468" -"Argentina",54,"Acebal","03469" -"Argentina",54,"Cañada De Gomez","03471" -"Argentina",54,"Marcos Juarez","03472" -"Argentina",54,"San Lorenzo (Prov. Santa Fe)","03476" -"Argentina",54,"Reconquista","03482" -"Argentina",54,"Vera","03483" -"Argentina",54,"Zarate","03487" -"Argentina",54,"Escobar","03488" -"Argentina",54,"Campana","03489" -"Argentina",54,"Ceres","03491" -"Argentina",54,"Rafaela","03492" -"Argentina",54,"Sunchales","03493" -"Argentina",54,"Esperanza (Prov. Santa Fe)","03496" -"Argentina",54,"Llambi Campbell","03497" -"Argentina",54,"Gobernador Crespo","03498" -"Argentina",54,"Cordoba","0351" -"Argentina",54,"Dean Funes","03521" -"Argentina",54,"San Francisco Del Chañar","03522" -"Argentina",54,"Villa Del Totoral","03524" -"Argentina",54,"Jesus Maria","03525" -"Argentina",54,"Villa Maria","0353" -"Argentina",54,"Oliva","03532" -"Argentina",54,"Las Varillas","03533" -"Argentina",54,"Bell Ville","03534" -"Argentina",54,"Villa Carlos Paz","03541" -"Argentina",54,"Salsacate","03542" -"Argentina",54,"Argüello","03543" -"Argentina",54,"Villa Dolores","03544" -"Argentina",54,"Santa Rosa De Calamuchita","03546" -"Argentina",54,"Alta Gracia","03547" -"Argentina",54,"La Falda","03548" -"Argentina",54,"Cruz Del Eje","03549" -"Argentina",54,"Morteros","03562" -"Argentina",54,"Balnearia","03563" -"Argentina",54,"San Francisco (Prov. Cordoba)","03564" -"Argentina",54,"Rio Tercero","03571" -"Argentina",54,"Rio Segundo","03572" -"Argentina",54,"Villa Del Rosario (Prov. Cordoba)","03573" -"Argentina",54,"Rio Primero","03574" -"Argentina",54,"La Puerta (Prov. Cordoba)","03575" -"Argentina",54,"Arroyito (Prov. Cordoba)","03576" -"Argentina",54,"Rio Cuarto","0358" -"Argentina",54,"Coronel Moldes (Prov. Cordoba)","03582" -"Argentina",54,"Vicuña Mackenna","03583" -"Argentina",54,"La Carlota","03584" -"Argentina",54,"Adelia Maria","03585" -"Argentina",54,"General Mosconi","03711" -"Argentina",54,"Las Lomitas","03715" -"Argentina",54,"Comandante Fontana","03716" -"Argentina",54,"Formosa","03717" -"Argentina",54,"Clorinda","03718" -"Argentina",54,"Charadai","03721" -"Argentina",54,"Resistencia","03722" -"Argentina",54,"General Jose De San Martin","03725" -"Argentina",54,"Charata","03731" -"Argentina",54,"Presidencia Roque Saenz Peña","03732" -"Argentina",54,"Machagai","03734" -"Argentina",54,"Villa Angela","03735" -"Argentina",54,"Bernardo De Irigoyen","03741" -"Argentina",54,"Puerto Rico","03743" -"Argentina",54,"Eldorado","03751" -"Argentina",54,"Posadas","03752" -"Argentina",54,"San Javier (Prov. Misiones)","03754" -"Argentina",54,"Obera","03755" -"Argentina",54,"Santo Tome","03756" -"Argentina",54,"Puerto Iguazu","03757" -"Argentina",54,"Apostoles","03758" -"Argentina",54,"Paso De Los Libres","03772" -"Argentina",54,"Mercedes (Prov. Corrientes)","03773" -"Argentina",54,"Curuzu Cuatia","03774" -"Argentina",54,"Monte Caseros","03775" -"Argentina",54,"Goya","03777" -"Argentina",54,"Caa Cati","03781" -"Argentina",54,"Saladas","03782" -"Argentina",54,"Corrientes","03783" -"Argentina",54,"Ituzaingo","03786" -"Argentina",54,"San Miguel De Tucuman","0381" -"Argentina",54,"Chepes","03821" -"Argentina",54,"La Rioja","03822" -"Argentina",54,"Chilecito","03825" -"Argentina",54,"Chamical","03826" -"Argentina",54,"Aimogasta","03827" -"Argentina",54,"Recreo (Prov. Catamarca)","03832" -"Argentina",54,"Catamarca","03833" -"Argentina",54,"Andalgala","03835" -"Argentina",54,"Tinogasta","03837" -"Argentina",54,"Santa Maria (Prov. Catamarca)","03838" -"Argentina",54,"Monte Quemado","03841" -"Argentina",54,"Quimili","03843" -"Argentina",54,"Añatuya","03844" -"Argentina",54,"Villa San Martin","03845" -"Argentina",54,"Campo Gallo","03846" -"Argentina",54,"Santiago Del Estero","0385" -"Argentina",54,"Frias","03854" -"Argentina",54,"Suncho Corral","03855" -"Argentina",54,"Sumampa","03856" -"Argentina",54,"Bandera","03857" -"Argentina",54,"Termas De Rio Hondo","03858" -"Argentina",54,"Rapelli","03861" -"Argentina",54,"Trancas","03862" -"Argentina",54,"Monteros","03863" -"Argentina",54,"Concepcion (Prov. Tucuman)","03865" -"Argentina",54,"Tafi Del Valle","03867" -"Argentina",54,"Cafayate","03868" -"Argentina",54,"Ranchillos","03869" -"Argentina",54,"Salta","0387" -"Argentina",54,"Tartagal (Prov. Salta)","03875" -"Argentina",54,"Metan","03876" -"Argentina",54,"Las Lajitas","03877" -"Argentina",54,"Oran","03878" -"Argentina",54,"San Salvador De Jujuy","0388" -"Argentina",54,"San Pedro (Prov. Jujuy)","03884" -"Argentina",54,"La Quiaca","03885" -"Argentina",54,"Libertador General San Martin","03886" -"Argentina",54,"Humahuaca","03887" -"Argentina",54,"Monteagudo","03891" -"Argentina",54,"Amaicha Del Valle","03892" -"Argentina",54,"Burruyacu","03894" -"Armenia",374,"Yerevan","010" -"Armenia",374,"Abovian- Kotayk province","0222" -"Armenia",374,"Hrazdan- Kotayk province","0223" -"Armenia",374,"Eghvard- Kotayk province","0224" -"Armenia",374,"Charentsavan- Kotayk province","0226" -"Armenia",374,"Echmiadzin- Armavir province","0231" -"Armenia",374,"Ashtarak- Aragatsotn province","0232" -"Armenia",374,"Baghramian- Armavir province","0233" -"Armenia",374,"Vedi- Ararat province","0234" -"Armenia",374,"Artashat- Ararat province","0235" -"Armenia",374,"Masis- Ararat province","0236" -"Armenia",374,"Armavir- Armavir province","0237" -"Armenia",374,"Ararat- Ararat province","0238" -"Armenia",374,"Maralik- Shirak province","0242" -"Armenia",374,"Artik- Shirak province","0244" -"Armenia",374,"Ashotsk- Shirak province","0245" -"Armenia",374,"Amasia- Shirak province","0246" -"Armenia",374,"Aparan- Aragatsotn province","0252" -"Armenia",374,"Alaverdi- Lori province","0253" -"Armenia",374,"Tashir- Lori province","0254" -"Armenia",374,"Spitak- Lori province","0255" -"Armenia",374,"Stepanavan- Lori province","0256" -"Armenia",374,"Sevan- Gegharkunik province","0261" -"Armenia",374,"Martuni- Gegharkunik province","0262" -"Armenia",374,"Ijevan- Tavush province","0263" -"Armenia",374,"Gavar- Gegharkunik province","0264" -"Armenia",374,"Chambarak- Gegharkunik province","0265" -"Armenia",374,"Noyemberian- Tavush province","0266" -"Armenia",374,"Berd- Tavush province","0267" -"Armenia",374,"Vardenis- Gegharkunik province","0269" -"Armenia",374,"Yeghegnadzor- Vayots Dzor province","0281" -"Armenia",374,"Vaik- Vayots Dzor province","0282" -"Armenia",374,"Goris- Syunik province","0284" -"Armenia",374,"Kajaran- Syunik province","0285" -"Armenia",374,"Agarak- Syunik province","0286" -"Armenia",374,"Jermuk- Vayots Dzor province","0287" -"Armenia",374,"Gyumri- Shirak province","0312" -"Armenia",374,"Vanadzor- Lori province","0322" -"Armenia",374,"Stepanakert- Nagorno Karabagh","0471" -"Armenia",374,"Martakert- Nagorno Karabagh","0474" -"Armenia",374,"Hadrut- Nagorno Karabagh","0475" -"Armenia",374,"Askeran- Nagorno Karabagh","0476" -"Armenia",374,"Shushi- Nagorno Karabagh","0477" -"Armenia",374,"Martuni- Nagorno Karabagh","0478" -"Ascension Island",247,"U.S. Base",2 -"Ascension Island",247,"Georgetown",6 -"Ascension Island",247,"Travellers Hill",30 -"Ascension Island",247,"Travellers Hill",31 -"Ascension Island",247,"Travellers Hill",32 -"Ascension Island",247,"Travellers Hill",33 -"Ascension Island",247,"Travellers Hill",34 -"Ascension Island",247,"Travellers Hill",35 -"Ascension Island",247,"Two Boats",44 -"Ascension Island",247,"Two Boats",45 -"Ascension Island",247,"Two Boats",46 -"Australia",61,"Central East Australia","02" -"Australia",61,"South East Australia","03" -"Australia",61,"Queensland","07" -"Australia",61,"Central & West Australia","08" -"Austria",43,"Wien","01" -"Austria",43,"Gattendorf","02142" -"Austria",43,"Kittsee","02143" -"Austria",43,"Deutsch Jahrndorf","02144" -"Austria",43,"Prellenkirchen","02145" -"Austria",43,"Nickelsdorf","02146" -"Austria",43,"Zurndorf","02147" -"Austria",43,"Jois","02160" -"Austria",43,"Bruck an der Leitha","02162" -"Austria",43,"Petronell-Carnuntum","02163" -"Austria",43,"Rohrau","02164" -"Austria",43,"Hainburg a.d. Donau","02165" -"Austria",43,"Parndorf","02166" -"Austria",43,"Neusiedl am See","02167" -"Austria",43,"Mannersdorf am Leithagebirge","02168" -"Austria",43,"Trautmannsdorf an der Leitha","02169" -"Austria",43,"Frauenkirchen","02172" -"Austria",43,"Gols","02173" -"Austria",43,"Wallern im Burgenland","02174" -"Austria",43,"Apetlon","02175" -"Austria",43,"Tadten","02176" -"Austria",43,"Podersdorf am See","02177" -"Austria",43,"Orth an der Donau","02212" -"Austria",43,"Lassee","02213" -"Austria",43,"Kopfstetten","02214" -"Austria",43,"Probstdorf","02215" -"Austria",43,"Leopoldsdorf im Marchfelde","02216" -"Austria",43,"Schwadorf","02230" -"Austria",43,"Purkersdorf","02231" -"Austria",43,"Fischamend","02232" -"Austria",43,"Preßbaum","02233" -"Austria",43,"Gramatneusiedl","02234" -"Austria",43,"Maria-Lanzendorf","02235" -"Austria",43,"Mödling","02236" -"Austria",43,"Gaaden","02237" -"Austria",43,"Kaltenleutgeben","02238" -"Austria",43,"Breitenfurt bei Wien","02239" -"Austria",43,"Sankt Andrä-Wördern","02242" -"Austria",43,"Klosterneuburg","02243" -"Austria",43,"Langenzersdorf","02244" -"Austria",43,"Wolkersdorf im Weinviertel","02245" -"Austria",43,"Gerasdorf bei Wien","02246" -"Austria",43,"Deutsch-Wagram","02247" -"Austria",43,"Markgrafneusiedl","02248" -"Austria",43,"Groß-Enzersdorf","02249" -"Austria",43,"Baden","02252" -"Austria",43,"Oberwaltersdorf","02253" -"Austria",43,"Ebreichsdorf","02254" -"Austria",43,"Deutsch Brodersdorf","02255" -"Austria",43,"Leobersdorf","02256" -"Austria",43,"Klausen-Leopoldsdorf","02257" -"Austria",43,"Alland","02258" -"Austria",43,"Münchendorf","02259" -"Austria",43,"Korneuburg","02262" -"Austria",43,"Großrußbach","02263" -"Austria",43,"Rückersdorf (Harmannsdorf)","02264" -"Austria",43,"Hausleiten","02265" -"Austria",43,"Stockerau","02266" -"Austria",43,"Sierndorf","02267" -"Austria",43,"Großmugl","02268" -"Austria",43,"Niederfellabrunn","02269" -"Austria",43,"Ried am Riederberg","02271" -"Austria",43,"Tulln an der Donau","02272" -"Austria",43,"Tulbing","02273" -"Austria",43,"Sieghartskirchen","02274" -"Austria",43,"Atzenbrugg","02275" -"Austria",43,"Reidling","02276" -"Austria",43,"Zwentendorf","02277" -"Austria",43,"Absdorf","02278" -"Austria",43,"Kirchberg am Wagram","02279" -"Austria",43,"Gänserndorf","02282" -"Austria",43,"Angern an der March","02283" -"Austria",43,"Oberweiden","02284" -"Austria",43,"Marchegg","02285" -"Austria",43,"Obersiebenbrunn","02286" -"Austria",43,"Strasshof an der Nordbahn","02287" -"Austria",43,"Auersthal","02288" -"Austria",43,"Matzen","02289" -"Austria",43,"Laa an der Thaya","02522" -"Austria",43,"Kirchstetten (Neudorf bei Staatz)","02523" -"Austria",43,"Kautendorf","02524" -"Austria",43,"Gnadendorf","02525" -"Austria",43,"Stronsdorf","02526" -"Austria",43,"Wulzeshofen","02527" -"Austria",43,"Zistersdorf","02532" -"Austria",43,"Neusiedl an der Zaya","02533" -"Austria",43,"Niedersulz","02534" -"Austria",43,"Hohenau an der March","02535" -"Austria",43,"Drösing","02536" -"Austria",43,"Velm-Götzendorf","02538" -"Austria",43,"Poysdorf","02552" -"Austria",43,"Stützenhofen","02554" -"Austria",43,"Herrnbaumgarten","02555" -"Austria",43,"Großkrut","02556" -"Austria",43,"Bernhardsthal","02557" -"Austria",43,"Mistelbach","02572" -"Austria",43,"Wilfersdorf","02573" -"Austria",43,"Gaweinstal","02574" -"Austria",43,"Ladendorf","02575" -"Austria",43,"Ernstbrunn","02576" -"Austria",43,"Asparn an der Zaya","02577" -"Austria",43,"Horitschon","02610" -"Austria",43,"Mannersdorf an der Rabnitz","02611" -"Austria",43,"Oberpullendorf","02612" -"Austria",43,"Deutschkreutz","02613" -"Austria",43,"Kleinwarasdorf","02614" -"Austria",43,"Lutzmannsburg","02615" -"Austria",43,"Lockenhaus","02616" -"Austria",43,"Draßmarkt","02617" -"Austria",43,"Markt Sankt Martin","02618" -"Austria",43,"Lackendorf","02619" -"Austria",43,"Willendorf","02620" -"Austria",43,"Sieggraben","02621" -"Austria",43,"Wiener Neustadt","02622" -"Austria",43,"Pottendorf","02623" -"Austria",43,"Ebenfurth","02624" -"Austria",43,"Bad Sauerbrunn","02625" -"Austria",43,"Mattersburg","02626" -"Austria",43,"Pitten","02627" -"Austria",43,"Felixdorf","02628" -"Austria",43,"Warth (Niederösterreich)","02629" -"Austria",43,"Ternitz","02630" -"Austria",43,"Pöttsching","02631" -"Austria",43,"Pernitz","02632" -"Austria",43,"Markt Piesting","02633" -"Austria",43,"Gutenstein","02634" -"Austria",43,"Neunkirchen","02635" -"Austria",43,"Puchberg am Schneeberg","02636" -"Austria",43,"Grünbach am Schneeberg","02637" -"Austria",43,"Winzendorf-Muthmannsdorf","02638" -"Austria",43,"Bad Fischau","02639" -"Austria",43,"Kirchberg am Wechsel","02641" -"Austria",43,"Aspangberg-Sankt Peter","02642" -"Austria",43,"Lichtenegg","02643" -"Austria",43,"Grimmenstein","02644" -"Austria",43,"Wiesmath","02645" -"Austria",43,"Kirchschlag in der Buckligen Welt","02646" -"Austria",43,"Krumbach (Niederösterreich)","02647" -"Austria",43,"Hochneukirchen","02648" -"Austria",43,"Mönichkirchen","02649" -"Austria",43,"Gloggnitz","02662" -"Austria",43,"Schottwien","02663" -"Austria",43,"Semmering","02664" -"Austria",43,"Prein an der Rax","02665" -"Austria",43,"Reichenau","02666" -"Austria",43,"Schwarzau im Gebirge","02667" -"Austria",43,"Berndorf","02672" -"Austria",43,"Altenmarkt an der Triesting","02673" -"Austria",43,"Weißenbach an der Triesting","02674" -"Austria",43,"Sankt Margarethen im Burgenland","02680" -"Austria",43,"Eisenstadt","02682" -"Austria",43,"Purbach am Neusiedler See","02683" -"Austria",43,"Schützen am Gebirge","02684" -"Austria",43,"Rust","02685" -"Austria",43,"Draßburg","02686" -"Austria",43,"Siegendorf","02687" -"Austria",43,"Steinbrunn","02688" -"Austria",43,"Hornstein","02689" -"Austria",43,"Dürnstein","02711" -"Austria",43,"Aggsbach","02712" -"Austria",43,"Spitz","02713" -"Austria",43,"Rossatz","02714" -"Austria",43,"Weißenkirchen in der Wachau","02715" -"Austria",43,"Gföhl","02716" -"Austria",43,"Unter-Meisling","02717" -"Austria",43,"Lichtenau im Waldviertel","02718" -"Austria",43,"Droß","02719" -"Austria",43,"Kirchberg an der Pielach","02722" -"Austria",43,"Rabenstein an der Pielach","02723" -"Austria",43,"Schwarzenbach an der Pielach","02724" -"Austria",43,"Frankenfels","02725" -"Austria",43,"Puchenstuben","02726" -"Austria",43,"Wienerbruck","02728" -"Austria",43,"Idolsberg","02731" -"Austria",43,"Krems an der Donau","02732" -"Austria",43,"Schönberg am Kamp","02733" -"Austria",43,"Langenlois","02734" -"Austria",43,"Hadersdorf am Kamp","02735" -"Austria",43,"Paudorf","02736" -"Austria",43,"Fels am Wagram","02738" -"Austria",43,"Tiefenfucha","02739" -"Austria",43,"Flinsbach","02741" -"Austria",43,"Sankt Pölten","02742" -"Austria",43,"Böheimkirchen","02743" -"Austria",43,"Kasten bei Böheimkirchen","02744" -"Austria",43,"Pyhra","02745" -"Austria",43,"Wilhelmsburg","02746" -"Austria",43,"Ober-Grafendorf","02747" -"Austria",43,"Kilb","02748" -"Austria",43,"Prinzersdorf","02749" -"Austria",43,"Melk","02752" -"Austria",43,"Gansbach","02753" -"Austria",43,"Loosdorf","02754" -"Austria",43,"Mank","02755" -"Austria",43,"Sankt Leonhard am Forst","02756" -"Austria",43,"Pöchlarn","02757" -"Austria",43,"Pöggstall","02758" -"Austria",43,"Lilienfeld","02762" -"Austria",43,"Sankt Veit an der Gölsen","02763" -"Austria",43,"Hainfeld","02764" -"Austria",43,"Kaumberg","02765" -"Austria",43,"Kleinzell","02766" -"Austria",43,"Hohenberg","02767" -"Austria",43,"Sankt Aegyd am Neuwalde","02768" -"Austria",43,"Türnitz","02769" -"Austria",43,"Neulengbach","02772" -"Austria",43,"Eichgraben","02773" -"Austria",43,"Innermanzing","02774" -"Austria",43,"Herzogenburg","02782" -"Austria",43,"Traismauer","02783" -"Austria",43,"Perschling","02784" -"Austria",43,"Oberwölbling","02786" -"Austria",43,"Groß Gerungs","02812" -"Austria",43,"Arbesbach","02813" -"Austria",43,"Langschlag","02814" -"Austria",43,"Großschönau","02815" -"Austria",43,"Karlstift","02816" -"Austria",43,"Zwettl-Niederösterreich","02822" -"Austria",43,"Großglobnitz","02823" -"Austria",43,"Allentsteig","02824" -"Austria",43,"Göpfritz an der Wild","02825" -"Austria",43,"Rastenfeld","02826" -"Austria",43,"Schönbach","02827" -"Austria",43,"Rappottenstein","02828" -"Austria",43,"Schweiggers","02829" -"Austria",43,"Vitis","02841" -"Austria",43,"Waidhofen an der Thaya","02842" -"Austria",43,"Dobersberg","02843" -"Austria",43,"Karlstein an der Thaya","02844" -"Austria",43,"Weikertschlag an der Thaya (Raabs an der Thaya)","02845" -"Austria",43,"Raabs an der Thaya","02846" -"Austria",43,"Groß-Siegharts","02847" -"Austria",43,"Pfaffenschlag bei Waidhofen a.d.Thaya","02848" -"Austria",43,"Schwarzenau","02849" -"Austria",43,"Gmünd","02852" -"Austria",43,"Schrems","02853" -"Austria",43,"Kirchberg am Walde","02854" -"Austria",43,"Waldenstein","02855" -"Austria",43,"Weitra","02856" -"Austria",43,"Bad Großpertholz","02857" -"Austria",43,"Moorbad Harbach","02858" -"Austria",43,"Brand-Nagelberg","02859" -"Austria",43,"Heidenreichstein","02862" -"Austria",43,"Eggern","02863" -"Austria",43,"Kautzen","02864" -"Austria",43,"Litschau","02865" -"Austria",43,"Ottenschlag","02872" -"Austria",43,"Kottes","02873" -"Austria",43,"Martinsberg","02874" -"Austria",43,"Grafenschlag","02875" -"Austria",43,"Els","02876" -"Austria",43,"Grainbrunn","02877" -"Austria",43,"Traunstein","02878" -"Austria",43,"Geras","02912" -"Austria",43,"Hötzelsdorf","02913" -"Austria",43,"Japons","02914" -"Austria",43,"Drosendorf-Zissersdorf","02915" -"Austria",43,"Riegersburg (Hardegg)","02916" -"Austria",43,"Retz","02942" -"Austria",43,"Obritz","02943" -"Austria",43,"Haugsdorf","02944" -"Austria",43,"Zellerndorf","02945" -"Austria",43,"Pulkau","02946" -"Austria",43,"Theras","02947" -"Austria",43,"Weitersfeld","02948" -"Austria",43,"Niederfladnitz","02949" -"Austria",43,"Guntersdorf","02951" -"Austria",43,"Hollabrunn","02952" -"Austria",43,"Nappersdorf","02953" -"Austria",43,"Göllersdorf","02954" -"Austria",43,"Großweikersdorf","02955" -"Austria",43,"Ziersdorf","02956" -"Austria",43,"Hohenwarth","02957" -"Austria",43,"Maissau","02958" -"Austria",43,"Sitzendorf an der Schmida","02959" -"Austria",43,"Horn","02982" -"Austria",43,"Sigmundsherberg","02983" -"Austria",43,"Eggenburg","02984" -"Austria",43,"Gars am Kamp","02985" -"Austria",43,"Irnfritz","02986" -"Austria",43,"Sankt Leonhard am Hornerwald","02987" -"Austria",43,"Neupölla","02988" -"Austria",43,"Brunn an der Wild","02989" -"Austria",43,"Gleisdorf","03112" -"Austria",43,"Pischelsdorf in der Steiermark","03113" -"Austria",43,"Markt Hartmannsdorf","03114" -"Austria",43,"Studenzen","03115" -"Austria",43,"Kirchbach in Steiermark","03116" -"Austria",43,"Eggersdorf bei Graz","03117" -"Austria",43,"Sinabelkirchen","03118" -"Austria",43,"Sankt Marein bei Graz","03119" -"Austria",43,"Sankt Oswald bei Plankenwarth","03123" -"Austria",43,"Gratkorn","03124" -"Austria",43,"übelbach","03125" -"Austria",43,"Frohnleiten","03126" -"Austria",43,"Peggau","03127" -"Austria",43,"Kumberg","03132" -"Austria",43,"Nestelbach","03133" -"Austria",43,"Heiligenkreuz am Waasen","03134" -"Austria",43,"Kalsdorf bei Graz","03135" -"Austria",43,"Dobl","03136" -"Austria",43,"Söding","03137" -"Austria",43,"Sankt Martin am Wöllmißberg","03140" -"Austria",43,"Hirschegg","03141" -"Austria",43,"Voitsberg","03142" -"Austria",43,"Krottendorf","03143" -"Austria",43,"Köflach","03144" -"Austria",43,"Edelschrott","03145" -"Austria",43,"Modriach","03146" -"Austria",43,"Salla","03147" -"Austria",43,"Kainach bei Voitsberg","03148" -"Austria",43,"Geistthal","03149" -"Austria",43,"Paldau","03150" -"Austria",43,"Gnas","03151" -"Austria",43,"Feldbach","03152" -"Austria",43,"Riegersburg","03153" -"Austria",43,"Fehring","03155" -"Austria",43,"Kapfenstein","03157" -"Austria",43,"Sankt Anna am Aigen","03158" -"Austria",43,"Bad Gleichenberg","03159" -"Austria",43,"Graz","0316" -"Austria",43,"Fischbach","03170" -"Austria",43,"Gasen","03171" -"Austria",43,"Weiz","03172" -"Austria",43,"Ratten","03173" -"Austria",43,"Birkfeld","03174" -"Austria",43,"Anger","03175" -"Austria",43,"Stubenberg","03176" -"Austria",43,"Puch bei Weiz","03177" -"Austria",43,"Sankt Ruprecht an der Raab","03178" -"Austria",43,"Passail","03179" -"Austria",43,"Wildon","03182" -"Austria",43,"Sankt Georgen an der Stiefing","03183" -"Austria",43,"Wolfsberg im Schwarzautal","03184" -"Austria",43,"Preding","03185" -"Austria",43,"Güssing","03322" -"Austria",43,"Eberau","03323" -"Austria",43,"Strem","03324" -"Austria",43,"Heiligenkreuz im Lafnitztal","03325" -"Austria",43,"Stegersbach","03326" -"Austria",43,"Sankt Michael im Burgenland","03327" -"Austria",43,"Kukmirn","03328" -"Austria",43,"Jennersdorf","03329" -"Austria",43,"Sankt Lorenzen am Wechsel","03331" -"Austria",43,"Hartberg","03332" -"Austria",43,"Sebersdorf","03333" -"Austria",43,"Kaindorf","03334" -"Austria",43,"Pöllau","03335" -"Austria",43,"Waldbach","03336" -"Austria",43,"Vorau","03337" -"Austria",43,"Lafnitz","03338" -"Austria",43,"Friedberg","03339" -"Austria",43,"Oberwart","03352" -"Austria",43,"Oberschützen","03353" -"Austria",43,"Bernstein","03354" -"Austria",43,"Stadtschlaining","03355" -"Austria",43,"Markt Allhau","03356" -"Austria",43,"Pinkafeld","03357" -"Austria",43,"Litzelsdorf","03358" -"Austria",43,"Loipersdorf-Kitzladen","03359" -"Austria",43,"Großpetersdorf","03362" -"Austria",43,"Rechnitz","03363" -"Austria",43,"Hannersdorf","03364" -"Austria",43,"Deutsch Schützen-Eisenberg","03365" -"Austria",43,"Kohfidisch","03366" -"Austria",43,"Fürstenfeld","03382" -"Austria",43,"Burgau","03383" -"Austria",43,"Ilz","03385" -"Austria",43,"Großsteinbach","03386" -"Austria",43,"Söchau","03387" -"Austria",43,"Leibnitz","03452" -"Austria",43,"Ehrenhausen","03453" -"Austria",43,"Leutschach","03454" -"Austria",43,"Arnfels","03455" -"Austria",43,"Fresing","03456" -"Austria",43,"Gleinstätten","03457" -"Austria",43,"Soboth","03460" -"Austria",43,"Trahütten","03461" -"Austria",43,"Deutschlandsberg","03462" -"Austria",43,"Stainz","03463" -"Austria",43,"Groß Sankt Florian","03464" -"Austria",43,"Pölfing-Brunn","03465" -"Austria",43,"Eibiswald","03466" -"Austria",43,"Schwanberg","03467" -"Austria",43,"Sankt Oswald ob Eibiswald","03468" -"Austria",43,"Sankt Oswald im Freiland","03469" -"Austria",43,"Mureck","03472" -"Austria",43,"Straden","03473" -"Austria",43,"Deutsch Goritz","03474" -"Austria",43,"Hürth","03475" -"Austria",43,"Bad Radkersburg","03476" -"Austria",43,"Sankt Peter am Ottersbach","03477" -"Austria",43,"Knittelfeld","03512" -"Austria",43,"Bischoffeld","03513" -"Austria",43,"Seckau","03514" -"Austria",43,"Sankt Lorenzen bei Knittelfeld","03515" -"Austria",43,"Kleinlobming","03516" -"Austria",43,"Murau","03532" -"Austria",43,"Turrach","03533" -"Austria",43,"Stadl an der Mur","03534" -"Austria",43,"Krakaudorf","03535" -"Austria",43,"Sankt Peter am Kammersberg","03536" -"Austria",43,"Sankt Georgen ob Murau","03537" -"Austria",43,"Möderbrugg","03571" -"Austria",43,"Judenburg","03572" -"Austria",43,"Fohnsdorf","03573" -"Austria",43,"Pusterwald","03574" -"Austria",43,"Sankt Johann am Tauern","03575" -"Austria",43,"Bretstein","03576" -"Austria",43,"Zeltweg","03577" -"Austria",43,"Obdach","03578" -"Austria",43,"Pöls","03579" -"Austria",43,"Oberwölz","03581" -"Austria",43,"Scheifling","03582" -"Austria",43,"Unzmarkt","03583" -"Austria",43,"Neumarkt in Steiermark","03584" -"Austria",43,"Sankt Lambrecht","03585" -"Austria",43,"Mühlen","03586" -"Austria",43,"Schönberg-Lachtal","03587" -"Austria",43,"Katsch an der Mur","03588" -"Austria",43,"Johnsbach","03611" -"Austria",43,"Liezen","03612" -"Austria",43,"Admont","03613" -"Austria",43,"Rottenmann","03614" -"Austria",43,"Trieben","03615" -"Austria",43,"Selzthal","03616" -"Austria",43,"Gaishorn am See","03617" -"Austria",43,"Hohentauern","03618" -"Austria",43,"Oppenberg","03619" -"Austria",43,"Bad Aussee","03622" -"Austria",43,"Bad Mitterndorf","03623" -"Austria",43,"Pichl-Kainisch","03624" -"Austria",43,"Unterlaussa","03631" -"Austria",43,"Sankt Gallen","03632" -"Austria",43,"Landl","03633" -"Austria",43,"Hieflau","03634" -"Austria",43,"Radmer","03635" -"Austria",43,"Wildalpen","03636" -"Austria",43,"Gams bei Hieflau","03637" -"Austria",43,"Palfau","03638" -"Austria",43,"Donnersbachwald","03680" -"Austria",43,"Stainach","03682" -"Austria",43,"Donnersbach","03683" -"Austria",43,"Sankt Martin am Grimming","03684" -"Austria",43,"Gröbming","03685" -"Austria",43,"Haus","03686" -"Austria",43,"Schladming","03687" -"Austria",43,"Tauplitz","03688" -"Austria",43,"Sankt Nikolai im Sölktal","03689" -"Austria",43,"Kraubath an der Mur","03832" -"Austria",43,"Traboch","03833" -"Austria",43,"Wald am Schoberpaß","03834" -"Austria",43,"Leoben","03842" -"Austria",43,"Sankt Michael in Obersteiermark","03843" -"Austria",43,"Kammern im Liesingtal","03844" -"Austria",43,"Mautern in Steiermark","03845" -"Austria",43,"Kalwang","03846" -"Austria",43,"Trofaiach","03847" -"Austria",43,"Eisenerz","03848" -"Austria",43,"Vordernberg","03849" -"Austria",43,"Mürzzuschlag","03852" -"Austria",43,"Spital am Semmering","03853" -"Austria",43,"Langenwang","03854" -"Austria",43,"Krieglach","03855" -"Austria",43,"Veitsch","03856" -"Austria",43,"Neuberg an der Mürz","03857" -"Austria",43,"Mitterdorf im Mürztal","03858" -"Austria",43,"Mürzsteg","03859" -"Austria",43,"Aflenz","03861" -"Austria",43,"Bruck an der Mur","03862" -"Austria",43,"Turnau","03863" -"Austria",43,"Sankt Marein im Mürztal","03864" -"Austria",43,"Kindberg","03865" -"Austria",43,"Breitenau am Hochlantsch","03866" -"Austria",43,"Pernegg an der Mur","03867" -"Austria",43,"Tragöß","03868" -"Austria",43,"Sankt Katharein an der Laming","03869" -"Austria",43,"Mariazell","03882" -"Austria",43,"Terz","03883" -"Austria",43,"Wegscheid","03884" -"Austria",43,"Greith","03885" -"Austria",43,"Weichselboden","03886" -"Austria",43,"Sankt Veit an der Glan","04212" -"Austria",43,"Launsdorf","04213" -"Austria",43,"Brückl","04214" -"Austria",43,"Liebenfels","04215" -"Austria",43,"Köttmannsdorf","04220" -"Austria",43,"Gallizien","04221" -"Austria",43,"Maria Saal","04223" -"Austria",43,"Pischeldorf","04224" -"Austria",43,"Grafenstein","04225" -"Austria",43,"Sankt Margareten im Rosental","04226" -"Austria",43,"Ferlach","04227" -"Austria",43,"Feistritz im Rosental","04228" -"Austria",43,"Krumpendorf am Wörther See","04229" -"Austria",43,"Globasnitz","04230" -"Austria",43,"Mittertrixen","04231" -"Austria",43,"Völkermarkt","04232" -"Austria",43,"Griffen","04233" -"Austria",43,"Ruden","04234" -"Austria",43,"Bleiburg","04235" -"Austria",43,"Eberndorf","04236" -"Austria",43,"Miklauzhof","04237" -"Austria",43,"Eisenkappel-Vellach","04238" -"Austria",43,"Sankt Kanzian am Klopeiner See","04239" -"Austria",43,"Bad Kleinkirchheim","04240" -"Austria",43,"Villach","04242" -"Austria",43,"Bodensdorf","04243" -"Austria",43,"Bad Bleiberg","04244" -"Austria",43,"Feistritz an der Drau","04245" -"Austria",43,"Radenthein","04246" -"Austria",43,"Afritz","04247" -"Austria",43,"Treffen","04248" -"Austria",43,"Wernberg","04252" -"Austria",43,"Sankt Jakob im Rosental","04253" -"Austria",43,"Faak am See","04254" -"Austria",43,"Arnoldstein","04255" -"Austria",43,"Nötsch im Gailtal","04256" -"Austria",43,"Fürnitz","04257" -"Austria",43,"Gummern","04258" -"Austria",43,"Treibach","04262" -"Austria",43,"Hüttenberg","04263" -"Austria",43,"Klein Sankt Paul","04264" -"Austria",43,"Weitensfeld im Gurktal","04265" -"Austria",43,"Straßburg","04266" -"Austria",43,"Metnitz","04267" -"Austria",43,"Friesach","04268" -"Austria",43,"Flattnitz","04269" -"Austria",43,"Steuerberg","04271" -"Austria",43,"Pörtschach am Wörther See","04272" -"Austria",43,"Reifnitz","04273" -"Austria",43,"Velden am Wörther See","04274" -"Austria",43,"Ebene Reichenau","04275" -"Austria",43,"Feldkirchen in Kärnten","04276" -"Austria",43,"Glanegg","04277" -"Austria",43,"Gnesau","04278" -"Austria",43,"Sirnitz","04279" -"Austria",43,"Hermagor","04282" -"Austria",43,"Sankt Stefan im Gailtal","04283" -"Austria",43,"Kirchbach","04284" -"Austria",43,"Tröpolach","04285" -"Austria",43,"Weißbriach","04286" -"Austria",43,"Bad Sankt Leonhard im Lavanttal","04350" -"Austria",43,"Wolfsberg","04352" -"Austria",43,"Prebl","04353" -"Austria",43,"Preitenegg","04354" -"Austria",43,"Gemmersdorf","04355" -"Austria",43,"Lavamünd","04356" -"Austria",43,"Sankt Paul im Lavanttal","04357" -"Austria",43,"Sankt Andrä","04358" -"Austria",43,"Reichenfels","04359" -"Austria",43,"Klagenfurt","0463" -"Austria",43,"Oberdrauburg","04710" -"Austria",43,"Greifenburg","04712" -"Austria",43,"Techendorf","04713" -"Austria",43,"Dellach im Drautal","04714" -"Austria",43,"Kötschach-Mauthen","04715" -"Austria",43,"Lesachtal","04716" -"Austria",43,"Steinfeld","04717" -"Austria",43,"Dellach","04718" -"Austria",43,"Gmünd in Kärnten","04732" -"Austria",43,"Malta","04733" -"Austria",43,"Rennweg","04734" -"Austria",43,"Kremsbrücke","04735" -"Austria",43,"Innerkrems","04736" -"Austria",43,"Stockenboi","04761" -"Austria",43,"Spittal an der Drau","04762" -"Austria",43,"Millstatt","04766" -"Austria",43,"Rothenthurn","04767" -"Austria",43,"Kleblach-Lind","04768" -"Austria",43,"Möllbrücke","04769" -"Austria",43,"Obervellach","04782" -"Austria",43,"Reißeck","04783" -"Austria",43,"Mallnitz","04784" -"Austria",43,"Außerfragant","04785" -"Austria",43,"Winklern","04822" -"Austria",43,"Tresdorf (Rangersdorf)","04823" -"Austria",43,"Heiligenblut","04824" -"Austria",43,"Großkirchheim","04825" -"Austria",43,"Mörtschach","04826" -"Austria",43,"Sillian","04842" -"Austria",43,"Außervillgraten","04843" -"Austria",43,"Abfaltersbach","04846" -"Austria",43,"Obertilliach","04847" -"Austria",43,"Kartitsch","04848" -"Austria",43,"Lienz","04852" -"Austria",43,"Ainet","04853" -"Austria",43,"Assling","04855" -"Austria",43,"Nikolsdorf","04858" -"Austria",43,"Huben","04872" -"Austria",43,"Sankt Jakob in Defereggen","04873" -"Austria",43,"Virgen","04874" -"Austria",43,"Matrei in Osttirol","04875" -"Austria",43,"Kals am Großglockner","04876" -"Austria",43,"Prägraten am Großvenediger","04877" -"Austria",43,"Sankt Veit in Defereggen","04879" -"Austria",43,"Innsbruck","0512" -"Austria",43,"Seefeld in Tirol","05212" -"Austria",43,"Scharnitz","05213" -"Austria",43,"Leutasch","05214" -"Austria",43,"Hall in Tirol","05223" -"Austria",43,"Wattens","05224" -"Austria",43,"Fulpmes","05225" -"Austria",43,"Neustift im Stubaital","05226" -"Austria",43,"Sellrain","05230" -"Austria",43,"Kematen in Tirol","05232" -"Austria",43,"Axams","05234" -"Austria",43,"Gries im Sellrain","05236" -"Austria",43,"Zirl","05238" -"Austria",43,"Kühtai","05239" -"Austria",43,"Schwaz","05242" -"Austria",43,"Maurach","05243" -"Austria",43,"Jenbach","05244" -"Austria",43,"Hinterriß","05245" -"Austria",43,"Achenkirch","05246" -"Austria",43,"Steinberg am Rofan","05248" -"Austria",43,"Oetz","05252" -"Austria",43,"Längenfeld","05253" -"Austria",43,"Sölden","05254" -"Austria",43,"Umhausen","05255" -"Austria",43,"Untergurgl","05256" -"Austria",43,"Telfs","05262" -"Austria",43,"Silz","05263" -"Austria",43,"Mieming","05264" -"Austria",43,"Nassereith","05265" -"Austria",43,"ötztal-Bahnhof","05266" -"Austria",43,"Steinach am Brenner","05272" -"Austria",43,"Matrei am Brenner","05273" -"Austria",43,"Gries am Brenner","05274" -"Austria",43,"Trins","05275" -"Austria",43,"Gschnitz","05276" -"Austria",43,"Navis","05278" -"Austria",43,"Sankt Jodok am Brenner","05279" -"Austria",43,"Hochfügen","05280" -"Austria",43,"Zell am Ziller","05282" -"Austria",43,"Kaltenbach","05283" -"Austria",43,"Gerlos","05284" -"Austria",43,"Mayrhofen","05285" -"Austria",43,"Ginzling","05286" -"Austria",43,"Tux","05287" -"Austria",43,"Fügen","05288" -"Austria",43,"Häusling","05289" -"Austria",43,"Brandenberg","05331" -"Austria",43,"Wörgl","05332" -"Austria",43,"Söll","05333" -"Austria",43,"Westendorf","05334" -"Austria",43,"Hopfgarten im Brixental","05335" -"Austria",43,"Alpbach","05336" -"Austria",43,"Brixlegg","05337" -"Austria",43,"Kundl","05338" -"Austria",43,"Wildschönau","05339" -"Austria",43,"Sankt Johann in Tirol","05352" -"Austria",43,"Waidring","05353" -"Austria",43,"Fieberbrunn","05354" -"Austria",43,"Jochberg","05355" -"Austria",43,"Kitzbühel","05356" -"Austria",43,"Kirchberg in Tirol","05357" -"Austria",43,"Ellmau","05358" -"Austria",43,"Hochfilzen","05359" -"Austria",43,"Kufstein","05372" -"Austria",43,"Ebbs","05373" -"Austria",43,"Walchsee","05374" -"Austria",43,"Kössen","05375" -"Austria",43,"Thiersee","05376" -"Austria",43,"Imst","05412" -"Austria",43,"Sankt Leonhard im Pitztal","05413" -"Austria",43,"Wenns","05414" -"Austria",43,"Roppen","05417" -"Austria",43,"Schönwies","05418" -"Austria",43,"See","05441" -"Austria",43,"Landeck","05442" -"Austria",43,"Galtür","05443" -"Austria",43,"Ischgl","05444" -"Austria",43,"Kappl","05445" -"Austria",43,"Sankt Anton am Arlberg","05446" -"Austria",43,"Flirsch","05447" -"Austria",43,"Pettneu am Arlberg","05448" -"Austria",43,"Fließ","05449" -"Austria",43,"Prutz","05472" -"Austria",43,"Nauders","05473" -"Austria",43,"Pfunds","05474" -"Austria",43,"Feichten","05475" -"Austria",43,"Serfaus","05476" -"Austria",43,"Tösens","05477" -"Austria",43,"Damüls","05510" -"Austria",43,"Egg","05512" -"Austria",43,"Hittisau","05513" -"Austria",43,"Bezau","05514" -"Austria",43,"Au","05515" -"Austria",43,"Doren","05516" -"Austria",43,"Riezlern","05517" -"Austria",43,"Mellau","05518" -"Austria",43,"Schröcken","05519" -"Austria",43,"Feldkirch","05522" -"Austria",43,"Götzis","05523" -"Austria",43,"Satteins","05524" -"Austria",43,"Nenzing","05525" -"Austria",43,"Laterns","05526" -"Austria",43,"Thüringen","05550" -"Austria",43,"Bludenz","05552" -"Austria",43,"Raggal","05553" -"Austria",43,"Sonntag","05554" -"Austria",43,"Schruns","05556" -"Austria",43,"Sankt Gallenkirch","05557" -"Austria",43,"Gaschurn","05558" -"Austria",43,"Brand","05559" -"Austria",43,"Dornbirn","05572" -"Austria",43,"Hörbranz","05573" -"Austria",43,"Bregenz","05574" -"Austria",43,"Langen bei Bregenz","05575" -"Austria",43,"Hohenems","05576" -"Austria",43,"Lustenau","05577" -"Austria",43,"Höchst","05578" -"Austria",43,"Alberschwende","05579" -"Austria",43,"Klösterle","05582" -"Austria",43,"Lech","05583" -"Austria",43,"Dalaas","05585" -"Austria",43,"Stanzach","05632" -"Austria",43,"Hägerau","05633" -"Austria",43,"Elbigenalp","05634" -"Austria",43,"Elmen","05635" -"Austria",43,"Reutte","05672" -"Austria",43,"Ehrwald","05673" -"Austria",43,"Bichlbach","05674" -"Austria",43,"Tannheim","05675" -"Austria",43,"Jungholz","05676" -"Austria",43,"Vils","05677" -"Austria",43,"Weißenbach am Lech","05678" -"Austria",43,"Obertraun","06131" -"Austria",43,"Bad Ischl","06132" -"Austria",43,"Ebensee","06133" -"Austria",43,"Hallstatt","06134" -"Austria",43,"Bad Goisern","06135" -"Austria",43,"Gosau","06136" -"Austria",43,"Strobl","06137" -"Austria",43,"Sankt Wolfgang im Salzkammergut","06138" -"Austria",43,"Lochen","06210" -"Austria",43,"Seekirchen am Wallersee","06212" -"Austria",43,"Oberhofen am Irrsee","06213" -"Austria",43,"Henndorf am Wallersee","06214" -"Austria",43,"Straßwalchen","06215" -"Austria",43,"Neumarkt am Wallersee","06216" -"Austria",43,"Mattsee","06217" -"Austria",43,"Lengau","06218" -"Austria",43,"Obertrum am See","06219" -"Austria",43,"Koppl","06221" -"Austria",43,"Anthering","06223" -"Austria",43,"Hintersee","06224" -"Austria",43,"Eugendorf","06225" -"Austria",43,"Fuschl am See","06226" -"Austria",43,"Sankt Gilgen","06227" -"Austria",43,"Faistenau","06228" -"Austria",43,"Hof bei Salzburg","06229" -"Austria",43,"Mondsee","06232" -"Austria",43,"Oberwang","06233" -"Austria",43,"Zell am Moos","06234" -"Austria",43,"Thalgau","06235" -"Austria",43,"Krispl","06240" -"Austria",43,"Sankt Koloman","06241" -"Austria",43,"Rußbach am Paß Gschütt","06242" -"Austria",43,"Abtenau","06243" -"Austria",43,"Golling an der Salzach","06244" -"Austria",43,"Hallein","06245" -"Austria",43,"Grödig","06246" -"Austria",43,"Großgmain","06247" -"Austria",43,"Oberndorf bei Salzburg","06272" -"Austria",43,"Lamprechtshausen","06274" -"Austria",43,"Nußdorf am Haunsberg","06276" -"Austria",43,"Sankt Pantaleon","06277" -"Austria",43,"Ostermiething","06278" -"Austria",43,"Sankt Johann im Pongau","06412" -"Austria",43,"Wagrain","06413" -"Austria",43,"Großarl","06414" -"Austria",43,"Schwarzach im Pongau","06415" -"Austria",43,"Lend","06416" -"Austria",43,"Hüttschlag","06417" -"Austria",43,"Kleinarl","06418" -"Austria",43,"Bad Hofgastein","06432" -"Austria",43,"Dorfgastein","06433" -"Austria",43,"Bad Gastein","06434" -"Austria",43,"Radstadt","06452" -"Austria",43,"Filzmoos","06453" -"Austria",43,"Mandling","06454" -"Austria",43,"Untertauern","06455" -"Austria",43,"Obertauern","06456" -"Austria",43,"Flachau","06457" -"Austria",43,"Hüttau","06458" -"Austria",43,"Dienten am Hochkönig","06461" -"Austria",43,"Bischofshofen","06462" -"Austria",43,"Annaberg-Lungötz","06463" -"Austria",43,"Eben im Pongau","06464" -"Austria",43,"Werfenweng","06466" -"Austria",43,"Mühlbach am Hochkönig","06467" -"Austria",43,"Werfen","06468" -"Austria",43,"Atzmannsdorf","06470" -"Austria",43,"Tweng","06471" -"Austria",43,"Mauterndorf","06472" -"Austria",43,"Mariapfarr","06473" -"Austria",43,"Tamsweg","06474" -"Austria",43,"Ramingstein","06475" -"Austria",43,"Sankt Margarethen im Lungau","06476" -"Austria",43,"Sankt Michael im Lungau","06477" -"Austria",43,"Zederhaus","06478" -"Austria",43,"Muhr","06479" -"Austria",43,"Göriach","06483" -"Austria",43,"Lessach","06484" -"Austria",43,"Saalbach","06541" -"Austria",43,"Zell am See","06542" -"Austria",43,"Taxenbach","06543" -"Austria",43,"Rauris","06544" -"Austria",43,"Bruck an der Großglocknerstraße","06545" -"Austria",43,"Fusch an der Großglocknerstraße","06546" -"Austria",43,"Kaprun","06547" -"Austria",43,"Niedernsill","06548" -"Austria",43,"Piesendorf","06549" -"Austria",43,"Mittersill","06562" -"Austria",43,"Uttendorf","06563" -"Austria",43,"Krimml","06564" -"Austria",43,"Neukirchen am Großvenediger","06565" -"Austria",43,"Bramberg am Wildkogel","06566" -"Austria",43,"Saalfelden am Steinernen Meer","06582" -"Austria",43,"Leogang","06583" -"Austria",43,"Maria Alm am Steinernen Meer","06584" -"Austria",43,"Lofer","06588" -"Austria",43,"Unken","06589" -"Austria",43,"Salzburg","0662" -"Austria",43,"Linz","070" -"Austria",43,"Reichenau im Mühlkreis","07211" -"Austria",43,"Zwettl an der Rodl","07212" -"Austria",43,"Bad Leonfelden","07213" -"Austria",43,"Reichenthal","07214" -"Austria",43,"Hellmonsödt","07215" -"Austria",43,"Helfenberg","07216" -"Austria",43,"Sankt Veit im Mühlkreis","07217" -"Austria",43,"Großtraberg","07218" -"Austria",43,"Vorderweißenbach","07219" -"Austria",43,"Hörsching","07221" -"Austria",43,"Enns","07223" -"Austria",43,"Sankt Florian","07224" -"Austria",43,"Hargelsberg","07225" -"Austria",43,"Wilhering","07226" -"Austria",43,"Neuhofen an der Krems","07227" -"Austria",43,"Kematen an der Krems","07228" -"Austria",43,"Traun","07229" -"Austria",43,"Altenberg bei Linz","07230" -"Austria",43,"Herzogsdorf","07231" -"Austria",43,"Sankt Martin im Mühlkreis","07232" -"Austria",43,"Feldkirchen an der Donau","07233" -"Austria",43,"Ottensheim","07234" -"Austria",43,"Gallneukirchen","07235" -"Austria",43,"Pregarten","07236" -"Austria",43,"Sankt Georgen an der Gusen","07237" -"Austria",43,"Mauthausen","07238" -"Austria",43,"Lichtenberg","07239" -"Austria",43,"Sipbachzell","07240" -"Austria",43,"Steinerkirchen an der Traun","07241" -"Austria",43,"Wels","07242" -"Austria",43,"Marchtrenk","07243" -"Austria",43,"Sattledt","07244" -"Austria",43,"Lambach","07245" -"Austria",43,"Gunskirchen","07246" -"Austria",43,"Kematen am Innbach","07247" -"Austria",43,"Grieskirchen","07248" -"Austria",43,"Bad Schallerbach","07249" -"Austria",43,"Maria Neustift","07250" -"Austria",43,"Schiedlberg","07251" -"Austria",43,"Steyr","07252" -"Austria",43,"Wolfern","07253" -"Austria",43,"Großraming","07254" -"Austria",43,"Losenstein","07255" -"Austria",43,"Ternberg","07256" -"Austria",43,"Grünburg","07257" -"Austria",43,"Bad Hall","07258" -"Austria",43,"Sierning","07259" -"Austria",43,"Waldhausen","07260" -"Austria",43,"Schönau im Mühlkreis","07261" -"Austria",43,"Perg","07262" -"Austria",43,"Bad Zell","07263" -"Austria",43,"Windhaag bei Perg","07264" -"Austria",43,"Pabneukirchen","07265" -"Austria",43,"Bad Kreuzen","07266" -"Austria",43,"Mönchdorf","07267" -"Austria",43,"Grein","07268" -"Austria",43,"Baumgartenberg","07269" -"Austria",43,"Eferding","07272" -"Austria",43,"Aschach an der Donau","07273" -"Austria",43,"Alkoven","07274" -"Austria",43,"Peuerbach","07276" -"Austria",43,"Waizenkirchen","07277" -"Austria",43,"Neukirchen am Walde","07278" -"Austria",43,"Haibach ob der Donau","07279" -"Austria",43,"Schwarzenberg am Böhmerwald","07280" -"Austria",43,"Aigen im Mühlkreis","07281" -"Austria",43,"Neufelden","07282" -"Austria",43,"Sarleinsbach","07283" -"Austria",43,"Oberkappel","07284" -"Austria",43,"Hofkirchen im Mühlkreis","07285" -"Austria",43,"Lembach im Mühlkreis","07286" -"Austria",43,"Peilstein im Mühlviertel","07287" -"Austria",43,"Ulrichsberg","07288" -"Austria",43,"Rohrbach in Oberösterreich","07289" -"Austria",43,"Linz","0732" -"Austria",43,"Gaflenz","07353" -"Austria",43,"Weyer","07355" -"Austria",43,"Kleinreifling","07357" -"Austria",43,"Ybbs an der Donau","07412" -"Austria",43,"Marbach an der Donau","07413" -"Austria",43,"Weins-Isperdorf","07414" -"Austria",43,"Altenmarkt (Yspertal)","07415" -"Austria",43,"Wieselburg","07416" -"Austria",43,"Bad Kreuzen","07418" -"Austria",43,"Strengberg","07432" -"Austria",43,"Wallsee","07433" -"Austria",43,"Haag","07434" -"Austria",43,"Sankt Valentin","07435" -"Austria",43,"Waidhofen an der Ybbs","07442" -"Austria",43,"Ybbsitz","07443" -"Austria",43,"Opponitz","07444" -"Austria",43,"Hollenstein an der Ybbs","07445" -"Austria",43,"Gaflenz","07446" -"Austria",43,"Gaflenz","07447" -"Austria",43,"Kematen an der Ybbs","07448" -"Austria",43,"Weyer","07449" -"Austria",43,"Neustadtl an der Donau","07471" -"Austria",43,"Amstetten","07472" -"Austria",43,"Blindenmarkt","07473" -"Austria",43,"Euratsfeld","07474" -"Austria",43,"Hausmening (Neuhofen an der Ybbs)","07475" -"Austria",43,"Aschbach-Markt","07476" -"Austria",43,"Sankt Peter in der Au","07477" -"Austria",43,"Oed-Oehling","07478" -"Austria",43,"Ardagger","07479" -"Austria",43,"Langau (Gaming)","07480" -"Austria",43,"Scheibbs","07482" -"Austria",43,"Oberndorf an der Melk","07483" -"Austria",43,"Göstling an der Ybbs","07484" -"Austria",43,"Gaming","07485" -"Austria",43,"Lunz am See","07486" -"Austria",43,"Gresten","07487" -"Austria",43,"Steinakirchen am Forst","07488" -"Austria",43,"Purgstall an der Erlauf","07489" -"Austria",43,"Windischgarsten","07562" -"Austria",43,"Spital am Pyhrn","07563" -"Austria",43,"Hinterstoder","07564" -"Austria",43,"Sankt Pankraz","07565" -"Austria",43,"Rosenau am Hengstpaß","07566" -"Austria",43,"Kirchdorf an der Krems","07582" -"Austria",43,"Kremsmünster","07583" -"Austria",43,"Molln","07584" -"Austria",43,"Klaus an der Pyhrnbahn","07585" -"Austria",43,"Pettenbach","07586" -"Austria",43,"Wartberg an der Krems","07587" -"Austria",43,"Ried im Traunkreis","07588" -"Austria",43,"Gmunden","07612" -"Austria",43,"Laakirchen","07613" -"Austria",43,"Vorchdorf","07614" -"Austria",43,"Scharnstein","07615" -"Austria",43,"Grünau im Almtal","07616" -"Austria",43,"Traunkirchen","07617" -"Austria",43,"Neukirchen (Altmünster)","07618" -"Austria",43,"Kirchham","07619" -"Austria",43,"Seewalchen am Attersee","07662" -"Austria",43,"Steinbach am Attersee","07663" -"Austria",43,"Weyregg am Attersee","07664" -"Austria",43,"Unterach am Attersee","07665" -"Austria",43,"Attersee","07666" -"Austria",43,"Sankt Georgen im Attergau","07667" -"Austria",43,"Vöcklabruck","07672" -"Austria",43,"Schwanenstadt","07673" -"Austria",43,"Attnang-Puchheim","07674" -"Austria",43,"Ampflwang im Hausruckwald","07675" -"Austria",43,"Ottnang am Hausruck","07676" -"Austria",43,"Vöcklamarkt","07682" -"Austria",43,"Frankenburg am Hausruck","07683" -"Austria",43,"Frankenmarkt","07684" -"Austria",43,"Suben","07711" -"Austria",43,"Schärding","07712" -"Austria",43,"Schardenberg","07713" -"Austria",43,"Esternberg","07714" -"Austria",43,"Münzkirchen","07716" -"Austria",43,"Sankt Aegidi","07717" -"Austria",43,"Waldkirchen am Wesen","07718" -"Austria",43,"Taufkirchen an der Pram","07719" -"Austria",43,"Braunau am Inn","07722" -"Austria",43,"Altheim","07723" -"Austria",43,"Mauerkirchen","07724" -"Austria",43,"Ach","07727" -"Austria",43,"Schwand im Innkreis","07728" -"Austria",43,"Neukirchen an der Enknach","07729" -"Austria",43,"Haag am Hausruck","07732" -"Austria",43,"Neumarkt im Hausruckkreis","07733" -"Austria",43,"Hofkirchen an der Trattnach","07734" -"Austria",43,"Gaspoltshofen","07735" -"Austria",43,"Pram","07736" -"Austria",43,"Mattighofen","07742" -"Austria",43,"Maria Schmolln","07743" -"Austria",43,"Munderfing","07744" -"Austria",43,"Lochen","07745" -"Austria",43,"Friedburg","07746" -"Austria",43,"Kirchberg bei Mattighofen","07747" -"Austria",43,"Eggelsberg","07748" -"Austria",43,"Andrichsfurt","07750" -"Austria",43,"Sankt Martin im Innkreis","07751" -"Austria",43,"Ried im Innkreis","07752" -"Austria",43,"Eberschwang","07753" -"Austria",43,"Waldzell","07754" -"Austria",43,"Mettmach","07755" -"Austria",43,"Gurten","07757" -"Austria",43,"Obernberg am Inn","07758" -"Austria",43,"Antiesenhofen","07759" -"Austria",43,"Raab","07762" -"Austria",43,"Kopfing im Innkreis","07763" -"Austria",43,"Riedau","07764" -"Austria",43,"Lambrechten","07765" -"Austria",43,"Andorf","07766" -"Austria",43,"Eggerding","07767" -"Austria",43,"Neumarkt im Mühlkreis","07941" -"Austria",43,"Freistadt","07942" -"Austria",43,"Windhaag bei Freistadt","07943" -"Austria",43,"Sandl","07944" -"Austria",43,"Sankt Oswald bei Freistadt","07945" -"Austria",43,"Gutau","07946" -"Austria",43,"Kefermarkt","07947" -"Austria",43,"Hirschbach im Mühlkreis","07948" -"Austria",43,"Rainbach im Mühlkreis","07949" -"Austria",43,"Weitersfelden","07952" -"Austria",43,"Liebenau","07953" -"Austria",43,"Sankt Georgen am Walde","07954" -"Austria",43,"Königswiesen","07955" -"Austria",43,"Unterweißenbach","07956" -"Azerbaijan",994,"Khojali","(8)102" -"Azerbaijan",994,"Barda","(8)110" -"Azerbaijan",994,"Òguz","(8)111" -"Azerbaijan",994,"Hadrut","(8)112" -"Azerbaijan",994,"Agjabedi","(8)113" -"Azerbaijan",994,"Jalilabad","(8)114" -"Azerbaijan",994,"Davachy","(8)115" -"Azerbaijan",994,"Jebrayil","(8)118" -"Azerbaijan",994,"Balaken","(8)119" -"Azerbaijan",994,"Baku","(8)12" -"Azerbaijan",994,"Gubadli","(8)133" -"Azerbaijan",994,"Zardab","(8)135" -"Azerbaijan",994,"Nakhchivan Autonomous Republic","(8)136" -"Azerbaijan",994,"Gusar","(8)138" -"Azerbaijan",994,"Hajigabul","(8)140" -"Azerbaijan",994,"Fizuli","(8)141" -"Azerbaijan",994,"Sabirabad","(8)143" -"Azerbaijan",994,"Gakh","(8)144" -"Azerbaijan",994,"Kurdamir","(8)145" -"Azerbaijan",994,"Lachin","(8)146" -"Azerbaijan",994,"Mingechevir","(8)147" -"Azerbaijan",994,"Khojavend","(8)149" -"Azerbaijan",994,"Gobustan","(8)150" -"Azerbaijan",994,"Masalli","(8)151" -"Azerbaijan",994,"Beylagan","(8)152" -"Azerbaijan",994,"Neftchala","(8)153" -"Azerbaijan",994,"Imishli","(8)154" -"Azerbaijan",994,"Lerik","(8)157" -"Azerbaijan",994,"Bilasuvar","(8)159" -"Azerbaijan",994,"Gabala","(8)160" -"Azerbaijan",994,"Khankendi","(8)162" -"Azerbaijan",994,"Salyan","(8)163" -"Azerbaijan",994,"Yevlakh","(8)166" -"Azerbaijan",994,"Goychay","(8)167" -"Azerbaijan",994,"Saatly","(8)168" -"Azerbaijan",994,"Guba","(8)169" -"Azerbaijan",994,"Ujar","(8)170" -"Azerbaijan",994,"Lankaran","(8)171" -"Azerbaijan",994,"Khachmaz","(8)172" -"Azerbaijan",994,"Zagatala","(8)174" -"Azerbaijan",994,"Yardimli","(8)175" -"Azerbaijan",994,"Shamakhi","(8)176" -"Azerbaijan",994,"Shaki","(8)177" -"Azerbaijan",994,"Ismayilli","(8)178" -"Azerbaijan",994,"Sumgayit","(8)18" -"Azerbaijan",994,"Siyazan","(8)190" -"Azerbaijan",994,"Shusha City","(8)191" -"Azerbaijan",994,"Agdam","(8)192" -"Azerbaijan",994,"Agdash","(8)193" -"Azerbaijan",994,"Askeran","(8)194" -"Azerbaijan",994,"Astara","(8)195" -"Azerbaijan",994,"Zangilan","(8)196" -"Azerbaijan",994,"Ali-Bayramli","(8)197" -"Azerbaijan",994,"Agsu","(8)198" -"Azerbaijan",994,"Khizi","(8)199" -"Azerbaijan",994,"Dashkasan","(8)216" -"Azerbaijan",994,"Ganja","(8)22" -"Azerbaijan",994,"Khanlar","(8)230" -"Azerbaijan",994,"Tovuz","(8)231" -"Azerbaijan",994,"Gadabay","(8)232" -"Azerbaijan",994,"Goranboy","(8)234" -"Azerbaijan",994,"Shamkir","(8)241" -"Azerbaijan",994,"Akstafa","(8)244" -"Azerbaijan",994,"Tar-Tar","(8)246" -"Azerbaijan",994,"Agdara City","(8)248" -"Azerbaijan",994,"Naftalan","(8)255" -"Azerbaijan",994,"Samukh","(8)265" -"Azerbaijan",994,"Kelbajar","(8)266" -"Azerbaijan",994,"Gazakh","(8)279" -"Bahamas",1,"Bahamas","(1+)242" -"Bangladesh",880,"Dhaka","02" -"Bangladesh",880,"Banskhali","03020" -"Bangladesh",880,"Fatikchari","03022" -"Bangladesh",880,"Hathazari","03023" -"Bangladesh",880,"Mirsari","03024" -"Bangladesh",880,"Rangunia","03025" -"Bangladesh",880,"Rauzan","03026" -"Bangladesh",880,"Snadwip","03027" -"Bangladesh",880,"Barabkunda","03028" -"Bangladesh",880,"Anwara","03029" -"Bangladesh",880,"Boalkhali","03032" -"Bangladesh",880,"Chandanaish","03033" -"Bangladesh",880,"Lohagara","03034" -"Bangladesh",880,"Potia","03035" -"Bangladesh",880,"Satkania","03036" -"Bangladesh",880,"Chittagong","031" -"Bangladesh",880,"Noakhali","0321" -"Bangladesh",880,"Begamgonj","03221" -"Bangladesh",880,"Chatkhil","03222" -"Bangladesh",880,"Companiganj (B.Hat)","03223" -"Bangladesh",880,"Hatiya (Oshkhali)","03224" -"Bangladesh",880,"Senbag","03225" -"Bangladesh",880,"Feni","0331" -"Bangladesh",880,"Chhagalnaiya","03322" -"Bangladesh",880,"Dagonbhuya","03323" -"Bangladesh",880,"Parshuram","03324" -"Bangladesh",880,"Sonagazi","03325" -"Bangladesh",880,"Fulgazi","03326" -"Bangladesh",880,"Cox's Bazar","0341" -"Bangladesh",880,"Chakaria","03422" -"Bangladesh",880,"Moheshkhali","03424" -"Bangladesh",880,"Ramu","03425" -"Bangladesh",880,"Ukhiya","03427" -"Bangladesh",880,"Rangamati","0351" -"Bangladesh",880,"Kaptai","03529" -"Bangladesh",880,"Bandarban","0361" -"Bangladesh",880,"Khagrachari","0371" -"Bangladesh",880,"Laximpur","0381" -"Bangladesh",880,"Raipura","03822" -"Bangladesh",880,"Ramgati (Alexender)","03823" -"Bangladesh",880,"Ramgonj","03824" -"Bangladesh",880,"Rupsha","04020" -"Bangladesh",880,"Paikgacha","04027" -"Bangladesh",880,"Terokhada","04029" -"Bangladesh",880,"Dighalia","04033" -"Bangladesh",880,"Khulna","041" -"Bangladesh",880,"Sharsa (Benapol)","0421" -"Bangladesh",880,"Abhaynagar (Noapara)","04222" -"Bangladesh",880,"Bagerphara","04223" -"Bangladesh",880,"Chaugacha","04224" -"Bangladesh",880,"Jhikargacha","04225" -"Bangladesh",880,"Keshobpur","04226" -"Bangladesh",880,"Manirampur","04227" -"Bangladesh",880,"Sharsa","04228" -"Bangladesh",880,"Barisal","0431" -"Bangladesh",880,"Banaripara","04320" -"Bangladesh",880,"Gournadi","04322" -"Bangladesh",880,"Agailjhara","04323" -"Bangladesh",880,"Hizla","04324" -"Bangladesh",880,"Mehendigonj","04325" -"Bangladesh",880,"Muladi","04326" -"Bangladesh",880,"Babugonj","04327" -"Bangladesh",880,"Bakergonj","04328" -"Bangladesh",880,"Uzirpur","04329" -"Bangladesh",880,"Banaripara","04332" -"Bangladesh",880,"Patuakhali","0441" -"Bangladesh",880,"Baufal","04422" -"Bangladesh",880,"Dashmina","04423" -"Bangladesh",880,"Golachipa","04424" -"Bangladesh",880,"Khepupara","04425" -"Bangladesh",880,"Mirjagonj","04426" -"Bangladesh",880,"Pathorghata","04455" -"Bangladesh",880,"Barguna","0448" -"Bangladesh",880,"Jhinaidah","0451" -"Bangladesh",880,"Kaligonj","04523" -"Bangladesh",880,"Moheshpur","04525" -"Bangladesh",880,"Pirojpur","0461" -"Bangladesh",880,"Bhandaria","04623" -"Bangladesh",880,"Kaokhali","04624" -"Bangladesh",880,"Mothbaria","04625" -"Bangladesh",880,"Nazirpur","04626" -"Bangladesh",880,"Swarupkhati","04627" -"Bangladesh",880,"Chitalmari","04652" -"Bangladesh",880,"Fakirhat","04653" -"Bangladesh",880,"Kachua","04654" -"Bangladesh",880,"Mollarhat","04655" -"Bangladesh",880,"Morelganj","04656" -"Bangladesh",880,"Rampal","04657" -"Bangladesh",880,"Mongla","04658" -"Bangladesh",880,"Bagerhat","0468" -"Bangladesh",880,"Satkhira","0471" -"Bangladesh",880,"Narail","0481" -"Bangladesh",880,"Lohagara","04823" -"Bangladesh",880,"Sreepur","04854" -"Bangladesh",880,"Magura","0488" -"Bangladesh",880,"Bhola","0491" -"Bangladesh",880,"Borhanuddin","04922" -"Bangladesh",880,"Daulatkhan","04924" -"Bangladesh",880,"Lalmohan","04925" -"Bangladesh",880,"Nalcity","04953" -"Bangladesh",880,"Jhalakati","0498" -"Bangladesh",880,"Sibgonj (Mokamtala)","05020" -"Bangladesh",880,"Dhunat","05023" -"Bangladesh",880,"Dhupchachia","05024" -"Bangladesh",880,"Shariakandi","05028" -"Bangladesh",880,"Sherpur","05029" -"Bangladesh",880,"Bogra","051" -"Bangladesh",880,"Rangpur","0521" -"Bangladesh",880,"Badarganj","05222" -"Bangladesh",880,"Haragacha","05224" -"Bangladesh",880,"Mithapukur","05225" -"Bangladesh",880,"Pirgonj","05227" -"Bangladesh",880,"Dianjpur","0531" -"Bangladesh",880,"Birganj","05323" -"Bangladesh",880,"Shetabgonj","05325" -"Bangladesh",880,"Chrirbandar","05326" -"Bangladesh",880,"Fulbari","05327" -"Bangladesh",880,"Bangla (Hili)","05329" -"Bangladesh",880,"Gaibandha","0541" -"Bangladesh",880,"Palashbari","05424" -"Bangladesh",880,"Saghata (Bonarpara)","05426" -"Bangladesh",880,"Nilphamari","0551" -"Bangladesh",880,"Saidpur","05526" -"Bangladesh",880,"Thakurgoan","0561" -"Bangladesh",880,"Boda","05653" -"Bangladesh",880,"Panchagar","0568" -"Bangladesh",880,"Jhinaidah","0571" -"Bangladesh",880,"Panchbibi","05724" -"Bangladesh",880,"Kurigram","0581" -"Bangladesh",880,"Nageswari","05826" -"Bangladesh",880,"Lalmonirhat","0591" -"Bangladesh",880,"Shariatpur","0601" -"Bangladesh",880,"Damudda","06023" -"Bangladesh",880,"Goshairhat","06024" -"Bangladesh",880,"Dhamrai","06222" -"Bangladesh",880,"Dohar","06223" -"Bangladesh",880,"Keranigonj","06224" -"Bangladesh",880,"Nowabgonj","06225" -"Bangladesh",880,"Monahardi","06253" -"Bangladesh",880,"Palash","06254" -"Bangladesh",880,"Raipura","06255" -"Bangladesh",880,"Madhabdi","06257" -"Bangladesh",880,"Narsingdi","0628" -"Bangladesh",880,"Faridpur","0631" -"Bangladesh",880,"Bhanga","06323" -"Bangladesh",880,"Boalmari","06324" -"Bangladesh",880,"Nagarkanda","06327" -"Bangladesh",880,"Sadarpur (J.Monjil)","06328" -"Bangladesh",880,"Rajbari","0641" -"Bangladesh",880,"Goalanda","06423" -"Bangladesh",880,"Pangsha","06424" -"Bangladesh",880,"Maninganj","0651" -"Bangladesh",880,"Zitka","06524" -"Bangladesh",880,"Singair","06527" -"Bangladesh",880,"Madaripur","0661" -"Bangladesh",880,"Kalkini","06622" -"Bangladesh",880,"Rajoir","06623" -"Bangladesh",880,"Shibchar","06624" -"Bangladesh",880,"Kashiani","06652" -"Bangladesh",880,"Kotalipara","06653" -"Bangladesh",880,"Moksudpur","06654" -"Bangladesh",880,"Tongipara","06655" -"Bangladesh",880,"Gopalgonj","0668" -"Bangladesh",880,"Araihazar","06722" -"Bangladesh",880,"Sonargaon","06723" -"Bangladesh",880,"Bandar","06724" -"Bangladesh",880,"Rupganj","06725" -"Bangladesh",880,"Kaliakoir","06822" -"Bangladesh",880,"Kaliganj","06823" -"Bangladesh",880,"Kapashia","06824" -"Bangladesh",880,"Sreepur","06825" -"Bangladesh",880,"Munsigonj","0691" -"Bangladesh",880,"Gazaria","06922" -"Bangladesh",880,"Lohajang","06923" -"Bangladesh",880,"Sirajdikhan","06924" -"Bangladesh",880,"Sreenagar","06925" -"Bangladesh",880,"Tongibari","06926" -"Bangladesh",880,"Bheramara","07022" -"Bangladesh",880,"Kushtia","071" -"Bangladesh",880,"Rajshahi","0721" -"Bangladesh",880,"Godagari","07225" -"Bangladesh",880,"Paba","07227" -"Bangladesh",880,"Baneswar","07228" -"Bangladesh",880,"Tanore","07229" -"Bangladesh",880,"Pabna","0731" -"Bangladesh",880,"Bera","07323" -"Bangladesh",880,"Chatmohar","07324" -"Bangladesh",880,"Faridpur","07325" -"Bangladesh",880,"Ishwardi","07326" -"Bangladesh",880,"Shathiya","07327" -"Bangladesh",880,"Bhangura","07328" -"Bangladesh",880,"Sujanagar","07329" -"Bangladesh",880,"Nagoan","0741" -"Bangladesh",880,"Manda","07425" -"Bangladesh",880,"Mohadevpur","07426" -"Bangladesh",880,"Sirajganj","0751" -"Bangladesh",880,"Belkuchi","07522" -"Bangladesh",880,"Chouhali","07523" -"Bangladesh",880,"Kamarkhand","07524" -"Bangladesh",880,"Kazipur","07525" -"Bangladesh",880,"Raiganj","07526" -"Bangladesh",880,"Shajatpur","07527" -"Bangladesh",880,"Tarash","07528" -"Bangladesh",880,"Ullapara","07529" -"Bangladesh",880,"Chuadanga","0761" -"Bangladesh",880,"Alamdanga","07622" -"Bangladesh",880,"Natore","0771" -"Bangladesh",880,"Gurudashpur","07724" -"Bangladesh",880,"Chapai Nobabganj","0781" -"Bangladesh",880,"Rohanpur","07823" -"Bangladesh",880,"Shibgonj","07825" -"Bangladesh",880,"Meherpur","0791" -"Bangladesh",880,"Mujibnagar","07923" -"Bangladesh",880,"Chauddagram","08020" -"Bangladesh",880,"Chandiana","08022" -"Bangladesh",880,"Daudkandi","08023" -"Bangladesh",880,"Debidwar","08024" -"Bangladesh",880,"Homna","08025" -"Bangladesh",880,"Muradnagar","08026" -"Bangladesh",880,"Barura","08027" -"Bangladesh",880,"Brahmanpara","08028" -"Bangladesh",880,"Burichang","08029" -"Bangladesh",880,"Laksham","08032" -"Bangladesh",880,"Nangalcoat","08033" -"Bangladesh",880,"Comilla","081" -"Bangladesh",880,"Sylhet","0821" -"Bangladesh",880,"Kanaighat","08220" -"Bangladesh",880,"Balagonj","08222" -"Bangladesh",880,"Bianibazar","08223" -"Bangladesh",880,"Biswanath","08224" -"Bangladesh",880,"Companiganj","08225" -"Bangladesh",880,"Fenchugonj","08226" -"Bangladesh",880,"Golapgonj","08227" -"Bangladesh",880,"Jaintapur","08229" -"Bangladesh",880,"Jokiganj","08232" -"Bangladesh",880,"Habiganj","0831" -"Bangladesh",880,"Chunarughat","08325" -"Bangladesh",880,"Madabpur","08327" -"Bangladesh",880,"Nabiganj","08328" -"Bangladesh",880,"Sayestaganj","08332" -"Bangladesh",880,"Chandpur","0841" -"Bangladesh",880,"Hajiganj","08424" -"Bangladesh",880,"Kochua","08425" -"Bangladesh",880,"Matlab","08426" -"Bangladesh",880,"Shaharasti","08427" -"Bangladesh",880,"Brahmanbaria","0851" -"Bangladesh",880,"Akhaura","08522" -"Bangladesh",880,"Bancharampur","08523" -"Bangladesh",880,"Kashba","08524" -"Bangladesh",880,"Nabinagar","08525" -"Bangladesh",880,"Nasirnagar","08526" -"Bangladesh",880,"Sarail","08527" -"Bangladesh",880,"Ashuganj","08528" -"Bangladesh",880,"Maulavibazar","0861" -"Bangladesh",880,"Baralekha","08622" -"Bangladesh",880,"Komalgonj","08623" -"Bangladesh",880,"Kulaura","08624" -"Bangladesh",880,"Rajnagar","08625" -"Bangladesh",880,"Sreemongal","08626" -"Bangladesh",880,"Sunamganj","0871" -"Bangladesh",880,"Chattak","08723" -"Bangladesh",880,"Dharmapasha","08725" -"Bangladesh",880,"Jagonnathpur","08727" -"Bangladesh",880,"Phulpur","09020" -"Bangladesh",880,"Bhaluka","09022" -"Bangladesh",880,"Gouripur","09024" -"Bangladesh",880,"Gafargaon","09025" -"Bangladesh",880,"Ishwargonj","09027" -"Bangladesh",880,"Muktagacha","09028" -"Bangladesh",880,"Trisal","09032" -"Bangladesh",880,"Phulpur","09033" -"Bangladesh",880,"Mymensingh","091" -"Bangladesh",880,"Tangail","0921" -"Bangladesh",880,"Bashail","09222" -"Bangladesh",880,"Bhuapur","09223" -"Bangladesh",880,"Ghatail","09225" -"Bangladesh",880,"Gopalpur","09226" -"Bangladesh",880,"Kalihati","09227" -"Bangladesh",880,"Modhupur","09228" -"Bangladesh",880,"Mirzapur","09229" -"Bangladesh",880,"Shakhipur","09232" -"Bangladesh",880,"Nagarpur","09233" -"Bangladesh",880,"Sherpur","0931" -"Bangladesh",880,"Kishoreganj","0941" -"Bangladesh",880,"Bajitpur","09423" -"Bangladesh",880,"Bhairabbazar","09424" -"Bangladesh",880,"Itna","09426" -"Bangladesh",880,"Kotiadhi","09428" -"Bangladesh",880,"Netrokona","0951" -"Bangladesh",880,"Mohanganj","09524" -"Bangladesh",880,"Durgapur","09525" -"Bangladesh",880,"Kendua","09528" -"Bangladesh",880,"Madan","09529" -"Bangladesh",880,"Jamalpur","0981" -"Bangladesh",880,"Islampur","09824" -"Bangladesh",880,"Sarishabari","09827" -"Barbados",1,"Barbados","(1+)246" -"Belarus",375,"Berestovitsa","(8~0)1511" -"Belarus",375,"Volkovusk","(8~0)1512" -"Belarus",375,"Svisloch","(8~0)1513" -"Belarus",375,"Shchuchin","(8~0)1514" -"Belarus",375,"Mostu","(8~0)1515" -"Belarus",375,"Grodno","(8~0)152" -"Belarus",375,"Grodno","(8~0)1522" -"Belarus",375,"Lida","(8~0)1561" -"Belarus",375,"Slonim","(8~0)1562" -"Belarus",375,"Dyatlovo","(8~0)1563" -"Belarus",375,"Zelva","(8~0)1564" -"Belarus",375,"Ostrovets","(8~0)1591" -"Belarus",375,"Smorgon","(8~0)1592" -"Belarus",375,"Oshmyanu","(8~0)1593" -"Belarus",375,"Voronovo","(8~0)1594" -"Belarus",375,"Ivye","(8~0)1595" -"Belarus",375,"Korelichi","(8~0)1596" -"Belarus",375,"Nobogrudok","(8~0)1597" -"Belarus",375,"Brest","(8~0)162" -"Belarus",375,"Baranovichi","(8~0)163" -"Belarus",375,"Kamenets","(8~0)1631" -"Belarus",375,"Pruzhanu","(8~0)1632" -"Belarus",375,"Lyahovichi","(8~0)1633" -"Belarus",375,"Zhabinka","(8~0)1641" -"Belarus",375,"Kobrin","(8~0)1642" -"Belarus",375,"Bereza","(8~0)1643" -"Belarus",375,"Drogichin","(8~0)1644" -"Belarus",375,"Ivatsevichi","(8~0)1645" -"Belarus",375,"Gancevichi","(8~0)1646" -"Belarus",375,"Luninets","(8~0)1647" -"Belarus",375,"Pinsk","(8~0)165" -"Belarus",375,"Malorita","(8~0)1651" -"Belarus",375,"Ivanovo","(8~0)1652" -"Belarus",375,"Stolin","(8~0)1655" -"Belarus",375,"Minsk","(8~0)17" -"Belarus",375,"Soligorsk","(8~0)171" -"Belarus",375,"Maryina Gorka","(8~0)1713" -"Belarus",375,"Cherven","(8~0)1714" -"Belarus",375,"Berezino","(8~0)1715" -"Belarus",375,"Dzerzhinsk","(8~0)1716" -"Belarus",375,"Stolbtsu","(8~0)1717" -"Belarus",375,"Uzda","(8~0)1718" -"Belarus",375,"Kopul","(8~0)1719" -"Belarus",375,"Nesvizh","(8~0)177" -"Belarus",375,"Vileyka","(8~0)1771" -"Belarus",375,"Volozhin","(8~0)1772" -"Belarus",375,"Molodechno","(8~0)1773" -"Belarus",375,"Logoysk","(8~0)1774" -"Belarus",375,"Zhodino","(8~0)1775" -"Belarus",375,"Smolevichi","(8~0)1776" -"Belarus",375,"Borisov","(8~0)1777" -"Belarus",375,"Pleshchenitsu","(8~0)1779" -"Belarus",375,"Starye Dorogi","(8~0)1792" -"Belarus",375,"Kletsk","(8~0)1793" -"Belarus",375,"Lyuban","(8~0)1794" -"Belarus",375,"Slutsk","(8~0)1795" -"Belarus",375,"Krupki","(8~0)1796" -"Belarus",375,"Myadel","(8~0)1797" -"Belarus",375,"Vitebsk","(8~0)212" -"Belarus",375,"Shumilino","(8~0)213" -"Belarus",375,"Beshenkovichi","(8~0)2131" -"Belarus",375,"Lepel","(8~0)2132" -"Belarus",375,"Chashniki","(8~0)2133" -"Belarus",375,"Senno","(8~0)2135" -"Belarus",375,"Tolochin","(8~0)2136" -"Belarus",375,"Dubrova","(8~0)2137" -"Belarus",375,"Liozno","(8~0)2138" -"Belarus",375,"Gorodok","(8~0)2139" -"Belarus",375,"Novopolotsk","(8~0)214" -"Belarus",375,"Verhnedvinsk","(8~0)2151" -"Belarus",375,"Mioru","(8~0)2152" -"Belarus",375,"Braslav","(8~0)2153" -"Belarus",375,"Sharkovshchina","(8~0)2154" -"Belarus",375,"Postavu","(8~0)2155" -"Belarus",375,"Glubokoye","(8~0)2156" -"Belarus",375,"Dokshitsu","(8~0)2157" -"Belarus",375,"Ushachi","(8~0)2158" -"Belarus",375,"Rossonu","(8~0)2159" -"Belarus",375,"Orsha","(8~0)2161" -"Belarus",375,"Mogilev","(8~0)222" -"Belarus",375,"Glusk","(8~0)223" -"Belarus",375,"Buhov","(8~0)2231" -"Belarus",375,"Belunichi","(8~0)2232" -"Belarus",375,"Gorki","(8~0)2233" -"Belarus",375,"Krugloye","(8~0)2234" -"Belarus",375,"Osipovichi","(8~0)2235" -"Belarus",375,"Klichev","(8~0)2236" -"Belarus",375,"Kirovsk","(8~0)2237" -"Belarus",375,"Krasnopolye","(8~0)2238" -"Belarus",375,"Shklov","(8~0)2239" -"Belarus",375,"Mstislavl","(8~0)224" -"Belarus",375,"Krichev","(8~0)2241" -"Belarus",375,"Chausu","(8~0)2242" -"Belarus",375,"Cherikov","(8~0)2243" -"Belarus",375,"Klimovichi","(8~0)2244" -"Belarus",375,"Kostyukovichi","(8~0)2245" -"Belarus",375,"Slavgorod","(8~0)2246" -"Belarus",375,"Hotimsk","(8~0)2247" -"Belarus",375,"Dribin","(8~0)2248" -"Belarus",375,"Bobruysk","(8~0)225" -"Belarus",375,"Bobruysk","(8~0)2251" -"Belarus",375,"Gomel","(8~0)232" -"Belarus",375,"Gomel","(8~0)2322" -"Belarus",375,"Vetka","(8~0)233" -"Belarus",375,"Chechersk","(8~0)2332" -"Belarus",375,"Dobrush","(8~0)2333" -"Belarus",375,"Zhlobin","(8~0)2334" -"Belarus",375,"Buda-Koshelevo","(8~0)2336" -"Belarus",375,"Korma","(8~0)2337" -"Belarus",375,"Rogachev","(8~0)2339" -"Belarus",375,"Rechitsa","(8~0)234" -"Belarus",375,"Svetlogorsk","(8~0)2342" -"Belarus",375,"Bragin","(8~0)2344" -"Belarus",375,"Kalinkovichi","(8~0)2345" -"Belarus",375,"Hoyniki","(8~0)2346" -"Belarus",375,"Loev","(8~0)2347" -"Belarus",375,"Petrikov","(8~0)235" -"Belarus",375,"Mozur","(8~0)2351" -"Belarus",375,"Zhitkovichi","(8~0)2353" -"Belarus",375,"Elsk","(8~0)2354" -"Belarus",375,"Narovlya","(8~0)2355" -"Belarus",375,"Lelchitsu","(8~0)2356" -"Belarus",375,"Oktyabrski","(8~0)2357" -"Belgium",32,"Waver","010" -"Belgium",32,"Hasselt","011" -"Belgium",32,"Tongeren","012" -"Belgium",32,"Diest","013" -"Belgium",32,"Turnhout","014" -"Belgium",32,"Mechelen","015" -"Belgium",32,"Leuven","016" -"Belgium",32,"Borgworm","019" -"Belgium",32,"Brussel","02" -"Belgium",32,"Antwerpen","03" -"Belgium",32,"Luik","04" -"Belgium",32,"Brugge","050" -"Belgium",32,"Roeselare","051" -"Belgium",32,"Dendermonde","052" -"Belgium",32,"Aalst","053" -"Belgium",32,"Ninove","054" -"Belgium",32,"Ronse","055" -"Belgium",32,"Kortrijk","056" -"Belgium",32,"Ieper","057" -"Belgium",32,"Veurne","058" -"Belgium",32,"Oostende","059" -"Belgium",32,"Chimay","060" -"Belgium",32,"Libramont-Chevigny","061" -"Belgium",32,"Aarlen","063" -"Belgium",32,"La Louvière","064" -"Belgium",32,"Baudour","065" -"Belgium",32,"Nijvel","067" -"Belgium",32,"Aat","068" -"Belgium",32,"Doornik","069" -"Belgium",32,"Charleroi","071" -"Belgium",32,"Stavelot","080" -"Belgium",32,"Namen","081" -"Belgium",32,"Dinant","082" -"Belgium",32,"Ciney","083" -"Belgium",32,"Marche-en-Famenne","084" -"Belgium",32,"Hoei","085" -"Belgium",32,"Durbuy","086" -"Belgium",32,"Verviers","087" -"Belgium",32,"Genk","089" -"Belgium",32,"Gent","09" -"Belize",501,"Belize District",2 -"Belize",501,"Orange Walk District",3 -"Belize",501,"Corozal District",4 -"Belize",501,"Stann Creek District",5 -"Belize",501,"Toledo District",7 -"Belize",501,"Cayo District",8 -"Benin",229,"Ouémé",20 -"Benin",229,"Atlantique",21 -"Benin",229,"Collines",22 -"Benin",229,"Alibori",23 -"Bermuda",1,"Bermuda","(1+)441" -"Bhutan",975,"Thimphu",2 -"Bhutan",975,"Trongsa",3 -"Bhutan",975,"Trashigang",4 -"Bhutan",975,"Phuntsholing",5 -"Bhutan",975,"Gelephu",6 -"Bhutan",975,"S/Jongkhar",7 -"Bhutan",975,"Paro",8 -"Bolivia",591,"La Paz","02" -"Bolivia",591,"Santa Cruz","03" -"Bolivia",591,"Tarija","04" -"Bosnia and Herzegovina",387,"Middle Bosnia","030" -"Bosnia and Herzegovina",387,"Posavina","031" -"Bosnia and Herzegovina",387,"Zenica-Doboj","032" -"Bosnia and Herzegovina",387,"Sarajevo","033" -"Bosnia and Herzegovina",387,"Herzcg-Bosnia","034" -"Bosnia and Herzegovina",387,"Tuzla-Podrinjc","035" -"Bosnia and Herzegovina",387,"Herzegovina-Neretva","036" -"Bosnia and Herzegovina",387,"Una-Sana","037" -"Bosnia and Herzegovina",387,"Gorazde-Upper Drina","038" -"Bosnia and Herzegovina",387,"West Herzegovina","039" -"Bosnia and Herzegovina",387,"Distrik Brcko","049" -"Bosnia and Herzegovina",387,"Mrkonjic-Grad","050" -"Bosnia and Herzegovina",387,"Banja Luka","051" -"Bosnia and Herzegovina",387,"Prijedor","052" -"Bosnia and Herzegovina",387,"Doboj","053" -"Bosnia and Herzegovina",387,"Brcko","054" -"Bosnia and Herzegovina",387,"Bijeljina","055" -"Bosnia and Herzegovina",387,"Zvornik","056" -"Bosnia and Herzegovina",387,"Srpsko Sarajevo","057" -"Bosnia and Herzegovina",387,"Srbinje","058" -"Bosnia and Herzegovina",387,"Trebinje","059" -"Botswana",267,"Gaborone",3 -"Botswana",267,"Francistown",24 -"Botswana",267,"Selebi-Phikwe",26 -"Botswana",267,"Letlhakane",29 -"Botswana",267,"Outer Gaborone",31 -"Botswana",267,"Serowe",46 -"Botswana",267,"Mahalapye",47 -"Botswana",267,"Palapye",49 -"Botswana",267,"Ramotswa",53 -"Botswana",267,"Barolong",54 -"Botswana",267,"Mochudi",57 -"Botswana",267,"Jwaneng",58 -"Botswana",267,"Molepolole",59 -"Botswana",267,"Kasane",62 -"Botswana",267,"Gantsi",65 -"Botswana",267,"Maun",68 -"Brazil",55,"São Paulo- SP","011" -"Brazil",55,"Taubaté- SP","012" -"Brazil",55,"Santos- SP","013" -"Brazil",55,"Bauru- SP","014" -"Brazil",55,"Sorocaba- SP","015" -"Brazil",55,"Ribeirão Preto- SP","016" -"Brazil",55,"São José do Rio Preto- SP","017" -"Brazil",55,"Presidente Prudente- SP","018" -"Brazil",55,"Campinas- SP","019" -"Brazil",55,"Rio de Janeiro- RJ","021" -"Brazil",55,"Campos dos Goytacazes- RJ","022" -"Brazil",55,"Volta Redonda- RJ","024" -"Brazil",55,"Vitória- ES","027" -"Brazil",55,"Cachoeiro do Itapemirim- ES","028" -"Brazil",55,"Belo Horizonte- MG","031" -"Brazil",55,"Juiz de Fora- MG","032" -"Brazil",55,"Governador Valadares- MG","033" -"Brazil",55,"Uberlândia- MG","034" -"Brazil",55,"Varginha- MG","035" -"Brazil",55,"Divinópolis- MG","037" -"Brazil",55,"Montes Claros- MG","038" -"Brazil",55,"Curitiba- PR","041" -"Brazil",55,"Ponta Grossa- PR","042" -"Brazil",55,"Londrina- PR","043" -"Brazil",55,"Maringá- PR","044" -"Brazil",55,"Foz do Iguaçu- PR","045" -"Brazil",55,"Pato Branco- PR","046" -"Brazil",55,"Joinville- SC","047" -"Brazil",55,"Florianópolis- SC","048" -"Brazil",55,"Lages- SC","049" -"Brazil",55,"Porto Alegre- RS","051" -"Brazil",55,"Pelotas- RS","053" -"Brazil",55,"Caxias do Sul- RS","054" -"Brazil",55,"Santa Maria- RS","055" -"Brazil",55,"Brasília- DF","061" -"Brazil",55,"Goiânia- GO","062" -"Brazil",55,"Tocantins- TO","063" -"Brazil",55,"Rio Verde- GO","064" -"Brazil",55,"Cuiabá- MT","065" -"Brazil",55,"Rondonópolis- MT","066" -"Brazil",55,"Mato Grosso do Sul- MS","067" -"Brazil",55,"Acre- AC","068" -"Brazil",55,"Rondônia- RO","069" -"Brazil",55,"Salvador- BA","071" -"Brazil",55,"Ilhéus- BA","073" -"Brazil",55,"Jacobina- BA","074" -"Brazil",55,"Feira de Santana- BA","075" -"Brazil",55,"Vitória da Conquista- BA","077" -"Brazil",55,"Sergipe- SE","079" -"Brazil",55,"Recife- PE","081" -"Brazil",55,"Alagoas- AL","082" -"Brazil",55,"Paraíba- PB","083" -"Brazil",55,"Rio Grande do Norte- RN","084" -"Brazil",55,"Fortaleza- CE","085" -"Brazil",55,"Teresina- PI","086" -"Brazil",55,"Salgueiro- PE","087" -"Brazil",55,"Sobral- CE","088" -"Brazil",55,"Picos- PI","089" -"Brazil",55,"Belém- PA","091" -"Brazil",55,"Manaus- AM","092" -"Brazil",55,"Santarém- PA","093" -"Brazil",55,"Marabá- PA","094" -"Brazil",55,"Boa Vista- RR","095" -"Brazil",55,"Amapá state- AP","096" -"Brazil",55,"Tefé- AM","097" -"Brazil",55,"São Luís- MA","098" -"Brazil",55,"Imperatriz- MA","099" -"Brunei Darussalam",673,"Brunei / Muara",2 -"Brunei Darussalam",673,"Kuala Belait",3 -"Brunei Darussalam",673,"Tutong",4 -"Brunei Darussalam",673,"Temburong",5 -"Burkina Faso",226,"Western provinces",20 -"Burkina Faso",226,"Eastern provinces",40 -"Burkina Faso",226,"Centre provinces",50 -"Cambodia",855,"Phnom Penh","023" -"Cambodia",855,"Kandal","024" -"Cambodia",855,"Kampong Speu","025" -"Cambodia",855,"Kampong Chhnang","026" -"Cambodia",855,"Takeo","032" -"Cambodia",855,"Kampot","033" -"Cambodia",855,"Sihanouk Ville","034" -"Cambodia",855,"Koh Kong","035" -"Cambodia",855,"Kep","036" -"Cambodia",855,"Kampong Cham","042" -"Cambodia",855,"Neak Loeng","043" -"Cambodia",855,"Svay Rieng","044" -"Cambodia",855,"Pursat","052" -"Cambodia",855,"Battambong","053" -"Cambodia",855,"Banteay Meanchey","054" -"Cambodia",855,"Pailin","055" -"Cambodia",855,"Kampong Thom","062" -"Cambodia",855,"Siem Reap","063" -"Cambodia",855,"Preah Vihear","064" -"Cambodia",855,"Udar Meanchey","065" -"Cambodia",855,"Kratie","072" -"Cambodia",855,"Modolkiri","073" -"Cambodia",855,"Stung Treng","074" -"Cambodia",855,"Ratanakiri","075" -"Canada",1,"Manitoba","(1+)204" -"Canada",1,"British Columbia","(1+)250" -"Canada",1,"Greater Toronto Area","(1+)289" -"Canada",1,"Saskatchewan","(1+)306" -"Canada",1,"Southern Alberta (Calgary)","(1+)403" -"Canada",1,"Ontario (Toronto Metro)","(1+)416" -"Canada",1,"Québec (Québec City)","(1+)418" -"Canada",1,"Quebec","(1+)450" -"Canada",1,"New Brunswick","(1+)506" -"Canada",1,"Montreal","(1+)514" -"Canada",1,"Ontario","(1+)519" -"Canada",1,"British Columbia","(1+)604" -"Canada",1,"Ontario","(1+)613" -"Canada",1,"Toronto (Ontario)","(1+)647" -"Canada",1,"Ontario","(1+)705" -"Canada",1,"Newfoundland","(1+)709" -"Canada",1,"British Columbia","(1+)778" -"Canada",1,"Northern Alberta (Edmonton)","(1+)780" -"Canada",1,"Ontario","(1+)807" -"Canada",1,"Quebec","(1+)819" -"Canada",1,"Yukon & NW Territories.","(1+)867" -"Canada",1,"Nova Scotia- Prince Edward Island","(1+)902" -"Canada",1,"Greater Toronto Area","(1+)905" -"Canary Islands",34,"Santa Cruz de Tenerife",822 -"Canary Islands",34,"Las Palmas",828 -"Canary Islands",34,"Santa Cruz de Tenerife",922 -"Canary Islands",34,"Las Palmas",928 -"Cayman Islands",1,"Cayman Islands","(1+)345" -"Ceuta and Melilla",34,"Ceuta",856 -"Ceuta and Melilla",34,"Melilla",951 -"Ceuta and Melilla",34,"Melilla",952 -"Ceuta and Melilla",34,"Ceuta",956 -"Chad",235,"Batha",250 -"Chad",235,"Goudji",251 -"Chad",235,"Farcha",252 -"Chad",235,"N’Djaména",253 -"Chad",235,"Hadjer Lamis",254 -"Chad",235,"Moyen Chari",268 -"Chad",235,"Logone Oriental",269 -"Chile",56,"Santiago",2 -"Chile",56,"Valparaiso",32 -"Chile",56,"Quillota",33 -"Chile",56,"Los Andes",34 -"Chile",56,"San Antonio",35 -"Chile",56,"Concepción",41 -"Chile",56,"Chillán",42 -"Chile",56,"Los Angeles",43 -"Chile",56,"Temuco",45 -"Chile",56,"La Serena",51 -"Chile",56,"Copiapó",52 -"Chile",56,"Ovalle",53 -"Chile",56,"Antofagasta",55 -"Chile",56,"Iquique",57 -"Chile",56,"Arica",58 -"Chile",56,"Punta Arenas",61 -"Chile",56,"Valdivia",63 -"Chile",56,"Osorno",64 -"Chile",56,"Puerto Montt",65 -"Chile",56,"Coyhaique",67 -"Chile",56,"Puyuhuapi",68 -"Chile",56,"Talca",71 -"Chile",56,"Rancagua",72 -"Chile",56,"Linares",73 -"Chile",56,"Curicó",75 -"China",86,"Beijing- BJ","010" -"China",86,"Guangzhou- GD","020" -"China",86,"Shanghai- SH","021" -"China",86,"Tianjin- TJ","022" -"China",86,"Chongqing- CQ","023" -"China",86,"Shenyang- LN","024" -"China",86,"Nanjing- JS","025" -"China",86,"Wuhan- HB","027" -"China",86,"Chengdu- SC","028" -"China",86,"XiAn- SN","029" -"China",86,"Handan- HEB","0310" -"China",86,"Shijiazhuang- HEB","0311" -"China",86,"Baoding- HEB","0312" -"China",86,"Zhangjiakou- HEB","0313" -"China",86,"Chengde- HEB","0314" -"China",86,"Tangshan- HEB","0315" -"China",86,"Langfang- HEB","0316" -"China",86,"Cangzhou- HEB","0317" -"China",86,"Hengshui- HEB","0318" -"China",86,"Xingtai- HEB","0319" -"China",86,"Qinhuangdao- HEB","0335" -"China",86,"Shuozhou- SX","0349" -"China",86,"Xinzhou- SX","0350" -"China",86,"Taiyuan- SX","0351" -"China",86,"Datong- SX","0352" -"China",86,"Yangquan- SX","0353" -"China",86,"Yuci- SX","0354" -"China",86,"Changzhi- SX","0355" -"China",86,"Jincheng- SX","0356" -"China",86,"Linfen- SX","0357" -"China",86,"Lishi- SX","0358" -"China",86,"Yuncheng- SX","0359" -"China",86,"Shangqiu- HEN","0370" -"China",86,"Zhengzhou- HEN","0371" -"China",86,"Anyang- HEN","0372" -"China",86,"Xinxiang- HEN","0373" -"China",86,"Xuchang- HEN","0374" -"China",86,"Pingdingshan- HEN","0375" -"China",86,"Xinyang- HEN","0376" -"China",86,"Nanyang- HEN","0377" -"China",86,"Kaifeng- HEN","0378" -"China",86,"Luoyang- HEN","0379" -"China",86,"Jiaozuo- HEN","0391" -"China",86,"Hebi- HEN","0392" -"China",86,"Puyang- HEN","0393" -"China",86,"Zhoukou- HEN","0394" -"China",86,"Luohe- HEN","0395" -"China",86,"Zhumadian- HEN","0396" -"China",86,"Huangchuan- HEN","0397" -"China",86,"Sanmenxia- HEN","0398" -"China",86,"Tieling- LN","0410" -"China",86,"Dalian- LN","0411" -"China",86,"Anshan- LN","0412" -"China",86,"Fushun- LN","0413" -"China",86,"Benxi- LN","0414" -"China",86,"Dandong- LN","0415" -"China",86,"Jinzhou- LN","0416" -"China",86,"Yingkou- LN","0417" -"China",86,"Fuxin- LN","0418" -"China",86,"Liaoyang- LN","0419" -"China",86,"Chaoyang- LN","0421" -"China",86,"Panjin- LN","0427" -"China",86,"Huludao- LN","0429" -"China",86,"Changchun- JL","0431" -"China",86,"Jilin- JL","0432" -"China",86,"Yanji- JL","0433" -"China",86,"Siping- JL","0434" -"China",86,"Tonghua- JL","0435" -"China",86,"Baicheng- JL","0436" -"China",86,"Liaoyuan- JL","0437" -"China",86,"Songyuan- JL","0438" -"China",86,"Baishan- JL","0439" -"China",86,"Hunchun- JL","0440" -"China",86,"Meihekou- JL","0448" -"China",86,"Harbin- HL","0451" -"China",86,"Qiqihar- HL","0452" -"China",86,"Mudanjiang- HL","0453" -"China",86,"Jiamusi- HL","0454" -"China",86,"Suihua- HL","0455" -"China",86,"Heihe- HL","0456" -"China",86,"Jiagedaqi- HL","0457" -"China",86,"Yichun- HL","0458" -"China",86,"Daqing- HL","0459" -"China",86,"Qitaihe- HL","0464" -"China",86,"Jixi- HL","0467" -"China",86,"Hegang- HL","0468" -"China",86,"Shuangyashan- HL","0469" -"China",86,"Hailaer- NM","0470" -"China",86,"Huhehaote- NM","0471" -"China",86,"Baotou- NM","0472" -"China",86,"Wuhai- NM","0473" -"China",86,"Jining- NM","0474" -"China",86,"Tongliao- NM","0475" -"China",86,"Chifeng- NM","0476" -"China",86,"Dongsheng- NM","0477" -"China",86,"Linhe- NM","0478" -"China",86,"Xilinhaote- NM","0479" -"China",86,"Wulanhaote- NM","0482" -"China",86,"Alashanzuoqi- NM","0483" -"China",86,"Wuxi- JS","0510" -"China",86,"Zhenjiang- JS","0511" -"China",86,"Suzhou- JS","0512" -"China",86,"Nantong- JS","0513" -"China",86,"Yangzhou- JS","0514" -"China",86,"Yancheng- JS","0515" -"China",86,"Xuzhou- JS","0516" -"China",86,"HuaiYin- JS","0517" -"China",86,"Lianyungang- JS","0518" -"China",86,"Changzhou- JS","0519" -"China",86,"Taizhou- JS","0523" -"China",86,"Suqian- JS","0527" -"China",86,"Heze- SD","0530" -"China",86,"Jinan- SD","0531" -"China",86,"Qingdao- SD","0532" -"China",86,"Zibo- SD","0533" -"China",86,"Dezhou- SD","0534" -"China",86,"Yantai- SD","0535" -"China",86,"Weifang- SD","0536" -"China",86,"Jining- SD","0537" -"China",86,"TaiAn- SD","0538" -"China",86,"Linyi- SD","0539" -"China",86,"Binzhou- SD","0543" -"China",86,"Dongying- SD","0546" -"China",86,"Chuzhou- AH","0550" -"China",86,"Hefei- AH","0551" -"China",86,"Bengbu- AH","0552" -"China",86,"Wuhu- AH","0553" -"China",86,"Huainan- AH","0554" -"China",86,"MaAnshan- AH","0555" -"China",86,"Anqing- AH","0556" -"China",86,"Suzhou- AH","0557" -"China",86,"Fuyang- AH","0558" -"China",86,"Huangshan- AH","0559" -"China",86,"Huaibei- AH","0561" -"China",86,"Tongling- AH","0562" -"China",86,"Xuancheng- AH","0563" -"China",86,"LiuAn- AH","0564" -"China",86,"Chaohu- AH","0565" -"China",86,"Chizhou- AH","0566" -"China",86,"Quzhou- ZJ","0570" -"China",86,"Hangzhou- ZJ","0571" -"China",86,"Huzhou- ZJ","0572" -"China",86,"Jiaxing- ZJ","0573" -"China",86,"Ningbo- ZJ","0574" -"China",86,"Shaoxing- ZJ","0575" -"China",86,"Taizhou- ZJ","0576" -"China",86,"Wenzhou- ZJ","0577" -"China",86,"Lishui- ZJ","0578" -"China",86,"Jinhua- ZJ","0579" -"China",86,"Zhoushan- ZJ","0580" -"China",86,"Fuzhou- FJ","0591" -"China",86,"Xiamen- FJ","0592" -"China",86,"Ningde- FJ","0593" -"China",86,"Putian- FJ","0594" -"China",86,"Quanzhou- FJ","0595" -"China",86,"Zhangzhou- FJ","0596" -"China",86,"Longyan- FJ","0597" -"China",86,"Sanming- FJ","0598" -"China",86,"Nanping- FJ","0599" -"China",86,"Weihai- SD","0631" -"China",86,"Zaozhuang- SD","0632" -"China",86,"Rizhao- SD","0633" -"China",86,"Laiwu- SD","0634" -"China",86,"Liaocheng- SD","0635" -"China",86,"Shanwei- GD","0660" -"China",86,"Yangjiang- GD","0662" -"China",86,"Jieyang- GD","0663" -"China",86,"Maoming- GD","0668" -"China",86,"Jinghong- YN","0691" -"China",86,"Luxi- YN","0692" -"China",86,"Yingtan- JX","0701" -"China",86,"Xiangfan- HB","0710" -"China",86,"Ezhou- HB","0711" -"China",86,"Xiaogan- HB","0712" -"China",86,"Huanggang- HB","0713" -"China",86,"Huangshi- HB","0714" -"China",86,"Xianning- HB","0715" -"China",86,"Jingzhou- HB","0716" -"China",86,"Yichang- HB","0717" -"China",86,"Enshi- HB","0718" -"China",86,"Shiyan- HB","0719" -"China",86,"Suizhou- HB","0722" -"China",86,"Jingmen- HB","0724" -"China",86,"Xiantao- HB","0728" -"China",86,"Yueyang- HN","0730" -"China",86,"Changsha- HN","0731" -"China",86,"Xiangtan- HN","0732" -"China",86,"Zhuzhou- HN","0733" -"China",86,"Hengyang- HN","0734" -"China",86,"Chenzhou- HN","0735" -"China",86,"Changde- HN","0736" -"China",86,"Yiyang- HN","0737" -"China",86,"Loudi- HN","0738" -"China",86,"Shaoyang- HN","0739" -"China",86,"Jishou- HN","0743" -"China",86,"Zhangjiajie- HN","0744" -"China",86,"Huaihua- HN","0745" -"China",86,"Yongzhou- HN","0746" -"China",86,"Jiangmen- GD","0750" -"China",86,"Shaoguan- GD","0751" -"China",86,"Huizhou- GD","0752" -"China",86,"Meizhou- GD","0753" -"China",86,"Chaoyang- GD","0754" -"China",86,"Shenzhen- GD","0755" -"China",86,"Zhuhai- GD","0756" -"China",86,"Foshan- GD","0757" -"China",86,"Zhaoqing- GD","0758" -"China",86,"Zhanjiang- GD","0759" -"China",86,"Zhongshan- GD","0760" -"China",86,"Heyuan- GD","0762" -"China",86,"Qingyuan- GD","0763" -"China",86,"Yunfu- GD","0766" -"China",86,"Chaozhou- GD","0768" -"China",86,"Dongguan- GD","0769" -"China",86,"Fangchenggang- GX","0770" -"China",86,"Nanning- GX","0771" -"China",86,"Liuzhou- GX","0772" -"China",86,"Guilin- GX","0773" -"China",86,"Wuzhou- GX","0774" -"China",86,"Yulin- GX","0775" -"China",86,"Baise- GX","0776" -"China",86,"Qinzhou- GX","0777" -"China",86,"Hechi- GX","0778" -"China",86,"Beihai- GX","0779" -"China",86,"Xinyu- JX","0790" -"China",86,"Nanchang- JX","0791" -"China",86,"Jiujiang- JX","0792" -"China",86,"Shangrao- JX","0793" -"China",86,"Fuzhou- JX","0794" -"China",86,"Yichun- JX","0795" -"China",86,"JiAn- JX","0796" -"China",86,"Ganzhou- JX","0797" -"China",86,"Jingdezhen- JX","0798" -"China",86,"Pingxiang- JX","0799" -"China",86,"Zhongba- XZ","08029" -"China",86,"Pulan- XZ","08060" -"China",86,"Jiali- XZ","08063" -"China",86,"Nierong- XZ","08065" -"China",86,"Bange- XZ","08067" -"China",86,"Shenzha- XZ","08068" -"China",86,"Shuanghu- XZ","08070" -"China",86,"Zhada- XZ","08071" -"China",86,"Suoxian- XZ","08078" -"China",86,"Nima- XZ","08081" -"China",86,"Panzhihua- SC","0812" -"China",86,"Zigong- SC","0813" -"China",86,"Mianyang- SC","0816" -"China",86,"Nanchong- SC","0817" -"China",86,"Dazhou- SC","0818" -"China",86,"Suining- SC","0825" -"China",86,"GuangAn- SC","0826" -"China",86,"Bazhong- SC","0827" -"China",86,"Luzhou- SC","0830" -"China",86,"Yibin- SC","0831" -"China",86,"Neijiang- SC","0832" -"China",86,"Leshan- SC","0833" -"China",86,"Xichang- SC","0834" -"China",86,"YaAn- SC","0835" -"China",86,"Kangding- SC","0836" -"China",86,"MaErkang- SC","0837" -"China",86,"Deyang- SC","0838" -"China",86,"Guangyuan- SC","0839" -"China",86,"Guiyang- GZ","0851" -"China",86,"Zunyi- GZ","0852" -"China",86,"Anshun- GZ","0853" -"China",86,"Duyun- GZ","0854" -"China",86,"Kaili- GZ","0855" -"China",86,"Tongren- GZ","0856" -"China",86,"Bijie- GZ","0857" -"China",86,"Liupanshui- GZ","0858" -"China",86,"Xingyi- GZ","0859" -"China",86,"Zhaotong- YN","0870" -"China",86,"Kunming- YN","0871" -"China",86,"Dali- YN","0872" -"China",86,"Gejiu- YN","0873" -"China",86,"Qujing- YN","0874" -"China",86,"Baoshan- YN","0875" -"China",86,"Wenshan- YN","0876" -"China",86,"Yuxi- YN","0877" -"China",86,"Chuxiong- YN","0878" -"China",86,"Simao- YN","0879" -"China",86,"Lincang- YN","0883" -"China",86,"Liuku- YN","0886" -"China",86,"Zhongdian- YN","0887" -"China",86,"Lijiang- YN","0888" -"China",86,"Lhasa- XZ","0891" -"China",86,"Rikaze- XZ","0892" -"China",86,"Naidong- XZ","0893" -"China",86,"Linzhi- XZ","0894" -"China",86,"Changdu- XZ","0895" -"China",86,"Naqu- XZ","0896" -"China",86,"GeEr- XZ","0897" -"China",86,"Haikou- HQ","0898" -"China",86,"Tacheng- XJ","0901" -"China",86,"Hami- XJ","0902" -"China",86,"Hetian- XJ","0903" -"China",86,"Aletai- XJ","0906" -"China",86,"Atushi- XJ","0908" -"China",86,"Bole- XJ","0909" -"China",86,"Xianyang- SN","0910" -"China",86,"YanAn- SN","0911" -"China",86,"Yulin- SN","0912" -"China",86,"Weinan- SN","0913" -"China",86,"Shangzhou- SN","0914" -"China",86,"Ankang- SN","0915" -"China",86,"Hanzhong- SN","0916" -"China",86,"Baoji- SN","0917" -"China",86,"Tongchuan- SN","0919" -"China",86,"Linxia- GS","0930" -"China",86,"Lanzhou- GS","0931" -"China",86,"Dingxi- GS","0932" -"China",86,"Pingliang- GS","0933" -"China",86,"Xifeng- GS","0934" -"China",86,"Jinchang- GS","0935" -"China",86,"Zhangye- GS","0936" -"China",86,"Jiuquan- GS","0937" -"China",86,"Tianshui- GS","0938" -"China",86,"Wudu- GS","0939" -"China",86,"Hezuo- GS","0941" -"China",86,"Baiyin- GS","0943" -"China",86,"Yinchuan- NX","0951" -"China",86,"Shizuishan- NX","0952" -"China",86,"Wuzhong- NX","0953" -"China",86,"Guyuan- NX","0954" -"China",86,"Haiyan- QH","0970" -"China",86,"Xining- QH","0971" -"China",86,"PingAn- QH","0972" -"China",86,"Tongren- QH","0973" -"China",86,"Gonghe- QH","0974" -"China",86,"Maqin- QH","0975" -"China",86,"Yushu- QH","0976" -"China",86,"Delingha- QH","0977" -"China",86,"GeErmu- QH","0979" -"China",86,"Kalamayi- XJ","0990" -"China",86,"Urumchi- XJ","0991" -"China",86,"Kuitun- XJ","0992" -"China",86,"Shihezi- XJ","0993" -"China",86,"Changji- XJ","0994" -"China",86,"Tulufan- XJ","0995" -"China",86,"KuErle- XJ","0996" -"China",86,"Akesu- XJ","0997" -"China",86,"Kashi- XJ","0998" -"China",86,"Yining- XJ","0999" -"Colombia",57,"Bogotá","(0X)1" -"Colombia",57,"Pasto","(0X)2" -"Colombia",57,"Medellín","(0X)4" -"Colombia",57,"Cartagena","(0X)5" -"Colombia",57,"Armenia","(0X)6" -"Colombia",57,"Cucuta","(0X)7" -"Colombia",57,"Villavicencio","(0X)8" -"Comoros",269,"Grande Comore Island",7 -"Comoros",269,"Anjouan Island",71 -"Comoros",269,"Moheli Island",72 -"Congo",242,"Cuvette",21 -"Congo",242,"Sangha",22 -"Congo",242,"Pool",23 -"Congo",242,"Plateaux",24 -"Congo",242,"Niari",25 -"Congo",242,"Brazzaville",28 -"Congo",242,"Pointe-Noire",29 -"Congo- Democratic Republic of the",243,"Kinshasa","01" -"Congo- Democratic Republic of the",243,"Lubumbashi","02" -"Congo- Democratic Republic of the",243,"Bandundu","03" -"Congo- Democratic Republic of the",243,"Province Orientale","05" -"Congo- Democratic Republic of the",243,"Kivu","06" -"Cook Islands",682,"Rarotonga","02" -"Cook Islands",682,"Aitutaki","031" -"Cook Islands",682,"Aitutaki","032" -"Cook Islands",682,"Atiu","033" -"Cook Islands",682,"Mangaia","034" -"Cook Islands",682,"Mauke","035" -"Cook Islands",682,"Mitiaro","036" -"Cook Islands",682,"Palmerston","037" -"Cook Islands",682,"Pukapuka","041" -"Cook Islands",682,"Penrhyn","042" -"Cook Islands",682,"Manihiki","043" -"Cook Islands",682,"Rakahanga","044" -"Cook Islands",682,"Nassau","045" -"Côte D'Ivoire",225,"Plateau",20 -"Côte D'Ivoire",225,"Abidjan",21 -"Côte D'Ivoire",225,"Cocody",22 -"Côte D'Ivoire",225,"Banco",23 -"Côte D'Ivoire",225,"Abobo",24 -"Côte D'Ivoire",225,"Yamoussoukro",30 -"Côte D'Ivoire",225,"Bouaké",31 -"Côte D'Ivoire",225,"Daloa",32 -"Côte D'Ivoire",225,"Man",33 -"Côte D'Ivoire",225,"San Pedro",34 -"Côte D'Ivoire",225,"Abengourou",35 -"Côte D'Ivoire",225,"Korhogo",36 -"Croatia",385,"Zagreb","01" -"Croatia",385,"Dubrovnik","020" -"Croatia",385,"Split","021" -"Croatia",385,"Šibenik","022" -"Croatia",385,"Zadar","023" -"Croatia",385,"Osijek","031" -"Croatia",385,"Vinkovci","032" -"Croatia",385,"Virovitica","033" -"Croatia",385,"Požega","034" -"Croatia",385,"Slavonski Brod","035" -"Croatia",385,"Cakovec","040" -"Croatia",385,"Varaždin","042" -"Croatia",385,"Bjelovar","043" -"Croatia",385,"Sisak","044" -"Croatia",385,"Karlovac","047" -"Croatia",385,"Koprivnica","048" -"Croatia",385,"Krapina","049" -"Croatia",385,"Rijeka","051" -"Croatia",385,"Pazin","052" -"Croatia",385,"Gospic","053" -"Cuba",53,"Guantánamo","021" -"Cuba",53,"Santiago De Cuba","022" -"Cuba",53,"Santiago De Cuba","0225" -"Cuba",53,"Granma","023" -"Cuba",53,"Holguin","024" -"Cuba",53,"Las Tunas","031" -"Cuba",53,"Camaguey","032" -"Cuba",53,"Ciego Avila","033" -"Cuba",53,"Ciego Avila","0335" -"Cuba",53,"Ciego Avila","0338" -"Cuba",53,"Sancti Spiritus","041" -"Cuba",53,"Sancti Spiritus","0416" -"Cuba",53,"Sancti Spiritus","0418" -"Cuba",53,"Sancti Spiritus","0419" -"Cuba",53,"Villa Clara","042" -"Cuba",53,"Cienfuegos","043" -"Cuba",53,"Cienfuegos","0432" -"Cuba",53,"Cienfuegos","0433" -"Cuba",53,"Cienfuegos","0434" -"Cuba",53,"Matanzas","045" -"Cuba",53,"Isla De La Juventud","046" -"Cuba",53,"Habana","062" -"Cuba",53,"Habana","063" -"Cuba",53,"Habana","064" -"Cuba",53,"Habana","0650" -"Cuba",53,"Habana","066" -"Cuba",53,"Habana","067" -"Cuba",53,"Habana","0680" -"Cuba",53,"Habana","0686" -"Cuba",53,"Habana","0692" -"Cuba",53,"Habana","06929" -"Cuba",53,"Ciudad Habana","07" -"Cuba",53,"Pinar Rio","08" -"Cuba",53,"Pinar Rio","082" -"Cuba",53,"Pinar Rio","084" -"Cuba",53,"Pinar Rio","085" -"Cuba",53,"Pinar Rio","086" -"Cuba",53,"Guantánamo Bay","099" -"Cyprus- Republic of",357,"Nicosia",22 -"Cyprus- Republic of",357,"Famagusta",23 -"Cyprus- Republic of",357,"Larnaca",24 -"Cyprus- Republic of",357,"Limassol",25 -"Cyprus- Republic of",357,"Paphos",26 -"Cyprus- Republic of",357,"Kyrenia",27 -"Cyprus- Turkish Republic of Northern",90,"Lefkosia (Nicosia)","0392" -"Czech Republic",420,"Praha",2 -"Czech Republic",420,"Stredoceský",31 -"Czech Republic",420,"Stredoceský",32 -"Czech Republic",420,"Karlovarský",35 -"Czech Republic",420,"Plzenský",37 -"Czech Republic",420,"Jihoceský",38 -"Czech Republic",420,"Jihoceský",39 -"Czech Republic",420,"Ústecký",41 -"Czech Republic",420,"Pardubický",46 -"Czech Republic",420,"Ústecký",47 -"Czech Republic",420,"Liberecký",48 -"Czech Republic",420,"Krilovéhradecký",49 -"Czech Republic",420,"Jihomoravský",51 -"Czech Republic",420,"Jihomoravský",53 -"Czech Republic",420,"Jihomoravský",54 -"Czech Republic",420,"Moravskoslezský",55 -"Czech Republic",420,"Vysocina",56 -"Czech Republic",420,"Zlínský",57 -"Czech Republic",420,"Olomoucký",58 -"Czech Republic",420,"Moravskoslezský",59 -"Dominica",1,"Dominica","(1+)767" -"Dominican Republic",1,"Dominican Republic","(1+)809" -"Dominican Republic",1,"Dominican Republic","(1+)829" -"Ecuador",593,"Pichincha (Quito)","02" -"Ecuador",593,"Bolívar","03" -"Ecuador",593,"Guayas (Guayaquil)","04" -"Ecuador",593,"Los Rios","05" -"Ecuador",593,"Carchi","06" -"Ecuador",593,"Azuay","07" -"Egypt",20,"Banha","013" -"Egypt",20,"10th of Ramadan","015" -"Egypt",20,"Cairo","02" -"Egypt",20,"Alexandria","03" -"Egypt",20,"Tanta","040" -"Egypt",20,"Damanhohr","045" -"Egypt",20,"Marsa Matrrouh","046" -"Egypt",20,"Kafer El sheik","047" -"Egypt",20,"Sadat","048" -"Egypt",20,"Mansoura","050" -"Egypt",20,"Zagazig","055" -"Egypt",20,"Spare","056" -"Egypt",20,"Damiette","057" -"Egypt",20,"Suez","062" -"Egypt",20,"ATM Service","063" -"Egypt",20,"Ismailia","064" -"Egypt",20,"Red Sea","065" -"Egypt",20,"Port Said","066" -"Egypt",20,"El arish","068" -"Egypt",20,"El tour","069" -"Egypt",20,"Beni Suef","082" -"Egypt",20,"Fayoum","084" -"Egypt",20,"Minia","086" -"Egypt",20,"Assiout","088" -"Egypt",20,"Wadi El gedid (Oases)","092" -"Egypt",20,"Sohag","093" -"Egypt",20,"Luxor","095" -"Egypt",20,"Qunea","096" -"Egypt",20,"Aswan","097" -"El Salvador",503,"Metropolitan area",20 -"El Salvador",503,"Metropolitan area",21 -"El Salvador",503,"Metropolitan area",22 -"El Salvador",503,"Central area",23 -"El Salvador",503,"Western area",24 -"El Salvador",503,"Metropolitan area",25 -"El Salvador",503,"Eastern area",26 -"El Salvador",503,"Eastern area",27 -"El Salvador",503,"Western area",28 -"El Salvador",503,"Central area",29 -"Equatorial Guinea",240,"Malabo",7 -"Equatorial Guinea",240,"Bata",8 -"Equatorial Guinea",240,"Bioko Island",9 -"Eritrea",291,"Eritrea","01" -"Estonia",372,"Lääne-Virumaa",32 -"Estonia",372,"Ida-Virumaa",33 -"Estonia",372,"Ida-Virumaa",35 -"Estonia",372,"Järvamaa",38 -"Estonia",372,"Ida-Virumaa county",39 -"Estonia",372,"Viljandimaa",43 -"Estonia",372,"Pärnumaa",44 -"Estonia",372,"Saaremaa",45 -"Estonia",372,"Hiiumaa",46 -"Estonia",372,"Läänemaa",47 -"Estonia",372,"Raplamaa",48 -"Estonia",372,"Tallinn",60 -"Estonia",372,"Tallinn",61 -"Estonia",372,"Tallinn",62 -"Estonia",372,"Tallinn",63 -"Estonia",372,"Tallinn",64 -"Estonia",372,"Tallinn",65 -"Estonia",372,"Tallinn",66 -"Estonia",372,"Tallinn",67 -"Estonia",372,"Tallinn",68 -"Estonia",372,"Tallinn",69 -"Estonia",372,"Tallinn",71 -"Estonia",372,"Tartumaa",73 -"Estonia",372,"Tartumaa",74 -"Estonia",372,"Tartumaa",75 -"Estonia",372,"Valgamaa",76 -"Estonia",372,"Jõgevamaa",77 -"Estonia",372,"Võrumaa",78 -"Estonia",372,"Põlvamaa",79 -"Ethiopia",251,"Addis Ababa","011" -"Ethiopia",251,"Nazareth","022" -"Ethiopia",251,"Harar","025" -"Ethiopia",251,"Dessie","033" -"Ethiopia",251,"Mekele","034" -"Ethiopia",251,"Shashemene","046" -"Ethiopia",251,"Jimma","047" -"Ethiopia",251,"West Ethiopia","057" -"Ethiopia",251,"Gonder","058" -"Fiji",679,"Suva",32 -"Fiji",679,"Suva",33 -"Fiji",679,"Suva",34 -"Fiji",679,"Sigatoka",65 -"Fiji",679,"Sigatoka",66 -"Fiji",679,"Sigatoka",67 -"Fiji",679,"Labasa",88 -"Finland",358,"Pohjois-Karjala","013" -"Finland",358,"Keski-Suomi","014" -"Finland",358,"Mikkeli","015" -"Finland",358,"Lappi","016" -"Finland",358,"Kuopio","017" -"Finland",358,"Maarianhamina","018" -"Finland",358,"Uusimaa II","019" -"Finland",358,"Turku ja Pori","02" -"Finland",358,"Häme","03" -"Finland",358,"Kymi","05" -"Finland",358,"Vaasa","06" -"Finland",358,"Oulu","08" -"Finland",358,"Uusimaa I","09" -"France",33,"Paris Region","01" -"France",33,"Île-de-France","0170" -"France",33,"Île-de-France","0172" -"France",33,"Île-de-France","0173" -"France",33,"Île-de-France","0174" -"France",33,"Île-de-France","0175" -"France",33,"Île-de-France","0176" -"France",33,"Northwest France","02" -"France",33,"Centre","0234" -"France",33,"Centre","0236" -"France",33,"Basse Normandie","0250" -"France",33,"Pays de la Loire","0253" -"France",33,"Pays de la Loire","0272" -"France",33,"Haute Normandie","0276" -"France",33,"Bretagne","0290" -"France",33,"Northeast France","03" -"France",33,"Bourgogne","0345" -"France",33,"Champagne - Ardenne","0351" -"France",33,"Lorraine","0354" -"France",33,"Nord Pas-de-Calais","0359" -"France",33,"Picardie","0360" -"France",33,"Nord Pas-de-Calais","0361" -"France",33,"Nord Pas-de-Calais","0362" -"France",33,"Franche Comtè","0363" -"France",33,"Alsace","0369" -"France",33,"Southeast France and Corsica","04" -"France",33,"Corsica","0420" -"France",33,"Ardèche- Ain- Drôme- Loire- and Rhône","0426" -"France",33,"Ardèche- Ain- Drôme- Loire- and Rhône","0427" -"France",33,"Languedoc Roussillon","0434" -"France",33,"Isère- Savoie- or Haute-Savoie","0456" -"France",33,"Auvergne","0463" -"France",33,"Provence","0486" -"France",33,"Provence","0488" -"France",33,"Côte d'Azur","0489" -"France",33,"Southwest France","05" -"France",33,"Poitou Charente","0516" -"France",33,"Aquitaine","0540" -"France",33,"Aquitaine","0547" -"France",33,"Midi Pyrènèes","0567" -"France",33,"Midi Pyrènèes","0581" -"France",33,"Limousin","0587" -"French Guiana",594,"French Guiana",594 -"Gabon",241,"Libreville","01" -"Gabon",241,"Outside Libreville","02" -"Gambia",220,"Banjul",42 -"Gambia",220,"Serekunda",43 -"Gambia",220,"Sanyang",441 -"Gambia",220,"Kotu",446 -"Gambia",220,"Yundum",447 -"Gambia",220,"Bakau",449 -"Georgia",995,"Sukhumi","(8)122" -"Georgia",995,"EWSD","(8)220" -"Georgia",995,"Batumi","(8)222" -"Georgia",995,"Kobuleti","(8)236" -"Georgia",995,"Grigoleti","(8)310" -"Georgia",995,"Samtredia","(8)311" -"Georgia",995,"Abasha","(8)312" -"Georgia",995,"Senaki","(8)313" -"Georgia",995,"Zugdidi","(8)315" -"Georgia",995,"Calenjixa","(8)316" -"Georgia",995,"Chkhorocku","(8)317" -"Georgia",995,"Martvili","(8)318" -"Georgia",995,"Tbilisi","(8)32" -"Georgia",995,"Kutaisi","(8)331" -"Georgia",995,"Vani","(8)332" -"Georgia",995,"kharagauli","(8)333" -"Georgia",995,"Bagdati","(8)334" -"Georgia",995,"Lagodekhi","(8)335" -"Georgia",995,"Lentekhi","(8)337" -"Georgia",995,"Ambrolauri","(8)339" -"Georgia",995,"Tskaltubo","(8)340" -"Georgia",995,"Tskhinvall","(8)341" -"Georgia",995,"Akhalgori","(8)342" -"Georgia",995,"Dushetl","(8)344" -"Georgia",995,"Kazbegi","(8)345" -"Georgia",995,"Dusheti","(8)346" -"Georgia",995,"Tianeti","(8)348" -"Georgia",995,"Akhmeta","(8)349" -"Georgia",995,"Telavi","(8)350" -"Georgia",995,"Sagarejo","(8)351" -"Georgia",995,"Kvareli","(8)352" -"Georgia",995,"Gurjaani","(8)353" -"Georgia",995,"Lagodekhi","(8)354" -"Georgia",995,"Signagi","(8)355" -"Georgia",995,"Dedoplls Tskaro","(8)356" -"Georgia",995,"Marneuli","(8)357" -"Georgia",995,"Bolnisi","(8)358" -"Georgia",995,"Tetri Tskaro","(8)359" -"Georgia",995,"Dmanisi","(8)360" -"Georgia",995,"Ninotsminda","(8)361" -"Georgia",995,"Akhalkalaki","(8)362" -"Georgia",995,"Tsalka","(8)363" -"Georgia",995,"Aspindza","(8)364" -"Georgia",995,"Akhaltsikhe","(8)365" -"Georgia",995,"Adigeni","(8)366" -"Georgia",995,"Borjomi","(8)367" -"Georgia",995,"Khashuri","(8)368" -"Georgia",995,"Kareli","(8)369" -"Georgia",995,"Gori","(8)370" -"Georgia",995,"Kaspi","(8)371" -"Georgia",995,"Gardabani","(8)372" -"Georgia",995,"Mckheta","(8)373" -"Georgia",995,"Chiatura","(8)379" -"Georgia",995,"Terdjola","(8)391" -"Georgia",995,"Zestafoni","(8)392" -"Georgia",995,"Poti","(8)393" -"Georgia",995,"Khoni","(8)395" -"Georgia",995,"Ozurgeti","(8)396" -"Georgia",995,"Tkibuli","(8)397" -"Germany",49,"Essen","0201" -"Germany",49,"Wuppertal","0202" -"Germany",49,"Duisburg","0203" -"Germany",49,"Bottrop","02041" -"Germany",49,"Gladbeck","02043" -"Germany",49,"Bottrop-Kirchhellen","02045" -"Germany",49,"Velbert","02051" -"Germany",49,"Velbert-Langenberg","02052" -"Germany",49,"Velbert-Neviges","02053" -"Germany",49,"Essen-Kettwig","02054" -"Germany",49,"Heiligenhaus","02056" -"Germany",49,"Wülfrath","02058" -"Germany",49,"Dinslaken","02064" -"Germany",49,"Duisburg-Rheinhausen","02065" -"Germany",49,"Duisburg-Homberg","02066" -"Germany",49,"Oberhausen Rheinl","0208" -"Germany",49,"Gelsenkirchen","0209" -"Germany",49,"Ratingen","02102" -"Germany",49,"Hilden","02103" -"Germany",49,"Mettmann","02104" -"Germany",49,"Düsseldorf","0211" -"Germany",49,"Solingen","0212" -"Germany",49,"Haan Rheinl","02129" -"Germany",49,"Neuss","02131" -"Germany",49,"Meerbusch-Büderich","02132" -"Germany",49,"Dormagen","02133" -"Germany",49,"Neuss-Norf","02137" -"Germany",49,"Leverkusen","0214" -"Germany",49,"Meerbusch-Lank","02150" -"Germany",49,"Krefeld","02151" -"Germany",49,"Kempen","02152" -"Germany",49,"Nettetal-Lobberich","02153" -"Germany",49,"Willich","02154" -"Germany",49,"Willich-Anrath","02156" -"Germany",49,"Nettetal-Kaldenkirchen","02157" -"Germany",49,"Grefrath b Krefeld","02158" -"Germany",49,"Meerbusch-Osterath","02159" -"Germany",49,"Mönchengladbach","02161" -"Germany",49,"Viersen","02162" -"Germany",49,"Schwalmtal Niederrhein","02163" -"Germany",49,"Jüchen-Otzenrath","02164" -"Germany",49,"Jüchen","02165" -"Germany",49,"Mönchengladbach-Rheydt","02166" -"Germany",49,"Leverkusen-Opladen","02171" -"Germany",49,"Langenfeld Rheinland","02173" -"Germany",49,"Burscheid Rheinl","02174" -"Germany",49,"Leichlingen Rheinland","02175" -"Germany",49,"Grevenbroich","02181" -"Germany",49,"Grevenbroich-Kapellen","02182" -"Germany",49,"Rommerskirchen","02183" -"Germany",49,"Remscheid","02191" -"Germany",49,"Hückeswagen","02192" -"Germany",49,"Dabringhausen","02193" -"Germany",49,"Radevormwald","02195" -"Germany",49,"Wermelskirchen","02196" -"Germany",49,"Bergisch Gladbach","02202" -"Germany",49,"Köln-Porz","02203" -"Germany",49,"Bensberg","02204" -"Germany",49,"Rösrath","02205" -"Germany",49,"Overath","02206" -"Germany",49,"Kürten-Dürscheid","02207" -"Germany",49,"Niederkassel","02208" -"Germany",49,"Köln","0221" -"Germany",49,"Bornheim Rheinl","02222" -"Germany",49,"Königswinter","02223" -"Germany",49,"Bad Honnef","02224" -"Germany",49,"Meckenheim Rheinl","02225" -"Germany",49,"Rheinbach","02226" -"Germany",49,"Bornheim-Merten","02227" -"Germany",49,"Remagen-Rolandseck","02228" -"Germany",49,"Brühl Rheinl","02232" -"Germany",49,"Hürth Rheinl","02233" -"Germany",49,"Frechen","02234" -"Germany",49,"Erftstadt","02235" -"Germany",49,"Wesseling Rheinl","02236" -"Germany",49,"Kerpen Rheinl-Türnich","02237" -"Germany",49,"Pulheim","02238" -"Germany",49,"Siegburg","02241" -"Germany",49,"Hennef Sieg","02242" -"Germany",49,"Eitorf","02243" -"Germany",49,"Königswinter-Oberpleis","02244" -"Germany",49,"Much","02245" -"Germany",49,"Lohmar","02246" -"Germany",49,"Neunkirchen-Seelscheid","02247" -"Germany",49,"Hennef-Uckerath","02248" -"Germany",49,"Euskirchen","02251" -"Germany",49,"Zülpich","02252" -"Germany",49,"Bad Münstereifel","02253" -"Germany",49,"Weilerswist","02254" -"Germany",49,"Euskirchen-Flamersheim","02255" -"Germany",49,"Mechernich-Satzvey","02256" -"Germany",49,"Reckerscheid","02257" -"Germany",49,"Gummersbach","02261" -"Germany",49,"Wiehl","02262" -"Germany",49,"Engelskirchen","02263" -"Germany",49,"Marienheide","02264" -"Germany",49,"Reichshof-Eckenhagen","02265" -"Germany",49,"Lindlar","02266" -"Germany",49,"Wipperfürth","02267" -"Germany",49,"Kürten","02268" -"Germany",49,"Kierspe-Rönsahl","02269" -"Germany",49,"Bergheim Erft","02271" -"Germany",49,"Bedburg Erft","02272" -"Germany",49,"Kerpen-Horrem","02273" -"Germany",49,"Elsdorf Rheinl","02274" -"Germany",49,"Kerpen-Buir","02275" -"Germany",49,"Bonn","0228" -"Germany",49,"Waldbröl","02291" -"Germany",49,"Windeck Sieg","02292" -"Germany",49,"Nümbrecht","02293" -"Germany",49,"Morsbach Sieg","02294" -"Germany",49,"Ruppichteroth","02295" -"Germany",49,"Reichshof-Brüchermühle","02296" -"Germany",49,"Wildbergerhütte","02297" -"Germany",49,"Holzwickede","02301" -"Germany",49,"Witten","02302" -"Germany",49,"Unna","02303" -"Germany",49,"Schwerte","02304" -"Germany",49,"Castrop-Rauxel","02305" -"Germany",49,"Lünen","02306" -"Germany",49,"Kamen","02307" -"Germany",49,"Unna-Hemmerde","02308" -"Germany",49,"Waltrop","02309" -"Germany",49,"Dortmund","0231" -"Germany",49,"Herne","02323" -"Germany",49,"Hattingen Ruhr","02324" -"Germany",49,"Wanne-Eickel","02325" -"Germany",49,"Bochum-Wattenscheid","02327" -"Germany",49,"Herdecke","02330" -"Germany",49,"Hagen Westf","02331" -"Germany",49,"Gevelsberg","02332" -"Germany",49,"Ennepetal","02333" -"Germany",49,"Hagen-Hohenlimburg","02334" -"Germany",49,"Wetter Ruhr","02335" -"Germany",49,"Schwelm","02336" -"Germany",49,"Hagen-Dahl","02337" -"Germany",49,"Breckerfeld","02338" -"Germany",49,"Sprockhövel-Haßlinghausen","02339" -"Germany",49,"Bochum","0234" -"Germany",49,"Lüdenscheid","02351" -"Germany",49,"Altena Westf","02352" -"Germany",49,"Halver","02353" -"Germany",49,"Meinerzhagen","02354" -"Germany",49,"Schalksmühle","02355" -"Germany",49,"Herscheid Westf","02357" -"Germany",49,"Meinerzhagen-Valbert","02358" -"Germany",49,"Kierspe","02359" -"Germany",49,"Haltern-Lippramsdorf","02360" -"Germany",49,"Recklinghausen","02361" -"Germany",49,"Dorsten","02362" -"Germany",49,"Datteln","02363" -"Germany",49,"Haltern Westf","02364" -"Germany",49,"Marl","02365" -"Germany",49,"Herten Westf","02366" -"Germany",49,"Henrichenburg","02367" -"Germany",49,"Oer-Erkenschwick","02368" -"Germany",49,"Dorsten-Wulfen","02369" -"Germany",49,"Iserlohn","02371" -"Germany",49,"Hemer","02372" -"Germany",49,"Menden Sauerland","02373" -"Germany",49,"Iserlohn-Letmathe","02374" -"Germany",49,"Balve","02375" -"Germany",49,"Wickede Ruhr","02377" -"Germany",49,"Fröndenberg-Langschede","02378" -"Germany",49,"Menden-Asbeck","02379" -"Germany",49,"Hamm Westf","02381" -"Germany",49,"Ahlen Westf","02382" -"Germany",49,"Bönen","02383" -"Germany",49,"Welver","02384" -"Germany",49,"Hamm-Rhynern","02385" -"Germany",49,"Drensteinfurt-Walstedde","02387" -"Germany",49,"Hamm-Uentrop","02388" -"Germany",49,"Werne","02389" -"Germany",49,"Plettenberg","02391" -"Germany",49,"Werdohl","02392" -"Germany",49,"Sundern-Allendorf","02393" -"Germany",49,"Neuenrade-Affeln","02394" -"Germany",49,"Finnentrop-Rönkhausen","02395" -"Germany",49,"Baesweiler","02401" -"Germany",49,"Stolberg Rheinl","02402" -"Germany",49,"Eschweiler Rheinl","02403" -"Germany",49,"Alsdorf Rheinl","02404" -"Germany",49,"Würselen","02405" -"Germany",49,"Herzogenrath","02406" -"Germany",49,"Herzogenrath-Kohlscheid","02407" -"Germany",49,"Aachen-Kornelimünster","02408" -"Germany",49,"Stolberg-Gressenich","02409" -"Germany",49,"Aachen","0241" -"Germany",49,"Düren","02421" -"Germany",49,"Kreuzau","02422" -"Germany",49,"Langerwehe","02423" -"Germany",49,"Vettweiss","02424" -"Germany",49,"Nideggen-Embken","02425" -"Germany",49,"Nörvenich","02426" -"Germany",49,"Nideggen","02427" -"Germany",49,"Niederzier","02428" -"Germany",49,"Hürtgenwald","02429" -"Germany",49,"Erkelenz","02431" -"Germany",49,"Wassenberg","02432" -"Germany",49,"Hückelhoven","02433" -"Germany",49,"Wegberg","02434" -"Germany",49,"Erkelenz-Lövenich","02435" -"Germany",49,"Wegberg-Rödgen","02436" -"Germany",49,"Nettersheim-Tondorf","02440" -"Germany",49,"Kall","02441" -"Germany",49,"Mechernich","02443" -"Germany",49,"Schleiden-Gemünd","02444" -"Germany",49,"Schleiden Eifel","02445" -"Germany",49,"Heimbach Eifel","02446" -"Germany",49,"Dahlem b Kall","02447" -"Germany",49,"Hellenthal-Rescheid","02448" -"Germany",49,"Blankenheim Ahr","02449" -"Germany",49,"Geilenkirchen","02451" -"Germany",49,"Heinsberg Rheinl","02452" -"Germany",49,"Heinsberg-Randerath","02453" -"Germany",49,"Gangelt","02454" -"Germany",49,"Waldfeucht","02455" -"Germany",49,"Selfkant","02456" -"Germany",49,"Jülich","02461" -"Germany",49,"Linnich","02462" -"Germany",49,"Titz","02463" -"Germany",49,"Aldenhoven b Jülich","02464" -"Germany",49,"Inden","02465" -"Germany",49,"Roetgen Eifel","02471" -"Germany",49,"Monschau","02472" -"Germany",49,"Simmerath","02473" -"Germany",49,"Nideggen-Schmidt","02474" -"Germany",49,"Hellenthal","02482" -"Germany",49,"Mechernich-Eiserfey","02484" -"Germany",49,"Schleiden-Dreiborn","02485" -"Germany",49,"Nettersheim","02486" -"Germany",49,"Münster-Hiltrup","02501" -"Germany",49,"Nottuln","02502" -"Germany",49,"Telgte","02504" -"Germany",49,"Altenberge Westf","02505" -"Germany",49,"Münster-Wolbeck","02506" -"Germany",49,"Havixbeck","02507" -"Germany",49,"Drensteinfurt","02508" -"Germany",49,"Nottuln-Appelhülsen","02509" -"Germany",49,"Münster","0251" -"Germany",49,"Wadersloh-Diestedde","02520" -"Germany",49,"Beckum","02521" -"Germany",49,"Oelde","02522" -"Germany",49,"Wadersloh","02523" -"Germany",49,"Ennigerloh","02524" -"Germany",49,"Beckum-Neubeckum","02525" -"Germany",49,"Sendenhorst","02526" -"Germany",49,"Lippetal-Lippborg","02527" -"Germany",49,"Ennigerloh-Enniger","02528" -"Germany",49,"Oelde-Stromberg","02529" -"Germany",49,"Ostbevern","02532" -"Germany",49,"Münster-Nienberge","02533" -"Germany",49,"Münster-Roxel","02534" -"Germany",49,"Sendenhorst-Albersloh","02535" -"Germany",49,"Münster-Albachten","02536" -"Germany",49,"Drensteinfurt-Rinkerode","02538" -"Germany",49,"Coesfeld","02541" -"Germany",49,"Gescher","02542" -"Germany",49,"Billerbeck Westf","02543" -"Germany",49,"Rosendahl-Darfeld","02545" -"Germany",49,"Coesfeld-Lette","02546" -"Germany",49,"Rosendahl-Osterwick","02547" -"Germany",49,"Dülmen-Rorup","02548" -"Germany",49,"Steinfurt-Burgsteinfurt","02551" -"Germany",49,"Steinfurt-Borghorst","02552" -"Germany",49,"Ochtrup","02553" -"Germany",49,"Laer Kr Steinfurt","02554" -"Germany",49,"Schöppingen","02555" -"Germany",49,"Metelen","02556" -"Germany",49,"Wettringen Kr Steinfurt","02557" -"Germany",49,"Horstmar","02558" -"Germany",49,"Ahaus","02561" -"Germany",49,"Gronau Westfalen","02562" -"Germany",49,"Stadtlohn","02563" -"Germany",49,"Vreden","02564" -"Germany",49,"Gronau-Epe","02565" -"Germany",49,"Legden","02566" -"Germany",49,"Ahaus-Alstätte","02567" -"Germany",49,"Heek","02568" -"Germany",49,"Greven Westf","02571" -"Germany",49,"Emsdetten","02572" -"Germany",49,"Nordwalde","02573" -"Germany",49,"Saerbeck","02574" -"Germany",49,"Greven-Reckenfeld","02575" -"Germany",49,"Warendorf","02581" -"Germany",49,"Everswinkel","02582" -"Germany",49,"Sassenberg","02583" -"Germany",49,"Warendorf-Milte","02584" -"Germany",49,"Warendorf-Hoetmar","02585" -"Germany",49,"Beelen","02586" -"Germany",49,"Ennigerloh-Westkirchen","02587" -"Germany",49,"Harsewinkel-Greffen","02588" -"Germany",49,"Dülmen-Buldern","02590" -"Germany",49,"Lüdinghausen","02591" -"Germany",49,"Selm","02592" -"Germany",49,"Ascheberg Westf","02593" -"Germany",49,"Dülmen","02594" -"Germany",49,"Olfen","02595" -"Germany",49,"Nordkirchen","02596" -"Germany",49,"Senden Westf","02597" -"Germany",49,"Senden-Ottmarsbocholt","02598" -"Germany",49,"Ascheberg-Herbern","02599" -"Germany",49,"Nauort","02601" -"Germany",49,"Montabaur","02602" -"Germany",49,"Bad Ems","02603" -"Germany",49,"Nassau Lahn","02604" -"Germany",49,"Löf","02605" -"Germany",49,"Winningen Mosel","02606" -"Germany",49,"Kobern-Gondorf","02607" -"Germany",49,"Welschneudorf","02608" -"Germany",49,"Koblenz a Rhein","0261" -"Germany",49,"Neuhäusel Westerw","02620" -"Germany",49,"Lahnstein","02621" -"Germany",49,"Bendorf Rhein","02622" -"Germany",49,"Ransbach-Baumbach","02623" -"Germany",49,"Höhr-Grenzhausen","02624" -"Germany",49,"Ochtendung","02625" -"Germany",49,"Selters Westerwald","02626" -"Germany",49,"Braubach","02627" -"Germany",49,"Rhens","02628" -"Germany",49,"Mülheim-Kärlich","02630" -"Germany",49,"Neuwied","02631" -"Germany",49,"Andernach","02632" -"Germany",49,"Brohl-Lützing","02633" -"Germany",49,"Rengsdorf","02634" -"Germany",49,"Rheinbrohl","02635" -"Germany",49,"Burgbrohl","02636" -"Germany",49,"Weissenthurm","02637" -"Germany",49,"Waldbreitbach","02638" -"Germany",49,"Anhausen Kr Neuwied","02639" -"Germany",49,"Bad Neuenahr-Ahrweiler","02641" -"Germany",49,"Remagen","02642" -"Germany",49,"Altenahr","02643" -"Germany",49,"Linz am Rhein","02644" -"Germany",49,"Vettelschoss","02645" -"Germany",49,"Königsfeld Eifel","02646" -"Germany",49,"Kesseling","02647" -"Germany",49,"Mayen","02651" -"Germany",49,"Mendig","02652" -"Germany",49,"Kaisersesch","02653" -"Germany",49,"Polch","02654" -"Germany",49,"Weibern","02655" -"Germany",49,"Virneburg","02656" -"Germany",49,"Uersfeld","02657" -"Germany",49,"Bad Marienberg Westerwald","02661" -"Germany",49,"Hachenburg","02662" -"Germany",49,"Westerburg Westerw","02663" -"Germany",49,"Rennerod","02664" -"Germany",49,"Freilingen Westerw","02666" -"Germany",49,"Stein-Neukirch","02667" -"Germany",49,"Cochem","02671" -"Germany",49,"Treis-Karden","02672" -"Germany",49,"Ellenz-Poltersdorf","02673" -"Germany",49,"Bad Bertrich","02674" -"Germany",49,"Ediger-Eller","02675" -"Germany",49,"Ulmen","02676" -"Germany",49,"Lutzerath","02677" -"Germany",49,"Büchel b Cochem","02678" -"Germany",49,"Mündersbach","02680" -"Germany",49,"Altenkirchen Westerwald","02681" -"Germany",49,"Hamm Sieg","02682" -"Germany",49,"Asbach Westerw","02683" -"Germany",49,"Puderbach Westerw","02684" -"Germany",49,"Flammersfeld","02685" -"Germany",49,"Weyerbusch","02686" -"Germany",49,"Horhausen Westerwald","02687" -"Germany",49,"Kroppach","02688" -"Germany",49,"Dierdorf","02689" -"Germany",49,"Adenau","02691" -"Germany",49,"Kelberg","02692" -"Germany",49,"Antweiler","02693" -"Germany",49,"Wershofen","02694" -"Germany",49,"Insul","02695" -"Germany",49,"Nohn Eifel","02696" -"Germany",49,"Blankenheim-Ahrhütte","02697" -"Germany",49,"Siegen","0271" -"Germany",49,"Lennestadt","02721" -"Germany",49,"Attendorn","02722" -"Germany",49,"Kirchhundem","02723" -"Germany",49,"Finnentrop-Serkenrode","02724" -"Germany",49,"Lennestadt-Oedingen","02725" -"Germany",49,"Kreuztal","02732" -"Germany",49,"Hilchenbach","02733" -"Germany",49,"Freudenberg Westf","02734" -"Germany",49,"Neunkirchen Siegerl","02735" -"Germany",49,"Burbach Siegerl","02736" -"Germany",49,"Netphen-Deuz","02737" -"Germany",49,"Netphen","02738" -"Germany",49,"Wilnsdorf","02739" -"Germany",49,"Betzdorf","02741" -"Germany",49,"Wissen","02742" -"Germany",49,"Daaden","02743" -"Germany",49,"Herdorf","02744" -"Germany",49,"Brachbach Sieg","02745" -"Germany",49,"Molzhain","02747" -"Germany",49,"Diedenshausen","02750" -"Germany",49,"Bad Berleburg","02751" -"Germany",49,"Bad Laasphe","02752" -"Germany",49,"Erndtebrück","02753" -"Germany",49,"Bad Laasphe-Feudingen","02754" -"Germany",49,"Bad Berleburg-Schwarzenau","02755" -"Germany",49,"Bad Berleburg-Girkhausen","02758" -"Germany",49,"Bad Berleburg-Aue","02759" -"Germany",49,"Olpe Biggesee","02761" -"Germany",49,"Wenden Südsauerland","02762" -"Germany",49,"Drolshagen-Bleche","02763" -"Germany",49,"Welschen Ennest","02764" -"Germany",49,"Eschenburg","02770" -"Germany",49,"Dillenburg","02771" -"Germany",49,"Herborn Hess","02772" -"Germany",49,"Haiger","02773" -"Germany",49,"Dietzhölztal","02774" -"Germany",49,"Driedorf","02775" -"Germany",49,"Bad Endbach-Hartenrod","02776" -"Germany",49,"Breitscheid Hess","02777" -"Germany",49,"Siegbach","02778" -"Germany",49,"Greifenstein-Beilstein","02779" -"Germany",49,"Xanten","02801" -"Germany",49,"Alpen","02802" -"Germany",49,"Wesel-Büderich","02803" -"Germany",49,"Xanten-Marienbaum","02804" -"Germany",49,"Wesel","0281" -"Germany",49,"Kleve Niederrhein","02821" -"Germany",49,"Emmerich","02822" -"Germany",49,"Goch","02823" -"Germany",49,"Kalkar","02824" -"Germany",49,"Uedem","02825" -"Germany",49,"Kranenburg Niederrhein","02826" -"Germany",49,"Goch-Hassum","02827" -"Germany",49,"Emmerich-Elten","02828" -"Germany",49,"Geldern","02831" -"Germany",49,"Kevelaer","02832" -"Germany",49,"Kerken","02833" -"Germany",49,"Straelen","02834" -"Germany",49,"Issum","02835" -"Germany",49,"Wachtendonk","02836" -"Germany",49,"Weeze","02837" -"Germany",49,"Sonsbeck","02838" -"Germany",49,"Straelen-Herongen","02839" -"Germany",49,"Moers","02841" -"Germany",49,"Kamp-Lintfort","02842" -"Germany",49,"Rheinberg","02843" -"Germany",49,"Rheinberg-Orsoy","02844" -"Germany",49,"Neukirchen-Vluyn","02845" -"Germany",49,"Rees-Haldern","02850" -"Germany",49,"Rees","02851" -"Germany",49,"Hamminkeln","02852" -"Germany",49,"Schermbeck","02853" -"Germany",49,"Voerde Niederrhein","02855" -"Germany",49,"Hamminkeln-Brünen","02856" -"Germany",49,"Rees-Mehr","02857" -"Germany",49,"Hünxe","02858" -"Germany",49,"Wesel-Bislich","02859" -"Germany",49,"Borken Westf","02861" -"Germany",49,"Südlohn","02862" -"Germany",49,"Velen","02863" -"Germany",49,"Reken","02864" -"Germany",49,"Raesfeld","02865" -"Germany",49,"Dorsten-Rhade","02866" -"Germany",49,"Heiden Kr Borken","02867" -"Germany",49,"Bocholt","02871" -"Germany",49,"Rhede Westf","02872" -"Germany",49,"Isselburg-Werth","02873" -"Germany",49,"Isselburg","02874" -"Germany",49,"Warstein","02902" -"Germany",49,"Meschede-Freienohl","02903" -"Germany",49,"Bestwig","02904" -"Germany",49,"Bestwig-Ramsbeck","02905" -"Germany",49,"Meschede","0291" -"Germany",49,"Soest","02921" -"Germany",49,"Werl","02922" -"Germany",49,"Lippetal-Herzfeld","02923" -"Germany",49,"Möhnesee","02924" -"Germany",49,"Warstein-Allagen","02925" -"Germany",49,"Neuengeseke","02927" -"Germany",49,"Soest-Ostönnen","02928" -"Germany",49,"Arnsberg","02931" -"Germany",49,"Neheim-Hüsten","02932" -"Germany",49,"Sundern Sauerland","02933" -"Germany",49,"Sundern-Altenhellefeld","02934" -"Germany",49,"Sundern-Hachen","02935" -"Germany",49,"Arnsberg-Oeventrop","02937" -"Germany",49,"Ense","02938" -"Germany",49,"Lippstadt","02941" -"Germany",49,"Geseke","02942" -"Germany",49,"Erwitte","02943" -"Germany",49,"Rietberg-Mastholte","02944" -"Germany",49,"Lippstadt-Benninghausen","02945" -"Germany",49,"Anröchte","02947" -"Germany",49,"Lippstadt-Rebbeke","02948" -"Germany",49,"Büren","02951" -"Germany",49,"Rüthen","02952" -"Germany",49,"Wünnenberg","02953" -"Germany",49,"Rüthen-Oestereiden","02954" -"Germany",49,"Büren-Wewelsburg","02955" -"Germany",49,"Wünnenberg-Haaren","02957" -"Germany",49,"Büren-Harth","02958" -"Germany",49,"Brilon","02961" -"Germany",49,"Olsberg","02962" -"Germany",49,"Brilon-Messinghausen","02963" -"Germany",49,"Brilon-Alme","02964" -"Germany",49,"Schmallenberg-Dorlar","02971" -"Germany",49,"Schmallenberg","02972" -"Germany",49,"Eslohe Sauerland","02973" -"Germany",49,"Schmallenberg-Fredeburg","02974" -"Germany",49,"Schmallenberg-Oberkirchen","02975" -"Germany",49,"Schmallenberg-Bödefeld","02977" -"Germany",49,"Winterberg Westf","02981" -"Germany",49,"Medebach","02982" -"Germany",49,"Winterberg-Siedlinghausen","02983" -"Germany",49,"Hallenberg","02984" -"Germany",49,"Winterberg-Niedersfeld","02985" -"Germany",49,"Marsberg-Bredelar","02991" -"Germany",49,"Marsberg","02992" -"Germany",49,"Marsberg-Canstein","02993" -"Germany",49,"Marsberg-Westheim","02994" -"Germany",49,"Berlin","030" -"Germany",49,"NTR Gruppe 1","03221" -"Germany",49,"NTR Gruppe 2","03222" -"Germany",49,"Oranienburg","03301" -"Germany",49,"Hennigsdorf","03302" -"Germany",49,"Birkenwerder","03303" -"Germany",49,"Velten","03304" -"Germany",49,"Nassenheide","033051" -"Germany",49,"Leegebruch","033052" -"Germany",49,"Zehlendorf Kr Oberhavel","033053" -"Germany",49,"Liebenwalde","033054" -"Germany",49,"Kremmen","033055" -"Germany",49,"Mühlenbeck Kr Oberhavel","033056" -"Germany",49,"Gransee","03306" -"Germany",49,"Zehdenick","03307" -"Germany",49,"Marienthal Kr Oberhavel","033080" -"Germany",49,"Menz Kr Oberhavel","033082" -"Germany",49,"Schulzendorf Kr Oberhavel","033083" -"Germany",49,"Gutengermendorf","033084" -"Germany",49,"Seilershof","033085" -"Germany",49,"Grieben Kr Oberhavel","033086" -"Germany",49,"Bredereiche","033087" -"Germany",49,"Falkenthal","033088" -"Germany",49,"Himmelpfort","033089" -"Germany",49,"Fürstenberg Havel","033093" -"Germany",49,"Löwenberg","033094" -"Germany",49,"Potsdam","0331" -"Germany",49,"Bergholz-Rehbrücke","033200" -"Germany",49,"Gross Glienicke","033201" -"Germany",49,"Töplitz","033202" -"Germany",49,"Kleinmachnow","033203" -"Germany",49,"Beelitz Mark","033204" -"Germany",49,"Michendorf","033205" -"Germany",49,"Fichtenwalde","033206" -"Germany",49,"Gross Kreutz","033207" -"Germany",49,"Fahrland","033208" -"Germany",49,"Caputh","033209" -"Germany",49,"Nauen Brandenb","03321" -"Germany",49,"Falkensee","03322" -"Germany",49,"Börnicke Kr Havelland","033230" -"Germany",49,"Pausin","033231" -"Germany",49,"Brieselang","033232" -"Germany",49,"Ketzin","033233" -"Germany",49,"Wustermark","033234" -"Germany",49,"Friesack","033235" -"Germany",49,"Paulinenaue","033237" -"Germany",49,"Senzke","033238" -"Germany",49,"Gross Behnitz","033239" -"Germany",49,"Werder Havel","03327" -"Germany",49,"Teltow","03328" -"Germany",49,"Stahnsdorf","03329" -"Germany",49,"Angermünde","03331" -"Germany",49,"Schwedt/Oder","03332" -"Germany",49,"Casekow","033331" -"Germany",49,"Gartz Oder","033332" -"Germany",49,"Tantow","033333" -"Germany",49,"Greiffenberg","033334" -"Germany",49,"Pinnow Kr Uckermark","033335" -"Germany",49,"Passow Kr Uckermark","033336" -"Germany",49,"Altkünkendorf","033337" -"Germany",49,"Stolpe/Oder","033338" -"Germany",49,"Eberswalde","03334" -"Germany",49,"Finowfurt","03335" -"Germany",49,"Joachimsthal","033361" -"Germany",49,"Liepe Kr Barnim","033362" -"Germany",49,"Altenhof Kr Barnim","033363" -"Germany",49,"Gross Ziethen Kr Barnim","033364" -"Germany",49,"Lüdersdorf Kr Barnim","033365" -"Germany",49,"Chorin","033366" -"Germany",49,"Friedrichswalde Brandenb","033367" -"Germany",49,"Hohensaaten","033368" -"Germany",49,"Oderberg","033369" -"Germany",49,"Biesenthal Brandenb","03337" -"Germany",49,"Bernau Brandenb","03338" -"Germany",49,"Gross Schönebeck Kr Barnim","033393" -"Germany",49,"Blumberg Kr Barnim","033394" -"Germany",49,"Zerpenschleuse","033395" -"Germany",49,"Klosterfelde","033396" -"Germany",49,"Wandlitz","033397" -"Germany",49,"Werneuchen","033398" -"Germany",49,"Strausberg","03341" -"Germany",49,"Neuenhagen b Berlin","03342" -"Germany",49,"Müncheberg","033432" -"Germany",49,"Buckow Märk Schweiz","033433" -"Germany",49,"Herzfelde b Strausberg","033434" -"Germany",49,"Rehfelde","033435" -"Germany",49,"Prötzel","033436" -"Germany",49,"Reichenberg b Strausberg","033437" -"Germany",49,"Altlandsberg","033438" -"Germany",49,"Fredersdorf-Vogelsdorf","033439" -"Germany",49,"Bad Freienwalde","03344" -"Germany",49,"Heckelberg","033451" -"Germany",49,"Neulewin","033452" -"Germany",49,"Wölsickendorf/Wollenberg","033454" -"Germany",49,"Wriezen","033456" -"Germany",49,"Altreetz","033457" -"Germany",49,"Falkenberg Mark","033458" -"Germany",49,"Seelow","03346" -"Germany",49,"Lietzen","033470" -"Germany",49,"Golzow b Seelow","033472" -"Germany",49,"Zechin","033473" -"Germany",49,"Neutrebbin","033474" -"Germany",49,"Letschin","033475" -"Germany",49,"Neuhardenberg","033476" -"Germany",49,"Trebnitz b Müncheberg","033477" -"Germany",49,"Gross Neuendorf","033478" -"Germany",49,"Küstrin-Kietz","033479" -"Germany",49,"Frankfurt (Oder)","0335" -"Germany",49,"Podelzig","033601" -"Germany",49,"Alt Zeschdorf","033602" -"Germany",49,"Falkenhagen b Seelow","033603" -"Germany",49,"Lebus","033604" -"Germany",49,"Boossen","033605" -"Germany",49,"Müllrose","033606" -"Germany",49,"Briesen Mark","033607" -"Germany",49,"Jacobsdorf Mark","033608" -"Germany",49,"Brieskow-Finkenheerd","033609" -"Germany",49,"Fürstenwalde Spree","03361" -"Germany",49,"Erkner","03362" -"Germany",49,"Bad Saarow-Pieskow","033631" -"Germany",49,"Hangelsberg","033632" -"Germany",49,"Spreenhagen","033633" -"Germany",49,"Berkenbrück Kr Oder-Spree","033634" -"Germany",49,"Arensdorf Kr Oder-Spree","033635" -"Germany",49,"Steinhöfel Kr Oder-Spree","033636" -"Germany",49,"Beerfelde","033637" -"Germany",49,"Rüdersdorf b Berlin","033638" -"Germany",49,"Eisenhüttenstadt","03364" -"Germany",49,"Neuzelle","033652" -"Germany",49,"Ziltendorf","033653" -"Germany",49,"Fünfeichen","033654" -"Germany",49,"Grunow Kr Oder-Spree","033655" -"Germany",49,"Bahro","033656" -"Germany",49,"Steinsdorf Brandenb","033657" -"Germany",49,"Beeskow","03366" -"Germany",49,"Lieberose","033671" -"Germany",49,"Pfaffendorf b Beeskow","033672" -"Germany",49,"Weichensdorf","033673" -"Germany",49,"Trebatsch","033674" -"Germany",49,"Tauche","033675" -"Germany",49,"Friedland b Beeskow","033676" -"Germany",49,"Glienicke b Beeskow","033677" -"Germany",49,"Storkow Mark","033678" -"Germany",49,"Wendisch Rietz","033679" -"Germany",49,"Grossbeeren","033701" -"Germany",49,"Wünsdorf","033702" -"Germany",49,"Sperenberg","033703" -"Germany",49,"Baruth Mark","033704" -"Germany",49,"Rangsdorf","033708" -"Germany",49,"Luckenwalde","03371" -"Germany",49,"Jüterbog","03372" -"Germany",49,"Trebbin","033731" -"Germany",49,"Hennickendorf b Luckenwalde","033732" -"Germany",49,"Stülpe","033733" -"Germany",49,"Felgentreu","033734" -"Germany",49,"Niedergörsdorf","033741" -"Germany",49,"Oehna Brandenb","033742" -"Germany",49,"Blönsdorf","033743" -"Germany",49,"Hohenseefeld","033744" -"Germany",49,"Petkus","033745" -"Germany",49,"Werbig b Jüterbog","033746" -"Germany",49,"Marzahna","033747" -"Germany",49,"Treuenbrietzen","033748" -"Germany",49,"Königs Wusterhausen","03375" -"Germany",49,"Münchehofe Kr Dahme-Spreewald","033760" -"Germany",49,"Zeuthen","033762" -"Germany",49,"Bestensee","033763" -"Germany",49,"Mittenwalde Mark","033764" -"Germany",49,"Märkisch Buchholz","033765" -"Germany",49,"Teupitz","033766" -"Germany",49,"Friedersdorf b Berlin","033767" -"Germany",49,"Prieros","033768" -"Germany",49,"Töpchin","033769" -"Germany",49,"Zossen Brandenb","03377" -"Germany",49,"Ludwigsfelde","03378" -"Germany",49,"Mahlow","03379" -"Germany",49,"Brandenburg an der Havel","03381" -"Germany",49,"Lehnin","03382" -"Germany",49,"Ziesar","033830" -"Germany",49,"Weseram","033831" -"Germany",49,"Rogäsen","033832" -"Germany",49,"Wollin b Brandenburg","033833" -"Germany",49,"Pritzerbe","033834" -"Germany",49,"Golzow b Brandenburg","033835" -"Germany",49,"Butzow b Brandenburg","033836" -"Germany",49,"Brielow","033837" -"Germany",49,"Päwesin","033838" -"Germany",49,"Wusterwitz","033839" -"Germany",49,"Belzig","033841" -"Germany",49,"Niemegk","033843" -"Germany",49,"Brück Brandenb","033844" -"Germany",49,"Borkheide","033845" -"Germany",49,"Dippmannsdorf","033846" -"Germany",49,"Görzke","033847" -"Germany",49,"Raben","033848" -"Germany",49,"Wiesenburg Mark","033849" -"Germany",49,"Rathenow","03385" -"Germany",49,"Premnitz","03386" -"Germany",49,"Zollchow b Rathenow","033870" -"Germany",49,"Hohennauen","033872" -"Germany",49,"Grosswudicke","033873" -"Germany",49,"Stechow Brandenb","033874" -"Germany",49,"Rhinow","033875" -"Germany",49,"Buschow","033876" -"Germany",49,"Nitzahn","033877" -"Germany",49,"Nennhausen","033878" -"Germany",49,"Neuruppin","03391" -"Germany",49,"Walsleben b Neuruppin","033920" -"Germany",49,"Zechlinerhütte","033921" -"Germany",49,"Karwesee","033922" -"Germany",49,"Flecken Zechlin","033923" -"Germany",49,"Rägelin","033924" -"Germany",49,"Wustrau-Altfriesack","033925" -"Germany",49,"Herzberg Mark","033926" -"Germany",49,"Linum","033927" -"Germany",49,"Wildberg Brandenb","033928" -"Germany",49,"Gühlen-Glienicke","033929" -"Germany",49,"Rheinsberg Mark","033931" -"Germany",49,"Fehrbellin","033932" -"Germany",49,"Lindow Mark","033933" -"Germany",49,"Wittstock Dosse","03394" -"Germany",49,"Pritzwalk","03395" -"Germany",49,"Heiligengrabe","033962" -"Germany",49,"Wulfersdorf b Wittstock","033963" -"Germany",49,"Fretzdorf","033964" -"Germany",49,"Herzsprung b Wittstock","033965" -"Germany",49,"Dranse","033966" -"Germany",49,"Freyenstein","033967" -"Germany",49,"Meyenburg Kr Prignitz","033968" -"Germany",49,"Stepenitz","033969" -"Germany",49,"Neustadt Dosse","033970" -"Germany",49,"Kyritz Brandenb","033971" -"Germany",49,"Breddin","033972" -"Germany",49,"Zernitz b Neustadt Dosse","033973" -"Germany",49,"Dessow","033974" -"Germany",49,"Dannenwalde Kr Prignitz","033975" -"Germany",49,"Wutike","033976" -"Germany",49,"Gumtow","033977" -"Germany",49,"Segeletz","033978" -"Germany",49,"Wusterhausen Dosse","033979" -"Germany",49,"Putlitz","033981" -"Germany",49,"Hoppenrade Kr Prignitz","033982" -"Germany",49,"Gross Pankow Kr Prignitz","033983" -"Germany",49,"Blumenthal b Pritzwalk","033984" -"Germany",49,"Falkenhagen Kr Prignitz","033986" -"Germany",49,"Sadenbeck","033989" -"Germany",49,"Dessau Anh","0340" -"Germany",49,"Leipzig","0341" -"Germany",49,"Delitzsch","034202" -"Germany",49,"Zwenkau","034203" -"Germany",49,"Schkeuditz","034204" -"Germany",49,"Markranstädt","034205" -"Germany",49,"Rötha","034206" -"Germany",49,"Zwochau","034207" -"Germany",49,"Löbnitz b Delitzsch","034208" -"Germany",49,"Torgau","03421" -"Germany",49,"Schildau Gneisenaustadt","034221" -"Germany",49,"Arzberg b Torgau","034222" -"Germany",49,"Dommitzsch","034223" -"Germany",49,"Belgern Sachs","034224" -"Germany",49,"Eilenburg","03423" -"Germany",49,"Jesewitz","034241" -"Germany",49,"Hohenpriessnitz","034242" -"Germany",49,"Bad Düben","034243" -"Germany",49,"Mockrehna","034244" -"Germany",49,"Wurzen","03425" -"Germany",49,"Kühren b Wurzen","034261" -"Germany",49,"Falkenhain b Wurzen","034262" -"Germany",49,"Hohburg","034263" -"Germany",49,"Borsdorf","034291" -"Germany",49,"Brandis b Wurzen","034292" -"Germany",49,"Naunhof b Grimma","034293" -"Germany",49,"Rackwitz","034294" -"Germany",49,"Krensitz","034295" -"Germany",49,"Groitzsch b Pegau","034296" -"Germany",49,"Liebertwolkwitz","034297" -"Germany",49,"Taucha b Leipzig","034298" -"Germany",49,"Gaschwitz","034299" -"Germany",49,"Döbeln","03431" -"Germany",49,"Leisnig","034321" -"Germany",49,"Rosswein","034322" -"Germany",49,"Ostrau Sachs","034324" -"Germany",49,"Mochau-Lüttewitz","034325" -"Germany",49,"Waldheim Sachs","034327" -"Germany",49,"Hartha b Döbeln","034328" -"Germany",49,"Borna Stadt","03433" -"Germany",49,"Geithain","034341" -"Germany",49,"Neukieritzsch","034342" -"Germany",49,"Regis-Breitingen","034343" -"Germany",49,"Kohren-Sahlis","034344" -"Germany",49,"Bad Lausick","034345" -"Germany",49,"Narsdorf","034346" -"Germany",49,"Oelzschau b Borna","034347" -"Germany",49,"Frohburg","034348" -"Germany",49,"Oschatz","03435" -"Germany",49,"Dahlen Sachs","034361" -"Germany",49,"Mügeln b Oschatz","034362" -"Germany",49,"Cavertitz","034363" -"Germany",49,"Wermsdorf","034364" -"Germany",49,"Grimma","03437" -"Germany",49,"Colditz","034381" -"Germany",49,"Nerchau","034382" -"Germany",49,"Trebsen Mulde","034383" -"Germany",49,"Grossbothen","034384" -"Germany",49,"Mutzschen","034385" -"Germany",49,"Dürrweitzschen b Grimma","034386" -"Germany",49,"Zeitz","03441" -"Germany",49,"Osterfeld","034422" -"Germany",49,"Heuckewalde","034423" -"Germany",49,"Reuden b Zeitz","034424" -"Germany",49,"Droyssig","034425" -"Germany",49,"Kayna","034426" -"Germany",49,"Weissenfels Sachs-Anh","03443" -"Germany",49,"Hohenmölsen","034441" -"Germany",49,"Teuchern","034443" -"Germany",49,"Lützen","034444" -"Germany",49,"Stößen","034445" -"Germany",49,"Grosskorbetha","034446" -"Germany",49,"Naumburg Saale","03445" -"Germany",49,"Nebra Unstrut","034461" -"Germany",49,"Laucha Unstrut","034462" -"Germany",49,"Bad Kösen","034463" -"Germany",49,"Freyburg Unstrut","034464" -"Germany",49,"Bad Bibra","034465" -"Germany",49,"Janisroda","034466" -"Germany",49,"Eckartsberga","034467" -"Germany",49,"Altenburg Thür","03447" -"Germany",49,"Meuselwitz Thür","03448" -"Germany",49,"Schmölln Thür","034491" -"Germany",49,"Lucka","034492" -"Germany",49,"Gößnitz Thür","034493" -"Germany",49,"Ehrenhain","034494" -"Germany",49,"Dobitschen","034495" -"Germany",49,"Nöbdenitz","034496" -"Germany",49,"Langenleuba-Niederhain","034497" -"Germany",49,"Rositz","034498" -"Germany",49,"Halle Saale","0345" -"Germany",49,"Ostrau Saalkreis","034600" -"Germany",49,"Teutschenthal","034601" -"Germany",49,"Landsberg Sachs-Anh","034602" -"Germany",49,"Nauendorf Sachs-Anh","034603" -"Germany",49,"Niemberg","034604" -"Germany",49,"Gröbers","034605" -"Germany",49,"Teicha Sachs-Anh","034606" -"Germany",49,"Wettin","034607" -"Germany",49,"Salzmünde","034609" -"Germany",49,"Merseburg Saale","03461" -"Germany",49,"Bad Dürrenberg","03462" -"Germany",49,"Mücheln Geiseltal","034632" -"Germany",49,"Braunsbedra","034633" -"Germany",49,"Bad Lauchstädt","034635" -"Germany",49,"Schafstädt","034636" -"Germany",49,"Frankleben","034637" -"Germany",49,"Zöschen","034638" -"Germany",49,"Wallendorf Luppe","034639" -"Germany",49,"Sangerhausen","03464" -"Germany",49,"Rossla","034651" -"Germany",49,"Allstedt","034652" -"Germany",49,"Rottleberode","034653" -"Germany",49,"Stolberg Harz","034654" -"Germany",49,"Wallhausen Sachs-Anh","034656" -"Germany",49,"Hayn Harz","034658" -"Germany",49,"Blankenheim b Sangerhausen","034659" -"Germany",49,"Artern Unstrut","03466" -"Germany",49,"Bad Frankenhausen Kyffhäuser","034671" -"Germany",49,"Rossleben","034672" -"Germany",49,"Heldrungen","034673" -"Germany",49,"Könnern","034691" -"Germany",49,"Alsleben Saale","034692" -"Germany",49,"Bernburg Saale","03471" -"Germany",49,"Nienburg Saale","034721" -"Germany",49,"Preusslitz","034722" -"Germany",49,"Aschersleben Sachs-Anh","03473" -"Germany",49,"Frose","034741" -"Germany",49,"Sylda","034742" -"Germany",49,"Ermsleben","034743" -"Germany",49,"Winningen Sachs-Anh","034745" -"Germany",49,"Giersleben","034746" -"Germany",49,"Lutherstadt Eisleben","03475" -"Germany",49,"Hettstedt Sachs-Anh","03476" -"Germany",49,"Querfurt","034771" -"Germany",49,"Helbra","034772" -"Germany",49,"Schwittersdorf","034773" -"Germany",49,"Röblingen am See","034774" -"Germany",49,"Wippra","034775" -"Germany",49,"Rothenschirmbach","034776" -"Germany",49,"Abberode","034779" -"Germany",49,"Greifenhagen","034781" -"Germany",49,"Mansfeld Südharz","034782" -"Germany",49,"Gerbstedt","034783" -"Germany",49,"Sandersleben","034785" -"Germany",49,"Roßlau Elbe","034901" -"Germany",49,"Coswig Anhalt","034903" -"Germany",49,"Oranienbaum","034904" -"Germany",49,"Wörlitz","034905" -"Germany",49,"Raguhn","034906" -"Germany",49,"Jeber-Bergfrieden","034907" -"Germany",49,"Aken Elbe","034909" -"Germany",49,"Lutherstadt Wittenberg","03491" -"Germany",49,"Kropstädt","034920" -"Germany",49,"Kemberg","034921" -"Germany",49,"Mühlanger","034922" -"Germany",49,"Cobbelsdorf","034923" -"Germany",49,"Zahna","034924" -"Germany",49,"Bad Schmiedeberg","034925" -"Germany",49,"Pretzsch Elbe","034926" -"Germany",49,"Globig-Bleddin","034927" -"Germany",49,"Seegrehna","034928" -"Germany",49,"Straach","034929" -"Germany",49,"Bitterfeld","03493" -"Germany",49,"Wolfen","03494" -"Germany",49,"Gräfenhainichen","034953" -"Germany",49,"Roitzsch b Bitterfeld","034954" -"Germany",49,"Gossa","034955" -"Germany",49,"Zörbig","034956" -"Germany",49,"Köthen Anhalt","03496" -"Germany",49,"Osternienburg","034973" -"Germany",49,"Görzig Kr Köthen","034975" -"Germany",49,"Gröbzig","034976" -"Germany",49,"Quellendorf","034977" -"Germany",49,"Radegast Kr Köthen","034978" -"Germany",49,"Wulfen Sachs-Anh","034979" -"Germany",49,"Pirna","03501" -"Germany",49,"Struppen","035020" -"Germany",49,"Königstein Sächs Schweiz","035021" -"Germany",49,"Bad Schandau","035022" -"Germany",49,"Bad Gottleuba","035023" -"Germany",49,"Stadt Wehlen","035024" -"Germany",49,"Liebstadt","035025" -"Germany",49,"Dürrröhrsdorf-Dittersbach","035026" -"Germany",49,"Weesenstein","035027" -"Germany",49,"Krippen","035028" -"Germany",49,"Langenhennersdorf","035032" -"Germany",49,"Rosenthal Sächs Schweiz","035033" -"Germany",49,"Dippoldiswalde","03504" -"Germany",49,"Kipsdorf Kurort","035052" -"Germany",49,"Glashütte Sachs","035053" -"Germany",49,"Lauenstein Sachs","035054" -"Germany",49,"Höckendorf b Dippoldiswalde","035055" -"Germany",49,"Altenberg Sachs","035056" -"Germany",49,"Hermsdorf Erzgeb","035057" -"Germany",49,"Pretzschendorf","035058" -"Germany",49,"Dresden","0351" -"Germany",49,"Arnsdorf b Dresden","035200" -"Germany",49,"Langebrück","035201" -"Germany",49,"Klingenberg Sachs","035202" -"Germany",49,"Tharandt","035203" -"Germany",49,"Wilsdruff","035204" -"Germany",49,"Ottendorf-Okrilla","035205" -"Germany",49,"Kreischa b Dresden","035206" -"Germany",49,"Moritzburg","035207" -"Germany",49,"Radeburg","035208" -"Germany",49,"Mohorn","035209" -"Germany",49,"Meissen","03521" -"Germany",49,"Grossenhain Sachs","03522" -"Germany",49,"Coswig b Dresden","03523" -"Germany",49,"Tauscha b Großenhain","035240" -"Germany",49,"Lommatzsch","035241" -"Germany",49,"Nossen","035242" -"Germany",49,"Weinböhla","035243" -"Germany",49,"Krögis","035244" -"Germany",49,"Burkhardswalde-Munzig","035245" -"Germany",49,"Ziegenhain Sachs","035246" -"Germany",49,"Zehren Sachs","035247" -"Germany",49,"Schönfeld b Großenhain","035248" -"Germany",49,"Basslitz","035249" -"Germany",49,"Riesa","03525" -"Germany",49,"Gröditz b Riesa","035263" -"Germany",49,"Strehla","035264" -"Germany",49,"Glaubitz","035265" -"Germany",49,"Heyda b Riesa","035266" -"Germany",49,"Diesbar-Seusslitz","035267" -"Germany",49,"Stauchitz","035268" -"Germany",49,"Radeberg","03528" -"Germany",49,"Heidenau Sachs","03529" -"Germany",49,"Finsterwalde","03531" -"Germany",49,"Doberlug-Kirchhain","035322" -"Germany",49,"Sonnewalde","035323" -"Germany",49,"Crinitz","035324" -"Germany",49,"Rückersdorf b Finsterwalde","035325" -"Germany",49,"Schönborn Kr Elbe-Elster","035326" -"Germany",49,"Priessen","035327" -"Germany",49,"Dollenchen","035329" -"Germany",49,"Elsterwerda","03533" -"Germany",49,"Bad Liebenwerda","035341" -"Germany",49,"Mühlberg Elbe","035342" -"Germany",49,"Hirschfeld b Elsterwerda","035343" -"Germany",49,"Herzberg Elster","03535" -"Germany",49,"Schlieben","035361" -"Germany",49,"Schönewalde b Herzberg","035362" -"Germany",49,"Fermerswalde","035363" -"Germany",49,"Lebusa","035364" -"Germany",49,"Falkenberg Elster","035365" -"Germany",49,"Jessen Elster","03537" -"Germany",49,"Elster Elbe","035383" -"Germany",49,"Steinsdorf b Jessen","035384" -"Germany",49,"Annaburg","035385" -"Germany",49,"Prettin","035386" -"Germany",49,"Seyda","035387" -"Germany",49,"Klöden","035388" -"Germany",49,"Holzdorf Elster","035389" -"Germany",49,"Calau","03541" -"Germany",49,"Lübbenau Spreewald","03542" -"Germany",49,"Vetschau","035433" -"Germany",49,"Altdöbern","035434" -"Germany",49,"Gollmitz b Calau","035435" -"Germany",49,"Laasow b Calau","035436" -"Germany",49,"Zinnitz","035439" -"Germany",49,"Luckau Brandenb","03544" -"Germany",49,"Dahme Brandenb","035451" -"Germany",49,"Golssen","035452" -"Germany",49,"Drahnsdorf","035453" -"Germany",49,"Uckro","035454" -"Germany",49,"Walddrehna","035455" -"Germany",49,"Terpt","035456" -"Germany",49,"Lübben Spreewald","03546" -"Germany",49,"Birkenhainchen","035471" -"Germany",49,"Schlepzig","035472" -"Germany",49,"Neu Lübbenau","035473" -"Germany",49,"Schönwalde b Lübben","035474" -"Germany",49,"Straupitz","035475" -"Germany",49,"Wittmannsdorf-Bückchen","035476" -"Germany",49,"Rietzneuendorf-Friedrichshof","035477" -"Germany",49,"Goyatz","035478" -"Germany",49,"Cottbus","0355" -"Germany",49,"Döbern NL","035600" -"Germany",49,"Peitz","035601" -"Germany",49,"Drebkau","035602" -"Germany",49,"Burg Spreewald","035603" -"Germany",49,"Krieschow","035604" -"Germany",49,"Komptendorf","035605" -"Germany",49,"Briesen b Cottbus","035606" -"Germany",49,"Jänschwalde","035607" -"Germany",49,"Gross Ossnig","035608" -"Germany",49,"Drachhausen","035609" -"Germany",49,"Guben","03561" -"Germany",49,"Forst Lausitz","03562" -"Germany",49,"Spremberg","03563" -"Germany",49,"Schwarze Pumpe","03564" -"Germany",49,"Bärenklau NL","035691" -"Germany",49,"Kerkwitz","035692" -"Germany",49,"Lauschütz","035693" -"Germany",49,"Gosda b Klinge","035694" -"Germany",49,"Simmersdorf","035695" -"Germany",49,"Briesnig","035696" -"Germany",49,"Bagenz","035697" -"Germany",49,"Hornow","035698" -"Germany",49,"Hoyerswerda","03571" -"Germany",49,"Lauta b Hoyerswerda","035722" -"Germany",49,"Bernsdorf OL","035723" -"Germany",49,"Lohsa","035724" -"Germany",49,"Wittichenau","035725" -"Germany",49,"Groß Särchen","035726" -"Germany",49,"Burghammer","035727" -"Germany",49,"Uhyst Spree","035728" -"Germany",49,"Senftenberg","03573" -"Germany",49,"Lauchhammer","03574" -"Germany",49,"Welzow","035751" -"Germany",49,"Ruhland","035752" -"Germany",49,"Großräschen","035753" -"Germany",49,"Klettwitz","035754" -"Germany",49,"Ortrand","035755" -"Germany",49,"Hosena","035756" -"Germany",49,"Weisswasser","03576" -"Germany",49,"Bad Muskau","035771" -"Germany",49,"Rietschen","035772" -"Germany",49,"Schleife","035773" -"Germany",49,"Boxberg Sachs","035774" -"Germany",49,"Pechern","035775" -"Germany",49,"Kamenz","03578" -"Germany",49,"Ossling","035792" -"Germany",49,"Elstra","035793" -"Germany",49,"Königsbrück","035795" -"Germany",49,"Panschwitz-Kuckau","035796" -"Germany",49,"Schwepnitz","035797" -"Germany",49,"Görlitz","03581" -"Germany",49,"Zodel","035820" -"Germany",49,"Hagenwerder","035822" -"Germany",49,"Ostritz","035823" -"Germany",49,"Kodersdorf","035825" -"Germany",49,"Königshain b Görlitz","035826" -"Germany",49,"Nieder-Seifersdorf","035827" -"Germany",49,"Reichenbach OL","035828" -"Germany",49,"Gersdorf b Görlitz","035829" -"Germany",49,"Zittau","03583" -"Germany",49,"Großschönau Sachs","035841" -"Germany",49,"Oderwitz","035842" -"Germany",49,"Hirschfelde b Zittau","035843" -"Germany",49,"Oybin Kurort","035844" -"Germany",49,"Löbau","03585" -"Germany",49,"Neugersdorf ,Sachs","03586" -"Germany",49,"Neusalza-Spremberg","035872" -"Germany",49,"Herrnhut","035873" -"Germany",49,"Bernstadt a d Eigen","035874" -"Germany",49,"Obercunnersdorf b Löbau","035875" -"Germany",49,"Weissenberg Sachs","035876" -"Germany",49,"Cunewalde","035877" -"Germany",49,"Niesky","03588" -"Germany",49,"Rothenburg OL","035891" -"Germany",49,"Horka OL","035892" -"Germany",49,"Mücka","035893" -"Germany",49,"Hähnichen","035894" -"Germany",49,"Klitten","035895" -"Germany",49,"Bautzen","03591" -"Germany",49,"Kirschau","03592" -"Germany",49,"Seitschen","035930" -"Germany",49,"Königswartha","035931" -"Germany",49,"Guttau","035932" -"Germany",49,"Neschwitz","035933" -"Germany",49,"Grossdubrau","035934" -"Germany",49,"Kleinwelka","035935" -"Germany",49,"Sohland Spree","035936" -"Germany",49,"Prischwitz","035937" -"Germany",49,"Großpostwitz OL","035938" -"Germany",49,"Hochkirch","035939" -"Germany",49,"Bischofswerda","03594" -"Germany",49,"Neukirch Lausitz","035951" -"Germany",49,"Großröhrsdorf OL","035952" -"Germany",49,"Burkau","035953" -"Germany",49,"Grossharthau","035954" -"Germany",49,"Pulsnitz","035955" -"Germany",49,"Neustadt i Sa","03596" -"Germany",49,"Sebnitz","035971" -"Germany",49,"Stolpen","035973" -"Germany",49,"Hinterhermsdorf","035974" -"Germany",49,"Hohnstein","035975" -"Germany",49,"Mühlhausen Thür","03601" -"Germany",49,"Ebeleben","036020" -"Germany",49,"Schlotheim","036021" -"Germany",49,"Grossengottern","036022" -"Germany",49,"Horsmar","036023" -"Germany",49,"Diedorf b Mühlhausen Thür","036024" -"Germany",49,"Körner","036025" -"Germany",49,"Struth b Mühlhausen Thür","036026" -"Germany",49,"Lengenfeld Unterm Stein","036027" -"Germany",49,"Kammerforst Thür","036028" -"Germany",49,"Menteroda","036029" -"Germany",49,"Bad Langensalza","03603" -"Germany",49,"Bad Tennstedt","036041" -"Germany",49,"Tonna","036042" -"Germany",49,"Kirchheilingen","036043" -"Germany",49,"Leinefelde","03605" -"Germany",49,"Heiligenstadt Heilbad","03606" -"Germany",49,"Teistungen","036071" -"Germany",49,"Weißenborn-Lüderode","036072" -"Germany",49,"Worbis","036074" -"Germany",49,"Dingelstädt Eichsfeld","036075" -"Germany",49,"Niederorschel","036076" -"Germany",49,"Grossbodungen","036077" -"Germany",49,"Arenshausen","036081" -"Germany",49,"Ershausen","036082" -"Germany",49,"Uder","036083" -"Germany",49,"Heuthen","036084" -"Germany",49,"Reinholterode","036085" -"Germany",49,"Wüstheuterode","036087" -"Germany",49,"Erfurt","0361" -"Germany",49,"Elxleben b Arnstadt","036200" -"Germany",49,"Walschleben","036201" -"Germany",49,"Neudietendorf","036202" -"Germany",49,"Vieselbach","036203" -"Germany",49,"Stotternheim","036204" -"Germany",49,"Gräfenroda","036205" -"Germany",49,"Grossfahner","036206" -"Germany",49,"Plaue Thür","036207" -"Germany",49,"Ermstedt","036208" -"Germany",49,"Klettbach","036209" -"Germany",49,"Gotha Thür","03621" -"Germany",49,"Waltershausen Thür","03622" -"Germany",49,"Friedrichroda","03623" -"Germany",49,"Ohrdruf","03624" -"Germany",49,"Tambach-Dietharz Thür Wald","036252" -"Germany",49,"Georgenthal Thür Wald","036253" -"Germany",49,"Friedrichswerth","036254" -"Germany",49,"Goldbach b Gotha","036255" -"Germany",49,"Wechmar","036256" -"Germany",49,"Luisenthal Thür","036257" -"Germany",49,"Friemar","036258" -"Germany",49,"Tabarz Thür Wald","036259" -"Germany",49,"Arnstadt","03628" -"Germany",49,"Stadtilm","03629" -"Germany",49,"Nordhausen Thür","03631" -"Germany",49,"Sondershausen","03632" -"Germany",49,"Grossberndten","036330" -"Germany",49,"Ilfeld","036331" -"Germany",49,"Ellrich","036332" -"Germany",49,"Heringen Helme","036333" -"Germany",49,"Wolkramshausen","036334" -"Germany",49,"Grosswechsungen","036335" -"Germany",49,"Klettenberg","036336" -"Germany",49,"Schiedungen","036337" -"Germany",49,"Bleicherode","036338" -"Germany",49,"Sömmerda","03634" -"Germany",49,"Kölleda","03635" -"Germany",49,"Greussen","03636" -"Germany",49,"Grossenehrich","036370" -"Germany",49,"Schlossvippach","036371" -"Germany",49,"Kleinneuhausen","036372" -"Germany",49,"Buttstädt","036373" -"Germany",49,"Weissensee","036374" -"Germany",49,"Kindelbrück","036375" -"Germany",49,"Straussfurt","036376" -"Germany",49,"Rastenberg","036377" -"Germany",49,"Ostramondra","036378" -"Germany",49,"Holzengel","036379" -"Germany",49,"Jena","03641" -"Germany",49,"Camburg","036421" -"Germany",49,"Reinstädt Thür","036422" -"Germany",49,"Orlamünde","036423" -"Germany",49,"Kahla Thür","036424" -"Germany",49,"Isserstedt","036425" -"Germany",49,"Ottendorf b Stadtroda","036426" -"Germany",49,"Dornburg Saale","036427" -"Germany",49,"Stadtroda","036428" -"Germany",49,"Weimar Thür","03643" -"Germany",49,"Apolda","03644" -"Germany",49,"Kranichfeld","036450" -"Germany",49,"Buttelstedt","036451" -"Germany",49,"Berlstedt","036452" -"Germany",49,"Mellingen","036453" -"Germany",49,"Magdala","036454" -"Germany",49,"Bad Berka","036458" -"Germany",49,"Blankenhain Thür","036459" -"Germany",49,"Bad Sulza","036461" -"Germany",49,"Ossmannstedt","036462" -"Germany",49,"Gebstedt","036463" -"Germany",49,"Wormstedt","036464" -"Germany",49,"Oberndorf b Apolda","036465" -"Germany",49,"Pößneck","03647" -"Germany",49,"Neustadt an der Orla","036481" -"Germany",49,"Triptis","036482" -"Germany",49,"Ziegenrück","036483" -"Germany",49,"Knau b Pößneck","036484" -"Germany",49,"Gera","0365" -"Germany",49,"Hermsdorf Thür","036601" -"Germany",49,"Ronneburg Thür","036602" -"Germany",49,"Weida","036603" -"Germany",49,"Münchenbernsdorf","036604" -"Germany",49,"Bad Köstritz","036605" -"Germany",49,"Kraftsdorf","036606" -"Germany",49,"Niederpöllnitz","036607" -"Germany",49,"Seelingstädt b Gera","036608" -"Germany",49,"Greiz","03661" -"Germany",49,"Elsterberg b Plauen","036621" -"Germany",49,"Triebes","036622" -"Germany",49,"Berga Elster","036623" -"Germany",49,"Teichwolframsdorf","036624" -"Germany",49,"Langenwetzendorf","036625" -"Germany",49,"Auma","036626" -"Germany",49,"Zeulenroda","036628" -"Germany",49,"Schleiz","03663" -"Germany",49,"Remptendorf","036640" -"Germany",49,"Harra","036642" -"Germany",49,"Thimmendorf","036643" -"Germany",49,"Hirschberg Saale","036644" -"Germany",49,"Mühltroff","036645" -"Germany",49,"Tanna b Schleiz","036646" -"Germany",49,"Saalburg Thür","036647" -"Germany",49,"Dittersdorf b Schleiz","036648" -"Germany",49,"Gefell b Schleiz","036649" -"Germany",49,"Lobenstein","036651" -"Germany",49,"Wurzbach","036652" -"Germany",49,"Lehesten Thür Wald","036653" -"Germany",49,"Eisenberg Thür","036691" -"Germany",49,"Bürgel","036692" -"Germany",49,"Crossen an der Elster","036693" -"Germany",49,"Schkölen Thür","036694" -"Germany",49,"Söllmnitz","036695" -"Germany",49,"Lichte","036701" -"Germany",49,"Lauscha","036702" -"Germany",49,"Gräfenthal","036703" -"Germany",49,"Steinheid","036704" -"Germany",49,"Oberweißbach Thür Wald","036705" -"Germany",49,"Saalfeld Saale","03671" -"Germany",49,"Rudolstadt","03672" -"Germany",49,"Sitzendorf","036730" -"Germany",49,"Unterloquitz","036731" -"Germany",49,"Könitz","036732" -"Germany",49,"Kaulsdorf","036733" -"Germany",49,"Leutenberg","036734" -"Germany",49,"Probstzella","036735" -"Germany",49,"Arnsgereuth","036736" -"Germany",49,"Drognitz","036737" -"Germany",49,"Königsee","036738" -"Germany",49,"Rottenbach","036739" -"Germany",49,"Bad Blankenburg","036741" -"Germany",49,"Uhlstädt","036742" -"Germany",49,"Teichel","036743" -"Germany",49,"Remda","036744" -"Germany",49,"Sonneberg Thür","03675" -"Germany",49,"Heubisch","036761" -"Germany",49,"Steinach Thür","036762" -"Germany",49,"Neuhaus-Schierschnitz","036764" -"Germany",49,"Schalkau","036766" -"Germany",49,"Ilmenau Thür","03677" -"Germany",49,"Grossbreitenbach","036781" -"Germany",49,"Schmiedefeld a Rennsteig","036782" -"Germany",49,"Gehren Thür","036783" -"Germany",49,"Stützerbach","036784" -"Germany",49,"Gräfinau-Angstedt","036785" -"Germany",49,"Neuhaus a Rennweg","03679" -"Germany",49,"Suhl","03681" -"Germany",49,"Zella-Mehlis","03682" -"Germany",49,"Schmalkalden","03683" -"Germany",49,"Trusetal","036840" -"Germany",49,"Schleusingen","036841" -"Germany",49,"Oberhof Thür","036842" -"Germany",49,"Benshausen","036843" -"Germany",49,"Rohr Thür","036844" -"Germany",49,"Gehlberg","036845" -"Germany",49,"Suhl-Dietzhausen","036846" -"Germany",49,"Steinbach-Hallenberg","036847" -"Germany",49,"Wernshausen","036848" -"Germany",49,"Kleinschmalkalden","036849" -"Germany",49,"Hildburghausen","03685" -"Germany",49,"Eisfeld","03686" -"Germany",49,"Masserberg","036870" -"Germany",49,"Bad Colberg-Heldburg","036871" -"Germany",49,"Themar","036873" -"Germany",49,"Schönbrunn b Hildburghaus","036874" -"Germany",49,"Straufhain-Streufdorf","036875" -"Germany",49,"Oberland","036878" -"Germany",49,"Eisenach Thür","03691" -"Germany",49,"Grossenlupnitz","036920" -"Germany",49,"Wutha-Farnroda","036921" -"Germany",49,"Gerstungen","036922" -"Germany",49,"Treffurt","036923" -"Germany",49,"Mihla","036924" -"Germany",49,"Marksuhl","036925" -"Germany",49,"Creuzburg","036926" -"Germany",49,"Unterellen","036927" -"Germany",49,"Neuenhof Thür","036928" -"Germany",49,"Ruhla","036929" -"Germany",49,"Meiningen","03693" -"Germany",49,"Oepfershausen","036940" -"Germany",49,"Wasungen","036941" -"Germany",49,"Bettenhausen Thür","036943" -"Germany",49,"Rentwertshausen","036944" -"Germany",49,"Henneberg","036945" -"Germany",49,"Erbenhausen Thür","036946" -"Germany",49,"Jüchsen","036947" -"Germany",49,"Römhild","036948" -"Germany",49,"Obermaßfeld-Grimmenthal","036949" -"Germany",49,"Bad Salzungen","03695" -"Germany",49,"Bad Liebenstein","036961" -"Germany",49,"Vacha","036962" -"Germany",49,"Dorndorf Rhön","036963" -"Germany",49,"Dermbach Rhön","036964" -"Germany",49,"Stadtlengsfeld","036965" -"Germany",49,"Kaltennordheim","036966" -"Germany",49,"Geisa","036967" -"Germany",49,"Rossdorf Rhön","036968" -"Germany",49,"Merkers","036969" -"Germany",49,"Chemnitz Sachs","0371" -"Germany",49,"Wittgensdorf b Chemnitz","037200" -"Germany",49,"Claussnitz b Chemnitz","037202" -"Germany",49,"Gersdorf b Chemnitz","037203" -"Germany",49,"Lichtenstein Sachs","037204" -"Germany",49,"Frankenberg","037206" -"Germany",49,"Hainichen","037207" -"Germany",49,"Auerswalde","037208" -"Germany",49,"Einsiedel b Chemnitz","037209" -"Germany",49,"Meinersdorf","03721" -"Germany",49,"Limbach-Oberfrohna","03722" -"Germany",49,"Hohenstein-Ernstthal","03723" -"Germany",49,"Burgstädt","03724" -"Germany",49,"Zschopau","03725" -"Germany",49,"Flöha","03726" -"Germany",49,"Mittweida","03727" -"Germany",49,"Augustusburg","037291" -"Germany",49,"Oederan","037292" -"Germany",49,"Eppendorf Sachs","037293" -"Germany",49,"Grünhainichen","037294" -"Germany",49,"Lugau Erzgeb","037295" -"Germany",49,"Stollberg Erzgeb","037296" -"Germany",49,"Thum Sachs","037297" -"Germany",49,"Oelsnitz Erzgeb","037298" -"Germany",49,"Freiberg Sachs","03731" -"Germany",49,"Mulda Sachs","037320" -"Germany",49,"Frankenstein Sachs","037321" -"Germany",49,"Brand-Erbisdorf","037322" -"Germany",49,"Lichtenberg Erzgeb","037323" -"Germany",49,"Reinsberg Sachs","037324" -"Germany",49,"Niederbobritzsch","037325" -"Germany",49,"Frauenstein Sachs","037326" -"Germany",49,"Rechenberg-Bienenmühle","037327" -"Germany",49,"Grossschirma","037328" -"Germany",49,"Grosshartmannsdorf","037329" -"Germany",49,"Annaberg-Buchholz","03733" -"Germany",49,"Ehrenfriedersdorf","037341" -"Germany",49,"Cranzahl","037342" -"Germany",49,"Jöhstadt","037343" -"Germany",49,"Crottendorf Sachs","037344" -"Germany",49,"Geyer","037346" -"Germany",49,"Bärenstein Kr Annaberg","037347" -"Germany",49,"Oberwiesenthal Kurort","037348" -"Germany",49,"Scheibenberg","037349" -"Germany",49,"Marienberg Sachs","03735" -"Germany",49,"Olbernhau","037360" -"Germany",49,"Neuhausen Erzgeb","037361" -"Germany",49,"Seiffen Erzgeb","037362" -"Germany",49,"Zöblitz","037363" -"Germany",49,"Reitzenhain Erzgeb","037364" -"Germany",49,"Sayda","037365" -"Germany",49,"Rübenau","037366" -"Germany",49,"Lengefeld Erzgeb","037367" -"Germany",49,"Deutschneudorf","037368" -"Germany",49,"Wolkenstein","037369" -"Germany",49,"Rochlitz","03737" -"Germany",49,"Penig","037381" -"Germany",49,"Geringswalde","037382" -"Germany",49,"Lunzenau","037383" -"Germany",49,"Wechselburg","037384" -"Germany",49,"Plauen","03741" -"Germany",49,"Oelsnitz Vogtl","037421" -"Germany",49,"Markneukirchen","037422" -"Germany",49,"Adorf Vogtl","037423" -"Germany",49,"Eichigt","037430" -"Germany",49,"Mehltheuer Vogtl","037431" -"Germany",49,"Pausa Vogtl","037432" -"Germany",49,"Gutenfürst","037433" -"Germany",49,"Bobenneukirchen","037434" -"Germany",49,"Reuth b Plauen","037435" -"Germany",49,"Weischlitz","037436" -"Germany",49,"Bad Elster","037437" -"Germany",49,"Bad Brambach","037438" -"Germany",49,"Jocketa","037439" -"Germany",49,"Auerbach Vogtl","03744" -"Germany",49,"Falkenstein Vogtl","03745" -"Germany",49,"Rothenkirchen Vogtl","037462" -"Germany",49,"Bergen Vogtl","037463" -"Germany",49,"Schöneck Vogtl","037464" -"Germany",49,"Tannenbergsthal Vogtl","037465" -"Germany",49,"Klingenthal Sachs","037467" -"Germany",49,"Treuen Vogtl","037468" -"Germany",49,"Zwickau","0375" -"Germany",49,"Neumark Sachs","037600" -"Germany",49,"Mülsen Skt Jacob","037601" -"Germany",49,"Kirchberg Sachs","037602" -"Germany",49,"Wildenfels","037603" -"Germany",49,"Mosel","037604" -"Germany",49,"Hartenstein Sachs","037605" -"Germany",49,"Lengenfeld Vogtl","037606" -"Germany",49,"Ebersbrunn Sachs","037607" -"Germany",49,"Waldenburg Sachs","037608" -"Germany",49,"Wolkenburg Mulde","037609" -"Germany",49,"Werdau Sachs","03761" -"Germany",49,"Crimmitschau","03762" -"Germany",49,"Glauchau","03763" -"Germany",49,"Meerane","03764" -"Germany",49,"Reichenbach Vogtl","03765" -"Germany",49,"Aue Sachs","03771" -"Germany",49,"Schneeberg Erzgeb","03772" -"Germany",49,"Johanngeorgenstadt","03773" -"Germany",49,"Schwarzenberg","03774" -"Germany",49,"Eibenstock","037752" -"Germany",49,"Zwönitz","037754" -"Germany",49,"Schönheide Erzgeb","037755" -"Germany",49,"Breitenbrunn Erzgeb","037756" -"Germany",49,"Rittersgrün","037757" -"Germany",49,"Rostock","0381" -"Germany",49,"Gelbensande","038201" -"Germany",49,"Volkenshagen","038202" -"Germany",49,"Bad Doberan","038203" -"Germany",49,"Broderstorf","038204" -"Germany",49,"Tessin b Rostock","038205" -"Germany",49,"Graal-Müritz Seeheilbad","038206" -"Germany",49,"Stäbelow","038207" -"Germany",49,"Kavelstorf","038208" -"Germany",49,"Sanitz b Rostock","038209" -"Germany",49,"Ribnitz-Damgarten","03821" -"Germany",49,"Wustrow Ostseebad","038220" -"Germany",49,"Marlow","038221" -"Germany",49,"Semlow","038222" -"Germany",49,"Saal Vorpom","038223" -"Germany",49,"Gresenhorst","038224" -"Germany",49,"Trinwillershagen","038225" -"Germany",49,"Dierhagen Ostseebad","038226" -"Germany",49,"Lüdershagen b Barth","038227" -"Germany",49,"Dettmannsdorf-Kölzow","038228" -"Germany",49,"Bad Sülze","038229" -"Germany",49,"Barth","038231" -"Germany",49,"Zingst Ostseebad","038232" -"Germany",49,"Prerow Ostseebad","038233" -"Germany",49,"Born a Darß","038234" -"Germany",49,"Kröpelin","038292" -"Germany",49,"Kühlungsborn Ostseebad","038293" -"Germany",49,"Neubukow","038294" -"Germany",49,"Satow b Bad Doberan","038295" -"Germany",49,"Rerik Ostseebad","038296" -"Germany",49,"Moitin","038297" -"Germany",49,"Insel Hiddensee","038300" -"Germany",49,"Putbus","038301" -"Germany",49,"Sagard","038302" -"Germany",49,"Sellin Ostseebad","038303" -"Germany",49,"Garz Rügen","038304" -"Germany",49,"Gingst","038305" -"Germany",49,"Samtens","038306" -"Germany",49,"Poseritz","038307" -"Germany",49,"Göhren Rügen","038308" -"Germany",49,"Trent","038309" -"Germany",49,"Stralsund","03831" -"Germany",49,"Tribsees","038320" -"Germany",49,"Martensdorf b Stralsund","038321" -"Germany",49,"Richtenberg","038322" -"Germany",49,"Prohn","038323" -"Germany",49,"Velgast","038324" -"Germany",49,"Rolofshagen","038325" -"Germany",49,"Grimmen","038326" -"Germany",49,"Elmenhorst Vorpom","038327" -"Germany",49,"Miltzow","038328" -"Germany",49,"Rakow Vorpom","038331" -"Germany",49,"Gross Bisdorf","038332" -"Germany",49,"Horst b Grimmen","038333" -"Germany",49,"Grammendorf","038334" -"Germany",49,"Greifswald","03834" -"Germany",49,"Mesekenhagen","038351" -"Germany",49,"Kemnitz b Greifswald","038352" -"Germany",49,"Gützkow b Greifswald","038353" -"Germany",49,"Wusterhusen","038354" -"Germany",49,"Züssow","038355" -"Germany",49,"Behrenhoff","038356" -"Germany",49,"Wolgast","03836" -"Germany",49,"Kröslin","038370" -"Germany",49,"Karlshagen","038371" -"Germany",49,"Usedom","038372" -"Germany",49,"Katzow","038373" -"Germany",49,"Lassan b Wolgast","038374" -"Germany",49,"Koserow","038375" -"Germany",49,"Zirchow","038376" -"Germany",49,"Zinnowitz","038377" -"Germany",49,"Heringsdorf Seebad","038378" -"Germany",49,"Benz Usedom","038379" -"Germany",49,"Bergen auf Rügen","03838" -"Germany",49,"Altenkirchen Rügen","038391" -"Germany",49,"Sassnitz","038392" -"Germany",49,"Binz Ostseebad","038393" -"Germany",49,"Wismar Meckl","03841" -"Germany",49,"Neukloster","038422" -"Germany",49,"Bad Kleinen","038423" -"Germany",49,"Bobitz","038424" -"Germany",49,"Kirchdorf Poel","038425" -"Germany",49,"Neuburg-Steinhausen","038426" -"Germany",49,"Blowatz","038427" -"Germany",49,"Hohenkirchen b Wismar","038428" -"Germany",49,"Glasin","038429" -"Germany",49,"Güstrow","03843" -"Germany",49,"Schwaan","03844" -"Germany",49,"Tarnow b Bützow","038450" -"Germany",49,"Hoppenrade b Güstrow","038451" -"Germany",49,"Lalendorf","038452" -"Germany",49,"Mistorf","038453" -"Germany",49,"Kritzkow","038454" -"Germany",49,"Plaaz","038455" -"Germany",49,"Langhagen b Güstrow","038456" -"Germany",49,"Krakow am See","038457" -"Germany",49,"Zehna","038458" -"Germany",49,"Laage","038459" -"Germany",49,"Bützow","038461" -"Germany",49,"Baumgarten Meckl","038462" -"Germany",49,"Bernitt","038464" -"Germany",49,"Jürgenshagen","038466" -"Germany",49,"Sternberg","03847" -"Germany",49,"Witzin","038481" -"Germany",49,"Warin","038482" -"Germany",49,"Brüel","038483" -"Germany",49,"Ventschow","038484" -"Germany",49,"Dabel","038485" -"Germany",49,"Gustävel","038486" -"Germany",49,"Demen","038488" -"Germany",49,"Schwerin Meckl","0385" -"Germany",49,"Raben Steinfeld","03860" -"Germany",49,"Plate","03861" -"Germany",49,"Crivitz","03863" -"Germany",49,"Holthusen","03865" -"Germany",49,"Cambs","03866" -"Germany",49,"Lübstorf","03867" -"Germany",49,"Rastow","03868" -"Germany",49,"Dümmer","03869" -"Germany",49,"Parchim","03871" -"Germany",49,"Grebbin","038720" -"Germany",49,"Ziegendorf","038721" -"Germany",49,"Raduhn","038722" -"Germany",49,"Kladrum","038723" -"Germany",49,"Siggelkow","038724" -"Germany",49,"Gross Godems","038725" -"Germany",49,"Spornitz","038726" -"Germany",49,"Mestlin","038727" -"Germany",49,"Domsühl","038728" -"Germany",49,"Marnitz","038729" -"Germany",49,"Lübz","038731" -"Germany",49,"Gallin b Lübz","038732" -"Germany",49,"Karbow-Vietlübbe","038733" -"Germany",49,"Plau am See","038735" -"Germany",49,"Goldberg Meckl","038736" -"Germany",49,"Ganzlin","038737" -"Germany",49,"Karow b Lübz","038738" -"Germany",49,"Ludwigslust Meckl","03874" -"Germany",49,"Malliss","038750" -"Germany",49,"Picher","038751" -"Germany",49,"Zierzow b Ludwigslust","038752" -"Germany",49,"Wöbbelin","038753" -"Germany",49,"Leussow b Ludwigslust","038754" -"Germany",49,"Eldena","038755" -"Germany",49,"Grabow Meckl","038756" -"Germany",49,"Neustadt-Glewe","038757" -"Germany",49,"Dömitz","038758" -"Germany",49,"Tewswoos","038759" -"Germany",49,"Perleberg","03876" -"Germany",49,"Wittenberge","03877" -"Germany",49,"Lanz Brandenb","038780" -"Germany",49,"Mellen","038781" -"Germany",49,"Reetz b Perleberg","038782" -"Germany",49,"Dallmin","038783" -"Germany",49,"Kleinow Kr Prignitz","038784" -"Germany",49,"Berge b Perleberg","038785" -"Germany",49,"Glöwen","038787" -"Germany",49,"Gross Warnow","038788" -"Germany",49,"Wolfshagen b Perleberg","038789" -"Germany",49,"Bad Wilsnack","038791" -"Germany",49,"Lenzen (Elbe)","038792" -"Germany",49,"Dergenthin","038793" -"Germany",49,"Cumlosen","038794" -"Germany",49,"Viesecke","038796" -"Germany",49,"Karstädt Kr Prignitz","038797" -"Germany",49,"Grevesmühlen","03881" -"Germany",49,"Lüdersdorf Meckl","038821" -"Germany",49,"Diedrichshagen b Grevesmühlen","038822" -"Germany",49,"Selmsdorf","038823" -"Germany",49,"Mallentin","038824" -"Germany",49,"Klütz","038825" -"Germany",49,"Dassow","038826" -"Germany",49,"Kalkhorst","038827" -"Germany",49,"Schönberg Meckl","038828" -"Germany",49,"Hagenow","03883" -"Germany",49,"Neuhaus Elbe","038841" -"Germany",49,"Lüttenmark","038842" -"Germany",49,"Bennin","038843" -"Germany",49,"Gülze","038844" -"Germany",49,"Kaarssen","038845" -"Germany",49,"Boizenburg Elbe","038847" -"Germany",49,"Vellahn","038848" -"Germany",49,"Gammelin","038850" -"Germany",49,"Zarrentin Meckl","038851" -"Germany",49,"Wittenburg","038852" -"Germany",49,"Drönnewitz b Hagenow","038853" -"Germany",49,"Redefin","038854" -"Germany",49,"Lübtheen","038855" -"Germany",49,"Pritzier b Hagenow","038856" -"Germany",49,"Lassahn","038858" -"Germany",49,"Alt Zachun","038859" -"Germany",49,"Gadebusch","03886" -"Germany",49,"Mühlen Eichsen","038871" -"Germany",49,"Rehna","038872" -"Germany",49,"Carlow","038873" -"Germany",49,"Lützow","038874" -"Germany",49,"Schlagsdorf b Gadebusch","038875" -"Germany",49,"Roggendorf","038876" -"Germany",49,"Beetzendorf","039000" -"Germany",49,"Apenburg","039001" -"Germany",49,"Oebisfelde","039002" -"Germany",49,"Jübar","039003" -"Germany",49,"Köckte b Gardelegen","039004" -"Germany",49,"Kusey","039005" -"Germany",49,"Miesterhorst","039006" -"Germany",49,"Tangeln","039007" -"Germany",49,"Kunrau","039008" -"Germany",49,"Badel","039009" -"Germany",49,"Salzwedel","03901" -"Germany",49,"Diesdorf Altm","03902" -"Germany",49,"Brunau","039030" -"Germany",49,"Dähre","039031" -"Germany",49,"Mahlsdorf b Salzwedel","039032" -"Germany",49,"Wallstawe","039033" -"Germany",49,"Fleetmark","039034" -"Germany",49,"Kuhfelde","039035" -"Germany",49,"Binde","039036" -"Germany",49,"Pretzier","039037" -"Germany",49,"Henningen","039038" -"Germany",49,"Bonese","039039" -"Germany",49,"Haldensleben","03904" -"Germany",49,"Bartensleben","039050" -"Germany",49,"Calvörde","039051" -"Germany",49,"Erxleben b Haldensleben","039052" -"Germany",49,"Süplingen","039053" -"Germany",49,"Flechtingen","039054" -"Germany",49,"Hörsingen","039055" -"Germany",49,"Klüden","039056" -"Germany",49,"Rätzlingen Sachs-Anh","039057" -"Germany",49,"Uthmöden","039058" -"Germany",49,"Wegenstedt","039059" -"Germany",49,"Weferlingen","039061" -"Germany",49,"Bebertal","039062" -"Germany",49,"Gardelegen","03907" -"Germany",49,"Kalbe Milde","039080" -"Germany",49,"Kakerbeck Sachs-Anh","039081" -"Germany",49,"Mieste","039082" -"Germany",49,"Messdorf","039083" -"Germany",49,"Lindstedt","039084" -"Germany",49,"Zichtau","039085" -"Germany",49,"Jävenitz","039086" -"Germany",49,"Jerchel Altmark","039087" -"Germany",49,"Letzlingen","039088" -"Germany",49,"Bismark Altmark","039089" -"Germany",49,"Klötze Altmark","03909" -"Germany",49,"Magdeburg","0391" -"Germany",49,"Gommern","039200" -"Germany",49,"Wolmirstedt","039201" -"Germany",49,"Gross Ammensleben","039202" -"Germany",49,"Barleben","039203" -"Germany",49,"Niederndodeleben","039204" -"Germany",49,"Langenweddingen","039205" -"Germany",49,"Eichenbarleben","039206" -"Germany",49,"Colbitz","039207" -"Germany",49,"Loitsche","039208" -"Germany",49,"Wanzleben","039209" -"Germany",49,"Burg b Magdeburg","03921" -"Germany",49,"Möckern b Magdeburg","039221" -"Germany",49,"Möser","039222" -"Germany",49,"Theessen","039223" -"Germany",49,"Büden","039224" -"Germany",49,"Altengrabow","039225" -"Germany",49,"Hohenziatz","039226" -"Germany",49,"Zerbst","03923" -"Germany",49,"Leitzkau","039241" -"Germany",49,"Prödel","039242" -"Germany",49,"Nedlitz b Zerbst","039243" -"Germany",49,"Steutz","039244" -"Germany",49,"Loburg","039245" -"Germany",49,"Lindau Anh","039246" -"Germany",49,"Güterglück","039247" -"Germany",49,"Dobritz","039248" -"Germany",49,"Stassfurt","03925" -"Germany",49,"Güsten Anh","039262" -"Germany",49,"Unseburg","039263" -"Germany",49,"Kroppenstedt","039264" -"Germany",49,"Löderburg","039265" -"Germany",49,"Förderstedt","039266" -"Germany",49,"Schneidlingen","039267" -"Germany",49,"Egeln","039268" -"Germany",49,"Schönebeck Elbe","03928" -"Germany",49,"Calbe Saale","039291" -"Germany",49,"Biederitz","039292" -"Germany",49,"Dreileben","039293" -"Germany",49,"Gross Rosenburg","039294" -"Germany",49,"Zuchau","039295" -"Germany",49,"Welsleben","039296" -"Germany",49,"Eickendorf Kr Schönebeck","039297" -"Germany",49,"Barby Elbe","039298" -"Germany",49,"Stendal","03931" -"Germany",49,"Schinne","039320" -"Germany",49,"Arneburg","039321" -"Germany",49,"Tangermünde","039322" -"Germany",49,"Schönhausen Elbe","039323" -"Germany",49,"Kläden b Stendal","039324" -"Germany",49,"Vinzelberg","039325" -"Germany",49,"Klietz","039327" -"Germany",49,"Rochau","039328" -"Germany",49,"Möringen","039329" -"Germany",49,"Genthin","03933" -"Germany",49,"Redekin","039341" -"Germany",49,"Gladau","039342" -"Germany",49,"Jerichow","039343" -"Germany",49,"Güsen","039344" -"Germany",49,"Parchen","039345" -"Germany",49,"Tucheim","039346" -"Germany",49,"Kade","039347" -"Germany",49,"Klitsche","039348" -"Germany",49,"Parey Elbe","039349" -"Germany",49,"Tangerhütte","03935" -"Germany",49,"Lüderitz","039361" -"Germany",49,"Grieben b Tangerhütte","039362" -"Germany",49,"Angern","039363" -"Germany",49,"Dolle","039364" -"Germany",49,"Bellingen b Stendal","039365" -"Germany",49,"Kehnert","039366" -"Germany",49,"Osterburg Altmark","03937" -"Germany",49,"Kamern","039382" -"Germany",49,"Sandau Elbe","039383" -"Germany",49,"Arendsee Altmark","039384" -"Germany",49,"Seehausen Altmark","039386" -"Germany",49,"Havelberg","039387" -"Germany",49,"Goldbeck Altm","039388" -"Germany",49,"Schollene","039389" -"Germany",49,"Iden","039390" -"Germany",49,"Lückstedt","039391" -"Germany",49,"Rönnebeck Sachs-Ahn","039392" -"Germany",49,"Werben Elbe","039393" -"Germany",49,"Hohenberg-Krusemark","039394" -"Germany",49,"Wanzer","039395" -"Germany",49,"Neukirchen Altmark","039396" -"Germany",49,"Geestgottberg","039397" -"Germany",49,"Gross Garz","039398" -"Germany",49,"Kleinau","039399" -"Germany",49,"Wefensleben","039400" -"Germany",49,"Neuwegersleben","039401" -"Germany",49,"Völpke","039402" -"Germany",49,"Gröningen Sachs-Ahn","039403" -"Germany",49,"Ausleben","039404" -"Germany",49,"Hötensleben","039405" -"Germany",49,"Harbke","039406" -"Germany",49,"Seehausen Börde","039407" -"Germany",49,"Hadmersleben","039408" -"Germany",49,"Eilsleben","039409" -"Germany",49,"Halberstadt","03941" -"Germany",49,"Osterwieck","039421" -"Germany",49,"Badersleben","039422" -"Germany",49,"Wegeleben","039423" -"Germany",49,"Schwanebeck Sachs-Anh","039424" -"Germany",49,"Dingelstedt a Huy","039425" -"Germany",49,"Hessen","039426" -"Germany",49,"Ströbeck","039427" -"Germany",49,"Pabstorf","039428" -"Germany",49,"Wernigerode","03943" -"Germany",49,"Blankenburg Harz","03944" -"Germany",49,"Wasserleben","039451" -"Germany",49,"Ilsenburg","039452" -"Germany",49,"Derenburg","039453" -"Germany",49,"Elbingerode Harz","039454" -"Germany",49,"Schierke","039455" -"Germany",49,"Altenbrak","039456" -"Germany",49,"Benneckenstein Harz","039457" -"Germany",49,"Heudeber","039458" -"Germany",49,"Hasselfelde","039459" -"Germany",49,"Quedlinburg","03946" -"Germany",49,"Thale","03947" -"Germany",49,"Hedersleben b Aschersleben","039481" -"Germany",49,"Gatersleben","039482" -"Germany",49,"Ballenstedt","039483" -"Germany",49,"Harzgerode","039484" -"Germany",49,"Gernrode Harz","039485" -"Germany",49,"Friedrichsbrunn","039487" -"Germany",49,"Güntersberge","039488" -"Germany",49,"Strassberg Harz","039489" -"Germany",49,"Oschersleben Bode","03949" -"Germany",49,"Neubrandenburg","0395" -"Germany",49,"Zwiedorf","039600" -"Germany",49,"Friedland Meckl","039601" -"Germany",49,"Kleeth","039602" -"Germany",49,"Burg Stargard","039603" -"Germany",49,"Wildberg b Altentreptow","039604" -"Germany",49,"Gross Nemerow","039605" -"Germany",49,"Glienke","039606" -"Germany",49,"Kotelow","039607" -"Germany",49,"Staven","039608" -"Germany",49,"Altentreptow","03961" -"Germany",49,"Penzlin b Waren","03962" -"Germany",49,"Woldegk","03963" -"Germany",49,"Bredenfelde b Strasburg","03964" -"Germany",49,"Burow b Altentreptow","03965" -"Germany",49,"Cölpin","03966" -"Germany",49,"Oertzenhof b Strasburg","03967" -"Germany",49,"Schönbeck Meckl","03968" -"Germany",49,"Siedenbollentin","03969" -"Germany",49,"Anklam","03971" -"Germany",49,"Liepen b Anklam","039721" -"Germany",49,"Sarnow b Anklam","039722" -"Germany",49,"Krien","039723" -"Germany",49,"Klein Bünzow","039724" -"Germany",49,"Ducherow","039726" -"Germany",49,"Spantekow","039727" -"Germany",49,"Medow b Anklam","039728" -"Germany",49,"Pasewalk","03973" -"Germany",49,"Nechlin","039740" -"Germany",49,"Jatznick","039741" -"Germany",49,"Brüssow b Pasewalk","039742" -"Germany",49,"Zerrenthin","039743" -"Germany",49,"Rothenklempenow","039744" -"Germany",49,"Hetzdorf b Strasburg","039745" -"Germany",49,"Krackow","039746" -"Germany",49,"Züsedom","039747" -"Germany",49,"Viereck","039748" -"Germany",49,"Grambow b Pasewalk","039749" -"Germany",49,"Penkun","039751" -"Germany",49,"Blumenhagen b Strasburg","039752" -"Germany",49,"Strasburg","039753" -"Germany",49,"Löcknitz Vorpom","039754" -"Germany",49,"Torgelow b Ueckermünde","03976" -"Germany",49,"Ueckermünde","039771" -"Germany",49,"Rothemühl","039772" -"Germany",49,"Altwarp","039773" -"Germany",49,"Mönkebude","039774" -"Germany",49,"Ahlbeck b Torgelow","039775" -"Germany",49,"Hintersee","039776" -"Germany",49,"Borkenfriede","039777" -"Germany",49,"Ferdinandshof b Torgelow","039778" -"Germany",49,"Eggesin","039779" -"Germany",49,"Neustrelitz","03981" -"Germany",49,"Triepkendorf","039820" -"Germany",49,"Carpin","039821" -"Germany",49,"Kratzeburg","039822" -"Germany",49,"Rechlin","039823" -"Germany",49,"Hohenzieritz","039824" -"Germany",49,"Wokuhl","039825" -"Germany",49,"Blankensee b Neustrelitz","039826" -"Germany",49,"Schwarz b Neustrelitz","039827" -"Germany",49,"Wustrow Kr Mecklenburg-Strelitz","039828" -"Germany",49,"Blankenförde","039829" -"Germany",49,"Feldberg Meckl","039831" -"Germany",49,"Wesenberg Meckl","039832" -"Germany",49,"Mirow Kr Neustrelitz","039833" -"Germany",49,"Prenzlau","03984" -"Germany",49,"Göritz b Prenzlau","039851" -"Germany",49,"Schönermark b Prenzlau","039852" -"Germany",49,"Holzendorf b Prenzlau","039853" -"Germany",49,"Kleptow","039854" -"Germany",49,"Parmen-Weggun","039855" -"Germany",49,"Beenz b Prenzlau","039856" -"Germany",49,"Drense","039857" -"Germany",49,"Bietikow","039858" -"Germany",49,"Fürstenwerder","039859" -"Germany",49,"Gramzow b Prenzlau","039861" -"Germany",49,"Schmölln b Prenzlau","039862" -"Germany",49,"Seehausen b Prenzlau","039863" -"Germany",49,"Templin","03987" -"Germany",49,"Ringenwalde b Templin","039881" -"Germany",49,"Gollin","039882" -"Germany",49,"Groß Dölln","039883" -"Germany",49,"Hassleben b Prenzlau","039884" -"Germany",49,"Jakobshagen","039885" -"Germany",49,"Milmersdorf","039886" -"Germany",49,"Gerswalde","039887" -"Germany",49,"Lychen","039888" -"Germany",49,"Boitzenburg","039889" -"Germany",49,"Waren Müritz","03991" -"Germany",49,"Ankershagen","039921" -"Germany",49,"Dambeck b Röbel","039922" -"Germany",49,"Priborn","039923" -"Germany",49,"Stuer","039924" -"Germany",49,"Wredenhagen","039925" -"Germany",49,"Grabowhöfe","039926" -"Germany",49,"Nossentiner Hütte","039927" -"Germany",49,"Möllenhagen","039928" -"Germany",49,"Jabel b Waren","039929" -"Germany",49,"Röbel Müritz","039931" -"Germany",49,"Malchow b Waren","039932" -"Germany",49,"Vollrathsruhe","039933" -"Germany",49,"Groß Plasten","039934" -"Germany",49,"Malchin","03994" -"Germany",49,"Faulenrost","039951" -"Germany",49,"Grammentin","039952" -"Germany",49,"Schwinkendorf","039953" -"Germany",49,"Stavenhagen Reuterstadt","039954" -"Germany",49,"Jürgenstorf Meckl","039955" -"Germany",49,"Neukalen","039956" -"Germany",49,"Gielow","039957" -"Germany",49,"Dargun","039959" -"Germany",49,"Teterow","03996" -"Germany",49,"Gnoien","039971" -"Germany",49,"Walkendorf","039972" -"Germany",49,"Altkalen","039973" -"Germany",49,"Thürkow","039975" -"Germany",49,"Groß Bützin","039976" -"Germany",49,"Jördenstorf","039977" -"Germany",49,"Gross Roge","039978" -"Germany",49,"Demmin","03998" -"Germany",49,"Daberkow","039991" -"Germany",49,"Görmin","039992" -"Germany",49,"Hohenmocker","039993" -"Germany",49,"Metschow","039994" -"Germany",49,"Nossendorf","039995" -"Germany",49,"Törpin","039996" -"Germany",49,"Jarmen","039997" -"Germany",49,"Loitz b Demmin","039998" -"Germany",49,"Tutow","039999" -"Germany",49,"Hamburg","040" -"Germany",49,"Pinneberg","04101" -"Germany",49,"Ahrensburg","04102" -"Germany",49,"Wedel","04103" -"Germany",49,"Aumühle b Hamburg","04104" -"Germany",49,"Seevetal","04105" -"Germany",49,"Quickborn Kr Pinneberg","04106" -"Germany",49,"Siek Kr Stormarn","04107" -"Germany",49,"Rosengarten Kr Harburg","04108" -"Germany",49,"Tangstedt Bz Hamburg","04109" -"Germany",49,"Ellerhoop","04120" -"Germany",49,"Elmshorn","04121" -"Germany",49,"Uetersen","04122" -"Germany",49,"Barmstedt","04123" -"Germany",49,"Glückstadt","04124" -"Germany",49,"Seestermühe","04125" -"Germany",49,"Horst Holstein","04126" -"Germany",49,"Westerhorn","04127" -"Germany",49,"Kollmar","04128" -"Germany",49,"Haseldorf","04129" -"Germany",49,"Lüneburg","04131" -"Germany",49,"Amelinghausen","04132" -"Germany",49,"Wittorf Kr Lüneburg","04133" -"Germany",49,"Embsen Kr Lünebeburg","04134" -"Germany",49,"Kirchgellersen","04135" -"Germany",49,"Scharnebeck","04136" -"Germany",49,"Barendorf","04137" -"Germany",49,"Betzendorf Kr Lünebeburg","04138" -"Germany",49,"Hohnstorf Elbe","04139" -"Germany",49,"Estorf Kr Stade","04140" -"Germany",49,"Stade","04141" -"Germany",49,"Steinkirchen Kr Stade","04142" -"Germany",49,"Drochtersen","04143" -"Germany",49,"Himmelpforten","04144" -"Germany",49,"Stade-Bützfleth","04146" -"Germany",49,"Drochtersen-Assel","04148" -"Germany",49,"Fredenbeck","04149" -"Germany",49,"Schwarzenbek","04151" -"Germany",49,"Geesthacht","04152" -"Germany",49,"Lauenburg Elbe","04153" -"Germany",49,"Trittau","04154" -"Germany",49,"Büchen","04155" -"Germany",49,"Talkau","04156" -"Germany",49,"Roseburg","04158" -"Germany",49,"Basthorst","04159" -"Germany",49,"Buxtehude","04161" -"Germany",49,"Jork","04162" -"Germany",49,"Horneburg Niederelbe","04163" -"Germany",49,"Harsefeld","04164" -"Germany",49,"Hollenstedt Nordheide","04165" -"Germany",49,"Ahlerstedt","04166" -"Germany",49,"Apensen","04167" -"Germany",49,"Neu Wulmstorf-Elstorf","04168" -"Germany",49,"Sauensiek","04169" -"Germany",49,"Winsen Luhe","04171" -"Germany",49,"Salzhausen","04172" -"Germany",49,"Wulfsen","04173" -"Germany",49,"Stelle Kr Harburg","04174" -"Germany",49,"Egestorf Nordheide","04175" -"Germany",49,"Marschacht","04176" -"Germany",49,"Drage Elbe","04177" -"Germany",49,"Radbruch","04178" -"Germany",49,"Winsen-Tönnhausen","04179" -"Germany",49,"Königsmoor","04180" -"Germany",49,"Buchholz in der Nordheide","04181" -"Germany",49,"Tostedt","04182" -"Germany",49,"Jesteburg","04183" -"Germany",49,"Hanstedt Nordheide","04184" -"Germany",49,"Marxen Auetal","04185" -"Germany",49,"Buchholz-Trelde","04186" -"Germany",49,"Holm-Seppensen","04187" -"Germany",49,"Welle Nordheide","04188" -"Germany",49,"Undeloh","04189" -"Germany",49,"Kaltenkirchen Holst","04191" -"Germany",49,"Bad Bramstedt","04192" -"Germany",49,"Henstedt-Ulzburg","04193" -"Germany",49,"Sievershütten","04194" -"Germany",49,"Hartenholm","04195" -"Germany",49,"Achim b Bremen","04202" -"Germany",49,"Weyhe b Bremen","04203" -"Germany",49,"Thedinghausen","04204" -"Germany",49,"Ottersberg","04205" -"Germany",49,"Stuhr-Heiligenrode","04206" -"Germany",49,"Oyten","04207" -"Germany",49,"Grasberg","04208" -"Germany",49,"Schwanewede","04209" -"Germany",49,"Bremen","0421" -"Germany",49,"Delmenhorst","04221" -"Germany",49,"Ganderkesee","04222" -"Germany",49,"Ganderkesee-Bookholzberg","04223" -"Germany",49,"Gross Ippener","04224" -"Germany",49,"Verden-Walle","04230" -"Germany",49,"Verden Aller","04231" -"Germany",49,"Langwedel Kr Verden","04232" -"Germany",49,"Blender","04233" -"Germany",49,"Dörverden","04234" -"Germany",49,"Langwedel-Etelsen","04235" -"Germany",49,"Kirchlinteln","04236" -"Germany",49,"Bendingbostel","04237" -"Germany",49,"Neddenaverbergen","04238" -"Germany",49,"Dörverden-Westen","04239" -"Germany",49,"Syke-Heiligenfelde","04240" -"Germany",49,"Bassum","04241" -"Germany",49,"Syke","04242" -"Germany",49,"Twistringen","04243" -"Germany",49,"Harpstedt","04244" -"Germany",49,"Neuenkirchen b Bassum","04245" -"Germany",49,"Twistringen-Heiligenloh","04246" -"Germany",49,"Affinghausen","04247" -"Germany",49,"Bassum-Neubruchhausen","04248" -"Germany",49,"Bassum-Nordwohlde","04249" -"Germany",49,"Hoya","04251" -"Germany",49,"Bruchhausen-Vilsen","04252" -"Germany",49,"Asendorf Kr Diepholz","04253" -"Germany",49,"Eystrup","04254" -"Germany",49,"Martfeld","04255" -"Germany",49,"Hilgermissen","04256" -"Germany",49,"Schweringen","04257" -"Germany",49,"Schwarme","04258" -"Germany",49,"Visselhövede-Wittorf","04260" -"Germany",49,"Rotenburg Wümme","04261" -"Germany",49,"Visselhövede","04262" -"Germany",49,"Scheessel","04263" -"Germany",49,"Sottrum Kr Rotenburg","04264" -"Germany",49,"Fintel","04265" -"Germany",49,"Brockel","04266" -"Germany",49,"Lauenbrück","04267" -"Germany",49,"Bötersen","04268" -"Germany",49,"Ahausen-Kirchwalsede","04269" -"Germany",49,"Sulingen","04271" -"Germany",49,"Siedenburg","04272" -"Germany",49,"Kirchdorf b Sulingen","04273" -"Germany",49,"Varrel b Sulingen","04274" -"Germany",49,"Ehrenburg","04275" -"Germany",49,"Borstel b Sulingen","04276" -"Germany",49,"Schwaförden","04277" -"Germany",49,"Zeven","04281" -"Germany",49,"Sittensen","04282" -"Germany",49,"Tarmstedt","04283" -"Germany",49,"Selsingen","04284" -"Germany",49,"Rhade b Zeven","04285" -"Germany",49,"Gyhum","04286" -"Germany",49,"Heeslingen-Boitzen","04287" -"Germany",49,"Horstedt Kr Rotenburg","04288" -"Germany",49,"Kirchtimke","04289" -"Germany",49,"Ritterhude","04292" -"Germany",49,"Ottersberg-Fischerhude","04293" -"Germany",49,"Riede Kr Verden","04294" -"Germany",49,"Emtinghausen","04295" -"Germany",49,"Schwanewede-Aschwarden","04296" -"Germany",49,"Ottersberg-Posthausen","04297" -"Germany",49,"Lilienthal","04298" -"Germany",49,"Kirchbarkau","04302" -"Germany",49,"Schlesen","04303" -"Germany",49,"Westensee","04305" -"Germany",49,"Raisdorf","04307" -"Germany",49,"Schwedeneck","04308" -"Germany",49,"Kiel","0431" -"Germany",49,"Heidmühlen","04320" -"Germany",49,"Neumünster","04321" -"Germany",49,"Bordesholm","04322" -"Germany",49,"Bornhöved","04323" -"Germany",49,"Brokstedt","04324" -"Germany",49,"Wankendorf","04326" -"Germany",49,"Grossenaspe","04327" -"Germany",49,"Rickling","04328" -"Germany",49,"Langwedel Holst","04329" -"Germany",49,"Emkendorf","04330" -"Germany",49,"Rendsburg","04331" -"Germany",49,"Hamdorf b Rendsburg","04332" -"Germany",49,"Erfde","04333" -"Germany",49,"Bredenbek b Rendsburg","04334" -"Germany",49,"Hohn b Rendsburg","04335" -"Germany",49,"Owschlag","04336" -"Germany",49,"Jevenstedt","04337" -"Germany",49,"Alt Duvenstedt","04338" -"Germany",49,"Christiansholm","04339" -"Germany",49,"Achterwehr","04340" -"Germany",49,"Preetz Kr Plön","04342" -"Germany",49,"Laboe","04343" -"Germany",49,"Schönberg Holstein","04344" -"Germany",49,"Gettorf","04346" -"Germany",49,"Flintbek","04347" -"Germany",49,"Schönkirchen","04348" -"Germany",49,"Dänischenhagen","04349" -"Germany",49,"Eckernförde","04351" -"Germany",49,"Damp","04352" -"Germany",49,"Ascheffel","04353" -"Germany",49,"Fleckeby","04354" -"Germany",49,"Rieseby","04355" -"Germany",49,"Gross Wittensee","04356" -"Germany",49,"Sehestedt Eider","04357" -"Germany",49,"Loose b Eckernförde","04358" -"Germany",49,"Oldenburg in Holstein","04361" -"Germany",49,"Heiligenhafen","04362" -"Germany",49,"Lensahn","04363" -"Germany",49,"Dahme Kr Ostholstein","04364" -"Germany",49,"Heringsdorf Holst","04365" -"Germany",49,"Grömitz-Cismar","04366" -"Germany",49,"Grossenbrode","04367" -"Germany",49,"Burg auf Fehmarn","04371" -"Germany",49,"Westfehmarn","04372" -"Germany",49,"Lütjenburg","04381" -"Germany",49,"Wangels","04382" -"Germany",49,"Grebin","04383" -"Germany",49,"Selent","04384" -"Germany",49,"Hohenfelde b Kiel","04385" -"Germany",49,"Nortorf b Neumünster","04392" -"Germany",49,"Boostedt","04393" -"Germany",49,"Bokhorst","04394" -"Germany",49,"Brake Unterweser","04401" -"Germany",49,"Rastede","04402" -"Germany",49,"Bad Zwischenahn","04403" -"Germany",49,"Elsfleth","04404" -"Germany",49,"Edewecht","04405" -"Germany",49,"Berne","04406" -"Germany",49,"Wardenburg","04407" -"Germany",49,"Hude Oldenburg","04408" -"Germany",49,"Westerstede-Ocholt","04409" -"Germany",49,"Oldenburg (Oldb)","0441" -"Germany",49,"Wilhelmshaven","04421" -"Germany",49,"Sande Kr Friesl","04422" -"Germany",49,"Fedderwarden","04423" -"Germany",49,"Wangerland-Hooksiel","04425" -"Germany",49,"Wangerland-Horumersiel","04426" -"Germany",49,"Wildeshausen","04431" -"Germany",49,"Dötlingen-Brettorf","04432" -"Germany",49,"Dötlingen","04433" -"Germany",49,"Colnrade","04434" -"Germany",49,"Grossenkneten","04435" -"Germany",49,"Vechta","04441" -"Germany",49,"Lohne Oldenburg","04442" -"Germany",49,"Dinklage","04443" -"Germany",49,"Goldenstedt","04444" -"Germany",49,"Visbek Kr Vechta","04445" -"Germany",49,"Bakum Kr Vechta","04446" -"Germany",49,"Vechta-Langförden","04447" -"Germany",49,"Varel Jadebusen","04451" -"Germany",49,"Zetel-Neuenburg","04452" -"Germany",49,"Zetel","04453" -"Germany",49,"Jade","04454" -"Germany",49,"Jade-Schweiburg","04455" -"Germany",49,"Varel-Altjührden","04456" -"Germany",49,"Wiefelstede-Spohle","04458" -"Germany",49,"Jever","04461" -"Germany",49,"Wittmund","04462" -"Germany",49,"Wangerland","04463" -"Germany",49,"Wittmund-Carolinensiel","04464" -"Germany",49,"Friedeburg Ostfriesl","04465" -"Germany",49,"Wittmund-Ardorf","04466" -"Germany",49,"Wittmund-Funnix","04467" -"Germany",49,"Friedeburg-Reepsholt","04468" -"Germany",49,"Wangerooge","04469" -"Germany",49,"Cloppenburg","04471" -"Germany",49,"Lastrup","04472" -"Germany",49,"Emstek","04473" -"Germany",49,"Garrel","04474" -"Germany",49,"Molbergen","04475" -"Germany",49,"Lastrup-Hemmelte","04477" -"Germany",49,"Cappeln Oldenburg","04478" -"Germany",49,"Molbergen-Peheim","04479" -"Germany",49,"Ovelgönne-Strückhausen","04480" -"Germany",49,"Hatten-Sandkrug","04481" -"Germany",49,"Hatten","04482" -"Germany",49,"Ovelgönne-Großenmeer","04483" -"Germany",49,"Hude-Wüsting","04484" -"Germany",49,"Elsfleth-Huntorf","04485" -"Germany",49,"Edewecht-Friedrichsfehn","04486" -"Germany",49,"Grossenkneten-Huntlosen","04487" -"Germany",49,"Westerstede","04488" -"Germany",49,"Apen","04489" -"Germany",49,"Friesoythe","04491" -"Germany",49,"Saterland","04492" -"Germany",49,"Friesoythe-Gehlenberg","04493" -"Germany",49,"Bösel Oldenburg","04494" -"Germany",49,"Friesoythe-Thüle","04495" -"Germany",49,"Friesoythe-Markhausen","04496" -"Germany",49,"Barßel-Harkebrügge","04497" -"Germany",49,"Saterland-Ramsloh","04498" -"Germany",49,"Barssel","04499" -"Germany",49,"Kastorf Holst","04501" -"Germany",49,"Lübeck-Travemünde","04502" -"Germany",49,"Timmendorfer Strand","04503" -"Germany",49,"Ratekau","04504" -"Germany",49,"Stockelsdorf-Curau","04505" -"Germany",49,"Stockelsdorf-Krumbeck","04506" -"Germany",49,"Krummesse","04508" -"Germany",49,"Groß Grönau","04509" -"Germany",49,"Lübeck","0451" -"Germany",49,"Eutin","04521" -"Germany",49,"Plön","04522" -"Germany",49,"Malente","04523" -"Germany",49,"Scharbeutz-Pönitz","04524" -"Germany",49,"Ahrensbök","04525" -"Germany",49,"Ascheberg Holstein","04526" -"Germany",49,"Bosau","04527" -"Germany",49,"Schönwalde am Bungsberg","04528" -"Germany",49,"Süsel-Bujendorf","04529" -"Germany",49,"Bad Oldesloe","04531" -"Germany",49,"Bargteheide","04532" -"Germany",49,"Reinfeld Holstein","04533" -"Germany",49,"Steinburg Kr Storman","04534" -"Germany",49,"Nahe","04535" -"Germany",49,"Steinhorst Lauenb","04536" -"Germany",49,"Sülfeld Holst","04537" -"Germany",49,"Westerau","04539" -"Germany",49,"Ratzeburg","04541" -"Germany",49,"Mölln Lauenb","04542" -"Germany",49,"Nusse","04543" -"Germany",49,"Berkenthin","04544" -"Germany",49,"Seedorf Lauenb","04545" -"Germany",49,"Mustin Lauenburg","04546" -"Germany",49,"Gudow Lauenb","04547" -"Germany",49,"Bühnsdorf","04550" -"Germany",49,"Bad Segeberg","04551" -"Germany",49,"Leezen","04552" -"Germany",49,"Geschendorf","04553" -"Germany",49,"Wahlstedt","04554" -"Germany",49,"Seedorf b Bad Segeberg","04555" -"Germany",49,"Ahrensbök-Gnissau","04556" -"Germany",49,"Blunk","04557" -"Germany",49,"Todesfelde","04558" -"Germany",49,"Wensin","04559" -"Germany",49,"Neustadt in Holstein","04561" -"Germany",49,"Grömitz","04562" -"Germany",49,"Scharbeutz-Haffkrug","04563" -"Germany",49,"Schashagen","04564" -"Germany",49,"Freienwill","04602" -"Germany",49,"Havetoft","04603" -"Germany",49,"Grossenwiehe","04604" -"Germany",49,"Medelby","04605" -"Germany",49,"Wanderup","04606" -"Germany",49,"Janneby","04607" -"Germany",49,"Handewitt","04608" -"Germany",49,"Eggebek","04609" -"Germany",49,"Flensburg","0461" -"Germany",49,"Schleswig","04621" -"Germany",49,"Taarstedt","04622" -"Germany",49,"Böklund","04623" -"Germany",49,"Kropp","04624" -"Germany",49,"Jübek","04625" -"Germany",49,"Treia","04626" -"Germany",49,"Dörpstedt","04627" -"Germany",49,"Barderup","04630" -"Germany",49,"Glücksburg Ostsee","04631" -"Germany",49,"Steinbergkirche","04632" -"Germany",49,"Satrup","04633" -"Germany",49,"Husby","04634" -"Germany",49,"Sörup","04635" -"Germany",49,"Langballig","04636" -"Germany",49,"Sterup","04637" -"Germany",49,"Tarp","04638" -"Germany",49,"Schafflund","04639" -"Germany",49,"Süderbrarup","04641" -"Germany",49,"Kappeln Schlei","04642" -"Germany",49,"Gelting Angeln","04643" -"Germany",49,"Karby","04644" -"Germany",49,"Mohrkirch","04646" -"Germany",49,"Sylt","04651" -"Germany",49,"Niebüll","04661" -"Germany",49,"Leck","04662" -"Germany",49,"Süderlügum","04663" -"Germany",49,"Neukirchen b Niebüll","04664" -"Germany",49,"Emmelsbüll-Horsbüll","04665" -"Germany",49,"Ladelund","04666" -"Germany",49,"Dagebüll","04667" -"Germany",49,"Klanxbüll","04668" -"Germany",49,"Bredstedt","04671" -"Germany",49,"Langenhorn","04672" -"Germany",49,"Joldelund","04673" -"Germany",49,"Ockholm","04674" -"Germany",49,"Wyk auf Föhr","04681" -"Germany",49,"Amrum","04682" -"Germany",49,"Oldsum","04683" -"Germany",49,"Langeneß Hallig","04684" -"Germany",49,"Sandstedt","04702" -"Germany",49,"Loxstedt-Donnern","04703" -"Germany",49,"Drangstedt","04704" -"Germany",49,"Wremen","04705" -"Germany",49,"Schiffdorf","04706" -"Germany",49,"Langen-Neuenwalde","04707" -"Germany",49,"Ringstedt","04708" -"Germany",49,"Bremerhaven","0471" -"Germany",49,"Cuxhaven","04721" -"Germany",49,"Cuxhaven-Altenbruch","04722" -"Germany",49,"Cuxhaven-Altenwalde","04723" -"Germany",49,"Cuxhaven-Lüdingworth","04724" -"Germany",49,"Helgoland","04725" -"Germany",49,"Nordenham","04731" -"Germany",49,"Stadland-Rodenkirchen","04732" -"Germany",49,"Butjadingen-Burhave","04733" -"Germany",49,"Stadland-Seefeld","04734" -"Germany",49,"Butjadingen-Stollhamm","04735" -"Germany",49,"Butjadingen-Tossens","04736" -"Germany",49,"Stadland-Schwei","04737" -"Germany",49,"Loxstedt-Dedesdorf","04740" -"Germany",49,"Nordholz b Bremerhaven","04741" -"Germany",49,"Dorum","04742" -"Germany",49,"Langen b Bremerhaven","04743" -"Germany",49,"Loxstedt","04744" -"Germany",49,"Bad Bederkesa","04745" -"Germany",49,"Hagen b Bremerhaven","04746" -"Germany",49,"Beverstedt","04747" -"Germany",49,"Stubben b Bremerhaven","04748" -"Germany",49,"Schiffdorf-Geestenseth","04749" -"Germany",49,"Otterndorf","04751" -"Germany",49,"Neuhaus Oste","04752" -"Germany",49,"Balje","04753" -"Germany",49,"Bülkau","04754" -"Germany",49,"Ihlienworth","04755" -"Germany",49,"Odisheim","04756" -"Germany",49,"Wanna","04757" -"Germany",49,"Nordleda","04758" -"Germany",49,"Bremervörde","04761" -"Germany",49,"Kutenholz","04762" -"Germany",49,"Gnarrenburg","04763" -"Germany",49,"Gnarrenburg-Klenkendorf","04764" -"Germany",49,"Ebersdorf b Bremervörde","04765" -"Germany",49,"Basdahl","04766" -"Germany",49,"Bremervörde-Bevern","04767" -"Germany",49,"Hipstedt","04768" -"Germany",49,"Bremervörde-Iselersheim","04769" -"Germany",49,"Wischhafen","04770" -"Germany",49,"Hemmoor","04771" -"Germany",49,"Oberndorf Oste","04772" -"Germany",49,"Lamstedt","04773" -"Germany",49,"Hechthausen","04774" -"Germany",49,"Grossenwörden","04775" -"Germany",49,"Osten-Altendorf","04776" -"Germany",49,"Cadenberge","04777" -"Germany",49,"Wingst","04778" -"Germany",49,"Freiburg Elbe","04779" -"Germany",49,"Osterholz-Scharmbeck","04791" -"Germany",49,"Worpswede","04792" -"Germany",49,"Hambergen","04793" -"Germany",49,"Worpswede-Ostersode","04794" -"Germany",49,"Garlstedt","04795" -"Germany",49,"Teufelsmoor","04796" -"Germany",49,"Wrohm","04802" -"Germany",49,"Pahlen","04803" -"Germany",49,"Nordhastedt","04804" -"Germany",49,"Schafstedt","04805" -"Germany",49,"Sarzbüttel","04806" -"Germany",49,"Heide Holst","0481" -"Germany",49,"Itzehoe","04821" -"Germany",49,"Kellinghusen","04822" -"Germany",49,"Wilster","04823" -"Germany",49,"Krempe","04824" -"Germany",49,"Burg Dithmarschen","04825" -"Germany",49,"Hohenlockstedt","04826" -"Germany",49,"Wacken","04827" -"Germany",49,"Lägerdorf","04828" -"Germany",49,"Wewelsfleth","04829" -"Germany",49,"Süderhastedt","04830" -"Germany",49,"Meldorf","04832" -"Germany",49,"Wesselburen","04833" -"Germany",49,"Büsum","04834" -"Germany",49,"Albersdorf Holst","04835" -"Germany",49,"Hennstedt Dithm","04836" -"Germany",49,"Neuenkirchen Dithm","04837" -"Germany",49,"Tellingstedt","04838" -"Germany",49,"Wöhrden Dithm","04839" -"Germany",49,"Husum Nordsee","04841" -"Germany",49,"Nordstrand","04842" -"Germany",49,"Viöl","04843" -"Germany",49,"Pellworm","04844" -"Germany",49,"Ostenfeld Husum","04845" -"Germany",49,"Hattstedt","04846" -"Germany",49,"Oster-Ohrstedt","04847" -"Germany",49,"Rantrum","04848" -"Germany",49,"Hooge","04849" -"Germany",49,"Marne","04851" -"Germany",49,"Brunsbüttel","04852" -"Germany",49,"Sankt Michaelisdonn","04853" -"Germany",49,"Friedrichskoog","04854" -"Germany",49,"Eddelak","04855" -"Germany",49,"Kronprinzenkoog","04856" -"Germany",49,"Barlt","04857" -"Germany",49,"Sankt Margarethen Holst","04858" -"Germany",49,"Windbergen","04859" -"Germany",49,"Tönning","04861" -"Germany",49,"Garding","04862" -"Germany",49,"Sankt Peter-Ording","04863" -"Germany",49,"Oldenswort","04864" -"Germany",49,"Osterhever","04865" -"Germany",49,"Hohenwestedt","04871" -"Germany",49,"Hanerau-Hademarschen","04872" -"Germany",49,"Aukrug","04873" -"Germany",49,"Todenbüttel","04874" -"Germany",49,"Stafstedt","04875" -"Germany",49,"Reher Holst","04876" -"Germany",49,"Hennstedt b Itzehoe","04877" -"Germany",49,"Friedrichstadt","04881" -"Germany",49,"Lunden","04882" -"Germany",49,"Süderstapel","04883" -"Germany",49,"Schwabstedt","04884" -"Germany",49,"Bergenhusen","04885" -"Germany",49,"Schenefeld Mittelholst","04892" -"Germany",49,"Hohenaspe","04893" -"Germany",49,"Jemgum-Ditzum","04902" -"Germany",49,"Wymeer","04903" -"Germany",49,"Leer Ostfriesland","0491" -"Germany",49,"Wirdum","04920" -"Germany",49,"Emden Stadt","04921" -"Germany",49,"Borkum","04922" -"Germany",49,"Krummhörn-Pewsum","04923" -"Germany",49,"Moormerland-Oldersum","04924" -"Germany",49,"Hinte","04925" -"Germany",49,"Krummhörn-Greetsiel","04926" -"Germany",49,"Krummhörn-Loquard","04927" -"Germany",49,"Ihlow-Riepe","04928" -"Germany",49,"Ihlow Kr Aurich","04929" -"Germany",49,"Norden","04931" -"Germany",49,"Norderney","04932" -"Germany",49,"Dornum Ostfriesl","04933" -"Germany",49,"Marienhafe","04934" -"Germany",49,"Juist","04935" -"Germany",49,"Grossheide","04936" -"Germany",49,"Hagermarsch","04938" -"Germany",49,"Baltrum","04939" -"Germany",49,"Aurich","04941" -"Germany",49,"Südbrookmerland","04942" -"Germany",49,"Grossefehn","04943" -"Germany",49,"Wiesmoor","04944" -"Germany",49,"Grossefehn-Timmel","04945" -"Germany",49,"Grossefehn-Bagband","04946" -"Germany",49,"Aurich-Ogenbargen","04947" -"Germany",49,"Wiesmoor-Marcardsmoor","04948" -"Germany",49,"Holtland","04950" -"Germany",49,"Weener","04951" -"Germany",49,"Rhauderfehn","04952" -"Germany",49,"Bunde","04953" -"Germany",49,"Moormerland","04954" -"Germany",49,"Westoverledingen","04955" -"Germany",49,"Uplengen","04956" -"Germany",49,"Detern","04957" -"Germany",49,"Jemgum","04958" -"Germany",49,"Dollart","04959" -"Germany",49,"Papenburg","04961" -"Germany",49,"Papenburg-Aschendorf","04962" -"Germany",49,"Dörpen","04963" -"Germany",49,"Rhede Ems","04964" -"Germany",49,"Surwold","04965" -"Germany",49,"Neubörger","04966" -"Germany",49,"Rhauderfehn-Burlage","04967" -"Germany",49,"Neulehe","04968" -"Germany",49,"Esens","04971" -"Germany",49,"Langeoog","04972" -"Germany",49,"Wittmund-Burhafe","04973" -"Germany",49,"Neuharlingersiel","04974" -"Germany",49,"Westerholt Ostfriesl","04975" -"Germany",49,"Spiekeroog","04976" -"Germany",49,"Blomberg Ostfriesl","04977" -"Germany",49,"Nienburg Weser","05021" -"Germany",49,"Wietzen","05022" -"Germany",49,"Liebenau Kr Nienburg Weser","05023" -"Germany",49,"Rohrsen Kr Nienburg Weser","05024" -"Germany",49,"Estorf Weser","05025" -"Germany",49,"Steimbke","05026" -"Germany",49,"Linsburg","05027" -"Germany",49,"Pennigsehl","05028" -"Germany",49,"Wunstorf","05031" -"Germany",49,"Neustadt am Rübenberge","05032" -"Germany",49,"Wunstorf-Grossenheidorn","05033" -"Germany",49,"Neustadt-Hagen","05034" -"Germany",49,"Gross Munzel","05035" -"Germany",49,"Neustadt-Schneeren","05036" -"Germany",49,"Bad Rehburg","05037" -"Germany",49,"Springe Deister","05041" -"Germany",49,"Bad Münder am Deister","05042" -"Germany",49,"Lauenau","05043" -"Germany",49,"Springe-Eldagsen","05044" -"Germany",49,"Springe-Bennigsen","05045" -"Germany",49,"Bergen Kr Celle","05051" -"Germany",49,"Hermannsburg","05052" -"Germany",49,"Faßberg-Müden","05053" -"Germany",49,"Bergen-Sülze","05054" -"Germany",49,"Fassberg","05055" -"Germany",49,"Winsen-Meissendorf","05056" -"Germany",49,"Bodenburg","05060" -"Germany",49,"Holle b Hildesheim","05062" -"Germany",49,"Bad Salzdetfurth","05063" -"Germany",49,"Groß Düngen","05064" -"Germany",49,"Sibbesse","05065" -"Germany",49,"Sarstedt","05066" -"Germany",49,"Bockenem","05067" -"Germany",49,"Elze Leine","05068" -"Germany",49,"Nordstemmen","05069" -"Germany",49,"Schwarmstedt","05071" -"Germany",49,"Neustadt-Mandelsloh","05072" -"Germany",49,"Neustadt-Esperke","05073" -"Germany",49,"Rodewald","05074" -"Germany",49,"Langlingen","05082" -"Germany",49,"Hohne b Celle","05083" -"Germany",49,"Hambühren","05084" -"Germany",49,"Burgdorf-Ehlershausen","05085" -"Germany",49,"Celle-Scheuen","05086" -"Germany",49,"Pattensen","05101" -"Germany",49,"Laatzen","05102" -"Germany",49,"Wennigsen Deister","05103" -"Germany",49,"Barsinghausen","05105" -"Germany",49,"Gehrden Han","05108" -"Germany",49,"Ronnenberg","05109" -"Germany",49,"Hannover","0511" -"Germany",49,"Hildesheim","05121" -"Germany",49,"Schellerten","05123" -"Germany",49,"Algermissen","05126" -"Germany",49,"Harsum","05127" -"Germany",49,"Hohenhameln","05128" -"Germany",49,"Söhlde","05129" -"Germany",49,"Wedemark","05130" -"Germany",49,"Garbsen","05131" -"Germany",49,"Lehrte","05132" -"Germany",49,"Burgwedel-Fuhrberg","05135" -"Germany",49,"Burgdorf Kr Hannover","05136" -"Germany",49,"Seelze","05137" -"Germany",49,"Sehnde","05138" -"Germany",49,"Burgwedel","05139" -"Germany",49,"Celle","05141" -"Germany",49,"Eschede","05142" -"Germany",49,"Winsen Aller","05143" -"Germany",49,"Wathlingen","05144" -"Germany",49,"Beedenbostel","05145" -"Germany",49,"Wietze","05146" -"Germany",49,"Uetze-Hänigsen","05147" -"Germany",49,"Steinhorst Niedersachs","05148" -"Germany",49,"Wienhausen","05149" -"Germany",49,"Hameln","05151" -"Germany",49,"Hessisch Oldendorf","05152" -"Germany",49,"Salzhemmendorf","05153" -"Germany",49,"Aerzen","05154" -"Germany",49,"Emmerthal","05155" -"Germany",49,"Coppenbrügge","05156" -"Germany",49,"Emmerthal-Börry","05157" -"Germany",49,"Hemeringen","05158" -"Germany",49,"Coppenbrügge-Bisperode","05159" -"Germany",49,"Walsrode","05161" -"Germany",49,"Fallingbostel","05162" -"Germany",49,"Fallingbostel-Dorfmark","05163" -"Germany",49,"Hodenhagen","05164" -"Germany",49,"Rethem Aller","05165" -"Germany",49,"Walsrode-Kirchboitzen","05166" -"Germany",49,"Walsrode-Westenholz","05167" -"Germany",49,"Walsrode-Stellichte","05168" -"Germany",49,"Peine","05171" -"Germany",49,"Ilsede","05172" -"Germany",49,"Uetze","05173" -"Germany",49,"Lahstedt","05174" -"Germany",49,"Lehrte-Arpke","05175" -"Germany",49,"Edemissen","05176" -"Germany",49,"Edemissen-Abbensen","05177" -"Germany",49,"Alfeld Leine","05181" -"Germany",49,"Gronau Leine","05182" -"Germany",49,"Lamspringe","05183" -"Germany",49,"Freden Leine","05184" -"Germany",49,"Duingen","05185" -"Germany",49,"Salzhemmendorf-Wallensen","05186" -"Germany",49,"Delligsen","05187" -"Germany",49,"Soltau-Emmingen","05190" -"Germany",49,"Soltau","05191" -"Germany",49,"Munster","05192" -"Germany",49,"Schneverdingen","05193" -"Germany",49,"Bispingen","05194" -"Germany",49,"Neuenkirchen b Soltau","05195" -"Germany",49,"Wietzendorf","05196" -"Germany",49,"Soltau-Frielingen","05197" -"Germany",49,"Schneverdingen-Wintermoor","05198" -"Germany",49,"Schneverdingen-Heber","05199" -"Germany",49,"Halle Westf","05201" -"Germany",49,"Oerlinghausen","05202" -"Germany",49,"Werther Westf","05203" -"Germany",49,"Steinhagen Westf","05204" -"Germany",49,"Bielefeld-Sennestadt","05205" -"Germany",49,"Bielefeld-Jöllenbeck","05206" -"Germany",49,"Schloss Holte-Stukenbrock","05207" -"Germany",49,"Leopoldshöhe","05208" -"Germany",49,"Gütersloh-Friedrichsdorf","05209" -"Germany",49,"Bielefeld","0521" -"Germany",49,"Herford","05221" -"Germany",49,"Bad Salzuflen","05222" -"Germany",49,"Bünde","05223" -"Germany",49,"Enger Westf","05224" -"Germany",49,"Spenge","05225" -"Germany",49,"Bruchmühlen Westf","05226" -"Germany",49,"Vlotho-Exter","05228" -"Germany",49,"Detmold","05231" -"Germany",49,"Lage Lippe","05232" -"Germany",49,"Steinheim Westf","05233" -"Germany",49,"Horn-Bad Meinberg","05234" -"Germany",49,"Blomberg Lippe","05235" -"Germany",49,"Blomberg-Grossenmarpe","05236" -"Germany",49,"Augustdorf","05237" -"Germany",49,"Nieheim-Himmighausen","05238" -"Germany",49,"Gütersloh","05241" -"Germany",49,"Rheda-Wiedenbrück","05242" -"Germany",49,"Rietberg","05244" -"Germany",49,"Herzebrock-Clarholz","05245" -"Germany",49,"Verl","05246" -"Germany",49,"Harsewinkel","05247" -"Germany",49,"Langenberg Kr Gütersloh","05248" -"Germany",49,"Delbrück Westf","05250" -"Germany",49,"Paderborn","05251" -"Germany",49,"Bad Lippspringe","05252" -"Germany",49,"Bad Driburg","05253" -"Germany",49,"Paderborn-Schloss Neuhaus","05254" -"Germany",49,"Altenbeken","05255" -"Germany",49,"Hövelhof","05257" -"Germany",49,"Salzkotten","05258" -"Germany",49,"Bad Driburg-Neuenheerse","05259" -"Germany",49,"Lemgo","05261" -"Germany",49,"Extertal","05262" -"Germany",49,"Barntrup","05263" -"Germany",49,"Kalletal","05264" -"Germany",49,"Dörentrup","05265" -"Germany",49,"Lemgo-Kirchheide","05266" -"Germany",49,"Höxter","05271" -"Germany",49,"Brakel Westf","05272" -"Germany",49,"Beverungen","05273" -"Germany",49,"Nieheim","05274" -"Germany",49,"Höxter-Ottbergen","05275" -"Germany",49,"Marienmünster","05276" -"Germany",49,"Höxter-Fürstenau","05277" -"Germany",49,"Höxter-Ovenhausen","05278" -"Germany",49,"Bad Pyrmont","05281" -"Germany",49,"Schieder-Schwalenberg","05282" -"Germany",49,"Lügde-Rischenau","05283" -"Germany",49,"Schwalenberg","05284" -"Germany",49,"Bad Pyrmont-Kleinenberg","05285" -"Germany",49,"Ottenstein Niedersachs","05286" -"Germany",49,"Lichtenau-Atteln","05292" -"Germany",49,"Paderborn-Dahl","05293" -"Germany",49,"Hövelhof-Espeln","05294" -"Germany",49,"Lichtenau Westf","05295" -"Germany",49,"Salzgitter-Üfingen","05300" -"Germany",49,"Lehre-Essenrode","05301" -"Germany",49,"Vechelde","05302" -"Germany",49,"Wendeburg","05303" -"Germany",49,"Meine","05304" -"Germany",49,"Sickte","05305" -"Germany",49,"Cremlingen","05306" -"Germany",49,"Braunschweig-Wenden","05307" -"Germany",49,"Lehre","05308" -"Germany",49,"Lehre-Wendhausen","05309" -"Germany",49,"Braunschweig","0531" -"Germany",49,"Torfhaus","05320" -"Germany",49,"Goslar","05321" -"Germany",49,"Bad Harzburg","05322" -"Germany",49,"Clausthal-Zellerfeld","05323" -"Germany",49,"Vienenburg","05324" -"Germany",49,"Goslar-Hahnenklee","05325" -"Germany",49,"Langelsheim","05326" -"Germany",49,"Bad Grund Harz","05327" -"Germany",49,"Altenau Harz","05328" -"Germany",49,"Schulenberg im Oberharz","05329" -"Germany",49,"Wolfenbüttel","05331" -"Germany",49,"Schöppenstedt","05332" -"Germany",49,"Dettum","05333" -"Germany",49,"Hornburg Kr Wolfenbüttel","05334" -"Germany",49,"Schladen","05335" -"Germany",49,"Semmenstedt","05336" -"Germany",49,"Kissenbrück","05337" -"Germany",49,"Gielde","05339" -"Germany",49,"Salzgitter","05341" -"Germany",49,"Lengede","05344" -"Germany",49,"Baddeckenstedt","05345" -"Germany",49,"Liebenburg","05346" -"Germany",49,"Burgdorf b Salzgitter","05347" -"Germany",49,"Helmstedt","05351" -"Germany",49,"Schöningen","05352" -"Germany",49,"Königslutter am Elm","05353" -"Germany",49,"Jerxheim","05354" -"Germany",49,"Frellstedt","05355" -"Germany",49,"Helmstedt-Barmke","05356" -"Germany",49,"Grasleben","05357" -"Germany",49,"Bahrdorf-Mackendorf","05358" -"Germany",49,"Wolfsburg","05361" -"Germany",49,"Wolfsburg-Fallersleben","05362" -"Germany",49,"Wolfsburg-Vorsfelde","05363" -"Germany",49,"Velpke","05364" -"Germany",49,"Wolfsburg-Neindorf","05365" -"Germany",49,"Jembke","05366" -"Germany",49,"Rühen","05367" -"Germany",49,"Parsau","05368" -"Germany",49,"Gifhorn","05371" -"Germany",49,"Meinersen","05372" -"Germany",49,"Hillerse Kr Gifhorn","05373" -"Germany",49,"Isenbüttel","05374" -"Germany",49,"Müden Aller","05375" -"Germany",49,"Wesendorf Kr Gifhorn","05376" -"Germany",49,"Ehra-Lessien","05377" -"Germany",49,"Sassenburg-Platendorf","05378" -"Germany",49,"Sassenburg-Grussendorf","05379" -"Germany",49,"Seesen","05381" -"Germany",49,"Bad Gandersheim","05382" -"Germany",49,"Lutter am Barenberge","05383" -"Germany",49,"Seesen-Groß Rhüden","05384" -"Germany",49,"Georgsmarienhütte","05401" -"Germany",49,"Bissendorf Kr Osnabrück","05402" -"Germany",49,"Bad Iburg","05403" -"Germany",49,"Westerkappeln","05404" -"Germany",49,"Hasbergen Kr Osnabrück","05405" -"Germany",49,"Belm","05406" -"Germany",49,"Wallenhorst","05407" -"Germany",49,"Hilter am Teutoburger Wald","05409" -"Germany",49,"Osnabrück","0541" -"Germany",49,"Dissen am Teutoburger Wald","05421" -"Germany",49,"Melle","05422" -"Germany",49,"Versmold","05423" -"Germany",49,"Bad Rothenfelde","05424" -"Germany",49,"Borgholzhausen","05425" -"Germany",49,"Glandorf","05426" -"Germany",49,"Melle-Buer","05427" -"Germany",49,"Melle-Neuenkirchen","05428" -"Germany",49,"Melle-Wellingholzhausen","05429" -"Germany",49,"Quakenbrück","05431" -"Germany",49,"Löningen","05432" -"Germany",49,"Badbergen","05433" -"Germany",49,"Essen Oldenburg","05434" -"Germany",49,"Berge b Quakenbrück","05435" -"Germany",49,"Nortrup","05436" -"Germany",49,"Menslage","05437" -"Germany",49,"Bakum-Lüsche","05438" -"Germany",49,"Bersenbrück","05439" -"Germany",49,"Diepholz","05441" -"Germany",49,"Barnstorf Kr Diepholz","05442" -"Germany",49,"Lemförde","05443" -"Germany",49,"Wagenfeld","05444" -"Germany",49,"Drebber","05445" -"Germany",49,"Rehden","05446" -"Germany",49,"Lembruch","05447" -"Germany",49,"Barver","05448" -"Germany",49,"Ibbenbüren","05451" -"Germany",49,"Mettingen Westf","05452" -"Germany",49,"Recke","05453" -"Germany",49,"Hörstel-Riesenbeck","05454" -"Germany",49,"Tecklenburg-Brochterbeck","05455" -"Germany",49,"Westerkappeln-Velpe","05456" -"Germany",49,"Hopsten-Schale","05457" -"Germany",49,"Hopsten","05458" -"Germany",49,"Hörstel","05459" -"Germany",49,"Bramsche Hase","05461" -"Germany",49,"Ankum","05462" -"Germany",49,"Alfhausen","05464" -"Germany",49,"Neuenkirchen b Bramsche","05465" -"Germany",49,"Merzen","05466" -"Germany",49,"Voltlage","05467" -"Germany",49,"Bramsche-Engter","05468" -"Germany",49,"Bohmte","05471" -"Germany",49,"Bad Essen","05472" -"Germany",49,"Ostercappeln","05473" -"Germany",49,"Stemwede-Dielingen","05474" -"Germany",49,"Bohmte-Hunteburg","05475" -"Germany",49,"Ostercappeln-Venne","05476" -"Germany",49,"Lengerich Westf","05481" -"Germany",49,"Tecklenburg","05482" -"Germany",49,"Lienen","05483" -"Germany",49,"Lienen-Kattenvenne","05484" -"Germany",49,"Ladbergen","05485" -"Germany",49,"Damme Dümmer","05491" -"Germany",49,"Steinfeld Oldenburg","05492" -"Germany",49,"Neuenkirchen Kr Vechta","05493" -"Germany",49,"Holdorf Niedersachs","05494" -"Germany",49,"Vörden Kr Vechta","05495" -"Germany",49,"Dransfeld","05502" -"Germany",49,"Nörten-Hardenberg","05503" -"Germany",49,"Friedland Kr Göttingen","05504" -"Germany",49,"Hardegsen","05505" -"Germany",49,"Adelebsen","05506" -"Germany",49,"Ebergötzen","05507" -"Germany",49,"Gleichen-Rittmarshausen","05508" -"Germany",49,"Rosdorf Kr Göttingen","05509" -"Germany",49,"Göttingen","0551" -"Germany",49,"Braunlage","05520" -"Germany",49,"Herzberg am Harz","05521" -"Germany",49,"Osterode am Harz","05522" -"Germany",49,"Bad Sachsa","05523" -"Germany",49,"Bad Lauterberg im Harz","05524" -"Germany",49,"Walkenried","05525" -"Germany",49,"Duderstadt","05527" -"Germany",49,"Gieboldehausen","05528" -"Germany",49,"Rhumspringe","05529" -"Germany",49,"Holzminden","05531" -"Germany",49,"Stadtoldendorf","05532" -"Germany",49,"Bodenwerder","05533" -"Germany",49,"Eschershausen a d Lenne","05534" -"Germany",49,"Polle","05535" -"Germany",49,"Holzminden-Neuhaus","05536" -"Germany",49,"Hann. Münden","05541" -"Germany",49,"Witzenhausen","05542" -"Germany",49,"Staufenberg Niedersachs","05543" -"Germany",49,"Reinhardshagen","05544" -"Germany",49,"Hedemünden","05545" -"Germany",49,"Scheden","05546" -"Germany",49,"Northeim","05551" -"Germany",49,"Katlenburg","05552" -"Germany",49,"Kalefeld","05553" -"Germany",49,"Moringen","05554" -"Germany",49,"Moringen-Fredelsloh","05555" -"Germany",49,"Lindau Harz","05556" -"Germany",49,"Einbeck","05561" -"Germany",49,"Dassel-Markoldendorf","05562" -"Germany",49,"Kreiensen","05563" -"Germany",49,"Dassel","05564" -"Germany",49,"Einbeck-Wenzen","05565" -"Germany",49,"Uslar","05571" -"Germany",49,"Bodenfelde","05572" -"Germany",49,"Uslar-Volpriehausen","05573" -"Germany",49,"Oberweser","05574" -"Germany",49,"Sankt Andreasberg","05582" -"Germany",49,"Braunlage-Hohegeiss","05583" -"Germany",49,"Hattorf am Harz","05584" -"Germany",49,"Herzberg-Sieber","05585" -"Germany",49,"Wieda","05586" -"Germany",49,"Gleichen-Bremke","05592" -"Germany",49,"Bovenden-Lenglern","05593" -"Germany",49,"Bovenden-Reyershausen","05594" -"Germany",49,"Schauenburg","05601" -"Germany",49,"Hessisch Lichtenau","05602" -"Germany",49,"Gudensberg","05603" -"Germany",49,"Grossalmerode","05604" -"Germany",49,"Kaufungen Hess","05605" -"Germany",49,"Zierenberg","05606" -"Germany",49,"Fuldatal","05607" -"Germany",49,"Söhrewald","05608" -"Germany",49,"Ahnatal","05609" -"Germany",49,"Kassel","0561" -"Germany",49,"Bad Wildungen","05621" -"Germany",49,"Fritzlar","05622" -"Germany",49,"Edertal","05623" -"Germany",49,"Bad Emstal","05624" -"Germany",49,"Naumburg Hess","05625" -"Germany",49,"Bad Zwesten","05626" -"Germany",49,"Korbach","05631" -"Germany",49,"Willingen Upland","05632" -"Germany",49,"Diemelsee","05633" -"Germany",49,"Waldeck-Sachsenhausen","05634" -"Germany",49,"Vöhl","05635" -"Germany",49,"Lichtenfels-Goddelsheim","05636" -"Germany",49,"Warburg","05641" -"Germany",49,"Warburg-Scherfede","05642" -"Germany",49,"Borgentreich","05643" -"Germany",49,"Willebadessen-Peckelsheim","05644" -"Germany",49,"Borgentreich-Borgholz","05645" -"Germany",49,"Willebadessen","05646" -"Germany",49,"Lichtenau-Kleinenberg","05647" -"Germany",49,"Brakel-Gehrden","05648" -"Germany",49,"Cornberg","05650" -"Germany",49,"Eschwege","05651" -"Germany",49,"Bad Sooden-Allendorf","05652" -"Germany",49,"Sontra","05653" -"Germany",49,"Herleshausen","05654" -"Germany",49,"Wanfried","05655" -"Germany",49,"Waldkappel","05656" -"Germany",49,"Meissner","05657" -"Germany",49,"Wehretal","05658" -"Germany",49,"Ringgau","05659" -"Germany",49,"Melsungen","05661" -"Germany",49,"Felsberg Hess","05662" -"Germany",49,"Spangenberg","05663" -"Germany",49,"Morschen","05664" -"Germany",49,"Guxhagen","05665" -"Germany",49,"Hofgeismar","05671" -"Germany",49,"Bad Karlshafen","05672" -"Germany",49,"Immenhausen Hess","05673" -"Germany",49,"Grebenstein","05674" -"Germany",49,"Trendelburg","05675" -"Germany",49,"Liebenau Hess","05676" -"Germany",49,"Calden-Westuffeln","05677" -"Germany",49,"Homberg Efze","05681" -"Germany",49,"Borken Hessen","05682" -"Germany",49,"Wabern Hess","05683" -"Germany",49,"Frielendorf","05684" -"Germany",49,"Knüllwald","05685" -"Germany",49,"Schwarzenborn Knüll","05686" -"Germany",49,"Bad Arolsen","05691" -"Germany",49,"Wolfhagen","05692" -"Germany",49,"Volkmarsen","05693" -"Germany",49,"Diemelstadt","05694" -"Germany",49,"Twistetal","05695" -"Germany",49,"Bad Arolsen-Landau","05696" -"Germany",49,"Petershagen-Lahde","05702" -"Germany",49,"Hille","05703" -"Germany",49,"Petershagen-Friedewalde","05704" -"Germany",49,"Petershagen-Windheim","05705" -"Germany",49,"Porta Westfalica","05706" -"Germany",49,"Petershagen Weser","05707" -"Germany",49,"Minden Westf","0571" -"Germany",49,"Stadthagen","05721" -"Germany",49,"Bückeburg","05722" -"Germany",49,"Bad Nenndorf","05723" -"Germany",49,"Obernkirchen","05724" -"Germany",49,"Lindhorst b Stadthagen","05725" -"Germany",49,"Wiedensahl","05726" -"Germany",49,"Bad Oeynhausen","05731" -"Germany",49,"Löhne","05732" -"Germany",49,"Vlotho","05733" -"Germany",49,"Bergkirchen Westf","05734" -"Germany",49,"Lübbecke","05741" -"Germany",49,"Preussisch Oldendorf","05742" -"Germany",49,"Espelkamp-Gestringen","05743" -"Germany",49,"Hüllhorst","05744" -"Germany",49,"Stemwede-Levern","05745" -"Germany",49,"Rödinghausen","05746" -"Germany",49,"Rinteln","05751" -"Germany",49,"Auetal-Hattendorf","05752" -"Germany",49,"Auetal-Bernsen","05753" -"Germany",49,"Extertal-Bremke","05754" -"Germany",49,"Kalletal-Varenholz","05755" -"Germany",49,"Stolzenau","05761" -"Germany",49,"Uchte","05763" -"Germany",49,"Steyerberg","05764" -"Germany",49,"Raddestorf","05765" -"Germany",49,"Rehburg-Loccum","05766" -"Germany",49,"Warmsen","05767" -"Germany",49,"Petershagen-Heimsen","05768" -"Germany",49,"Steyerberg-Voigtei","05769" -"Germany",49,"Rahden Westf","05771" -"Germany",49,"Espelkamp","05772" -"Germany",49,"Stemwede-Wehdem","05773" -"Germany",49,"Wagenfeld-Ströhen","05774" -"Germany",49,"Diepenau","05775" -"Germany",49,"Preussisch Ströhen","05776" -"Germany",49,"Diepenau-Essern","05777" -"Germany",49,"Wrestedt","05802" -"Germany",49,"Rosche","05803" -"Germany",49,"Rätzlingen Kr Uelzen","05804" -"Germany",49,"Oetzen","05805" -"Germany",49,"Barum b Bad Bevensen","05806" -"Germany",49,"Altenmedingen","05807" -"Germany",49,"Gerdau","05808" -"Germany",49,"Uelzen","0581" -"Germany",49,"Suhlendorf","05820" -"Germany",49,"Bad Bevensen","05821" -"Germany",49,"Ebstorf","05822" -"Germany",49,"Bienenbüttel","05823" -"Germany",49,"Bad Bodenteich","05824" -"Germany",49,"Wieren","05825" -"Germany",49,"Suderburg","05826" -"Germany",49,"Unterlüß","05827" -"Germany",49,"Himbergen","05828" -"Germany",49,"Wriedel","05829" -"Germany",49,"Wittingen","05831" -"Germany",49,"Hankensbüttel","05832" -"Germany",49,"Brome","05833" -"Germany",49,"Wittingen-Knesebeck","05834" -"Germany",49,"Wahrenholz","05835" -"Germany",49,"Wittingen-Radenbeck","05836" -"Germany",49,"Sprakensehl","05837" -"Germany",49,"Gross Oesingen","05838" -"Germany",49,"Wittingen-Ohrdorf","05839" -"Germany",49,"Schnackenburg","05840" -"Germany",49,"Lüchow Wendland","05841" -"Germany",49,"Schnega","05842" -"Germany",49,"Wustrow","05843" -"Germany",49,"Clenze","05844" -"Germany",49,"Bergen Dumme","05845" -"Germany",49,"Gartow Niedersachs","05846" -"Germany",49,"Trebel","05848" -"Germany",49,"Waddeweitz","05849" -"Germany",49,"Neetze","05850" -"Germany",49,"Dahlenburg","05851" -"Germany",49,"Bleckede","05852" -"Germany",49,"Neu Darchau","05853" -"Germany",49,"Bleckede-Barskamp","05854" -"Germany",49,"Nahrendorf","05855" -"Germany",49,"Bleckede-Brackede","05857" -"Germany",49,"Hitzacker-Wietzetze","05858" -"Germany",49,"Thomasburg","05859" -"Germany",49,"Dannenberg Elbe","05861" -"Germany",49,"Hitzacker Elbe","05862" -"Germany",49,"Zernien","05863" -"Germany",49,"Jameln","05864" -"Germany",49,"Gusborn","05865" -"Germany",49,"Stoetze","05872" -"Germany",49,"Eimke","05873" -"Germany",49,"Soltendieck","05874" -"Germany",49,"Emmendorf","05875" -"Germany",49,"Gorleben","05882" -"Germany",49,"Lemgow","05883" -"Germany",49,"Fürstenau b Bramsche","05901" -"Germany",49,"Freren","05902" -"Germany",49,"Emsbüren","05903" -"Germany",49,"Lengerich Emsl","05904" -"Germany",49,"Beesten","05905" -"Germany",49,"Lünne","05906" -"Germany",49,"Geeste","05907" -"Germany",49,"Wietmarschen-Lohne","05908" -"Germany",49,"Wettrup","05909" -"Germany",49,"Lingen (Ems)","0591" -"Germany",49,"Nordhorn","05921" -"Germany",49,"Bad Bentheim","05922" -"Germany",49,"Schüttorf","05923" -"Germany",49,"Bad Bentheim-Gildehaus","05924" -"Germany",49,"Wietmarschen","05925" -"Germany",49,"Engden","05926" -"Germany",49,"Meppen","05931" -"Germany",49,"Haren Ems","05932" -"Germany",49,"Lathen","05933" -"Germany",49,"Haren-Rütenbrock","05934" -"Germany",49,"Twist-Schöninghsdorf","05935" -"Germany",49,"Twist","05936" -"Germany",49,"Geeste-Gross Hesepe","05937" -"Germany",49,"Sustrum","05939" -"Germany",49,"Neuenhaus Dinkel","05941" -"Germany",49,"Uelsen","05942" -"Germany",49,"Emlichheim","05943" -"Germany",49,"Hoogstede","05944" -"Germany",49,"Wilsum","05945" -"Germany",49,"Georgsdorf","05946" -"Germany",49,"Laar Vechte","05947" -"Germany",49,"Itterbeck","05948" -"Germany",49,"Werlte","05951" -"Germany",49,"Sögel","05952" -"Germany",49,"Börger","05953" -"Germany",49,"Lorup","05954" -"Germany",49,"Esterwegen","05955" -"Germany",49,"Rastdorf","05956" -"Germany",49,"Lindern Oldenburg","05957" -"Germany",49,"Haselünne","05961" -"Germany",49,"Herzlake","05962" -"Germany",49,"Bawinkel","05963" -"Germany",49,"Lähden","05964" -"Germany",49,"Klein Berssen","05965" -"Germany",49,"Meppen-Apeldorn","05966" -"Germany",49,"Rheine","05971" -"Germany",49,"Neuenkirchen Kr Steinfurt","05973" -"Germany",49,"Rheine-Mesum","05975" -"Germany",49,"Salzbergen","05976" -"Germany",49,"Spelle","05977" -"Germany",49,"Hörstel-Dreierwalde","05978" -"Germany",49,"Ober-Mörlen","06002" -"Germany",49,"Rosbach v d Höhe","06003" -"Germany",49,"Lich-Eberstadt","06004" -"Germany",49,"Rosbach-Rodheim","06007" -"Germany",49,"Echzell","06008" -"Germany",49,"Heigenbrücken","06020" -"Germany",49,"Aschaffenburg","06021" -"Germany",49,"Obernburg a Main","06022" -"Germany",49,"Alzenau i Ufr","06023" -"Germany",49,"Schöllkrippen","06024" -"Germany",49,"Grossostheim","06026" -"Germany",49,"Stockstadt a Main","06027" -"Germany",49,"Sulzbach a Main","06028" -"Germany",49,"Mömbris","06029" -"Germany",49,"Friedberg Hess","06031" -"Germany",49,"Bad Nauheim","06032" -"Germany",49,"Butzbach","06033" -"Germany",49,"Wöllstadt","06034" -"Germany",49,"Reichelsheim Wetterau","06035" -"Germany",49,"Wölfersheim","06036" -"Germany",49,"Karben","06039" -"Germany",49,"Glauburg","06041" -"Germany",49,"Büdingen Hess","06042" -"Germany",49,"Nidda","06043" -"Germany",49,"Schotten Hess","06044" -"Germany",49,"Gedern","06045" -"Germany",49,"Ortenberg Hess","06046" -"Germany",49,"Altenstadt Hess","06047" -"Germany",49,"Büdingen-Eckartshausen","06048" -"Germany",49,"Kefenrod","06049" -"Germany",49,"Biebergemünd","06050" -"Germany",49,"Gelnhausen","06051" -"Germany",49,"Bad Orb","06052" -"Germany",49,"Wächtersbach","06053" -"Germany",49,"Birstein","06054" -"Germany",49,"Freigericht","06055" -"Germany",49,"Bad Soden-Salmünster","06056" -"Germany",49,"Flörsbachtal","06057" -"Germany",49,"Gründau","06058" -"Germany",49,"Jossgrund","06059" -"Germany",49,"Michelstadt","06061" -"Germany",49,"Erbach Odenw","06062" -"Germany",49,"Bad König","06063" -"Germany",49,"Michelstadt-Vielbrunn","06066" -"Germany",49,"Beerfelden","06068" -"Germany",49,"Dieburg","06071" -"Germany",49,"Babenhausen Hess","06073" -"Germany",49,"Rödermark","06074" -"Germany",49,"Gross-Umstadt","06078" -"Germany",49,"Usingen","06081" -"Germany",49,"Niederreifenberg","06082" -"Germany",49,"Weilrod","06083" -"Germany",49,"Schmitten Taunus","06084" -"Germany",49,"Waldsolms","06085" -"Germany",49,"Grävenwiesbach","06086" -"Germany",49,"Waldems","06087" -"Germany",49,"Heimbuchenthal","06092" -"Germany",49,"Laufach","06093" -"Germany",49,"Weibersbrunn","06094" -"Germany",49,"Bessenbach","06095" -"Germany",49,"Wiesen Unterfr","06096" -"Germany",49,"Bad Vilbel","06101" -"Germany",49,"Neu-Isenburg","06102" -"Germany",49,"Langen Hess","06103" -"Germany",49,"Heusenstamm","06104" -"Germany",49,"Mörfelden-Walldorf","06105" -"Germany",49,"Rodgau","06106" -"Germany",49,"Kelsterbach","06107" -"Germany",49,"Mühlheim am Main","06108" -"Germany",49,"Frankfurt-Bergen-Enkheim","06109" -"Germany",49,"Wiesbaden","0611" -"Germany",49,"Aarbergen","06120" -"Germany",49,"Hofheim-Wallau","06122" -"Germany",49,"Eltville am Rhein","06123" -"Germany",49,"Bad Schwalbach","06124" -"Germany",49,"Idstein","06126" -"Germany",49,"Niedernhausen Taunus","06127" -"Germany",49,"Taunusstein","06128" -"Germany",49,"Schlangenbad","06129" -"Germany",49,"Schwabenheim an der Selz","06130" -"Germany",49,"Mainz","06131" -"Germany",49,"Ingelheim am Rhein","06132" -"Germany",49,"Oppenheim","06133" -"Germany",49,"Mainz-Kastel","06134" -"Germany",49,"Bodenheim Rhein","06135" -"Germany",49,"Nieder-Olm","06136" -"Germany",49,"Mommenheim","06138" -"Germany",49,"Budenheim","06139" -"Germany",49,"Rüsselsheim","06142" -"Germany",49,"Bischofsheim b Rüsselsheim","06144" -"Germany",49,"Flörsheim am Main","06145" -"Germany",49,"Hochheim am Main","06146" -"Germany",49,"Trebur","06147" -"Germany",49,"Weiterstadt","06150" -"Germany",49,"Darmstadt","06151" -"Germany",49,"Gross-Gerau","06152" -"Germany",49,"Ober-Ramstadt","06154" -"Germany",49,"Griesheim Hess","06155" -"Germany",49,"Pfungstadt","06157" -"Germany",49,"Riedstadt","06158" -"Germany",49,"Messel","06159" -"Germany",49,"Brensbach","06161" -"Germany",49,"Reinheim Odenw","06162" -"Germany",49,"Höchst i Odw","06163" -"Germany",49,"Reichelsheim Odenwald","06164" -"Germany",49,"Breuberg","06165" -"Germany",49,"Fischbachtal","06166" -"Germany",49,"Modautal","06167" -"Germany",49,"Oberursel Taunus","06171" -"Germany",49,"Bad Homburg v d Höhe","06172" -"Germany",49,"Kronberg im Taunus","06173" -"Germany",49,"Königstein im Taunus","06174" -"Germany",49,"Friedrichsdorf Taunus","06175" -"Germany",49,"Hanau","06181" -"Germany",49,"Seligenstadt","06182" -"Germany",49,"Erlensee","06183" -"Germany",49,"Langenselbold","06184" -"Germany",49,"Hammersbach Hess","06185" -"Germany",49,"Grosskrotzenburg","06186" -"Germany",49,"Schöneck","06187" -"Germany",49,"Kahl a Main","06188" -"Germany",49,"Hattersheim a Main","06190" -"Germany",49,"Hofheim am Taunus","06192" -"Germany",49,"Kelkheim Taunus","06195" -"Germany",49,"Bad Soden am Taunus","06196" -"Germany",49,"Eppstein","06198" -"Germany",49,"Weinheim Bergstr","06201" -"Germany",49,"Schwetzingen","06202" -"Germany",49,"Ladenburg","06203" -"Germany",49,"Viernheim","06204" -"Germany",49,"Hockenheim","06205" -"Germany",49,"Lampertheim","06206" -"Germany",49,"Wald-Michelbach","06207" -"Germany",49,"Mörlenbach","06209" -"Germany",49,"Mannheim","0621" -"Germany",49,"Wilhelmsfeld","06220" -"Germany",49,"Heidelberg","06221" -"Germany",49,"Wiesloch","06222" -"Germany",49,"Neckargemünd","06223" -"Germany",49,"Sandhausen Baden","06224" -"Germany",49,"Meckesheim","06226" -"Germany",49,"Walldorf Baden","06227" -"Germany",49,"Schönau Odenw","06228" -"Germany",49,"Neckarsteinach","06229" -"Germany",49,"Hochdorf-Assenheim","06231" -"Germany",49,"Speyer","06232" -"Germany",49,"Frankenthal Pfalz","06233" -"Germany",49,"Mutterstadt","06234" -"Germany",49,"Schifferstadt","06235" -"Germany",49,"Neuhofen Pfalz","06236" -"Germany",49,"Maxdorf","06237" -"Germany",49,"Dirmstein","06238" -"Germany",49,"Bobenheim-Roxheim","06239" -"Germany",49,"Worms","06241" -"Germany",49,"Osthofen","06242" -"Germany",49,"Monsheim","06243" -"Germany",49,"Westhofen Rheinhess","06244" -"Germany",49,"Biblis","06245" -"Germany",49,"Eich Rheinhess","06246" -"Germany",49,"Worms-Pfeddersheim","06247" -"Germany",49,"Guntersblum","06249" -"Germany",49,"Bensheim","06251" -"Germany",49,"Heppenheim Bergstraße","06252" -"Germany",49,"Fürth Odenw","06253" -"Germany",49,"Lautertal Odenwald","06254" -"Germany",49,"Lindenfels","06255" -"Germany",49,"Lampertheim-Hüttenfeld","06256" -"Germany",49,"Seeheim-Jugenheim","06257" -"Germany",49,"Gernsheim","06258" -"Germany",49,"Mosbach Baden","06261" -"Germany",49,"Aglasterhausen","06262" -"Germany",49,"Neckargerach","06263" -"Germany",49,"Neudenau","06264" -"Germany",49,"Billigheim Baden","06265" -"Germany",49,"Hassmersheim","06266" -"Germany",49,"Fahrenbach Baden","06267" -"Germany",49,"Hüffenhardt","06268" -"Germany",49,"Gundelsheim Württ","06269" -"Germany",49,"Eberbach Baden","06271" -"Germany",49,"Hirschhorn Neckar","06272" -"Germany",49,"Waldbrunn Odenw","06274" -"Germany",49,"Rothenberg Odenw","06275" -"Germany",49,"Hesseneck","06276" -"Germany",49,"Buchen Odenwald","06281" -"Germany",49,"Walldürn","06282" -"Germany",49,"Hardheim Odenw","06283" -"Germany",49,"Mudau","06284" -"Germany",49,"Walldürn-Altheim","06285" -"Germany",49,"Walldürn-Rippberg","06286" -"Germany",49,"Limbach Baden","06287" -"Germany",49,"Adelsheim","06291" -"Germany",49,"Seckach","06292" -"Germany",49,"Schefflenz","06293" -"Germany",49,"Krautheim Jagst","06294" -"Germany",49,"RosenbergBaden","06295" -"Germany",49,"Ahorn Baden","06296" -"Germany",49,"Ravenstein Baden","06297" -"Germany",49,"Möckmühl","06298" -"Germany",49,"Otterbach Pfalz","06301" -"Germany",49,"Winnweiler","06302" -"Germany",49,"Enkenbach-Alsenborn","06303" -"Germany",49,"Wolfstein Pfalz","06304" -"Germany",49,"Hochspeyer","06305" -"Germany",49,"Trippstadt","06306" -"Germany",49,"Schopp","06307" -"Germany",49,"Olsbrücken","06308" -"Germany",49,"Kaiserslautern","0631" -"Germany",49,"Neustadt an der Weinstraße","06321" -"Germany",49,"Bad Dürkheim","06322" -"Germany",49,"Edenkoben","06323" -"Germany",49,"Hassloch","06324" -"Germany",49,"Lambrecht Pfalz","06325" -"Germany",49,"Deidesheim","06326" -"Germany",49,"Neustadt-Lachen","06327" -"Germany",49,"Elmstein","06328" -"Germany",49,"Weidenthal Pfalz","06329" -"Germany",49,"Pirmasens","06331" -"Germany",49,"Zweibrücken","06332" -"Germany",49,"Waldfischbach-Burgalben","06333" -"Germany",49,"Thaleischweiler-Fröschen","06334" -"Germany",49,"Trulben","06335" -"Germany",49,"Dellfeld","06336" -"Germany",49,"Grossbundenbach","06337" -"Germany",49,"Hornbach Pfalz","06338" -"Germany",49,"Grosssteinhausen","06339" -"Germany",49,"Wörth-Schaidt","06340" -"Germany",49,"Landau in der Pfalz","06341" -"Germany",49,"Schweigen-Rechtenbach","06342" -"Germany",49,"Bad Bergzabern","06343" -"Germany",49,"Schwegenheim","06344" -"Germany",49,"Albersweiler","06345" -"Germany",49,"Annweiler am Trifels","06346" -"Germany",49,"Hochstadt Pfalz","06347" -"Germany",49,"Offenbach an der Queich","06348" -"Germany",49,"Billigheim-Ingenheim","06349" -"Germany",49,"Eisenberg Pfalz","06351" -"Germany",49,"Kirchheimbolanden","06352" -"Germany",49,"Freinsheim","06353" -"Germany",49,"Albisheim Pfrimm","06355" -"Germany",49,"Carlsberg Pfalz","06356" -"Germany",49,"Standenbühl","06357" -"Germany",49,"Kriegsfeld","06358" -"Germany",49,"Grünstadt","06359" -"Germany",49,"Rockenhausen","06361" -"Germany",49,"Alsenz","06362" -"Germany",49,"Niederkirchen","06363" -"Germany",49,"Nußbach Pfalz","06364" -"Germany",49,"Landstuhl","06371" -"Germany",49,"Bruchmühlbach-Miesau","06372" -"Germany",49,"Schönenberg-Kübelberg","06373" -"Germany",49,"Weilerbach","06374" -"Germany",49,"Wallhalben","06375" -"Germany",49,"Kusel","06381" -"Germany",49,"Lauterecken","06382" -"Germany",49,"Glan-Münchweiler","06383" -"Germany",49,"Konken","06384" -"Germany",49,"Reichenbach-Steegen","06385" -"Germany",49,"Altenkirchen Pfalz","06386" -"Germany",49,"Sankt Julian","06387" -"Germany",49,"Dahn","06391" -"Germany",49,"Hauenstein Pfalz","06392" -"Germany",49,"Fischbach bei Dahn","06393" -"Germany",49,"Bundenthal","06394" -"Germany",49,"Münchweiler an der Rodalb","06395" -"Germany",49,"Hinterweidenthal","06396" -"Germany",49,"Leimen Pfalz","06397" -"Germany",49,"Vorderweidenthal","06398" -"Germany",49,"Mücke","06400" -"Germany",49,"Grünberg Hess","06401" -"Germany",49,"Hungen","06402" -"Germany",49,"Linden Hess","06403" -"Germany",49,"Lich Hess","06404" -"Germany",49,"Laubach Hess","06405" -"Germany",49,"Lollar","06406" -"Germany",49,"Rabenau Hess","06407" -"Germany",49,"Buseck","06408" -"Germany",49,"Biebertal","06409" -"Germany",49,"Giessen","0641" -"Germany",49,"Lahntal","06420" -"Germany",49,"Marburg","06421" -"Germany",49,"Kirchhain","06422" -"Germany",49,"Wetter Hessen","06423" -"Germany",49,"Ebsdorfergrund","06424" -"Germany",49,"Rauschenberg Hess","06425" -"Germany",49,"Fronhausen","06426" -"Germany",49,"Cölbe-Schönstadt","06427" -"Germany",49,"Stadtallendorf","06428" -"Germany",49,"Schweinsberg Hess","06429" -"Germany",49,"Hahnstätten","06430" -"Germany",49,"Limburg a d Lahn","06431" -"Germany",49,"Diez","06432" -"Germany",49,"Hadamar","06433" -"Germany",49,"Bad Camberg","06434" -"Germany",49,"Wallmerod","06435" -"Germany",49,"Dornburg Hess","06436" -"Germany",49,"Hünfelden","06438" -"Germany",49,"Holzappel","06439" -"Germany",49,"Kölschhausen","06440" -"Germany",49,"Wetzlar","06441" -"Germany",49,"Braunfels","06442" -"Germany",49,"Ehringshausen Dill","06443" -"Germany",49,"Bischoffen","06444" -"Germany",49,"Schöffengrund","06445" -"Germany",49,"Hohenahr","06446" -"Germany",49,"Langgöns-Niederkleen","06447" -"Germany",49,"Ehringshausen-Katzenfurt","06449" -"Germany",49,"Frankenberg Eder","06451" -"Germany",49,"Battenberg Eder","06452" -"Germany",49,"Gemünden Wohra","06453" -"Germany",49,"Lichtenfels-Sachsenberg","06454" -"Germany",49,"Frankenau Hess","06455" -"Germany",49,"Haina Kloster","06456" -"Germany",49,"Burgwald Eder","06457" -"Germany",49,"Rosenthal Hess","06458" -"Germany",49,"Biedenkopf","06461" -"Germany",49,"Gladenbach","06462" -"Germany",49,"Angelburg","06464" -"Germany",49,"Breidenbach b Biedenkopf","06465" -"Germany",49,"Dautphetal-Friedensdorf","06466" -"Germany",49,"Hatzfeld Eder","06467" -"Germany",49,"Dautphetal-Mornshausen","06468" -"Germany",49,"Weilburg","06471" -"Germany",49,"Weilmünster","06472" -"Germany",49,"Leun","06473" -"Germany",49,"Villmar-Aumenau","06474" -"Germany",49,"Weilmünster-Wolfenhausen","06475" -"Germany",49,"Mengerskirchen","06476" -"Germany",49,"Greifenstein-Nenderoth","06477" -"Germany",49,"Greifenstein-Ulm","06478" -"Germany",49,"Waldbrunn Westerwald","06479" -"Germany",49,"Runkel","06482" -"Germany",49,"Selters Taunus","06483" -"Germany",49,"Beselich","06484" -"Germany",49,"Nentershausen Westerw","06485" -"Germany",49,"Katzenelnbogen","06486" -"Germany",49,"Waldrach","06500" -"Germany",49,"Konz","06501" -"Germany",49,"Schweich","06502" -"Germany",49,"Hermeskeil","06503" -"Germany",49,"Thalfang","06504" -"Germany",49,"Kordel","06505" -"Germany",49,"Welschbillig","06506" -"Germany",49,"Neumagen-Dhron","06507" -"Germany",49,"Hetzerath Mosel","06508" -"Germany",49,"Büdlich","06509" -"Germany",49,"Trier","0651" -"Germany",49,"Mettendorf","06522" -"Germany",49,"Holsthum","06523" -"Germany",49,"Rodershausen","06524" -"Germany",49,"Irrel","06525" -"Germany",49,"Bollendorf","06526" -"Germany",49,"Oberweis","06527" -"Germany",49,"Bernkastel-Kues","06531" -"Germany",49,"Zeltingen-Rachtig","06532" -"Germany",49,"Morbach Hunsrück","06533" -"Germany",49,"Mülheim Mosel","06534" -"Germany",49,"Osann-Monzel","06535" -"Germany",49,"Kleinich","06536" -"Germany",49,"Traben-Trarbach","06541" -"Germany",49,"Bullay","06542" -"Germany",49,"Büchenbeuren","06543" -"Germany",49,"Rhaunen","06544" -"Germany",49,"Blankenrath","06545" -"Germany",49,"Irrhausen","06550" -"Germany",49,"Prüm","06551" -"Germany",49,"Olzheim","06552" -"Germany",49,"Schönecken","06553" -"Germany",49,"Waxweiler","06554" -"Germany",49,"Bleialf","06555" -"Germany",49,"Pronsfeld","06556" -"Germany",49,"Hallschlag","06557" -"Germany",49,"Büdesheim Eifel","06558" -"Germany",49,"Leidenborn","06559" -"Germany",49,"Bitburg","06561" -"Germany",49,"Speicher","06562" -"Germany",49,"Kyllburg","06563" -"Germany",49,"Neuerburg Eifel","06564" -"Germany",49,"Dudeldorf","06565" -"Germany",49,"Körperich","06566" -"Germany",49,"Oberkail","06567" -"Germany",49,"Wolsfeld","06568" -"Germany",49,"Bickendorf","06569" -"Germany",49,"Wittlich","06571" -"Germany",49,"Manderscheid Eifel","06572" -"Germany",49,"Gillenfeld","06573" -"Germany",49,"Hasborn","06574" -"Germany",49,"Landscheid","06575" -"Germany",49,"Salmtal","06578" -"Germany",49,"Zemmer","06580" -"Germany",49,"Saarburg","06581" -"Germany",49,"Freudenburg","06582" -"Germany",49,"Palzem","06583" -"Germany",49,"Wellen Mosel","06584" -"Germany",49,"Ralingen","06585" -"Germany",49,"Beuren Hochwald","06586" -"Germany",49,"Zerf","06587" -"Germany",49,"Pluwig","06588" -"Germany",49,"Kell am See","06589" -"Germany",49,"Gerolstein","06591" -"Germany",49,"Daun","06592" -"Germany",49,"Hillesheim Eifel","06593" -"Germany",49,"Birresborn","06594" -"Germany",49,"Dockweiler","06595" -"Germany",49,"Üdersdorf","06596" -"Germany",49,"Jünkerath","06597" -"Germany",49,"Weidenbach b Gerolstein","06599" -"Germany",49,"Fulda","0661" -"Germany",49,"Philippsthal Werra","06620" -"Germany",49,"Bad Hersfeld","06621" -"Germany",49,"Bebra","06622" -"Germany",49,"Rotenburg a d Fulda","06623" -"Germany",49,"Heringen Werra","06624" -"Germany",49,"Niederaula","06625" -"Germany",49,"Wildeck-Obersuhl","06626" -"Germany",49,"Nentershausen Hess","06627" -"Germany",49,"Oberaula","06628" -"Germany",49,"Schenklengsfeld","06629" -"Germany",49,"Schwalmtal-Storndorf","06630" -"Germany",49,"Alsfeld","06631" -"Germany",49,"Homberg Ohm","06633" -"Germany",49,"Gemünden Felda","06634" -"Germany",49,"Kirtorf","06635" -"Germany",49,"Romrod","06636" -"Germany",49,"Feldatal","06637" -"Germany",49,"Schwalmtal-Renzendorf","06638" -"Germany",49,"Ottrau","06639" -"Germany",49,"Lauterbach Hessen","06641" -"Germany",49,"Schlitz","06642" -"Germany",49,"Herbstein","06643" -"Germany",49,"Grebenhain","06644" -"Germany",49,"Ulrichstein","06645" -"Germany",49,"Grebenau","06646" -"Germany",49,"Herbstein-Stockhausen","06647" -"Germany",49,"Bad Salzschlirf","06648" -"Germany",49,"Hosenfeld","06650" -"Germany",49,"Rasdorf","06651" -"Germany",49,"Hünfeld","06652" -"Germany",49,"Burghaun","06653" -"Germany",49,"Gersfeld Rhön","06654" -"Germany",49,"Neuhof Kr Fulda","06655" -"Germany",49,"Ebersburg","06656" -"Germany",49,"Hofbieber","06657" -"Germany",49,"Poppenhausen Wasserkuppe","06658" -"Germany",49,"Eichenzell","06659" -"Germany",49,"Steinau-Marjoss","06660" -"Germany",49,"Schlüchtern","06661" -"Germany",49,"Steinau an der Straße","06663" -"Germany",49,"Sinntal-Sterbfritz","06664" -"Germany",49,"Sinntal-Altengronau","06665" -"Germany",49,"Freiensteinau","06666" -"Germany",49,"Steinau-Ulmbach","06667" -"Germany",49,"Birstein-Lichenroth","06668" -"Germany",49,"Neuhof-Hauswurz","06669" -"Germany",49,"Ludwigsau Hess","06670" -"Germany",49,"Eiterfeld","06672" -"Germany",49,"Haunetal","06673" -"Germany",49,"Friedewald Hess","06674" -"Germany",49,"Breitenbach a Herzberg","06675" -"Germany",49,"Hohenroda Hess","06676" -"Germany",49,"Neuenstein Hess","06677" -"Germany",49,"Wildeck-Hönebach","06678" -"Germany",49,"Hilders","06681" -"Germany",49,"Tann Rhön","06682" -"Germany",49,"Ehrenberg Rhön","06683" -"Germany",49,"Hofbieber-Schwarzbach","06684" -"Germany",49,"Schwalmstadt","06691" -"Germany",49,"Neustadt Hessen","06692" -"Germany",49,"Neuental","06693" -"Germany",49,"Neukirchen Knüll","06694" -"Germany",49,"Jesberg","06695" -"Germany",49,"Gilserberg","06696" -"Germany",49,"Willingshausen","06697" -"Germany",49,"Schrecksbach","06698" -"Germany",49,"Sprendlingen Rheinhess","06701" -"Germany",49,"Wöllstein Rheinhess","06703" -"Germany",49,"Langenlonsheim","06704" -"Germany",49,"Wallhausen Nahe","06706" -"Germany",49,"Windesheim","06707" -"Germany",49,"Bad Münster am Stein-Ebernburg","06708" -"Germany",49,"Fürfeld Kr Bad Kreuznach","06709" -"Germany",49,"Bad Kreuznach","0671" -"Germany",49,"Bingen am Rhein","06721" -"Germany",49,"Rüdesheim am Rhein","06722" -"Germany",49,"Oestrich-Winkel","06723" -"Germany",49,"Stromberg Hunsrück","06724" -"Germany",49,"Gau-Algesheim","06725" -"Germany",49,"Lorch Rheingau","06726" -"Germany",49,"Gensingen","06727" -"Germany",49,"Ober-Hilbersheim","06728" -"Germany",49,"Alzey","06731" -"Germany",49,"Wörrstadt","06732" -"Germany",49,"Gau-Odernheim","06733" -"Germany",49,"Flonheim","06734" -"Germany",49,"Eppelsheim","06735" -"Germany",49,"Bechenheim","06736" -"Germany",49,"Köngernheim","06737" -"Germany",49,"St Goar","06741" -"Germany",49,"Boppard","06742" -"Germany",49,"Bacharach","06743" -"Germany",49,"Oberwesel","06744" -"Germany",49,"Gondershausen","06745" -"Germany",49,"Pfalzfeld","06746" -"Germany",49,"Emmelshausen","06747" -"Germany",49,"Bad Sobernheim","06751" -"Germany",49,"Kirn Nahe","06752" -"Germany",49,"Meisenheim","06753" -"Germany",49,"Martinstein","06754" -"Germany",49,"Odernheim am Glan","06755" -"Germany",49,"Winterbach Soonwald","06756" -"Germany",49,"Becherbach bei Kirn","06757" -"Germany",49,"Waldböckelheim","06758" -"Germany",49,"Simmern Hunsrück","06761" -"Germany",49,"Kastellaun","06762" -"Germany",49,"Kirchberg Hunsrück","06763" -"Germany",49,"Rheinböllen","06764" -"Germany",49,"Gemünden Hunsrück","06765" -"Germany",49,"Kisselbach","06766" -"Germany",49,"St Goarshausen","06771" -"Germany",49,"Nastätten","06772" -"Germany",49,"Kamp-Bornhofen","06773" -"Germany",49,"Kaub","06774" -"Germany",49,"Strüth Taunus","06775" -"Germany",49,"Dachsenhausen","06776" -"Germany",49,"Idar-Oberstein","06781" -"Germany",49,"Birkenfeld Nahe","06782" -"Germany",49,"Baumholder","06783" -"Germany",49,"Weierbach","06784" -"Germany",49,"Herrstein","06785" -"Germany",49,"Kempfeld","06786" -"Germany",49,"Niederbrombach","06787" -"Germany",49,"Sien","06788" -"Germany",49,"Heimbach Nahe","06789" -"Germany",49,"Völklingen-Lauterbach","06802" -"Germany",49,"Mandelbachtal-Ommersheim","06803" -"Germany",49,"Mandelbachtal","06804" -"Germany",49,"Kleinblittersdorf","06805" -"Germany",49,"Heusweiler","06806" -"Germany",49,"Grossrosseln","06809" -"Germany",49,"Saarbrücken","0681" -"Germany",49,"Neunkirchen Saar","06821" -"Germany",49,"Ottweiler","06824" -"Germany",49,"Illingen Saar","06825" -"Germany",49,"Bexbach","06826" -"Germany",49,"Eppelborn","06827" -"Germany",49,"Saarlouis","06831" -"Germany",49,"Beckingen-Reimsbach","06832" -"Germany",49,"Rehlingen-Siersburg","06833" -"Germany",49,"Bous","06834" -"Germany",49,"Beckingen","06835" -"Germany",49,"Überherrn","06836" -"Germany",49,"Wallerfangen","06837" -"Germany",49,"Saarwellingen","06838" -"Germany",49,"Homburg Saar","06841" -"Germany",49,"Blieskastel","06842" -"Germany",49,"Gersheim","06843" -"Germany",49,"Blieskastel-Altheim","06844" -"Germany",49,"Homburg-Einöd","06848" -"Germany",49,"Kirkel","06849" -"Germany",49,"St Wendel","06851" -"Germany",49,"Nohfelden","06852" -"Germany",49,"Marpingen","06853" -"Germany",49,"Oberthal Saar","06854" -"Germany",49,"Freisen","06855" -"Germany",49,"St Wendel-Niederkirchen","06856" -"Germany",49,"Namborn","06857" -"Germany",49,"Ottweiler-Fürth","06858" -"Germany",49,"Merzig","06861" -"Germany",49,"Mettlach","06864" -"Germany",49,"Mettlach-Orscholz","06865" -"Germany",49,"Perl-Nennig","06866" -"Germany",49,"Perl","06867" -"Germany",49,"Mettlach-Tünsdorf","06868" -"Germany",49,"Merzig-Silwingen","06869" -"Germany",49,"Wadern","06871" -"Germany",49,"Losheim am See","06872" -"Germany",49,"Nonnweiler","06873" -"Germany",49,"Wadern-Nunkirchen","06874" -"Germany",49,"Nonnweiler-Primstal","06875" -"Germany",49,"Weiskirchen Saar","06876" -"Germany",49,"Lebach","06881" -"Germany",49,"Schmelz Saar","06887" -"Germany",49,"Lebach-Steinbach","06888" -"Germany",49,"Saarbrücken-Ensheim","06893" -"Germany",49,"St Ingbert","06894" -"Germany",49,"Sulzbach Saar","06897" -"Germany",49,"Völklingen","06898" -"Germany",49,"Frankfurt am Main","069" -"Germany",49,"Kirchheim unter Teck","07021" -"Germany",49,"Nürtingen","07022" -"Germany",49,"Weilheim an der Teck","07023" -"Germany",49,"Wendlingen am Neckar","07024" -"Germany",49,"Neuffen","07025" -"Germany",49,"Lenningen","07026" -"Germany",49,"Böblingen","07031" -"Germany",49,"Herrenberg","07032" -"Germany",49,"Weil Der Stadt","07033" -"Germany",49,"Ehningen","07034" -"Germany",49,"Mühlacker","07041" -"Germany",49,"Vaihingen an der Enz","07042" -"Germany",49,"Maulbronn","07043" -"Germany",49,"Mönsheim","07044" -"Germany",49,"Oberderdingen","07045" -"Germany",49,"Zaberfeld","07046" -"Germany",49,"Calw","07051" -"Germany",49,"Bad Liebenzell","07052" -"Germany",49,"Bad Teinach-Zavelstein","07053" -"Germany",49,"Wildberg Württ","07054" -"Germany",49,"Neuweiler Kr Calw","07055" -"Germany",49,"Gechingen","07056" -"Germany",49,"Beilstein Württ","07062" -"Germany",49,"Bad Wimpfen","07063" -"Germany",49,"Bad Rappenau-Bonfeld","07066" -"Germany",49,"Tübingen","07071" -"Germany",49,"Gomaringen","07072" -"Germany",49,"Ammerbuch","07073" -"Germany",49,"Bad Wildbad","07081" -"Germany",49,"Neuenbürg Württ","07082" -"Germany",49,"Bad Herrenalb","07083" -"Germany",49,"Schömberg b Neuenbürg","07084" -"Germany",49,"Enzklösterle","07085" -"Germany",49,"Stuttgart","0711" -"Germany",49,"Reutlingen","07121" -"Germany",49,"St Johann Württ","07122" -"Germany",49,"Metzingen Württ","07123" -"Germany",49,"Trochtelfingen Hohenz","07124" -"Germany",49,"Bad Urach","07125" -"Germany",49,"Burladingen-Melchingen","07126" -"Germany",49,"Neckartenzlingen","07127" -"Germany",49,"Sonnenbühl","07128" -"Germany",49,"Lichtenstein Württ","07129" -"Germany",49,"Löwenstein Württ","07130" -"Germany",49,"Heilbronn Neckar","07131" -"Germany",49,"Neckarsulm","07132" -"Germany",49,"Lauffen am Neckar","07133" -"Germany",49,"Weinsberg","07134" -"Germany",49,"Brackenheim","07135" -"Germany",49,"Bad Friedrichshall","07136" -"Germany",49,"Schwaigern","07138" -"Germany",49,"Neuenstadt am Kocher","07139" -"Germany",49,"Ludwigsburg Württ","07141" -"Germany",49,"Bietigheim-Bissingen","07142" -"Germany",49,"Besigheim","07143" -"Germany",49,"Marbach am Neckar","07144" -"Germany",49,"Markgröningen","07145" -"Germany",49,"Remseck am Neckar","07146" -"Germany",49,"Sachsenheim Württ","07147" -"Germany",49,"Grossbottwar","07148" -"Germany",49,"Korntal-Münchingen","07150" -"Germany",49,"Waiblingen","07151" -"Germany",49,"Leonberg Württ","07152" -"Germany",49,"Plochingen","07153" -"Germany",49,"Kornwestheim","07154" -"Germany",49,"Ditzingen","07156" -"Germany",49,"Waldenbuch","07157" -"Germany",49,"Neuhausen auf den Fildern","07158" -"Germany",49,"Renningen","07159" -"Germany",49,"Göppingen","07161" -"Germany",49,"Süßen","07162" -"Germany",49,"Ebersbach an der Fils","07163" -"Germany",49,"Boll Kr Göppingen","07164" -"Germany",49,"Göppingen-Hohenstaufen","07165" -"Germany",49,"Adelberg","07166" -"Germany",49,"Schwäbisch Gmünd","07171" -"Germany",49,"Lorch Württ","07172" -"Germany",49,"Heubach","07173" -"Germany",49,"Mögglingen","07174" -"Germany",49,"Leinzell","07175" -"Germany",49,"Spraitbach","07176" -"Germany",49,"Schorndorf Württ","07181" -"Germany",49,"Welzheim","07182" -"Germany",49,"Rudersberg Württ","07183" -"Germany",49,"Kaisersbach","07184" -"Germany",49,"Backnang","07191" -"Germany",49,"Murrhardt","07192" -"Germany",49,"Sulzbach an der Murr","07193" -"Germany",49,"Spiegelberg","07194" -"Germany",49,"Winnenden","07195" -"Germany",49,"Karlsbad","07202" -"Germany",49,"Walzbachtal","07203" -"Germany",49,"Malsch-Völkersbach","07204" -"Germany",49,"Karlsruhe","0721" -"Germany",49,"Forbach-Hundsbach","07220" -"Germany",49,"Baden-Baden","07221" -"Germany",49,"Rastatt","07222" -"Germany",49,"Bühl Baden","07223" -"Germany",49,"Gernsbach","07224" -"Germany",49,"Gaggenau","07225" -"Germany",49,"Bühl-Sand","07226" -"Germany",49,"Lichtenau Baden","07227" -"Germany",49,"Forbach","07228" -"Germany",49,"Iffezheim","07229" -"Germany",49,"Pforzheim","07231" -"Germany",49,"Königsbach-Stein","07232" -"Germany",49,"Niefern-Öschelbronn","07233" -"Germany",49,"Tiefenbronn","07234" -"Germany",49,"Unterreichenbach Kr Calw","07235" -"Germany",49,"Keltern","07236" -"Germany",49,"Neulingen Enzkreis","07237" -"Germany",49,"Pfinztal","07240" -"Germany",49,"Rheinstetten","07242" -"Germany",49,"Ettlingen","07243" -"Germany",49,"Weingarten Baden","07244" -"Germany",49,"Durmersheim","07245" -"Germany",49,"Malsch Kr Karlsruhe","07246" -"Germany",49,"Linkenheim-Hochstetten","07247" -"Germany",49,"Marxzell","07248" -"Germany",49,"Stutensee","07249" -"Germany",49,"Kraichtal","07250" -"Germany",49,"Bruchsal","07251" -"Germany",49,"Bretten","07252" -"Germany",49,"Bad Schönborn","07253" -"Germany",49,"Waghäusel","07254" -"Germany",49,"Graben-Neudorf","07255" -"Germany",49,"Philippsburg","07256" -"Germany",49,"Bruchsal-Untergrombach","07257" -"Germany",49,"Oberderdingen-Flehingen","07258" -"Germany",49,"Östringen-Odenheim","07259" -"Germany",49,"Sinsheim-Hilsbach","07260" -"Germany",49,"Sinsheim","07261" -"Germany",49,"Eppingen","07262" -"Germany",49,"Waibstadt","07263" -"Germany",49,"Bad Rappenau","07264" -"Germany",49,"Angelbachtal","07265" -"Germany",49,"Kirchardt","07266" -"Germany",49,"Gemmingen","07267" -"Germany",49,"Bad Rappenau-Obergimpern","07268" -"Germany",49,"Sulzfeld Baden","07269" -"Germany",49,"Wörth am Rhein","07271" -"Germany",49,"Rülzheim","07272" -"Germany",49,"Hagenbach Pfalz","07273" -"Germany",49,"Germersheim","07274" -"Germany",49,"Kandel","07275" -"Germany",49,"Herxheim bei Landau Pfalz","07276" -"Germany",49,"Wörth-Büchelberg","07277" -"Germany",49,"Roggenburg","07300" -"Germany",49,"Pfaffenhofen a d Roth","07302" -"Germany",49,"Illertissen","07303" -"Germany",49,"Blaustein Württ","07304" -"Germany",49,"Erbach Donau","07305" -"Germany",49,"Vöhringen Iller","07306" -"Germany",49,"Senden Iller","07307" -"Germany",49,"Nersingen","07308" -"Germany",49,"Weissenhorn","07309" -"Germany",49,"Ulm Donau","0731" -"Germany",49,"Heidenheim a d Brenz","07321" -"Germany",49,"Giengen a d Brenz","07322" -"Germany",49,"Gerstetten","07323" -"Germany",49,"Herbrechtingen","07324" -"Germany",49,"Sontheim a d Brenz","07325" -"Germany",49,"Neresheim","07326" -"Germany",49,"Dischingen","07327" -"Germany",49,"Königsbronn","07328" -"Germany",49,"Steinheim am Albuch","07329" -"Germany",49,"Geislingen an der Steige","07331" -"Germany",49,"Lauterstein","07332" -"Germany",49,"Laichingen","07333" -"Germany",49,"Deggingen","07334" -"Germany",49,"Wiesensteig","07335" -"Germany",49,"Lonsee","07336" -"Germany",49,"Nellingen Alb","07337" -"Germany",49,"Neenstetten","07340" -"Germany",49,"Buch b Illertissen","07343" -"Germany",49,"Blaubeuren","07344" -"Germany",49,"Langenau Württ","07345" -"Germany",49,"Illerkirchberg","07346" -"Germany",49,"Dietenheim","07347" -"Germany",49,"Beimerstetten","07348" -"Germany",49,"Biberach an der Riß","07351" -"Germany",49,"Ochsenhausen","07352" -"Germany",49,"Schwendi","07353" -"Germany",49,"Erolzheim","07354" -"Germany",49,"Hochdorf Riß","07355" -"Germany",49,"Schemmerhofen","07356" -"Germany",49,"Attenweiler","07357" -"Germany",49,"Eberhardzell-Füramoos","07358" -"Germany",49,"Aalen","07361" -"Germany",49,"Bopfingen","07362" -"Germany",49,"Lauchheim","07363" -"Germany",49,"Oberkochen","07364" -"Germany",49,"Essingen Württ","07365" -"Germany",49,"Abtsgmünd","07366" -"Germany",49,"Aalen-Ebnat","07367" -"Germany",49,"Riedlingen Württ","07371" -"Germany",49,"Zwiefalten","07373" -"Germany",49,"Uttenweiler","07374" -"Germany",49,"Obermarchtal","07375" -"Germany",49,"Langenenslingen","07376" -"Germany",49,"Münsingen","07381" -"Germany",49,"Römerstein","07382" -"Germany",49,"Münsingen-Buttenhausen","07383" -"Germany",49,"Schelklingen-Hütten","07384" -"Germany",49,"Gomadingen","07385" -"Germany",49,"Hayingen","07386" -"Germany",49,"Hohenstein Württ","07387" -"Germany",49,"Pfronstetten","07388" -"Germany",49,"Heroldstatt","07389" -"Germany",49,"Ehingen Donau","07391" -"Germany",49,"Laupheim","07392" -"Germany",49,"Munderkingen","07393" -"Germany",49,"Schelklingen","07394" -"Germany",49,"Ehingen-Dächingen","07395" -"Germany",49,"Fluorn-Winzeln","07402" -"Germany",49,"Dunningen","07403" -"Germany",49,"Epfendorf","07404" -"Germany",49,"Rottweil","0741" -"Germany",49,"Deisslingen","07420" -"Germany",49,"Schramberg","07422" -"Germany",49,"Oberndorf am Neckar","07423" -"Germany",49,"Spaichingen","07424" -"Germany",49,"Trossingen","07425" -"Germany",49,"Gosheim","07426" -"Germany",49,"Schömberg b Balingen","07427" -"Germany",49,"Rosenfeld","07428" -"Germany",49,"Egesheim","07429" -"Germany",49,"Albstadt-Ebingen","07431" -"Germany",49,"Albstadt-Tailfingen","07432" -"Germany",49,"Balingen","07433" -"Germany",49,"Winterlingen","07434" -"Germany",49,"Albstadt-Laufen","07435" -"Germany",49,"Messstetten-Oberdigisheim","07436" -"Germany",49,"Bad Rippoldsau","07440" -"Germany",49,"Freudenstadt","07441" -"Germany",49,"Baiersbronn","07442" -"Germany",49,"Dornstetten","07443" -"Germany",49,"Alpirsbach","07444" -"Germany",49,"Pfalzgrafenweiler","07445" -"Germany",49,"Lossburg","07446" -"Germany",49,"Baiersbronn-Schwarzenberg","07447" -"Germany",49,"Seewald","07448" -"Germany",49,"Baiersbronn-Obertal","07449" -"Germany",49,"Horb am Neckar","07451" -"Germany",49,"Nagold","07452" -"Germany",49,"Altensteig Württ","07453" -"Germany",49,"Sulz am Neckar","07454" -"Germany",49,"Dornhan","07455" -"Germany",49,"Haiterbach","07456" -"Germany",49,"Rottenburg-Ergenzingen","07457" -"Germany",49,"Ebhausen","07458" -"Germany",49,"Nagold-Hochdorf","07459" -"Germany",49,"Tuttlingen","07461" -"Germany",49,"Immendingen","07462" -"Germany",49,"Mühlheim an der Donau","07463" -"Germany",49,"Talheim Kr Tuttlingen","07464" -"Germany",49,"Emmingen-Liptingen","07465" -"Germany",49,"Beuron","07466" -"Germany",49,"Neuhausen ob Eck","07467" -"Germany",49,"Hechingen","07471" -"Germany",49,"Rottenburg am Neckar","07472" -"Germany",49,"Mössingen","07473" -"Germany",49,"Haigerloch","07474" -"Germany",49,"Burladingen","07475" -"Germany",49,"Bisingen","07476" -"Germany",49,"Jungingen b Hechingen","07477" -"Germany",49,"Hirrlingen","07478" -"Germany",49,"Horb-Dettingen","07482" -"Germany",49,"Horb-Mühringen","07483" -"Germany",49,"Simmersfeld","07484" -"Germany",49,"Empfingen","07485" -"Germany",49,"Horb-Altheim","07486" -"Germany",49,"Wolpertswende","07502" -"Germany",49,"Wilhelmsdorf Württ","07503" -"Germany",49,"Horgenzell","07504" -"Germany",49,"Fronreute","07505" -"Germany",49,"Wangen-Leupolz","07506" -"Germany",49,"Ravensburg","0751" -"Germany",49,"Bodnegg","07520" -"Germany",49,"Wangen im Allgäu","07522" -"Germany",49,"Bad Waldsee","07524" -"Germany",49,"Aulendorf","07525" -"Germany",49,"Wolfegg","07527" -"Germany",49,"Neukirch b Tettnang","07528" -"Germany",49,"Waldburg Württ","07529" -"Germany",49,"Konstanz","07531" -"Germany",49,"Meersburg","07532" -"Germany",49,"Allensbach","07533" -"Germany",49,"Reichenau Baden","07534" -"Germany",49,"Friedrichshafen","07541" -"Germany",49,"Tettnang","07542" -"Germany",49,"Kressbronn am Bodensee","07543" -"Germany",49,"Markdorf","07544" -"Germany",49,"Immenstaad am Bodensee","07545" -"Germany",49,"Oberteuringen","07546" -"Germany",49,"Überlingen Bodensee","07551" -"Germany",49,"Pfullendorf","07552" -"Germany",49,"Salem Baden","07553" -"Germany",49,"Heiligenberg Baden","07554" -"Germany",49,"Deggenhausertal","07555" -"Germany",49,"Uhldingen-Mühlhofen","07556" -"Germany",49,"Herdwangen-Schönach","07557" -"Germany",49,"Illmensee","07558" -"Germany",49,"Leutkirch im Allgäu","07561" -"Germany",49,"Isny im Allgäu","07562" -"Germany",49,"Kisslegg","07563" -"Germany",49,"Bad Wurzach","07564" -"Germany",49,"Aichstetten Kr Ravensburg","07565" -"Germany",49,"Argenbühl","07566" -"Germany",49,"Leutkirch-Friesenhofen","07567" -"Germany",49,"Bad Wurzach-Hauerz","07568" -"Germany",49,"Isny-Eisenbach","07569" -"Germany",49,"Sigmaringen-Gutenstein","07570" -"Germany",49,"Sigmaringen","07571" -"Germany",49,"Mengen Württ","07572" -"Germany",49,"Stetten am kalten Markt","07573" -"Germany",49,"Gammertingen","07574" -"Germany",49,"Messkirch","07575" -"Germany",49,"Krauchenwies","07576" -"Germany",49,"Veringenstadt","07577" -"Germany",49,"Wald Hohenz","07578" -"Germany",49,"Schwenningen Baden","07579" -"Germany",49,"Saulgau","07581" -"Germany",49,"Bad Buchau","07582" -"Germany",49,"Bad Schussenried","07583" -"Germany",49,"Altshausen","07584" -"Germany",49,"Ostrach","07585" -"Germany",49,"Herbertingen","07586" -"Germany",49,"Hosskirch","07587" -"Germany",49,"Oberried Breisgau","07602" -"Germany",49,"Freiburg im Breisgau","0761" -"Germany",49,"Schopfheim-Gersbach","07620" -"Germany",49,"Lörrach","07621" -"Germany",49,"Schopfheim","07622" -"Germany",49,"Rheinfelden Baden","07623" -"Germany",49,"Grenzach-Wyhlen","07624" -"Germany",49,"Zell im Wiesental","07625" -"Germany",49,"Kandern","07626" -"Germany",49,"Steinen Kr Lörrach","07627" -"Germany",49,"Efringen-Kirchen","07628" -"Germany",49,"Tegernau Baden","07629" -"Germany",49,"Müllheim Baden","07631" -"Germany",49,"Badenweiler","07632" -"Germany",49,"Staufen im Breisgau","07633" -"Germany",49,"Sulzburg","07634" -"Germany",49,"Schliengen","07635" -"Germany",49,"Münstertal Schwarzwald","07636" -"Germany",49,"Emmendingen","07641" -"Germany",49,"Endingen Kaiserstuh","07642" -"Germany",49,"Herbolzheim Breisgau","07643" -"Germany",49,"Kenzingen","07644" -"Germany",49,"Freiamt","07645" -"Germany",49,"Weisweil Breisgau","07646" -"Germany",49,"Titisee-Neustadt","07651" -"Germany",49,"Hinterzarten","07652" -"Germany",49,"Lenzkirch","07653" -"Germany",49,"Löffingen","07654" -"Germany",49,"Feldberg-Altglashütten","07655" -"Germany",49,"Schluchsee","07656" -"Germany",49,"Eisenbach Hochschwarzwald","07657" -"Germany",49,"St Peter Schwarzw","07660" -"Germany",49,"Kirchzarten","07661" -"Germany",49,"Vogtsburg im Kaiserstuh","07662" -"Germany",49,"Eichstetten","07663" -"Germany",49,"Freiburg-Tiengen","07664" -"Germany",49,"March Breisgau","07665" -"Germany",49,"Denzlingen","07666" -"Germany",49,"Breisach am Rhein","07667" -"Germany",49,"Ihringen","07668" -"Germany",49,"St Märgen","07669" -"Germany",49,"Todtnau","07671" -"Germany",49,"St Blasien","07672" -"Germany",49,"Schönau im Schwarzwald","07673" -"Germany",49,"Todtmoos","07674" -"Germany",49,"Bernau Baden","07675" -"Germany",49,"Feldberg Schwarzwald","07676" -"Germany",49,"Waldkirch Breisgau","07681" -"Germany",49,"Elzach","07682" -"Germany",49,"Simonswald","07683" -"Germany",49,"Glottertal","07684" -"Germany",49,"Gutach-Bleibach","07685" -"Germany",49,"Blumberg Baden","07702" -"Germany",49,"Bonndorf im Schwarzwald","07703" -"Germany",49,"Geisingen Baden","07704" -"Germany",49,"Wolterdingen Schwarzw","07705" -"Germany",49,"Oberbaldingen","07706" -"Germany",49,"Bräunlingen","07707" -"Germany",49,"Geisingen-Leipferdingen","07708" -"Germany",49,"Wutach","07709" -"Germany",49,"Donaueschingen","0771" -"Germany",49,"Schwenningen a Neckar","07720" -"Germany",49,"Villingen i Schwarzw","07721" -"Germany",49,"Triberg im Schwarzwald","07722" -"Germany",49,"Furtwangen im Schwarzwald","07723" -"Germany",49,"St Georgen im Schwarzwald","07724" -"Germany",49,"Königsfeld im Schwarzwald","07725" -"Germany",49,"Bad Dürrheim","07726" -"Germany",49,"Vöhrenbach","07727" -"Germany",49,"Niedereschach","07728" -"Germany",49,"Tennenbronn","07729" -"Germany",49,"Singen Hohentwiel","07731" -"Germany",49,"Radolfzell am Bodensee","07732" -"Germany",49,"Engen Hegau","07733" -"Germany",49,"Gailingen","07734" -"Germany",49,"Öhningen","07735" -"Germany",49,"Tengen","07736" -"Germany",49,"Steisslingen","07738" -"Germany",49,"Hilzingen","07739" -"Germany",49,"Tiengen Hochrhein","07741" -"Germany",49,"Klettgau","07742" -"Germany",49,"Ühlingen-Birkendorf","07743" -"Germany",49,"Stühlingen","07744" -"Germany",49,"Jestetten","07745" -"Germany",49,"Wutöschingen","07746" -"Germany",49,"Berau","07747" -"Germany",49,"Grafenhausen Hochschwarzw","07748" -"Germany",49,"Waldshut","07751" -"Germany",49,"Albbruck","07753" -"Germany",49,"Görwihl","07754" -"Germany",49,"Weilheim Kr Waldshut","07755" -"Germany",49,"Bad Säckingen","07761" -"Germany",49,"Wehr Baden","07762" -"Germany",49,"Murg","07763" -"Germany",49,"Herrischried","07764" -"Germany",49,"Rickenbach Hotzenw","07765" -"Germany",49,"Stockach","07771" -"Germany",49,"Bodman-Ludwigshafen","07773" -"Germany",49,"Eigeltingen","07774" -"Germany",49,"Mühlingen","07775" -"Germany",49,"Sauldorf","07777" -"Germany",49,"Oberkirch Baden","07802" -"Germany",49,"Gengenbach","07803" -"Germany",49,"Oppenau","07804" -"Germany",49,"Appenweier","07805" -"Germany",49,"Bad Peterstal-Griesbach","07806" -"Germany",49,"Neuried Ortenaukreis","07807" -"Germany",49,"Hohberg b Offenburg","07808" -"Germany",49,"Offenburg","0781" -"Germany",49,"Lahr Schwarzwald","07821" -"Germany",49,"Ettenheim","07822" -"Germany",49,"Seelbach Schutter","07823" -"Germany",49,"Schwanau","07824" -"Germany",49,"Kippenheim","07825" -"Germany",49,"Schuttertal","07826" -"Germany",49,"Hausach","07831" -"Germany",49,"Haslach im Kinzigtal","07832" -"Germany",49,"Hornberg Schwarzwaldbahn","07833" -"Germany",49,"Wolfach","07834" -"Germany",49,"Zell am Harmersbach","07835" -"Germany",49,"Schiltach","07836" -"Germany",49,"Oberharmersbach","07837" -"Germany",49,"Nordrach","07838" -"Germany",49,"Schapbach","07839" -"Germany",49,"Achern","07841" -"Germany",49,"Kappelrodeck","07842" -"Germany",49,"Renchen","07843" -"Germany",49,"Rheinau","07844" -"Germany",49,"Kehl","07851" -"Germany",49,"Willstätt","07852" -"Germany",49,"Kehl-Bodersweier","07853" -"Germany",49,"Kehl-Goldscheuer","07854" -"Germany",49,"Mainhardt","07903" -"Germany",49,"Ilshofen","07904" -"Germany",49,"Langenburg","07905" -"Germany",49,"Braunsbach","07906" -"Germany",49,"Schwäbisch Hall-Sulzdorf","07907" -"Germany",49,"Schwäbisch Hall","0791" -"Germany",49,"Boxberg Baden","07930" -"Germany",49,"Bad Mergentheim","07931" -"Germany",49,"Niederstetten Württ","07932" -"Germany",49,"Creglingen","07933" -"Germany",49,"Weikersheim","07934" -"Germany",49,"Schrozberg","07935" -"Germany",49,"Schrozberg-Bartenstein","07936" -"Germany",49,"Dörzbach","07937" -"Germany",49,"Mulfingen Jagst","07938" -"Germany",49,"Schrozberg-Spielbach","07939" -"Germany",49,"Künzelsau","07940" -"Germany",49,"Öhringen","07941" -"Germany",49,"Neuenstein Württ","07942" -"Germany",49,"Schöntal Jagst","07943" -"Germany",49,"Kupferzell","07944" -"Germany",49,"Wüstenrot","07945" -"Germany",49,"Bretzfeld","07946" -"Germany",49,"Forchtenberg","07947" -"Germany",49,"Öhringen-Ohrnberg","07948" -"Germany",49,"Pfedelbach-Untersteinbach","07949" -"Germany",49,"Schnelldorf","07950" -"Germany",49,"Crailsheim","07951" -"Germany",49,"Gerabronn","07952" -"Germany",49,"Blaufelden","07953" -"Germany",49,"Kirchberg an der Jagst","07954" -"Germany",49,"Wallhausen Württ","07955" -"Germany",49,"Kressberg","07957" -"Germany",49,"Rot Am See-Brettheim","07958" -"Germany",49,"Frankenhardt","07959" -"Germany",49,"Ellwangen Jagst","07961" -"Germany",49,"Fichtenau","07962" -"Germany",49,"Adelmannsfelden","07963" -"Germany",49,"Stödtlen","07964" -"Germany",49,"Ellwangen-Röhlingen","07965" -"Germany",49,"Unterschneidheim","07966" -"Germany",49,"Jagstzell","07967" -"Germany",49,"Gaildorf","07971" -"Germany",49,"Gschwend b Gaildorf","07972" -"Germany",49,"Obersontheim","07973" -"Germany",49,"Bühlerzell","07974" -"Germany",49,"Untergröningen","07975" -"Germany",49,"Sulzbach-Laufen","07976" -"Germany",49,"Oberrot b Gaildorf","07977" -"Germany",49,"Weyarn","08020" -"Germany",49,"Waakirchen","08021" -"Germany",49,"Tegernsee","08022" -"Germany",49,"Bayrischzell","08023" -"Germany",49,"Holzkirchen","08024" -"Germany",49,"Miesbach","08025" -"Germany",49,"Hausham","08026" -"Germany",49,"Dietramszell","08027" -"Germany",49,"Fischbachau","08028" -"Germany",49,"Kreuth b Tegernsee","08029" -"Germany",49,"Rosenheim Oberbay","08031" -"Germany",49,"Rohrdorf Kr Rosenheim","08032" -"Germany",49,"Oberaudorf","08033" -"Germany",49,"Brannenburg","08034" -"Germany",49,"Raubling","08035" -"Germany",49,"Stephanskirchen Simssee","08036" -"Germany",49,"Vogtareuth","08038" -"Germany",49,"Rott a Inn","08039" -"Germany",49,"Bad Tölz","08041" -"Germany",49,"Lenggries","08042" -"Germany",49,"Jachenau","08043" -"Germany",49,"Lenggries-Fall","08045" -"Germany",49,"Bad Heilbrunn","08046" -"Germany",49,"Prien a Chiemsee","08051" -"Germany",49,"Aschau i Chiemgau","08052" -"Germany",49,"Bad Endorf","08053" -"Germany",49,"Breitbrunn a Chiemsee","08054" -"Germany",49,"Halfing","08055" -"Germany",49,"Eggstätt","08056" -"Germany",49,"Aschau-Sachrang","08057" -"Germany",49,"Bad Aibling","08061" -"Germany",49,"Bruckmühl Mangfall","08062" -"Germany",49,"Feldkirchen-Westerham","08063" -"Germany",49,"Au b Bad Aibling","08064" -"Germany",49,"Tuntenhausen-Schönau","08065" -"Germany",49,"Bad Feilnbach","08066" -"Germany",49,"Tuntenhausen","08067" -"Germany",49,"Wasserburg a Inn","08071" -"Germany",49,"Haag i OB","08072" -"Germany",49,"Gars a Inn","08073" -"Germany",49,"Schnaitsee","08074" -"Germany",49,"Amerang","08075" -"Germany",49,"Pfaffing","08076" -"Germany",49,"Dorfen Stadt","08081" -"Germany",49,"Schwindegg","08082" -"Germany",49,"Isen","08083" -"Germany",49,"Taufkirchen Vils","08084" -"Germany",49,"Sankt Wolfgang","08085" -"Germany",49,"Buchbach Oberbay","08086" -"Germany",49,"Kirchseeon","08091" -"Germany",49,"Grafing b München","08092" -"Germany",49,"Glonn Kr Ebersberg","08093" -"Germany",49,"Steinhöring","08094" -"Germany",49,"Aying","08095" -"Germany",49,"Höhenkirchen-Siegertsbrunn","08102" -"Germany",49,"Sauerlach","08104" -"Germany",49,"Gilching","08105" -"Germany",49,"Vaterstetten","08106" -"Germany",49,"Hallbergmoos","0811" -"Germany",49,"Markt Schwaben","08121" -"Germany",49,"Erding","08122" -"Germany",49,"Moosinning","08123" -"Germany",49,"Forstern Oberbay","08124" -"Germany",49,"Dachau","08131" -"Germany",49,"Haimhausen Oberbay","08133" -"Germany",49,"Odelzhausen","08134" -"Germany",49,"Sulzemoos","08135" -"Germany",49,"Markt Indersdorf","08136" -"Germany",49,"Petershausen","08137" -"Germany",49,"Schwabhausen b Dachau","08138" -"Germany",49,"Röhrmoos","08139" -"Germany",49,"Fürstenfeldbruck","08141" -"Germany",49,"Olching","08142" -"Germany",49,"Inning a Ammersee","08143" -"Germany",49,"Grafrath","08144" -"Germany",49,"Mammendorf","08145" -"Germany",49,"Moorenweis","08146" -"Germany",49,"Starnberg","08151" -"Germany",49,"Herrsching a Ammersee","08152" -"Germany",49,"Wessling","08153" -"Germany",49,"Feldafing","08157" -"Germany",49,"Tutzing","08158" -"Germany",49,"Freising","08161" -"Germany",49,"Neufahrn b Freising","08165" -"Germany",49,"Allershausen Oberbay","08166" -"Germany",49,"Zolling","08167" -"Germany",49,"Attenkirchen","08168" -"Germany",49,"Straßlach-Dingharting","08170" -"Germany",49,"Wolfratshausen","08171" -"Germany",49,"Egling b Wolfratshausen","08176" -"Germany",49,"Münsing Starnberger See","08177" -"Germany",49,"Icking","08178" -"Germany",49,"Eurasburg a d Loisach","08179" -"Germany",49,"Landsberg a Lech","08191" -"Germany",49,"Schondorf a Ammersee","08192" -"Germany",49,"Geltendorf","08193" -"Germany",49,"Vilgertshofen","08194" -"Germany",49,"Weil Kr Landsberg a Lech","08195" -"Germany",49,"Pürgen","08196" -"Germany",49,"Althegnenberg","08202" -"Germany",49,"Grossaitingen","08203" -"Germany",49,"Mickhausen","08204" -"Germany",49,"Dasing","08205" -"Germany",49,"Egling a d Paar","08206" -"Germany",49,"Affing","08207" -"Germany",49,"Eurasburg b Augsburg","08208" -"Germany",49,"Augsburg","0821" -"Germany",49,"Günzburg","08221" -"Germany",49,"Burgau Schwab","08222" -"Germany",49,"Ichenhausen","08223" -"Germany",49,"Offingen Donau","08224" -"Germany",49,"Jettingen-Scheppach","08225" -"Germany",49,"Bibertal","08226" -"Germany",49,"Gablingen","08230" -"Germany",49,"Königsbrunn b Augsburg","08231" -"Germany",49,"Schwabmünchen","08232" -"Germany",49,"Kissing","08233" -"Germany",49,"Bobingen","08234" -"Germany",49,"Fischach","08236" -"Germany",49,"Aindling","08237" -"Germany",49,"Gessertshausen","08238" -"Germany",49,"Langenneufnach","08239" -"Germany",49,"Buchloe","08241" -"Germany",49,"Fuchstal","08243" -"Germany",49,"Türkheim Wertach","08245" -"Germany",49,"Waal","08246" -"Germany",49,"Bad Wörishofen","08247" -"Germany",49,"Lamerdingen","08248" -"Germany",49,"Ettringen Wertach","08249" -"Germany",49,"Hilgertshausen-Tandern","08250" -"Germany",49,"Aichach","08251" -"Germany",49,"Schrobenhausen","08252" -"Germany",49,"Pöttmes","08253" -"Germany",49,"Altomünster","08254" -"Germany",49,"Inchenhofen","08257" -"Germany",49,"Sielenbach","08258" -"Germany",49,"Schiltberg","08259" -"Germany",49,"Mindelheim","08261" -"Germany",49,"Mittelneufnach","08262" -"Germany",49,"Breitenbrunn Schwab","08263" -"Germany",49,"Pfaffenhausen Schwab","08265" -"Germany",49,"Kirchheim i Schw","08266" -"Germany",49,"Dirlewang","08267" -"Germany",49,"Tussenhausen","08268" -"Germany",49,"Unteregg b Mindelheim","08269" -"Germany",49,"Meitingen","08271" -"Germany",49,"Wertingen","08272" -"Germany",49,"Nordendorf","08273" -"Germany",49,"Buttenwiesen","08274" -"Germany",49,"Baar Schwaben","08276" -"Germany",49,"Thannhausen Schwab","08281" -"Germany",49,"Krumbach Schwaben","08282" -"Germany",49,"Neuburg a d Kammel","08283" -"Germany",49,"Ziemetshausen","08284" -"Germany",49,"Burtenbach","08285" -"Germany",49,"Zusmarshausen","08291" -"Germany",49,"Dinkelscherben","08292" -"Germany",49,"Welden b Augsburg","08293" -"Germany",49,"Horgau","08294" -"Germany",49,"Altenmünster Schwab","08295" -"Germany",49,"Villenbach","08296" -"Germany",49,"Görisried","08302" -"Germany",49,"Waltenhofen","08303" -"Germany",49,"Wildpoldsried","08304" -"Germany",49,"Ronsberg","08306" -"Germany",49,"Kempten Allgäu","0831" -"Germany",49,"Missen-Wilhams","08320" -"Germany",49,"Sonthofen","08321" -"Germany",49,"Oberstdorf","08322" -"Germany",49,"Immenstadt i Allgäu","08323" -"Germany",49,"Hindelang","08324" -"Germany",49,"Oberstaufen-Thalkirchdorf","08325" -"Germany",49,"Fischen i Allgäu","08326" -"Germany",49,"Rettenberg","08327" -"Germany",49,"Balderschwang","08328" -"Germany",49,"Legau","08330" -"Germany",49,"Memmingen","08331" -"Germany",49,"Ottobeuren","08332" -"Germany",49,"Babenhausen Schwab","08333" -"Germany",49,"Bad Grönenbach","08334" -"Germany",49,"Fellheim","08335" -"Germany",49,"Erkheim","08336" -"Germany",49,"Altenstadt Iller","08337" -"Germany",49,"Böhen","08338" -"Germany",49,"Baisweil","08340" -"Germany",49,"Kaufbeuren","08341" -"Germany",49,"Marktoberdorf","08342" -"Germany",49,"Aitrang","08343" -"Germany",49,"Westendorf b Kaufbeuren","08344" -"Germany",49,"Stöttwang","08345" -"Germany",49,"Pforzen","08346" -"Germany",49,"Friesenried","08347" -"Germany",49,"Bidingen","08348" -"Germany",49,"Stötten a Auerberg","08349" -"Germany",49,"Nesselwang","08361" -"Germany",49,"Füssen","08362" -"Germany",49,"Pfronten","08363" -"Germany",49,"Seeg","08364" -"Germany",49,"Wertach","08365" -"Germany",49,"Oy-Mittelberg","08366" -"Germany",49,"Roßhaupten Forggensee","08367" -"Germany",49,"Halblech","08368" -"Germany",49,"Rückholz","08369" -"Germany",49,"Wiggensbach","08370" -"Germany",49,"Obergünzburg","08372" -"Germany",49,"Altusried","08373" -"Germany",49,"Dietmannsried","08374" -"Germany",49,"Weitnau","08375" -"Germany",49,"Sulzberg Allgäu","08376" -"Germany",49,"Unterthingau","08377" -"Germany",49,"Buchenberg b Kempten","08378" -"Germany",49,"Waltenhofen-Oberdorf","08379" -"Germany",49,"Achberg","08380" -"Germany",49,"Lindenberg i Allgäu","08381" -"Germany",49,"Lindau Bodensee","08382" -"Germany",49,"Grünenbach Allgäu","08383" -"Germany",49,"Röthenbach Allgäu","08384" -"Germany",49,"Hergatz","08385" -"Germany",49,"Oberstaufen","08386" -"Germany",49,"Weiler-Simmerberg","08387" -"Germany",49,"Hergensweiler","08388" -"Germany",49,"Weissensberg","08389" -"Germany",49,"Markt Rettenbach","08392" -"Germany",49,"Holzgünz","08393" -"Germany",49,"Lautrach","08394" -"Germany",49,"Tannheim Württ","08395" -"Germany",49,"Münchsmünster","08402" -"Germany",49,"Pförring","08403" -"Germany",49,"Oberdolling","08404" -"Germany",49,"Stammham b Ingolstadt","08405" -"Germany",49,"Böhmfeld","08406" -"Germany",49,"Grossmehring","08407" -"Germany",49,"Ingolstadt Donau","0841" -"Germany",49,"Eichstätt Bay","08421" -"Germany",49,"Dollnstein","08422" -"Germany",49,"Titting","08423" -"Germany",49,"Nassenfels","08424" -"Germany",49,"Walting Kr Eichstätt","08426" -"Germany",49,"Wellheim","08427" -"Germany",49,"Neuburg a d Donau","08431" -"Germany",49,"Burgheim","08432" -"Germany",49,"Königsmoos","08433" -"Germany",49,"Rennertshofen","08434" -"Germany",49,"Ehekirchen","08435" -"Germany",49,"Pfaffenhofen a d Ilm","08441" -"Germany",49,"Wolnzach","08442" -"Germany",49,"Hohenwart Paar","08443" -"Germany",49,"Schweitenkirchen","08444" -"Germany",49,"Gerolsbach","08445" -"Germany",49,"Pörnbach","08446" -"Germany",49,"Ingolstadt-Zuchering","08450" -"Germany",49,"Geisenfeld","08452" -"Germany",49,"Reichertshofen Oberbay","08453" -"Germany",49,"Karlshuld","08454" -"Germany",49,"Lenting","08456" -"Germany",49,"Vohburg a d Donau","08457" -"Germany",49,"Gaimersheim","08458" -"Germany",49,"Manching","08459" -"Germany",49,"Berching-Holnstein","08460" -"Germany",49,"Beilngries","08461" -"Germany",49,"Berching","08462" -"Germany",49,"Greding","08463" -"Germany",49,"Dietfurt a d Altmühl","08464" -"Germany",49,"Kipfenberg","08465" -"Germany",49,"Denkendorf Oberbay","08466" -"Germany",49,"Kinding","08467" -"Germany",49,"Altmannstein-Pondorf","08468" -"Germany",49,"Freystadt-Burggriesbach","08469" -"Germany",49,"Thyrnau","08501" -"Germany",49,"Fürstenzell","08502" -"Germany",49,"Neuhaus a Inn","08503" -"Germany",49,"Tittling","08504" -"Germany",49,"Hutthurm","08505" -"Germany",49,"Bad Höhenstadt","08506" -"Germany",49,"Neuburg a Inn","08507" -"Germany",49,"Ruderting","08509" -"Germany",49,"Passau","0851" -"Germany",49,"Pocking","08531" -"Germany",49,"Griesbach i Rottal","08532" -"Germany",49,"Rotthalmünster","08533" -"Germany",49,"Tettenweis","08534" -"Germany",49,"Haarbach","08535" -"Germany",49,"Kößlarn","08536" -"Germany",49,"Bad Füssing-Aigen","08537" -"Germany",49,"Pocking-Hartkirchen","08538" -"Germany",49,"Vilshofen Niederbay","08541" -"Germany",49,"Ortenburg","08542" -"Germany",49,"Aidenbach","08543" -"Germany",49,"Eging a See","08544" -"Germany",49,"Hofkirchen Bay","08545" -"Germany",49,"Windorf-Otterskirchen","08546" -"Germany",49,"Osterhofen-Gergweis","08547" -"Germany",49,"Vilshofen-Sandbach","08548" -"Germany",49,"Vilshofen-Pleinting","08549" -"Germany",49,"Philippsreut","08550" -"Germany",49,"Freyung","08551" -"Germany",49,"Grafenau Niederbay","08552" -"Germany",49,"Spiegelau","08553" -"Germany",49,"Schönberg Niederbay","08554" -"Germany",49,"Perlesreut","08555" -"Germany",49,"Haidmühle","08556" -"Germany",49,"Mauth","08557" -"Germany",49,"Hohenau Niederbay","08558" -"Germany",49,"Pfarrkirchen Niederbay","08561" -"Germany",49,"Triftern","08562" -"Germany",49,"Bad Birnbach Rottal","08563" -"Germany",49,"Johanniskirchen","08564" -"Germany",49,"Dietersburg-Baumgarten","08565" -"Germany",49,"Simbach a Inn","08571" -"Germany",49,"Tann Niederbay","08572" -"Germany",49,"Ering","08573" -"Germany",49,"Wittibreut","08574" -"Germany",49,"Waldkirchen Niederbay","08581" -"Germany",49,"Röhrnbach","08582" -"Germany",49,"Neureichenau","08583" -"Germany",49,"Breitenberg Niederbay","08584" -"Germany",49,"Grainet","08585" -"Germany",49,"Hauzenberg","08586" -"Germany",49,"Obernzell","08591" -"Germany",49,"Wegscheid Niederbay","08592" -"Germany",49,"Untergriesbach","08593" -"Germany",49,"Traunstein","0861" -"Germany",49,"Trostberg","08621" -"Germany",49,"Tacherting- Peterskirchen","08622" -"Germany",49,"Kirchweidach","08623" -"Germany",49,"Obing","08624" -"Germany",49,"Kienberg Oberbay","08628" -"Germany",49,"Palling","08629" -"Germany",49,"Oberneukirchen","08630" -"Germany",49,"Mühldorf a Inn","08631" -"Germany",49,"Tüßling","08633" -"Germany",49,"Garching a d Alz","08634" -"Germany",49,"Pleiskirchen","08635" -"Germany",49,"Ampfing","08636" -"Germany",49,"Lohkirchen","08637" -"Germany",49,"Waldkraiburg","08638" -"Germany",49,"Neumarkt-Sankt Veit","08639" -"Germany",49,"Reit Im Winkl","08640" -"Germany",49,"Grassau Kr Traunstein","08641" -"Germany",49,"Übersee","08642" -"Germany",49,"Schleching","08649" -"Germany",49,"Marktschellenberg","08650" -"Germany",49,"Bad Reichenhall","08651" -"Germany",49,"Berchtesgaden","08652" -"Germany",49,"Freilassing","08654" -"Germany",49,"Anger","08656" -"Germany",49,"Ramsau b Berchtesgaden","08657" -"Germany",49,"Grabenstätt Chiemsee","08661" -"Germany",49,"Siegsdorf Kr Traunstein","08662" -"Germany",49,"Ruhpolding","08663" -"Germany",49,"Chieming","08664" -"Germany",49,"Inzell","08665" -"Germany",49,"Teisendorf","08666" -"Germany",49,"Seeon-Seebruck","08667" -"Germany",49,"Traunreut","08669" -"Germany",49,"Reischach Kr Altötting","08670" -"Germany",49,"Altötting","08671" -"Germany",49,"Burghausen Salzach","08677" -"Germany",49,"Marktl","08678" -"Germany",49,"Burgkirchen a d Alz","08679" -"Germany",49,"Waging a See","08681" -"Germany",49,"Laufen Salzach","08682" -"Germany",49,"Tittmoning","08683" -"Germany",49,"Fridolfing","08684" -"Germany",49,"Kirchanschöring","08685" -"Germany",49,"Petting","08686" -"Germany",49,"Taching-Tengling","08687" -"Germany",49,"Wörth a d Isar","08702" -"Germany",49,"Essenbach","08703" -"Germany",49,"Altdorf-Pfettrach","08704" -"Germany",49,"Altfraunhofen","08705" -"Germany",49,"Vilsheim","08706" -"Germany",49,"Adlkofen","08707" -"Germany",49,"Weihmichl-Unterneuhausen","08708" -"Germany",49,"Eching Niederbay","08709" -"Germany",49,"Landshut","0871" -"Germany",49,"Eggenfelden","08721" -"Germany",49,"Gangkofen","08722" -"Germany",49,"Arnstorf","08723" -"Germany",49,"Massing","08724" -"Germany",49,"Wurmannsquick","08725" -"Germany",49,"Schönau Niederbay","08726" -"Germany",49,"Falkenberg Niederbay","08727" -"Germany",49,"Geratskirchen","08728" -"Germany",49,"Dingolfing","08731" -"Germany",49,"Frontenhausen","08732" -"Germany",49,"Mengkofen","08733" -"Germany",49,"Reisbach Niederbay","08734" -"Germany",49,"Gangkofen-Kollbach","08735" -"Germany",49,"Vilsbiburg","08741" -"Germany",49,"Velden Vils","08742" -"Germany",49,"Geisenhausen","08743" -"Germany",49,"Gerzen","08744" -"Germany",49,"Bodenkirchen","08745" -"Germany",49,"Mainburg","08751" -"Germany",49,"Au i d Hallertau","08752" -"Germany",49,"Elsendorf Niederbay","08753" -"Germany",49,"Volkenschwand","08754" -"Germany",49,"Nandlstadt","08756" -"Germany",49,"Moosburg a d Isar","08761" -"Germany",49,"Wartenberg Oberbay","08762" -"Germany",49,"Mauern Kr Freising","08764" -"Germany",49,"Bruckberg Niederbay","08765" -"Germany",49,"Gammelsdorf","08766" -"Germany",49,"Ergoldsbach","08771" -"Germany",49,"Mallersdorf-Pfaffenberg","08772" -"Germany",49,"Neufahrn i NB","08773" -"Germany",49,"Bayerbach b Ergoldsbach","08774" -"Germany",49,"Rottenburg a d Laaber","08781" -"Germany",49,"Pfeffenhausen","08782" -"Germany",49,"Rohr i NB","08783" -"Germany",49,"Hohenthann","08784" -"Germany",49,"Rottenburg-Oberroning","08785" -"Germany",49,"Seeshaupt","08801" -"Germany",49,"Huglfing","08802" -"Germany",49,"Peissenberg","08803" -"Germany",49,"Hohenpeissenberg","08805" -"Germany",49,"Utting a Ammersee","08806" -"Germany",49,"Dießen a Ammersee","08807" -"Germany",49,"Pähl","08808" -"Germany",49,"Wessobrunn","08809" -"Germany",49,"Weilheim i OB","0881" -"Germany",49,"Garmisch-Partenkirchen","08821" -"Germany",49,"Oberammergau","08822" -"Germany",49,"Mittenwald","08823" -"Germany",49,"Oberau Loisach","08824" -"Germany",49,"Krün","08825" -"Germany",49,"Murnau a Staffelsee","08841" -"Germany",49,"Bad Kohlgrub","08845" -"Germany",49,"Uffing a Staffelsee","08846" -"Germany",49,"Obersöchering","08847" -"Germany",49,"Kochel a See","08851" -"Germany",49,"Penzberg","08856" -"Germany",49,"Benediktbeuern","08857" -"Germany",49,"Kochel-Walchensee","08858" -"Germany",49,"Bernbeuren","08860" -"Germany",49,"Schongau","08861" -"Germany",49,"Steingaden Oberbay","08862" -"Germany",49,"Rottenbuch Oberbay","08867" -"Germany",49,"Schwabsoien","08868" -"Germany",49,"Kinsau","08869" -"Germany",49,"München","089" -"Germany",49,"Donauwörth","0906" -"Germany",49,"Tapfheim","09070" -"Germany",49,"Dillingen a d Donau","09071" -"Germany",49,"Lauingen Donau","09072" -"Germany",49,"Gundelfingen a d Donau","09073" -"Germany",49,"Höchstädt a d Donau","09074" -"Germany",49,"Glött","09075" -"Germany",49,"Wittislingen","09076" -"Germany",49,"Bachhagel","09077" -"Germany",49,"Mertingen","09078" -"Germany",49,"Harburg Schwaben","09080" -"Germany",49,"Nördlingen","09081" -"Germany",49,"Oettingen i Bay","09082" -"Germany",49,"Möttingen","09083" -"Germany",49,"Bissingen Schwab","09084" -"Germany",49,"Alerheim","09085" -"Germany",49,"Fremdingen","09086" -"Germany",49,"Marktoffingen","09087" -"Germany",49,"Mönchsdeggingen","09088" -"Germany",49,"Bissingen-Unterringingen","09089" -"Germany",49,"Rain Lech","09090" -"Germany",49,"Monheim Schwab","09091" -"Germany",49,"Wemding","09092" -"Germany",49,"Polsingen","09093" -"Germany",49,"Tagmersheim","09094" -"Germany",49,"Marxheim","09097" -"Germany",49,"Kaisheim","09099" -"Germany",49,"Langenzenn","09101" -"Germany",49,"Wilhermsdorf","09102" -"Germany",49,"Cadolzburg","09103" -"Germany",49,"Emskirchen","09104" -"Germany",49,"Grosshabersdorf","09105" -"Germany",49,"Markt Erlbach","09106" -"Germany",49,"Trautskirchen","09107" -"Germany",49,"Nürnberg","0911" -"Germany",49,"Leinburg","09120" -"Germany",49,"Schwabach","09122" -"Germany",49,"Lauf a d Pegnitz","09123" -"Germany",49,"Eckental","09126" -"Germany",49,"Rosstal Mittelfr","09127" -"Germany",49,"Feucht","09128" -"Germany",49,"Wendelstein","09129" -"Germany",49,"Erlangen","09131" -"Germany",49,"Herzogenaurach","09132" -"Germany",49,"Baiersdorf Mittelfr","09133" -"Germany",49,"Neunkirchen a Brand","09134" -"Germany",49,"Heßdorf Mittelfr","09135" -"Germany",49,"Weißenburg i Bay","09141" -"Germany",49,"Treuchtlingen","09142" -"Germany",49,"Pappenheim Mittelfr","09143" -"Germany",49,"Pleinfeld","09144" -"Germany",49,"Solnhofen","09145" -"Germany",49,"Markt Berolzheim","09146" -"Germany",49,"Nennslingen","09147" -"Germany",49,"Ettenstatt","09148" -"Germany",49,"Weissenburg-Suffersheim","09149" -"Germany",49,"Hersbruck","09151" -"Germany",49,"Hartenstein Mittelfr","09152" -"Germany",49,"Schnaittach","09153" -"Germany",49,"Pommelsbrunn","09154" -"Germany",49,"Simmelsdorf","09155" -"Germany",49,"Neuhaus a d Pegnitz","09156" -"Germany",49,"Alfeld Mittelfr","09157" -"Germany",49,"Offenhausen Mittelfr","09158" -"Germany",49,"Neustadt a d Aisch","09161" -"Germany",49,"Scheinfeld","09162" -"Germany",49,"Dachsbach","09163" -"Germany",49,"Langenfeld Mittelfr","09164" -"Germany",49,"Sugenheim","09165" -"Germany",49,"Münchsteinach","09166" -"Germany",49,"Oberscheinfeld","09167" -"Germany",49,"Schwanstetten","09170" -"Germany",49,"Roth Mittelfr","09171" -"Germany",49,"Georgensgmünd","09172" -"Germany",49,"Thalmässing","09173" -"Germany",49,"Hilpoltstein","09174" -"Germany",49,"Spalt","09175" -"Germany",49,"Allersberg","09176" -"Germany",49,"Heideck","09177" -"Germany",49,"Abenberg Mittelfr","09178" -"Germany",49,"Freystadt","09179" -"Germany",49,"Pyrbaum","09180" -"Germany",49,"Neumarkt i d Opf","09181" -"Germany",49,"Velburg","09182" -"Germany",49,"Burgthann","09183" -"Germany",49,"Deining Oberpf","09184" -"Germany",49,"Mühlhausen Oberpf","09185" -"Germany",49,"Lauterhofen Oberpf","09186" -"Germany",49,"Altdorf b Nürnberg","09187" -"Germany",49,"Postbauer-Heng","09188" -"Germany",49,"Berg b Neumarkt i d Opf","09189" -"Germany",49,"Heroldsbach","09190" -"Germany",49,"Forchheim Oberfr","09191" -"Germany",49,"Gräfenberg","09192" -"Germany",49,"Höchstadt a d Aisch","09193" -"Germany",49,"Ebermannstadt","09194" -"Germany",49,"Adelsdorf Mittelfr","09195" -"Germany",49,"Wiesenttal","09196" -"Germany",49,"Egloffstein","09197" -"Germany",49,"Heiligenstadt i Ofr","09198" -"Germany",49,"Kunreuth","09199" -"Germany",49,"Gesees","09201" -"Germany",49,"Waischenfeld","09202" -"Germany",49,"Neudrossenfeld","09203" -"Germany",49,"Plankenfels","09204" -"Germany",49,"Vorbach","09205" -"Germany",49,"Mistelgau-Obernsees","09206" -"Germany",49,"Königsfeld Oberfr","09207" -"Germany",49,"Bindlach","09208" -"Germany",49,"Emtmannsberg","09209" -"Germany",49,"Bayreuth","0921" -"Germany",49,"Kasendorf-Azendorf","09220" -"Germany",49,"Kulmbach","09221" -"Germany",49,"Presseck","09222" -"Germany",49,"Rugendorf","09223" -"Germany",49,"Stadtsteinach","09225" -"Germany",49,"Neuenmarkt","09227" -"Germany",49,"Thurnau","09228" -"Germany",49,"Mainleus","09229" -"Germany",49,"Marktredwitz","09231" -"Germany",49,"Wunsiedel","09232" -"Germany",49,"Arzberg Oberfr","09233" -"Germany",49,"Neusorg","09234" -"Germany",49,"Thierstein","09235" -"Germany",49,"Nagel","09236" -"Germany",49,"Röslau","09238" -"Germany",49,"Pegnitz","09241" -"Germany",49,"Gößweinstein","09242" -"Germany",49,"Pottenstein","09243" -"Germany",49,"Betzenstein","09244" -"Germany",49,"Obertrubach","09245" -"Germany",49,"Pegnitz-Trockau","09246" -"Germany",49,"Münchberg","09251" -"Germany",49,"Helmbrechts","09252" -"Germany",49,"Weissenstadt","09253" -"Germany",49,"Gefrees","09254" -"Germany",49,"Marktleugast","09255" -"Germany",49,"Stammbach","09256" -"Germany",49,"Zell Oberfr","09257" -"Germany",49,"Wilhelmsthal Oberfr","09260" -"Germany",49,"Kronach","09261" -"Germany",49,"Wallenfels","09262" -"Germany",49,"Ludwigsstadt","09263" -"Germany",49,"Küps","09264" -"Germany",49,"Pressig","09265" -"Germany",49,"Mitwitz","09266" -"Germany",49,"Nordhalben","09267" -"Germany",49,"Teuschnitz","09268" -"Germany",49,"Tettau Kr Kronach","09269" -"Germany",49,"Creussen","09270" -"Germany",49,"Thurnau-Alladorf","09271" -"Germany",49,"Fichtelberg","09272" -"Germany",49,"Bad Berneck i Fichtelgebirge","09273" -"Germany",49,"Hollfeld","09274" -"Germany",49,"Speichersdorf","09275" -"Germany",49,"Bischofsgrün","09276" -"Germany",49,"Warmensteinach","09277" -"Germany",49,"Weidenberg","09278" -"Germany",49,"Mistelgau","09279" -"Germany",49,"Selbitz Oberfr","09280" -"Germany",49,"Hof Saale","09281" -"Germany",49,"Naila","09282" -"Germany",49,"Rehau","09283" -"Germany",49,"Schwarzenbach a d Saale","09284" -"Germany",49,"Kirchenlamitz","09285" -"Germany",49,"Oberkotzau","09286" -"Germany",49,"Selb","09287" -"Germany",49,"Bad Steben","09288" -"Germany",49,"Schwarzenbach a Wald","09289" -"Germany",49,"Konradsreuth","09292" -"Germany",49,"Berg Oberfr","09293" -"Germany",49,"Regnitzlosau","09294" -"Germany",49,"Töpen","09295" -"Germany",49,"Rottendorf Unterfr","09302" -"Germany",49,"Eibelstadt","09303" -"Germany",49,"Estenfeld","09305" -"Germany",49,"Kist","09306" -"Germany",49,"Altertheim","09307" -"Germany",49,"Würzburg","0931" -"Germany",49,"Kitzingen","09321" -"Germany",49,"Iphofen","09323" -"Germany",49,"Dettelbach","09324" -"Germany",49,"Kleinlangheim","09325" -"Germany",49,"Markt Einersheim","09326" -"Germany",49,"Ochsenfurt","09331" -"Germany",49,"Marktbreit","09332" -"Germany",49,"Sommerhausen","09333" -"Germany",49,"Giebelstadt","09334" -"Germany",49,"Aub Kr Würzburg","09335" -"Germany",49,"Bütthard","09336" -"Germany",49,"Gaukönigshofen","09337" -"Germany",49,"Röttingen Unterfr","09338" -"Germany",49,"Ippesheim","09339" -"Germany",49,"Königheim-Brehmen","09340" -"Germany",49,"Tauberbischofsheim","09341" -"Germany",49,"Wertheim","09342" -"Germany",49,"Lauda-Königshofen","09343" -"Germany",49,"Gerchsheim","09344" -"Germany",49,"Külsheim Baden","09345" -"Germany",49,"Grünsfeld","09346" -"Germany",49,"Wittighausen","09347" -"Germany",49,"Werbach-Gamburg","09348" -"Germany",49,"Werbach-Wenkheim","09349" -"Germany",49,"Eussenheim-Hundsbach","09350" -"Germany",49,"Gemünden a Main","09351" -"Germany",49,"Lohr a Main","09352" -"Germany",49,"Karlstadt","09353" -"Germany",49,"Rieneck","09354" -"Germany",49,"Frammersbach","09355" -"Germany",49,"Burgsinn","09356" -"Germany",49,"Gräfendorf Bay","09357" -"Germany",49,"Gössenheim","09358" -"Germany",49,"Karlstadt-Wiesenfeld","09359" -"Germany",49,"Thüngen","09360" -"Germany",49,"Arnstein Unterfr","09363" -"Germany",49,"Zellingen","09364" -"Germany",49,"Rimpar","09365" -"Germany",49,"Geroldshausen Unterfr","09366" -"Germany",49,"Unterpleichfeld","09367" -"Germany",49,"Uettingen","09369" -"Germany",49,"Miltenberg","09371" -"Germany",49,"Klingenberg a Main","09372" -"Germany",49,"Amorbach","09373" -"Germany",49,"Eschau","09374" -"Germany",49,"Freudenberg Baden","09375" -"Germany",49,"Collenberg","09376" -"Germany",49,"Freudenberg-Boxtal","09377" -"Germany",49,"Eichenbühl-Riedern","09378" -"Germany",49,"Volkach","09381" -"Germany",49,"Gerolzhofen","09382" -"Germany",49,"Wiesentheid","09383" -"Germany",49,"Schwanfeld","09384" -"Germany",49,"Kolitzheim","09385" -"Germany",49,"Prosselsheim","09386" -"Germany",49,"Marktheidenfeld","09391" -"Germany",49,"Faulbach Unterfr","09392" -"Germany",49,"Rothenfels Unterfr","09393" -"Germany",49,"Esselbach","09394" -"Germany",49,"Triefenstein","09395" -"Germany",49,"Urspringen b Lohr","09396" -"Germany",49,"Wertheim-Dertingen","09397" -"Germany",49,"Birkenfeld b Würzburg","09398" -"Germany",49,"Neutraubling","09401" -"Germany",49,"Regenstauf","09402" -"Germany",49,"Donaustauf","09403" -"Germany",49,"Nittendorf","09404" -"Germany",49,"Bad Abbach","09405" -"Germany",49,"Mintraching","09406" -"Germany",49,"Wenzenbach","09407" -"Germany",49,"Altenthann","09408" -"Germany",49,"Pielenhofen","09409" -"Germany",49,"Regensburg","0941" -"Germany",49,"Feldkirchen Niederbay","09420" -"Germany",49,"Straubing","09421" -"Germany",49,"Bogen Niederbay","09422" -"Germany",49,"Geiselhöring","09423" -"Germany",49,"Strasskirchen","09424" -"Germany",49,"Oberschneiding","09426" -"Germany",49,"Leiblfing","09427" -"Germany",49,"Kirchroth","09428" -"Germany",49,"Rain Niederbay","09429" -"Germany",49,"Schwandorf","09431" -"Germany",49,"Nabburg","09433" -"Germany",49,"Bodenwöhr","09434" -"Germany",49,"Schwarzenfeld","09435" -"Germany",49,"Nittenau","09436" -"Germany",49,"Fensterbach","09438" -"Germany",49,"Neunburg-Kemnath","09439" -"Germany",49,"Kelheim","09441" -"Germany",49,"Riedenburg","09442" -"Germany",49,"Abensberg","09443" -"Germany",49,"Siegenburg","09444" -"Germany",49,"Neustadt a d Donau","09445" -"Germany",49,"Altmannstein","09446" -"Germany",49,"Essing","09447" -"Germany",49,"Hausen Niederbay","09448" -"Germany",49,"Schierling","09451" -"Germany",49,"Langquaid","09452" -"Germany",49,"Thalmassing","09453" -"Germany",49,"Aufhausen Oberpf","09454" -"Germany",49,"Roding","09461" -"Germany",49,"Falkenstein Oberpf","09462" -"Germany",49,"Wald Oberpf","09463" -"Germany",49,"Walderbach","09464" -"Germany",49,"Neukirchen-Balbini","09465" -"Germany",49,"Stamsried","09466" -"Germany",49,"Michelsneukirchen","09467" -"Germany",49,"Zell Oberpf","09468" -"Germany",49,"Roding-Neubäu","09469" -"Germany",49,"Burglengenfeld","09471" -"Germany",49,"Hohenfels Oberpf","09472" -"Germany",49,"Kallmünz","09473" -"Germany",49,"Schmidmühlen","09474" -"Germany",49,"Sünching","09480" -"Germany",49,"Pfatter","09481" -"Germany",49,"Wörth a d Donau","09482" -"Germany",49,"Brennberg","09484" -"Germany",49,"Hemau","09491" -"Germany",49,"Parsberg","09492" -"Germany",49,"Beratzhausen","09493" -"Germany",49,"Breitenbrunn Oberpf","09495" -"Germany",49,"Seubersdorf i d Opf","09497" -"Germany",49,"Laaber","09498" -"Germany",49,"Painten","09499" -"Germany",49,"Frensdorf","09502" -"Germany",49,"Oberhaid Oberfr","09503" -"Germany",49,"Stadelhofen","09504" -"Germany",49,"Litzendorf","09505" -"Germany",49,"Bamberg","0951" -"Germany",49,"Hassfurt","09521" -"Germany",49,"Eltmann","09522" -"Germany",49,"Hofheim i Ufr","09523" -"Germany",49,"Zeil a Main","09524" -"Germany",49,"Königsberg i Bay","09525" -"Germany",49,"Riedbach","09526" -"Germany",49,"Knetzgau","09527" -"Germany",49,"Donnersdorf","09528" -"Germany",49,"Oberaurach","09529" -"Germany",49,"Ebern","09531" -"Germany",49,"Maroldsweisach","09532" -"Germany",49,"Untermerzbach","09533" -"Germany",49,"Burgpreppach","09534" -"Germany",49,"Pfarrweisach","09535" -"Germany",49,"Kirchlauter","09536" -"Germany",49,"Schesslitz","09542" -"Germany",49,"Hirschaid","09543" -"Germany",49,"Baunach","09544" -"Germany",49,"Buttenheim","09545" -"Germany",49,"Burgebrach","09546" -"Germany",49,"Zapfendorf","09547" -"Germany",49,"Mühlhausen Mittelfr","09548" -"Germany",49,"Lisberg","09549" -"Germany",49,"Burgwindheim","09551" -"Germany",49,"Burghaslach","09552" -"Germany",49,"Ebrach Oberfr","09553" -"Germany",49,"Untersteinbach Unterfr","09554" -"Germany",49,"Schlüsselfeld-Aschbach","09555" -"Germany",49,"Geiselwind","09556" -"Germany",49,"Grub a Forst","09560" -"Germany",49,"Coburg","09561" -"Germany",49,"Sonnefeld","09562" -"Germany",49,"Rödental","09563" -"Germany",49,"Bad Rodach","09564" -"Germany",49,"Untersiemau","09565" -"Germany",49,"Meeder","09566" -"Germany",49,"Seßlach-Gemünda","09567" -"Germany",49,"Neustadt b Coburg","09568" -"Germany",49,"Sesslach","09569" -"Germany",49,"Lichtenfels Bay","09571" -"Germany",49,"Burgkunstadt","09572" -"Germany",49,"Staffelstein Oberfr","09573" -"Germany",49,"Marktzeuln","09574" -"Germany",49,"Weismain","09575" -"Germany",49,"Lichtenfels-Isling","09576" -"Germany",49,"Neustadt a d Waldnaab","09602" -"Germany",49,"Floss","09603" -"Germany",49,"Wernberg-Köblitz","09604" -"Germany",49,"Weiherhammer","09605" -"Germany",49,"Pfreimd","09606" -"Germany",49,"Luhe-Wildenau","09607" -"Germany",49,"Kohlberg Oberpf","09608" -"Germany",49,"Weiden i d Opf","0961" -"Germany",49,"Amberg Oberpf","09621" -"Germany",49,"Hirschau Oberpf","09622" -"Germany",49,"Ensdorf Oberpf","09624" -"Germany",49,"Kastl b Amberg","09625" -"Germany",49,"Hohenburg","09626" -"Germany",49,"Freudenberg Oberpf","09627" -"Germany",49,"Ursensollen","09628" -"Germany",49,"Tirschenreuth","09631" -"Germany",49,"Waldsassen","09632" -"Germany",49,"Mitterteich","09633" -"Germany",49,"Wiesau","09634" -"Germany",49,"Bärnau","09635" -"Germany",49,"Plößberg","09636" -"Germany",49,"Falkenberg Oberpf","09637" -"Germany",49,"Neualbenreuth","09638" -"Germany",49,"Mähring","09639" -"Germany",49,"Grafenwöhr","09641" -"Germany",49,"Kemnath Stadt","09642" -"Germany",49,"Auerbach i d Opf","09643" -"Germany",49,"Pressath","09644" -"Germany",49,"Eschenbach i d Opf","09645" -"Germany",49,"Freihung","09646" -"Germany",49,"Kirchenthumbach","09647" -"Germany",49,"Neustadt a Kulm","09648" -"Germany",49,"Vohenstrauss","09651" -"Germany",49,"Waidhaus","09652" -"Germany",49,"Eslarn","09653" -"Germany",49,"Pleystein","09654" -"Germany",49,"Tännesberg","09655" -"Germany",49,"Moosbach b Vohenstrauß","09656" -"Germany",49,"Waldthurn","09657" -"Germany",49,"Georgenberg","09658" -"Germany",49,"Leuchtenberg","09659" -"Germany",49,"Sulzbach-Rosenberg","09661" -"Germany",49,"Vilseck","09662" -"Germany",49,"Neukirchen b Sulzbach-Rosenberg","09663" -"Germany",49,"Hahnbach","09664" -"Germany",49,"Königstein Oberpf","09665" -"Germany",49,"Illschwang","09666" -"Germany",49,"Oberviechtach","09671" -"Germany",49,"Neunburg vorm Wald","09672" -"Germany",49,"Tiefenbach Oberpf","09673" -"Germany",49,"Schönsee","09674" -"Germany",49,"Altendorf a Nabburg","09675" -"Germany",49,"Winklarn","09676" -"Germany",49,"Oberviechtach-Pullenried","09677" -"Germany",49,"Windischeschenbach","09681" -"Germany",49,"Erbendorf","09682" -"Germany",49,"Friedenfels","09683" -"Germany",49,"Sandberg Unterfr","09701" -"Germany",49,"Euerdorf","09704" -"Germany",49,"Bad Bocklet","09708" -"Germany",49,"Bad Kissingen","0971" -"Germany",49,"Üchtelhausen","09720" -"Germany",49,"Schweinfurt","09721" -"Germany",49,"Werneck","09722" -"Germany",49,"Röthlein","09723" -"Germany",49,"Stadtlauringen","09724" -"Germany",49,"Poppenhausen Unterfr","09725" -"Germany",49,"Euerbach","09726" -"Germany",49,"Schonungen-Marktsteinach","09727" -"Germany",49,"Wülfershausen Unterfr","09728" -"Germany",49,"Grettstadt","09729" -"Germany",49,"Hammelburg","09732" -"Germany",49,"Münnerstadt","09733" -"Germany",49,"Burkardroth","09734" -"Germany",49,"Massbach","09735" -"Germany",49,"Oberthulba","09736" -"Germany",49,"Wartmannsroth","09737" -"Germany",49,"Rottershausen","09738" -"Germany",49,"Bad Brückenau","09741" -"Germany",49,"Kalbach Rhön","09742" -"Germany",49,"Zeitlofs-Detter","09744" -"Germany",49,"Wildflecken","09745" -"Germany",49,"Zeitlofs","09746" -"Germany",49,"Geroda Bay","09747" -"Germany",49,"Motten","09748" -"Germany",49,"Oberbach Unterfr","09749" -"Germany",49,"Bad Königshofen i Grabfeld","09761" -"Germany",49,"Saal a d Saale","09762" -"Germany",49,"Sulzdorf a d Lederhecke","09763" -"Germany",49,"Höchheim","09764" -"Germany",49,"Trappstadt","09765" -"Germany",49,"Grosswenkheim","09766" -"Germany",49,"Bad Neustadt a d Saale","09771" -"Germany",49,"Bischofsheim a d Rhön","09772" -"Germany",49,"Unsleben","09773" -"Germany",49,"Oberelsbach","09774" -"Germany",49,"Schönau a d Brend","09775" -"Germany",49,"Mellrichstadt","09776" -"Germany",49,"Ostheim v d Rhön","09777" -"Germany",49,"Fladungen","09778" -"Germany",49,"Nordheim v d Rhön","09779" -"Germany",49,"Ansbach-Katterbach","09802" -"Germany",49,"Colmberg","09803" -"Germany",49,"Aurach","09804" -"Germany",49,"Burgoberbach","09805" -"Germany",49,"Ansbach","0981" -"Germany",49,"Lehrberg","09820" -"Germany",49,"Bechhofen a d Heide","09822" -"Germany",49,"Leutershausen","09823" -"Germany",49,"Dietenhofen","09824" -"Germany",49,"Herrieden","09825" -"Germany",49,"Weidenbach Mittelfr","09826" -"Germany",49,"Lichtenau Mittelfr","09827" -"Germany",49,"Rügland","09828" -"Germany",49,"Flachslanden","09829" -"Germany",49,"Gunzenhausen","09831" -"Germany",49,"Wassertrüdingen","09832" -"Germany",49,"Heidenheim Mittelfr","09833" -"Germany",49,"Theilenhofen","09834" -"Germany",49,"Ehingen Mittelfr","09835" -"Germany",49,"Gunzenhausen-Cronheim","09836" -"Germany",49,"Haundorf","09837" -"Germany",49,"Bad Windsheim","09841" -"Germany",49,"Uffenheim","09842" -"Germany",49,"Burgbernheim","09843" -"Germany",49,"Obernzenn","09844" -"Germany",49,"Oberdachstetten","09845" -"Germany",49,"Ipsheim","09846" -"Germany",49,"Ergersheim","09847" -"Germany",49,"Simmershofen","09848" -"Germany",49,"Dinkelsbühl","09851" -"Germany",49,"Feuchtwangen","09852" -"Germany",49,"Wilburgstetten","09853" -"Germany",49,"Wittelshofen","09854" -"Germany",49,"Dentlein a Forst","09855" -"Germany",49,"Dürrwangen","09856" -"Germany",49,"Schopfloch Mittelfr","09857" -"Germany",49,"Rothenburg ob der Tauber","09861" -"Germany",49,"Adelshofen Mittelfr","09865" -"Germany",49,"Geslau","09867" -"Germany",49,"Schillingsfürst","09868" -"Germany",49,"Wettringen Mittelfr","09869" -"Germany",49,"Windsbach","09871" -"Germany",49,"Heilsbronn","09872" -"Germany",49,"Abenberg-Wassermungenau","09873" -"Germany",49,"Neuendettelsau","09874" -"Germany",49,"Wolframs-Eschenbach","09875" -"Germany",49,"Rohr Mittelfr","09876" -"Germany",49,"Hengersberg Bay","09901" -"Germany",49,"Schöllnach","09903" -"Germany",49,"Lalling","09904" -"Germany",49,"Bernried Niederbay","09905" -"Germany",49,"Mariaposching","09906" -"Germany",49,"Zenting","09907" -"Germany",49,"Schöfweg","09908" -"Germany",49,"Deggendorf","0991" -"Germany",49,"Bischofsmais","09920" -"Germany",49,"Regen","09921" -"Germany",49,"Zwiesel","09922" -"Germany",49,"Teisnach","09923" -"Germany",49,"Bodenmais","09924" -"Germany",49,"Bayerisch Eisenstein","09925" -"Germany",49,"Frauenau","09926" -"Germany",49,"Kirchberg Wald","09927" -"Germany",49,"Kirchdorf i Wald","09928" -"Germany",49,"Ruhmannsfelden","09929" -"Germany",49,"Plattling","09931" -"Germany",49,"Osterhofen","09932" -"Germany",49,"Wallersdorf","09933" -"Germany",49,"Stephansposching","09935" -"Germany",49,"Wallerfing","09936" -"Germany",49,"Oberpöring","09937" -"Germany",49,"Moos Niederbay","09938" -"Germany",49,"Kötzting","09941" -"Germany",49,"Viechtach","09942" -"Germany",49,"Lam Oberpf","09943" -"Germany",49,"Miltach","09944" -"Germany",49,"Arnbruck","09945" -"Germany",49,"Hohenwarth b Kötzing","09946" -"Germany",49,"Neukirchen b Hl Blut","09947" -"Germany",49,"Eschlkam","09948" -"Germany",49,"Landau a d Isar","09951" -"Germany",49,"Eichendorf","09952" -"Germany",49,"Pilsting","09953" -"Germany",49,"SimbachNiederbay","09954" -"Germany",49,"Mamming","09955" -"Germany",49,"Eichendorf-Aufhausen","09956" -"Germany",49,"Mitterfels","09961" -"Germany",49,"Schwarzach Niederbay","09962" -"Germany",49,"Konzell","09963" -"Germany",49,"Stallwang","09964" -"Germany",49,"Sankt Englmar","09965" -"Germany",49,"Wiesenfelden","09966" -"Germany",49,"Cham","09971" -"Germany",49,"Waldmünchen","09972" -"Germany",49,"Furth i Wald","09973" -"Germany",49,"Traitsching","09974" -"Germany",49,"Waldmünchen-Geigant","09975" -"Germany",49,"Rötz","09976" -"Germany",49,"Arnschwang","09977" -"Germany",49,"Schönthal Oberpf","09978" -"Ghana",233,"Accra","021" -"Ghana",233,"Lashibi","022" -"Ghana",233,"Akosombo","0251" -"Ghana",233,"Takoradi","031" -"Ghana",233,"Axim","0342" -"Ghana",233,"Elubo","0345" -"Ghana",233,"Takoradi2","0362" -"Ghana",233,"Dunkwa","0372" -"Ghana",233,"Asankragua","0392" -"Ghana",233,"Samreboi","0394" -"Ghana",233,"Enchi","0395" -"Ghana",233,"Swedru","041" -"Ghana",233,"Cape Coast","042" -"Ghana",233,"Winneba1","0432" -"Ghana",233,"Kumasi","051" -"Ghana",233,"Konongo","0531" -"Ghana",233,"Mampong-Ashanti","0561" -"Ghana",233,"Ejura","0565" -"Ghana",233,"Brong Ahafo","0567" -"Ghana",233,"Yeji","0568" -"Ghana",233,"Bekwai","0572" -"Ghana",233,"Obuasi","0582" -"Ghana",233,"Sunyani","061" -"Ghana",233,"Berekum","0642" -"Ghana",233,"Dormaa-Ahenkro","0648" -"Ghana",233,"Wenchi","0652" -"Ghana",233,"Techiman","0653" -"Ghana",233,"Tamale","071" -"Ghana",233,"Walewale","0715" -"Ghana",233,"Buipe","0716" -"Ghana",233,"Damongo","0717" -"Ghana",233,"Bolgatanga","072" -"Ghana",233,"Bawku","0743" -"Ghana",233,"Bole","0746" -"Ghana",233,"Salaga","0752" -"Ghana",233,"Wa1","0756" -"Ghana",233,"Gambaga","0762" -"Ghana",233,"Koforidua","081" -"Ghana",233,"Nkawkaw / Nsawam","0842" -"Ghana",233,"Mpraeso","0846" -"Ghana",233,"Donkorkrom","0848" -"Ghana",233,"Mampong-Akwapim","0872" -"Ghana",233,"Aburi","0876" -"Ghana",233,"Akim Oda","0882" -"Ghana",233,"Ho","091" -"Ghana",233,"Hohoe","0935" -"Ghana",233,"Akatsi / Kete-Krachi","0953" -"Ghana",233,"Aflao","0962" -"Ghana",233,"Keta","0966" -"Ghana",233,"Ada","0968" -"Gibraltar",350,"Gibraltar",4 -"Gibraltar",350,"Gibraltar",5 -"Gibraltar",350,"Gibraltar",7 -"Greece",30,"Athens",21 -"Greece",30,"Thessaloniki",231 -"Greece",30,"Larissa",241 -"Greece",30,"Kavala",251 -"Greece",30,"Aghios Vassilios (of Patras)",261 -"Greece",30,"Tripoli",271 -"Greece",30,"Heraclion",281 -"Greenland",299,"Nuuk",3 -"Greenland",299,"Nanortalik",61 -"Greenland",299,"Qaqortoq",64 -"Greenland",299,"Narsaq",66 -"Greenland",299,"Paamiut",68 -"Greenland",299,"Maniitsoq",81 -"Greenland",299,"Kangerlussuaq",84 -"Greenland",299,"Sisimiut",86 -"Greenland",299,"Kangaatsiaq",87 -"Greenland",299,"Aasiaat",89 -"Greenland",299,"Qasigannguit",91 -"Greenland",299,"Qeqertasuaq",92 -"Greenland",299,"Ilulissat",94 -"Greenland",299,"Uummannaq",95 -"Greenland",299,"Upernavik",96 -"Greenland",299,"Qaanaaq",97 -"Greenland",299,"Tasiilaq",98 -"Greenland",299,"Illoqqortoormiut",99 -"Greenland",299,"Ivittuut",691 -"Grenada",1,"Grenada and Carriacou","(1+)473" -"Guam",1,"Guam","(1+)671" -"Guatemala",502,"Guatemala city",2 -"Guatemala",502,"Guatemala city (suburbs)",6 -"Guatemala",502,"Outside Guatamala city",7 -"Guernsey",44,"Guernsey","01481" -"Guyana",592,"Georgetown",218 -"Guyana",592,"Georgetown",219 -"Guyana",592,"B/V Central",220 -"Guyana",592,"Mahaicony",221 -"Guyana",592,"B/V West",222 -"Guyana",592,"Georgetown",223 -"Guyana",592,"Georgetown",225 -"Guyana",592,"Georgetown",226 -"Guyana",592,"Georgetown",227 -"Guyana",592,"Belmont",228 -"Guyana",592,"Cove & John",229 -"Guyana",592,"Georgetown",231 -"Guyana",592,"Belladrum",232 -"Guyana",592,"Agricola",233 -"Guyana",592,"B/V Central",234 -"Guyana",592,"Goed Fortuin",253 -"Guyana",592,"New Road",254 -"Guyana",592,"Golden Grove",255 -"Guyana",592,"Hope West",256 -"Guyana",592,"Cane Grove",257 -"Guyana",592,"Mortice",258 -"Guyana",592,"Clonbrook",259 -"Guyana",592,"Parika",260 -"Guyana",592,"Long Creek",261 -"Guyana",592,"Zeeburg",262 -"Guyana",592,"Georgetown",263 -"Guyana",592,"Vreed-en-Hoop",264 -"Guyana",592,"Diamond",265 -"Guyana",592,"Land of Canaan",266 -"Guyana",592,"Wales",267 -"Guyana",592,"Leonora",268 -"Guyana",592,"Windsor Forest",269 -"Guyana",592,"Enmore",270 -"Guyana",592,"Canal No. 1",271 -"Guyana",592,"B/V West",272 -"Guyana",592,"Vigilance",274 -"Guyana",592,"Met-en-Meer-zorg",275 -"Guyana",592,"Anna Catherina",276 -"Guyana",592,"Uitvlugt",277 -"Guyana",592,"Good Hope",279 -"Guyana",592,"Hampshire",322 -"Guyana",592,"Joppa",325 -"Guyana",592,"Adelphi",326 -"Guyana",592,"Blairmont",327 -"Guyana",592,"Cottage",328 -"Guyana",592,"Fort Wellington",329 -"Guyana",592,"Rosignol",330 -"Guyana",592,"Adventure",331 -"Guyana",592,"Sheet Anchor",332 -"Guyana",592,"New Amsterdam",333 -"Guyana",592,"New Amsterdam",334 -"Guyana",592,"Crabwood Creek",335 -"Guyana",592,"Edinburg",336 -"Guyana",592,"No. 40",337 -"Guyana",592,"Benab",338 -"Guyana",592,"No. 52",339 -"Guyana",592,"Kwakwani",440 -"Guyana",592,"Ituni",441 -"Guyana",592,"Amelia’s Ward",442 -"Guyana",592,"Linden",444 -"Guyana",592,"Bartica",455 -"Guyana",592,"Mahdia",456 -"Guyana",592,"Anna Regina",771 -"Guyana",592,"Lethem",772 -"Guyana",592,"Aishalton",773 -"Guyana",592,"Friendship",774 -"Guyana",592,"Matthews Ridge",775 -"Guyana",592,"Mabaruma",777 -"Honduras",504,"Tegucigalpa",2 -"Honduras",504,"Litoral Atlántico",4 -"Honduras",504,"San Pedro Sula",5 -"Honduras",504,"Región Nor-Occidental",6 -"Honduras",504,"Centro Sur Occidental",7 -"Honduras",504,"Centro Sur Oriental",8 -"Hong Kong",852,"Hong Kong",2 -"Hong Kong",852,"Hong Kong",3 -"Hong Kong",852,"Hong Kong",31 -"Hong Kong",852,"Hong Kong",32 -"Hong Kong",852,"Hong Kong",33 -"Hong Kong",852,"Hong Kong",34 -"Hong Kong",852,"Hong Kong",35 -"Hong Kong",852,"Hong Kong",36 -"Hong Kong",852,"Hong Kong",37 -"Hong Kong",852,"Hong Kong",38 -"Hong Kong",852,"Hong Kong",39 -"Hong Kong",852,"Hong Kong",313 -"Hong Kong",852,"Hong Kong",343 -"Hong Kong",852,"Hong Kong",345 -"Hong Kong",852,"Hong Kong",353 -"Hong Kong",852,"Hong Kong",363 -"Hungary",36,"Budapest","(06)1" -"Hungary",36,"Székesfehérvár","(06)22" -"Hungary",36,"Biatorbágy","(06)23" -"Hungary",36,"Szigetszentmiklós","(06)24" -"Hungary",36,"Dunaújváros","(06)25" -"Hungary",36,"Szentendre","(06)26" -"Hungary",36,"Vác","(06)27" -"Hungary",36,"Gödöllo","(06)28" -"Hungary",36,"Monor","(06)29" -"Hungary",36,"Salgótarján","(06)32" -"Hungary",36,"Esztergom","(06)33" -"Hungary",36,"Tatabánya","(06)34" -"Hungary",36,"Balassagyarmat","(06)35" -"Hungary",36,"Eger","(06)36" -"Hungary",36,"Gyöngyös","(06)37" -"Hungary",36,"Nyíregyháza","(06)42" -"Hungary",36,"Mátészalka","(06)44" -"Hungary",36,"Kisvárda","(06)45" -"Hungary",36,"Miskolc","(06)46" -"Hungary",36,"Szerencs","(06)47" -"Hungary",36,"ózd","(06)48" -"Hungary",36,"Mezokövesd","(06)49" -"Hungary",36,"Debrecen","(06)52" -"Hungary",36,"Cegléd","(06)53" -"Hungary",36,"Berettyóújfalu","(06)54" -"Hungary",36,"Szolnok","(06)56" -"Hungary",36,"Jászberény","(06)57" -"Hungary",36,"Karcag","(06)59" -"Hungary",36,"Szeged","(06)62" -"Hungary",36,"Szentes","(06)63" -"Hungary",36,"Békéscsaba","(06)66" -"Hungary",36,"Orosháza","(06)68" -"Hungary",36,"Mohács","(06)69" -"Hungary",36,"Pécs","(06)72" -"Hungary",36,"Szigetvár","(06)73" -"Hungary",36,"Szekszárd","(06)74" -"Hungary",36,"Paks","(06)75" -"Hungary",36,"Kecskemét","(06)76" -"Hungary",36,"Kiskunhalas","(06)77" -"Hungary",36,"Kiskorös","(06)78" -"Hungary",36,"Baja","(06)79" -"Hungary",36,"Kaposvár","(06)82" -"Hungary",36,"Keszthely","(06)83" -"Hungary",36,"Siófok","(06)84" -"Hungary",36,"Marcali","(06)85" -"Hungary",36,"Tapolca","(06)87" -"Hungary",36,"Veszprém","(06)88" -"Hungary",36,"Pápa","(06)89" -"Hungary",36,"Zalaegerszeg","(06)92" -"Hungary",36,"Nagykanizsa","(06)93" -"Hungary",36,"Szombathely","(06)94" -"Hungary",36,"Sárvár","(06)95" -"Hungary",36,"Gyor","(06)96" -"Hungary",36,"Sopron","(06)99" -"Iceland",354,"outside Reykjavík",4 -"Iceland",354,"Reykjavík",5 -"Iceland",354,"outside Reykjavík",427 -"India",91,"New Delhi","011" -"India",91,"Ghaziaba Dadri- Ghaziabad","0120" -"India",91,"Meerut","0121" -"India",91,"Hapur- Ghaziabad","0122" -"India",91,"Modinagar- Ghaziabad","01232" -"India",91,"Mawana- Meerut","01233" -"India",91,"Baghpat-Ii (Baraut)- Meerut","01234" -"India",91,"Sardhana- Meerut","01237" -"India",91,"Gurgaon- Gurgaon","0124" -"India",91,"Charkhidadri- Rohtak","01250" -"India",91,"Jhajjar- Rohtak","01251" -"India",91,"Loharu- Rohtak","01252" -"India",91,"Tohsham- Rohtak","01253" -"India",91,"Bawanikhera- Rohtak","01254" -"India",91,"Siwani- Rohtak","01255" -"India",91,"Meham- Rohtak","01257" -"India",91,"Kalanaur- Rohtak","01258" -"India",91,"Kosli- Narnaul","01259" -"India",91,"Rohtak- Rohtak","01262" -"India",91,"Gohana- Sonipat","01263" -"India",91,"Nuh- Gurgaon","01267" -"India",91,"Ferojpur- Gurgaon","01268" -"India",91,"Rewari- Narnaul","01274" -"India",91,"Palwal- Gurgaon","01275" -"India",91,"Bahadurgarh- Rohtak","01276" -"India",91,"Jatusana- Narnaul","01281" -"India",91,"Narnaul- Narnaul","01282" -"India",91,"Bawal- Narnaul","01284" -"India",91,"Mohindergarh- Narnaul","01285" -"India",91,"Faridabad- Gurgaon","0129" -"India",91,"Sonipat- Sonipat","0130" -"India",91,"Muzaffar Nagar- Muzaffarnagar","0131" -"India",91,"Saharanpur- Saharanpur","0132" -"India",91,"Nakur (Gangoh)- Saharanpur","01331" -"India",91,"Roorkee-I- Saharanpur","01332" -"India",91,"Roorkee-Ii (Hardwar)- Saharanpur","01334" -"India",91,"Deoband- Saharanpur","01336" -"India",91,"Najibabad- Bijnore","01341" -"India",91,"Bijnore-I- Bijnore","01342" -"India",91,"Nagina- Bijnore","01343" -"India",91,"Dhampur- Bijnore","01344" -"India",91,"Bijnore-Ii (Chandpur)- Bijnore","01345" -"India",91,"Pauri-Ii (Bubakhal)- Kotdwara","01346" -"India",91,"Lansdown-Iii (Syunsi)- Kotdwara","01348" -"India",91,"Dehradun- Dehradun","0135" -"India",91,"Chakrata (Dakpather)- Dehradun","01360" -"India",91,"Karan Prayag- Kotdwara","01363" -"India",91,"Ukhimath (Guptkashi)- Kotdwara","01364" -"India",91,"Pauri-I- Kotdwara","01368" -"India",91,"Deoprayag-Ii (Jakholi)- Uttarkashi","01370" -"India",91,"Dunda- Uttarkashi","01371" -"India",91,"Chamoli- Kotdwara","01372" -"India",91,"Purola- Uttarkashi","01373" -"India",91,"Bhatwari-I (Uttarkashi)- Uttarkashi","01374" -"India",91,"Rajgarhi- Uttarkashi","01375" -"India",91,"Tehri- Uttarkashi","01376" -"India",91,"Bhatwari-I (Gangotri)- Uttarkashi","01377" -"India",91,"Deoprayag-I- Uttarkashi","01378" -"India",91,"Partapnagar- Uttarkashi","01379" -"India",91,"Joshimath-Ii (Badrinath)- Kotdwara","01381" -"India",91,"Lansdown-Ii (Kotdwara)- Kotdwara","01382" -"India",91,"Lansdown-I- Kotdwara","01386" -"India",91,"Joshimath-I- Kotdwara","01389" -"India",91,"Budhana- Muzaffarnagar","01392" -"India",91,"Jansath (Khatauli)- Muzaffarnagar","01396" -"India",91,"Kairana (Shamli)- Muzaffarnagar","01398" -"India",91,"Jaipur- Jaipur","0141" -"India",91,"Baswa (Bandikui)- Jaipur","01420" -"India",91,"Kotputli- Jaipur","01421" -"India",91,"Viratnagar (Shahpura)- Jaipur","01422" -"India",91,"Amber (Chomu)- Jaipur","01423" -"India",91,"Phulera (E) (Renwal)- Jaipur","01424" -"India",91,"Phulera (W) (Sambhar)- Jaipur","01425" -"India",91,"Jamwa-Ramgarh (Achrol)- Jaipur","01426" -"India",91,"Dausa- Jaipur","01427" -"India",91,"Dudu- Jaipur","01428" -"India",91,"Bassi- Jaipur","01429" -"India",91,"Phagi- Jaipur","01430" -"India",91,"Lalsot- Jaipur","01431" -"India",91,"Tonk (S)- Tonk","01432" -"India",91,"Todaraisingh- Tonk","01433" -"India",91,"Deoli- Tonk","01434" -"India",91,"Tonk (N) (Piploo)- Tonk","01435" -"India",91,"Uniayara- Tonk","01436" -"India",91,"Malpura- Tonk","01437" -"India",91,"Newai- Tonk","01438" -"India",91,"Alwar","0144" -"India",91,"Ajmer","0145" -"India",91,"Kishangarhbas (Khairthal)- Alwar","01460" -"India",91,"Bansur- Alwar","01461" -"India",91,"Beawar- Ajmer","01462" -"India",91,"Kishangarh (S)- Ajmer","01463" -"India",91,"Rajgarh- Alwar","01464" -"India",91,"Thanaghazi- Alwar","01465" -"India",91,"Kekri (W) (Bhinai)- Ajmer","01466" -"India",91,"Kekri (E)- Ajmer","01467" -"India",91,"Ramgarh- Alwar","01468" -"India",91,"Tijara (S)- Alwar","01469" -"India",91,"Dungla- Chittorgarh","01470" -"India",91,"Rashmi- Chittorgarh","01471" -"India",91,"Chittorgarh- Chittorgarh","01472" -"India",91,"Barisadri- Chittorgarh","01473" -"India",91,"Begun(N)- Chittorgarh","01474" -"India",91,"Begun(S) (Rawatbhata)- Chittorgarh","01475" -"India",91,"Kapasan- Chittorgarh","01476" -"India",91,"Nimbahera- Chittorgarh","01477" -"India",91,"Pratapgarh (N)- Chittorgarh","01478" -"India",91,"Pratapgarh (S) (Arnod)- Chittorgarh","01479" -"India",91,"Asind- Bhilwara","01480" -"India",91,"Raipur- Bhilwara","01481" -"India",91,"Bhilwara- Bhilwara","01482" -"India",91,"Hurda (Gulabpura)- Bhilwara","01483" -"India",91,"Shahapura- Bhilwara","01484" -"India",91,"Jahazpur- Bhilwara","01485" -"India",91,"Mandal- Bhilwara","01486" -"India",91,"Banera- Bhilwara","01487" -"India",91,"Kotri- Bhilwara","01488" -"India",91,"Mandalgarh- Bhilwara","01489" -"India",91,"Nasirabad- Ajmer","01491" -"India",91,"Laxmangarh (Kherli)- Alwar","01492" -"India",91,"Tijara (N) (Bhiwadi)- Alwar","01493" -"India",91,"Behror- Alwar","01494" -"India",91,"Mandawar- Alwar","01495" -"India",91,"Sarwar- Ajmer","01496" -"India",91,"Kishangarh (N) (Roopangarh)- Ajmer","01497" -"India",91,"Anupgarh (E)- Sriganganagar","01498" -"India",91,"Sangaria- Sriganganagar","01499" -"India",91,"Srikaranpur- Sriganganagar","01501" -"India",91,"Nohar (W) (Jedasar)- Sriganganagar","01502" -"India",91,"Sadulshahar- Sriganganagar","01503" -"India",91,"Bhadra- Sriganganagar","01504" -"India",91,"Padampur- Sriganganagar","01505" -"India",91,"Anupgarh (W) (Gharsana)- Sriganganagar","01506" -"India",91,"Raisinghnagar- Sriganganagar","01507" -"India",91,"Suratgarh (N) (Goluwala)- Sriganganagar","01508" -"India",91,"Suratgarh (S)- Sriganganagar","01509" -"India",91,"Bikaner (S)- Bikaner","0151" -"India",91,"Bikaner (N) (Chhatargarh)- Bikaner","01520" -"India",91,"Bikaner(C) (Jaimalsar)- Bikaner","01521" -"India",91,"Bikaner (E) (Jamsar)- Bikaner","01522" -"India",91,"Bikaner (W) (Poogal)- Bikaner","01523" -"India",91,"Lunkaransar-Ii (Mahajan)- Bikaner","01526" -"India",91,"Lunkaransar-Iii (Rajasarb)- Bikaner","01527" -"India",91,"Lunkaransar-Iv- Bikaner","01528" -"India",91,"Lunkaransar-I (Kanholi)- Bikaner","01529" -"India",91,"Nokha (E)- Bikaner","01531" -"India",91,"Nokha (W) (Nathusar)- Bikaner","01532" -"India",91,"Kolayat-I (Goddo)- Bikaner","01533" -"India",91,"Kolayat-Ii- Bikaner","01534" -"India",91,"Kolayat-Iii (Bajju)- Bikaner","01535" -"India",91,"Kolayat-Iv (Daitra)- Bikaner","01536" -"India",91,"Nohar(C) (Rawatsar)- Sriganganagar","01537" -"India",91,"Tibbi- Sriganganagar","01539" -"India",91,"Sriganganagar- Sriganganagar","0154" -"India",91,"Hanumangarh- Sriganganagar","01552" -"India",91,"Nohar (E)- Sriganganagar","01555" -"India",91,"Rajgarh- Churu","01559" -"India",91,"Sujangarh(C) (Bidasar)- Churu","01560" -"India",91,"Taranagar- Churu","01561" -"India",91,"Churu- Churu","01562" -"India",91,"Sardarshahar (N)-Jaitsisar- Churu","01563" -"India",91,"Sardarshahar (S)- Churu","01564" -"India",91,"Sridungargarh (N)-Dungargh- Churu","01565" -"India",91,"Sridungargarh (S) (Sudsar)- Churu","01566" -"India",91,"Ratangarh- Churu","01567" -"India",91,"Sujangarh (E)- Churu","01568" -"India",91,"Sujangarh (W) (Lalgarh)- Churu","01569" -"India",91,"Laxmangarh (W) (Nechwa)- Sikar","01570" -"India",91,"Fatehpur- Sikar","01571" -"India",91,"Sikar- Sikar","01572" -"India",91,"Laxmangarh (E)- Sikar","01573" -"India",91,"Neem Ka Thana- Sikar","01574" -"India",91,"Srimadhopur- Sikar","01575" -"India",91,"Dantaramgarh (E) (Shyamji)- Sikar","01576" -"India",91,"Dantaramgarh (W)- Sikar","01577" -"India",91,"Deedwana- Nagaur","01580" -"India",91,"Ladnun- Nagaur","01581" -"India",91,"Nagaur (N)- Nagaur","01582" -"India",91,"Jayal- Nagaur","01583" -"India",91,"Nagaur (E) (Mundwa Marwar)- Nagaur","01584" -"India",91,"Nagaur (W) (Khinwsar)- Nagaur","01585" -"India",91,"Nawa (Kuchamancity)- Nagaur","01586" -"India",91,"Degana- Nagaur","01587" -"India",91,"Parbatsar (N) (Makrana)- Nagaur","01588" -"India",91,"Parbatsar (S)- Nagaur","01589" -"India",91,"Merta (E) (Merta-City)- Nagaur","01590" -"India",91,"Merta (W) (Gotan)- Nagaur","01591" -"India",91,"Jhunjhunu (S)- Jhunjhunu","01592" -"India",91,"Khetri- Jhunjhunu","01593" -"India",91,"Udaipurwati- Jhunjhunu","01594" -"India",91,"Jhunjhunu (N) (Bissau)- Jhunjhunu","01595" -"India",91,"Chirawa- Jhunjhunu","01596" -"India",91,"Kharar- Ropar","0160" -"India",91,"Ludhiana- Ludhiana","0161" -"India",91,"Jagraon- Ludhiana","01624" -"India",91,"Samrala- Ludhiana","01628" -"India",91,"Ferozepur- Ferozepur","01632" -"India",91,"Muktasar- Ferozepur","01633" -"India",91,"Abohar- Ferozepur","01634" -"India",91,"Kotkapura- Ferozepur","01635" -"India",91,"Moga- Ferozepur","01636" -"India",91,"Malaut- Ferozepur","01637" -"India",91,"Fazilka- Ferozepur","01638" -"India",91,"Faridakot- Ferozepur","01639" -"India",91,"Bhatinda- Bhatinda","0164" -"India",91,"Phulmandi- Bhatinda","01651" -"India",91,"Mansa- Bhatinda","01652" -"India",91,"Raman- Bhatinda","01655" -"India",91,"Sardulgarh- Bhatinda","01659" -"India",91,"Hissar- Hissar","01662" -"India",91,"Hansi- Hissar","01663" -"India",91,"Bhiwani- Rohtak","01664" -"India",91,"Sirsa- Hissar","01666" -"India",91,"Fatehabad- Hissar","01667" -"India",91,"Dabwali- Hissar","01668" -"India",91,"Adampur Mandi- Hissar","01669" -"India",91,"Sangrur- Sangrur","01672" -"India",91,"Malerkotla- Sangrur","01675" -"India",91,"Sunam- Sangrur","01676" -"India",91,"Barnala- Sangrur","01679" -"India",91,"Jind- Jind","01681" -"India",91,"Zira- Ferozepur","01682" -"India",91,"Julana- Jind","01683" -"India",91,"Narwana- Jind","01684" -"India",91,"Guruharsahai- Ferozepur","01685" -"India",91,"Safidon- Jind","01686" -"India",91,"Tohana- Hissar","01692" -"India",91,"Barwala- Hissar","01693" -"India",91,"Kalanwali- Hissar","01696" -"India",91,"Ratia- Hissar","01697" -"India",91,"Ellenabad- Hissar","01698" -"India",91,"Nahan- Solan","01702" -"India",91,"Paonta- Solan","01704" -"India",91,"Ambala- Ambala","0171" -"India",91,"Chandigarh- Chandigarh","0172" -"India",91,"Barara- Ambala","01731" -"India",91,"Jagadhari- Ambala","01732" -"India",91,"Kalka- Ambala","01733" -"India",91,"Naraingarh- Ambala","01734" -"India",91,"Chaaharauli- Ambala","01735" -"India",91,"Pehowa- Karnal","01741" -"India",91,"Cheeka- Karnal","01743" -"India",91,"Kurukshetra- Karnal","01744" -"India",91,"Nilokheri- Karnal","01745" -"India",91,"Kaithal- Karnal","01746" -"India",91,"Gharaunda- Karnal","01748" -"India",91,"Assandh- Karnal","01749" -"India",91,"Patiala- Patiala","0175" -"India",91,"Rajpura- Patiala","01762" -"India",91,"Sarhind- Patiala","01763" -"India",91,"Samana- Patiala","01764" -"India",91,"Nabha- Patiala","01765" -"India",91,"Shimla- Shimla","0177" -"India",91,"Rohru- Shimla","01781" -"India",91,"Rampur Bushahar- Shimla","01782" -"India",91,"Theog- Shimla","01783" -"India",91,"Pooh- Shimla","01785" -"India",91,"Kalpa- Shimla","01786" -"India",91,"Solan- Solan","01792" -"India",91,"Nalagarh- Solan","01795" -"India",91,"Arki- Solan","01796" -"India",91,"Rajgarh- Solan","01799" -"India",91,"Panipat- Karnal","0180" -"India",91,"Jallandhar- Jalandhar","0181" -"India",91,"Nakodar- Jalandhar","01821" -"India",91,"Kapurthala- Jalandhar","01822" -"India",91,"Nawanshahar- Jalandhar","01823" -"India",91,"Phagwara- Jalandhar","01824" -"India",91,"Phillaur- Jalandhar","01826" -"India",91,"Sultanpur Lodhi- Jalandhar","01828" -"India",91,"Amritsar- Amritsar","0183" -"India",91,"Karnal- Karnal","0184" -"India",91,"Patti- Amritsar","01851" -"India",91,"Taran Taran- Amritsar","01852" -"India",91,"Rayya- Amritsar","01853" -"India",91,"Ajnala- Amritsar","01858" -"India",91,"Goindwal- Amritsar","01859" -"India",91,"Pathankot- Pathankot","0186" -"India",91,"Jugial- Pathankot","01870" -"India",91,"Batala- Pathankot","01871" -"India",91,"Quadian- Pathankot","01872" -"India",91,"Gurdaspur- Pathankot","01874" -"India",91,"Dinanagar- Pathankot","01875" -"India",91,"Ropar- Ropar","01881" -"India",91,"Hoshiarpur- Hosiarpur","01882" -"India",91,"Dasua- Hosiarpur","01883" -"India",91,"Garhashanker- Hosiarpur","01884" -"India",91,"Balachaur- Hosiarpur","01885" -"India",91,"Tanda Urmar- Hosiarpur","01886" -"India",91,"Nangal- Ropar","01887" -"India",91,"Kangra (Dharamsala)- Kangra (Dharamsala)","01892" -"India",91,"Nurpur- Kangra (Dharamsala)","01893" -"India",91,"Palampur- Kangra (Dharamsala)","01894" -"India",91,"Bharmour- Kangra (Dharamsala)","01895" -"India",91,"Churah (Tissa)- Kangra (Dharamsala)","01896" -"India",91,"Pangi (Killar)- Kandra (Dharamsala)","01897" -"India",91,"Chamba- Kangra (Dharamsala)","01899" -"India",91,"Lahul (Keylong)- Kullu","01900" -"India",91,"Kullu- Kullu","01902" -"India",91,"Banjar- Kullu","01903" -"India",91,"Nirmand- Kullu","01904" -"India",91,"Mandi- Mandi","01905" -"India",91,"Spiti (Kaza)- Kullu","01906" -"India",91,"Sundernagar- Mandi","01907" -"India",91,"Jogindernagar- Mandi","01908" -"India",91,"Udaipur- Kullu","01909" -"India",91,"Jammu- Jammu","0191" -"India",91,"Basholi- Jammu","01921" -"India",91,"Kathua- Jammu","01922" -"India",91,"Samba- Jammu","01923" -"India",91,"Akhnoor- Jammu","01924" -"India",91,"Kulgam- Srinagar","01931" -"India",91,"Anantnag- Srinagar","01932" -"India",91,"Pulwama- Srinagar","01933" -"India",91,"Pahalgam- Srinagar","01936" -"India",91,"Srinagar- Srinagar","0194" -"India",91,"Badgam- Srinagar","01951" -"India",91,"Baramulla- Srinagar","01952" -"India",91,"Sopore- Srinagar","01954" -"India",91,"Kupwara- Srinagar","01955" -"India",91,"Uri- Srinagar","01956" -"India",91,"Bandipur- Srinagar","01957" -"India",91,"Karnah- Srinagar","01958" -"India",91,"Nowshera- Rajouri","01960" -"India",91,"Rajouri- Rajouri","01962" -"India",91,"Kalakot- Rajouri","01964" -"India",91,"Poonch- Rajouri","01965" -"India",91,"Dehra Gopipur- Kangra (Dharamsala)","01970" -"India",91,"Hamirpur- Hamirpur","01972" -"India",91,"Una- Hamirpur","01975" -"India",91,"Amb- Hamirpur","01976" -"India",91,"Bilaspur- Hamirpur","01978" -"India",91,"Nobra- Leh","01980" -"India",91,"Nyoma- Leh","01981" -"India",91,"Leh- Leh","01982" -"India",91,"Zanaskar- Leh","01983" -"India",91,"Kargil- Leh","01985" -"India",91,"Ramnagar- Udhampur","01990" -"India",91,"Reasi- Udhampur","01991" -"India",91,"Udhampur- Udhampur","01992" -"India",91,"Kishtwar- Udhampur","01995" -"India",91,"Doda- Udhampur","01996" -"India",91,"Bedarwah- Udhampur","01997" -"India",91,"Ramban- Udhampur","01998" -"India",91,"Mahore- Udhampur","01999" -"India",91,"Pune- Pune","020" -"India",91,"Indapur- Pune","02111" -"India",91,"Baramati- Pune","02112" -"India",91,"Bhor- Pune","02113" -"India",91,"Lonavala- Pune","02114" -"India",91,"Saswad- Pune","02115" -"India",91,"Daund- Pune","02117" -"India",91,"Walchandnagar- Pune","02118" -"India",91,"Kedgaon- Pune","02119" -"India",91,"Chinchwad- Pune","0212" -"India",91,"Velhe- Pune","02130" -"India",91,"Junnar- Pune","02132" -"India",91,"Manchar- Pune","02133" -"India",91,"Rajgurunagar- Pune","02135" -"India",91,"Urlikanchan- Pune","02136" -"India",91,"Nahavara- Pune","02137" -"India",91,"Shirur- Pune","02138" -"India",91,"Pirangut- Pune","02139" -"India",91,"Mangaon- Pen","02140" -"India",91,"Alibagh- Pen","02141" -"India",91,"Pali- Pen","02142" -"India",91,"Pen- Pen","02143" -"India",91,"Murud- Pen","02144" -"India",91,"Mahad- Pen","02145" -"India",91,"Shrivardhan- Pen","02147" -"India",91,"Karjat- Pen","02148" -"India",91,"Mahasala- Pen","02149" -"India",91,"Navi Mumbai (Turbhe)- Mumbai","0215" -"India",91,"Sakarwadi- Satara","02160" -"India",91,"Vaduj- Satara","02161" -"India",91,"Satara- Satara","02162" -"India",91,"Koregaon- Satara","02163" -"India",91,"Karad- Satara","02164" -"India",91,"Dhiwadi- Satara","02165" -"India",91,"Phaltan- Satara","02166" -"India",91,"Wai- Satara","02167" -"India",91,"Mahabaleswar- Satara","02168" -"India",91,"Shirwal- Satara","02169" -"India",91,"Sholapur- Sholapur","0217" -"India",91,"Akkalkot- Sholapur","02181" -"India",91,"Karmala- Sholapur","02182" -"India",91,"Madha- Sholapur","02183" -"India",91,"Barsi- Sholapur","02184" -"India",91,"Malsuras- Sholapur","02185" -"India",91,"Pandharpur- Sholapur","02186" -"India",91,"Sangola- Sholapur","02187" -"India",91,"Mangalwedha- Sholapur","02188" -"India",91,"Mohol- Sholapur","02189" -"India",91,"Poladpur- Pen","02191" -"India",91,"Khopoli- Pen","02192" -"India",91,"Roha- Pen","02194" -"India",91,"Mumbai- Mumbai","022" -"India",91,"Khadakwasala- Pune","0230" -"India",91,"Kolhapur- Kolhapur","0231" -"India",91,"Chandgad- Kolhapur","02320" -"India",91,"Radhanagar- Kolhapur","02321" -"India",91,"Shirol (Jalsingpur)- Kolhapur","02322" -"India",91,"Ajara- Kolhapur","02323" -"India",91,"Hatkangale (Ichalkaranji)- Kolhapur","02324" -"India",91,"Kagal (Murgud)- Kolhapur","02325" -"India",91,"Gaganbavada- Kolhapur","02326" -"India",91,"Gadhinglaj- Kolhapur","02327" -"India",91,"Panhala- Kolhapur","02328" -"India",91,"Shahuwadi (Malakapur)- Kolhapur","02329" -"India",91,"Sangli- Sangli","0233" -"India",91,"Kavathemankal- Sangli","02341" -"India",91,"Islampur- Sangli","02342" -"India",91,"Atpadi- Sangli","02343" -"India",91,"Jath- Sangli","02344" -"India",91,"Shirala- Sangli","02345" -"India",91,"Tasgaon- Sangli","02346" -"India",91,"Vita- Sangli","02347" -"India",91,"Madangad- Ratnagiri","02350" -"India",91,"Langa- Ratnagiri","02351" -"India",91,"Ratnagiri- Ratnagiri","02352" -"India",91,"Rajapur- Ratnagiri","02353" -"India",91,"Sanganeshwar (Deorukh)- Ratnagiri","02354" -"India",91,"Chiplun- Ratnagiri","02355" -"India",91,"Khed- Ratnagiri","02356" -"India",91,"Malgund- Ratnagiri","02357" -"India",91,"Dapoli- Ratnagiri","02358" -"India",91,"Guhagar- Ratnagiri","02359" -"India",91,"Kudal- Kudal","02362" -"India",91,"Sawantwadi- Kudal","02363" -"India",91,"Deogad- Kudal","02364" -"India",91,"Malwan- Kudal","02365" -"India",91,"Vengurla- Kudal","02366" -"India",91,"Kankavali- Kudal","02367" -"India",91,"Wathar- Satara","02371" -"India",91,"Patan- Satara","02372" -"India",91,"Mahaswad- Satara","02373" -"India",91,"Pusegaon- Satara","02375" -"India",91,"Medha- Satara","02378" -"India",91,"Ahmedpur- Latur","02381" -"India",91,"Latur- Latur","02382" -"India",91,"Ausa- Latur","02383" -"India",91,"Nilanga- Latur","02384" -"India",91,"Udgir- Latur","02385" -"India",91,"Aurangabad- Aurangabad","0240" -"India",91,"Ahmednagar- Ahmednagar","0241" -"India",91,"Jamkhed- Ahmednagar","02421" -"India",91,"Shri Rampur- Ahmednagar","02422" -"India",91,"Koparagon- Ahmednagar","02423" -"India",91,"Akole- Ahmednagar","02424" -"India",91,"Sangamner- Ahmednagar","02425" -"India",91,"Rahuri- Ahmednagar","02426" -"India",91,"Newasa- Ahmednagar","02427" -"India",91,"Pathardi- Ahmednagar","02428" -"India",91,"Shevgaon- Ahmednagar","02429" -"India",91,"Sillod- Aurangabad","02430" -"India",91,"Paithan- Aurangabad","02431" -"India",91,"Aurangabad- Aurangabad","02432" -"India",91,"Gangapur- Aurangabad","02433" -"India",91,"Kannad- Aurangabad","02435" -"India",91,"Vijapur- Aurangabad","02436" -"India",91,"Khultabad- Aurangabad","02437" -"India",91,"Soyegaon- Aurangabad","02438" -"India",91,"Golegaon- Aurangabad","02439" -"India",91,"Ashti- Bhir","02441" -"India",91,"Bhir- Bhir","02442" -"India",91,"Manjalegaon- Bhir","02443" -"India",91,"Patoda- Bhir","02444" -"India",91,"Kaij- Bhir","02445" -"India",91,"Ambejogai- Bhir","02446" -"India",91,"Gevrai- Bhir","02447" -"India",91,"Pathari- Parbhani","02451" -"India",91,"Parbhani- Parbhani","02452" -"India",91,"Gangakhed- Parbhani","02453" -"India",91,"Basmatnagar- Parbhani","02454" -"India",91,"Kalamnuri- Parbhani","02455" -"India",91,"Hingoli- Parbhani","02456" -"India",91,"Jintdor- Parbhani","02457" -"India",91,"Delhi Tanda- Nanded","02460" -"India",91,"Mukhed- Nanded","02461" -"India",91,"Nanded- Nanded","02462" -"India",91,"Degloor- Nanded","02463" -"India",91,"Billoli- Nanded","02465" -"India",91,"Kandhar- Nanded","02466" -"India",91,"Bhokar- Nanded","02467" -"India",91,"Hadgaon- Nanded","02468" -"India",91,"Kinwat- Nanded","02469" -"India",91,"Tuljapur- Osmanabad","02471" -"India",91,"Osmanabad- Osmanabad","02472" -"India",91,"Kallam- Osmanabad","02473" -"India",91,"Omerga- Osmanabad","02475" -"India",91,"Paranda- Osmanabad","02477" -"India",91,"Bhoom- Osmanabad","02478" -"India",91,"Ner- Jalna","02481" -"India",91,"Jalna- Jalna","02482" -"India",91,"Ambad- Jalna","02483" -"India",91,"Partur- Jalna","02484" -"India",91,"Bhokardan- Jalna","02485" -"India",91,"Shrigonda- Ahmednagar","02487" -"India",91,"Parner- Ahmednagar","02488" -"India",91,"Karjat- Ahmednagar","02489" -"India",91,"Bassein- Kalyan","0250" -"India",91,"Kalyan- Kalyan","0251" -"India",91,"Jawahar- Kalyan","02520" -"India",91,"Talasari- Kalyan","02521" -"India",91,"Bhiwandi- Kalyan","02522" -"India",91,"Murbad- Kalyan","02524" -"India",91,"Palghar- Kalyan","02525" -"India",91,"Wada- Kalyan","02526" -"India",91,"Shahapur- Kalyan","02527" -"India",91,"Dahanu- Kalyan","02528" -"India",91,"Mokhada- Kalyan","02529" -"India",91,"Nasikcity- Nasik","0253" -"India",91,"Niphad- Nasik","02550" -"India",91,"Sinnar- Nasik","02551" -"India",91,"Nandgaon- Nasik","02552" -"India",91,"Igatpuri- Nasik","02553" -"India",91,"Malegaon- Nasik","02554" -"India",91,"Satana- Nasik","02555" -"India",91,"Chanwad- Nasik","02556" -"India",91,"Dindori- Nasik","02557" -"India",91,"Peint- Nasik","02558" -"India",91,"Yeola- Nasik","02559" -"India",91,"Kusumba- Dhulia","02560" -"India",91,"Pimpalner- Dhulia","02561" -"India",91,"Dhule- Dhulia","02562" -"India",91,"Shirpur- Dhulia","02563" -"India",91,"Nandurbar- Dhulia","02564" -"India",91,"Shahada- Dhulia","02565" -"India",91,"Sindkheda- Dhulia","02566" -"India",91,"Taloda- Dhulia","02567" -"India",91,"Sakri- Dhulia","02568" -"India",91,"Navapur- Dhulia","02569" -"India",91,"Jalgaon- Jalgaon","0257" -"India",91,"Jamner- Jalgaon","02580" -"India",91,"Bhusawal- Jalgaon","02582" -"India",91,"Edalabad- Jalgaon","02583" -"India",91,"Raver- Jalgaon","02584" -"India",91,"Yawal- Jalgaon","02585" -"India",91,"Chopda- Jalgaon","02586" -"India",91,"Amalner- Jalgaon","02587" -"India",91,"Erandul- Jalgaon","02588" -"India",91,"Chalisgaon- Jalgaon","02589" -"India",91,"Manmad- Nasik","02591" -"India",91,"Kalwan- Nasik","02592" -"India",91,"Surgena- Nasik","02593" -"India",91,"Trimbak- Nasik","02594" -"India",91,"Dhadgaon- Dhulia","02595" -"India",91,"Pachora- Jalgaon","02596" -"India",91,"Parola- Jalgaon","02597" -"India",91,"Umrane- Nasik","02598" -"India",91,"Bhudargad (Gargoti)- Kolhapur","02599" -"India",91,"Vapi- Valsad","0260" -"India",91,"Surat- Surat","0261" -"India",91,"Sayan- Surat","02621" -"India",91,"Bardoli- Surat","02622" -"India",91,"Mandvi- Surat","02623" -"India",91,"Fortsongadh- Surat","02624" -"India",91,"Valod- Surat","02625" -"India",91,"Vyara- Surat","02626" -"India",91,"Nizar- Surat","02628" -"India",91,"M.M.Mangrol- Surat","02629" -"India",91,"Bansada- Valsad","02630" -"India",91,"Ahwa- Valsad","02631" -"India",91,"Valsad- Valsad","02632" -"India",91,"Dharampur- Valsad","02633" -"India",91,"Billimora- Valsad","02634" -"India",91,"Navsari- Valsad","02637" -"India",91,"Rajpipla- Bharuch","02640" -"India",91,"Amod- Bharuch","02641" -"India",91,"Bharuch- Bharuch","02642" -"India",91,"Valia- Bharuch","02643" -"India",91,"Jambusar- Bharuch","02644" -"India",91,"Jhagadia- Bharuch","02645" -"India",91,"Ankleshwar- Bharuch","02646" -"India",91,"Dediapada- Bharuch","02649" -"India",91,"Vadodara- Vadodara","0265" -"India",91,"Naswadi- Vadodara","02661" -"India",91,"Padra- Vadodara","02662" -"India",91,"Dabhoi- Vadodara","02663" -"India",91,"Pavijetpur- Vadodara","02664" -"India",91,"Sankheda- Vadodara","02665" -"India",91,"Miyagam- Vadodara","02666" -"India",91,"Savli- Vadodara","02667" -"India",91,"Waghodia- Vadodara","02668" -"India",91,"Chhota Udaipur- Vadodara","02669" -"India",91,"Shehra- Godhra","02670" -"India",91,"Godhra- Godhra","02672" -"India",91,"Dahod- Godhra","02673" -"India",91,"Lunavada- Godhra","02674" -"India",91,"Santrampur- Godhra","02675" -"India",91,"Halol- Godhra","02676" -"India",91,"Limkheda- Godhra","02677" -"India",91,"Devgadhbaria- Godhra","02678" -"India",91,"Jhalod- Godhra","02679" -"India",91,"Nadiad- Nadiad","0268" -"India",91,"Balasinor- Nadiad","02690" -"India",91,"Kapad Wanj- Nadiad","02691" -"India",91,"Anand- Nadiad","02692" -"India",91,"Kheda- Nadiad","02694" -"India",91,"Borsad- Nadiad","02696" -"India",91,"Retlad- Nadiad","02697" -"India",91,"Khambat- Nadiad","02698" -"India",91,"Thasra- Nadiad","02699" -"India",91,"Barwala- Ahmedabad","02711" -"India",91,"Gandhi Nagar- Ahmedabad","02712" -"India",91,"Dhandhuka- Ahmedabad","02713" -"India",91,"Dholka- Ahmedabad","02714" -"India",91,"Viramgam- Ahmedabad","02715" -"India",91,"Dehgam- Ahmedabad","02716" -"India",91,"Sanand- Ahmedabad","02717" -"India",91,"Bareja- Ahmedabad","02718" -"India",91,"Harij- Mehsana","02733" -"India",91,"Chanasma- Mehsana","02734" -"India",91,"Deodar- Palanpur","02735" -"India",91,"Tharad- Palanpur","02737" -"India",91,"Santalpur- Palanpur","02738" -"India",91,"Vadgam- Palanpur","02739" -"India",91,"Vav- Palanpur","02740" -"India",91,"Palanpur- Palanpur","02742" -"India",91,"Deesa- Palanpur","02744" -"India",91,"Radhanpur- Palanpur","02746" -"India",91,"Thara- Palanpur","02747" -"India",91,"Dhanera- Palanpur","02748" -"India",91,"Danta- Palanpur","02749" -"India",91,"Chotila- Surendranagar","02751" -"India",91,"Surendranagar- Surendranagar","02752" -"India",91,"Limbdi- Surendranagar","02753" -"India",91,"Dhrangadhra- Surendranagar","02754" -"India",91,"Sayla- Surendranagar","02755" -"India",91,"Muli- Surendranagar","02756" -"India",91,"Dasada- Surendranagar","02757" -"India",91,"Halvad- Surendranagar","02758" -"India",91,"Lakhtar- Surendranagar","02759" -"India",91,"Kheralu- Mehsana","02761" -"India",91,"Mehsana- Mehsana","02762" -"India",91,"Vijapur- Mehsana","02763" -"India",91,"Kalol- Mehsana","02764" -"India",91,"Visnagar- Mehsana","02765" -"India",91,"Patan- Mehsana","02766" -"India",91,"Sidhpur- Mehsana","02767" -"India",91,"Prantij- Himatnagar","02770" -"India",91,"Bhiloda- Himatnagar","02771" -"India",91,"Himatnagar- Himatnagar","02772" -"India",91,"Malpur- Himatnagar","02773" -"India",91,"Modasa- Himatnagar","02774" -"India",91,"Khedbrahma- Himatnagar","02775" -"India",91,"Idar- Himatnagar","02778" -"India",91,"Bayad- Himatnagar","02779" -"India",91,"Bhavnagar- Bhavnagar","0278" -"India",91,"Babra- Amreli","02791" -"India",91,"Amreli- Amreli","02792" -"India",91,"Damnagar- Amreli","02793" -"India",91,"Rajula- Amreli","02794" -"India",91,"Kodinar- Junagarh","02795" -"India",91,"Kunkawav- Amreli","02796" -"India",91,"Dhari- Amreli","02797" -"India",91,"Ranavav- Junagarh","02801" -"India",91,"Khavda- Bhuj","02803" -"India",91,"Kutiyana- Junagarh","02804" -"India",91,"Gogodar- Bhuj","02806" -"India",91,"Sumrasar- Bhuj","02808" -"India",91,"Rajkot- Rajkot","0281" -"India",91,"Paddhari- Rajkot","02820" -"India",91,"Jasdan- Rajkot","02821" -"India",91,"Morvi- Rajkot","02822" -"India",91,"Jetpur- Rajkot","02823" -"India",91,"Dhoraji- Rajkot","02824" -"India",91,"Gondal- Rajkot","02825" -"India",91,"Upleta- Rajkot","02826" -"India",91,"Kotdasanghani- Rajkot","02827" -"India",91,"Wankaner- Rajkot","02828" -"India",91,"Maliya Miyana- Rajkot","02829" -"India",91,"Rahpar- Bhuj","02830" -"India",91,"Nalia- Bhuj","02831" -"India",91,"Bhuj- Bhuj","02832" -"India",91,"Khambhalia- Jamnagar","02833" -"India",91,"Kutchmandvi- Bhuj","02834" -"India",91,"Nakhatrana- Bhuj","02835" -"India",91,"Anjar (Gandhidham)- Bhuj","02836" -"India",91,"Bhachav- Bhuj","02837" -"India",91,"Mundra- Bhuj","02838" -"India",91,"Lakhpat- Bhuj","02839" -"India",91,"Vallabhipur- Bhavnagar","02841" -"India",91,"Talaja- Bhavnagar","02842" -"India",91,"Gariadhar- Bhavnagar","02843" -"India",91,"Mahuva- Bhavnagar","02844" -"India",91,"Savarkundla- Amreli","02845" -"India",91,"Sihor- Bhavnagar","02846" -"India",91,"Gadhada- Bhavnagar","02847" -"India",91,"Palitana- Bhavnagar","02848" -"India",91,"Botad- Bhavnagar","02849" -"India",91,"Junagarh- Junagarh","0285" -"India",91,"Porbander- Junagarh","0286" -"India",91,"Malia-Hatina- Junagarh","02870" -"India",91,"Keshod- Junagarh","02871" -"India",91,"Vanthali- Junagarh","02872" -"India",91,"Visavadar- Junagarh","02873" -"India",91,"Manavadar- Junagarh","02874" -"India",91,"Una-Diu- Junagarh","02875" -"India",91,"Veraval- Junagarh","02876" -"India",91,"Talala- Junagarh","02877" -"India",91,"Mangrol- Junagarh","02878" -"India",91,"Jamnagar- Jamnagar","0288" -"India",91,"Jamkalyanpur- Jamnagar","02891" -"India",91,"Okha- Jamnagar","02892" -"India",91,"Jodia- Jamnagar","02893" -"India",91,"Kalawad- Jamnagar","02894" -"India",91,"Lalpur- Jamnagar","02895" -"India",91,"Bhanvad- Jamnagar","02896" -"India",91,"Dhrol- Jamnagar","02897" -"India",91,"Jamjodhpur- Jamnagar","02898" -"India",91,"Siwana (E) (Samdari)- Barmer","02900" -"India",91,"Siwana (W)- Barmer","02901" -"India",91,"Barmer (N) (Kanot)- Barmer","02902" -"India",91,"Chohtan (S) (Gangasar)- Barmer","02903" -"India",91,"Deogarh- Udaipur","02904" -"India",91,"Sarada (Chawand)- Udaipur","02905" -"India",91,"Salumber- Udaipur","02906" -"India",91,"Kherwara- Udaipur","02907" -"India",91,"Amet- Udaipur","02908" -"India",91,"Bhim (S) (Dawer)- Udaipur","02909" -"India",91,"Jodhpur (E)- Jodhpur","0291" -"India",91,"Bilara (N) (Bhopalgarh)- Jodhpur","02920" -"India",91,"Phalodi (N) (Bap)- Jodhpur","02921" -"India",91,"Osian (N)- Jodhpur","02922" -"India",91,"Phalodi (E) (Lohawat)- Jodhpur","02923" -"India",91,"Phalodi (W) (Baroo)- Jodhpur","02924" -"India",91,"Phalodi (S)- Jodhpur","02925" -"India",91,"Osian (S) (Mathania)- Jodhpur","02926" -"India",91,"Osian (E) (Dhanwara)- Jodhpur","02927" -"India",91,"Shergarh (N) (Deechu)- Jodhpur","02928" -"India",91,"Shergarh (N) (Balesar)- Jodhpur","02929" -"India",91,"Bilara (S) (Piparcity)- Jodhpur","02930" -"India",91,"Jodhpur (W) (Jhanwar)- Jodhpur","02931" -"India",91,"Pali (S)- Pali (Marwar)","02932" -"India",91,"Bali (N) (Sumerpur)- Pali (Marwar)","02933" -"India",91,"Desuri (Rani)- Pali (Marwar)","02934" -"India",91,"Marwar-Jn- Pali (Marwar)","02935" -"India",91,"Pali (N) (Rohat)- Pali (Marwar)","02936" -"India",91,"Raipur- Pali (Marwar)","02937" -"India",91,"Bali (S)- Pali (Marwar)","02938" -"India",91,"Jaitaran- Pali (Marwar)","02939" -"India",91,"Girwa (Udaipur)- Udaipur","0294" -"India",91,"Dhariawad- Udaipur","02950" -"India",91,"Bhim (N)- Udaipur","02951" -"India",91,"Rajsamand (Kankorli)- Udaipur","02952" -"India",91,"Nathdwara- Udaipur","02953" -"India",91,"Kumbalgarh (Charbhujaji)- Udaipur","02954" -"India",91,"Malvi (Fatehnagar)- Udaipur","02955" -"India",91,"Gogunda- Udaipur","02956" -"India",91,"Vallabhnagar- Udaipur","02957" -"India",91,"Kotra- Udaipur","02958" -"India",91,"Jhadol- Udaipur","02959" -"India",91,"Sojat (Sojat-City)- Pali (Marwar)","02960" -"India",91,"Ghatol- Banswara","02961" -"India",91,"Banswara- Banswara","02962" -"India",91,"Gerhi (Partapur)- Banswara","02963" -"India",91,"Dungarpur- Banswara","02964" -"India",91,"Kushalgarh- Banswara","02965" -"India",91,"Sagwara- Banswara","02966" -"India",91,"Aspur- Banswara","02967" -"India",91,"Bagidora- Banswara","02968" -"India",91,"Bhinmal (N)- Sirohi (Abu Road)","02969" -"India",91,"Sanchore (W) (Hadecha)- Sirohi (Abu Road)","02970" -"India",91,"Pindwara- Sirohi (Abu Road)","02971" -"India",91,"Sirohi- Sirohi (Abu Road)","02972" -"India",91,"Jalore- Sirohi (Abu Road)","02973" -"India",91,"Abu Road- Sirohi (Abu Road)","02974" -"India",91,"Reodar- Sirohi (Abu Road)","02975" -"India",91,"Sheoganj (Posaliyan)- Sirohi (Abu Road)","02976" -"India",91,"Jalore (W) (Sayla)- Sirohi (Abu Road)","02977" -"India",91,"Ahore- Sirohi (Abu Road)","02978" -"India",91,"Sanchore (E)- Sirohi (Abu Road)","02979" -"India",91,"Pachpadra (E) (Korna)- Barmer","02980" -"India",91,"Sheo (W) (Harsani)- Barmer","02981" -"India",91,"Barmer(C)- Barmer","02982" -"India",91,"Barmer (E) (Gudda)- Barmer","02983" -"India",91,"Barmer (S) Sindari- Barmer","02984" -"India",91,"Barmer (W) (Ramsar)- Barmer","02985" -"India",91,"Barmer (Sw) (Dhorimanna)- Barmer","02986" -"India",91,"Sheo (E)- Barmer","02987" -"India",91,"Pachpadra (W) (Balotra)- Barmer","02988" -"India",91,"Chohtan (N)- Barmer","02989" -"India",91,"Bhinmal (S) (Jasawantpura)- Sirohi (Abu Road)","02990" -"India",91,"Jaisalmer-1 (Ramgarh)- Jaisalmer","02991" -"India",91,"Jaisalmer-11 (Jaisalmer)- Jaisalmer","02992" -"India",91,"Jaisalmer-12 (Devikot)- Jaisalmer","02993" -"India",91,"Pokran-4 (Pokran)- Jaisalmer","02994" -"India",91,"Pokran-1 (Nachna)- Jaisalmer","02995" -"India",91,"Pokran-3 (Loharki)- Jaisalmer","02996" -"India",91,"Jaisalmer-7 (Mohargarh)- Jaisalmer","02997" -"India",91,"Jaisalmer-5 (Khuiyals)- Jaisalmer","02998" -"India",91,"Jaisalmer-3 (Nehdai)- Jaisalmer","02999" -"India",91,"Jaisalmer-4 (Shahgarh)- Jaisalmer","03010" -"India",91,"Jaisalmer-6 (Pasewar)- Jaisalmer","03011" -"India",91,"Jaisalmer-8 (Mehsana)- Jaisalmer","03012" -"India",91,"Jaisalmer-9 (Dhanaua)- Jaisalmer","03013" -"India",91,"Jaisalmer-10 (Khuri)- Jaisalmer","03014" -"India",91,"Jaisalmer-13 (Myajlar)- Jaisalmer","03015" -"India",91,"Jaisalmer-14 (Jheenjaniyali)- Jaisalmer","03016" -"India",91,"Pokran-2 (Madasar)- Jaisalmer","03017" -"India",91,"Jaisalmer-2 (Sadhna)- Jaisalmer","03018" -"India",91,"Pokran-5 (Phalsoond)- Jaisalmer","03019" -"India",91,"Diamond Harbour- Kolkata","03174" -"India",91,"Andaman Islands- Andaman & Nicobar","03192" -"India",91,"Nicobar Islands- Andaman & Nicobar","03193" -"India",91,"Kakdwip- Kolkata","03210" -"India",91,"Arambag- Kolkata","03211" -"India",91,"Champadanga- Kolkata","03212" -"India",91,"Dhaniakhali- Kolkata","03213" -"India",91,"Jagatballavpur- Kolkata","03214" -"India",91,"Bongoan- Kolkata","03215" -"India",91,"Habra- Kolkata","03216" -"India",91,"Basirhat- Kolkata","03217" -"India",91,"Canning- Kolkata","03218" -"India",91,"Contai- Midnapur (Kharagpur)","03220" -"India",91,"Jhargram- Midnapur (Kharagpur)","03221" -"India",91,"Kharagpur- Midnapur (Kharagpur)","03222" -"India",91,"Nayagarh (Kultikri)- Midnapur (Kharagpur)","03223" -"India",91,"Haldia- Midnapur (Kharagpur)","03224" -"India",91,"Ghatal- Midnapur (Kharagpur)","03225" -"India",91,"Amlagora- Midnapur (Kharagpur)","03227" -"India",91,"Tamluk- Midnapur (Kharagpur)","03228" -"India",91,"Dantan- Midnapur (Kharagpur)","03229" -"India",91,"Gangajalghati- Bankura","03241" -"India",91,"Bankura- Bankura","03242" -"India",91,"Khatra- Bankura","03243" -"India",91,"Bishnupur- Bankura","03244" -"India",91,"Adra- Purulia","03251" -"India",91,"Purulia- Purulia","03252" -"India",91,"Manbazar- Purulia","03253" -"India",91,"Jhalda- Purulia","03254" -"India",91,"Dhanbad- Dhanbad","0326" -"India",91,"Kolkata- Kolkata","033" -"India",91,"Asansol- Asansol","0341" -"India",91,"Burdwan- Asansol","0342" -"India",91,"Durgapur- Asansol","0343" -"India",91,"Seharabazar- Asansol","03451" -"India",91,"Guskara- Asansol","03452" -"India",91,"Katwa- Asansol","03453" -"India",91,"Kalna- Asansol","03454" -"India",91,"Rampur Hat- Suri","03461" -"India",91,"Suri- Suri","03462" -"India",91,"Bolpur- Suri","03463" -"India",91,"Nalhati- Suri","03465" -"India",91,"Karimpur- Krishnanagar","03471" -"India",91,"Krishna Nagar- Krishnanagar","03472" -"India",91,"Ranaghat- Krishnanagar","03473" -"India",91,"Bethuadahari- Krishnanagar","03474" -"India",91,"Islampur (M)- Berhampur","03481" -"India",91,"Berhampur- Berhampur","03482" -"India",91,"Murshidabad (Jiaganj)- Berhampur","03483" -"India",91,"Kandi- Berhampur","03484" -"India",91,"Dhuliyan- Berhampur","03485" -"India",91,"Bubulchandi- Malda","03511" -"India",91,"Malda- Malda","03512" -"India",91,"Harishchandrapur- Malda","03513" -"India",91,"Gangarampur- Balurghat (Raiganj)","03521" -"India",91,"Balurghat- Balurghat (Raiganj)","03522" -"India",91,"Raiganj- Balurghat (Raiganj)","03523" -"India",91,"Harirampur- Balurghat (Raiganj)","03524" -"India",91,"Dalkhola- Balurghat (Raiganj)","03525" -"India",91,"Islampur (Nd)- Balurghat (Raiganj)","03526" -"India",91,"Siliguri- Darjeeling (Siliguri)","0353" -"India",91,"Darjeeling- Darjeeling (Siliguri)","0354" -"India",91,"Kalimpong- Darjeeling (Siliguri)","03552" -"India",91,"Jalpaiguri- Jalpaiguri","03561" -"India",91,"Mal Bazar- Jalpaiguri","03562" -"India",91,"Birpara- Jalpaiguri","03563" -"India",91,"Alipurduar- Jalpaiguri","03564" -"India",91,"Nagarakata- Jalpaiguri","03565" -"India",91,"Kalchini- Jalpaiguri","03566" -"India",91,"Dinhata- Coochbehar","03581" -"India",91,"Coochbehar- Coochbehar","03582" -"India",91,"Mathabhanga- Coochbehar","03583" -"India",91,"Mekhliganj- Coochbehar","03584" -"India",91,"Gangtok- Gangtok","03592" -"India",91,"Gauzing (Nayabazar)- Gangtok","03595" -"India",91,"Itanagar- Arunachal Pradesh (Zero)","0360" -"India",91,"Guwahati- Guwahati","0361" -"India",91,"Boko- Guwahati","03621" -"India",91,"Barama- Guwahati","03623" -"India",91,"Nalbari- Guwahati","03624" -"India",91,"Cherrapunjee- Meghalaya (Shillong)","03637" -"India",91,"Nongpoh- Meghalaya (Shillong)","03638" -"India",91,"Baghmara- Meghalaya (Shillong)","03639" -"India",91,"Shillong- Meghalaya (Shillong)","0364" -"India",91,"Dadengiri (Phulbari)- Meghalaya (Shillong)","03650" -"India",91,"Tura- Meghalaya (Shillong)","03651" -"India",91,"Jowai- Meghalaya (Shillong)","03652" -"India",91,"Amlaren (Dawki)- Meghalaya (Shillong)","03653" -"India",91,"Nongstoin- Meghalaya (Shillong)","03654" -"India",91,"Khliehriat- Meghalaya (Shillong)","03655" -"India",91,"Mawkyrwat- Meghalaya (Shillong)","03656" -"India",91,"Mairang- Meghalaya (Shillong)","03657" -"India",91,"Williamnagar- Meghalaya (Shillong)","03658" -"India",91,"Resubelpara (Mendipathar)- Meghalaya (Shillong)","03659" -"India",91,"Kokrajhar- Bongaigaon (Kokrajhar)","03661" -"India",91,"Dhubri- Bongaigaon (Kokrajhar)","03662" -"India",91,"Goalpara- Bongaigaon (Kokrajhar)","03663" -"India",91,"Hajo- Guwahati","03664" -"India",91,"Tarabarihat- Guwahati","03665" -"India",91,"Barpeta Road- Guwahati","03666" -"India",91,"Bilasipara- Bongaigaon (Kokrajhar)","03667" -"India",91,"Bijni- Bongaigaon (Kokrajhar)","03668" -"India",91,"Abhayapuri- Bongaigaon (Kokrajhar)","03669" -"India",91,"Maibong- Nagaon","03670" -"India",91,"Diphu- Nagaon","03671" -"India",91,"Nagaon- Nagaon","03672" -"India",91,"Haflong- Nagaon","03673" -"India",91,"Hojai- Nagaon","03674" -"India",91,"Bokajan- Nagaon","03675" -"India",91,"Howraghat- Nagaon","03676" -"India",91,"Baithalangshu- Nagaon","03677" -"India",91,"Morigaon- Nagaon","03678" -"India",91,"Passighat- Arunachal Pradesh (Zero)","0368" -"India",91,"Mokokchung- Nagaland (Kohima)","0369" -"India",91,"Kohima- Nagaland (Kohima)","0370" -"India",91,"Udalguri- Tezpur","03711" -"India",91,"Tezpur- Tezpur","03712" -"India",91,"Mangaldoi- Tezpur","03713" -"India",91,"Rangapara- Tezpur","03714" -"India",91,"Gohpur- Tezpur","03715" -"India",91,"Lungleh- Mizoram (Aizwal)","0372" -"India",91,"Dibrugarh- Tinsukia (Dibrugarh)","0373" -"India",91,"Tinsukhia- Tinsukia (Dibrugarh)","0374" -"India",91,"Digboi- Tinsukia (Dibrugarh)","03751" -"India",91,"North Lakhimpur- Tinsukia (Dibrugarh)","03752" -"India",91,"Dhemaji- Tinsukia (Dibrugarh)","03753" -"India",91,"Moranhat- Tinsukia (Dibrugarh)","03754" -"India",91,"Sadiya- Tinsukia (Dibrugarh)","03756" -"India",91,"Dhakuakhana- Tinsukia (Dibrugarh)","03758" -"India",91,"Bihupuria- Tinsukia (Dibrugarh)","03759" -"India",91,"Jorhat- Jorhat","0376" -"India",91,"Mariani- Jorhat","03771" -"India",91,"Sibsagar- Jorhat","03772" -"India",91,"Golaghat- Jorhat","03774" -"India",91,"Majuli- Jorhat","03775" -"India",91,"Bokakhat- Jorhat","03776" -"India",91,"Yangkiyang- Arunachal Pradesh (Zero)","03777" -"India",91,"Pakkekesang- Arunachal Pradesh (Zero)","03778" -"India",91,"Roing-Iii (Mariso)- Arunachal Pradesh (Zero)","03779" -"India",91,"Dirang- Arunachal Pradesh (Zero)","03780" -"India",91,"Kalaktung (Bomdila)- Arunachal Pradesh (Zero)","03782" -"India",91,"Along- Arunachal Pradesh (Zero)","03783" -"India",91,"Nefra- Arunachal Pradesh (Zero)","03784" -"India",91,"Bameng- Arunachal Pradesh (Zero)","03785" -"India",91,"Khonsa- Arunachal Pradesh (Zero)","03786" -"India",91,"Seppa- Arunachal Pradesh (Zero)","03787" -"India",91,"Kolaring- Arunachal Pradesh (Zero)","03788" -"India",91,"Huri- Arunachal Pradesh (Zero)","03789" -"India",91,"Tali- Arunachal Pradesh (Zero)","03790" -"India",91,"Taliha- Arunachal Pradesh (Zero)","03791" -"India",91,"Daporizo- Arunachal Pradesh (Zero)","03792" -"India",91,"Mechuka- Arunachal Pradesh (Zero","03793" -"India",91,"Tawang- Arunachal Pradesh (Zero)","03794" -"India",91,"Basar- Arunachal Pradesh (Zero)","03795" -"India",91,"Pangin- Arunachal Pradesh (Zero)","03797" -"India",91,"Mariyang- Arunachal Pradesh (Zero)","03798" -"India",91,"Tuting- Arunachal Pradesh (Zero)","03799" -"India",91,"Jairampur- Arunachal Pradesh (Zero)","03800" -"India",91,"Anini- Arunachal Pradesh (Zero)","03801" -"India",91,"Roing-Ii (Arda)- Arunachal Pradesh (Zero)","03802" -"India",91,"Roing-I- Arunachal Pradesh (Zero)","03803" -"India",91,"Tezu- Arunachal Pradesh (Zero)","03804" -"India",91,"Hayuliang- Arunachal Pradesh (Zero)","03805" -"India",91,"Chowkhem- Arunachal Pradesh (Zero)","03806" -"India",91,"Miao- Arunachal Pradesh (Zero)","03807" -"India",91,"Changlang- Arunachal Pradesh (Zero)","03808" -"India",91,"Sagalee- Arunachal Pradesh (Zero)","03809" -"India",91,"Agartala- Tripura (Agartala)","0381" -"India",91,"R.K.Pur- Tripura (Agartala)","03821" -"India",91,"Dharam Nagar- Tripura (Agartala)","03822" -"India",91,"Belonia- Tripura (Agartala)","03823" -"India",91,"Kailsahar- Tripura (Agartala)","03824" -"India",91,"Khowai- Tripura (Agartala)","03825" -"India",91,"Ambasa- Tripura (Agartala)","03826" -"India",91,"Champai-Ii (Chiapui)- Mizoram (Aizwal)","03830" -"India",91,"Champa-I- Mizoram (Aizwal)","03831" -"India",91,"Demagiri- Mizoram (Aizwal)","03834" -"India",91,"Saiha-I- Mizoram (Aizwal)","03835" -"India",91,"Saiha-Ii (Tuipang)- Mizoram (Aizwal)","03836" -"India",91,"Kolasib- Mizoram (Aizwal)","03837" -"India",91,"Aizwal-Ii (Serchip)- Mizoram (Aizwal)","03838" -"India",91,"Jalukie- Nagaland (Kohima)","03839" -"India",91,"Vdarbondh- Silchar","03841" -"India",91,"Silchar- Silchar","03842" -"India",91,"Karimganj- Silchar","03843" -"India",91,"Hailakandi- Silchar","03844" -"India",91,"Ukhrul Central- Manipur (Imphal)","03845" -"India",91,"Thonbal- Manipur (Imphal)","03848" -"India",91,"Imphal- Manipur (Imphal)","0385" -"India",91,"Wokha- Nagaland (Kohima)","03860" -"India",91,"Tuengsang- Nagaland (Kohima)","03861" -"India",91,"Dimapur- Nagaland (Kohima)","03862" -"India",91,"Kiphire- Nagaland (Kohima)","03863" -"India",91,"Phek- Nagaland (Kohima)","03865" -"India",91,"Zuenheboto- Nagaland (Kohima)","03867" -"India",91,"Mon- Nagaland (Kohima)","03869" -"India",91,"Ukhrursouth (Kassemkhulen)- Manipur (Imphal)","03870" -"India",91,"Mao (Korang)- Manipur (Imphal)","03871" -"India",91,"Chandel- Manipur (Imphal)","03872" -"India",91,"Thinghat- Manipur (Imphal)","03873" -"India",91,"Churchandpur- Manipur (Imphal)","03874" -"India",91,"Jiribam- Manipur (Imphal)","03876" -"India",91,"Tamenglong- Manipur (Imphal)","03877" -"India",91,"Chakpikarong- Manipur (Imphal)","03878" -"India",91,"Bishenpur- Manipur (Imphal)","03879" -"India",91,"Sadarhills (Kangpokai)- Manipur (Imphal)","03880" -"India",91,"Aizawal-I- Mizoram (Aizwal)","0389" -"India",91,"Hyderabad Loc- Hyderabad","040" -"India",91,"Sriperumpudur- Chengalpattu (Kancheepuram)","04111" -"India",91,"Kancheepuram- Chengalpattu (Kancheepuram)","04112" -"India",91,"Chengalpattu- Chengalpattu (Kancheepuram)","04114" -"India",91,"Madurantagam- Chengalpattu (Kancheepuram)","04115" -"India",91,"Tiruvellore- Chengalpattu (Kancheepuram)","04116" -"India",91,"Tiruttani- Chengalpattu (Kancheepuram)","04118" -"India",91,"Ponneri- Chengalpattu (Kancheepuram)","04119" -"India",91,"Pondicherry- Pondichery","0413" -"India",91,"Cuddalore- Cuddalore","04142" -"India",91,"Virudhachalam- Cuddalore","04143" -"India",91,"Chidambaram- Cuddalore","04144" -"India",91,"Gingee- Cuddalore","04145" -"India",91,"Villupuram- Cuddalore","04146" -"India",91,"Tindivanam- Cuddalore","04147" -"India",91,"Ulundurpet- Cuddalore","04149" -"India",91,"Kallkurichi- Cuddalore","04151" -"India",91,"Arakandanallur- Cuddalore","04153" -"India",91,"Vellore- Vellore","0416" -"India",91,"Gudiyatham- Vellore","04171" -"India",91,"Ranipet- Vellore","04172" -"India",91,"Arni- Vellore","04173" -"India",91,"Vaniyambadi- Vellore","04174" -"India",91,"Tiruvannamalai- Vellore","04175" -"India",91,"Arkonam- Vellore","04177" -"India",91,"Tirupattur- Vellore","04179" -"India",91,"Polur- Vellore","04181" -"India",91,"Tiruvettipuram- Vellore","04182" -"India",91,"Wandiwash- Vellore","04183" -"India",91,"Chengam- Vellore","04188" -"India",91,"Mulanur- Erode","04202" -"India",91,"Kodumudi- Erode","04204" -"India",91,"Tirupur- Coimbatore","0421" -"India",91,"Coimbatore- Coimbatore","0422" -"India",91,"Ootacamund- Ooty","0423" -"India",91,"Erode- Erode","0424" -"India",91,"Udumalpet- Coimbatore","04252" -"India",91,"Anamalai- Coimbatore","04253" -"India",91,"Mettupalayam- Coimbatore","04254" -"India",91,"Palladum- Coimbatore","04255" -"India",91,"Bhavani- Erode","04256" -"India",91,"Kangayam- Erode","04257" -"India",91,"Dharampuram- Erode","04258" -"India",91,"Pollachi- Coimbatore","04259" -"India",91,"Gudalur- Ooty","04262" -"India",91,"Kotagiri- Ooty","04266" -"India",91,"Velur- Salem","04268" -"India",91,"Salem- Salem","0427" -"India",91,"Yercaud- Salem","04281" -"India",91,"Attur- Salem","04282" -"India",91,"Sankagiri- Salem","04283" -"India",91,"Gobichettipalayam- Erode","04285" -"India",91,"Namakkal- Salem","04286" -"India",91,"Rasipuram- Salem","04287" -"India",91,"Tiruchengode- Salem","04288" -"India",91,"Omalur- Salem","04290" -"India",91,"Valapady- Salem","04292" -"India",91,"Perundurai- Erode","04294" -"India",91,"Sathiyamangalam- Erode","04295" -"India",91,"Avanashi- Coimbatore","04296" -"India",91,"Metturdam- Salem","04298" -"India",91,"Trichy- Trichy","0431" -"India",91,"Aravakurichi- Trichy","04320" -"India",91,"Pudukkottai- Trichy","04322" -"India",91,"Kulithalai- Trichy","04323" -"India",91,"Karur- Trichy","04324" -"India",91,"Musiri- Trichy","04326" -"India",91,"Thuraiyure- Trichy","04327" -"India",91,"Perambalur- Trichy","04328" -"India",91,"Ariyalur- Trichy","04329" -"India",91,"Jayamkondan- Trichy","04331" -"India",91,"Manaparai- Trichy","04332" -"India",91,"Ponnamaravathi- Trichy","04333" -"India",91,"Keeranur- Trichy","04339" -"India",91,"Uthangarai- Dharmapuri","04341" -"India",91,"Dharmapuri- Dharmapuri","04342" -"India",91,"Krishnagiri- Dharmapuri","04343" -"India",91,"Hosur- Dharmapuri","04344" -"India",91,"Harur- Dharmapuri","04346" -"India",91,"Denkanikoitah- Dharmapuri","04347" -"India",91,"Palacode- Dharmapuri","04348" -"India",91,"Kumbakonam- Thanjavur","0435" -"India",91,"Thanjavur- Thanjavur","04362" -"India",91,"Mayiladuthurai- Thanjavur","04364" -"India",91,"Nagapattinam- Thanjavur","04365" -"India",91,"Tiruvarur- Thanjavur","04366" -"India",91,"Mannargudi- Thanjavur","04367" -"India",91,"Karaikal- Thanjavur","04368" -"India",91,"Thiruraipoondi- Thanjavur","04369" -"India",91,"Arantangi- Trichy","04371" -"India",91,"Orathanad- Thanjavur","04372" -"India",91,"Pattukottai- Thanjavur","04373" -"India",91,"Papanasam- Thanjavur","04374" -"India",91,"Chennai- Chennai","044" -"India",91,"Dindigul- Madurai","0451" -"India",91,"Madurai- Madurai","0452" -"India",91,"Kodaikanal- Madurai","04542" -"India",91,"Batlagundu- Madurai","04543" -"India",91,"Natham- Madurai","04544" -"India",91,"Palani- Madurai","04545" -"India",91,"Theni- Madurai","04546" -"India",91,"Thirumanglam- Madurai","04549" -"India",91,"Vedasandur- Madurai","04551" -"India",91,"Usiliampatti- Madurai","04552" -"India",91,"Oddanchatram- Madurai","04553" -"India",91,"Cumbum- Madurai","04554" -"India",91,"Devakottai- Karaikudi","04561" -"India",91,"Virudhunagar- Virudhunagar","04562" -"India",91,"Rajapalayam- Virudhunagar","04563" -"India",91,"Paramakudi- Karaikudi","04564" -"India",91,"Karaikudi- Karaikudi","04565" -"India",91,"Aruppukottai- Virudhunagar","04566" -"India",91,"Ramanathpuram- Karaikudi","04567" -"India",91,"Rameshwaram- Karaikudi","04573" -"India",91,"Manamadurai- Karaikudi","04574" -"India",91,"Sivaganga- Karaikudi","04575" -"India",91,"Mudukulathur- Karaikudi","04576" -"India",91,"Tirupathur- Karaikudi","04577" -"India",91,"Tuticorin- Tuticorin","0461" -"India",91,"Tirunelvelli- Tirunelvelli","0462" -"India",91,"Srivaikundam- Tuticorin","04630" -"India",91,"Kovilpatti- Tuticorin","04632" -"India",91,"Tenkasi- Tirunelvelli","04633" -"India",91,"Ambasamudram- Tirunelvelli","04634" -"India",91,"Nanguneri- Tirunelvelli","04635" -"India",91,"Sankaran Koil- Tirunelvelli","04636" -"India",91,"Valliyoor- Tirunelvelli","04637" -"India",91,"Vilathikulam- Tuticorin","04638" -"India",91,"Tiruchendur- Tuticorin","04639" -"India",91,"Kuzhithurai- Nagarcoil","04651" -"India",91,"Nagercoil- Nagarcoil","04652" -"India",91,"Shoranur- Palghat","0466" -"India",91,"Kanhangad- Cannanore","0467" -"India",91,"Tiruvalla- Tiruvalla","0469" -"India",91,"Attingal- Thiruvananthapuram","0470" -"India",91,"Thiruvananthapuram- Thiruvananthapuram","0471" -"India",91,"Nedumandad- Thiruvananthapuram","0472" -"India",91,"Nedumandad- Thiruvananthapuram","04728" -"India",91,"Pathanamthitta- Tiruvalla","04733" -"India",91,"Adoor- Tiruvalla","04734" -"India",91,"Ranni- Tiruvalla","04735" -"India",91,"Quilon- Quilon","0474" -"India",91,"Punalur- Quilon","0475" -"India",91,"Karunagapally- Quilon","0476" -"India",91,"Alleppey- Alleppy","0477" -"India",91,"Shertallai- Alleppy","0478" -"India",91,"Mavelikkara- Alleppy","0479" -"India",91,"Irinjalakuda- Trichur","0480" -"India",91,"Kottayam- Kottayam","0481" -"India",91,"Palai- Kottayam","04822" -"India",91,"Kanjirapally- Kottayam","04828" -"India",91,"Vaikom- Kottayam","04829" -"India",91,"Manjeri- Calicut (Kozhikode)","0483" -"India",91,"Ernakulam- Ernakulam","0484" -"India",91,"Muvattupuzha- Ernakulam","0485" -"India",91,"Thodupuzha- Ernakulam","04862" -"India",91,"Adimaly- Ernakulam","04864" -"India",91,"Munnar- Ernakulam","04865" -"India",91,"Nedumgandam- Ernakulam","04868" -"India",91,"Peermedu- Ernakulam","04869" -"India",91,"Trichur- Trichur","0487" -"India",91,"Vadakkanchery- Trichur","04884" -"India",91,"Kunnamkulam- Trichur","04885" -"India",91,"Bitra- Kavarathy","04890" -"India",91,"Amini- Kavarathy","04891" -"India",91,"Minicoy- Kavarathy","04892" -"India",91,"Androth- Kavarathy","04893" -"India",91,"Agathy- Kavarathy","04894" -"India",91,"Kalpeni- Kavarathy","04895" -"India",91,"Kavarathy- Kavarathy","04896" -"India",91,"Kadamath- Kavarathy","04897" -"India",91,"Kiltan- Kavarathy","04898" -"India",91,"Chetlat- Kavarathy","04899" -"India",91,"Tellicherry- Cannanore","0490" -"India",91,"Palghat- Palghat","0491" -"India",91,"Alathur- Palghat","04922" -"India",91,"Koduvayur- Palghat","04923" -"India",91,"Mannarghat- Palghat","04924" -"India",91,"Shoranur- Palghat","04926" -"India",91,"Nilambur- Calicut (Kozhikode)","04931" -"India",91,"Perinthalmanna- Calicut (Kozhikode)","04933" -"India",91,"Mananthody- Calicut (Kozhikode)","04935" -"India",91,"Kalpetta- Calicut (Kozhikode)","04936" -"India",91,"Tirur- Calicut (Kozhikode)","0494" -"India",91,"Calicut- Calicut (Kozhikode)","0495" -"India",91,"Badagara- Calicut (Kozhikode)","0496" -"India",91,"Cannanore- Cannanore","0497" -"India",91,"Taliparamba- Cannanore","04982" -"India",91,"Payyanur- Cannanore","04985" -"India",91,"Kasargode- Cannanore","04994" -"India",91,"Kanhangad- Cannanore","04997" -"India",91,"Uppala- Cannanore","04998" -"India",91,"Akbarpur- Kanpur","05111" -"India",91,"Bilhaur- Kanpur","05112" -"India",91,"Bhognipur (Pakhrayan)- Kanpur","05113" -"India",91,"Derapur (Jhinjak)- Kanpur","05114" -"India",91,"Ghatampur- Kanpur","05115" -"India",91,"Kanpur- Kanpur","0512" -"India",91,"Purwa (Bighapur)- Unnao","05142" -"India",91,"Hasanganj- Unnao","05143" -"India",91,"Safipur- Unnao","05144" -"India",91,"Unnao- Unnao","0515" -"India",91,"Orai- Orai","05162" -"India",91,"Kalpi- Orai","05164" -"India",91,"Konch- Orai","05165" -"India",91,"Jalaun- Orai","05168" -"India",91,"Chirgaon (Moth)- Jhansi","05170" -"India",91,"Garauth- Jhansi","05171" -"India",91,"Mehraun- Jhansi","05172" -"India",91,"Jhansi- Jhansi","05174" -"India",91,"Lalitpur-Ii (Talbehat)- Jhansi","05175" -"India",91,"Lalitpur-I (Lalitpur)- Jhansi","05176" -"India",91,"Mauranipur- Jhansi","05178" -"India",91,"Fateh-Pur-I (Fatehpur)- Fatehpur","05180" -"India",91,"Bindki- Fatehpur","05181" -"India",91,"Khaga- Fatehpur","05182" -"India",91,"Fatehpur-Ii (Gazipur)- Fatehpur","05183" -"India",91,"Baberu- Banda","05190" -"India",91,"Naraini (Attarra)- Banda","05191" -"India",91,"Banda- Banda","05192" -"India",91,"Karvi-Ii (Manikpur)- Banda","05194" -"India",91,"Mau (Rajapur)- Banda","05195" -"India",91,"Karvi -I (Karvi)- Banda","05198" -"India",91,"Malihabad- Lucknow","05212" -"India",91,"Lucknow- Lucknow","0522" -"India",91,"Fatehpur- Barabanki","05240" -"India",91,"Ramsanehi Ghat- Barabanki","05241" -"India",91,"Haidergarh- Barabanki","05244" -"India",91,"Barabanki- Barabanki","05248" -"India",91,"Bahraich-Ii (Bhinga)- Bahraich","05250" -"India",91,"Kaisarganj-I (Kaiserganj)- Bahraich","05251" -"India",91,"Bahraich-I (Bahrailh)- Bahraich","05252" -"India",91,"Nanpara-I (Nanpara)- Bahraich","05253" -"India",91,"Nanparah-Ii (Mihinpurwa)- Bahraich","05254" -"India",91,"Kaisarganh-Ii (Mahasi)- Bahraich","05255" -"India",91,"Tarabganj-I (Terabganj)- Gonda","05260" -"India",91,"Tarabganj-Ii (Colonelganj)- Gonda","05261" -"India",91,"Gonda- Gonda","05262" -"India",91,"Balarampur-I (Balrampur)- Gonda","05263" -"India",91,"Balarampur-Ii (Tulsipur)- Gonda","05264" -"India",91,"Utraula- Gonda","05265" -"India",91,"Bikapur- Faizabad","05270" -"India",91,"Akbarpur-I (Akbarpur)- Faizabad","05271" -"India",91,"Tandai-I (Tanda)- Faizabad","05273" -"India",91,"Tanda-Ii (Baskhari)- Faizabad","05274" -"India",91,"Akbarpur-Ii (Jalalpur)- Faizabad","05275" -"India",91,"Faizabad- Faizabad","05278" -"India",91,"Rath- Hamirpur","05280" -"India",91,"Mahoba- Hamirpur","05281" -"India",91,"Hamirpur- Hamirpur","05282" -"India",91,"Charkhari- Hamirpur","05283" -"India",91,"Maudaha- Hamirpur","05284" -"India",91,"Salon -I (Salon)- Raibareilly","05311" -"India",91,"Salon-Ii (Jais)- Raibareilly","05313" -"India",91,"Dalmau-Ii (Lalganj)- Raibareilly","05315" -"India",91,"Dalmau-I (Dalmau)- Raibareilly","05317" -"India",91,"Allahabad- Allahabad","0532" -"India",91,"Bharwari- Allahabad","05331" -"India",91,"Phoolpur- Allahabad","05332" -"India",91,"Karchhana (Shankergarh)- Allahabad","05333" -"India",91,"Meja (Sirsa)- Allahabad","05334" -"India",91,"Soraon- Allahabad","05335" -"India",91,"Kunda- Pratapgarh","05341" -"India",91,"Pratapgarh- Pratapgarh","05342" -"India",91,"Patti- Pratapgarh","05343" -"India",91,"Raibareli- Raibareilly","0535" -"India",91,"Musafirkhana- Sultanpur","05361" -"India",91,"Sultanpur- Sultanpur","05362" -"India",91,"Kadipur- Sultanpur","05364" -"India",91,"Amethi- Sultanpur","05368" -"India",91,"Chandauli (Mugalsarai)- Varansi","05412" -"India",91,"Chakia- Varansi","05413" -"India",91,"Bhadohi- Varansi","05414" -"India",91,"Varansi- Varansi","0542" -"India",91,"Mirzapur-Ii (Hallia)- Mirzapur","05440" -"India",91,"Mirzapur-I (Mirzapur)- Mirzapur","05442" -"India",91,"Chunur- Mirzapur","05443" -"India",91,"Robertsganj-I- Mirzapur","05444" -"India",91,"Robertsganj -Ii (Obra)- Mirzapur","05445" -"India",91,"Dudhi-Ii (Pipri)- Mirzapur","05446" -"India",91,"Dudhi-I (Dudhi)- Mirzapur","05447" -"India",91,"Kerakat- Jaunpur","05450" -"India",91,"Mariyahu- Jaunpur","05451" -"India",91,"Jaunpur- Jaunpur","05452" -"India",91,"Shahganj- Jaunpur","05453" -"India",91,"Machlishahar- Jaunpur","05454" -"India",91,"Phulpur-I (Phulpur)- Azamgarh","05460" -"India",91,"Ghosi- Azamgarh","05461" -"India",91,"Azamgarh- Azamgarh","05462" -"India",91,"Lalganj- Azamgarh","05463" -"India",91,"Maunathbhanjan- Azamgarh","05464" -"India",91,"Phulpur-Ii (Atrawlia)- Azamgarh","05465" -"India",91,"Sagri- Azamgarh","05466" -"India",91,"Ghazipur- Ghazipur","0548" -"India",91,"Rasara- Ballia","05491" -"India",91,"Mohamdabad- Ghazipur","05493" -"India",91,"Bansdeeh- Ballia","05494" -"India",91,"Saidpur- Ghazipur","05495" -"India",91,"Ballia-Ii (Raniganj)- Ballia","05496" -"India",91,"Zamania- Ghazipur","05497" -"India",91,"Ballia-I (Ballia)- Ballia","05498" -"India",91,"Gorakhpur- Gorakhpur","0551" -"India",91,"Bansgaon-Ii (Barhal Ganj)- Gorakhpur","05521" -"India",91,"Pharenda-I (Compierganj)- Gorakhpur","05522" -"India",91,"Maharajganj- Gorakhpur","05523" -"India",91,"Pharenda-Ii (Anand Nagar)- Gorakhpur","05524" -"India",91,"Bansgaon -I (Bansgaon)- Gorakhpur","05525" -"India",91,"Domariyaganj- Basti","05541" -"India",91,"Basti- Basti","05542" -"India",91,"Naugarh-Ii (Barhani)- Basti","05543" -"India",91,"Naugarh-I (Tetribazar)- Basti","05544" -"India",91,"Bansi- Basti","05545" -"India",91,"Harraiya- Basti","05546" -"India",91,"Khalilabad -I- Basti","05547" -"India",91,"Khalilabad-Ii (Mehdawal)- Basti","05548" -"India",91,"Salempur-Ii (Barhaj)- Deoria","05561" -"India",91,"Captanganj (Khadda)- Deoria","05563" -"India",91,"Padrauna- Deoria","05564" -"India",91,"Salempur-I (Salempur)- Deoria","05566" -"India",91,"Captanganj-I (Captanganj)- Deoria","05567" -"India",91,"Deoria- Deoria","05568" -"India",91,"Ferozabad- Agra","05612" -"India",91,"Achhnera- Agra","05613" -"India",91,"Jarar- Agra","05614" -"India",91,"Agra- Agra","0562" -"India",91,"Kaman- Bharatpur","05640" -"India",91,"Deeg- Bharatpur","05641" -"India",91,"Dholpur- Bharatpur","05642" -"India",91,"Nadbai- Bharatpur","05643" -"India",91,"Bharatpur- Bharatpur","05644" -"India",91,"Rupbas- Bharatpur","05645" -"India",91,"Baseri- Bharatpur","05646" -"India",91,"Bari- Bharatpur","05647" -"India",91,"Bayana- Bharatpur","05648" -"India",91,"Mathura- Mathura","0565" -"India",91,"Sadabad- Mathura","05661" -"India",91,"Chhata (Kosikalan)- Mathura","05662" -"India",91,"Mant (Vrindavan)- Mathura","05663" -"India",91,"Mant (Vrindavan)- Mathura","05664" -"India",91,"Jasrana- Mainpuri","05671" -"India",91,"Mainpuri- Mainpuri","05672" -"India",91,"Bhogaon- Mainpuri","05673" -"India",91,"Shikohabad- Mainpuri","05676" -"India",91,"Karhal- Mainpuri","05677" -"India",91,"Bharthana- Etawah","05680" -"India",91,"Bidhuna- Etawah","05681" -"India",91,"Auraiya- Etawah","05683" -"India",91,"Etawah- Etawah","05688" -"India",91,"Kaimganj- Farrukhabad","05690" -"India",91,"Chhibramau- Farrukhabad","05691" -"India",91,"Farrukhabad (Fategarh)- Farrukhabad","05692" -"India",91,"Kannauj- Farrukhabad","05694" -"India",91,"Aligarh- Aligarh","0571" -"India",91,"Sikandra Rao- Aligarh","05721" -"India",91,"Hathras- Aligarh","05722" -"India",91,"Atrauli- Aligarh","05723" -"India",91,"Khair- Aligarh","05724" -"India",91,"Garhmukteshwar- Ghaziabad","05731" -"India",91,"Bulandshahr- Ghaziabad","05732" -"India",91,"Pahasu- Ghaziabad","05733" -"India",91,"Debai- Ghaziabad","05734" -"India",91,"Sikandrabad- Ghaziabad","05735" -"India",91,"Siyana- Ghaziabad","05736" -"India",91,"Khurja- Ghaziabad","05738" -"India",91,"Aliganj (Ganjdundwara)- Etah","05740" -"India",91,"Etah- Etah","05742" -"India",91,"Kasganj- Etah","05744" -"India",91,"Jalesar- Etah","05745" -"India",91,"Bareilly- Bareilly","0581" -"India",91,"Pitamberpur- Bareilly","05821" -"India",91,"Baheri- Bareilly","05822" -"India",91,"Aonla -I- Bareilly","05823" -"India",91,"Aonla-Ii (Ramnagar)- Bareilly","05824" -"India",91,"Nawabganj- Bareilly","05825" -"India",91,"Dataganj- Badaun","05831" -"India",91,"Badaun- Badaun","05832" -"India",91,"Sahaswan- Badaun","05833" -"India",91,"Bisauli- Badaun","05834" -"India",91,"Gunnaur- Badaun","05836" -"India",91,"Tilhar- Sahjahanpur","05841" -"India",91,"Shahjahanpur- Sahjahanpur","05842" -"India",91,"Jalalabad- Sahjahanpur","05843" -"India",91,"Powayan- Sahjahanpur","05844" -"India",91,"Hardoi-Ii (Baghavli)- Hardoi","05850" -"India",91,"Bilgam-I (Madhoganj)- Hardoi","05851" -"India",91,"Hardoi-I (Hardoi)- Hardoi","05852" -"India",91,"Shahabad- Hardoi","05853" -"India",91,"Sandila- Hardoi","05854" -"India",91,"Bilgram-Ii (Sandi)- Hardoi","05855" -"India",91,"Misrikh-Ii (Aurangabad)- Sitapur","05861" -"India",91,"Sitapur- Sitapur","05862" -"India",91,"Biswan- Sitapur","05863" -"India",91,"Sidhauli (Mahmodabad)- Sitapur","05864" -"India",91,"Misrikh -I (Misrikh)- Sitapur","05865" -"India",91,"Kheri-Ii (Bhira)- Lakhimpur Kheri","05870" -"India",91,"Nighasan-I (Palliakalan)- Lakhimpur Kheri","05871" -"India",91,"Kheri-I (Kheri)- Lakhimpur Kheri","05872" -"India",91,"Nighasan-Ii (Tikonia)- Lakhimpur Kheri","05873" -"India",91,"Nighasan-Iii (Dhaurahra)- Lakhimpur Kheri","05874" -"India",91,"Mohamdi-Ii (Maigalganj)- Lakhimpur Kheri","05875" -"India",91,"Mohamdi-I (Mohamdi)- Lakhimpur Kheri","05876" -"India",91,"Puranpur- Pilibhit","05880" -"India",91,"Bisalpur- Pilibhit","05881" -"India",91,"Pilibhit- Pilibhit","05882" -"India",91,"Moradabad- Moradabad","0591" -"India",91,"Bilari- Moradabad","05921" -"India",91,"Amroha- Moradabad","05922" -"India",91,"Sambhal- Moradabad","05923" -"India",91,"Hasanpur- Moradabad","05924" -"India",91,"Nainital- Nainital","05942" -"India",91,"Khatima- Nainital","05943" -"India",91,"Kichha-I (Rudrapur)- Nainital","05944" -"India",91,"Haldwani-Ii (Chorgalian)- Nainital","05945" -"India",91,"Haldwani-I- Nainital","05946" -"India",91,"Kashipur- Nainital","05947" -"India",91,"Khatima-Ii (Sitarganj)- Nainital","05948" -"India",91,"Kichha-Ii (Bazpur)- Nainital","05949" -"India",91,"Rampur- Rampur","0595" -"India",91,"Shahabad- Rampur","05960" -"India",91,"Munsiari- Almora","05961" -"India",91,"Almora- Almora","05962" -"India",91,"Bageshwar- Almora","05963" -"India",91,"Pithoragarh- Almora","05964" -"India",91,"Champawat- Almora","05965" -"India",91,"Ranikhet- Almora","05966" -"India",91,"Dharchula- Almora","05967" -"India",91,"Hilsa- Patna","06111" -"India",91,"Biharsharif- Patna","06112" -"India",91,"Jahanabad- Gaya","06114" -"India",91,"Danapur- Patna","06115" -"India",91,"Patna- Patna","0612" -"India",91,"Barh- Patna","06132" -"India",91,"Bikram- Patna","06135" -"India",91,"Hathua- Chapra","06150" -"India",91,"Sidhawalia- Chapra","06151" -"India",91,"Chapra- Chapra","06152" -"India",91,"Maharajganj- Chapra","06153" -"India",91,"Siwan- Chapra","06154" -"India",91,"Ekma- Chapra","06155" -"India",91,"Gopalganj- Chapra","06156" -"India",91,"Mairwa- Chapra","06157" -"India",91,"Sonepur- Chapra","06158" -"India",91,"Masrakh- Chapra","06159" -"India",91,"Adhaura- Sasaram","06180" -"India",91,"Piro- Arrah","06181" -"India",91,"Arrah- Arrah","06182" -"India",91,"Buxar- Arrah","06183" -"India",91,"Sasaram- Sasaram","06184" -"India",91,"Bikramganj- Sasaram","06185" -"India",91,"Aurangabad- Gaya","06186" -"India",91,"Mohania- Sasaram","06187" -"India",91,"Rohtas- Sasaram","06188" -"India",91,"Bhabhua- Sasaram","06189" -"India",91,"Muzaffarpur- Muzaffarpur","0621" -"India",91,"Sheohar- Muzaffarpur","06222" -"India",91,"Motipur- Muzaffarpur","06223" -"India",91,"Hajipur- Muzaffarpur","06224" -"India",91,"Sitamarhi- Muzaffarpur","06226" -"India",91,"Mahua- Muzaffarpur","06227" -"India",91,"Pupri- Muzaffarpur","06228" -"India",91,"Bidupur- Muzaffarpur","06229" -"India",91,"Benipur- Darbhanga","06242" -"India",91,"Begusarai- Darbhanga","06243" -"India",91,"Khagaria- Darbhanga","06244" -"India",91,"Gogri- Darbhanga","06245" -"India",91,"Jainagar- Darbhanga","06246" -"India",91,"Singhwara- Darbhanga","06247" -"India",91,"Dhaka- Motihari","06250" -"India",91,"Bagaha- Motihari","06251" -"India",91,"Motihari- Motihari","06252" -"India",91,"Narkatiaganj- Motihari","06253" -"India",91,"Bettiah- Motihari","06254" -"India",91,"Raxaul- Motihari","06255" -"India",91,"Ramnagar- Motihari","06256" -"India",91,"Barachakia- Motihari","06257" -"India",91,"Areraj- Motihari","06258" -"India",91,"Pakridayal- Motihari","06259" -"India",91,"Benipatti- Darbhanga","06271" -"India",91,"Darbhanga- Darbhanga","06272" -"India",91,"Jhajharpur- Darbhanga","06273" -"India",91,"Samastipur- Darbhanga","06274" -"India",91,"Rosera- Darbhanga","06275" -"India",91,"Madhubani- Darbhanga","06276" -"India",91,"Phulparas- Darbhanga","06277" -"India",91,"Dalsinghsarai- Darbhanga","06278" -"India",91,"Barauni- Darbhanga","06279" -"India",91,"Gaya- Gaya","0631" -"India",91,"Wazirganj- Gaya","06322" -"India",91,"Dumraon- Arrah","06323" -"India",91,"Nawada- Gaya","06324" -"India",91,"Pakribarwan- Gaya","06325" -"India",91,"Sherghati- Gaya","06326" -"India",91,"Rafiganj- Gaya","06327" -"India",91,"Daudnagar- Gaya","06328" -"India",91,"Imamganj- Gaya","06331" -"India",91,"Nabinagar- Gaya","06332" -"India",91,"Rajauli- Gaya","06336" -"India",91,"Arwal- Gaya","06337" -"India",91,"Seikhpura- Monghyr","06341" -"India",91,"H.Kharagpur- Monghyr","06342" -"India",91,"Monghyr- Monghyr","06344" -"India",91,"Jamui- Monghyr","06345" -"India",91,"Lakhisarai- Monghyr","06346" -"India",91,"Chakai- Monghyr","06347" -"India",91,"Mallehpur- Monghyr","06348" -"India",91,"Jhajha- Monghyr","06349" -"India",91,"Bhagalpur- Bhagalpur","0641" -"India",91,"Amarpur- Bhagalpur","06420" -"India",91,"Naugachia- Bhagalpur","06421" -"India",91,"Godda- Deoghar (Dumka)","06422" -"India",91,"Maheshpur Raj- Deoghar (Dumka)","06423" -"India",91,"Banka- Bhagalpur","06424" -"India",91,"Katoria- Bhagalpur","06425" -"India",91,"Rajmahal- Deoghar (Dumka)","06426" -"India",91,"Kathikund- Deoghar (Dumka)","06427" -"India",91,"Nala- Deoghar (Dumka)","06428" -"India",91,"Kahalgaon- Bhagalpur","06429" -"India",91,"Jharmundi- Deoghar (Dumka)","06431" -"India",91,"Deoghar- Deoghar (Dumka)","06432" -"India",91,"Jamtara- Deoghar (Dumka)","06433" -"India",91,"Dumka- Deoghar (Dumka)","06434" -"India",91,"Pakur- Deoghar (Dumka)","06435" -"India",91,"Sahibganj- Deoghar (Dumka)","06436" -"India",91,"Mahagama- Deoghar (Dumka)","06437" -"India",91,"Madhupur- Deoghar (Dumka)","06438" -"India",91,"Barsoi- Katihar","06451" -"India",91,"Katihar- Katihar","06452" -"India",91,"Araria- Katihar","06453" -"India",91,"Purnea- Katihar","06454" -"India",91,"Forbesganj- Katihar","06455" -"India",91,"Korha- Katihar","06457" -"India",91,"Thakurganj- Katihar","06459" -"India",91,"Raniganj- Katihar","06461" -"India",91,"Dhamdaha- Katihar","06462" -"India",91,"Kishanganj- Katihar","06466" -"India",91,"Banmankhi- Katihar","06467" -"India",91,"Birpur- Saharsa","06471" -"India",91,"Supaul- Saharsa","06473" -"India",91,"S.Bakhtiarpur- Saharsa","06475" -"India",91,"Madhepura- Saharsa","06476" -"India",91,"Triveniganj- Saharsa","06477" -"India",91,"Saharsa- Saharsa","06478" -"India",91,"Udakishanganj- Saharsa","06479" -"India",91,"Ranchi- Ranchi","0651" -"India",91,"Muri- Ranchi","06522" -"India",91,"Ghaghra- Ranchi","06523" -"India",91,"Gumla- Ranchi","06524" -"India",91,"Simdega- Ranchi","06525" -"India",91,"Lohardaga- Ranchi","06526" -"India",91,"Kolebira- Ranchi","06527" -"India",91,"Khunti- Ranchi","06528" -"India",91,"Itki- Ranchi","06529" -"India",91,"Bundu- Ranchi","06530" -"India",91,"Mandar- Ranchi","06531" -"India",91,"Giridih- Hazaribagh","06532" -"India",91,"Basia- Ranchi","06533" -"India",91,"Jhumaritalaiya- Hazaribagh","06534" -"India",91,"Chainpur- Ranchi","06535" -"India",91,"Palkot- Ranchi","06536" -"India",91,"Torpa- Ranchi","06538" -"India",91,"Bolwa- Ranchi","06539" -"India",91,"Govindpur- Dhanbad","06540" -"India",91,"Chatra- Hazaribagh","06541" -"India",91,"Bokaro- Dhanbad","06542" -"India",91,"Barhi- Hazaribagh","06543" -"India",91,"Gomia- Dhanbad","06544" -"India",91,"Mandu- Hazaribagh","06545" -"India",91,"Hazaribagh- Hazaribagh","06546" -"India",91,"Chavparan- Hazaribagh","06547" -"India",91,"Ichak- Hazaribagh","06548" -"India",91,"Bermo- Dhanbad","06549" -"India",91,"Hunterganj- Hazaribagh","06550" -"India",91,"Barkagaon- Hazaribagh","06551" -"India",91,"Ramgarh- Hazaribagh","06553" -"India",91,"Rajdhanwar- Hazaribagh","06554" -"India",91,"Tisri- Hazaribagh","06556" -"India",91,"Bagodar- Hazaribagh","06557" -"India",91,"Dumri(Isribazar)- Hazaribagh","06558" -"India",91,"Simaria- Hazaribagh","06559" -"India",91,"Patan- Daltonganj","06560" -"India",91,"Garhwa- Daltonganj","06561" -"India",91,"Daltonganj- Daltonganj","06562" -"India",91,"Bhawanathpur- Daltonganj","06563" -"India",91,"Nagarutari- Daltonganj","06564" -"India",91,"Latehar- Daltonganj","06565" -"India",91,"Japla- Daltonganj","06566" -"India",91,"Barwadih- Daltonganj","06567" -"India",91,"Balumath- Daltonganj","06568" -"India",91,"Garu- Daltonganj","06569" -"India",91,"Jamshedpur- Jamshedpur","0657" -"India",91,"Bhandaria- Daltonganj","06581" -"India",91,"Chaibasa- Jamshedpur","06582" -"India",91,"Kharsawa- Jamshedpur","06583" -"India",91,"Bishrampur- Daltonganj","06584" -"India",91,"Ghatsila- Jamshedpur","06585" -"India",91,"Chainpur- Daltonganj","06586" -"India",91,"Chakardharpur- Jamshedpur","06587" -"India",91,"Jagarnathpur- Jamshedpur","06588" -"India",91,"Jhinkpani- Jamshedpur","06589" -"India",91,"Chandil- Jamshedpur","06591" -"India",91,"Manoharpur- Jamshedpur","06593" -"India",91,"Baharagora- Jamshedpur","06594" -"India",91,"Noamundi- Jamshedpur","06596" -"India",91,"Saraikela (Adstyapur)- Jamshedpur","06597" -"India",91,"Rourkela- Sundargarh (Rourkela)","0661" -"India",91,"Hemgiri- Sundargarh (Rourkela)","06621" -"India",91,"Sundargarh- Sundargarh (Rourkela)","06622" -"India",91,"Rajgangpur- Sundargarh (Rourkela)","06624" -"India",91,"Lahunipara- Sundargarh (Rourkela)","06625" -"India",91,"Banaigarh- Sundargarh (Rourkela)","06626" -"India",91,"Sambalpur- Sambalpur","0663" -"India",91,"Bagdihi- Sambalpur","06640" -"India",91,"Deodgarh- Sambalpur","06641" -"India",91,"Kuchinda- Sambalpur","06642" -"India",91,"Barkot- Sambalpur","06643" -"India",91,"Rairakhol- Sambalpur","06644" -"India",91,"Jharsuguda- Sambalpur","06645" -"India",91,"Bargarh- Sambalpur","06646" -"India",91,"Naktideul- Sambalpur","06647" -"India",91,"Patnagarh- Balangir","06648" -"India",91,"Jamankira- Sambalpur","06649" -"India",91,"Birmaharajpur- Balangir","06651" -"India",91,"Balangir- Balangir","06652" -"India",91,"Dunguripali- Balangir","06653" -"India",91,"Sonapur- Balangir","06654" -"India",91,"Titlagarh- Balangir","06655" -"India",91,"Kantabhanji- Balangir","06657" -"India",91,"Bhawanipatna- Bhawanipatna","06670" -"India",91,"Rajkhariar- Bhawanipatna","06671" -"India",91,"Dharamgarh- Bhawanipatna","06672" -"India",91,"Jayapatna- Bhawanipatna","06673" -"India",91,"T.Rampur- Bhawanipatna","06675" -"India",91,"M.Rampur- Bhawanipatna","06676" -"India",91,"Narlaroad- Bhawanipatna","06677" -"India",91,"Nowparatan- Bhawanipatna","06678" -"India",91,"Komana- Bhawanipatna","06679" -"India",91,"Jujumura- Sambalpur","06681" -"India",91,"Attabira- Sambalpur","06682" -"India",91,"Padmapur- Sambalpur","06683" -"India",91,"Paikamal- Sambalpur","06684" -"India",91,"Sohela- Sambalpur","06685" -"India",91,"Cuttack- Cuttack","0671" -"India",91,"Narsinghpur- Cuttack","06721" -"India",91,"Pardip- Cuttack","06722" -"India",91,"Athgarh- Cuttack","06723" -"India",91,"Jagatsinghpur- Cuttack","06724" -"India",91,"Dhanmandal- Cuttack","06725" -"India",91,"Jajapur Road- Cuttack","06726" -"India",91,"Kendrapara- Cuttack","06727" -"India",91,"Jajapur Town- Cuttack","06728" -"India",91,"Pattamundai- Cuttack","06729" -"India",91,"Anandapur- Dhenkanal","06731" -"India",91,"Hindol- Dhenkanal","06732" -"India",91,"Ghatgaon- Dhenkanal","06733" -"India",91,"Telkoi- Dhenkanal","06735" -"India",91,"Bhubaneshwar- Bhubaneswar (Puri)","0674" -"India",91,"Puri- Bhubaneswar (Puri)","06752" -"India",91,"Nayagarh- Bhubaneswar (Puri)","06753" -"India",91,"Khurda- Bhubaneswar (Puri)","06755" -"India",91,"Balugaon- Bhubaneswar (Puri)","06756" -"India",91,"Daspalla- Bhubaneswar (Puri)","06757" -"India",91,"Nimapara- Bhubaneswar (Puri)","06758" -"India",91,"Talcher- Dhenkanal","06760" -"India",91,"Chhendipada- Dhenkanal","06761" -"India",91,"Dhenkanal- Dhenkanal","06762" -"India",91,"Athmallik- Dhenkanal","06763" -"India",91,"Anugul- Dhenkanal","06764" -"India",91,"Palla Hara- Dhenkanal","06765" -"India",91,"Keonjhar- Dhenkanal","06766" -"India",91,"Barbil- Dhenkanal","06767" -"India",91,"Parajang- Dhenkanal","06768" -"India",91,"Kamakhyanagar- Dhenkanal","06769" -"India",91,"Basta- Balasore","06781" -"India",91,"Balasore- Balasore","06782" -"India",91,"Bhadrak- Balasore","06784" -"India",91,"Chandbali- Balasore","06786" -"India",91,"Soro- Balasore","06788" -"India",91,"Bangiriposi- Baripada","06791" -"India",91,"Baripada- Baripada","06792" -"India",91,"Betanati- Baripada","06793" -"India",91,"Rairangpur- Baripada","06794" -"India",91,"Udala- Baripada","06795" -"India",91,"Karanjia- Baripada","06796" -"India",91,"Jashipur- Baripada","06797" -"India",91,"Berhampur- Berhampur","0680" -"India",91,"Khalikote- Berhampur","06810" -"India",91,"Chhatrapur- Berhampur","06811" -"India",91,"Digapahandi- Berhampur","06814" -"India",91,"Parlakhemundi- Berhampur","06815" -"India",91,"Mohana- Berhampur","06816" -"India",91,"R.Udayigiri- Berhampur","06817" -"India",91,"Buguda- Berhampur","06818" -"India",91,"Surada- Berhampur","06819" -"India",91,"Bhanjanagar- Berhampur","06821" -"India",91,"Aska- Berhampur","06822" -"India",91,"Tumudibandha- Phulbani","06840" -"India",91,"Boudh- Phulbani","06841" -"India",91,"Phulbani- Phulbani","06842" -"India",91,"Puruna Katak- Phulbani","06843" -"India",91,"Kantamal- Phulbani","06844" -"India",91,"Phiringia- Phulbani","06845" -"India",91,"Baliguda- Phulbani","06846" -"India",91,"G.Udayagiri- Phulbani","06847" -"India",91,"Kotagarh- Phulbani","06848" -"India",91,"Daringbadi- Phulbani","06849" -"India",91,"Kalimela- Koraput","06850" -"India",91,"Koraput- Koraput","06852" -"India",91,"Sunabeda- Koraput","06853" -"India",91,"Jeypore- Koraput","06854" -"India",91,"Laxmipur- Koraput","06855" -"India",91,"Rayagada- Koraput","06856" -"India",91,"Gunupur- Koraput","06857" -"India",91,"Nowrangapur- Koraput","06858" -"India",91,"Motu- Koraput","06859" -"India",91,"Boriguma- Koraput","06860" -"India",91,"Malkangiri- Koraput","06861" -"India",91,"Gudari- Koraput","06862" -"India",91,"Bisam Cuttack- Koraput","06863" -"India",91,"Mathili- Koraput","06864" -"India",91,"Kashipur- Koraput","06865" -"India",91,"Umerkote- Koraput","06866" -"India",91,"Jharigan- Koraput","06867" -"India",91,"Nandapur- Koraput","06868" -"India",91,"Papadhandi- Koraput","06869" -"India",91,"Kuhi- Nagpur","07100" -"India",91,"Parseoni- Nagpur","07102" -"India",91,"Butibori- Nagpur","07103" -"India",91,"Hingua- Nagpur","07104" -"India",91,"Narkhed- Nagpur","07105" -"India",91,"Bhiwapur- Nagpur","07106" -"India",91,"Kamptee- Nagpur","07109" -"India",91,"Katol- Nagpur","07112" -"India",91,"Saoner- Nagpur","07113" -"India",91,"Ramtek- Nagpur","07114" -"India",91,"Mouda- Nagpur","07115" -"India",91,"Umrer- Nagpur","07116" -"India",91,"Kalmeshwar- Nagpur","07118" -"India",91,"Nagpur- Nagpur","0712" -"India",91,"Sironcha- Gadchiroli","07131" -"India",91,"Gadchiroli- Gadchiroli","07132" -"India",91,"Aheri- Gadchiroli","07133" -"India",91,"Bhamregadh- Gadchiroli","07134" -"India",91,"Chamorshi- Gadchiroli","07135" -"India",91,"Etapalli- Gadchiroli","07136" -"India",91,"Desaiganj- Gadchiroli","07137" -"India",91,"Dhanora- Gadchiroli","07138" -"India",91,"Kurkheda- Gadchiroli","07139" -"India",91,"Betul- Betul","07141" -"India",91,"Bhimpur- Betul","07142" -"India",91,"Bhainsdehi- Betul","07143" -"India",91,"Atner- Betul","07144" -"India",91,"Chicholi- Betul","07145" -"India",91,"Ghorandogri- Betul","07146" -"India",91,"Multai- Betul","07147" -"India",91,"Prabha Pattan- Betul","07148" -"India",91,"Tamia- Chhindwara","07149" -"India",91,"Samudrapur- Wardha","07151" -"India",91,"Wardha- Wardha","07152" -"India",91,"Hinganghat- Wardha","07153" -"India",91,"Seloo- Wardha","07155" -"India",91,"Talegaokarangal- Wardha","07156" -"India",91,"Arvi- Wardha","07157" -"India",91,"Deoli- Wardha","07158" -"India",91,"Jamai- Chhindwara","07160" -"India",91,"Parasia- Chhindwara","07161" -"India",91,"Chhindwara- Chhindwara","07162" -"India",91,"Pandhurna- Chhindwara","07164" -"India",91,"Saunsar- Chhindwara","07165" -"India",91,"Chaurai- Chhindwara","07166" -"India",91,"Amarwada- Chhindwara","07167" -"India",91,"Harrai- Chhindwara","07168" -"India",91,"Batkakhapa- Chhindwara","07169" -"India",91,"Chumur- Chandrapur","07170" -"India",91,"Gond Pipri- Chandrapur","07171" -"India",91,"Chandrapur- Chandrapur","07172" -"India",91,"Rajura- Chandrapur","07173" -"India",91,"Mul- Chandrapur","07174" -"India",91,"Bhadrawati- Chandrapur","07175" -"India",91,"Warora- Chandrapur","07176" -"India",91,"Brahmapuri- Chandrapur","07177" -"India",91,"Sinderwahi- Chandrapur","07178" -"India",91,"Nagbhir- Chandrapur","07179" -"India",91,"Salekasa- Bhandara","07180" -"India",91,"Lakhandur- Bhandara","07181" -"India",91,"Gondia- Bhandara","07182" -"India",91,"Tumsar- Bhandara","07183" -"India",91,"Bhandara- Bhandara","07184" -"India",91,"Pauni- Bhandara","07185" -"India",91,"Sakoli- Bhandara","07186" -"India",91,"Goregaon- Bhandara","07187" -"India",91,"Amagaon- Bhandara","07189" -"India",91,"Arjuni-Merogaon- Bhandara","07196" -"India",91,"Mohadi- Bhandara","07197" -"India",91,"Tirora- Bhandara","07198" -"India",91,"Deori- Bhandara","07199" -"India",91,"Kalamb- Yeotmal","07201" -"India",91,"Ralegaon- Yeotmal","07202" -"India",91,"Babhulgaon- Yeotmal","07203" -"India",91,"Amravati- Amravati","0721" -"India",91,"Chhikaldara- Amravati","07220" -"India",91,"Nandgaon- Amravati","07221" -"India",91,"Chandurrly- Amravati","07222" -"India",91,"Achalpur- Amravati","07223" -"India",91,"Daryapur- Amravati","07224" -"India",91,"Tiwasa- Amravati","07225" -"India",91,"Dharani- Amravati","07226" -"India",91,"Chandurbazar- Amravati","07227" -"India",91,"Morshi- Amravati","07228" -"India",91,"Warlydwarud- Amravati","07229" -"India",91,"Ghatanji- Yeotmal","07230" -"India",91,"Umarkhed- Yeotmal","07231" -"India",91,"Yeotmal- Yeotmal","07232" -"India",91,"Pusad- Yeotmal","07233" -"India",91,"Digras- Yeotmal","07234" -"India",91,"Pandharkawada- Yeotmal","07235" -"India",91,"Maregaon- Yeotmal","07236" -"India",91,"Marigaon- Yeotmal","07237" -"India",91,"Darwaha- Yeotmal","07238" -"India",91,"Wani- Yeotmal","07239" -"India",91,"Akola- Akola","0724" -"India",91,"Risod- Akola","07251" -"India",91,"Washim- Akola","07252" -"India",91,"Mangrulpur- Akola","07253" -"India",91,"Malgaon- Akola","07254" -"India",91,"Barshi Takli- Akola","07255" -"India",91,"Murtizapur- Akola","07256" -"India",91,"Balapur- Akola","07257" -"India",91,"Akot- Akola","07258" -"India",91,"Lonar- Buldhana","07260" -"India",91,"Deolgaonraja- Buldhana","07261" -"India",91,"Buldhana- Buldhana","07262" -"India",91,"Khamgaon- Buldhana","07263" -"India",91,"Chikhali- Buldhana","07264" -"India",91,"Jalgaonjamod- Buldhana","07266" -"India",91,"Malkapur- Buldhana","07267" -"India",91,"Mekhar- Buldhana","07268" -"India",91,"Sindkhedaraja- Buldhana","07269" -"India",91,"Sonkatch- Dewas","07270" -"India",91,"Bagli- Dewas","07271" -"India",91,"Dewas- Dewas","07272" -"India",91,"Kannod- Dewas","07273" -"India",91,"Khategaon- Dewas","07274" -"India",91,"Nandnva- Buldhana","07279" -"India",91,"Barwaha- Khargone","07280" -"India",91,"Sendhwa- Khargone","07281" -"India",91,"Khargone- Khargone","07282" -"India",91,"Maheshwar- Khargone","07283" -"India",91,"Rajpur- Khargone","07284" -"India",91,"Kasrawad- Khargone","07285" -"India",91,"Khetia- Khargone","07286" -"India",91,"Gogaon- Khargone","07287" -"India",91,"Bhikangaon- Khargone","07288" -"India",91,"Zhirnia- Khargone","07289" -"India",91,"Badwani- Khargone","07290" -"India",91,"Manawar- Dhar","07291" -"India",91,"Dhar- Dhar","07292" -"India",91,"Dharampuri- Dhar","07294" -"India",91,"Badnawar- Dhar","07295" -"India",91,"Sardarpur- Dhar","07296" -"India",91,"Kukshi- Dhar","07297" -"India",91,"Indore- Indore","0731" -"India",91,"Pandhana- Khandwa","07320" -"India",91,"Sanwer- Indore","07321" -"India",91,"Depalpur- Indore","07322" -"India",91,"Punasa- Khandwa","07323" -"India",91,"Mhow- Indore","07324" -"India",91,"Burhanpur- Khandwa","07325" -"India",91,"Baldi- Khandwa","07326" -"India",91,"Harsud- Khandwa","07327" -"India",91,"Khalwa- Khandwa","07328" -"India",91,"Khakner- Khandwa","07329" -"India",91,"Khandwa- Khandwa","0733" -"India",91,"Ujjain- Ujjain","0734" -"India",91,"Shujalpur- Shajapur","07360" -"India",91,"Susner- Shajapur","07361" -"India",91,"Agar- Shajapur","07362" -"India",91,"Berchha- Shajapur","07363" -"India",91,"Shajapur- Shajapur","07364" -"India",91,"Mahidpurcity- Ujjain","07365" -"India",91,"Khachrod- Ujjain","07366" -"India",91,"Badnagar- Ujjain","07367" -"India",91,"Ghatia- Ujjain","07368" -"India",91,"Tarana- Ujjain","07369" -"India",91,"Khilchipur- Rajgarh","07370" -"India",91,"Sarangpur- Rajgarh","07371" -"India",91,"Rajgarh- Rajgarh","07372" -"India",91,"Biaora- Rajgarh","07374" -"India",91,"Narsingharh- Rajgarh","07375" -"India",91,"Thandla- Jhabua","07390" -"India",91,"Petlawad- Jhabua","07391" -"India",91,"Jhabua- Jhabua","07392" -"India",91,"Jobat- Jhabua","07393" -"India",91,"Alirajpur- Jhabua","07394" -"India",91,"Sondhwa- Jhabua","07395" -"India",91,"Alot- Ratlam","07410" -"India",91,"Ratlam- Ratlam","07412" -"India",91,"Sailana- Ratlam","07413" -"India",91,"Jaora- Ratlam","07414" -"India",91,"Jawad- Mandsaur","07420" -"India",91,"Manasa- Mandsaur","07421" -"India",91,"Mandsaur- Mandsaur","07422" -"India",91,"Neemuch- Mandsaur","07423" -"India",91,"Malhargarh- Mandsaur","07424" -"India",91,"Garoth- Mandsaur","07425" -"India",91,"Sitamau- Mandsaur","07426" -"India",91,"Bhanpura- Mandsaur","07427" -"India",91,"Khanpur- Jhalawar","07430" -"India",91,"Aklera- Jhalawar","07431" -"India",91,"Jhalawar- Jhalawar","07432" -"India",91,"Pachpahar (Bhawanimandi)- Jhalawar","07433" -"India",91,"Pirawa (Raipur)- Jhalawar","07434" -"India",91,"Gangdhar- Jhalawar","07435" -"India",91,"Hindoli- Bundi","07436" -"India",91,"Nainwa- Bundi","07437" -"India",91,"Keshoraipatan (Patan)- Bundi","07438" -"India",91,"Ladpura (Kota)- Kota","0744" -"India",91,"Sangod- Kota","07450" -"India",91,"Atru- Kota","07451" -"India",91,"Chhabra- Kota","07452" -"India",91,"Baran- Kota","07453" -"India",91,"Chhipaborad- Kota","07454" -"India",91,"Digod (Sultanpur)- Kota","07455" -"India",91,"Kishanganj (Bhanwargarh)- Kota","07456" -"India",91,"Mangrol- Kota","07457" -"India",91,"Pipalda (Sumerganj Mandi)- Kota","07458" -"India",91,"Ramganj Mandi- Kota","07459" -"India",91,"Sahabad- Kota","07460" -"India",91,"Mahuwa- Sawaimadhopur","07461" -"India",91,"Sawaimadhopur- Sawaimadhopur","07462" -"India",91,"Gangapur- Sawaimadhopur","07463" -"India",91,"Karauli- Sawaimadhopur","07464" -"India",91,"Sapotra- Sawaimadhopur","07465" -"India",91,"Bonli- Sawaimadhopur","07466" -"India",91,"Bamanwas- Sawaimadhopur","07467" -"India",91,"Khandar- Sawaimadhopur","07468" -"India",91,"Hindaun- Sawaimadhopur","07469" -"India",91,"Bundi- Bundi","0747" -"India",91,"Goharganj- Raisen","07480" -"India",91,"Gairatganj- Raisen","07481" -"India",91,"Raisen- Raisen","07482" -"India",91,"Silwani- Raisen","07484" -"India",91,"Udaipura- Raisen","07485" -"India",91,"Bareli- Raisen","07486" -"India",91,"Begamganj- Raisen","07487" -"India",91,"Pohari- Shivpuri","07490" -"India",91,"Narwar- Shivpuri","07491" -"India",91,"Shivpuri- Shivpuri","07492" -"India",91,"Karera- Shivpuri","07493" -"India",91,"Kolaras- Shivpuri","07494" -"India",91,"Badarwas- Shivpuri","07495" -"India",91,"Pichhore- Shivpuri","07496" -"India",91,"Khaniadhana- Shivpuri","07497" -"India",91,"Gwalior- Gwalior","0751" -"India",91,"Seondha- Gwalior","07521" -"India",91,"Datia- Gwalior","07522" -"India",91,"Bhander- Gwalior","07523" -"India",91,"Dabra- Gwalior","07524" -"India",91,"Bhitarwar- Gwalior","07525" -"India",91,"Ghatigaon- Gwalior","07526" -"India",91,"Mehgaon- Morena","07527" -"India",91,"Bijaypur- Morena","07528" -"India",91,"Laher- Morena","07529" -"India",91,"Sheopurkalan- Morena","07530" -"India",91,"Baroda- Morena","07531" -"India",91,"Morena- Morena","07532" -"India",91,"Karhal- Morena","07533" -"India",91,"Bhind- Morena","07534" -"India",91,"Raghunathpur- Morena","07535" -"India",91,"Sabalgarh- Morena","07536" -"India",91,"Jora- Morena","07537" -"India",91,"Ambah- Morena","07538" -"India",91,"Gohad- Morena","07539" -"India",91,"Bamori- Guna","07540" -"India",91,"Isagarh- Guna","07541" -"India",91,"Guna- Guna","07542" -"India",91,"Ashoknagar- Guna","07543" -"India",91,"Raghogarh- Guna","07544" -"India",91,"Arone- Guna","07545" -"India",91,"Chachaura- Guna","07546" -"India",91,"Chanderi- Guna","07547" -"India",91,"Mungaoli- Guna","07548" -"India",91,"Bhopal- Bhopal","0755" -"India",91,"Ashta- Bhopal","07560" -"India",91,"Ichhawar- Bhopal","07561" -"India",91,"Sehore- Bhopal","07562" -"India",91,"Nasrullaganj- Bhopal","07563" -"India",91,"Budhni- Bhopal","07564" -"India",91,"Berasia- Bhopal","07565" -"India",91,"Seonimalwa- Itarsi","07570" -"India",91,"Khirkiya- Itarsi","07571" -"India",91,"Itarsi- Itarsi","07572" -"India",91,"Timarani- Itarsi","07573" -"India",91,"Hoshangabad- Itarsi","07574" -"India",91,"Sohagpur- Itarsi","07575" -"India",91,"Piparia- Itarsi","07576" -"India",91,"Harda- Itarsi","07577" -"India",91,"Pachmarhi- Itarsi","07578" -"India",91,"Bina- Sagar","07580" -"India",91,"Khurai- Sagar","07581" -"India",91,"Sagar- Sagar","07582" -"India",91,"Banda- Sagar","07583" -"India",91,"Rahatgarh- Sagar","07584" -"India",91,"Rehli- Sagar","07585" -"India",91,"Deori- Sagar","07586" -"India",91,"Lateri- Vidisha","07590" -"India",91,"Sironj- Vidisha","07591" -"India",91,"Vidisha- Vidisha","07592" -"India",91,"Kurwai- Vidisha","07593" -"India",91,"Ganjbasoda- Vidisha","07594" -"India",91,"Nateran- Vidisha","07595" -"India",91,"Gyraspur- Vidisha","07596" -"India",91,"Patharia- Damoh","07601" -"India",91,"Tendukheda- Damoh","07603" -"India",91,"Hatta- Damoh","07604" -"India",91,"Patera- Damoh","07605" -"India",91,"Jabera- Damoh","07606" -"India",91,"Bijawar- Chhatarpur","07608" -"India",91,"Buxwaha- Chhatarpur","07609" -"India",91,"Jabalpur- Jabalpur","0761" -"India",91,"Patan- Jabalpur","07621" -"India",91,"Katni- Jabalpur","07622" -"India",91,"Kundam- Jabalpur","07623" -"India",91,"Sihora- Jabalpur","07624" -"India",91,"Umariapan- Jabalpur","07625" -"India",91,"Vijayraghogarh- Jabalpur","07626" -"India",91,"Manpur- Shahdol","07627" -"India",91,"Karpa- Shahdol","07628" -"India",91,"Pushprajgarh- Shahdol","07629" -"India",91,"Katangi- Balaghat","07630" -"India",91,"Balaghat- Balaghat","07632" -"India",91,"Waraseoni- Balaghat","07633" -"India",91,"Lamta- Balaghat","07634" -"India",91,"Lanji- Balaghat","07635" -"India",91,"Baihar- Balaghat","07636" -"India",91,"Birsa- Balaghat","07637" -"India",91,"Damoh- Balaghat","07638" -"India",91,"Shahpur- Mandla","07640" -"India",91,"Niwas- Mandla","07641" -"India",91,"Mandla- Mandla","07642" -"India",91,"Bijadandi- Mandla","07643" -"India",91,"Dindori- Mandla","07644" -"India",91,"Karanjia- Mandla","07645" -"India",91,"Nainpur- Mandla","07646" -"India",91,"Ghughari- Mandla","07647" -"India",91,"Mawai- Mandla","07648" -"India",91,"Kakaiya- Mandla","07649" -"India",91,"Beohari- Shahdol","07650" -"India",91,"Jaisinghnagar- Shahdol","07651" -"India",91,"Shahdol- Shahdol","07652" -"India",91,"Bandhavgarh- Shahdol","07653" -"India",91,"Birsinghpur- Shahdol","07655" -"India",91,"Kannodi- Shahdol","07656" -"India",91,"Jaitpur- Shahdol","07657" -"India",91,"Kotma- Shahdol","07658" -"India",91,"Jaithari- Shahdol","07659" -"India",91,"Sirmour- Rewa","07660" -"India",91,"Teonthar- Rewa","07661" -"India",91,"Rewa- Rewa","07662" -"India",91,"Mauganj- Rewa","07663" -"India",91,"Hanumana- Rewa","07664" -"India",91,"Majhagwan- Satna","07670" -"India",91,"Jaitwara- Satna","07671" -"India",91,"Satna- Satna","07672" -"India",91,"Nagod- Satna","07673" -"India",91,"Maihar- Satna","07674" -"India",91,"Amarpatan- Satna","07675" -"India",91,"Niwari- Chhatarpur","07680" -"India",91,"Jatara- Chhatarpur","07681" -"India",91,"Chhatarpur- Chhatarpur","07682" -"India",91,"Tikamgarh- Chhatarpur","07683" -"India",91,"Baldeogarh- Chhatarpur","07684" -"India",91,"Nowgaon- Chhatarpur","07685" -"India",91,"Khajuraho- Chhatarpur","07686" -"India",91,"Laundi- Chhatarpur","07687" -"India",91,"Gourihar- Chhatarpur","07688" -"India",91,"Badamalhera- Chhatarpur","07689" -"India",91,"Lakhnadon- Seoni","07690" -"India",91,"Chhapara- Seoni","07691" -"India",91,"Seoni- Seoni","07692" -"India",91,"Ghansour- Seoni","07693" -"India",91,"Keolari- Seoni","07694" -"India",91,"Gopalganj- Seoni","07695" -"India",91,"Nagri- Raipur","07700" -"India",91,"Pingeshwar- Raipur","07701" -"India",91,"Manpur- Raipur","07703" -"India",91,"Deobhog- Raipur","07704" -"India",91,"Kurud- Raipur","07705" -"India",91,"Gariaband- Raipur","07706" -"India",91,"Bagbahera- Raipur","07707" -"India",91,"Raipur- Raipur","0771" -"India",91,"Arang- Raipur","07720" -"India",91,"Neora- Raipur","07721" -"India",91,"Dhamtari- Raipur","07722" -"India",91,"Mahasamund- Raipur","07723" -"India",91,"Basana- Raipur","07724" -"India",91,"Saraipali- Raipur","07725" -"India",91,"Bhatapara- Raipur","07726" -"India",91,"Balodabazar- Raipur","07727" -"India",91,"Kasdol- Raipur","07728" -"India",91,"Bhilaigarh- Raipur","07729" -"India",91,"Ajaigarh- Panna","07730" -"India",91,"Gunnore- Panna","07731" -"India",91,"Panna- Panna","07732" -"India",91,"Pawai- Panna","07733" -"India",91,"Shahnagar- Panna","07734" -"India",91,"Bodla- Durg","07740" -"India",91,"Kawardha- Durg","07741" -"India",91,"Chuikhadan- Durg","07743" -"India",91,"Rajandgaon- Durg","07744" -"India",91,"Chhuriakala- Durg","07745" -"India",91,"Manpur- Durg","07746" -"India",91,"Mohla- Durg","07747" -"India",91,"Dallirajhara- Durg","07748" -"India",91,"Balod- Durg","07749" -"India",91,"Marwahi- Bilaspur","07750" -"India",91,"Pendra- Bilaspur","07751" -"India",91,"Bilaspur- Bilaspur","07752" -"India",91,"Kota- Bilaspur","07753" -"India",91,"Pandaria- Bilaspur","07754" -"India",91,"Mungeli- Bilaspur","07755" -"India",91,"Lormi- Bilaspur","07756" -"India",91,"Shakti- Bilaspur","07757" -"India",91,"Dabhara- Bilaspur","07758" -"India",91,"Korba- Bilaspur","07759" -"India",91,"Tapkara- Raigarh","07761" -"India",91,"Raigarh- Raigarh","07762" -"India",91,"Jashpurnagar- Raigarh","07763" -"India",91,"Kunkuri- Raigarh","07764" -"India",91,"Pathalgaon- Raigarh","07765" -"India",91,"Dharamjaigarh- Raigarh","07766" -"India",91,"Gharghoda- Raigarh","07767" -"India",91,"Saranggarh- Raigarh","07768" -"India",91,"Bagicha- Raigarh","07769" -"India",91,"Kathdol- Sarguja (Ambikapur)","07770" -"India",91,"Manendragarh- Sarguja (Ambikapur)","07771" -"India",91,"Wadrainagar- Sarguja (Ambikapur)","07772" -"India",91,"Odgi- Sarguja (Ambikapur)","07773" -"India",91,"Ambikapur- Sarguja (Ambikapur)","07774" -"India",91,"Surajpur- Sarguja (Ambikapur)","07775" -"India",91,"Premnagar- Sarguja (Ambikapur)","07776" -"India",91,"Pratappur- Sarguja (Ambikapur)","07777" -"India",91,"Semaria- Sarguja (Ambikapur)","07778" -"India",91,"Ramchandrapur- Sarguja (Ambikapur)","07779" -"India",91,"Pakhanjur- Jagdalpur","07780" -"India",91,"Narainpur- Jagdalpur","07781" -"India",91,"Jagdalpur- Jagdalpur","07782" -"India",91,"Padamkot- Jagdalpur","07783" -"India",91,"Parasgaon- Jagdalpur","07784" -"India",91,"Makodi- Jagdalpur","07785" -"India",91,"Kondagaon- Jagdalpur","07786" -"India",91,"Jarwa- Jagdalpur","07787" -"India",91,"Luckwada- Jagdalpur","07788" -"India",91,"Bhairongarh- Jagdalpur","07789" -"India",91,"Babaichichli- Narsinghpur","07790" -"India",91,"Gadarwara- Narsinghpur","07791" -"India",91,"Narsinghpur- Narsinghpur","07792" -"India",91,"Kareli- Narsinghpur","07793" -"India",91,"Gotegaon- Narsinghpur","07794" -"India",91,"Deosar- Sidhi","07801" -"India",91,"Churhat- Sidhi","07802" -"India",91,"Majholi- Sidhi","07803" -"India",91,"Kusmi- Sidhi","07804" -"India",91,"Singrauli- Sidhi","07805" -"India",91,"Chitrangi- Sidhi","07806" -"India",91,"Uproda- Bilaspur","07810" -"India",91,"Pasan- Bilaspur","07811" -"India",91,"Damoh- Damoh","07812" -"India",91,"Barpalli- Bilaspur","07813" -"India",91,"Kathghora- Bilaspur","07815" -"India",91,"Pali- Bilaspur","07816" -"India",91,"Janjgir- Bilaspur","07817" -"India",91,"Chandipara- Bilaspur","07818" -"India",91,"Pandishankar- Bilaspur","07819" -"India",91,"Khairagarh- Durg","07820" -"India",91,"Dhamda- Durg","07821" -"India",91,"Sidhi- Sidhi","07822" -"India",91,"Dongargarh- Durg","07823" -"India",91,"Bemetara- Durg","07824" -"India",91,"Berla- Durg","07825" -"India",91,"Patan- Durg","07826" -"India",91,"Balrampur- Sarguja (Ambikapur)","07831" -"India",91,"Rajpur- Sarguja (Ambikapur)","07832" -"India",91,"Udaipur- Sarguja (Ambikapur)","07833" -"India",91,"Sitapur- Sarguja (Ambikapur)","07834" -"India",91,"Bharathpur- Sarguja (Ambikapur)","07835" -"India",91,"Baikunthpur- Sarguja (Ambikapur)","07836" -"India",91,"Koyelibeda- Jagdalpur","07840" -"India",91,"Sarona- Jagdalpur","07841" -"India",91,"Durgakondal- Jagdalpur","07843" -"India",91,"Pakhanjur- Jagdalpur","07844" -"India",91,"Garpa- Jagdalpur","07846" -"India",91,"Antagarh- Jagdalpur","07847" -"India",91,"Keskal- Jagdalpur","07848" -"India",91,"Baderajpur- Jagdalpur","07849" -"India",91,"Bhanupratappur- Jagdalpur","07850" -"India",91,"Bhopalpatnam- Jagdalpur","07851" -"India",91,"Toynar- Jagdalpur","07852" -"India",91,"Bijapur- Jagdalpur","07853" -"India",91,"Ilamidi- Jagdalpur","07854" -"India",91,"Chingmut- Jagdalpur","07855" -"India",91,"Dantewada- Jagdalpur","07856" -"India",91,"Bacheli- Jagdalpur","07857" -"India",91,"Kuakunda- Jagdalpur","07858" -"India",91,"Lohadigundah- Jagdalpur","07859" -"India",91,"Netanar- Jagdalpur","07861" -"India",91,"Bastanar- Jagdalpur","07862" -"India",91,"Chingamut- Jagdalpur","07863" -"India",91,"Sukma- Jagdalpur","07864" -"India",91,"Gogunda- Jagdalpur","07865" -"India",91,"Konta- Jagdalpur","07866" -"India",91,"Bokaband- Jagdalpur","07867" -"India",91,"Kanker- Jagdalpur","07868" -"India",91,"Durg- Durg","0788" -"India",91,"Ahemdabad Local- Ahmedabad","079" -"India",91,"Bangalore- Bangalore","080" -"India",91,"Anekal- Bangalore","08110" -"India",91,"Hosakote- Bangalore","08111" -"India",91,"Channapatna- Bangalore","08113" -"India",91,"Kanakapura- Bangalore","08117" -"India",91,"Nelamangala- Bangalore","08118" -"India",91,"Doddaballapur- Bangalore","08119" -"India",91,"Gubbi- Tumkur","08131" -"India",91,"Kunigal- Tumkur","08132" -"India",91,"Chikkanayakanahalli- Tumkur","08133" -"India",91,"Tiptur- Tumkur","08134" -"India",91,"Sira- Tumkur","08135" -"India",91,"Pavagada- Tumkur","08136" -"India",91,"Madugiri- Tumkur","08137" -"India",91,"Koratageri- Tumkur","08138" -"India",91,"Turuvekere- Tumkur","08139" -"India",91,"Bagepalli- Kolar","08150" -"India",91,"Malur- Kolar","08151" -"India",91,"Kolar- Kolar","08152" -"India",91,"Bangarpet- Kolar","08153" -"India",91,"Chintamani- Kolar","08154" -"India",91,"Gowribidanur- Kolar","08155" -"India",91,"Chikkaballapur- Kolar","08156" -"India",91,"Srinivasapur- Kolar","08157" -"India",91,"Sidlaghatta- Kolar","08158" -"India",91,"Mulbagal- Kolar","08159" -"India",91,"Tumkur- Tumkur","0816" -"India",91,"Alur- Hassan","08170" -"India",91,"Hassan- Hassan","08172" -"India",91,"Sakleshpur- Hassan","08173" -"India",91,"Arsikere- Hassan","08174" -"India",91,"Holenarasipur- Hassan","08175" -"India",91,"Cannarayapatna- Hassan","08176" -"India",91,"Belur- Hassan","08177" -"India",91,"Basavapatna- Shimoga","08180" -"India",91,"Thirthahalli- Shimoga","08181" -"India",91,"Shimoga- Shimoga","08182" -"India",91,"Sagar- Shimoga","08183" -"India",91,"Sorab- Shimoga","08184" -"India",91,"Hosanagara- Shimoga","08185" -"India",91,"Kargal- Shimoga","08186" -"India",91,"Shikaripura- Shimoga","08187" -"India",91,"Honnali- Shimoga","08188" -"India",91,"Channagiri- Shimoga","08189" -"India",91,"Tallak- Devangere","08190" -"India",91,"Holalkere- Devangere","08191" -"India",91,"Davangere- Devangere","08192" -"India",91,"Hiriyur- Devangere","08193" -"India",91,"Chitradurga- Devangere","08194" -"India",91,"Challakere- Devangere","08195" -"India",91,"Jagalur- Devangere","08196" -"India",91,"Molkalmuru- Devangere","08198" -"India",91,"Hosadurga- Devangere","08199" -"India",91,"Udupi- Dakshin Kanada (Mangalore)","0820" -"India",91,"Mysore- Mysore","0821" -"India",91,"Nanjangud- Mysore","08221" -"India",91,"Hunsur- Mysore","08222" -"India",91,"K.R.Nagar- Mysore","08223" -"India",91,"Kollegal- Mysore","08224" -"India",91,"Cowdahalli- Mysore","08225" -"India",91,"Chamrajnagar- Mysore","08226" -"India",91,"T.Narsipur- Mysore","08227" -"India",91,"H.D.Kote- Mysore","08228" -"India",91,"Gundlupet- Mysore","08229" -"India",91,"Krishnarajapet- Mandya","08230" -"India",91,"Malavalli- Mandya","08231" -"India",91,"Mandya- Mandya","08232" -"India",91,"Nagamangala- Mandya","08234" -"India",91,"Pandavpura- Mandya","08236" -"India",91,"Mangalore- Dakshin Kanada (Mangalore)","0824" -"India",91,"Puttur- Dakshin Kanada (Mangalore)","08251" -"India",91,"Hebri- Dakshin Kanada (Mangalore)","08253" -"India",91,"Kundapur- Dakshin Kanada (Mangalore)","08254" -"India",91,"Bantwal- Dakshin Kanada (Mangalore)","08255" -"India",91,"Belthangady- Dakshin Kanada (Mangalore)","08256" -"India",91,"Sullia- Dakshin Kanada (Mangalore)","08257" -"India",91,"Karkala- Dakshin Kanada (Mangalore)","08258" -"India",91,"Shankarnarayana- Dakshin Kanada (Mangalore)","08259" -"India",91,"Tarikere- Chikmagalur","08261" -"India",91,"Chikmagalur- Chikmagalur","08262" -"India",91,"Mudigere- Chikmagalur","08263" -"India",91,"Koppa- Chikmagalur","08265" -"India",91,"Narsimharajapur- Chikmagalur","08266" -"India",91,"Kadur- Chikmagalur","08267" -"India",91,"Madikeri- Kodagu (Madikera)","08272" -"India",91,"Virajpet- Kodagu (Madikera)","08274" -"India",91,"Somwarpet- Kodagu (Madikera)","08276" -"India",91,"Bhadravati- Shimoga","08282" -"India",91,"Salkani- Uttar Kanada (Karwar)","08283" -"India",91,"Haliyal- Uttar Kanada (Karwar)","08284" -"India",91,"Bailhongal- Belgaum","08288" -"India",91,"Athani- Belgaum","08289" -"India",91,"Mundagod- Uttar Kanada (Karwar)","08301" -"India",91,"Kundgol- Hubli","08304" -"India",91,"Belgaum- Belgaum","0831" -"India",91,"Panji- Panji","0832" -"India",91,"Saundatti- Belgaum","08330" -"India",91,"Raibag (Kudchi)- Belgaum","08331" -"India",91,"Gokak- Belgaum","08332" -"India",91,"Hukkeri (Sankeshwar)- Belgaum","08333" -"India",91,"Mudalgi- Belgaum","08334" -"India",91,"Ramdurg- Belgaum","08335" -"India",91,"Khanapur- Belgaum","08336" -"India",91,"Murugod- Belgaum","08337" -"India",91,"Chikkodi- Belgaum","08338" -"India",91,"Ainapur- Belgaum","08339" -"India",91,"Margao- Panji","08342" -"India",91,"Ponda- Panji","08343" -"India",91,"Sanguem- Panji","08345" -"India",91,"Canacona (Quepem)- Panji","08346" -"India",91,"Mudhol- Bijapur","08350" -"India",91,"Hungund- Bijapur","08351" -"India",91,"Bijapur- Bijapur","08352" -"India",91,"Jamkhandi- Bijapur","08353" -"India",91,"Bagalkot- Bijapur","08354" -"India",91,"Bableshwar- Bijapur","08355" -"India",91,"Muddebihal- Bijapur","08356" -"India",91,"Badami- Bijapur","08357" -"India",91,"Basavanabagewadi- Bijapur","08358" -"India",91,"Indi- Bijapur","08359" -"India",91,"Hubli- Hubli","0836" -"India",91,"Kalghatagi- Hubli","08370" -"India",91,"Mundargi- Hubli","08371" -"India",91,"Gadag- Hubli","08372" -"India",91,"Ranebennur- Hubli","08373" -"India",91,"Haveri- Hubli","08375" -"India",91,"Hirekerur- Hubli","08376" -"India",91,"Nargund- Hubli","08377" -"India",91,"Savanur- Hubli","08378" -"India",91,"Hangal- Hubli","08379" -"India",91,"Navalgund- Hubli","08380" -"India",91,"Ron- Hubli","08381" -"India",91,"Karwar- Uttar Kanada (Karwar)","08382" -"India",91,"Joida- Uttar Kanada (Karwar)","08383" -"India",91,"Sirsi- Uttar Kanada (Karwar)","08384" -"India",91,"Bhatkal- Uttar Kanada (Karwar)","08385" -"India",91,"Kumta- Uttar Kanada (Karwar)","08386" -"India",91,"Honnavar- Uttar Kanada (Karwar)","08387" -"India",91,"Ankola- Uttar Kanada (Karwar)","08388" -"India",91,"Siddapur- Uttar Kanada (Karwar)","08389" -"India",91,"Kudligi- Bellary","08391" -"India",91,"Bellary- Bellary","08392" -"India",91,"Kurugodu- Bellary","08393" -"India",91,"Hospet- Bellary","08394" -"India",91,"Sandur- Bellary","08395" -"India",91,"Siruguppa- Bellary","08396" -"India",91,"H.B.Halli- Bellary","08397" -"India",91,"Harapanahalli- Bellary","08398" -"India",91,"Huvinahadagali- Bellary","08399" -"India",91,"Kanigiri- Ongole","08402" -"India",91,"Yerragondapalem- Ongole","08403" -"India",91,"Marturu- Ongole","08404" -"India",91,"Giddalur- Ongole","08405" -"India",91,"Cumbum- Ongole","08406" -"India",91,"Darsi- Ongole","08407" -"India",91,"Donakonda- Ongole","08408" -"India",91,"Tanduru- Hyderabad","08411" -"India",91,"Pargi- Hyderabad","08412" -"India",91,"Hyderabadwest (Shamshabad)- Hyderabad","08413" -"India",91,"Ibrahimpatnam- Hyderabad","08414" -"India",91,"Hyderabadeast (Ghatkeswar)- Hyderabad","08415" -"India",91,"Vikrabad- Hyderabad","08416" -"India",91,"Chevella- Hyderabad","08417" -"India",91,"Medchal- Hyderabad","08418" -"India",91,"Yellapur- Uttar Kanada (Karwar)","08419" -"India",91,"Chadchan- Bijapur","08422" -"India",91,"Devarahippargi- Bijapur","08424" -"India",91,"Biligi- Bijapur","08425" -"India",91,"Telgi- Bijapur","08426" -"India",91,"Nimburga- Gulbarga","08440" -"India",91,"Sedam- Gulbarga","08441" -"India",91,"Jewargi- Gulbarga","08442" -"India",91,"Shorapur- Gulbarga","08443" -"India",91,"Hunsagi- Gulbarga","08444" -"India",91,"Andole (Jogipet)- Sangareddy","08450" -"India",91,"Zahirabad- Sangareddy","08451" -"India",91,"Medak- Sangareddy","08452" -"India",91,"Gajwel- Sangareddy","08454" -"India",91,"Sangareddy- Sangareddy","08455" -"India",91,"Narayankhed- Sangareddy","08456" -"India",91,"Siddipet- Sangareddy","08457" -"India",91,"Narsapur- Sangareddy","08458" -"India",91,"Dichpalli- Nizamabad","08461" -"India",91,"Nizamabad- Nizamabad","08462" -"India",91,"Armoor- Nizamabad","08463" -"India",91,"Madnur- Nizamabad","08464" -"India",91,"Yellareddy- Nizamabad","08465" -"India",91,"Banswada- Nizamabad","08466" -"India",91,"Bodhan- Nizamabad","08467" -"India",91,"Kamareddy- Nizamabad","08468" -"India",91,"Afzalpur- Gulbarga","08470" -"India",91,"Mashal- Gulbarga","08471" -"India",91,"Gulbarga- Gulbarga","08472" -"India",91,"Yadgiri- Gulbarga","08473" -"India",91,"Chittapur- Gulbarga","08474" -"India",91,"Chincholi- Gulbarga","08475" -"India",91,"Wadi- Gulbarga","08476" -"India",91,"Aland- Gulbarga","08477" -"India",91,"Kamalapur- Gulbarga","08478" -"India",91,"Shahapur- Gulbarga","08479" -"India",91,"Basavakalyan- Bidar","08481" -"India",91,"Bidar- Bidar","08482" -"India",91,"Humnabad- Bidar","08483" -"India",91,"Bhalki- Bidar","08484" -"India",91,"Aurad- Bidar","08485" -"India",91,"Shirahatti- Hubli","08487" -"India",91,"Sindagi- Bijapur","08488" -"India",91,"Pamuru- Ongole","08490" -"India",91,"Kanaganapalle- Anantpur (Guntakal)","08491" -"India",91,"Kambadur- Anantpur (Guntakal)","08492" -"India",91,"Madakasira- Anantpur (Guntakal)","08493" -"India",91,"Kadiri- Anantpur (Guntakal)","08494" -"India",91,"Rayadurg- Anantpur (Guntakal)","08495" -"India",91,"Uravakonda- Anantpur (Guntakal)","08496" -"India",91,"Kalyandurg- Anantpur (Guntakal)","08497" -"India",91,"Nallacheruvu (Tanakallu)- Anantpur (Guntakal)","08498" -"India",91,"Podili- Ongole","08499" -"India",91,"Kollapur- Mahabubnagar","08501" -"India",91,"Alampur- Mahabubnagar","08502" -"India",91,"Makthal- Mahabubnagar","08503" -"India",91,"Atmakur- Mahabubnagar","08504" -"India",91,"Kodangal- Mahabubnagar","08505" -"India",91,"Narayanpet- Mahabubnagar","08506" -"India",91,"Koilkuntla- Kurnool","08510" -"India",91,"Adoni- Kurnool","08512" -"India",91,"Nandikotkur- Kurnool","08513" -"India",91,"Nandyal- Kurnool","08514" -"India",91,"Banaganapalle- Kurnool","08515" -"India",91,"Dronachalam- Kurnool","08516" -"India",91,"Atmakur- Kurnool","08517" -"India",91,"Kurnool- Kurnool","08518" -"India",91,"Allagadda- Kurnool","08519" -"India",91,"Pattikonda- Kurnool","08520" -"India",91,"Peapalle- Kurnool","08522" -"India",91,"Alur- Kurnool","08523" -"India",91,"Srisailam- Kurnool","08524" -"India",91,"Gudur (Kodumur)- Kurnool","08525" -"India",91,"Deodurga- Raichur","08531" -"India",91,"Raichur- Raichur","08532" -"India",91,"Gangavathi- Raichur","08533" -"India",91,"Yelburga- Raichur","08534" -"India",91,"Sindhanur- Raichur","08535" -"India",91,"Kustagi- Raichur","08536" -"India",91,"Lingsugur- Raichur","08537" -"India",91,"Manvi- Raichur","08538" -"India",91,"Koppal- Raichur","08539" -"India",91,"Nagarkurnool- Mahabubnagar","08540" -"India",91,"Achampet- Mahabubnagar","08541" -"India",91,"Mahabubnagar- Mahabubnagar","08542" -"India",91,"Wanaparthy- Mahabubnagar","08543" -"India",91,"Amangallu- Mahabubnagar","08545" -"India",91,"Gadwal- Mahabubnagar","08546" -"India",91,"Shadnagar- Mahabubnagar","08548" -"India",91,"Kalwakurthy- Mahabubnagar","08549" -"India",91,"Yellanuru- Anantpur (Guntakal)","08550" -"India",91,"Garladinne- Anantpur (Guntakal)","08551" -"India",91,"Gooty (Guntakal)- Anantpur (Guntakal)","08552" -"India",91,"Anantapur- Anantpur (Guntakal)","08554" -"India",91,"Hindupur- Anantpur (Guntakal)","08556" -"India",91,"Penukonda- Anantpur (Guntakal)","08557" -"India",91,"Tadipatri- Anantpur (Guntakal)","08558" -"India",91,"Dharmavaram- Anantpur (Guntakal)","08559" -"India",91,"Jammalamadugu- Cuddapah","08560" -"India",91,"Rayachoti- Cuddapah","08561" -"India",91,"Cuddapah- Cuddapah","08562" -"India",91,"Kamalapuram (Yerraguntala)- Cuddapah","08563" -"India",91,"Proddatur- Cuddapah","08564" -"India",91,"Rajampeta- Cuddapah","08565" -"India",91,"Koduru- Cuddapah","08566" -"India",91,"Lakkireddipalli- Cuddapah","08567" -"India",91,"Pulivendla- Cuddapah","08568" -"India",91,"Badvel- Cuddapah","08569" -"India",91,"Kuppam- Chittoor","08570" -"India",91,"Madanapalli- Chittoor","08571" -"India",91,"Chittoor- Chittoor","08572" -"India",91,"Bangarupalem- Chittoor","08573" -"India",91,"Satyavedu- Chittoor","08576" -"India",91,"Putturu- Chittoor","08577" -"India",91,"Srikalahasthi- Chittoor","08578" -"India",91,"Palmaneru- Chittoor","08579" -"India",91,"Punganur- Chittoor","08581" -"India",91,"B.Kothakota- Chittoor","08582" -"India",91,"Sodam- Chittoor","08583" -"India",91,"Piler- Chittoor","08584" -"India",91,"Pakala- Chittoor","08585" -"India",91,"Vayalpad- Chittoor","08586" -"India",91,"Venkatgirikota- Chittoor","08587" -"India",91,"Vaimpalli- Cuddapah","08588" -"India",91,"Siddavattam- Cuddapah","08589" -"India",91,"Ongole- Ongole","08592" -"India",91,"Medarmetla- Ongole","08593" -"India",91,"Chirala- Ongole","08594" -"India",91,"Markapur- Ongole","08596" -"India",91,"Kandukuru- Ongole","08598" -"India",91,"Ulvapadu- Ongole","08599" -"India",91,"Nellore- Nellore","0861" -"India",91,"Udaygiri- Nellore","08620" -"India",91,"Rapur (Podalakur)- Nellore","08621" -"India",91,"Kovvur- Nellore","08622" -"India",91,"Sullurpet- Nellore","08623" -"India",91,"Gudur- Nellore","08624" -"India",91,"Venkatgiri- Nellore","08625" -"India",91,"Kavali- Nellore","08626" -"India",91,"Atmakur- Nellore","08627" -"India",91,"Chejerla- Nellore","08628" -"India",91,"Vinjamuru- Nellore","08629" -"India",91,"Guntur- Guntur","0863" -"India",91,"Krosuru- Guntur","08640" -"India",91,"Sattenapalli- Guntur","08641" -"India",91,"Palnad (Macherala)- Guntur","08642" -"India",91,"Bapatla- Guntur","08643" -"India",91,"Tenali- Guntur","08644" -"India",91,"Mangalagiri- Guntur","08645" -"India",91,"Vinukonda- Guntur","08646" -"India",91,"Narsaraopet- Guntur","08647" -"India",91,"Repalle- Guntur","08648" -"India",91,"Piduguralla- Guntur","08649" -"India",91,"Jaggayyapet- Vijayawada","08654" -"India",91,"Nuzvidu- Vijayawada","08656" -"India",91,"Mylavaram- Vijayawada","08659" -"India",91,"Vijayawada- Vijayawada","0866" -"India",91,"Divi (Challapalli)- Vijayawada","08671" -"India",91,"Bandar (Machilipatnam)- Vijayawada","08672" -"India",91,"Tirivuru- Vijayawada","08673" -"India",91,"Gudivada- Vijayawada","08674" -"India",91,"Vuyyuru- Vijayawada","08676" -"India",91,"Kaikaluru- Vijayawada","08677" -"India",91,"Nandigama- Vijayawada","08678" -"India",91,"Nidamanur (Hillcolony)- Nalgonda","08680" -"India",91,"Chandoor- Nalgonda","08681" -"India",91,"Nalgonda- Nalgonda","08682" -"India",91,"Hazurnagar- Nalgonda","08683" -"India",91,"Suryapet- Nalgonda","08684" -"India",91,"Bhongir- Nalgonda","08685" -"India",91,"Miryalguda- Nalgonda","08689" -"India",91,"Devarakonda- Nalgonda","08691" -"India",91,"Nampalle- Nalgonda","08692" -"India",91,"Thungaturthy- Nalgonda","08693" -"India",91,"Ramannapet- Nalgonda","08694" -"India",91,"Warangal- Warangal","0870" -"India",91,"Cherial- Warangal","08710" -"India",91,"Wardhannapet (Ghanapur)- Warangal","08711" -"India",91,"Parkal- Warangal","08713" -"India",91,"Mulug- Warangal","08715" -"India",91,"Jangaon- Warangal","08716" -"India",91,"Eturnagaram- Warangal","08717" -"India",91,"Narasampet- Warangal","08718" -"India",91,"Mahabubbad- Warangal","08719" -"India",91,"Mahadevapur- Karimnagar","08720" -"India",91,"Husnabad- Karimnagar","08721" -"India",91,"Sircilla- Karimnagar","08723" -"India",91,"Jagtial- Karimnagar","08724" -"India",91,"Metpalli- Karimnagar","08725" -"India",91,"Huzurabad- Karimnagar","08727" -"India",91,"Peddapalli- Karimnagar","08728" -"India",91,"Manthani- Karimnagar","08729" -"India",91,"Khanapur (Ap)- Adilabad","08730" -"India",91,"Utnor- Adilabad","08731" -"India",91,"Adilabad- Adilabad","08732" -"India",91,"Asifabad- Adilabad","08733" -"India",91,"Nirmal- Adilabad","08734" -"India",91,"Bellampalli- Adilabad","08735" -"India",91,"Mancherial- Adilabad","08736" -"India",91,"Chinnor- Adilabad","08737" -"India",91,"Sirpurkagaznagar- Adilabad","08738" -"India",91,"Jannaram (Luxittipet)- Adilabad","08739" -"India",91,"Aswaraopet- Khammam","08740" -"India",91,"Sudhimalla (Tekulapalli)- Khammam","08741" -"India",91,"Khammam- Khammam","08742" -"India",91,"Bhadrachalam- Khammam","08743" -"India",91,"Kothagudem- Khammam","08744" -"India",91,"Yellandu- Khammam","08745" -"India",91,"Bhooragamphad (Manuguru)- Khammam","08746" -"India",91,"Nuguru (Cherla)- Khammam","08747" -"India",91,"V.R.Puram- Khammam","08748" -"India",91,"Madhira- Khammam","08749" -"India",91,"Boath (Echoda)- Adilabad","08751" -"India",91,"Bhainsa- Adilabad","08752" -"India",91,"Outsarangapalle- Adilabad","08753" -"India",91,"Sathupalli- Khammam","08761" -"India",91,"Tirupathi- Chittoor","0877" -"India",91,"Karimnagar- Karimnagar","0878" -"India",91,"Polavaram- Eluru","08811" -"India",91,"Eluru- Eluru","08812" -"India",91,"Kovvur (Nidadavolu)- Eluru","08813" -"India",91,"Narsapur (Palakole)- Eluru","08814" -"India",91,"Bhimavaram- Eluru","08816" -"India",91,"Tadepalligudem- Eluru","08818" -"India",91,"Tanuku- Eluru","08819" -"India",91,"Jangareddygudem- Eluru","08821" -"India",91,"Chintalapudi- Eluru","08823" -"India",91,"Bhimadole- Eluru","08829" -"India",91,"Rajahmundri- Rajahmundri","0883" -"India",91,"Kakinada- Rajahmundri","0884" -"India",91,"Peddapuram- Rajahmundri","08852" -"India",91,"Tuni- Rajahmundri","08854" -"India",91,"Mandapeta (Ravulapalem)- Rajahmundri","08855" -"India",91,"Amalapuram- Rajahmundri","08856" -"India",91,"Ramachandrapuram- Rajahmundri","08857" -"India",91,"Razole- Rajahmundri","08862" -"India",91,"Chavitidibbalu- Rajahmundri","08863" -"India",91,"Rampachodavaram- Rajahmundri","08864" -"India",91,"Yelavaram- Rajahmundri","08865" -"India",91,"Yeleswaram- Rajahmundri","08868" -"India",91,"Pithapuram- Rajahmundri","08869" -"India",91,"Visakhapatnam- Visakhapatnam","0891" -"India",91,"Vizayanagaram- Vizayanagaram","08922" -"India",91,"Anakapalle- Visakhapatnam","08924" -"India",91,"Yelamanchili- Visakhapatnam","08931" -"India",91,"Narsipatnam- Visakhapatnam","08932" -"India",91,"Bheemunipatnam- Visakhapatnam","08933" -"India",91,"Chodavaram- Visakhapatnam","08934" -"India",91,"Paderu- Visakhapatnam","08935" -"India",91,"Araku- Visakhapatnam","08936" -"India",91,"Chintapalle- Visakhapatnam","08937" -"India",91,"Sileru- Visakhapatnam","08938" -"India",91,"Palakonda (Rajam)- Srikakulam","08941" -"India",91,"Srikakulam- Srikakulam","08942" -"India",91,"Bobbili- Vizayanagaram","08944" -"India",91,"Tekkali (Palasa)- Srikakulam","08945" -"India",91,"Pathapatnam (Hiramandalam)- Srikakulam","08946" -"India",91,"Sompeta- Srikakulam","08947" -"India",91,"Chepurupalli (Garividi)- Vizayanagaram","08952" -"India",91,"Parvathipuram- Vizayanagaram","08963" -"India",91,"Saluru- Vizayanagaram","08964" -"India",91,"Gajapathinagaram- Vizayanagaram","08965" -"India",91,"Srungavarapukota (Kothvls)- Vizayanagaram","08966" -"Indonesia",62,"Jakarta","021" -"Indonesia",62,"Bandung","022" -"Indonesia",62,"Cirebon","023" -"Indonesia",62,"Semarang","024" -"Indonesia",62,"Bogor","025" -"Indonesia",62,"Sumedang","026" -"Indonesia",62,"Solo- Yogyakarta","027" -"Indonesia",62,"Purwakarta","028" -"Indonesia",62,"Demak","029" -"Indonesia",62,"Arobaya","031" -"Indonesia",62,"Jombang","032" -"Indonesia",62,"Jember","033" -"Indonesia",62,"Malang","034" -"Indonesia",62,"Madiun","035" -"Indonesia",62,"Denpasar- Bali","036" -"Indonesia",62,"Sumbawa","037" -"Indonesia",62,"Ende","038" -"Indonesia",62,"Kupang","039" -"Indonesia",62,"Sulawesi Islet","04" -"Indonesia",62,"Kalimantan Islet","05" -"Indonesia",62,"North Sumatra","06" -"Indonesia",62,"South Sumatra et Betar Lampung","070" -"Indonesia",62,"South Sumatra et Betar Lampung","071" -"Indonesia",62,"South Sumatra et Betar Lampung","072" -"Indonesia",62,"South Sumatra et Betar Lampung","073" -"Indonesia",62,"South Sumatra et Betar Lampung","074" -"Indonesia",62,"West Sumatra","075" -"Indonesia",62,"Riau","076" -"Indonesia",62,"Batam","077" -"Indonesia",62,"Irian et Maluku Islands","09" -"Iran",98,"Babol","0111" -"Iran",98,"Mazandaran","0112" -"Iran",98,"Mazandaran","0121" -"Iran",98,"Mazandaran","0122" -"Iran",98,"Mazandaran","0123" -"Iran",98,"Mazandaran","0124" -"Iran",98,"Gilan","0131" -"Iran",98,"Gilan","0132" -"Iran",98,"Gilan","0141" -"Iran",98,"Gilan","0142" -"Iran",98,"Mazandaran","0151" -"Iran",98,"Mazandaran","0152" -"Iran",98,"Golestan","0171" -"Iran",98,"Golestan","0172" -"Iran",98,"Golestan","0173" -"Iran",98,"Golestan","0174" -"Iran",98,"Gilan","0181" -"Iran",98,"Gilan","0182" -"Iran",98,"Mazandaran","0191" -"Iran",98,"Mazandaran","0192" -"Iran",98,"Tehran","021" -"Iran",98,"Tehran","0220" -"Iran",98,"Tehran","0221" -"Iran",98,"Tehran","0227" -"Iran",98,"Tehran","0228" -"Iran",98,"Tehran","0229" -"Iran",98,"Semnan","0231" -"Iran",98,"Semnan","0232" -"Iran",98,"Zanjan","0241" -"Iran",98,"Zanjan","0242" -"Iran",98,"Qom","0251" -"Iran",98,"Qom","0252" -"Iran",98,"Markazi","0255" -"Iran",98,"Markazi","0256" -"Iran",98,"Tehran","0261" -"Iran",98,"Tehran","0262" -"Iran",98,"Tehran","0263" -"Iran",98,"Tehran","0265" -"Iran",98,"Semnan","0273" -"Iran",98,"Semnan","0274" -"Iran",98,"Qazvin","0281" -"Iran",98,"Qazvin","0282" -"Iran",98,"Qazvin","0284" -"Iran",98,"Tehran","0291" -"Iran",98,"Tehran","0292" -"Iran",98,"Isfahan","0311" -"Iran",98,"Isfahan","0312" -"Iran",98,"Isfahan","0315" -"Iran",98,"Isfahan","0321" -"Iran",98,"Isfahan","0322" -"Iran",98,"Isfahan","0323" -"Iran",98,"Isfahan","0324" -"Iran",98,"Isfahan","0331" -"Iran",98,"Isfahan","0332" -"Iran",98,"Isfahan","0334" -"Iran",98,"Isfahan","0335" -"Iran",98,"Kerman","0341" -"Iran",98,"Kerman","0342" -"Iran",98,"Kerman","0344" -"Iran",98,"Kerman","0345" -"Iran",98,"Kerman","0346" -"Iran",98,"Kerman","0347" -"Iran",98,"Kerman","0348" -"Iran",98,"Kerman","0349" -"Iran",98,"Yazd","0351" -"Iran",98,"Kohkiluye-Boyerahmad","0352" -"Iran",98,"Yazd","0353" -"Iran",98,"Isfahan","0361" -"Iran",98,"Isfahan","0362" -"Iran",98,"Isfahan","0363" -"Iran",98,"Isfahan","0371" -"Iran",98,"Isfahan","0372" -"Iran",98,"Charmahal-Bakhtiyari","0381" -"Iran",98,"Charmahal-Bakhtiyari","0382" -"Iran",98,"Kerman","0391" -"Iran",98,"Kerman","0392" -"Iran",98,"Azarbayejan-Sharghi","0411" -"Iran",98,"Azarbayejan-Sharghi","0412" -"Iran",98,"Azarbayejan-Sharghi","0421" -"Iran",98,"Azarbayejan-Sharghi","0422" -"Iran",98,"Azarbayejan-Sharghi","0423" -"Iran",98,"Azarbayejan-Sharghi","0424" -"Iran",98,"Azarbayejan-Sharghi","0426" -"Iran",98,"Azarbayejan-Sharghi","0427" -"Iran",98,"Azarbayejan-Sharghi","0431" -"Iran",98,"Azarbayejan-Sharghi","0432" -"Iran",98,"Azarbayejan-Gharbi","0441" -"Iran",98,"Azarbayejan-Gharbi","0442" -"Iran",98,"Azarbayejan-Gharbi","0443" -"Iran",98,"Azarbayejan-Gharbi","0444" -"Iran",98,"Azarbayejan-Gharbi","0445" -"Iran",98,"Azarbayejan-Gharbi","0448" -"Iran",98,"Ardabil","0451" -"Iran",98,"Ardabil","0452" -"Iran",98,"Azarbayejan-Gharbi","0461" -"Iran",98,"Azarbayejan-Gharbi","0462" -"Iran",98,"Azarbayejan-Sharghi","0471" -"Iran",98,"Azarbayejan-Sharghi","0472" -"Iran",98,"Azarbayejan-Gharbi","0481" -"Iran",98,"Azarbayejan-Gharbi","0482" -"Iran",98,"Azarbayejan-Sharghi","0491" -"Iran",98,"Azarbayejan-Sharghi","0492" -"Iran",98,"Khorasan","0511" -"Iran",98,"Khorasan","0512" -"Iran",98,"Khorasan","0528" -"Iran",98,"Khorasan","0529" -"Iran",98,"Khorasan","0531" -"Iran",98,"Khorasan","0532" -"Iran",98,"Khorasan","0534" -"Iran",98,"Khorasan","0535" -"Iran",98,"Sistan-Baluchestan","0541" -"Iran",98,"Sistan-Baluchestan","0542" -"Iran",98,"Sistan-Baluchestan","0543" -"Iran",98,"Sistan-Baluchestan","0544" -"Iran",98,"Sistan-Baluchestan","0545" -"Iran",98,"Sistan-Baluchestan","0546" -"Iran",98,"Sistan-Baluchestan","0547" -"Iran",98,"Sistan-Baluchestan","0548" -"Iran",98,"Khorasan","0551" -"Iran",98,"Khorasan","0552" -"Iran",98,"Khorasan","0561" -"Iran",98,"Khorasan","0562" -"Iran",98,"Sistan-Baluchestan","0564" -"Iran",98,"Khorasan","0571" -"Iran",98,"Khorasan","0572" -"Iran",98,"Khorasan","0581" -"Iran",98,"Khorasan","0582" -"Iran",98,"Khorasan","0584" -"Iran",98,"Khorasan","0585" -"Iran",98,"Khuzestan","0611" -"Iran",98,"Khuzestan","0612" -"Iran",98,"Khuzestan","0622" -"Iran",98,"Khuzestan","0623" -"Iran",98,"Khuzestan","0624" -"Iran",98,"Khuzestan","0626" -"Iran",98,"Khuzestan","0631" -"Iran",98,"Khuzestan","0632" -"Iran",98,"Khuzestan","0641" -"Iran",98,"Khuzestan","0642" -"Iran",98,"Khuzestan","0651" -"Iran",98,"Khuzestan","0652" -"Iran",98,"Lorestan","0661" -"Iran",98,"Lorestan","0662" -"Iran",98,"Lorestan","0663" -"Iran",98,"Lorestan","0664" -"Iran",98,"Lorestan","0665" -"Iran",98,"Lorestan","0666" -"Iran",98,"Khuzestan","0671" -"Iran",98,"Khuzestan","0672" -"Iran",98,"Khuzestan","0681" -"Iran",98,"Khuzestan","0682" -"Iran",98,"Khuzestan","0691" -"Iran",98,"Khuzestan","0692" -"Iran",98,"Fars","0711" -"Iran",98,"Fars","0712" -"Iran",98,"Fars","0721" -"Iran",98,"Fars","0722" -"Iran",98,"Fars","0728" -"Iran",98,"Fars","0729" -"Iran",98,"Fars","0731" -"Iran",98,"Fars","0732" -"Iran",98,"Kohkiluye-Boyerahmad","0741" -"Iran",98,"Kohkiluye-Boyerahmad","0742" -"Iran",98,"Kohkiluye-Boyerahmad","0743" -"Iran",98,"Kohkiluye-Boyerahmad","0744" -"Iran",98,"Fars","0751" -"Iran",98,"Fars","0752" -"Iran",98,"Hormozgan","0761" -"Iran",98,"Hormozgan","0762" -"Iran",98,"Hormozgan","0763" -"Iran",98,"Hormozgan","0764" -"Iran",98,"Hormozgan","0765" -"Iran",98,"Hormozgan","0766" -"Iran",98,"Bushehr","0771" -"Iran",98,"Bushehr","0772" -"Iran",98,"Bushehr","0773" -"Iran",98,"Fars","0781" -"Iran",98,"Fars","0782" -"Iran",98,"Fars","0791" -"Iran",98,"Fars","0792" -"Iran",98,"Hamedan","0811" -"Iran",98,"Hamedan","0812" -"Iran",98,"Kermanshah","0831" -"Iran",98,"Kermanshah","0832" -"Iran",98,"Kermanshah","0834" -"Iran",98,"Kermanshah","0835" -"Iran",98,"Kermanshah","0837" -"Iran",98,"Kermanshah","0838" -"Iran",98,"Ilam","0841" -"Iran",98,"Ilam","0842" -"Iran",98,"Hamedan","0851" -"Iran",98,"Hamedan","0852" -"Iran",98,"Markazi","0861" -"Iran",98,"Markazi","0862" -"Iran",98,"Markazi","0865" -"Iran",98,"Markazi","0866" -"Iran",98,"Kordestan","0871" -"Iran",98,"Kordestan","0872" -"Iran",98,"Kordestan","0874" -"Iran",98,"Kordestan","0875" -"Iraq",964,"Baghdad",1 -"Iraq",964,"Tkrit",21 -"Iraq",964,"Kut",23 -"Iraq",964,"Ramadi",24 -"Iraq",964,"Baquba",25 -"Iraq",964,"Hillah",30 -"Iraq",964,"Karbala",32 -"Iraq",964,"Najaf",33 -"Iraq",964,"Diwaniya",36 -"Iraq",964,"Samawa",37 -"Iraq",964,"Basrah",40 -"Iraq",964,"Nasiriya",42 -"Iraq",964,"Amara",43 -"Iraq",964,"Kirkuk",50 -"Iraq",964,"Sulaimaniya",53 -"Iraq",964,"Mosul",60 -"Iraq",964,"Duhok",62 -"Iraq",964,"Erbil",66 -"Ireland",353,"Cork","021" -"Ireland",353,"Drogheda","041" -"Ireland",353,"Dundalk","042" -"Ireland",353,"Longford","043" -"Ireland",353,"Mullingar","044" -"Ireland",353,"Naas","045" -"Ireland",353,"Navan","046" -"Ireland",353,"Monaghan","047" -"Ireland",353,"Cavan","049" -"Ireland",353,"Waterford","051" -"Ireland",353,"Clonmel","052" -"Ireland",353,"Wexford","053" -"Ireland",353,"Kilkenny","056" -"Ireland",353,"Portlaoise","057" -"Ireland",353,"Carlow","059" -"Ireland",353,"Limerick","061" -"Ireland",353,"Tipperary","062" -"Ireland",353,"Killarney","064" -"Ireland",353,"Ennis","065" -"Ireland",353,"Tralee","066" -"Ireland",353,"Sligo","071" -"Ireland",353,"Letterkenny","074" -"Ireland",353,"Athlone","090" -"Ireland",353,"Galway","091" -"Ireland",353,"Castlebar","094" -"Isle of Man",44,"Isle of Man","01624" -"Israel",972,"Jerusalem","02" -"Israel",972,"Tel Aviv","03" -"Israel",972,"Haifa","04" -"Israel",972,"Hashfela","08" -"Israel",972,"Hasharon","09" -"Italy",39,"Milano",2 -"Italy",39,"Roma",6 -"Italy",39,"Genova",10 -"Italy",39,"Torino",11 -"Italy",39,"Biella",15 -"Italy",39,"Savona",19 -"Italy",39,"Brescia",30 -"Italy",39,"Como",31 -"Italy",39,"Bergamo",35 -"Italy",39,"Monza",39 -"Italy",39,"Trieste",40 -"Italy",39,"Venezia (Mestre)",41 -"Italy",39,"Verona",45 -"Italy",39,"Padova",49 -"Italy",39,"Pisa",50 -"Italy",39,"Bologna",51 -"Italy",39,"Firenze",55 -"Italy",39,"Modena",59 -"Italy",39,"Cagliari",70 -"Italy",39,"Ancona",71 -"Italy",39,"Perugia",75 -"Italy",39,"Sassari",79 -"Italy",39,"Bari",80 -"Italy",39,"Napoli",81 -"Italy",39,"Pescara",85 -"Italy",39,"Salerno",89 -"Italy",39,"Messina",90 -"Italy",39,"Palermo",91 -"Italy",39,"Catania",95 -"Italy",39,"Taranto",99 -"Jamaica",1,"Jamaica","(1+)876" -"Japan",81,"Ebetsu- Hokkaido","011" -"Japan",81,"Chitose- Hokkaido","0123" -"Japan",81,"Yubari- Hokkaido","01235" -"Japan",81,"Yubari District- Hokkaido","01237" -"Japan",81,"Yubari District- Hokkaido","01238" -"Japan",81,"Ashibetsu- Hokkaido","01242" -"Japan",81,"Akabira- Hokkaido","0125" -"Japan",81,"Ishikari District- Hokkaido","0126" -"Japan",81,"Bibai- Hokkaido","01266" -"Japan",81,"Iwamizawa- Hokkaido","01267" -"Japan",81,"Atsuta District- Hokkaido","0133" -"Japan",81,"Ishikari District- Hokkaido","01332" -"Japan",81,"Atsuta District- Hokkaido","01337" -"Japan",81,"Hamamasu District- Hokkaido","013379" -"Japan",81,"Otaru- Hokkaido","0134" -"Japan",81,"Furuu District- Hokkaido","0135" -"Japan",81,"Abuta District- Hokkaido","0136" -"Japan",81,"Kayabe District- Hokkaido","01372" -"Japan",81,"Kayabe District- Hokkaido","01374" -"Japan",81,"Yamakoshi District- Hokkaido","01376" -"Japan",81,"Yamakoshi District- Hokkaido","01377" -"Japan",81,"Setana District- Hokkaido","01378" -"Japan",81,"Hakodate- Hokkaido","0138" -"Japan",81,"Kamiiso District- Hokkaido","01392" -"Japan",81,"Matsumae District- Hokkaido","01394" -"Japan",81,"Hiyama District- Hokkaido","01395" -"Japan",81,"Hiyama District- Hokkaido","01396" -"Japan",81,"Okushiri District- Hokkaido","01397" -"Japan",81,"Kudo District- Hokkaido","01398" -"Japan",81,"Abuta District- Hokkaido","0142" -"Japan",81,"Muroran- Hokkaido","0143" -"Japan",81,"Shiraoi District- Hokkaido","0144" -"Japan",81,"Chitose- Hokkaido","01452" -"Japan",81,"Yufutsu District- Hokkaido","01454" -"Japan",81,"Niikappu District- Hokkaido","01456" -"Japan",81,"Saru District- Hokkaido","01457" -"Japan",81,"Urakawa District- Hokkaido","01462" -"Japan",81,"Mitsuishi District- Hokkaido","01463" -"Japan",81,"Niikappu District- Hokkaido","01464" -"Japan",81,"Horoizumi District- Hokkaido","01466" -"Japan",81,"Abashiri District- Hokkaido","0152" -"Japan",81,"Shari District- Hokkaido","01522" -"Japan",81,"Abashiri District- Hokkaido","01527" -"Japan",81,"Akkeshi District- Hokkaido","0153" -"Japan",81,"Nemuro- Hokkaido","01532" -"Japan",81,"Notsuke District- Hokkaido","01537" -"Japan",81,"Menashi District- Hokkaido","01538" -"Japan",81,"Akan District- Hokkaido","0154" -"Japan",81,"Shiranuka District- Hokkaido","01547" -"Japan",81,"Kamikawa District- Hokkaido","01548" -"Japan",81,"Kasai District- Hokkaido","0155" -"Japan",81,"Nakagawa District- Hokkaido","01557" -"Japan",81,"Hiroo District- Hokkaido","01558" -"Japan",81,"Ashoro District- Hokkaido","01562" -"Japan",81,"Kato District- Hokkaido","01564" -"Japan",81,"Kamikawa District- Hokkaido","01566" -"Japan",81,"Kitami- Hokkaido","0157" -"Japan",81,"Monbetsu- Hokkaido","01582" -"Japan",81,"Monbetsu District- Hokkaido","015829" -"Japan",81,"Monbetsu District- Hokkaido","01584" -"Japan",81,"Monbetsu District- Hokkaido","01586" -"Japan",81,"Monbetsu District- Hokkaido","01587" -"Japan",81,"Monbetsu District- Hokkaido","01588" -"Japan",81,"Teshio District- Hokkaido","0162" -"Japan",81,"Teshio District- Hokkaido","01632" -"Japan",81,"Esashi District- Hokkaido","01634" -"Japan",81,"Soya District- Hokkaido","01635" -"Japan",81,"Esashi District- Hokkaido","01636" -"Japan",81,"Rebun District- Hokkaido","01638" -"Japan",81,"Fukagawa- Hokkaido","0164" -"Japan",81,"Rumoi District- Hokkaido","01645" -"Japan",81,"Tomamae District- Hokkaido","01646" -"Japan",81,"Tomamae District- Hokkaido","01648" -"Japan",81,"Shibetsu- Hokkaido","01652" -"Japan",81,"Kamikawa District- Hokkaido","016528" -"Japan",81,"Uryu District- Hokkaido","01653" -"Japan",81,"Kamikawa District- Hokkaido","016532" -"Japan",81,"Kamikawa District- Hokkaido","016534" -"Japan",81,"Nayoro- Hokkaido","01654" -"Japan",81,"Kamikawa District- Hokkaido","01655" -"Japan",81,"Nakagawa District- Hokkaido","01656" -"Japan",81,"Kamikawa District- Hokkaido","01658" -"Japan",81,"Asahikawa- Hokkaido","0166" -"Japan",81,"Ashibetsu- Hokkaido","0167" -"Japan",81,"Aomori","0172" -"Japan",81,"Goshogawara- Aomori","0173" -"Japan",81,"Higashitsugaru District- Aomori","0174" -"Japan",81,"Mutsu- Aomori","0175" -"Japan",81,"Kamikita District- Aomori","0176" -"Japan",81,"Aomori","0177" -"Japan",81,"Hachinohe- Aomori","0178" -"Japan",81,"Sannohe District- Aomori","0179" -"Japan",81,"Hiraka District- Akita","0182" -"Japan",81,"Ogachi District- Akita","0183" -"Japan",81,"Honjo- Akita","0184" -"Japan",81,"Minamiakita District- Akita","0185" -"Japan",81,"Kazuno- Akita","0186" -"Japan",81,"Omagari- Akita","0187" -"Japan",81,"Akita","0188" -"Japan",81,"Iwate","019" -"Japan",81,"Ichinoseki- Iwate","0191" -"Japan",81,"Kesen District- Iwate","0192" -"Japan",81,"Kamaishi- Iwate","0193" -"Japan",81,"Kamihei District- Iwate","0194" -"Japan",81,"Iwate","0195" -"Japan",81,"Esashi- Iwate","0197" -"Japan",81,"Hanamaki- Iwate","0198" -"Japan",81,"Miyagi","022" -"Japan",81,"Tome District- Miyagi","0220" -"Japan",81,"Iwanuma- Miyagi","0223" -"Japan",81,"Igu District- Miyagi","0224" -"Japan",81,"Ishinomaki- Miyagi","0225" -"Japan",81,"Kesennuma- Miyagi","0226" -"Japan",81,"Kurihara District- Miyagi","0228" -"Japan",81,"Furukawa- Miyagi","0229" -"Japan",81,"Yamagata","023" -"Japan",81,"Shinjo- Yamagata","0233" -"Japan",81,"Akumi District- Yamagata","0234" -"Japan",81,"Higashitagawa District- Yamagata","0235" -"Japan",81,"Higashimurayama District- Yamagata","0236" -"Japan",81,"Higashimurayama District- Yamagata","0237" -"Japan",81,"Higashiokitama District- Yamagata","0238" -"Japan",81,"Fukushima","024" -"Japan",81,"Futaba District- Fukushima","0240" -"Japan",81,"Kawanuma District- Fukushima","0241" -"Japan",81,"Fukushima","0242" -"Japan",81,"Fukushima","0243" -"Japan",81,"Haramachi- Fukushima","0244" -"Japan",81,"Iwaki- Fukushima","0246" -"Japan",81,"Higashishirakawa District- Fukushima","0247" -"Japan",81,"Iwase District- Fukushima","0248" -"Japan",81,"Koriyama- Fukushima","0249" -"Japan",81,"Niigata","025" -"Japan",81,"Gosen- Niigata","0250" -"Japan",81,"Iwafune District- Niigata","0254" -"Japan",81,"Higashikanbara District- Niigata","02549" -"Japan",81,"Arai- Niigata","0255" -"Japan",81,"Higashikubiki District- Niigata","02559" -"Japan",81,"Kamo- Niigata","0256" -"Japan",81,"Kariwa District- Niigata","0257" -"Japan",81,"Kitauonuma District- Niigata","02579" -"Japan",81,"Kariwa District- Niigata","0258" -"Japan",81,"Ryotsu- Niigata","0259" -"Japan",81,"Nagano","026" -"Japan",81,"Shimoina District- Nagano","0260" -"Japan",81,"Kitaazumi District- Nagano","0261" -"Japan",81,"Higashichikuma District- Nagano","0263" -"Japan",81,"Kiso District- Nagano","0264" -"Japan",81,"Iida- Nagano","0265" -"Japan",81,"Chino- Nagano","0266" -"Japan",81,"Gunma","0267" -"Japan",81,"Nagano","0268" -"Japan",81,"Iiyama- Nagano","0269" -"Japan",81,"Kitagunma District- Gunma","027" -"Japan",81,"Isesaki- Gunma","0270" -"Japan",81,"Usui District- Gunma","0273" -"Japan",81,"Chichibu District- Saitama","0274" -"Japan",81,"Nitta District- Gunma","0276" -"Japan",81,"Kiryu- Gunma","0277" -"Japan",81,"Numata- Gunma","0278" -"Japan",81,"Agatsuma District- Gunma","0279" -"Japan",81,"Haga District- Tochigi","028" -"Japan",81,"Kitasaitama District- Saitama","0280" -"Japan",81,"Tochigi","0282" -"Japan",81,"Aso District- Tochigi","0283" -"Japan",81,"Ashikaga- Tochigi","0284" -"Japan",81,"Haga District- Tochigi","0285" -"Japan",81,"Agatsuma District- Gunma","0287" -"Japan",81,"Imaichi- Tochigi","0288" -"Japan",81,"Kamitsuga District- Tochigi","0289" -"Japan",81,"Higashiibaraki District- Ibaraki","029" -"Japan",81,"Kashima District- Ibaraki","0291" -"Japan",81,"Naka District- Ibaraki","0292" -"Japan",81,"Kitaibaraki- Ibaraki","0293" -"Japan",81,"Hitachi- Ibaraki","0294" -"Japan",81,"Higashiibaraki District- Ibaraki","02955" -"Japan",81,"Kuji District- Ibaraki","02957" -"Japan",81,"Kasama- Ibaraki","0296" -"Japan",81,"Inashiki District- Ibaraki","0297" -"Japan",81,"Inashiki District- Ibaraki","0298" -"Japan",81,"Inashiki District- Ibaraki","0299" -"Japan",81,"Tokyo","03" -"Japan",81,"Akiruno- Tokyo","042" -"Japan",81,"Chofu- Tokyo","0422" -"Japan",81,"Fuchu- Tokyo","0423" -"Japan",81,"Chofu- Tokyo","0424" -"Japan",81,"Hachioji- Tokyo","0426" -"Japan",81,"Kawasaki- Kanagawa","0427" -"Japan",81,"Kitatsuru District- Yamanashi","0428" -"Japan",81,"Hanno- Saitama","0429" -"Japan",81,"Chiba","043" -"Japan",81,"Chiba","0434" -"Japan",81,"Ichihara- Chiba","0436" -"Japan",81,"Kisarazu- Chiba","0438" -"Japan",81,"Futtsu- Chiba","0439" -"Japan",81,"Kawasaki- Kanagawa","044" -"Japan",81,"Yokohama- Kanagawa","045" -"Japan",81,"Ashigarashimo District- Kanagawa","0460" -"Japan",81,"Aiko District- Kanagawa","0462" -"Japan",81,"Hadano- Kanagawa","0463" -"Japan",81,"Ashigarashimo District- Kanagawa","0465" -"Japan",81,"Fujisawa- Kanagawa","0466" -"Japan",81,"Ayase- Kanagawa","0467" -"Japan",81,"Miura District- Kanagawa","0468" -"Japan",81,"Funabashi- Chiba","047" -"Japan",81,"Awa District- Chiba","0470" -"Japan",81,"Abiko- Chiba","0471" -"Japan",81,"Chiba","0474" -"Japan",81,"Chosei District- Chiba","0475" -"Japan",81,"Inba District- Chiba","0476" -"Japan",81,"Kashima District- Ibaraki","0478" -"Japan",81,"Asahi- Chiba","0479" -"Japan",81,"Ageo- Saitama","048" -"Japan",81,"Kazo- Saitama","0480" -"Japan",81,"Fukaya- Saitama","0485" -"Japan",81,"Kitakatsushika District- Saitama","0489" -"Japan",81,"Fujimi- Saitama","0492" -"Japan",81,"Chichibu District- Saitama","0493" -"Japan",81,"Chichibu District- Saitama","0494" -"Japan",81,"Honjo- Saitama","0495" -"Japan",81,"Oshima- Tokyocho","04992" -"Japan",81,"Miyake- Tokyocoho","04994" -"Japan",81,"Hachioji- Tokyo","04996" -"Japan",81,"Ogasawara- Tokyo","04998" -"Japan",81,"Aichi","052" -"Japan",81,"Hamamatsu- Shizuoka","053" -"Japan",81,"Atsumi District- Aichi","05312" -"Japan",81,"Atsumi District- Aichi","05313" -"Japan",81,"Atsumi District- Aichi","053145" -"Japan",81,"Toyohashi- Aichi","0532" -"Japan",81,"Gamagori- Aichi","0533" -"Japan",81,"Shinshiro- Aichi","05362" -"Japan",81,"Minamishitara District- Aichi","05363" -"Japan",81,"Kitashitara District- Aichi","05366" -"Japan",81,"Kitashitara District- Aichi","05367" -"Japan",81,"Kitashitara District- Aichi","05368" -"Japan",81,"Kitashitara District- Aichi","053683" -"Japan",81,"Kakegawa- Shizuoka","0537" -"Japan",81,"Fukuroi- Shizuoka","0538" -"Japan",81,"Iwata District- Shizuoka","0539" -"Japan",81,"Shizuoka","054" -"Japan",81,"Ihara District- Shizuoka","0543" -"Japan",81,"Fujinomiya- Shizuoka","0544" -"Japan",81,"Fuji- Shizuoka","0545" -"Japan",81,"Haibara District- Shizuoka","0547" -"Japan",81,"Haibara District- Shizuoka","0548" -"Japan",81,"Gotenba- Shizuoka","0550" -"Japan",81,"Kitakoma District- Yamanashi","0551" -"Japan",81,"Higashiyatsushiro District- Yamanashi","0552" -"Japan",81,"Yamanashi","0553" -"Japan",81,"Minamitsuru District- Yamanashi","0554" -"Japan",81,"Fujiyoshida- Yamanashi","0555" -"Japan",81,"Minamikoma District- Yamanashi","0556" -"Japan",81,"Atami- Shizuoka","0557" -"Japan",81,"Kamo District- Shizuoka","0558" -"Japan",81,"Mishima- Shizuoka","0559" -"Japan",81,"Aichi","0561" -"Japan",81,"Aichi","05613" -"Japan",81,"Aichi","05617" -"Japan",81,"Chita District- Aichi","0562" -"Japan",81,"Nishio- Aichi hazu District- Aichi","0563" -"Japan",81,"Higashikamo District- Aichi","0564" -"Japan",81,"Higashikamo District- Aichi","0565" -"Japan",81,"Anjo- Aichi","0566" -"Japan",81,"Ama District- Aichi","0567" -"Japan",81,"Ama District- Aichi","05675" -"Japan",81,"Ama District- Aichi","05679" -"Japan",81,"Inuyama- Aichi","0568" -"Japan",81,"Chita District- Aichi","0569" -"Japan",81,"Ena District- Gifu","0572" -"Japan",81,"Ena District- Gifu","0573" -"Japan",81,"Kamo District- Gifu","0574" -"Japan",81,"Kamo District- Gifu","05747" -"Japan",81,"Gujo District- Gifu","0575" -"Japan",81,"Mashita District- Gifu","0576" -"Japan",81,"Ono District- Gifu","05769" -"Japan",81,"Ono District- Gifu","0577" -"Japan",81,"Yoshiki District- Gifu","0578" -"Japan",81,"Gifu","058" -"Japan",81,"Motosu District- Gifu","0581" -"Japan",81,"Motosu District- Gifu","058138" -"Japan",81,"Ibi District- Gifu","058139" -"Japan",81,"Mugi District- Gifu","058157" -"Japan",81,"Mugi District- Gifu","058158" -"Japan",81,"Kakamigahara- Gifu","0583" -"Japan",81,"Anpachi District- Gifu","0584" -"Japan",81,"Anpachi District- Gifu","0585" -"Japan",81,"Haguri District- Aichi","0586" -"Japan",81,"Hashima District- Gifu","058689" -"Japan",81,"Inazawa- Aichi","0587" -"Japan",81,"Age District- Mie","059" -"Japan",81,"Mie","0593" -"Japan",81,"Inabe District- Mie","0594" -"Japan",81,"Ayama District- Mie","0595" -"Japan",81,"Kameyama- Mie","05958" -"Japan",81,"Suzuka District- Mie","05959" -"Japan",81,"Ise- Mie","0596" -"Japan",81,"Owase- Mie","05972" -"Japan",81,"Kitamuro District- Mie","05973" -"Japan",81,"Kitamuro District- Mie","05974" -"Japan",81,"Kumano- Mie","05978" -"Japan",81,"Higashimuro District- Wakayama","05979" -"Japan",81,"Ichishi District- Mie","0598" -"Japan",81,"Taki District- Mie","05983" -"Japan",81,"Iinan District- Mie","059832" -"Japan",81,"Ichishi District- Mie","05984" -"Japan",81,"Taki District- Mie","059849" -"Japan",81,"Ichishi District- Mie","059856" -"Japan",81,"Taki District- Mie","05987" -"Japan",81,"Watarai District- Mie","059872" -"Japan",81,"Taki District- Mie","05988" -"Japan",81,"Ise- Mie","0599" -"Japan",81,"Shima District- Mie","05994" -"Japan",81,"Shima District- Mie","05995" -"Japan",81,"Watarai District- Mie","05996" -"Japan",81,"Shima District- Mie","05997" -"Japan",81,"Shima District- Mie","05998" -"Japan",81,"Osaka","06" -"Japan",81,"Daito- Osaka","072" -"Japan",81,"Gose- Nara","0721" -"Japan",81,"Sakai- Osaka","0722" -"Japan",81,"Osaka","0723" -"Japan",81,"Hannan- Osaka","0724" -"Japan",81,"Izumi- Osaka","0725" -"Japan",81,"Kyoto","0726" -"Japan",81,"Ikeda- Osaka","0727" -"Japan",81,"Fujiidera- Osaka","0729" -"Japan",81,"Wakayama","0734" -"Japan",81,"Minamimuro District- Mie","0735" -"Japan",81,"Higashimuro District- Wakayama","07354" -"Japan",81,"Higashimuro District- Wakayama","073549" -"Japan",81,"Higashimuro District- Wakayama","07355" -"Japan",81,"Nishimuro District- Wakayama","07356" -"Japan",81,"Higashimuro District- Wakayama","07357" -"Japan",81,"Hashimoto- Wakayama","0736" -"Japan",81,"Arida District- Wakayama","0737" -"Japan",81,"Gobo- Wakayama","0738" -"Japan",81,"Hidaka District- Wakayama","0739" -"Japan",81,"Takashima District- Shiga","0740" -"Japan",81,"Nara","0742" -"Japan",81,"Ikoma District- Nara","0743" -"Japan",81,"Shijonawate- Osaka","07437" -"Japan",81,"Soekami District- Nara","07439" -"Japan",81,"Soraku District- Kyoto","074395" -"Japan",81,"Kashihara- Nara","0744" -"Japan",81,"Shiki District- Nara","07443" -"Japan",81,"Gose- Nara","0745" -"Japan",81,"Yoshino District- Nara","07463" -"Japan",81,"Yoshino District- Nara","0747" -"Japan",81,"Gojo- Nara","07472" -"Japan",81,"Yoshino District- Nara","07473" -"Japan",81,"Echi District- Shiga","0748" -"Japan",81,"Echi District- Shiga","0749" -"Japan",81,"Kyoto","075" -"Japan",81,"Ishikawa","076" -"Japan",81,"Komatsu- Ishikawa","0761" -"Japan",81,"Enuma District- Ishikawa","07617" -"Japan",81,"Ishikawa","07619" -"Japan",81,"Higashitonami District- Toyama","0763" -"Japan",81,"Toyama","0764" -"Japan",81,"Kurobe- Toyama","0765" -"Japan",81,"Toyama","0766" -"Japan",81,"Hakui- Ishikawa","0767" -"Japan",81,"Fugeshi District- Ishikawa","0768" -"Japan",81,"Shiga","077" -"Japan",81,"Mikata District- Fukui","0770" -"Japan",81,"Funai District- Kyoto","0771" -"Japan",81,"Kumano District- Kyoto","0772" -"Japan",81,"Amata District- Kyoto","0773" -"Japan",81,"Joyo- Kyoto","0774" -"Japan",81,"Kyoto","0775" -"Japan",81,"Fukui","0776" -"Japan",81,"Imadate District- Fukui","0778" -"Japan",81,"Katsuyama- Fukui","0779" -"Japan",81,"Asuwa District- Fukui","07797" -"Japan",81,"Akashi- Hyogo","078" -"Japan",81,"Kanzaki District- Hyogo","0790" -"Japan",81,"Ibo District- Hyogo","0791" -"Japan",81,"Aioi- Hyogo","07912" -"Japan",81,"Ako- Hyogo","07914" -"Japan",81,"Ako District- Hyogo","07915" -"Japan",81,"Himeji- Hyogo","0792" -"Japan",81,"Ibo District- Hyogo","07932" -"Japan",81,"Shikama District- Hyogo","07933" -"Japan",81,"Kako District- Hyogo","0794" -"Japan",81,"Hikami District- Hyogo","0795" -"Japan",81,"Asago District- Hyogo","0796" -"Japan",81,"Ashiya- Hyogo","0797" -"Japan",81,"Ashiya- Hyogo","0798" -"Japan",81,"Mihara District- Hyogo","0799" -"Japan",81,"Hiroshima","082" -"Japan",81,"Kuga District- Yamaguchi","0820" -"Japan",81,"Oshima District- Yamaguchi","08207" -"Japan",81,"Aki District- Hiroshima","0823" -"Japan",81,"Futami District- Hiroshima","0824" -"Japan",81,"Shobara- Hiroshima","08247" -"Japan",81,"Hiba District- Hiroshima","08248" -"Japan",81,"Hiba District- Hiroshima","082485" -"Japan",81,"Hiba District- Hiroshima","082486" -"Japan",81,"Konu District- Hiroshima","082488" -"Japan",81,"Miyoshi- Hiroshima","0826" -"Japan",81,"Saeki District- Hiroshima","08262" -"Japan",81,"Iwakuni- Yamaguchi","0827" -"Japan",81,"Iwakuni- Yamaguchi","08275" -"Japan",81,"Saeki District- Hiroshima","0829" -"Japan",81,"Shimonoseki- Yamaguchi","0832" -"Japan",81,"Hikari- Yamaguchi","0833" -"Japan",81,"Shinnanyo- Yamaguchi","0834" -"Japan",81,"Hofu- Yamaguchi","0835" -"Japan",81,"Asa District- Yamaguchi","0836" -"Japan",81,"Nagato- Yamaguchi","0837" -"Japan",81,"Mine- Yamaguchi","08375" -"Japan",81,"Mine District- Yamaguchi","08376" -"Japan",81,"Abu District- Yamaguchi","0838" -"Japan",81,"Abu District- Yamaguchi","08387" -"Japan",81,"Abu District- Yamaguchi","08388" -"Japan",81,"Yamaguchi","0839" -"Japan",81,"Abu District- Yamaguchi","08395" -"Japan",81,"Mine District- Yamaguchi","08396" -"Japan",81,"Innoshima- Hiroshima","08452" -"Japan",81,"Takehara- Hiroshima","0846" -"Japan",81,"Toyota District- Hiroshima","08466" -"Japan",81,"Ashina District- Hiroshima","0847" -"Japan",81,"Sera District- Hiroshima","08472" -"Japan",81,"Kamo District- Hiroshima","08473" -"Japan",81,"Mitsugi District- Hiroshima","084732" -"Japan",81,"Konu District- Hiroshima","084762" -"Japan",81,"Konu District- Hiroshima","084767" -"Japan",81,"Hiba District- Hiroshima","08477" -"Japan",81,"Jinseki District- Hiroshima","08478" -"Japan",81,"Mihara- Hiroshima","0848" -"Japan",81,"Mitsugi District- Hiroshima","08487" -"Japan",81,"Fukayasu District- Hiroshima","0849" -"Japan",81,"Oki District- Shimane","08514" -"Japan",81,"Matsue- Shimane","0852" -"Japan",81,"Hikawa District- Shimane","0853" -"Japan",81,"Iishi District- Shimane","0854" -"Japan",81,"Nima District- Shimane","08548" -"Japan",81,"Gotsu- Shimane","0855" -"Japan",81,"Masuda- Shimane","0856" -"Japan",81,"Kanoashi District- Shimane","08567" -"Japan",81,"Tottori","0857" -"Japan",81,"Kurayoshi- Tottori","0858" -"Japan",81,"Hino District- Tottori","0859" -"Japan",81,"Okayama","086" -"Japan",81,"Tamano- Okayama","0863" -"Japan",81,"Okayama","08636" -"Japan",81,"Asakuchi District- Okayama","0865" -"Japan",81,"Asakuchi District- Okayama","08654" -"Japan",81,"Asakuchi District- Okayama","086542" -"Japan",81,"Asakuchi District- Okayama","086554" -"Japan",81,"Ibara- Okayama","0866" -"Japan",81,"Atetsu District- Okayama","0867" -"Japan",81,"Katsuta District- Okayama","0868" -"Japan",81,"Aida District- Okayama","08687" -"Japan",81,"Bizen- Okayama","0869" -"Japan",81,"Oku District- Okayama","08692" -"Japan",81,"Oku District- Okayama","086926" -"Japan",81,"Akaiwa District- Okayama","08695" -"Japan",81,"Akaiwa District- Okayama","08699" -"Japan",81,"Kagawa","087" -"Japan",81,"Kanonji- Kagawa","0875" -"Japan",81,"Ayauta District- Kagawa","0877" -"Japan",81,"Okawa District- Kagawa","0879" -"Japan",81,"Hata District- Kochi","0880" -"Japan",81,"Hata District- Kochi","08802" -"Japan",81,"Tosashimizu- Kochi","08808" -"Japan",81,"Awa District- Tokushima","0883" -"Japan",81,"Anan- Tokushima","0884" -"Japan",81,"Naka District- Tokushima","08846" -"Japan",81,"Kaifu District- Tokushima","08847" -"Japan",81,"Tokushima","08853" -"Japan",81,"Katsura District- Tokushima","08854" -"Japan",81,"Tokushima","0886" -"Japan",81,"Nagaoka District- Kochi","0887" -"Japan",81,"Aki District- Kochi","08872" -"Japan",81,"Aki District- Kochi","08873" -"Japan",81,"Aki District- Kochi","08874" -"Japan",81,"Kami District- Kochi","08875" -"Japan",81,"Kochi","0888" -"Japan",81,"Agawa District- Kochi","0889" -"Japan",81,"Hojo- Ehime","089" -"Japan",81,"Kamiukena District- Ehime","0892" -"Japan",81,"Kita District- Ehime","0893" -"Japan",81,"Higashiuwa District- Ehime","0894" -"Japan",81,"Kitauwa District- Ehime","0895" -"Japan",81,"Iyomishima- Ehime","0896" -"Japan",81,"Niihama- Ehime","0897" -"Japan",81,"Imabari- Ehime","0898" -"Japan",81,"Fukuoka","092" -"Japan",81,"Iki- Nagasaki","09204" -"Japan",81,"Shimoagata District- Nagasaki","09205" -"Japan",81,"Kamiagata District- Nagasaki","09208" -"Japan",81,"Kitakyushu- Fukuoka","093" -"Japan",81,"Miyako District- Fukuoka","09302" -"Japan",81,"Miyako District- Fukuoka","093032" -"Japan",81,"Miyako District- Fukuoka","093033" -"Japan",81,"Miyako District- Fukuoka","09304" -"Japan",81,"Chikujo District- Fukuoka","09305" -"Japan",81,"Kawanabe District- Kagoshima","0933" -"Japan",81,"Munakata District- Fukuoka","0940" -"Japan",81,"Chikugo- Fukuoka","0942" -"Japan",81,"Yame District- Fukuoka","0943" -"Japan",81,"Asakura District- Fukuoka","09437" -"Japan",81,"Arao- Kumamoto","0944" -"Japan",81,"Amagi- Fukuoka","0946" -"Japan",81,"Nogata- Fukuoka","0947" -"Japan",81,"Iizuka- Fukuoka","0948" -"Japan",81,"Kurate District- Fukuoka","09492" -"Japan",81,"Kurate District- Fukuoka","09493" -"Japan",81,"Iizuka- Fukuoka","09496" -"Japan",81,"Nagasaki","095" -"Japan",81,"Hirado- Nagasaki","0950" -"Japan",81,"Saga","0952" -"Japan",81,"Fujitsu District- Saga","0954" -"Japan",81,"Fujitsu District- Saga","09546" -"Japan",81,"Higashimatsuura District- Saga","0955" -"Japan",81,"Higashisonogi District- Nagasaki","0956" -"Japan",81,"Higashisonogi District- Nagasaki","0957" -"Japan",81,"Fukue- Nagasaki","0959" -"Japan",81,"Kumamoto","096" -"Japan",81,"Amakusa District- Kumamoto","0964" -"Japan",81,"Yatsushiro- Kumamoto","0965" -"Japan",81,"Ashikita District- Kumamoto","0966" -"Japan",81,"Aso District- Kumamoto","0967" -"Japan",81,"Aso District- Kumamoto","09676" -"Japan",81,"Kamoto District- Kumamoto","0968" -"Japan",81,"Amakusa District- Kumamoto","0969" -"Japan",81,"Amakusa District- Kumamoto","09697" -"Japan",81,"Minamiamabe District- Oita","0972" -"Japan",81,"Aso District- Kumamoto","0973" -"Japan",81,"Kusu District- Oita","09737" -"Japan",81,"Naoiri District- Oita","0974" -"Japan",81,"Oita","0975" -"Japan",81,"Oita","0977" -"Japan",81,"Bungotakada- Oita","0978" -"Japan",81,"Higashikunisaki District- Oita","09786" -"Japan",81,"Buzen- Fukuoka","0979" -"Japan",81,"Okinawa","098" -"Japan",81,"Kunigami District- Okinawa","0980" -"Japan",81,"Shimajiri District- Okinawa","09802" -"Japan",81,"Hirara- Okinawa","09807" -"Japan",81,"Ishigaki- Okinawa","09808" -"Japan",81,"Higashiusuki District- Miyazaki","0982" -"Japan",81,"Higashiusuki District- Miyazaki","0983" -"Japan",81,"Ebino- Miyazaki","0984" -"Japan",81,"Miyazaki","0985" -"Japan",81,"Kitamorokata District- Miyazaki","0986" -"Japan",81,"Kushima- Miyazaki","0987" -"Japan",81,"Kagoshima","099" -"Japan",81,"Kagoshima","09912" -"Japan",81,"Kagoshima","09913" -"Japan",81,"Hioki District- Kagoshima","0993" -"Japan",81,"Kanoya- Kagoshima","0994" -"Japan",81,"Kimotsuki District- Kagoshima","09942" -"Japan",81,"Aira District- Kagoshima","0995" -"Japan",81,"Isa District- Kagoshima","09952" -"Japan",81,"Akune- Kagoshima","0996" -"Japan",81,"Satsuma District- Kagoshima","09969" -"Japan",81,"Naze- Kagoshima","0997" -"Japan",81,"Kumage District- Kagoshima","09972" -"Japan",81,"Kumage District- Kagoshima","09974" -"Japan",81,"Oshima District- Kagoshima","09977" -"Jersey",44,"Jersey","01534" -"Jordan",962,"Northern Jordan","02" -"Jordan",962,"Southern Jordan","03" -"Jordan",962,"Central Jordan","05" -"Jordan",962,"Greater Amman","06" -"Kazakhstan",7,"Karagandy","(8)310" -"Kazakhstan",7,"Uralsk","(8)311" -"Kazakhstan",7,"Atyrau","(8)312" -"Kazakhstan",7,"Aktubinsk","(8)313" -"Kazakhstan",7,"Kostanay","(8)314" -"Kazakhstan",7,"Petropavlovsk","(8)315" -"Kazakhstan",7,"Akmola","(8)316" -"Kazakhstan",7,"Astana city","(8)317" -"Kazakhstan",7,"Pavlodar","(8)318" -"Kazakhstan",7,"Karagandy","(8)321" -"Kazakhstan",7,"Ust-Kamenogorsk","(8)322" -"Kazakhstan",7,"Ust-Kamenogorsk","(8)323" -"Kazakhstan",7,"Kyzylorda","(8)324" -"Kazakhstan",7,"Shymkent","(8)325" -"Kazakhstan",7,"Taraz","(8)326" -"Kazakhstan",7,"Almaty","(8)327" -"Kazakhstan",7,"Almaty","(8)328" -"Kazakhstan",7,"Mangistau","(8)329" -"Kazakhstan",7,"Arkalyk","(8)330" -"Kazakhstan",7,"Baykonur","(8)336" -"Kenya",254,"Mombasa","011" -"Kenya",254,"Mombasa","0125" -"Kenya",254,"Nairobi","02" -"Kenya",254,"Kwale","040" -"Kenya",254,"Mombasa","041" -"Kenya",254,"Malindi","042" -"Kenya",254,"Voi","043" -"Kenya",254,"Machakos","044" -"Kenya",254,"Kajiado","045" -"Kenya",254,"Garissa","046" -"Kenya",254,"Naivasha","050" -"Kenya",254,"Nakuru","051" -"Kenya",254,"Kericho","052" -"Kenya",254,"Eldoret","053" -"Kenya",254,"Kitale","054" -"Kenya",254,"Bungoma","055" -"Kenya",254,"Kakamega","056" -"Kenya",254,"Kisumu","057" -"Kenya",254,"Kisii","058" -"Kenya",254,"Homa Bay","059" -"Kenya",254,"Murang'A","060" -"Kenya",254,"Nyeri","061" -"Kenya",254,"Nanyuki","062" -"Kenya",254,"Meru","064" -"Kenya",254,"Nyahururu","065" -"Kenya",254,"Karuri","066" -"Kenya",254,"Thika","067" -"Kenya",254,"Embu","068" -"Kenya",254,"Marsabit","069" -"Kiribati",686,"Betio- Tarawa",27 -"Korea- Democratic People's Republic of",850,"Pyongyang","02" -"Korea- Democratic People's Republic of",850,"Hamchon","09" -"Korea- Republic of",82,"Seoul","02" -"Korea- Republic of",82,"Kyonggi-Do (Province)","031" -"Korea- Republic of",82,"In-Chun","032" -"Korea- Republic of",82,"Kangwon-Do (Province)","033" -"Korea- Republic of",82,"Chungchong-Nam Do (Province)","041" -"Korea- Republic of",82,"Dae-Jun","042" -"Korea- Republic of",82,"Chungchong-Buk Do (Province)","043" -"Korea- Republic of",82,"Busan","051" -"Korea- Republic of",82,"Ulsan","052" -"Korea- Republic of",82,"Daegu","053" -"Korea- Republic of",82,"Kyoung-Sang-Buk Do (Province)","054" -"Korea- Republic of",82,"Kyoung-Sang-Nam Do (Province)","055" -"Korea- Republic of",82,"Chulla-Nam Do (Province)","061" -"Korea- Republic of",82,"Kwang-Ju","062" -"Korea- Republic of",82,"Chulla-Buk Do (Province)","063" -"Korea- Republic of",82,"Cheju-Do","064" -"Kuwait",965,"Nuzha",224 -"Kuwait",965,"Safat",240 -"Kuwait",965,"Safat",241 -"Kuwait",965,"Safat",242 -"Kuwait",965,"Safat",243 -"Kuwait",965,"Safat",244 -"Kuwait",965,"Safat",245 -"Kuwait",965,"Safat",246 -"Kuwait",965,"Safat",247 -"Kuwait",965,"Safat",248 -"Kuwait",965,"Safat",249 -"Kuwait",965,"Nuzha",251 -"Kuwait",965,"Nuzha",252 -"Kuwait",965,"Nuzha",253 -"Kuwait",965,"Nuzha",254 -"Kuwait",965,"Nuzha",255 -"Kuwait",965,"Nuzha",256 -"Kuwait",965,"Nuzha",257 -"Kuwait",965,"Nuzha",258 -"Kuwait",965,"Nuzha",259 -"Kuwait",965,"Hawalli",261 -"Kuwait",965,"Hawalli",262 -"Kuwait",965,"Hawalli",263 -"Kuwait",965,"Hawalli",264 -"Kuwait",965,"Hawalli",265 -"Kuwait",965,"Hawalli",266 -"Kuwait",965,"Ahmadi & Umm-Alhaiman",327 -"Kuwait",965,"Ahmadi & Umm-Alhaiman",328 -"Kuwait",965,"South Subahiyah",361 -"Kuwait",965,"South Subahiyah",362 -"Kuwait",965,"Manqaf & Shuiba",371 -"Kuwait",965,"Manqaf & Shuiba",372 -"Kuwait",965,"Manqaf & Shuiba",376 -"Kuwait",965,"Wafra",381 -"Kuwait",965,"Jaber Al-Ali",383 -"Kuwait",965,"Jaber Al-Ali",384 -"Kuwait",965,"Funtas",390 -"Kuwait",965,"Fahaheel",391 -"Kuwait",965,"Fahaheel",392 -"Kuwait",965,"Rekka",394 -"Kuwait",965,"Zoor",395 -"Kuwait",965,"Rekka",396 -"Kuwait",965,"Ahmadi",398 -"Kuwait",965,"Jaleeb Al-Shuyoukh",431 -"Kuwait",965,"Jaleeb Al-Shuyoukh",433 -"Kuwait",965,"Jaleeb Al-Shuyoukh",434 -"Kuwait",965,"Jahra-B",455 -"Kuwait",965,"Jahra-B",456 -"Kuwait",965,"Jahra-B",457 -"Kuwait",965,"Jahra-B",458 -"Kuwait",965,"Free Trade Zone",461 -"Kuwait",965,"Sulaibiyah",467 -"Kuwait",965,"Abdalli",470 -"Kuwait",965,"Farwaniah",471 -"Kuwait",965,"Farwaniah",472 -"Kuwait",965,"Farwaniah",473 -"Kuwait",965,"Farwaniah",474 -"Kuwait",965,"Farwaniah",476 -"Kuwait",965,"Jahra",477 -"Kuwait",965,"Jahra",478 -"Kuwait",965,"Ardhiyah",480 -"Kuwait",965,"Shuwaikh",481 -"Kuwait",965,"Shuwaikh",483 -"Kuwait",965,"Shuwaikh",484 -"Kuwait",965,"Sulaibikhat",487 -"Kuwait",965,"Ardhiyah",488 -"Kuwait",965,"Ardhiyah",489 -"Kuwait",965,"Jabriyah",531 -"Kuwait",965,"Jabriyah",532 -"Kuwait",965,"Jabriyah",533 -"Kuwait",965,"Jabriyah",534 -"Kuwait",965,"Mushrif",538 -"Kuwait",965,"Qurain",541 -"Kuwait",965,"Qurain",542 -"Kuwait",965,"Qurain",543 -"Kuwait",965,"Qurain",544 -"Kuwait",965,"Sabah Salem",551 -"Kuwait",965,"Sabah Salem",552 -"Kuwait",965,"Salmiyah",561 -"Kuwait",965,"Salmiyah",562 -"Kuwait",965,"Salmiyah",563 -"Kuwait",965,"Salmiyah",564 -"Kuwait",965,"Salmiyah",565 -"Kuwait",965,"Ras Salmiyah",571 -"Kuwait",965,"Ras Salmiyah",572 -"Kuwait",965,"Ras Salmiyah",573 -"Kuwait",965,"Ras Salmiyah",574 -"Kuwait",965,"Ras Salmiyah",575 -"Kyrgyz Republic",996,"Bishkek","0312" -"Kyrgyz Republic",996,"Belovodskoe (Moskovsky district)","03131" -"Kyrgyz Republic",996,"Kant (Issyk-Ata district)","03132" -"Kyrgyz Republic",996,"Kara-Balta (Jayl district)","03133" -"Kyrgyz Republic",996,"Sokuluk (Sokuluk district)","03134" -"Kyrgyz Republic",996,"Kemin (Kemin district)","03135" -"Kyrgyz Republic",996,"Kaindy (Panfilov district)","03137" -"Kyrgyz Republic",996,"Chuy-Tokmok (Chuy-Tokmok district)","03138" -"Kyrgyz Republic",996,"Lebedinovka (Alamudun district)","03147" -"Kyrgyz Republic",996,"Osh","03222" -"Kyrgyz Republic",996,"Eski-Nookat (Nookat district)","03230" -"Kyrgyz Republic",996,"Aravan (Aravan district)","03231" -"Kyrgyz Republic",996,"Kara-Suu (Kara-Suu district)","03232" -"Kyrgyz Republic",996,"Uzgen (Uzgen district)","03233" -"Kyrgyz Republic",996,"Gulcha (Alai district)","03234" -"Kyrgyz Republic",996,"Daroot-Korgon (Chon-Alai district)","03237" -"Kyrgyz Republic",996,"Kara-Kulja (Kara-Kulja district)","03239" -"Kyrgyz Republic",996,"Talas","03422" -"Kyrgyz Republic",996,"Kyzyl-Adyr (Kyzyl-Adyr district)","03456" -"Kyrgyz Republic",996,"Bakai-Ata (Bakai-Ata district)","03457" -"Kyrgyz Republic",996,"Kok-Oi (Talas district)","03458" -"Kyrgyz Republic",996,"Pokrovka (Manas district)","03459" -"Kyrgyz Republic",996,"Naryn","03522" -"Kyrgyz Republic",996,"At-Bashy (At-Bashy district)","03534" -"Kyrgyz Republic",996,"Kochkorka (Kochkor district)","03535" -"Kyrgyz Republic",996,"Chaek (Jumgal district)","03536" -"Kyrgyz Republic",996,"Baetovo (Ak-Tala district)","03537" -"Kyrgyz Republic",996,"Batken","03622" -"Kyrgyz Republic",996,"Sulukta (City)","03653" -"Kyrgyz Republic",996,"Pulgon (Kadamjay district)","03655" -"Kyrgyz Republic",996,"Isphana (Laylak district)","03656" -"Kyrgyz Republic",996,"Kyzyl-Kya (City)","03657" -"Kyrgyz Republic",996,"Jalal-Abad","03722" -"Kyrgyz Republic",996,"Massy (Nooken district)","03734" -"Kyrgyz Republic",996,"Bazar-Korgon (Bazar-Korgon district)","03736" -"Kyrgyz Republic",996,"Kazarman (Toguz-Toro district)","03738" -"Kyrgyz Republic",996,"Ala-Buka (Ala-Buka district)","03741" -"Kyrgyz Republic",996,"Kerben (Aksy district)","03742" -"Kyrgyz Republic",996,"Kok-Gangak (City)","03743" -"Kyrgyz Republic",996,"Mailuu-Suu (City)","03744" -"Kyrgyz Republic",996,"Tash-Kumyr (City)","03745" -"Kyrgyz Republic",996,"Kara-Kul (City)","03746" -"Kyrgyz Republic",996,"Toktogul (Toktogul district)","03747" -"Kyrgyz Republic",996,"Suzak (Suzak district)","03748" -"Kyrgyz Republic",996,"Kanysh-Kya (Chatkal district)","03759" -"Kyrgyz Republic",996,"Karakol","03922" -"Kyrgyz Republic",996,"Kadjy-Sai (Ton district)","03941" -"Kyrgyz Republic",996,"Ananevo","03942" -"Kyrgyz Republic",996,"Cholpon-Ata (Issyk-Kul district)","03943" -"Kyrgyz Republic",996,"Balykchy (City)","03944" -"Kyrgyz Republic",996,"Tup (Tup district)","03945" -"Kyrgyz Republic",996,"Kyzyl-Suu (Jety-Oguz district)","03946" -"Kyrgyz Republic",996,"Bokonbaevo (Ton district)","03947" -"Laos",856,"Vientiane","021" -"Laos",856,"Vientiane province","023" -"Laos",856,"Pakse","031" -"Laos",856,"Saravane","034" -"Laos",856,"Attapeu","036" -"Laos",856,"Xekong","038" -"Laos",856,"Savannakhet","041" -"Laos",856,"Thakhek","051" -"Laos",856,"Borikhamsay","054" -"Laos",856,"Xieng Khouang","061" -"Laos",856,"Huaphanh","064" -"Laos",856,"Loungprabang","071" -"Laos",856,"Sayabouri","074" -"Laos",856,"Oudomsay","081" -"Laos",856,"Bokeo","084" -"Laos",856,"Luang Namtha","086" -"Laos",856,"Phongsaly","088" -"Latvia",371,"Jelgava","(8)30" -"Latvia",371,"Tukums","(8)31" -"Latvia",371,"Talsi","(8)32" -"Latvia",371,"Kuldiga","(8)33" -"Latvia",371,"Liepaja","(8)34" -"Latvia",371,"Ventspils","(8)36" -"Latvia",371,"Dobele","(8)37" -"Latvia",371,"Saldus","(8)38" -"Latvia",371,"Bauska","(8)39" -"Latvia",371,"Limbazi","(8)40" -"Latvia",371,"Cesis","(8)41" -"Latvia",371,"Valmiera","(8)42" -"Latvia",371,"Aluksne","(8)43" -"Latvia",371,"Gulbene","(8)44" -"Latvia",371,"Balvi","(8)45" -"Latvia",371,"Rezekne","(8)46" -"Latvia",371,"Valka","(8)47" -"Latvia",371,"Madona","(8)48" -"Latvia",371,"Ogre","(8)50" -"Latvia",371,"Aizkraukle","(8)51" -"Latvia",371,"Jekabpils","(8)52" -"Latvia",371,"Preili","(8)53" -"Latvia",371,"Daugavpils","(8)54" -"Latvia",371,"Kraslava","(8)56" -"Latvia",371,"Ludza","(8)57" -"Latvia",371,"Jelgava","(8)630" -"Latvia",371,"Tukums","(8)631" -"Latvia",371,"Talsi","(8)632" -"Latvia",371,"Kuldiga","(8)633" -"Latvia",371,"Liepaja","(8)634" -"Latvia",371,"Ventspils","(8)636" -"Latvia",371,"Dobele","(8)637" -"Latvia",371,"Saldus","(8)638" -"Latvia",371,"Bauska","(8)639" -"Latvia",371,"Limbazi","(8)640" -"Latvia",371,"Cesis","(8)641" -"Latvia",371,"Valmiera","(8)642" -"Latvia",371,"Aluksne","(8)643" -"Latvia",371,"Gulbene","(8)644" -"Latvia",371,"Balvi","(8)645" -"Latvia",371,"Rezekne","(8)646" -"Latvia",371,"Valka","(8)647" -"Latvia",371,"Madona","(8)648" -"Latvia",371,"Ogre","(8)650" -"Latvia",371,"Aizkraukle","(8)651" -"Latvia",371,"Jekabpils","(8)652" -"Latvia",371,"Preili","(8)653" -"Latvia",371,"Daugavpils","(8)654" -"Latvia",371,"Kraslava","(8)656" -"Latvia",371,"Ludza","(8)657" -"Latvia",371,"Riga","(8)67" -"Latvia",371,"Riga","(8)7" -"Lebanon",961,"Beirut","01" -"Lebanon",961,"Aintoura","04" -"Lebanon",961,"Aley","05" -"Lebanon",961,"Tripoli","06" -"Lebanon",961,"Saida","07" -"Lebanon",961,"Bekaa","08" -"Lebanon",961,"Keserwan","09" -"Libya",218,"Sidiessaiah","0205" -"Libya",218,"Suk Elkhamis","0206" -"Libya",218,"Tripoli","021" -"Libya",218,"Ben Gashir","022" -"Libya",218,"Swajni","0224" -"Libya",218,"Ezzaonia","023" -"Libya",218,"Sabratha","024" -"Libya",218,"Zuara","025" -"Libya",218,"Zahra","0252" -"Libya",218,"Taigura","026" -"Libya",218,"Hashan","0271" -"Libya",218,"Azizia","0272" -"Libya",218,"Abu Issa","0274" -"Libya",218,"Matred","0275" -"Libya",218,"Mamura","0277" -"Libya",218,"Elmaya","0279" -"Libya",218,"Jmail","0281" -"Libya",218,"Ajailat","0282" -"Libya",218,"Hugialin","0284" -"Libya",218,"Khums","031" -"Libya",218,"Bani Walid","0322" -"Libya",218,"Wadi Keam","0323" -"Libya",218,"Tarhuna","0325" -"Libya",218,"Kussabat","0326" -"Libya",218,"Garian","041" -"Libya",218,"Yefren","0421" -"Libya",218,"Mizda","0422" -"Libya",218,"Guassem","0423" -"Libya",218,"Buzayan","0425" -"Libya",218,"Kikla","0427" -"Libya",218,"Rujban","0452" -"Libya",218,"Reyana","0453" -"Libya",218,"Al Josh","0454" -"Libya",218,"Nalut","047" -"Libya",218,"Kabaw","0481" -"Libya",218,"Tigi","0482" -"Libya",218,"Ghadames","0484" -"Libya",218,"Misratah","051" -"Libya",218,"Zliten","0521" -"Libya",218,"Tawergha","0522" -"Libya",218,"Dafnia","0523" -"Libya",218,"Kasarahmad","0524" -"Libya",218,"Zawyat Elmahjub","0526" -"Libya",218,"Bugrain","0529" -"Libya",218,"Sirt","054" -"Libya",218,"Abuhadi","0551" -"Libya",218,"Abengawad","0553" -"Libya",218,"Wadi Jeref","0554" -"Libya",218,"Noflia","0555" -"Libya",218,"Hun","057" -"Libya",218,"Wodan","0581" -"Libya",218,"Sokna","0582" -"Libya",218,"Soussa","0583" -"Libya",218,"Zella","0584" -"Libya",218,"Benghazi","061" -"Libya",218,"Gmines","0623" -"Libya",218,"Elkuwaifia","0624" -"Libya",218,"Deriana","0625" -"Libya",218,"Kaalifa","0626" -"Libya",218,"Jerdina","0627" -"Libya",218,"Seluk","0628" -"Libya",218,"Elmagrun","0629" -"Libya",218,"Benina","063" -"Libya",218,"Kofra","0652" -"Libya",218,"Ojla","0653" -"Libya",218,"Sidi Sultan","0654" -"Libya",218,"Bisher","0655" -"Libya",218,"Jalo","0657" -"Libya",218,"Elmareg","067" -"Libya",218,"Tolmitha","0681" -"Libya",218,"Jardas","0682" -"Libya",218,"Taknes","0683" -"Libya",218,"Elbayada","0684" -"Libya",218,"Tomina","0685" -"Libya",218,"Sebha","071" -"Libya",218,"Brak","0721" -"Libya",218,"Edry","0723" -"Libya",218,"Ghat","0724" -"Libya",218,"Murzuk","0725" -"Libya",218,"Um Laranib","0726" -"Libya",218,"Zawaya","0727" -"Libya",218,"Ghrefa","0729" -"Libya",218,"Ubary","073" -"Libya",218,"Wadi Atba","0731" -"Libya",218,"Bergen","0732" -"Libya",218,"Garda","0733" -"Libya",218,"Traghen","0734" -"Libya",218,"Derna","081" -"Libya",218,"Haraua","082" -"Libya",218,"Gubba","0821" -"Libya",218,"El Beida","084" -"Libya",218,"Shahat","0851" -"Libya",218,"Massa","0852" -"Libya",218,"Slenta","0854" -"Libya",218,"Jaghbub","0884" -"Liechtenstein",423,"Vaduz",2 -"Liechtenstein",423,"Vaduz",3 -"Liechtenstein",423,"Vaduz",4 -"Lithuania",370,"Varena","0310" -"Lithuania",370,"Druskininkai","0313" -"Lithuania",370,"Alytus","0315" -"Lithuania",370,"Lazdijai","0318" -"Lithuania",370,"Birštonas","0319" -"Lithuania",370,"Ukmerge","0340" -"Lithuania",370,"Vilkiškis","0342" -"Lithuania",370,"Marijampole","0343" -"Lithuania",370,"šakiai","0345" -"Lithuania",370,"Kaišiadorys","0346" -"Lithuania",370,"Kedainiai","0347" -"Lithuania",370,"Jonava","0349" -"Lithuania",370,"Kaunas","037" -"Lithuania",370,"šalcininkai","0380" -"Lithuania",370,"Anykšciai","0381" -"Lithuania",370,"širvintos","0382" -"Lithuania",370,"Moletai","0383" -"Lithuania",370,"Zarasai","0385" -"Lithuania",370,"Ignalina","0386" -"Lithuania",370,"švencionys","0387" -"Lithuania",370,"Utena","0389" -"Lithuania",370,"Gargždai","040" -"Lithuania",370,"šiauliai","041" -"Lithuania",370,"šiauliai","0421" -"Lithuania",370,"Radviliškis","0422" -"Lithuania",370,"Akmene","0425" -"Lithuania",370,"Joniškis","0426" -"Lithuania",370,"Kelme","0427" -"Lithuania",370,"Raseiniai","0428" -"Lithuania",370,"Skuodas","0440" -"Lithuania",370,"šilute","0441" -"Lithuania",370,"Mažeikiai","0443" -"Lithuania",370,"Telšiai","0444" -"Lithuania",370,"Kretinga","0445" -"Lithuania",370,"Klaipeda","0446" -"Lithuania",370,"Jurbarkas","0447" -"Lithuania",370,"Plunge","0448" -"Lithuania",370,"šilale","0449" -"Lithuania",370,"Biržai","0450" -"Lithuania",370,"Pasvalys","0451" -"Lithuania",370,"Rokiškis","0458" -"Lithuania",370,"Kupiškis","0459" -"Lithuania",370,"Palanga","0460" -"Lithuania",370,"Neringa","0469" -"Lithuania",370,"Vilnius","05" -"Lithuania",370,"Elektrenai","0528" -"Macedonia",389,"Skopje","02" -"Macedonia",389,"Kumanovo","031" -"Macedonia",389,"Stip","032" -"Macedonia",389,"Kocani","033" -"Macedonia",389,"Gevgelija","034" -"Macedonia",389,"Gostivar","042" -"Macedonia",389,"Veles","043" -"Macedonia",389,"Tetovo","044" -"Macedonia",389,"Kicevo","045" -"Macedonia",389,"Ohrid","046" -"Macedonia",389,"Bitola","047" -"Macedonia",389,"Prilep","048" -"Malaysia",60,"Selangor","03" -"Malaysia",60,"Kedah","04" -"Malaysia",60,"Pahang","05" -"Malaysia",60,"Johor","06" -"Malaysia",60,"Johor","07" -"Malaysia",60,"Sarawak","082" -"Malaysia",60,"Sarawak","083" -"Malaysia",60,"Sarawak","084" -"Malaysia",60,"Sarawak","085" -"Malaysia",60,"Sarawak","086" -"Malaysia",60,"Sabah","087" -"Malaysia",60,"Sabah","088" -"Malaysia",60,"Sabah","089" -"Malaysia",60,"Kelantan","09" -"Maldives",960,"Male’",331 -"Maldives",960,"Male’",332 -"Maldives",960,"Male’",333 -"Maldives",960,"Male’",334 -"Maldives",960,"Hulumale’",335 -"Maldives",960,"Villingili",339 -"Maldives",960,"Haa Alif",650 -"Maldives",960,"Haa Dhaalu",652 -"Maldives",960,"Shaviyani",654 -"Maldives",960,"Noonu",656 -"Maldives",960,"Raa",658 -"Maldives",960,"Baa",660 -"Maldives",960,"Lhaviyani",662 -"Maldives",960,"Kaafu",664 -"Maldives",960,"Alif Alif",666 -"Maldives",960,"Alif Dhaalu",668 -"Maldives",960,"Vaavu",670 -"Maldives",960,"Meemu",672 -"Maldives",960,"Faafu",674 -"Maldives",960,"Dhaalu",676 -"Maldives",960,"Thaa",678 -"Maldives",960,"Laamu",680 -"Maldives",960,"Gaafu Alifu",682 -"Maldives",960,"Gaafu Dhaalu",684 -"Maldives",960,"Gnaviyani",686 -"Maldives",960,"Seenu",688 -"Maldives",960,"Seenu",689 -"Martinique",596,"Martinique",596 -"Mauritius",230,"Government Centre",201 -"Mauritius",230,"Port Louis",202 -"Mauritius",230,"Port Louis",203 -"Mauritius",230,"Triolet",204 -"Mauritius",230,"Port Louis",206 -"Mauritius",230,"Port Louis",207 -"Mauritius",230,"Port Louis",208 -"Mauritius",230,"Grand Bay",209 -"Mauritius",230,"Port Louis",210 -"Mauritius",230,"Port Louis",211 -"Mauritius",230,"Port Louis",212 -"Mauritius",230,"Plaine Verte",216 -"Mauritius",230,"Signal Mountain",217 -"Mauritius",230,"Coromandel",233 -"Mauritius",230,"Pointe Aux Sables",234 -"Mauritius",230,"Albion",238 -"Mauritius",230,"Port Louis",239 -"Mauritius",230,"Plaine Verte",240 -"Mauritius",230,"Plaine Verte",241 -"Mauritius",230,"Plaine Verte",242 -"Mauritius",230,"Pamplemousses",243 -"Mauritius",230,"Long Mountain",245 -"Mauritius",230,"Tombeau Bay",247 -"Mauritius",230,"Terre Rouge",248 -"Mauritius",230,"Terre Rouge",249 -"Mauritius",230,"Triolet",261 -"Mauritius",230,"Cap Malheureux",262 -"Mauritius",230,"Grand Bay",263 -"Mauritius",230,"Piton",264 -"Mauritius",230,"Trou Aux Biches",265 -"Mauritius",230,"Mapou",266 -"Mauritius",230,"Grand Bay",269 -"Mauritius",230,"Flacq",271 -"Mauritius",230,"Goodlands",282 -"Mauritius",230,"Goodlands",283 -"Mauritius",230,"Pailles",286 -"Mauritius",230,"Grand Gaube",288 -"Mauritius",230,"Flacq",401 -"Mauritius",230,"Flacq",402 -"Mauritius",230,"Flic-En-Flac",403 -"Mauritius",230,"Poste Lafayette",410 -"Mauritius",230,"Roches Noires",411 -"Mauritius",230,"Rivière Du Rempart",412 -"Mauritius",230,"Flacq",413 -"Mauritius",230,"Olivia",414 -"Mauritius",230,"Belle Mare",415 -"Mauritius",230,"Camp De Masque",416 -"Mauritius",230,"Quatre Soeurs",417 -"Mauritius",230,"Brisée Verdière",418 -"Mauritius",230,"Bel Air",419 -"Mauritius",230,"Candos",424 -"Mauritius",230,"Candos",425 -"Mauritius",230,"Candos",426 -"Mauritius",230,"Candos",427 -"Mauritius",230,"Ripailles",431 -"Mauritius",230,"Moka",433 -"Mauritius",230,"Quartier Militaire",435 -"Mauritius",230,"Montagne Blanche",437 -"Mauritius",230,"Le Morne",450 -"Mauritius",230,"La Gaulette",451 -"Mauritius",230,"Bambous",452 -"Mauritius",230,"Flic En Flac",453 -"Mauritius",230,"Rose Hill",454 -"Mauritius",230,"Rose Hill",464 -"Mauritius",230,"Rose Hill",465 -"Mauritius",230,"Rose Hill",466 -"Mauritius",230,"Rose Hill",467 -"Mauritius",230,"Trou D'Eau Douce",480 -"Mauritius",230,"Tamarin",483 -"Mauritius",230,"Ripailles",501 -"Mauritius",230,"Rivière Du Rempart",502 -"Mauritius",230,"Trou Aux Biches",505 -"Mauritius",230,"Pailles",506 -"Mauritius",230,"Grand Bois",507 -"Mauritius",230,"Port Louis",508 -"Mauritius",230,"Port Louis",510 -"Mauritius",230,"Port Louis",511 -"Mauritius",230,"Port Louis",512 -"Mauritius",230,"Belle Mare",515 -"Mauritius",230,"Camp De Masque",516 -"Mauritius",230,"Quatre Soeurs",517 -"Mauritius",230,"Brisée Verdière",518 -"Mauritius",230,"Bel Air",519 -"Mauritius",230,"Baie Du Cap",521 -"Mauritius",230,"Chemin Grenier",522 -"Mauritius",230,"Seizième Mile",524 -"Mauritius",230,"Souillac",525 -"Mauritius",230,"Candos",526 -"Mauritius",230,"Candos",527 -"Mauritius",230,"Candos",528 -"Mauritius",230,"Rose Belle",529 -"Mauritius",230,"Mahebourg",531 -"Mauritius",230,"Coromandel",533 -"Mauritius",230,"Moka",534 -"Mauritius",230,"Pointe Aux Sables",535 -"Mauritius",230,"Montagne Blanche",537 -"Mauritius",230,"Flacq",539 -"Mauritius",230,"Plaine Verte",540 -"Mauritius",230,"Plaine Verte",541 -"Mauritius",230,"Plaine Verte",542 -"Mauritius",230,"Pamplemousses",543 -"Mauritius",230,"Long Mountain",545 -"Mauritius",230,"Tombeau Bay",547 -"Mauritius",230,"Terre Rouge",549 -"Mauritius",230,"La Gaulette",551 -"Mauritius",230,"Bambous",552 -"Mauritius",230,"Flic En Flac",553 -"Mauritius",230,"Piton",554 -"Mauritius",230,"Quartier Militaire",555 -"Mauritius",230,"Mapou",556 -"Mauritius",230,"Albion",558 -"Mauritius",230,"Triolet",561 -"Mauritius",230,"Cap Malheureux",562 -"Mauritius",230,"Grand Bay",563 -"Mauritius",230,"Rose Hill",564 -"Mauritius",230,"Rose Hill",565 -"Mauritius",230,"Rose Hill",566 -"Mauritius",230,"Grand Gaube",568 -"Mauritius",230,"Forest Side",570 -"Mauritius",230,"Forest Side",571 -"Mauritius",230,"Forest Side",572 -"Mauritius",230,"Beau Bassin",573 -"Mauritius",230,"Beau Bassin",574 -"Mauritius",230,"Rivière Des Anguilles",576 -"Mauritius",230,"Nouvelle France",577 -"Mauritius",230,"Trou D'Eau Douce",580 -"Mauritius",230,"Dagotière",581 -"Mauritius",230,"Goodlands",582 -"Mauritius",230,"Tamarin",583 -"Mauritius",230,"Glen Park",584 -"Mauritius",230,"Glen Park",585 -"Mauritius",230,"Floreal",586 -"Mauritius",230,"Floreal",587 -"Mauritius",230,"Floreal",588 -"Mauritius",230,"Floreal",589 -"Mauritius",230,"Poste Lafayette",591 -"Mauritius",230,"Riche-En-Eau",593 -"Mauritius",230,"Vieux Grand Port",594 -"Mauritius",230,"Dubreuil",595 -"Mauritius",230,"L'Escalier",596 -"Mauritius",230,"Plaisance",597 -"Mauritius",230,"Floreal",601 -"Mauritius",230,"Floreal",602 -"Mauritius",230,"Floreal",603 -"Mauritius",230,"Floreal",604 -"Mauritius",230,"Grand Bois",617 -"Mauritius",230,"La Prairie",620 -"Mauritius",230,"Baie Du Cap",621 -"Mauritius",230,"Chemin Grenier",622 -"Mauritius",230,"Bel Ombre",623 -"Mauritius",230,"Souillac",625 -"Mauritius",230,"Rivière Des Anguilles",626 -"Mauritius",230,"Rose Belle",627 -"Mauritius",230,"Mahebourg",631 -"Mauritius",230,"Riche-En-Eau",633 -"Mauritius",230,"Vieux Grand Port",634 -"Mauritius",230,"L'Escalier",636 -"Mauritius",230,"Plaisance",637 -"Mauritius",230,"Seizième Mile",664 -"Mauritius",230,"Dubreuil",665 -"Mauritius",230,"Forest Side",670 -"Mauritius",230,"Forest Side",674 -"Mauritius",230,"Forest Side",675 -"Mauritius",230,"Forest Side",676 -"Mauritius",230,"Nouvelle France",677 -"Mauritius",230,"Glen Park",684 -"Mauritius",230,"Floreal",686 -"Mauritius",230,"Floreal",696 -"Mauritius",230,"Floreal",697 -"Mauritius",230,"Floreal",698 -"Mauritius",230,"Agalega",814 -"Mauritius",230,"Riviere Coco",831 -"Mauritius",230,"La Ferme",832 -"Mayotte",269,"Mayotte",269 -"Mexico",52,"Puebla- Pue.","(01)222" -"Mexico",52,"Magdalena Tetela Morelos- La","(01)223" -"Mexico",52,"Almolonga (Todos Santos)","(01)224" -"Mexico",52,"Palmilla- La","(01)225" -"Mexico",52,"Altotonga","(01)226" -"Mexico",52,"Huejotzingo","(01)227" -"Mexico",52,"Jalapa- Ver.","(01)228" -"Mexico",52,"Veracruz- Ver.","(01)229" -"Mexico",52,"Aire Libre (La Mina)","(01)231" -"Mexico",52,"Arroyo Del Potrero","(01)232" -"Mexico",52,"Ayotoxco De Guerrero","(01)233" -"Mexico",52,"Arroyo Hondo","(01)235" -"Mexico",52,"Ajalpan","(01)236" -"Mexico",52,"San Antonio Texcala","(01)237" -"Mexico",52,"Tehuacán- Pue.","(01)238" -"Mexico",52,"Apizaco- Tlax.","(01)241" -"Mexico",52,"Ahuatlan","(01)243" -"Mexico",52,"Atlixco- Pue.","(01)244" -"Mexico",52,"Atzitzintla","(01)245" -"Mexico",52,"Tlaxcala- Tlax.","(01)246" -"Mexico",52,"Huamantla","(01)247" -"Mexico",52,"San Martín Texmelucan- Pue.","(01)248" -"Mexico",52,"Acatzingo De Hidalgo","(01)249" -"Mexico",52,"Córdoba- Ver.","(01)271" -"Mexico",52,"Orizaba- Ver.","(01)272" -"Mexico",52,"Boca Del Monte","(01)273" -"Mexico",52,"Acatlan De Perez Figueroa","(01)274" -"Mexico",52,"Acaxtlahuacan De Albino Zertuche","(01)275" -"Mexico",52,"Atlzayanca","(01)276" -"Mexico",52,"Capilla- La","(01)278" -"Mexico",52,"Acatlan","(01)279" -"Mexico",52,"Loma Bonita","(01)281" -"Mexico",52,"Altos- Los","(01)282" -"Mexico",52,"Abasolo Del Valle","(01)283" -"Mexico",52,"Angel R. Cabada","(01)284" -"Mexico",52,"Cocuite- El","(01)285" -"Mexico",52,"Benemerito Juarez (Palo Gacho)","(01)287" -"Mexico",52,"Acula","(01)288" -"Mexico",52,"Catemaco","(01)294" -"Mexico",52,"Antigua- La","(01)296" -"Mexico",52,"Alvarado","(01)297" -"Mexico",52,"Tepic- Nay.","(01)311" -"Mexico",52,"Colima- Col.","(01)312" -"Mexico",52,"Augusto Gomez Villanueva (Coalatilla)","(01)313" -"Mexico",52,"Manzanillo- Col.","(01)314" -"Mexico",52,"Barra De Navidad","(01)315" -"Mexico",52,"Ayutla","(01)316" -"Mexico",52,"Ahuacapan","(01)317" -"Mexico",52,"Boquita- La","(01)319" -"Mexico",52,"Ayuquila","(01)321" -"Mexico",52,"Puerto Vallarta- Jal.","(01)322" -"Mexico",52,"Amapa","(01)323" -"Mexico",52,"Ahuacatlan","(01)324" -"Mexico",52,"Acaponeta","(01)325" -"Mexico",52,"Atemajac De Brizuela","(01)326" -"Mexico",52,"Amado Nervo (El Conde)","(01)327" -"Mexico",52,"Capulin- El","(01)328" -"Mexico",52,"Bucerias","(01)329" -"Mexico",52,"Guadalajara- Jal. y Zonas Conurbadas","(01)33" -"Mexico",52,"Ciudad Guzmán- Jal.","(01)341" -"Mexico",52,"Sayula","(01)342" -"Mexico",52,"Ejutla","(01)343" -"Mexico",52,"Huisquilco","(01)344" -"Mexico",52,"Ayotlan","(01)345" -"Mexico",52,"Apulco","(01)346" -"Mexico",52,"Mirandillas","(01)347" -"Mexico",52,"Allende","(01)348" -"Mexico",52,"Atengo","(01)349" -"Mexico",52,"Zamora- Mich.","(01)351" -"Mexico",52,"La Piedad- Mich.","(01)352" -"Mexico",52,"Sahuayo- Mich.","(01)353" -"Mexico",52,"Atapan","(01)354" -"Mexico",52,"Carapan","(01)355" -"Mexico",52,"Charcos- Los","(01)356" -"Mexico",52,"Arado- Lo","(01)357" -"Mexico",52,"Garita- La","(01)358" -"Mexico",52,"Guandaro","(01)359" -"Mexico",52,"Atenquique","(01)371" -"Mexico",52,"Amacueca","(01)372" -"Mexico",52,"Caqada De Las Flores","(01)373" -"Mexico",52,"Amatitan","(01)374" -"Mexico",52,"Ameca","(01)375" -"Mexico",52,"Ajijic","(01)376" -"Mexico",52,"Cocula","(01)377" -"Mexico",52,"Tepatitlan- Jal.","(01)378" -"Mexico",52,"Cojumatlan De Regules","(01)381" -"Mexico",52,"Mazamitla","(01)382" -"Mexico",52,"Chavinda","(01)383" -"Mexico",52,"Ahuisculco","(01)384" -"Mexico",52,"Buenavista","(01)385" -"Mexico",52,"Ahualulco De Mercado","(01)386" -"Mexico",52,"Acatlan De Juarez","(01)387" -"Mexico",52,"Atenguillo","(01)388" -"Mexico",52,"Milpas Viejas","(01)389" -"Mexico",52,"Atotonilco El Alto","(01)391" -"Mexico",52,"Ocotlán- Jal.","(01)392" -"Mexico",52,"Barca- La","(01)393" -"Mexico",52,"Barrio- El","(01)394" -"Mexico",52,"San Diego De Alejandria","(01)395" -"Mexico",52,"Calera- La (El Canario)","(01)411" -"Mexico",52,"Comonfort","(01)412" -"Mexico",52,"Apaseo El Alto","(01)413" -"Mexico",52,"Fuente- La","(01)414" -"Mexico",52,"San Miguel de Allende- Gto.","(01)415" -"Mexico",52,"Acambaro","(01)417" -"Mexico",52,"Adjuntas Del Rio (Las Adjuntas)","(01)418" -"Mexico",52,"Ajuchitlan","(01)419" -"Mexico",52,"Coroneo","(01)421" -"Mexico",52,"Ario De Rosales","(01)422" -"Mexico",52,"Ahuiran","(01)423" -"Mexico",52,"Bonifacio Moreno (El Aguaje)","(01)424" -"Mexico",52,"Antunez (Morelos)","(01)425" -"Mexico",52,"Aguililla","(01)426" -"Mexico",52,"Polotitlán- Méx.","(01)427" -"Mexico",52,"Carreton- El","(01)428" -"Mexico",52,"Abasolo","(01)429" -"Mexico",52,"Caqadas De Obregon","(01)431" -"Mexico",52,"Calzada De La Merced- La","(01)432" -"Mexico",52,"Benito Juarez","(01)433" -"Mexico",52,"Acuitzio Del Canje","(01)434" -"Mexico",52,"Angao (Angao De Los Herrera)","(01)435" -"Mexico",52,"Cantabria","(01)436" -"Mexico",52,"Atolinga","(01)437" -"Mexico",52,"Barranca- La","(01)438" -"Mexico",52,"Agua Zarca","(01)441" -"Mexico",52,"Querétaro- Qro.","(01)442" -"Mexico",52,"Morelia- Mich.","(01)443" -"Mexico",52,"San Luis Potosí- S.L.P.","(01)444" -"Mexico",52,"Moroleón- Gto.","(01)445" -"Mexico",52,"Apeo","(01)447" -"Mexico",52,"Amealco","(01)448" -"Mexico",52,"Aguascalientes- Ags.","(01)449" -"Mexico",52,"Araro","(01)451" -"Mexico",52,"Uruapan- Mich.","(01)452" -"Mexico",52,"Apatzingan De La Constitucion","(01)453" -"Mexico",52,"Agua Caliente (Ojo De Agua)","(01)454" -"Mexico",52,"Alvaro Obregon","(01)455" -"Mexico",52,"Cerro Colorado","(01)456" -"Mexico",52,"Chalchihuites","(01)457" -"Mexico",52,"Barril- El","(01)458" -"Mexico",52,"Caracuaro De Morelos","(01)459" -"Mexico",52,"Celaya- Gto.","(01)461" -"Mexico",52,"Irapuato- Gto.","(01)462" -"Mexico",52,"Huanusco","(01)463" -"Mexico",52,"Salamanca- Gto.","(01)464" -"Mexico",52,"Carboneras","(01)465" -"Mexico",52,"Cupareo","(01)466" -"Mexico",52,"Apozol","(01)467" -"Mexico",52,"Covadonga","(01)468" -"Mexico",52,"Atarjea- La","(01)469" -"Mexico",52,"Acuitzeramo","(01)471" -"Mexico",52,"Aguas Buenas","(01)472" -"Mexico",52,"Guanajuato- Gto.","(01)473" -"Mexico",52,"Lagos de Moreno- Jal.","(01)474" -"Mexico",52,"Bajio De San Jose","(01)475" -"Mexico",52,"Caqada De Negros","(01)476" -"Mexico",52,"León- Gto.","(01)477" -"Mexico",52,"General Enrique Estrada","(01)478" -"Mexico",52,"Ciudad Valles- S.L.P.","(01)481" -"Mexico",52,"Agua Buena","(01)482" -"Mexico",52,"Chalchocoyo","(01)483" -"Mexico",52,"Bledos","(01)485" -"Mexico",52,"Armadillo De Los Infante","(01)486" -"Mexico",52,"Arroyo Seco","(01)487" -"Mexico",52,"Cedral","(01)488" -"Mexico",52,"Ahuacatlan","(01)489" -"Mexico",52,"Zacatecas- Zac.","(01)492" -"Mexico",52,"Fresnillo- Zac.","(01)493" -"Mexico",52,"Cargadero- El","(01)494" -"Mexico",52,"Calvillo","(01)495" -"Mexico",52,"Amarillas De Esparza (Amarillas)","(01)496" -"Mexico",52,"Boquilla De Arriba","(01)498" -"Mexico",52,"Atitanac","(01)499" -"Mexico",52,"Ciudad de México- D.F. y Zonas Conurbadas","(01)55" -"Mexico",52,"Arana- Los","(01)588" -"Mexico",52,"Praderas Del Potrero","(01)591" -"Mexico",52,"Jaltepec","(01)592" -"Mexico",52,"Coyotepec","(01)593" -"Mexico",52,"San Marcos Nepantla- Méx.","(01)594" -"Mexico",52,"Texcoco- Méx.","(01)595" -"Mexico",52,"Reyes Acozac- Los","(01)596" -"Mexico",52,"Amecameca De Juarez","(01)597" -"Mexico",52,"Apaxco De Ocampo","(01)599" -"Mexico",52,"La Paz- B.C.S.","(01)612" -"Mexico",52,"Ciudad Constitucion","(01)613" -"Mexico",52,"Chihuahua- Chih.","(01)614" -"Mexico",52,"Bahia Asuncion","(01)615" -"Mexico",52,"Camalu","(01)616" -"Mexico",52,"Durango- Dgo.","(01)618" -"Mexico",52,"Julimes","(01)621" -"Mexico",52,"Guaymas- Son.","(01)622" -"Mexico",52,"Aconchi","(01)623" -"Mexico",52,"San José del Cabo- B.C.S.","(01)624" -"Mexico",52,"Ciudad Cuauhtémoc- Chih.","(01)625" -"Mexico",52,"Manuel Benavides","(01)626" -"Mexico",52,"Parral- Chih.","(01)627" -"Mexico",52,"Mariano Matamoros","(01)628" -"Mexico",52,"Ceballos","(01)629" -"Mexico",52,"Nogales- Son.","(01)631" -"Mexico",52,"Imuris","(01)632" -"Mexico",52,"Agua Prieta","(01)633" -"Mexico",52,"Abanico- El","(01)634" -"Mexico",52,"Areponapuchi","(01)635" -"Mexico",52,"Ascension","(01)636" -"Mexico",52,"Altar","(01)637" -"Mexico",52,"Choya- La","(01)638" -"Mexico",52,"Ciudad Delicias- Chih.","(01)639" -"Mexico",52,"Benjamin Hill","(01)641" -"Mexico",52,"Navojoa- Son.","(01)642" -"Mexico",52,"Agua Blanca","(01)643" -"Mexico",52,"Ciudad Obregón- Son.","(01)644" -"Mexico",52,"Bacoachi","(01)645" -"Mexico",52,"Ensenada- B.C.","(01)646" -"Mexico",52,"Alamos","(01)647" -"Mexico",52,"Boquilla De Babisas (La Boquilla De Conchos)","(01)648" -"Mexico",52,"Baborigame","(01)649" -"Mexico",52,"Sonoita","(01)651" -"Mexico",52,"Largo- El","(01)652" -"Mexico",52,"San Luis Río Colorado- Son.","(01)653" -"Mexico",52,"Ciudad Juárez- Chih.","(01)656" -"Mexico",52,"Ciudad Morelos (Cuervos)","(01)658" -"Mexico",52,"Abraham Gonzalez","(01)659" -"Mexico",52,"Playas De Rosarito","(01)661" -"Mexico",52,"Hermosillo- Son.","(01)662" -"Mexico",52,"Tijuana- B.C.","(01)664" -"Mexico",52,"Tecate","(01)665" -"Mexico",52,"Culiacán- Sin.","(01)667" -"Mexico",52,"Los Mochis- Sin.","(01)668" -"Mexico",52,"Mazatlán- Sin.","(01)669" -"Mexico",52,"Cuencame De Ceniceros (Cuencame)","(01)671" -"Mexico",52,"Altata","(01)672" -"Mexico",52,"Benito Juarez","(01)673" -"Mexico",52,"Canelas","(01)674" -"Mexico",52,"Cieneguilla","(01)675" -"Mexico",52,"Antonio Amaro (Saucillo)","(01)676" -"Mexico",52,"Abasolo","(01)677" -"Mexico",52,"Mexicali- B.C.","(01)686" -"Mexico",52,"Adolfo Ruiz Cortines","(01)687" -"Mexico",52,"Agua Caliente De Garate (Agua Caliente)","(01)694" -"Mexico",52,"Concha- La (La Concepcion)","(01)695" -"Mexico",52,"Bolillo- El","(01)696" -"Mexico",52,"Angostura","(01)697" -"Mexico",52,"Adolfo Lopez Mateos (Jahuara Segundo)","(01)698" -"Mexico",52,"Oro De Hidalgo- El","(01)711" -"Mexico",52,"Atlacomulco De Fabela","(01)712" -"Mexico",52,"San Nicolas Tlazala","(01)713" -"Mexico",52,"Chalma","(01)714" -"Mexico",52,"Heroica Zitacuaro","(01)715" -"Mexico",52,"Almoloya De Alquisiras","(01)716" -"Mexico",52,"Atlatlahuca","(01)717" -"Mexico",52,"Acambay","(01)718" -"Mexico",52,"Emiliano Zapata (Colonia Emiliano Zapata)","(01)719" -"Mexico",52,"Ixtapan De La Sal","(01)721" -"Mexico",52,"Toluca- Méx.","(01)722" -"Mexico",52,"Chiltepec (Chiltepec De Hidalgo)","(01)723" -"Mexico",52,"Almoloya De Las Granadas","(01)724" -"Mexico",52,"Cieneguillas De Guadalupe","(01)725" -"Mexico",52,"Amanalco De Becerra","(01)726" -"Mexico",52,"Atenango Del Rio","(01)727" -"Mexico",52,"Lerma- Méx.","(01)728" -"Mexico",52,"Amayuca","(01)731" -"Mexico",52,"Ajuchitlan Del Progreso","(01)732" -"Mexico",52,"Mayanalán- Gro.","(01)733" -"Mexico",52,"Zacatepec- Mor.","(01)734" -"Mexico",52,"Cuautla- Mor.","(01)735" -"Mexico",52,"Acapetlahuaya","(01)736" -"Mexico",52,"Coatetelco","(01)737" -"Mexico",52,"Alfajayucan","(01)738" -"Mexico",52,"Amatlan De Quetzalcoatl","(01)739" -"Mexico",52,"Acatepec","(01)741" -"Mexico",52,"Atoyac De Alvarez","(01)742" -"Mexico",52,"Acayuca","(01)743" -"Mexico",52,"Acapulco- Gro.","(01)744" -"Mexico",52,"Ayutla De Los Libres","(01)745" -"Mexico",52,"Benito Juarez","(01)746" -"Mexico",52,"Chilpancingo- Gro.","(01)747" -"Mexico",52,"Almoloya","(01)748" -"Mexico",52,"Calpulalpan","(01)749" -"Mexico",52,"Ahuehuetzingo","(01)751" -"Mexico",52,"Ciudad Lázaro Cárdenas- Mich.","(01)753" -"Mexico",52,"Apango","(01)754" -"Mexico",52,"Zihuatanejo- Gro.","(01)755" -"Mexico",52,"Ahuacuotzingo","(01)756" -"Mexico",52,"Alcozauca De Guerrero","(01)757" -"Mexico",52,"Mesas- Las","(01)758" -"Mexico",52,"Alberto- El","(01)759" -"Mexico",52,"Bellavista Del Rio","(01)761" -"Mexico",52,"Acamixtla","(01)762" -"Mexico",52,"Chapantongo","(01)763" -"Mexico",52,"Nuevo Necaxa","(01)764" -"Mexico",52,"Alamo","(01)765" -"Mexico",52,"Gutierrez Zamora","(01)766" -"Mexico",52,"Amuco De La Reforma","(01)767" -"Mexico",52,"Amatlan","(01)768" -"Mexico",52,"Axochiapan","(01)769" -"Mexico",52,"Pachuca- Hgo.","(01)771" -"Mexico",52,"Actopan","(01)772" -"Mexico",52,"Tepeji del Rio- Hgo.","(01)773" -"Mexico",52,"Agua Blanca Iturbide","(01)774" -"Mexico",52,"Singuilucan- Hgo.","(01)775" -"Mexico",52,"Acaxochitlan","(01)776" -"Mexico",52,"Cuernavaca- Mor.","(01)777" -"Mexico",52,"Ajacuba","(01)778" -"Mexico",52,"Plazas- Las","(01)779" -"Mexico",52,"Bajos Del Ejido","(01)781" -"Mexico",52,"Poza Rica- Ver.","(01)782" -"Mexico",52,"Tuxpan- Ver.","(01)783" -"Mexico",52,"Adolfo Ruiz Cortines","(01)784" -"Mexico",52,"Cerro Azul","(01)785" -"Mexico",52,"Agostitlan","(01)786" -"Mexico",52,"Atlapexco","(01)789" -"Mexico",52,"Cides- Los","(01)791" -"Mexico",52,"Ahuacatlan","(01)797" -"Mexico",52,"Monterrey- N.L. y Zonas Conurbadas","(01)81" -"Mexico",52,"Guadalupe (Hacienda De Guadalupe- La)","(01)821" -"Mexico",52,"China","(01)823" -"Mexico",52,"Ciudad Sabinas Hidalgo","(01)824" -"Mexico",52,"Cienega De Flores","(01)825" -"Mexico",52,"Aramberri","(01)826" -"Mexico",52,"Barranquito- El","(01)828" -"Mexico",52,"Bustamante","(01)829" -"Mexico",52,"Ciudad Mante- Tamps.","(01)831" -"Mexico",52,"Adolfo Lopez Mateos (Chamal Nuevo)","(01)832" -"Mexico",52,"Tampico- Tamps.","(01)833" -"Mexico",52,"Ciudad Victoria- Tamps.","(01)834" -"Mexico",52,"Abasolo","(01)835" -"Mexico",52,"Aldama","(01)836" -"Mexico",52,"Burgos","(01)841" -"Mexico",52,"Concepcion Del Oro","(01)842" -"Mexico",52,"Saltillo- Coah.","(01)844" -"Mexico",52,"Ebano","(01)845" -"Mexico",52,"Chijol 17","(01)846" -"Mexico",52,"Sabinas- Coah.","(01)861" -"Mexico",52,"Allende","(01)862" -"Mexico",52,"Ciudad Melchor Muzquiz","(01)864" -"Mexico",52,"Monclova- Coah.","(01)866" -"Mexico",52,"Nuevo Laredo- Tamps.","(01)867" -"Mexico",52,"Matamoros- Tamps.","(01)868" -"Mexico",52,"Cuatrocienegas De Carranza","(01)869" -"Mexico",52,"Torreón- Coah.","(01)871" -"Mexico",52,"Bermejillo","(01)872" -"Mexico",52,"Anahuac","(01)873" -"Mexico",52,"Ciudad Acuqa","(01)877" -"Mexico",52,"Jiménez- Coah.","(01)878" -"Mexico",52,"Ciudad Camargo","(01)891" -"Mexico",52,"Agualeguas","(01)892" -"Mexico",52,"Anahuac","(01)894" -"Mexico",52,"Arcabuz","(01)897" -"Mexico",52,"Reynosa- Tamps.","(01)899" -"Mexico",52,"Cuauhtemoc","(01)913" -"Mexico",52,"Ayapa","(01)914" -"Mexico",52,"Catazaja","(01)916" -"Mexico",52,"Chontalpa (Estacion Chontalpa)","(01)917" -"Mexico",52,"Acacoyagua","(01)918" -"Mexico",52,"Altamirano","(01)919" -"Mexico",52,"Coatzacoalcos- Ver.","(01)921" -"Mexico",52,"Chinameca- Ver.","(01)922" -"Mexico",52,"Agua Dulce","(01)923" -"Mexico",52,"24 De Febrero","(01)924" -"Mexico",52,"Ixtacomitan","(01)932" -"Mexico",52,"Carlos Greene 1 Ra. Seccion","(01)933" -"Mexico",52,"Arena De Hidalgo","(01)934" -"Mexico",52,"Benito Juarez (San Carlos)","(01)936" -"Mexico",52,"Cardenas","(01)937" -"Mexico",52,"Ciudad del Carmen- Camp.","(01)938" -"Mexico",52,"Oaxaca- Oax.","(01)951" -"Mexico",52,"Acatlan De Osorio","(01)953" -"Mexico",52,"Bajos De Chila","(01)954" -"Mexico",52,"Candelaria Loxicha","(01)958" -"Mexico",52,"Tuxtla Gutiérrez- Chis.","(01)961" -"Mexico",52,"Tapachula- Chis.","(01)962" -"Mexico",52,"Chicomuselo","(01)963" -"Mexico",52,"Buenos Aires","(01)964" -"Mexico",52,"Cristobal Obregon","(01)965" -"Mexico",52,"Arriaga","(01)966" -"Mexico",52,"Candelaria- La","(01)967" -"Mexico",52,"Cintalapa De Figueroa","(01)968" -"Mexico",52,"Campestre Flamboyanes","(01)969" -"Mexico",52,"Ixtepec- Oax.","(01)971" -"Mexico",52,"Barrio De La Soledad- El","(01)972" -"Mexico",52,"Campeche- Camp.","(01)981" -"Mexico",52,"Candelaria","(01)982" -"Mexico",52,"Chetumal- Q.Roo","(01)983" -"Mexico",52,"Akumal","(01)984" -"Mexico",52,"Chemax","(01)985" -"Mexico",52,"Colonia Yucatan","(01)986" -"Mexico",52,"Cozumel","(01)987" -"Mexico",52,"Acanceh","(01)988" -"Mexico",52,"Baca","(01)991" -"Mexico",52,"Benito Juarez","(01)992" -"Mexico",52,"Villahermosa- Tab.","(01)993" -"Mexico",52,"Cabeza De Toro","(01)994" -"Mexico",52,"Camaron- El","(01)995" -"Mexico",52,"Becal","(01)996" -"Mexico",52,"Akil","(01)997" -"Mexico",52,"Cancún- Q.Roo","(01)998" -"Mexico",52,"Mérida- Yuc.","(01)999" -"Micronesia",691,"Pohnpei","(1+)320" -"Micronesia",691,"Chuuk","(1+)330" -"Micronesia",691,"Yap","(1+)350" -"Micronesia",691,"Kosrae","(1+)370" -"Moldova",373,"Chisinau","022" -"Moldova",373,"Soroca","0230" -"Moldova",373,"Balti","0231" -"Moldova",373,"Orhei","0235" -"Moldova",373,"Ungheni","0236" -"Moldova",373,"Straseni","0237" -"Moldova",373,"Cimislia","0241" -"Moldova",373,"Stefan Voda","0242" -"Moldova",373,"Causeni","0243" -"Moldova",373,"Calarasi","0244" -"Moldova",373,"Edinet","0246" -"Moldova",373,"Briceni","0247" -"Moldova",373,"Criuleni","0248" -"Moldova",373,"Glodeni","0249" -"Moldova",373,"Floresti","0250" -"Moldova",373,"Donduseni","0251" -"Moldova",373,"Drochia","0252" -"Moldova",373,"Rezina","0254" -"Moldova",373,"Rîscani","0256" -"Moldova",373,"Telenesti","0258" -"Moldova",373,"Falesti","0259" -"Moldova",373,"Sîngerei","0262" -"Moldova",373,"Leova","0263" -"Moldova",373,"Nisporeni","0264" -"Moldova",373,"Anenii Noi","0265" -"Moldova",373,"Ialoveni","0268" -"Moldova",373,"Hîncesti","0269" -"Moldova",373,"Ocnita","0271" -"Moldova",373,"Soldanesti","0272" -"Moldova",373,"Cantemir","0273" -"Moldova",373,"Cainari","0277" -"Moldova",373,"Grigoriopol","0280" -"Moldova",373,"Camenca","0281" -"Moldova",373,"Bendery","0282" -"Moldova",373,"Tiraspol","0284" -"Moldova",373,"Rîbnita","0286" -"Moldova",373,"Slobozia","0287" -"Moldova",373,"Dubasari","0288" -"Moldova",373,"Ceadîr - Lunga","0291" -"Moldova",373,"Vulcanesti","0293" -"Moldova",373,"Taraclia","0294" -"Moldova",373,"Basarabeasca","0297" -"Moldova",373,"Comrat","0298" -"Moldova",373,"Cahul","0299" -"Moldova",373,"Bendery","0532" -"Moldova",373,"Tiraspol","0533" -"Moldova",373,"Grigoriopol","0540" -"Moldova",373,"Dubasari","0545" -"Moldova",373,"Rybnitsa","0555" -"Moldova",373,"Kamenka","0556" -"Moldova",373,"Slobozia","0557" -"Moldova",373,"Dnestrovsk","0559" -"Monaco",377,"Monaco",9 -"Montenegro",382,"Podgorica","081" -"Montenegro",382,"Kotor","082" -"Montenegro",382,"Niksic","083" -"Montenegro",382,"Bijelo Polje","084" -"Montenegro",382,"Bar","085" -"Montenegro",382,"Cetinje","086" -"Montenegro",382,"Berane","087" -"Montenegro",382,"Herceg Novi","088" -"Montenegro",382,"Pljevlja","089" -"Montserrat",1,"Montserrat","(1+)664" -"Morocco",212,"Casablanca","02" -"Morocco",212,"Rabat","03" -"Myanmar",95,"Yangon (Rangoon)","01" -"Myanmar",95,"Mandalay","02" -"Myanmar",95,"Moulmein","032" -"Myanmar",95,"Pathein","042" -"Myanmar",95,"Sittway (Akyab)","043" -"Myanmar",95,"Hinthada","044" -"Myanmar",95,"Ma U Bin","045" -"Myanmar",95,"Bago","052" -"Myanmar",95,"Prome","053" -"Myanmar",95,"Toungoo","054" -"Myanmar",95,"Thanlyin","056" -"Myanmar",95,"Mawlamyaing","057" -"Myanmar",95,"Hpa-an","058" -"Myanmar",95,"Dawei","059" -"Myanmar",95,"Yenangyaung","060" -"Myanmar",95,"Bagan","061" -"Myanmar",95,"Pakokku","062" -"Myanmar",95,"Magway","063" -"Myanmar",95,"Meiktila","064" -"Myanmar",95,"Minbu","065" -"Myanmar",95,"Kyaukse","066" -"Myanmar",95,"Pyinmana","067" -"Myanmar",95,"Thayet Myo","068" -"Myanmar",95,"Aunglan","069" -"Myanmar",95,"Hakha","070" -"Myanmar",95,"Monywa","071" -"Myanmar",95,"Sagaing","072" -"Myanmar",95,"Kale","073" -"Myanmar",95,"Myitkyina","074" -"Myanmar",95,"Shwebo","075" -"Myanmar",95,"Aungban","081" -"Myanmar",95,"Kyaukme","082" -"Myanmar",95,"Loikaw","083" -"Myanmar",95,"Kyaington","084" -"Myanmar",95,"Pyin Oo Lwin","085" -"Namibia",264,"Windhoek","061" -"Namibia",264,"Okahandja","062" -"Namibia",264,"Omaruru","0628" -"Namibia",264,"Mariental","063" -"Namibia",264,"Koes","0632532" -"Namibia",264,"Warmbad","06342" -"Namibia",264,"Helmeringhausen","06362" -"Namibia",264,"Swakopmund","064" -"Namibia",264,"Ombalantu","065" -"Namibia",264,"Prosit","0658" -"Namibia",264,"Katima-Mulilo","066" -"Namibia",264,"Maltahöhe / Nudaus","06638" -"Namibia",264,"Bralano","06642" -"Namibia",264,"Gibeon","0668" -"Namibia",264,"Otjiwarongo","067" -"Namibia",264,"Oshikango","06751" -"Nepal",977,"Kathmandu","01" -"Nepal",977,"Dhading","010" -"Nepal",977,"S. Palchok","011" -"Nepal",977,"Morang","021" -"Nepal",977,"Mechi","023" -"Nepal",977,"Panchthar","024" -"Nepal",977,"Koshi","025" -"Nepal",977,"Dhankuta","026" -"Nepal",977,"Ilam","027" -"Nepal",977,"Bhojpur","029" -"Nepal",977,"Saptari","031" -"Nepal",977,"Sagarmatha","033" -"Nepal",977,"Udaypur","035" -"Nepal",977,"Khotang","036" -"Nepal",977,"Okhaldhunga","037" -"Nepal",977,"Solukhumbu","038" -"Nepal",977,"Dhanusha","041" -"Nepal",977,"Mahottari","044" -"Nepal",977,"Janakpur","046" -"Nepal",977,"Sindhuli","047" -"Nepal",977,"Dolkha","049" -"Nepal",977,"Parsa","051" -"Nepal",977,"Bara","053" -"Nepal",977,"Narayani","055" -"Nepal",977,"Chitwan","056" -"Nepal",977,"Makwanpur","057" -"Nepal",977,"Kaski","061" -"Nepal",977,"Syangia","063" -"Nepal",977,"Gandaki","064" -"Nepal",977,"Lamjung","066" -"Nepal",977,"Parbat","067" -"Nepal",977,"Dhawalagiri","068" -"Nepal",977,"Myagdi","069" -"Nepal",977,"Rupandehi","071" -"Nepal",977,"Palpa","075" -"Nepal",977,"Kapilvastu","076" -"Nepal",977,"Lumbini","077" -"Nepal",977,"N. Parasi","078" -"Nepal",977,"Gulmi","079" -"Nepal",977,"Banke","081" -"Nepal",977,"Rapti","082" -"Nepal",977,"Bheri","083" -"Nepal",977,"Bardia","084" -"Nepal",977,"Pyuthan","086" -"Nepal",977,"Jumla","087" -"Nepal",977,"Dailekh","089" -"Nepal",977,"Kailali","091" -"Nepal",977,"Seti","092" -"Nepal",977,"Darchula","093" -"Nepal",977,"Doti","094" -"Nepal",977,"Baitadi","095" -"Nepal",977,"Dadeldhura","096" -"Nepal",977,"Achham","097" -"Nepal",977,"Mahakali","099" -"Netherlands",31,"Rotterdam","010" -"Netherlands",31,"Brouwershaven","0111" -"Netherlands",31,"Goes","0113" -"Netherlands",31,"Hulst","0114" -"Netherlands",31,"Terneuzen","0115" -"Netherlands",31,"Oostburg","0117" -"Netherlands",31,"Middelburg","0118" -"Netherlands",31,"Tilburg","013" -"Netherlands",31,"Delft","015" -"Netherlands",31,"Rijen","0161" -"Netherlands",31,"Oosterhout Nb","0162" -"Netherlands",31,"Bergen Op Zoom","0164" -"Netherlands",31,"Roosendaal","0165" -"Netherlands",31,"Tholen","0166" -"Netherlands",31,"Steenbergen Nb","0167" -"Netherlands",31,"Zevenbergen","0168" -"Netherlands",31,"Alphen aan den Rijn","0172" -"Netherlands",31,"Noorden","0173" -"Netherlands",31,"Naaldwijk","0174" -"Netherlands",31,"Ridderkerk","0180" -"Netherlands",31,"Spijkenisse","0181" -"Netherlands",31,"Gouda","0182" -"Netherlands",31,"Gorinchem","0183" -"Netherlands",31,"Sliedrecht","0184" -"Netherlands",31,"Oud-Beijerland","0186" -"Netherlands",31,"Middelharnis","0187" -"Netherlands",31,"Amsterdam","020" -"Netherlands",31,"Den Burg","0222" -"Netherlands",31,"Den Helder","0223" -"Netherlands",31,"Schagen","0224" -"Netherlands",31,"Noord-Scharwoude","0226" -"Netherlands",31,"Middenmeer","0227" -"Netherlands",31,"Enkhuizen","0228" -"Netherlands",31,"Hoorn Nh","0229" -"Netherlands",31,"Haarlem","023" -"Netherlands",31,"Nijmegen","024" -"Netherlands",31,"Beverwijk","0251" -"Netherlands",31,"Hillegom","0252" -"Netherlands",31,"IJmuiden","0255" -"Netherlands",31,"Arnhem","026" -"Netherlands",31,"Weesp","0294" -"Netherlands",31,"Aalsmeer","0297" -"Netherlands",31,"Purmerend","0299" -"Netherlands",31,"Utrecht","030" -"Netherlands",31,"Dieren","0313" -"Netherlands",31,"Doetinchem","0314" -"Netherlands",31,"Terborg","0315" -"Netherlands",31,"Zevenaar","0316" -"Netherlands",31,"Wageningen","0317" -"Netherlands",31,"Bennekom","0318" -"Netherlands",31,"Lelystad","0320" -"Netherlands",31,"Dronten","0321" -"Netherlands",31,"Amersfoort","033" -"Netherlands",31,"Harderwijk","0341" -"Netherlands",31,"Barneveld","0342" -"Netherlands",31,"Doorn","0343" -"Netherlands",31,"Tiel","0344" -"Netherlands",31,"Culemborg","0345" -"Netherlands",31,"Maarssen","0346" -"Netherlands",31,"Vianen Zh","0347" -"Netherlands",31,"Woerden","0348" -"Netherlands",31,"Hilversum","035" -"Netherlands",31,"Almere","036" -"Netherlands",31,"Zwolle","038" -"Netherlands",31,"Eindhoven","040" -"Netherlands",31,"Boxtel","0411" -"Netherlands",31,"Oss","0412" -"Netherlands",31,"Veghel","0413" -"Netherlands",31,"Waalwijk","0416" -"Netherlands",31,"Zaltbommel","0418" -"Netherlands",31,"Maastricht","043" -"Netherlands",31,"Heerlen","045" -"Netherlands",31,"Sittard","046" -"Netherlands",31,"Roermond","0475" -"Netherlands",31,"Venray","0478" -"Netherlands",31,"Schipperskerk","048" -"Netherlands",31,"Bemmel","0481" -"Netherlands",31,"Cuijk","0485" -"Netherlands",31,"Grave","0486" -"Netherlands",31,"Dreumel","0487" -"Netherlands",31,"Zetten","0488" -"Netherlands",31,"Helmond","0492" -"Netherlands",31,"Deurne","0493" -"Netherlands",31,"Weert","0495" -"Netherlands",31,"Eersel","0497" -"Netherlands",31,"Best","0499" -"Netherlands",31,"Groningen","050" -"Netherlands",31,"Veenwouden","0511" -"Netherlands",31,"Drachten","0512" -"Netherlands",31,"Heervenveen","0513" -"Netherlands",31,"Balk","0514" -"Netherlands",31,"Sneek","0515" -"Netherlands",31,"Oosterwolde Fr","0516" -"Netherlands",31,"Franeker","0517" -"Netherlands",31,"Sint Annaparochie","0518" -"Netherlands",31,"Dokkum","0519" -"Netherlands",31,"Steenwijk","0521" -"Netherlands",31,"Meppel","0522" -"Netherlands",31,"Dedemsvaart","0523" -"Netherlands",31,"Ane","0524" -"Netherlands",31,"Elburg","0525" -"Netherlands",31,"Emmeloord","0527" -"Netherlands",31,"Hoogeveen","0528" -"Netherlands",31,"Ommen","0529" -"Netherlands",31,"Enschede","053" -"Netherlands",31,"Coevorden","0534" -"Netherlands",31,"Oldenzaal","0541" -"Netherlands",31,"Winterswijk","0543" -"Netherlands",31,"Groenlo","0544" -"Netherlands",31,"Neede","0545" -"Netherlands",31,"Almelo","0546" -"Netherlands",31,"Goor","0547" -"Netherlands",31,"Rijssen","0548" -"Netherlands",31,"Apeldoorn","055" -"Netherlands",31,"Wolvega","0561" -"Netherlands",31,"West-Terschelling","0562" -"Netherlands",31,"Irnsum","0566" -"Netherlands",31,"Deventer","0570" -"Netherlands",31,"Twello","0571" -"Netherlands",31,"Raalte","0572" -"Netherlands",31,"Lochem","0573" -"Netherlands",31,"Zutphen","0575" -"Netherlands",31,"Uddel","0577" -"Netherlands",31,"Epe","0578" -"Netherlands",31,"Leeuwarden","058" -"Netherlands",31,"Emmen Dr","0591" -"Netherlands",31,"Peelo","0592" -"Netherlands",31,"Beilen","0593" -"Netherlands",31,"Zuidhorn","0594" -"Netherlands",31,"Warffum","0595" -"Netherlands",31,"Appingedam","0596" -"Netherlands",31,"Winschoten","0597" -"Netherlands",31,"Hoogezand","0598" -"Netherlands",31,"Stadskanaal","0599" -"Netherlands",31,"Den Haag","070" -"Netherlands",31,"Leiden","071" -"Netherlands",31,"Alkmaar","072" -"Netherlands",31,"Den Bosch","073" -"Netherlands",31,"Hengelo Ov","074" -"Netherlands",31,"Zaandam","075" -"Netherlands",31,"Breda","076" -"Netherlands",31,"Venlo","077" -"Netherlands",31,"Dordrecht","078" -"Netherlands",31,"Zoetermeer","079" -"Netherlands Antilles",599,"St. Eustatius","03" -"Netherlands Antilles",599,"Saba","04" -"Netherlands Antilles",599,"St. Maarten","05" -"Netherlands Antilles",599,"Bonaire","07" -"Netherlands Antilles",599,"Curaçao","09" -"New Caledonia",687,"Nouméa",23 -"New Caledonia",687,"Nouméa",24 -"New Caledonia",687,"Nouméa",25 -"New Caledonia",687,"Nouméa",26 -"New Caledonia",687,"Nouméa",27 -"New Caledonia",687,"Nouméa",28 -"New Caledonia",687,"Nouméa",29 -"New Caledonia",687,"Boulouparis",35 -"New Caledonia",687,"Boulouparis",41 -"New Caledonia",687,"Belep",42 -"New Caledonia",687,"Boulouparis",43 -"New Caledonia",687,"Boulouparis",44 -"New Caledonia",687,"Lifou",45 -"New Caledonia",687,"Boulouparis",46 -"New Caledonia",687,"Belep",47 -"New Zealand",64,"Antarctica","02" -"New Zealand",64,"South Island (incl. Chatham and Stewart Islands)","03" -"New Zealand",64,"Wellington","04" -"New Zealand",64,"Lower North Island","06" -"New Zealand",64,"Central North Island","07" -"New Zealand",64,"Auckland and upper North Island","09" -"Nicaragua",505,"Managua",2 -"Nicaragua",505,"Léon",3 -"Nicaragua",505,"Managua",4 -"Nicaragua",505,"Granada",5 -"Nicaragua",505,"Esteli",7 -"Nigeria",234,"Lagos","01" -"Nigeria",234,"Ibadan","02" -"Nigeria",234,"Ado-Ekiti","030" -"Nigeria",234,"Ilorin","031" -"Nigeria",234,"New Bussa","033" -"Nigeria",234,"Akure","034" -"Nigeria",234,"Oshogbo","035" -"Nigeria",234,"Ile-Ife","036" -"Nigeria",234,"Ijebu-Ode","037" -"Nigeria",234,"Oyo","038" -"Nigeria",234,"Abeokuta","039" -"Nigeria",234,"Wukari","041" -"Nigeria",234,"Enugu","042" -"Nigeria",234,"Abakaliki","043" -"Nigeria",234,"Makurdi","044" -"Nigeria",234,"Ogoja","045" -"Nigeria",234,"Onitsha","046" -"Nigeria",234,"Lafia","047" -"Nigeria",234,"Awka","048" -"Nigeria",234,"Ikare","050" -"Nigeria",234,"Owo","051" -"Nigeria",234,"Benin","052" -"Nigeria",234,"Warri","053" -"Nigeria",234,"Sapele","054" -"Nigeria",234,"Agbor","055" -"Nigeria",234,"Asaba","056" -"Nigeria",234,"Auchi","057" -"Nigeria",234,"Lokoja","058" -"Nigeria",234,"Okitipupa","059" -"Nigeria",234,"Sokoto","060" -"Nigeria",234,"Kafanchan","061" -"Nigeria",234,"Kaduna","062" -"Nigeria",234,"Gusau","063" -"Nigeria",234,"Kano","064" -"Nigeria",234,"Katsina","065" -"Nigeria",234,"Minna","066" -"Nigeria",234,"Kontagora","067" -"Nigeria",234,"Brinin-Kebbi","068" -"Nigeria",234,"Zaria","069" -"Nigeria",234,"Pankshin","070" -"Nigeria",234,"Azare","071" -"Nigeria",234,"Gombe","072" -"Nigeria",234,"Jos","073" -"Nigeria",234,"Yola","075" -"Nigeria",234,"Maiduguri","076" -"Nigeria",234,"Bauchi","077" -"Nigeria",234,"Hadejia","078" -"Nigeria",234,"Jalingo","079" -"Nigeria",234,"Aba","082" -"Nigeria",234,"Owerri","083" -"Nigeria",234,"Port-Harcourt","084" -"Nigeria",234,"Uyo","085" -"Nigeria",234,"Ahoada","086" -"Nigeria",234,"Calabar","087" -"Nigeria",234,"Umuahia","088" -"Nigeria",234,"Yenogoa","089" -"Nigeria",234,"Abuja","09" -"Niue",683,"Alofi",1 -"Niue",683,"Alofi",3 -"Niue",683,"Alofi",4 -"Norfolk Island",672,"Norfolk Island","03" -"Northern Mariana Islands",1,"Northern Mariana Islands","(1+)670" -"Norway",47,"Oslo",2 -"Norway",47,"Buskerud",31 -"Norway",47,"Buskerud",32 -"Norway",47,"Vestfold conuty",33 -"Norway",47,"Telemark",35 -"Norway",47,"Aust-Agder",37 -"Norway",47,"Vest-Agder",38 -"Norway",47,"Rogaland",51 -"Norway",47,"Rogaland",52 -"Norway",47,"Hordaland",53 -"Norway",47,"Hordaland",55 -"Norway",47,"Hordaland",56 -"Norway",47,"Sogn og Fjordane",57 -"Norway",47,"Oppland",61 -"Norway",47,"Hedmark",62 -"Norway",47,"Akershus",63 -"Norway",47,"Akershus",64 -"Norway",47,"Akershus",66 -"Norway",47,"Akershus",67 -"Norway",47,"Østfold",69 -"Norway",47,"Møre og Romsdal",70 -"Norway",47,"Møre og Romsdal",71 -"Norway",47,"Sør-Trøndelag",72 -"Norway",47,"Sør-Trøndelag",73 -"Norway",47,"Nord-Trøndelag",74 -"Norway",47,"Nordland",75 -"Norway",47,"Nordland",76 -"Norway",47,"Troms",77 -"Norway",47,"Finnmark",78 -"Oman",968,"Dhofar",23 -"Oman",968,"Muscat",24 -"Oman",968,"A Dakhliyah",25 -"Oman",968,"Al Batinah",26 -"Pakistan",92,"Karachi","021" -"Pakistan",92,"Hyderabad","022" -"Pakistan",92,"Tharparkar","0232" -"Pakistan",92,"Mirpur Khas","0233" -"Pakistan",92,"Sanghar","0235" -"Pakistan",92,"Umerkot","0238" -"Pakistan",92,"Naushero Feroze","0242" -"Pakistan",92,"Khairpur","0243" -"Pakistan",92,"Nawabshah","0244" -"Pakistan",92,"Dadu","025" -"Pakistan",92,"Badin","0297" -"Pakistan",92,"Thatta","0298" -"Pakistan",92,"Sahiwal","040" -"Pakistan",92,"Faisalabad","041" -"Pakistan",92,"Lahore","042" -"Pakistan",92,"Okara","044" -"Pakistan",92,"Bhakkar","0453" -"Pakistan",92,"Khushab","0454" -"Pakistan",92,"Pakpattan","0457" -"Pakistan",92,"Mianwali","0459" -"Pakistan",92,"Toba Tek Singh","046" -"Pakistan",92,"Jhang","047" -"Pakistan",92,"Sargodha","048" -"Pakistan",92,"Kasur","049" -"Pakistan",92,"Islamabad","051" -"Pakistan",92,"Sialkot","052" -"Pakistan",92,"Gujrat","053" -"Pakistan",92,"Narowal","0542" -"Pakistan",92,"Chakwal","0543" -"Pakistan",92,"Jhelum","0544" -"Pakistan",92,"Mandi Bahauddin","0546" -"Pakistan",92,"Hafizabad","0547" -"Pakistan",92,"Gujranwala","055" -"Pakistan",92,"Sheikhupura","056" -"Pakistan",92,"Attock","057" -"Pakistan",92,"Rajanpur","0604" -"Pakistan",92,"Layyah","0606" -"Pakistan",92,"Lodhran","0608" -"Pakistan",92,"Multan","061" -"Pakistan",92,"Bahawalpur","062" -"Pakistan",92,"Bahawalnagar","063" -"Pakistan",92,"Dera Ghazi Khan","064" -"Pakistan",92,"Khanewal","065" -"Pakistan",92,"Muzaffargarh","066" -"Pakistan",92,"Vehari","067" -"Pakistan",92,"Rahim Yar Khan","068" -"Pakistan",92,"Sukkur","071" -"Pakistan",92,"Jacobabad","0722" -"Pakistan",92,"Ghotki","0723" -"Pakistan",92,"Shikarpur","0726" -"Pakistan",92,"Larkana","074" -"Pakistan",92,"Quetta","081" -"Pakistan",92,"Zhob","0822" -"Pakistan",92,"Killa Saifullah","0823" -"Pakistan",92,"Loralai","0824" -"Pakistan",92,"Chagai","0825" -"Pakistan",92,"K. Abdullah","0826" -"Pakistan",92,"Musakhel","0828" -"Pakistan",92,"Barkhan","0829" -"Pakistan",92,"Bolan","0832" -"Pakistan",92,"Sibi","0833" -"Pakistan",92,"Dera Bugti","0835" -"Pakistan",92,"Jhal Magsi","0837" -"Pakistan",92,"Jaffarabad","0838" -"Pakistan",92,"Mastung","0843" -"Pakistan",92,"Kalat","0844" -"Pakistan",92,"Kharan","0847" -"Pakistan",92,"Khuzdar","0848" -"Pakistan",92,"Kech","0852" -"Pakistan",92,"Lasbela","0853" -"Pakistan",92,"Panjgur","0855" -"Pakistan",92,"Awaran","0856" -"Pakistan",92,"Gwadar","086" -"Pakistan",92,"Peshawar","091" -"Pakistan",92,"Kohat","0922" -"Pakistan",92,"Nowshera","0923" -"Pakistan",92,"Khyber Agency","0924" -"Pakistan",92,"Hangu","0925" -"Pakistan",92,"Kurram Agency","0926" -"Pakistan",92,"Karak","0927" -"Pakistan",92,"Bannu","0928" -"Pakistan",92,"Malakand","0932" -"Pakistan",92,"Mardan","0937" -"Pakistan",92,"Swabi","0938" -"Pakistan",92,"Buner","0939" -"Pakistan",92,"Bajaur Agency","0942" -"Pakistan",92,"Chitral","0943" -"Pakistan",92,"Dir (upper)","0944" -"Pakistan",92,"Dir (lower)","0945" -"Pakistan",92,"Swat","0946" -"Pakistan",92,"Tank","0963" -"Pakistan",92,"South Waziristan","0965" -"Pakistan",92,"D.I.Khan","0966" -"Pakistan",92,"F.R. Lakki Marwat","0969" -"Pakistan",92,"Abottabad","0992" -"Pakistan",92,"Haripur","0995" -"Pakistan",92,"Shangla","0996" -"Pakistan",92,"Mansehra","0997" -"Pakistan",92,"Kohistan","0998" -"Palau",680,"Sonsorol",255 -"Palau",680,"Angaur",277 -"Palau",680,"Peleliu",345 -"Palau",680,"Koror",488 -"Palau",680,"Ngatpang",535 -"Palau",680,"Aimeliik",544 -"Palau",680,"Airai",587 -"Palau",680,"Ngchesar",622 -"Palau",680,"Melekeok",654 -"Palau",680,"Ngiwal",679 -"Palau",680,"Ngeremlengui",733 -"Palau",680,"Ngardmau",747 -"Palau",680,"Ngaraard",824 -"Palau",680,"Ngarchelong",855 -"Palau",680,"Kayangel",876 -"Palestine",970,"Hebron","02" -"Palestine",970,"Jenin","04" -"Palestine",970,"Gaza","08" -"Palestine",970,"Nablus","09" -"Panama",507,"Ciudad de Panama",2 -"Panama",507,"Ciudad de Panama",3 -"Panama",507,"Colon",4 -"Panama",507,"Bocas del Toro",7 -"Panama",507,"Los Santos",9 -"Papua New Guinea",675,"Port Moresby",30 -"Papua New Guinea",675,"Port Moresby",31 -"Papua New Guinea",675,"Port Moresby",32 -"Papua New Guinea",675,"Port Moresby",33 -"Papua New Guinea",675,"Alotau / Daru / Kerema",34 -"Papua New Guinea",675,"Port Moresby",35 -"Papua New Guinea",675,"Port Moresby",36 -"Papua New Guinea",675,"Port Moresby",37 -"Papua New Guinea",675,"Port Moresby",38 -"Papua New Guinea",675,"Port Moresby",39 -"Papua New Guinea",675,"Lae and Manus / Morobe",45 -"Papua New Guinea",675,"Lae and Manus / Morobe",46 -"Papua New Guinea",675,"Lae / Manus",47 -"Papua New Guinea",675,"Lae and Manus / Morobe",48 -"Papua New Guinea",675,"Lae and Manus / Morobe",49 -"Papua New Guinea",675,"Mt. Hagen",52 -"Papua New Guinea",675,"Mt. Hagen",53 -"Papua New Guinea",675,"Mt. Hagen",54 -"Papua New Guinea",675,"Mt. Hagen",55 -"Papua New Guinea",675,"Mt. Hagen",56 -"Papua New Guinea",675,"Alotau / Daru / Kerema",64 -"Papua New Guinea",675,"Goroka",70 -"Papua New Guinea",675,"Goroka",71 -"Papua New Guinea",675,"Goroka",72 -"Papua New Guinea",675,"Goroka",73 -"Papua New Guinea",675,"Goroka",74 -"Papua New Guinea",675,"Madang / Wewak",84 -"Papua New Guinea",675,"Madang / Wewak",85 -"Papua New Guinea",675,"Madang / Wewak",86 -"Papua New Guinea",675,"Madang / Wewak",87 -"Papua New Guinea",675,"Arawa / Rabaul",95 -"Papua New Guinea",675,"Arawa / Rabaul",96 -"Papua New Guinea",675,"Arawa / Rabaul",97 -"Papua New Guinea",675,"Arawa / Rabaul",98 -"Paraguay",595,"Asuncion","021" -"Paraguay",595,"Ita","024" -"Paraguay",595,"Villeta","025" -"Paraguay",595,"Villa Hayes","026" -"Paraguay",595,"Benjamin Aceval","0271" -"Paraguay",595,"Ypane","0275" -"Paraguay",595,"Capiata","028" -"Paraguay",595,"Aregua","0291" -"Paraguay",595,"Nueva Italia","0292" -"Paraguay",595,"Guarambare","0293" -"Paraguay",595,"Itaugua","0294" -"Paraguay",595,"Jose Augusto Saldivar","0295" -"Paraguay",595,"Concepcion","031" -"Paraguay",595,"Horqueta","032" -"Paraguay",595,"Loreto","033" -"Paraguay",595,"Corpus Christi","0345" -"Paraguay",595,"Valle Mi","0351" -"Paraguay",595,"Pedro Juan Caballero","036" -"Paraguay",595,"Capitan Bado","037" -"Paraguay",595,"Bella Vista Norte","038" -"Paraguay",595,"Yby Ja'U","039" -"Paraguay",595,"Itacurubi Del Rosario","041" -"Paraguay",595,"General Elizardo Aquino","0418" -"Paraguay",595,"San Pedro Del Ycua Mandyju","042" -"Paraguay",595,"San Estanislao","043" -"Paraguay",595,"Villa Del Rosario","044" -"Paraguay",595,"Colonia Volendam","0451" -"Paraguay",595,"Capiibary","0453" -"Paraguay",595,"Salto Del Guaira","046" -"Paraguay",595,"Colonia Nueva Esperanza","0464" -"Paraguay",595,"Puente Kyha","047" -"Paraguay",595,"Curuguaty","048" -"Paraguay",595,"Caacupe","0511" -"Paraguay",595,"San Bernardino","0512" -"Paraguay",595,"Ypacarai","0513" -"Paraguay",595,"Eusebio Ayala","0514" -"Paraguay",595,"Piribebuy","0515" -"Paraguay",595,"Tobati","0516" -"Paraguay",595,"Caraguatay","0517" -"Paraguay",595,"Itacurubi De La Cordillera","0518" -"Paraguay",595,"Pirayu","0519" -"Paraguay",595,"Atyra","0520" -"Paraguay",595,"Coronel Oviedo","0521" -"Paraguay",595,"Caaguazu","0522" -"Paraguay",595,"San Jose De Los Arroyos","0523" -"Paraguay",595,"Juan Manuel Frutos","0524" -"Paraguay",595,"Jose Domingo Ocampos","0527" -"Paraguay",595,"Juan Eulogio Estigarribia","0528" -"Paraguay",595,"Emboscada","0529" -"Paraguay",595,"Paraguari","0531" -"Paraguay",595,"Carapegua","0532" -"Paraguay",595,"Yaguaron","0533" -"Paraguay",595,"Ybycui","0534" -"Paraguay",595,"Acahay","0535" -"Paraguay",595,"Quiindy","0536" -"Paraguay",595,"La Colmena","0537" -"Paraguay",595,"San Roque Gonzalez De Santacruz","0538" -"Paraguay",595,"Sapukai","0539" -"Paraguay",595,"Villarrica","0541" -"Paraguay",595,"Caazapa","0542" -"Paraguay",595,"San Juan Nepomuceno","0544" -"Paraguay",595,"Yegros","0545" -"Paraguay",595,"Vicente Ignacio Iturbe","0546" -"Paraguay",595,"Yuty","0547" -"Paraguay",595,"Colonia Independencia","0548" -"Paraguay",595,"Yataity","0549" -"Paraguay",595,"Mauricio Jose Troche","0550" -"Paraguay",595,"Paso Yobay","0552" -"Paraguay",595,"Tebicuary","0553" -"Paraguay",595,"Itape","0554" -"Paraguay",595,"Ciudad Del Este","061" -"Paraguay",595,"Hernandarias","0631" -"Paraguay",595,"Colonia Yguazu","0632" -"Paraguay",595,"Cedrales","0633" -"Paraguay",595,"Cargil","0644" -"Paraguay",595,"Mayor Otaño","0671" -"Paraguay",595,"Kressburgo","0672" -"Paraguay",595,"Santa Rita","0673" -"Paraguay",595,"Juan E. O'Leary","0674" -"Paraguay",595,"Juan Leon Mallorquin","0675" -"Paraguay",595,"Naranjal","0676" -"Paraguay",595,"San Alberto","0677" -"Paraguay",595,"Santa Rosa Del Monday","0678" -"Paraguay",595,"Capitan Miranda","071" -"Paraguay",595,"Colonia Obligado","0717" -"Paraguay",595,"Capitan Miranda","0718" -"Paraguay",595,"Ayolas","072" -"Paraguay",595,"San Cosme","073" -"Paraguay",595,"General Delgado","0740" -"Paraguay",595,"Coronel Bogado","0741" -"Paraguay",595,"San Pedro Del Parana","0742" -"Paraguay",595,"General Artigas","0743" -"Paraguay",595,"Hoenau","075" -"Paraguay",595,"Colonia Fram","0761" -"Paraguay",595,"Carmen Del Parana","0762" -"Paraguay",595,"La Paz","0763" -"Paraguay",595,"Maria Auxiliadora","0764" -"Paraguay",595,"Bella Vista Sur","0767" -"Paraguay",595,"Pirapo","0768" -"Paraguay",595,"Alberdi","0780" -"Paraguay",595,"Santa María / Misiones","0781" -"Paraguay",595,"Santiago","0782" -"Paraguay",595,"San Miguel / Misiones","0783" -"Paraguay",595,"San Juan Ñeembucú","0784" -"Paraguay",595,"Paso De Patria","0785" -"Paraguay",595,"General Diaz","0787" -"Paraguay",595,"San Juan Bautista / Misiones","081" -"Paraguay",595,"San Ignacio / Misiones","082" -"Paraguay",595,"Villa Florida","083" -"Paraguay",595,"Santa Rosa / Misiones","0858" -"Paraguay",595,"Pilar","086" -"Paraguay",595,"Juan Eulogio Estigarribia / Fixed Rural Cellular","0871" -"Paraguay",595,"Bella Vista Sur / Fixed Rural Cellular","0873" -"Paraguay",595,"Filadelfia","091" -"Paraguay",595,"Colonia Loma Plata","0918" -"Paraguay",595,"Asuncion (Rural)","092" -"Paraguay",595,"Pozo Colorado (Rural)","093" -"Paraguay",595,"Filadelfia (Rural)","094" -"Paraguay",595,"Colonia Neuland","0951" -"Paraguay",595,"Mariscal Estigarribia","0952" -"Peru",51,"Lima","01" -"Peru",51,"Amazonas","041" -"Peru",51,"San Martín","042" -"Peru",51,"Ancash","043" -"Peru",51,"La Libertad","044" -"Peru",51,"Puno","051" -"Peru",51,"Tacna","052" -"Peru",51,"Moquegua","053" -"Peru",51,"Arequipa","054" -"Peru",51,"Ica","056" -"Peru",51,"Ucayali","061" -"Peru",51,"Huánuco","062" -"Peru",51,"Pasco","063" -"Peru",51,"Junín","064" -"Peru",51,"Loreto","065" -"Peru",51,"Ayacucho","066" -"Peru",51,"Huancavelica","067" -"Peru",51,"Tumbes","072" -"Peru",51,"Piura","073" -"Peru",51,"Lambayeque","074" -"Peru",51,"Cajamarca","076" -"Peru",51,"Madre de Dios","082" -"Peru",51,"Apurímac","083" -"Peru",51,"Cusco","084" -"Philippines",63,"Metro Manila","02" -"Philippines",63,"Cebu","032" -"Philippines",63,"Cebu","03230" -"Philippines",63,"Iloilo","033" -"Philippines",63,"Iloilo","03397" -"Philippines",63,"Negros Occidental","034" -"Philippines",63,"Negros Occidental","03461" -"Philippines",63,"Negros Occidental","034691" -"Philippines",63,"Negros Oriental","035" -"Philippines",63,"Aklan","036" -"Philippines",63,"Bohol","038" -"Philippines",63,"Quezon","042" -"Philippines",63,"Quezon","04235" -"Philippines",63,"Quezon","04244" -"Philippines",63,"Mauban","04251" -"Philippines",63,"Tiaong","04264" -"Philippines",63,"Quezon","042793" -"Philippines",63,"Batangas","043" -"Philippines",63,"Batangas","04396" -"Philippines",63,"Bulacan","044" -"Philippines",63,"Bulacan","04422" -"Philippines",63,"Saint Francis","04463" -"Philippines",63,"Pampanga","045" -"Philippines",63,"Pampanga","04593" -"Philippines",63,"Macabebe","04594" -"Philippines",63,"Pampanga","04597" -"Philippines",63,"Cavite","046" -"Philippines",63,"Bataan","047" -"Philippines",63,"Zambales","04761" -"Philippines",63,"San Narciso","04765" -"Philippines",63,"Palawan","048" -"Philippines",63,"Laguna","049" -"Philippines",63,"Laguna","049305" -"Philippines",63,"Laguna","049560" -"Philippines",63,"Albay","052" -"Philippines",63,"Albay","05221" -"Philippines",63,"Leyte","053" -"Philippines",63,"Camarines Sur","054" -"Philippines",63,"Camarines Sur","05446" -"Philippines",63,"Eastern & Northern Samar","055" -"Philippines",63,"Sorsogon","056" -"Philippines",63,"Zamboanga del Sur","062" -"Philippines",63,"Lanao del Norte","063" -"Philippines",63,"Maguindanao","064" -"Philippines",63,"North Cotabato","06422" -"Philippines",63,"Kidapawan","06423" -"Philippines",63,"Zamboanga del Norte","065" -"Philippines",63,"Tawi-Tawi","068" -"Philippines",63,"La Union","072" -"Philippines",63,"Benguet","074" -"Philippines",63,"Pangasinan","075" -"Philippines",63,"Ilocos Sur","077" -"Philippines",63,"Isabela","078" -"Philippines",63,"Davao del Sur","082" -"Philippines",63,"South Cotabato","083" -"Philippines",63,"Davao del Norte","084" -"Philippines",63,"Agusan del Norte","085" -"Philippines",63,"Surigao del Norte","086" -"Philippines",63,"Surigao del Sur","08622" -"Philippines",63,"Davao Oriental","087" -"Philippines",63,"Misamis Occidental","088" -"Philippines",63,"Cagayan de Oro City","08822" -"Philippines",63,"Misamis Occidental","088344" -"Philippines",63,"Misamis Oriental","08842" -"Philippines",63,"Bukidnon","08851" -"Philippines",63,"Damilag","08853" -"Philippines",63,"San Pablo","093" -"Poland",48,"Kraków","012" -"Poland",48,"Krosno","013" -"Poland",48,"Tarnów","014" -"Poland",48,"Tarnobrzeg","015" -"Poland",48,"Przemysl","016" -"Poland",48,"Rzeszów","017" -"Poland",48,"Nowy Sacz","018" -"Poland",48,"Warszawa","022" -"Poland",48,"Ciechanów","023" -"Poland",48,"Plock","024" -"Poland",48,"Siedlce","025" -"Poland",48,"Ostroleka","029" -"Poland",48,"Katowice","032" -"Poland",48,"Bielsko Biala","033" -"Poland",48,"Czestochowa","034" -"Poland",48,"Kielce","041" -"Poland",48,"Lódz","042" -"Poland",48,"Sieradz","043" -"Poland",48,"Piotrków Trybunalski","044" -"Poland",48,"Skierniewice","046" -"Poland",48,"Radom","048" -"Poland",48,"Bydgoszcz","052" -"Poland",48,"Wloclawek","054" -"Poland",48,"Elblag","055" -"Poland",48,"Torun","056" -"Poland",48,"Gdansk","058" -"Poland",48,"Slupsk","059" -"Poland",48,"Leszno","060" -"Poland",48,"Poznan","061" -"Poland",48,"Kalisz","062" -"Poland",48,"Konin","063" -"Poland",48,"Leszno","065" -"Poland",48,"Pila","067" -"Poland",48,"Zielona Góra","068" -"Poland",48,"Wroclaw","071" -"Poland",48,"Walbrzych","074" -"Poland",48,"Jelenia Góra","075" -"Poland",48,"Legnica","076" -"Poland",48,"Opole","077" -"Poland",48,"Lublin","081" -"Poland",48,"Chelm","082" -"Poland",48,"Biala Podlaska","083" -"Poland",48,"Zamosc","084" -"Poland",48,"Bialystok","085" -"Poland",48,"Lomza","086" -"Poland",48,"Suwalki","087" -"Poland",48,"Olsztyn","089" -"Poland",48,"Szczecin","091" -"Poland",48,"Koszalin","094" -"Poland",48,"Gorzów Wielkopolski","095" -"Portugal",351,"Lisboa",21 -"Portugal",351,"Porto",22 -"Portugal",351,"Mealhada",231 -"Portugal",351,"Viseu",232 -"Portugal",351,"Figueira da Foz",233 -"Portugal",351,"Aveiro",234 -"Portugal",351,"Arganil",235 -"Portugal",351,"Pombal",236 -"Portugal",351,"Seia",238 -"Portugal",351,"Coimbra",239 -"Portugal",351,"Abrantes",241 -"Portugal",351,"Ponte de Sôr",242 -"Portugal",351,"Santarém",243 -"Portugal",351,"Leiria",244 -"Portugal",351,"Portalegre",245 -"Portugal",351,"Torres Novas",249 -"Portugal",351,"Valença",251 -"Portugal",351,"V. N. de Famalicão",252 -"Portugal",351,"Braga",253 -"Portugal",351,"Peso da Régua",254 -"Portugal",351,"Penafiel",255 -"Portugal",351,"S. João da Madeira",256 -"Portugal",351,"Viana do Castelo",258 -"Portugal",351,"Vila Real",259 -"Portugal",351,"Torres Vedras",261 -"Portugal",351,"Caldas da Raínha",262 -"Portugal",351,"V. Franca de Xira",263 -"Portugal",351,"Setúbal",265 -"Portugal",351,"évora",266 -"Portugal",351,"Estremoz",268 -"Portugal",351,"Santiago do Cacém",269 -"Portugal",351,"Guarda",271 -"Portugal",351,"Castelo Branco",272 -"Portugal",351,"Bragança",273 -"Portugal",351,"Proença-a-Nova",274 -"Portugal",351,"Covilhã",275 -"Portugal",351,"Chaves",276 -"Portugal",351,"Idanha-a-Nova",277 -"Portugal",351,"Mirandela",278 -"Portugal",351,"Moncorvo",279 -"Portugal",351,"Tavira",281 -"Portugal",351,"Portimão",282 -"Portugal",351,"Odemira",283 -"Portugal",351,"Beja",284 -"Portugal",351,"Moura",285 -"Portugal",351,"Castro Verde",286 -"Portugal",351,"Faro",289 -"Portugal",351,"Funchal",291 -"Portugal",351,"Horta",292 -"Portugal",351,"Angra do Heroísmo",295 -"Portugal",351,"Ponta Delgada",296 -"Puerto Rico",1,"Puerto Rico","(1+)787" -"Puerto Rico",1,"Puerto Rico","(1+)939" -"Réunion",262,"Réunion",262 -"Romania",40,"Bucuresti (Bucharest)","021" -"Romania",40,"Suceava","0230" -"Romania",40,"Botosani","0231" -"Romania",40,"Iasi","0232" -"Romania",40,"Manastirea Neamt","0233" -"Romania",40,"Bacau","0234" -"Romania",40,"Vaslui","0235" -"Romania",40,"Galati","0236" -"Romania",40,"Adjud","0237" -"Romania",40,"Buzau","0238" -"Romania",40,"Braila","0239" -"Romania",40,"Tulcea","0240" -"Romania",40,"Constanta","0241" -"Romania",40,"Calarasi","0242" -"Romania",40,"Amara","0243" -"Romania",40,"Prahova","0244" -"Romania",40,"Dambovita","0245" -"Romania",40,"Giurgiu","0246" -"Romania",40,"Teleorman","0247" -"Romania",40,"Arges","0248" -"Romania",40,"Olt","0249" -"Romania",40,"Valcea","0250" -"Romania",40,"Dolj","0251" -"Romania",40,"Mehedinti","0252" -"Romania",40,"Gorj","0253" -"Romania",40,"Hunedoara","0254" -"Romania",40,"Caras - Severin","0255" -"Romania",40,"Timis","0256" -"Romania",40,"Arad","0257" -"Romania",40,"Alba","0258" -"Romania",40,"Bihor","0259" -"Romania",40,"Salaj","0260" -"Romania",40,"Satu Mare","0261" -"Romania",40,"Maramures","0262" -"Romania",40,"Bistrita","0263" -"Romania",40,"Cluj","0264" -"Romania",40,"Mures","0265" -"Romania",40,"Harghita","0266" -"Romania",40,"Covasna","0267" -"Romania",40,"Brasov","0268" -"Romania",40,"Sibiu","0269" -"Romania",40,"Bucuresti (Bucharest)","031" -"Romania",40,"Suceava","0330" -"Romania",40,"Botosani","0331" -"Romania",40,"Iasi","0332" -"Romania",40,"Manastirea Neamt","0333" -"Romania",40,"Bacau","0334" -"Romania",40,"Vaslui","0335" -"Romania",40,"Galati","0336" -"Romania",40,"Adjud","0337" -"Romania",40,"Buzau","0338" -"Romania",40,"Braila","0339" -"Romania",40,"Tulcea","0340" -"Romania",40,"Constanta","0341" -"Romania",40,"Calarasi","0342" -"Romania",40,"Amara","0343" -"Romania",40,"Prahova","0344" -"Romania",40,"Dambovita","0345" -"Romania",40,"Giurgiu","0346" -"Romania",40,"Teleorman","0347" -"Romania",40,"Arges","0348" -"Romania",40,"Olt","0349" -"Romania",40,"Valcea","0350" -"Romania",40,"Dolj","0351" -"Romania",40,"Mehedinti","0352" -"Romania",40,"Gorj","0353" -"Romania",40,"Hunedoara","0354" -"Romania",40,"Caras - Severin","0355" -"Romania",40,"Timis","0356" -"Romania",40,"Arad","0357" -"Romania",40,"Alba","0358" -"Romania",40,"Bihor","0359" -"Romania",40,"Salaj","0360" -"Romania",40,"Satu Mare","0361" -"Romania",40,"Maramures","0362" -"Romania",40,"Bistrita","0363" -"Romania",40,"Cluj","0364" -"Romania",40,"Mures","0365" -"Romania",40,"Harghita","0366" -"Romania",40,"Covasna","0367" -"Romania",40,"Brasov","0368" -"Romania",40,"Sibiu","0369" -"Russian Federation",7,"Buryatia region","(8)301" -"Russian Federation",7,"Chita region","(8)302" -"Russian Federation",7,"Udmurtija","(8)341" -"Russian Federation",7,"Izhevsk","(8)3412" -"Russian Federation",7,"Perm' region","(8)342" -"Russian Federation",7,"Perm'","(8)3422" -"Russian Federation",7,"Ekaterinburg region","(8)343" -"Russian Federation",7,"Ekaterinburg","(8)3432" -"Russian Federation",7,"Nizhniy Tagil","(8)3435" -"Russian Federation",7,"Tyumen region","(8)345" -"Russian Federation",7,"Tumen","(8)3452" -"Russian Federation",7,"Khanty-Mansiysky region","(8)346" -"Russian Federation",7,"Surgut","(8)3462" -"Russian Federation",7,"Nizhnevartovsk","(8)3466" -"Russian Federation",7,"Khanty-Mansiysk","(8)34671" -"Russian Federation",7,"Bashkirskaya rep.","(8)347" -"Russian Federation",7,"Ufa","(8)3472" -"Russian Federation",7,"Tumen region","(8)349" -"Russian Federation",7,"Chelyabinsk region","(8)351" -"Russian Federation",7,"Chelyabinsk","(8)3512" -"Russian Federation",7,"Magnitogorsk","(8)3519" -"Russian Federation",7,"Kurgan region","(8)352" -"Russian Federation",7,"Orenburg region","(8)353" -"Russian Federation",7,"Orenburg","(8)3532" -"Russian Federation",7,"Mary region","(8)370" -"Russian Federation",7,"Omsk region","(8)381" -"Russian Federation",7,"Omsk","(8)3812" -"Russian Federation",7,"Tomsk region","(8)382" -"Russian Federation",7,"Tomsk","(8)3822" -"Russian Federation",7,"Novosibirsk region","(8)383" -"Russian Federation",7,"Novosibirsk","(8)3832" -"Russian Federation",7,"Kemerovo region","(8)384" -"Russian Federation",7,"Kemerovo","(8)3842" -"Russian Federation",7,"Novokuznetsk","(8)3843" -"Russian Federation",7,"Altayskiy region","(8)385" -"Russian Federation",7,"Barnaul","(8)3852" -"Russian Federation",7,"Gorno-Altayskaya region","(8)388" -"Russian Federation",7,"Khakasskaya region","(8)390" -"Russian Federation",7,"Abakan","(8)39022" -"Russian Federation",7,"Krasnoyarsk region","(8)391" -"Russian Federation",7,"Krasnoyarsk","(8)3912" -"Russian Federation",7,"Tuva region","(8)394" -"Russian Federation",7,"Irkutsk region","(8)395" -"Russian Federation",7,"Irkutsk","(8)3952" -"Russian Federation",7,"Zheleznogorsk-Ilimsky","(8)39566" -"Russian Federation",7,"Kaliningrad region","(8)401" -"Russian Federation",7,"Kaliningrad","(8)4012" -"Russian Federation",7,"Yakutsk region","(8)411" -"Russian Federation",7,"Yakutsk","(8)4112" -"Russian Federation",7,"Mirny (Yakutskiy region)","(8)41136" -"Russian Federation",7,"Nerungi","(8)41147" -"Russian Federation",7,"Magadan region","(8)413" -"Russian Federation",7,"Magadan","(8)4132" -"Russian Federation",7,"Kamchatka region","(8)415" -"Russian Federation",7,"Petropavlovsk-Kamchatskiy","(8)4152" -"Russian Federation",7,"Amur region","(8)416" -"Russian Federation",7,"Blagoveshensk","(8)4162" -"Russian Federation",7,"Tynda","(8)41656" -"Russian Federation",7,"Khabarovsk region","(8)421" -"Russian Federation",7,"Khabarovsk","(8)4212" -"Russian Federation",7,"Komsomolsk-na-Amure","(8)42172" -"Russian Federation",7,"Primorsky region","(8)423" -"Russian Federation",7,"Vladivostok","(8)4232" -"Russian Federation",7,"Ussuriysk","(8)42341" -"Russian Federation",7,"Nakhodka","(8)42366" -"Russian Federation",7,"Sakhalin region","(8)424" -"Russian Federation",7,"Uzhno-Sakhalinsk","(8)4242" -"Russian Federation",7,"Evreyskaya region","(8)426" -"Russian Federation",7,"Chukotskyi region","(8)427" -"Russian Federation",7,"Anadyr'","(8)4272" -"Russian Federation",7,"Kulyab region","(8)431" -"Russian Federation",7,"Krasnovodsk region","(8)432" -"Russian Federation",7,"Kurgan-Tyubinsk region","(8)433" -"Russian Federation",7,"Navoi region","(8)436" -"Russian Federation",7,"Kursk region","(8)471" -"Russian Federation",7,"Kursk","(8)4712" -"Russian Federation",7,"Belgorod region","(8)472" -"Russian Federation",7,"Belgorod","(8)4722" -"Russian Federation",7,"Voronezh region","(8)473" -"Russian Federation",7,"Voronezh","(8)4732" -"Russian Federation",7,"Lipetsk region","(8)474" -"Russian Federation",7,"Lipetsk","(8)4742" -"Russian Federation",7,"Tambov region","(8)475" -"Russian Federation",7,"Tambov","(8)4752" -"Russian Federation",7,"Smolensk region","(8)481" -"Russian Federation",7,"Smolensk","(8)4812" -"Russian Federation",7,"Tver region","(8)482" -"Russian Federation",7,"Tver","(8)4822" -"Russian Federation",7,"Bryansk region","(8)483" -"Russian Federation",7,"Bryansk","(8)4832" -"Russian Federation",7,"Kaluga region","(8)484" -"Russian Federation",7,"Kaluga","(8)4842" -"Russian Federation",7,"Yaroslavl' region","(8)485" -"Russian Federation",7,"Yaroslavl'","(8)4852" -"Russian Federation",7,"Rybinsk","(8)4855" -"Russian Federation",7,"Orel region","(8)486" -"Russian Federation",7,"Orel","(8)4862" -"Russian Federation",7,"Tula region","(8)487" -"Russian Federation",7,"Tula","(8)4872" -"Russian Federation",7,"Ryazan' region","(8)491" -"Russian Federation",7,"Ryazan'","(8)4912" -"Russian Federation",7,"Vladimir region","(8)492" -"Russian Federation",7,"Vladimir","(8)4922" -"Russian Federation",7,"Ivanovo region","(8)493" -"Russian Federation",7,"Ivanovo","(8)4932" -"Russian Federation",7,"Kostroma region","(8)494" -"Russian Federation",7,"Kostroma","(8)4942" -"Russian Federation",7,"Moscow","(8)495" -"Russian Federation",7,"Moscow region","(8)496" -"Russian Federation",7,"Taldom","(8)49620" -"Russian Federation",7,"Dubna","(8)49621" -"Russian Federation",7,"Dmitrov","(8)49622" -"Russian Federation",7,"Klin","(8)49624" -"Russian Federation",7,"Solnechnogorsk","(8)49626" -"Russian Federation",7,"Ruza","(8)49627" -"Russian Federation",7,"Lotoshino","(8)49628" -"Russian Federation",7,"Comm. networtk Kalita","(8)49630" -"Russian Federation",7,"Istra","(8)49631" -"Russian Federation",7,"Zvenigorod","(8)49632" -"Russian Federation",7,"Golitsino","(8)49633" -"Russian Federation",7,"Naro-Fominsk","(8)49634" -"Russian Federation",7,"Volokolamsk","(8)49636" -"Russian Federation",7,"Shakhovsk region","(8)49637" -"Russian Federation",7,"Mozhaisk","(8)49638" -"Russian Federation",7,"Egoryevsk","(8)49640" -"Russian Federation",7,"Orekhovo-Zuevo","(8)49641" -"Russian Federation",7,"Orekhovo-Zuevo","(8)49642" -"Russian Federation",7,"Pavlovskiy-Posad","(8)49643" -"Russian Federation",7,"Voskresensk","(8)49644" -"Russian Federation",7,"Shatura","(8)49645" -"Russian Federation",7,"Ramenskoe","(8)49646" -"Russian Federation",7,"Zhukovsky","(8)49648" -"Russian Federation",7,"Commer commun","(8)49649" -"Russian Federation",7,"Noginsk","(8)49651" -"Russian Federation",7,"Tchernogolovka","(8)49652" -"Russian Federation",7,"Pushkino","(8)49653" -"Russian Federation",7,"Sergiev Posad","(8)49654" -"Russian Federation",7,"Schyolkovo","(8)49656" -"Russian Federation",7,"Elektrostal","(8)49657" -"Russian Federation",7,"Kolomna","(8)49661" -"Russian Federation",7,"Lukhovitsy","(8)49663" -"Russian Federation",7,"Stupino","(8)49664" -"Russian Federation",7,"Zaraysk","(8)49666" -"Russian Federation",7,"Serebryanye Prudy","(8)49667" -"Russian Federation",7,"Kashira","(8)49669" -"Russian Federation",7,"Ozyory","(8)49670" -"Russian Federation",7,"Chekhov","(8)49672" -"Russian Federation",7,"Serpukhov","(8)49673" -"Russian Federation",7,"Podolsk","(8)49675" -"Russian Federation",7,"Klimovsk","(8)49676" -"Russian Federation",7,"Serpukhov","(8)49677" -"Russian Federation",7,"Domodedovo","(8)49679" -"Russian Federation",7,"MCC","(8)49690" -"Russian Federation",7,"Moscow (suburban)","(8)498" -"Russian Federation",7,"Moscow (region)","(8)499" -"Russian Federation",7,"Pskov region","(8)811" -"Russian Federation",7,"Pskov","(8)8112" -"Russian Federation",7,"St Petersburg","(8)812" -"Russian Federation",7,"Leningrad region","(8)813" -"Russian Federation",7,"Karelskaya region","(8)814" -"Russian Federation",7,"Petrozavodsk","(8)8142" -"Russian Federation",7,"Murmansk region","(8)815" -"Russian Federation",7,"Murmansk","(8)8152" -"Russian Federation",7,"Novgorod region","(8)816" -"Russian Federation",7,"Novgorod Velikiy","(8)8162" -"Russian Federation",7,"Vologda region","(8)817" -"Russian Federation",7,"Vologda","(8)8172" -"Russian Federation",7,"Arkhangelsk region","(8)818" -"Russian Federation",7,"Arkhangelsk","(8)8182" -"Russian Federation",7,"Severodvinsk","(8)81842" -"Russian Federation",7,"Cherepovets","(8)820" -"Russian Federation",7,"Comy","(8)821" -"Russian Federation",7,"Syktyvkar","(8)8212" -"Russian Federation",7,"Nizhniy Novgorod region","(8)831" -"Russian Federation",7,"Nizhniy Novgorod","(8)8312" -"Russian Federation",7,"Kirov region","(8)833" -"Russian Federation",7,"Kirov","(8)8332" -"Russian Federation",7,"Mordovia region","(8)834" -"Russian Federation",7,"Chuvashija region","(8)835" -"Russian Federation",7,"Cheboksary","(8)8352" -"Russian Federation",7,"Marriyskaya region","(8)836" -"Russian Federation",7,"Penza region","(8)841" -"Russian Federation",7,"Penza","(8)8412" -"Russian Federation",7,"Ulyanovsk region","(8)842" -"Russian Federation",7,"Ulianovsk","(8)8422" -"Russian Federation",7,"Tatarstan","(8)843" -"Russian Federation",7,"Kazan","(8)8432" -"Russian Federation",7,"Volgograd region","(8)844" -"Russian Federation",7,"Volgograd","(8)8442" -"Russian Federation",7,"Saratov region","(8)845" -"Russian Federation",7,"Saratov","(8)8452" -"Russian Federation",7,"Samara region","(8)846" -"Russian Federation",7,"Samara","(8)8462" -"Russian Federation",7,"Kalmytskija region","(8)847" -"Russian Federation",7,"Elista","(8)8472" -"Russian Federation",7,"Tolyatty region","(8)848" -"Russian Federation",7,"Tolyatty","(8)8482" -"Russian Federation",7,"Astrakhan region","(8)851" -"Russian Federation",7,"Astrakhan","(8)8512" -"Russian Federation",7,"Naberezhnye Chelny","(8)855" -"Russian Federation",7,"Krasnodar region","(8)861" -"Russian Federation",7,"Krasnodar","(8)8612" -"Russian Federation",7,"Novorossiysk","(8)8617" -"Russian Federation",7,"Sochy","(8)862" -"Russian Federation",7,"Rostov region","(8)863" -"Russian Federation",7,"Rostov -on-Don","(8)8632" -"Russian Federation",7,"Novocherkassk","(8)86352" -"Russian Federation",7,"Stavropol region","(8)865" -"Russian Federation",7,"Stavropol","(8)8652" -"Russian Federation",7,"Kabardino-Balkaria","(8)866" -"Russian Federation",7,"Severnaya Osetia","(8)867" -"Russian Federation",7,"Checheno-Ingushetia","(8)871" -"Russian Federation",7,"Dagestan","(8)872" -"Russian Federation",7,"Makhachkala","(8)8722" -"Russian Federation",7,"Ingushetia","(8)873" -"Russian Federation",7,"Adigeya","(8)877" -"Russian Federation",7,"Karachaevo-Cherkessia","(8)878" -"Russian Federation",7,"Pyatigorsk","(8)879" -"Russian Federation",7,"Yuzhnaya Osetia","(8)884" -"Russian Federation",7,"Armenia","(8)885" -"Russian Federation",7,"Nakhichevan","(8)891" -"Russian Federation",7,"Azerbaijan","(8)892" -"Russian Federation",7,"Nagorny Karabakh","(8)893" -"Russian Federation",7,"Guandzha","(8)895" -"Saint Kitts and Nevis",1,"Saint Kitts and Nevis","(1+)869" -"Saint Lucia",1,"Saint Lucia","(1+)758" -"Saint Vincent and the Grenadines",1,"Saint Vincent and the Grenadines","(1+)784" -"San Marino",378,"San Marino",0 -"San Marino",378,"San Marino",6 -"San Marino",378,"San Marino",7 -"San Marino",378,"San Marino",8 -"San Marino",378,"San Marino",9 -"São Tome and Principe",239,"São Tome",2 -"Saudi Arabia",966,"Riyadh","01" -"Saudi Arabia",966,"Makkah","02" -"Saudi Arabia",966,"Dammam","03" -"Saudi Arabia",966,"Madinah","04" -"Saudi Arabia",966,"Hail","06" -"Saudi Arabia",966,"Abha","07" -"Senegal",221,"Dakar",8 -"Senegal",221,"Outside Dakar",9 -"Serbia",381,"Pirot","010" -"Serbia",381,"Beograd","011" -"Serbia",381,"Pozarevac","012" -"Serbia",381,"Pancevo","013" -"Serbia",381,"Valjevo","014" -"Serbia",381,"Sabac","015" -"Serbia",381,"Leskovac","016" -"Serbia",381,"Vranje","017" -"Serbia",381,"Nis","018" -"Serbia",381,"Zajecar","019" -"Serbia",381,"Novi Pazar","020" -"Serbia",381,"Novi Sad","021" -"Serbia",381,"Sremska Mitrovica","022" -"Serbia",381,"Zrenjanin","023" -"Serbia",381,"Kikinda","0230" -"Serbia",381,"Subotica","024" -"Serbia",381,"Sombor","025" -"Serbia",381,"Smederevo","026" -"Serbia",381,"Prokuplje","027" -"Serbia",381,"Kosovska Mitrovica","028" -"Serbia",381,"Gnjilane","0280" -"Serbia",381,"Prizren","029" -"Serbia",381,"Urosevac","0290" -"Serbia",381,"Bor","030" -"Serbia",381,"Uzice","031" -"Serbia",381,"Cacak","032" -"Serbia",381,"Prijepolije","033" -"Serbia",381,"Kragujevac","034" -"Serbia",381,"Jagodina","035" -"Serbia",381,"Krajevo","036" -"Serbia",381,"Krusevac","037" -"Serbia",381,"Pristina","038" -"Serbia",381,"Pec","039" -"Serbia",381,"Dakovica","0390" -"Seychelles",248,"Port Victoria",222 -"Seychelles",248,"Port Victoria",223 -"Seychelles",248,"Port Victoria",227 -"Seychelles",248,"Port Victoria",228 -"Seychelles",248,"Anse Volbert (Praslin)",231 -"Seychelles",248,"La Digue",235 -"Seychelles",248,"Gran Anse (Praslin)",237 -"Seychelles",248,"Anse Etoile",240 -"Seychelles",248,"Anse Etoile",244 -"Seychelles",248,"Beau Vallon",245 -"Seychelles",248,"Beau Vallon",249 -"Seychelles",248,"Northholme",260 -"Seychelles",248,"Northholme",262 -"Seychelles",248,"Northholme",263 -"Seychelles",248,"St. Louis",265 -"Seychelles",248,"Cascade",313 -"Seychelles",248,"Anse Aux Pins",315 -"Seychelles",248,"Anse Aux Pins",316 -"Seychelles",248,"Plaisance",341 -"Seychelles",248,"Plaisance",342 -"Seychelles",248,"Plaisance",343 -"Seychelles",248,"Anse Boileau",352 -"Seychelles",248,"Anse Boileau",353 -"Seychelles",248,"Anse Boileau",354 -"Seychelles",248,"Baie Lazare",362 -"Seychelles",248,"Baie Lazare",363 -"Seychelles",248,"Anse Royale",370 -"Sierra Leone",232,"Freetown","022" -"Sierra Leone",232,"Bo y Kenema","032" -"Singapore",65,"North",635 -"Singapore",65,"Bedok",644 -"Singapore",65,"Ang Mo Kio",645 -"Singapore",65,"City",653 -"Singapore",65,"Geylang",673 -"Singapore",65,"Sembawang",675 -"Singapore",65,"Ayer Rajah",676 -"Singapore",65,"Tampines",677 -"Singapore",65,"Jurong West- Tampines",678 -"Slovakia",421,"Bratislava","02" -"Slovakia",421,"Dunajska Streda","031" -"Slovakia",421,"Nove Mesto nad Váhom","032" -"Slovakia",421,"Hlohovec","033" -"Slovakia",421,"Holic","034" -"Slovakia",421,"Hurbanovo","035" -"Slovakia",421,"Levice","036" -"Slovakia",421,"Nitra","037" -"Slovakia",421,"Banovce nad Bebravou","038" -"Slovakia",421,"Bytca","041" -"Slovakia",421,"Dubnica nad Vahom","042" -"Slovakia",421,"Dolný Kubin","043" -"Slovakia",421,"Liptovsky Hradok","044" -"Slovakia",421,"Banska Stiavnica","045" -"Slovakia",421,"Prievidza","046" -"Slovakia",421,"Hnusta","047" -"Slovakia",421,"Banska Bystrica","048" -"Slovakia",421,"Presov","051" -"Slovakia",421,"Kezmarok","052" -"Slovakia",421,"Gelnica","053" -"Slovakia",421,"Bardejov","054" -"Slovakia",421,"Kosice","055" -"Slovakia",421,"Kralovsky Chlmec","056" -"Slovakia",421,"Humenne","057" -"Slovakia",421,"Revuca","058" -"Slovenia",386,"Ljubljana","01" -"Slovenia",386,"Maribor","02" -"Slovenia",386,"Celje","03" -"Slovenia",386,"Kranj","04" -"Slovenia",386,"Koper","05" -"Slovenia",386,"Krsko","07" -"Solomon Islands",677,"Honiara",20 -"Solomon Islands",677,"Honiara",21 -"Solomon Islands",677,"Honiara",22 -"Solomon Islands",677,"Honiara",23 -"Solomon Islands",677,"Honiara",24 -"Solomon Islands",677,"Honiara",25 -"Solomon Islands",677,"Honiara",26 -"Solomon Islands",677,"Honiara",27 -"Solomon Islands",677,"Honiara",28 -"Solomon Islands",677,"Honiara",29 -"Solomon Islands",677,"KGVI",30 -"Solomon Islands",677,"KGVI",31 -"Solomon Islands",677,"Tulagi",32 -"Solomon Islands",677,"Buala",35 -"Solomon Islands",677,"Henderson",36 -"Solomon Islands",677,"KGVI",38 -"Solomon Islands",677,"KGVI",39 -"Solomon Islands",677,"Auki",40 -"Solomon Islands",677,"Kira Kira",50 -"Solomon Islands",677,"Tigoa",52 -"Solomon Islands",677,"Lata",53 -"Solomon Islands",677,"Gizo",60 -"Solomon Islands",677,"Noro",61 -"Solomon Islands",677,"Munda",62 -"Solomon Islands",677,"Taro",63 -"Solomon Islands",677,"Atoifi",411 -"Solomon Islands",677,"Yandina",412 -"Solomon Islands",677,"Malu'u",413 -"Solomon Islands",677,"Kiu",414 -"Somalia",252,"Mogadishu",1 -"Somalia",252,"Mangauno",51 -"Somaliland",252,"Somaliland",2 -"South Africa",27,"Johannesburg","010" -"South Africa",27,"Johannesburg","011" -"South Africa",27,"Pretoria","012" -"South Africa",27,"Middelburg","013" -"South Africa",27,"Rustenburg","014" -"South Africa",27,"Polokwane (Pietersburg)","015" -"South Africa",27,"Vereeniging","016" -"South Africa",27,"Ermelo","017" -"South Africa",27,"Potchefstroom / Klerksdorp","018" -"South Africa",27,"Cape Town","021" -"South Africa",27,"Malmesbury","022" -"South Africa",27,"Worcester","023" -"South Africa",27,"Northern Cape","027" -"South Africa",27,"Swellendam","028" -"South Africa",27,"Durban","031" -"South Africa",27,"Stanger","032" -"South Africa",27,"Pietermaritzburg","033" -"South Africa",27,"Vryheid","034" -"South Africa",27,"Richards Bay","035" -"South Africa",27,"Ladysmith","036" -"South Africa",27,"Port Shepstone","039" -"South Africa",27,"Bisho","040" -"South Africa",27,"Port Elizabeth","041" -"South Africa",27,"Humansdorp","042" -"South Africa",27,"East London","043" -"South Africa",27,"Garden Route","044" -"South Africa",27,"Queenstown","045" -"South Africa",27,"Grahamstown","046" -"South Africa",27,"Umtata","047" -"South Africa",27,"Steynsburg","048" -"South Africa",27,"Graaff-Reinet","049" -"South Africa",27,"Bloemfontein","051" -"South Africa",27,"Kimberley","053" -"South Africa",27,"Upington","054" -"South Africa",27,"Kroonstad","056" -"South Africa",27,"Welkom","057" -"South Africa",27,"Bethlehem","058" -"Spain",34,"Madrid",810 -"Spain",34,"Ávila",820 -"Spain",34,"Segovia",821 -"Spain",34,"Salamanca",823 -"Spain",34,"Badajoz",824 -"Spain",34,"Toledo",825 -"Spain",34,"Ciudad Real",826 -"Spain",34,"Caceres",827 -"Spain",34,"Barcelona",830 -"Spain",34,"La Rioja",841 -"Spain",34,"Cantabria",842 -"Spain",34,"Guipuzcoa",843 -"Spain",34,"Alava",845 -"Spain",34,"Vizcaya",846 -"Spain",34,"Burgos",847 -"Spain",34,"Navarra",848 -"Spain",34,"Guadalajara",849 -"Spain",34,"Almería",850 -"Spain",34,"Malaga",851 -"Spain",34,"Jaen",853 -"Spain",34,"Sevilla",854 -"Spain",34,"Cádiz",856 -"Spain",34,"Cordoba",857 -"Spain",34,"Granada",858 -"Spain",34,"Huelva",859 -"Spain",34,"Valencia",860 -"Spain",34,"Castellón de la Plana",864 -"Spain",34,"Alicante",865 -"Spain",34,"Albacete",867 -"Spain",34,"Murcia",868 -"Spain",34,"Cuenca",869 -"Spain",34,"Baleares",871 -"Spain",34,"Gerona",872 -"Spain",34,"Lerida",873 -"Spain",34,"Huesca",874 -"Spain",34,"Soria",875 -"Spain",34,"Zaragoza",876 -"Spain",34,"Tarragona",877 -"Spain",34,"Teruel",878 -"Spain",34,"Palencia",879 -"Spain",34,"Zamora",880 -"Spain",34,"Coruña",881 -"Spain",34,"Lugo",882 -"Spain",34,"Valladolid",883 -"Spain",34,"Asturias",884 -"Spain",34,"Pontevedra",886 -"Spain",34,"León",887 -"Spain",34,"Orense",888 -"Spain",34,"Madrid",911 -"Spain",34,"Madrid",918 -"Spain",34,"Ávila",920 -"Spain",34,"Segovia",921 -"Spain",34,"Salamanca",923 -"Spain",34,"Badajoz",924 -"Spain",34,"Toledo",925 -"Spain",34,"Ciudad Real",926 -"Spain",34,"Caceres",927 -"Spain",34,"Barcelona",931 -"Spain",34,"Barcelona",938 -"Spain",34,"La Rioja",941 -"Spain",34,"Cantabria",942 -"Spain",34,"Guipuzcoa",943 -"Spain",34,"Vizcaya",944 -"Spain",34,"Alava",945 -"Spain",34,"Vizcaya",946 -"Spain",34,"Burgos",947 -"Spain",34,"Navarra",948 -"Spain",34,"Guadalajara",949 -"Spain",34,"Almería",950 -"Spain",34,"Malaga",951 -"Spain",34,"Malaga",952 -"Spain",34,"Jaen",953 -"Spain",34,"Sevilla",955 -"Spain",34,"Cádiz",956 -"Spain",34,"Cordoba",957 -"Spain",34,"Granada",958 -"Spain",34,"Huelva",959 -"Spain",34,"Valencia",960 -"Spain",34,"Valencia",963 -"Spain",34,"Castellón de la Plana",964 -"Spain",34,"Alicante",965 -"Spain",34,"Alicante",966 -"Spain",34,"Albacete",967 -"Spain",34,"Murcia",968 -"Spain",34,"Cuenca",969 -"Spain",34,"Baleares",971 -"Spain",34,"Gerona",972 -"Spain",34,"Lerida",973 -"Spain",34,"Huesca",974 -"Spain",34,"Soria",975 -"Spain",34,"Zaragoza",976 -"Spain",34,"Tarragona",977 -"Spain",34,"Teruel",978 -"Spain",34,"Palencia",979 -"Spain",34,"Zamora",980 -"Spain",34,"Coruña",981 -"Spain",34,"Lugo",982 -"Spain",34,"Valladolid",983 -"Spain",34,"Asturias",984 -"Spain",34,"Asturias",985 -"Spain",34,"Pontevedra",986 -"Spain",34,"León",987 -"Spain",34,"Orense",988 -"Sri Lanka",94,"Colombo","01" -"Sri Lanka",94,"Colombo","011" -"Sri Lanka",94,"Mannar","023" -"Sri Lanka",94,"Vavuniya","024" -"Sri Lanka",94,"Anuradhapura","025" -"Sri Lanka",94,"Trincomalee","026" -"Sri Lanka",94,"Polonnaruwa","027" -"Sri Lanka",94,"Negombo","031" -"Sri Lanka",94,"Chilaw","032" -"Sri Lanka",94,"Gampaha","033" -"Sri Lanka",94,"Kalutara","034" -"Sri Lanka",94,"Kegalle","035" -"Sri Lanka",94,"Awissawella","036" -"Sri Lanka",94,"Kurunegala","037" -"Sri Lanka",94,"Panadura","038" -"Sri Lanka",94,"Matara","041" -"Sri Lanka",94,"Ratnapura","045" -"Sri Lanka",94,"Hambantota","047" -"Sri Lanka",94,"Hatton","051" -"Sri Lanka",94,"Nuwara Eliya","052" -"Sri Lanka",94,"Nawalapitiya","054" -"Sri Lanka",94,"Badulla","055" -"Sri Lanka",94,"Bandarawela","057" -"Sri Lanka",94,"Ampara","063" -"Sri Lanka",94,"Batticaloa","065" -"Sri Lanka",94,"Matale","066" -"Sri Lanka",94,"Kalmunai","067" -"Sri Lanka",94,"Kandy","081" -"Sri Lanka",94,"Galle","091" -"Sudan",249,"Khartoum","01" -"Sudan",249,"Atbara","0211" -"Sudan",249,"Abu Hamad","0212" -"Sudan",249,"El Damar","0216" -"Sudan",249,"El Abiddia","0217" -"Sudan",249,"Karima","0231" -"Sudan",249,"El Gorier","0232" -"Sudan",249,"Nuri","0233" -"Sudan",249,"Marawi","0234" -"Sudan",249,"Tangasi","0235" -"Sudan",249,"El Zooma","0236" -"Sudan",249,"Korti","0237" -"Sudan",249,"Osli","0238" -"Sudan",249,"Dongola","0241" -"Sudan",249,"Sheikh Sharif","0242" -"Sudan",249,"Argo","0243" -"Sudan",249,"Abri","0244" -"Sudan",249,"El Burgeig","0245" -"Sudan",249,"El Hafeer","0248" -"Sudan",249,"Wadi Halfa","0251" -"Sudan",249,"Shendi","0261" -"Sudan",249,"Teibat El Khwaat Wad Hamid","0262" -"Sudan",249,"Teibat El Khwaat Wad Hamid","0266" -"Sudan",249,"Abu Deleig","0267" -"Sudan",249,"El Debba","0271" -"Sudan",249,"El Ghaba","0272" -"Sudan",249,"Amantego / Nawa","0273" -"Sudan",249,"El Dambo","0274" -"Sudan",249,"Port Sudan","0311" -"Sudan",249,"Sawakin","0312" -"Sudan",249,"Sinkat","0321" -"Sudan",249,"Tokar","0322" -"Sudan",249,"Jabeit","0323" -"Sudan",249,"Haya","0324" -"Sudan",249,"Durdeib","0325" -"Sudan",249,"Kassala","0411" -"Sudan",249,"Aroma","0412" -"Sudan",249,"New Halfa","0421" -"Sudan",249,"Khashm El Gibra","0422" -"Sudan",249,"El Gedarif","0441" -"Sudan",249,"Doka","0442" -"Sudan",249,"El Hawata","0443" -"Sudan",249,"Wad El Hilaiw","0444" -"Sudan",249,"El Showak","0445" -"Sudan",249,"El Mafaza","0446" -"Sudan",249,"Medani","0511" -"Sudan",249,"Abu Haraz","0513" -"Sudan",249,"El Danagla","0514" -"Sudan",249,"El Gorashi","0515" -"Sudan",249,"Barakat","0516" -"Sudan",249,"El Kreimit","0517" -"Sudan",249,"El Haj Abdalla","0518" -"Sudan",249,"Beika","0519" -"Sudan",249,"El Fao","0521" -"Sudan",249,"Um El Gura","0522" -"Sudan",249,"Gharia 10","0523" -"Sudan",249,"El Dewiem","0531" -"Sudan",249,"El Daradir","0532" -"Sudan",249,"Shabasha","0533" -"Sudan",249,"El Kawah","0534" -"Sudan",249,"Wad El Zaki","0535" -"Sudan",249,"El Sofi","0536" -"Sudan",249,"El Hesahesa","0541" -"Sudan",249,"Abu Oshar","0542" -"Sudan",249,"Tambul","0543" -"Sudan",249,"Alti","0544" -"Sudan",249,"Rufa'A","0545" -"Sudan",249,"Tabat","0546" -"Sudan",249,"El Masalamia","0548" -"Sudan",249,"El Damazin","0551" -"Sudan",249,"El Rosiris","0552" -"Sudan",249,"Sennar","0561" -"Sudan",249,"Singa","0562" -"Sudan",249,"Abu Hugar","0563" -"Sudan",249,"El Dindir","0564" -"Sudan",249,"El Soki","0565" -"Sudan",249,"Suker Sennar","0566" -"Sudan",249,"Um Shoka","0567" -"Sudan",249,"Wad El Nayal","0568" -"Sudan",249,"Karkoj","0569" -"Sudan",249,"Kosti","0571" -"Sudan",249,"Rabak","0572" -"Sudan",249,"Tendalti","0573" -"Sudan",249,"El Gabalain","0574" -"Sudan",249,"Kenana","0576" -"Sudan",249,"El Gazira Aba","0577" -"Sudan",249,"El Obied","0611" -"Sudan",249,"Bara","0612" -"Sudan",249,"El Dibeibat","0613" -"Sudan",249,"Abu Zabad","0614" -"Sudan",249,"Jabrat Elsheikh","0616" -"Sudan",249,"El Rahad","0621" -"Sudan",249,"Um Rwaba","0624" -"Sudan",249,"Kadogli","0631" -"Sudan",249,"El Abassia","0632" -"Sudan",249,"Abu Gibieha","0633" -"Sudan",249,"El Dalang","0634" -"Sudan",249,"Kalogi","0635" -"Sudan",249,"Rashad","0636" -"Sudan",249,"Habila","0638" -"Sudan",249,"Babanusa","0641" -"Sudan",249,"El Nihud","0642" -"Sudan",249,"El Muglad","0643" -"Sudan",249,"El Foola","0644" -"Sudan",249,"Hieglieg","0645" -"Sudan",249,"Ghubiesh","0646" -"Sudan",249,"Eial Bakhit","0647" -"Sudan",249,"Fuga","0648" -"Sudan",249,"Sodari","0651" -"Sudan",249,"Hamrat Elsheikh","0652" -"Sudan",249,"Um Badir","0653" -"Sudan",249,"Hamrat Elwith","0654" -"Sudan",249,"El Mazroob","0655" -"Sudan",249,"Nyala","0711" -"Sudan",249,"El Deien","0712" -"Sudan",249,"Zalingi","0713" -"Sudan",249,"Buram","0714" -"Sudan",249,"Kas","0715" -"Sudan",249,"Adeela","0716" -"Sudan",249,"El Laaid","0717" -"Sudan",249,"Tulus","0718" -"Sudan",249,"Rehied El Birdi","0722" -"Sudan",249,"Ed Elfirsan","0723" -"Sudan",249,"El Fashir","0731" -"Sudan",249,"El Tina","0732" -"Sudan",249,"Melliet","0733" -"Sudan",249,"El Tawila","0734" -"Sudan",249,"Um Kaddada","0735" -"Sudan",249,"Sarif Amra","0736" -"Sudan",249,"Um Dukhun","0737" -"Sudan",249,"El Tweisha","0738" -"Sudan",249,"El Gineina","0741" -"Sudan",249,"Garsila","0742" -"Sudan",249,"For Baranga","0743" -"Sudan",249,"Gureida","0745" -"Sudan",249,"Juba","0811" -"Sudan",249,"Malakal","0831" -"Sudan",249,"El Renk","0833" -"Sudan",249,"El Geiger","0834" -"Sudan",249,"Wau","0841" -"Sudan",249,"Raja","0843" -"Sudan",249,"Awiel","0844" -"Sudan",249,"Bantio","0861" -"Suriname",597,"West Suriname","02" -"Suriname",597,"Central and East Suriname","03" -"Suriname",597,"Paramaribo","04" -"Svalbard and Jan Mayen",47,"Svalbard","079" -"Swaziland",268,"Nhlangano",207 -"Swaziland",268,"Hlathikulu",217 -"Swaziland",268,"Hluthi",227 -"Swaziland",268,"Mahamba",237 -"Swaziland",268,"Nsoko",303 -"Swaziland",268,"Mhlume",312 -"Swaziland",268,"Mhlume",313 -"Swaziland",268,"Tshaneni",322 -"Swaziland",268,"Tshaneni",323 -"Swaziland",268,"Mpaka",333 -"Swaziland",268,"Siteki",343 -"Swaziland",268,"Siphofaneni",344 -"Swaziland",268,"Big Bend",363 -"Swaziland",268,"Big Bend",364 -"Swaziland",268,"Maphiveni",373 -"Swaziland",268,"Simunye",382 -"Swaziland",268,"Simunye",383 -"Swaziland",268,"Mbabane",404 -"Swaziland",268,"Mbabane",405 -"Swaziland",268,"Mbabane",406 -"Swaziland",268,"Lobamba",416 -"Swaziland",268,"Sidwashini",422 -"Swaziland",268,"Pigg's Peak",437 -"Swaziland",268,"Ngwenya",442 -"Swaziland",268,"Bhunya",452 -"Swaziland",268,"Bhunya",453 -"Swaziland",268,"Mhlambanyatsi",467 -"Swaziland",268,"Mahwalala",472 -"Swaziland",268,"Siphocosini",482 -"Swaziland",268,"Manzini",505 -"Swaziland",268,"Manzini",506 -"Swaziland",268,"Matsapha",517 -"Swaziland",268,"Matsapha",518 -"Swaziland",268,"Malkerns",528 -"Swaziland",268,"Mankayane",538 -"Swaziland",268,"Ludzeludze",548 -"Sweden",46,"Norrköping","011" -"Sweden",46,"Åtvidaberg","0120" -"Sweden",46,"Söderköping","0121" -"Sweden",46,"Finspång","0122" -"Sweden",46,"Valdemarsvik","0123" -"Sweden",46,"Vikbolandet","0125" -"Sweden",46,"Linköping","013" -"Sweden",46,"Tranås","0140" -"Sweden",46,"Motala","0141" -"Sweden",46,"Mjölby","0142" -"Sweden",46,"Vadstena","0143" -"Sweden",46,"ödeshög","0144" -"Sweden",46,"Katrineholm","0150" -"Sweden",46,"Vingåker","0151" -"Sweden",46,"Strängnäs","0152" -"Sweden",46,"Nyköping-Oxelösund","0155" -"Sweden",46,"Trosa-Vagnhärad","0156" -"Sweden",46,"Flen-Malmköping","0157" -"Sweden",46,"Gnesta","0158" -"Sweden",46,"Mariefred","0159" -"Sweden",46,"Eskilstuna-Torshälla","016" -"Sweden",46,"Enköping","0171" -"Sweden",46,"öregrund-östhammar","0173" -"Sweden",46,"Alunda","0174" -"Sweden",46,"Hallstavik-Rimbo","0175" -"Sweden",46,"Norrtälje","0176" -"Sweden",46,"Uppsala","018" -"Sweden",46,"örebro","019" -"Sweden",46,"Västerås","021" -"Sweden",46,"Hallstahammar-Surahammar","0220" -"Sweden",46,"Köping","0221" -"Sweden",46,"Skinnskatteberg","0222" -"Sweden",46,"Fagersta-Norberg","0223" -"Sweden",46,"Sala-Heby","0224" -"Sweden",46,"Hedemora","0225" -"Sweden",46,"Avesta-Krylbo","0226" -"Sweden",46,"Kungsör","0227" -"Sweden",46,"Falun","023" -"Sweden",46,"Ludvika-Smedjebacken","0240" -"Sweden",46,"Gagnef-Floda","0241" -"Sweden",46,"Borlänge","0243" -"Sweden",46,"Svärdsjö-Enviken","0246" -"Sweden",46,"Leksand-Insjön","0247" -"Sweden",46,"Rättvik","0248" -"Sweden",46,"Mora-Orsa","0250" -"Sweden",46,"Ålvdalen","0251" -"Sweden",46,"Idre-Särna","0253" -"Sweden",46,"Furudal","0258" -"Sweden",46,"Gävle-Sandviken","026" -"Sweden",46,"Söderhamn","0270" -"Sweden",46,"Alfta-Edsbyn","0271" -"Sweden",46,"Bollnäs","0278" -"Sweden",46,"Malung","0280" -"Sweden",46,"Vansbro","0281" -"Sweden",46,"Hofors-Storvik","0290" -"Sweden",46,"Hedesunda-österfärnebo","0291" -"Sweden",46,"Tärnsjö-österväla","0292" -"Sweden",46,"Tierp-Söderfors","0293" -"Sweden",46,"Karlholmsbruk-Skärplinge","0294" -"Sweden",46,"örbyhus-Dannemora","0295" -"Sweden",46,"Ockelbo-Hamrånge","0297" -"Sweden",46,"Kungsbacka","0300" -"Sweden",46,"Hindås","0301" -"Sweden",46,"Lerum","0302" -"Sweden",46,"Kungälv","0303" -"Sweden",46,"Orust-Tjörn","0304" -"Sweden",46,"Göteborg","031" -"Sweden",46,"Kinna","0320" -"Sweden",46,"Ulricehamn","0321" -"Sweden",46,"Alingsås-Vårgårda","0322" -"Sweden",46,"Svenljunga-Tranemo","0325" -"Sweden",46,"Borås","033" -"Sweden",46,"Varberg","0340" -"Sweden",46,"Hyltebruk-Torup","0345" -"Sweden",46,"Falkenberg","0346" -"Sweden",46,"Halmstad","035" -"Sweden",46,"Jönköping-Huskvarna","036" -"Sweden",46,"Värnamo","0370" -"Sweden",46,"Gislaved-Anderstorp","0371" -"Sweden",46,"Ljungby","0372" -"Sweden",46,"Nässjö","0380" -"Sweden",46,"Eksjö","0381" -"Sweden",46,"Sävsjö","0382" -"Sweden",46,"Vetlanda","0383" -"Sweden",46,"Gränna","0390" -"Sweden",46,"Mullsjö","0392" -"Sweden",46,"Vaggeryd","0393" -"Sweden",46,"Malmö","040" -"Sweden",46,"Trelleborg","0410" -"Sweden",46,"Ystad","0411" -"Sweden",46,"Eslöv-Höör","0413" -"Sweden",46,"Simrishamn","0414" -"Sweden",46,"Hörby","0415" -"Sweden",46,"Sjöbo","0416" -"Sweden",46,"Tomelilla","0417" -"Sweden",46,"Landskrona-Svalöv","0418" -"Sweden",46,"Helsingborg-Höganäs","042" -"Sweden",46,"Laholm","0430" -"Sweden",46,"ängelholm-Båstad","0431" -"Sweden",46,"Markaryd-Strömsnäsbruk","0433" -"Sweden",46,"Klippan-Perstorp","0435" -"Sweden",46,"Kristianstad","044" -"Sweden",46,"Hässleholm","0451" -"Sweden",46,"Karlshamn-Olofström","0454" -"Sweden",46,"Karlskrona","0455" -"Sweden",46,"Sölvesborg-Bromölla","0456" -"Sweden",46,"Ronneby","0457" -"Sweden",46,"Ryd","0459" -"Sweden",46,"Lund","046" -"Sweden",46,"Växjö","0470" -"Sweden",46,"Emmaboda","0471" -"Sweden",46,"Alvesta-Rydaholm","0472" -"Sweden",46,"Åseda-Lenhovda","0474" -"Sweden",46,"älmhult","0476" -"Sweden",46,"Tingsryd","0477" -"Sweden",46,"Lessebo","0478" -"Sweden",46,"Osby","0479" -"Sweden",46,"Kalmar","0480" -"Sweden",46,"Nybro","0481" -"Sweden",46,"öland","0485" -"Sweden",46,"Torsås","0486" -"Sweden",46,"Västervik","0490" -"Sweden",46,"Oskarshamn-Högsby","0491" -"Sweden",46,"Vimmerby","0492" -"Sweden",46,"Gamleby","0493" -"Sweden",46,"Kisa","0494" -"Sweden",46,"Hultsfred-Virserum","0495" -"Sweden",46,"Mariannelund","0496" -"Sweden",46,"Gotland","0498" -"Sweden",46,"Mönsterås","0499" -"Sweden",46,"Skövde","0500" -"Sweden",46,"Mariestad","0501" -"Sweden",46,"Tidaholm","0502" -"Sweden",46,"Hjo","0503" -"Sweden",46,"Tibro","0504" -"Sweden",46,"Karlsborg","0505" -"Sweden",46,"Töreboda-Hova","0506" -"Sweden",46,"Lidköping","0510" -"Sweden",46,"Skara-Götene","0511" -"Sweden",46,"Vara-Nossebro","0512" -"Sweden",46,"Herrljunga","0513" -"Sweden",46,"Grästorp","0514" -"Sweden",46,"Falköping","0515" -"Sweden",46,"Trollhättan","0520" -"Sweden",46,"Vänersborg","0521" -"Sweden",46,"Uddevalla","0522" -"Sweden",46,"Lysekil","0523" -"Sweden",46,"Munkedal","0524" -"Sweden",46,"Grebbestad","0525" -"Sweden",46,"Strömstad","0526" -"Sweden",46,"Färgelanda","0528" -"Sweden",46,"Mellerud","0530" -"Sweden",46,"Bengtsfors","0531" -"Sweden",46,"Åmål","0532" -"Sweden",46,"Säffle","0533" -"Sweden",46,"Ed","0534" -"Sweden",46,"Karlstad","054" -"Sweden",46,"Kristinehamn","0550" -"Sweden",46,"Gullspång","0551" -"Sweden",46,"Deje","0552" -"Sweden",46,"Molkom","0553" -"Sweden",46,"Kil","0554" -"Sweden",46,"Grums","0555" -"Sweden",46,"Torsby","0560" -"Sweden",46,"Hagfors-Munkfors","0563" -"Sweden",46,"Sysslebäck","0564" -"Sweden",46,"Sunne","0565" -"Sweden",46,"Arvika","0570" -"Sweden",46,"Charlottenberg - Åmotfors","0571" -"Sweden",46,"Årjäng","0573" -"Sweden",46,"Kopparberg","0580" -"Sweden",46,"Lindesberg","0581" -"Sweden",46,"Hallsberg","0582" -"Sweden",46,"Askersund","0583" -"Sweden",46,"Laxå","0584" -"Sweden",46,"Fjugesta-Svartå","0585" -"Sweden",46,"Karlskoga-Degerfors","0586" -"Sweden",46,"Nora","0587" -"Sweden",46,"Arboga","0589" -"Sweden",46,"Filipstad","0590" -"Sweden",46,"Hällefors - Grythyttan","0591" -"Sweden",46,"Sundsvall-Timrå","060" -"Sweden",46,"Härnösand","0611" -"Sweden",46,"Kramfors","0612" -"Sweden",46,"Ullånger","0613" -"Sweden",46,"Sollefteå","0620" -"Sweden",46,"Junsele","0621" -"Sweden",46,"Näsåker","0622" -"Sweden",46,"Ramsele","0623" -"Sweden",46,"Backe","0624" -"Sweden",46,"östersund","063" -"Sweden",46,"Krokom","0640" -"Sweden",46,"Lit","0642" -"Sweden",46,"Hallen-Oviken","0643" -"Sweden",46,"Hammerdal","0644" -"Sweden",46,"Föllinge","0645" -"Sweden",46,"Åre-Järpen","0647" -"Sweden",46,"Hudiksvall","0650" -"Sweden",46,"Ljusdal","0651" -"Sweden",46,"Bergsjö","0652" -"Sweden",46,"Delsbo","0653" -"Sweden",46,"Los","0657" -"Sweden",46,"örnsköldsvik","0660" -"Sweden",46,"Bredbyn","0661" -"Sweden",46,"Björna","0662" -"Sweden",46,"Husum","0663" -"Sweden",46,"Strömsund","0670" -"Sweden",46,"Hoting","0671" -"Sweden",46,"Gäddede","0672" -"Sweden",46,"Sveg","0680" -"Sweden",46,"Rätan","0682" -"Sweden",46,"Hede-Funäsdalen","0684" -"Sweden",46,"Svenstavik","0687" -"Sweden",46,"Ånge","0690" -"Sweden",46,"Torpshammar","0691" -"Sweden",46,"Liden","0692" -"Sweden",46,"Bräcke-Gällö","0693" -"Sweden",46,"Stugun","0695" -"Sweden",46,"Hammarstrand","0696" -"Sweden",46,"Stockholm","08" -"Sweden",46,"Umeå","090" -"Sweden",46,"Skellefteå","0910" -"Sweden",46,"Piteå","0911" -"Sweden",46,"Byske","0912" -"Sweden",46,"Lövånger","0913" -"Sweden",46,"Burträsk","0914" -"Sweden",46,"Bastuträsk","0915" -"Sweden",46,"Jörn","0916" -"Sweden",46,"Norsjö","0918" -"Sweden",46,"Luleå","0920" -"Sweden",46,"Boden","0921" -"Sweden",46,"Haparanda","0922" -"Sweden",46,"Kalix","0923" -"Sweden",46,"Råneå","0924" -"Sweden",46,"Lakaträsk","0925" -"Sweden",46,"överkalix","0926" -"Sweden",46,"övertorneå","0927" -"Sweden",46,"Harads","0928" -"Sweden",46,"älvsbyn","0929" -"Sweden",46,"Nordmaling","0930" -"Sweden",46,"Bjurholm","0932" -"Sweden",46,"Vindeln","0933" -"Sweden",46,"Robertsfors","0934" -"Sweden",46,"Vännäs","0935" -"Sweden",46,"Vilhelmina","0940" -"Sweden",46,"Åsele","0941" -"Sweden",46,"Dorotea","0942" -"Sweden",46,"Fredrika","0943" -"Sweden",46,"Lycksele","0950" -"Sweden",46,"Storuman","0951" -"Sweden",46,"Sorsele","0952" -"Sweden",46,"Malå","0953" -"Sweden",46,"Tärnaby","0954" -"Sweden",46,"Arvidsjaur","0960" -"Sweden",46,"Arjeplog","0961" -"Sweden",46,"Gällivare","0970" -"Sweden",46,"Jokkmokk","0971" -"Sweden",46,"Porjus","0973" -"Sweden",46,"Hakkas","0975" -"Sweden",46,"Vuollerim","0976" -"Sweden",46,"Korpilombolo","0977" -"Sweden",46,"Pajala","0978" -"Sweden",46,"Kiruna","0980" -"Sweden",46,"Vittangi","0981" -"Switzerland",41,"Lausanne","021" -"Switzerland",41,"Genève","022" -"Switzerland",41,"Aigle","024" -"Switzerland",41,"Fribourg","026" -"Switzerland",41,"Sion","027" -"Switzerland",41,"Bern","031" -"Switzerland",41,"Biel","032" -"Switzerland",41,"Thun","033" -"Switzerland",41,"Burgdorf","034" -"Switzerland",41,"Luzern","041" -"Switzerland",41,"Zürich","043" -"Switzerland",41,"Zürich","044" -"Switzerland",41,"Winterthur","052" -"Switzerland",41,"Rapperswil","055" -"Switzerland",41,"Baden","056" -"Switzerland",41,"Basel","061" -"Switzerland",41,"Olten","062" -"Switzerland",41,"St. Gallen","071" -"Switzerland",41,"Chur","081" -"Switzerland",41,"Bellinzona","091" -"Syria",963,"Damascus","011" -"Syria",963,"Al-Nebek","012" -"Syria",963,"Al-Zabadani","013" -"Syria",963,"Al-Quneitra","014" -"Syria",963,"Dara","015" -"Syria",963,"Al-Swedaa","016" -"Syria",963,"Aleppo","021" -"Syria",963,"Al-Rakkah","022" -"Syria",963,"Edleb","023" -"Syria",963,"Menbej","025" -"Syria",963,"Homs","031" -"Syria",963,"Hama","033" -"Syria",963,"Palmyra","034" -"Syria",963,"Lattakiah","041" -"Syria",963,"Tartous","043" -"Syria",963,"Deir Ezzour","051" -"Syria",963,"Alhasakah","052" -"Syria",963,"Al-Kameshli","053" -"Taiwan",886,"Taipei",2 -"Taiwan",886,"Tachi",3 -"Taiwan",886,"Taichung",4 -"Taiwan",886,"Chiai",5 -"Taiwan",886,"Makung",6 -"Taiwan",886,"Chishan",7 -"Taiwan",886,"Chaochou",8 -"Taiwan",886,"Taoyuan",33 -"Taiwan",886,"Chungli",34 -"Taiwan",886,"Chupei",35 -"Taiwan",886,"Chunan (Tchou-Nan)",36 -"Taiwan",886,"Miaoli",37 -"Taiwan",886,"Hualien",38 -"Taiwan",886,"Chiaochi",39 -"Taiwan",886,"Fengyuan",45 -"Taiwan",886,"Chalou",46 -"Taiwan",886,"Changhua",47 -"Taiwan",886,"Shetou",48 -"Taiwan",886,"Chunghsing",49 -"Taiwan",886,"Touliu",55 -"Taiwan",886,"Huwei",56 -"Taiwan",886,"Tainan",62 -"Taiwan",886,"Hsinying",66 -"Taiwan",886,"Chiali",67 -"Taiwan",886,"Penghu",69 -"Taiwan",886,"Tungkang",88 -"Taiwan",886,"Taitung",89 -"Taiwan",886,"Lishan",458 -"Taiwan",886,"Kinmen",823 -"Taiwan",886,"Wu-chiu",826 -"Taiwan",886,"Tung-Sha Island",827 -"Tajikistan",992,"Tursun-Zade","(8)3130" -"Tajikistan",992,"Rasht (former Garm)","(8)3131" -"Tajikistan",992,"Jirgital","(8)3132" -"Tajikistan",992,"Nurobod (former Darband)","(8)3133" -"Tajikistan",992,"Rogun","(8)3134" -"Tajikistan",992,"Fayzabad","(8)3135" -"Tajikistan",992,"Vakhdat (former Kofarnikhon)","(8)3136" -"Tajikistan",992,"Rudaki (former Leninskiy)","(8)3137" -"Tajikistan",992,"Nurek","(8)3138" -"Tajikistan",992,"Hissar","(8)3139" -"Tajikistan",992,"Yavan","(8)3141" -"Tajikistan",992,"Varzob","(8)3153" -"Tajikistan",992,"Tadjikabad","(8)3154" -"Tajikistan",992,"Shakhrinav","(8)3155" -"Tajikistan",992,"Tavildara","(8)3156" -"Tajikistan",992,"Kurgan-Tube","(8)3222" -"Tajikistan",992,"Shaartuz","(8)3240" -"Tajikistan",992,"Khuroson (former Gozimalik)","(8)3242" -"Tajikistan",992,"Abdurakhmana Jami (former Khudjamaston)","(8)3243" -"Tajikistan",992,"Bokhtar","(8)3245" -"Tajikistan",992,"Vakhsh","(8)3246" -"Tajikistan",992,"Kolkhozabad","(8)3247" -"Tajikistan",992,"Djilikul","(8)3248" -"Tajikistan",992,"Kumsangir (C. Dusti)","(8)3249" -"Tajikistan",992,"Sarband","(8)3250" -"Tajikistan",992,"Kabodion","(8)3251" -"Tajikistan",992,"Panj","(8)3252" -"Tajikistan",992,"Vose","(8)3311" -"Tajikistan",992,"Dangara","(8)3312" -"Tajikistan",992,"Temurmalik","(8)3314" -"Tajikistan",992,"M. Khamadoni","(8)3315" -"Tajikistan",992,"Parkhar","(8)3316" -"Tajikistan",992,"Khovaling","(8)331700" -"Tajikistan",992,"Muminobod","(8)3318" -"Tajikistan",992,"Kulyab","(8)3322" -"Tajikistan",992,"Khujand","(8)3422" -"Tajikistan",992,"Spitamen (former Nou)","(8)3441" -"Tajikistan",992,"Gafurov","(8)3442" -"Tajikistan",992,"Kayrakum","(8)3443" -"Tajikistan",992,"Matchinskiy (C. Buston)","(8)3445" -"Tajikistan",992,"Chkalovsk","(8)3451" -"Tajikistan",992,"Zafarabad","(8)3452" -"Tajikistan",992,"Asht","(8)3453" -"Tajikistan",992,"Istravshan","(8)3454" -"Tajikistan",992,"Jabarrasulov (former Proletarskiy)","(8)3455" -"Tajikistan",992,"Shakhristan","(8)3456" -"Tajikistan",992,"Isfara","(8)3462" -"Tajikistan",992,"Ganchi","(8)3464" -"Tajikistan",992,"Taboshar","(8)3465" -"Tajikistan",992,"Kanibadam","(8)3467" -"Tajikistan",992,"Pendjikent","(8)3475" -"Tajikistan",992,"Ayni","(8)3479" -"Tajikistan",992,"Khorog","(8)3522" -"Tajikistan",992,"Vanj","(8)3551" -"Tajikistan",992,"Darvaz (former Kalaykhumb)","(8)3552" -"Tajikistan",992,"Ishkashim","(8)3553" -"Tajikistan",992,"Murgab","(8)3554" -"Tajikistan",992,"Roshtkala","(8)3555" -"Tajikistan",992,"Rushan","(8)3556" -"Tajikistan",992,"Dushanbe","(8)372" -"Tajikistan",992,"Rydaki (former Leninsky)","(8)474" -"Tanzania",255,"Dar es Salaam","022" -"Tanzania",255,"Coast","023" -"Tanzania",255,"Zanzibar (including Pemba and Unquia)","024" -"Tanzania",255,"Mbeya- Ruvuma and Rukwa","025" -"Tanzania",255,"Dodoma and Iringa","026" -"Tanzania",255,"Arusha","027" -"Tanzania",255,"Arusha","028" -"Tanzania",255,"Tanzania","04" -"Thailand",66,"Bangkok","021" -"Thailand",66,"Bangkok","022" -"Thailand",66,"Bangkok","023" -"Thailand",66,"Bangkok","024" -"Thailand",66,"Bangkok","025" -"Thailand",66,"Bangkok","026" -"Thailand",66,"Bangkok","027" -"Thailand",66,"Bangkok","028" -"Thailand",66,"Bangkok","029" -"Thailand",66,"Ratchaburi","032" -"Thailand",66,"Nakhon Pathom","034" -"Thailand",66,"Pra Nakhon Sri Ayutthaya","035" -"Thailand",66,"Saraburi","036" -"Thailand",66,"Prachin Buri","037" -"Thailand",66,"Chon Buri","038" -"Thailand",66,"Chanthaburi","039" -"Thailand",66,"Udon Thani","042" -"Thailand",66,"Khon Kaen","043" -"Thailand",66,"Nakhon Ratchasima","044" -"Thailand",66,"Ubon Ratchathani","045" -"Thailand",66,"Chiang Mai","053" -"Thailand",66,"Lampang","054" -"Thailand",66,"Phitsanulok","055" -"Thailand",66,"Nahkon Sawan","056" -"Thailand",66,"Yala","073" -"Thailand",66,"Songkhla","074" -"Thailand",66,"Trang","075" -"Thailand",66,"Phuket","076" -"Thailand",66,"Surat Thani","077" -"Timor-Leste",670,"Western Region",2 -"Timor-Leste",670,"Central",3 -"Timor-Leste",670,"Same",21 -"Timor-Leste",670,"Suai",22 -"Timor-Leste",670,"Maliana",23 -"Timor-Leste",670,"Ainaro",24 -"Timor-Leste",670,"Oekusi",25 -"Timor-Leste",670,"Dili",30 -"Timor-Leste",670,"Dili",31 -"Timor-Leste",670,"Dili",32 -"Timor-Leste",670,"Dili",33 -"Timor-Leste",670,"Liquiça",36 -"Timor-Leste",670,"Aileu",37 -"Timor-Leste",670,"Ermera",38 -"Timor-Leste",670,"Baucau",41 -"Timor-Leste",670,"Manatuto",42 -"Timor-Leste",670,"Viqueque",43 -"Timor-Leste",670,"Los Palos",44 -"Togo",228,"Lomé",2 -"Togo",228,"Maritime region",3 -"Togo",228,"Plateaux",4 -"Togo",228,"Central region",5 -"Togo",228,"Kara region",6 -"Togo",228,"Savannah",7 -"Tokelau",690,"Atafu Atoll",2 -"Tokelau",690,"Fakaofo Atoll",3 -"Tokelau",690,"Nakunonu Atoll",4 -"Tonga",676,"Nuku’alofa",20 -"Tonga",676,"Nuku’alofa",21 -"Tonga",676,"Nuku’alofa",22 -"Tonga",676,"Nuku’alofa",23 -"Tonga",676,"Nuku’alofa",24 -"Tonga",676,"Nuku’alofa",25 -"Tonga",676,"Nuku’alofa",26 -"Tonga",676,"Nuku’alofa",27 -"Tonga",676,"Nuku’alofa",28 -"Tonga",676,"Pea",29 -"Tonga",676,"Pea",30 -"Tonga",676,"Mua",31 -"Tonga",676,"Mua",32 -"Tonga",676,"Kolonga",33 -"Tonga",676,"Kolonga",34 -"Tonga",676,"Nakolo",35 -"Tonga",676,"Nakolo",36 -"Tonga",676,"Vaini",37 -"Tonga",676,"Vaini",38 -"Tonga",676,"Masilamea",41 -"Tonga",676,"Masilamea",42 -"Tonga",676,"Matangiake",43 -"Tonga",676,"Matangiake",44 -"Tonga",676,"Eua",50 -"Tonga",676,"Ha’apai Group",60 -"Tonga",676,"Ha’apai Group",69 -"Tonga",676,"Neiafu",70 -"Tonga",676,"Neiafu",71 -"Tonga",676,"Neiafu",74 -"Tonga",676,"Neiafu",79 -"Tonga",676,"Niuafo’ou",80 -"Tonga",676,"Niuatoputapu",85 -"Trinidad and Tobago",1,"Trinidad and Tobago","(1+)868" -"Tunisia",216,"Tunis",71 -"Tunisia",216,"Nabeul",72 -"Tunisia",216,"Sousse",73 -"Tunisia",216,"Sfax",74 -"Tunisia",216,"Gabes",75 -"Tunisia",216,"Gafsa",76 -"Tunisia",216,"Kairouan",77 -"Tunisia",216,"Kef",78 -"Turkey",90,"Istanbul (Thrace)","0212" -"Turkey",90,"Istanbul (Anatolia)","0216" -"Turkey",90,"Eskisehir","0222" -"Turkey",90,"Bursa","0224" -"Turkey",90,"Yalova","0226" -"Turkey",90,"Bilecik","0228" -"Turkey",90,"Izmir","0232" -"Turkey",90,"Manisa","0236" -"Turkey",90,"Antalya","0242" -"Turkey",90,"Isparta","0246" -"Turkey",90,"Burdur","0248" -"Turkey",90,"Mugla","0252" -"Turkey",90,"Aydin","0256" -"Turkey",90,"Denizli","0258" -"Turkey",90,"Kocaeli (Izmit)","0262" -"Turkey",90,"Sakarya (Adapazari)","0264" -"Turkey",90,"Balikesir","0266" -"Turkey",90,"Afyon","0272" -"Turkey",90,"Kütahya","0274" -"Turkey",90,"Usak","0276" -"Turkey",90,"Tekirdag","0282" -"Turkey",90,"Edirne","0284" -"Turkey",90,"Çanakkale","0286" -"Turkey",90,"Kirklareli","0288" -"Turkey",90,"Ankara","0312" -"Turkey",90,"Kirikkale","0318" -"Turkey",90,"Adana","0322" -"Turkey",90,"Içel (Mersin)","0324" -"Turkey",90,"Hatay","0326" -"Turkey",90,"Osmaniye","0328" -"Turkey",90,"Konya","0332" -"Turkey",90,"Karaman","0338" -"Turkey",90,"Gaziantep","0342" -"Turkey",90,"Kahramanmaras","0344" -"Turkey",90,"Sivas","0346" -"Turkey",90,"Kilis","0348" -"Turkey",90,"Kayseri","0352" -"Turkey",90,"Yozgat","0354" -"Turkey",90,"Tokat","0356" -"Turkey",90,"Amasya","0358" -"Turkey",90,"Samsun","0362" -"Turkey",90,"Çorum","0364" -"Turkey",90,"Kastamonu","0366" -"Turkey",90,"Sinop","0368" -"Turkey",90,"Karabük","0370" -"Turkey",90,"Zonguldak","0372" -"Turkey",90,"Bolu","0374" -"Turkey",90,"Çankiri","0376" -"Turkey",90,"Bartin","0378" -"Turkey",90,"Düzce","0380" -"Turkey",90,"Aksaray","0382" -"Turkey",90,"Nevsehir","0384" -"Turkey",90,"Kirsehir","0386" -"Turkey",90,"Nigde","0388" -"Turkey",90,"Diyarbakir","0412" -"Turkey",90,"Sanliurfa","0414" -"Turkey",90,"Adiyaman","0416" -"Turkey",90,"Malatya","0422" -"Turkey",90,"Elazig","0424" -"Turkey",90,"Bingöl","0426" -"Turkey",90,"Tunceli","0428" -"Turkey",90,"Van","0432" -"Turkey",90,"Bitlis","0434" -"Turkey",90,"Mus","0436" -"Turkey",90,"Hakkari","0438" -"Turkey",90,"Erzurum","0442" -"Turkey",90,"Erzincan","0446" -"Turkey",90,"Ordu","0452" -"Turkey",90,"Giresun","0454" -"Turkey",90,"Gümüshane","0456" -"Turkey",90,"Bayburt","0458" -"Turkey",90,"Trabzon","0462" -"Turkey",90,"Rize","0464" -"Turkey",90,"Artvin","0466" -"Turkey",90,"Agri","0472" -"Turkey",90,"Kars","0474" -"Turkey",90,"Igdir","0476" -"Turkey",90,"Ardahan","0478" -"Turkey",90,"Mardin","0482" -"Turkey",90,"Siirt","0484" -"Turkey",90,"Sirnak","0486" -"Turkey",90,"Batman","0488" -"Turkmenistan",993,"Ashgabat","(8)12" -"Turkmenistan",993,"Baherden","(8)131" -"Turkmenistan",993,"Gekdepe","(8)132" -"Turkmenistan",993,"Kaka","(8)133" -"Turkmenistan",993,"Saragat","(8)134" -"Turkmenistan",993,"Tedjen","(8)135" -"Turkmenistan",993,"Babadaihan","(8)136" -"Turkmenistan",993,"Annan","(8)137" -"Turkmenistan",993,"Buzmein","(8)138" -"Turkmenistan",993,"Gipchak","(8)139" -"Turkmenistan",993,"Nebit-Dag","(8)222" -"Turkmenistan",993,"Cheleken","(8)240" -"Turkmenistan",993,"Gumdag","(8)241" -"Turkmenistan",993,"Giziletrek","(8)242" -"Turkmenistan",993,"Nebit-Dag","(8)243" -"Turkmenistan",993,"Asenguli","(8)245" -"Turkmenistan",993,"Gizilarbat","(8)246" -"Turkmenistan",993,"Gavandjik","(8)247" -"Turkmenistan",993,"Garrigala","(8)248" -"Turkmenistan",993,"Daskho","(8)322" -"Turkmenistan",993,"Tagta","(8)340" -"Turkmenistan",993,"Ailandi","(8)343" -"Turkmenistan",993,"Akdepe","(8)344" -"Turkmenistan",993,"Gubadag","(8)345" -"Turkmenistan",993,"Boldumsaz","(8)346" -"Turkmenistan",993,"Keneurgench","(8)347" -"Turkmenistan",993,"Niazovsk","(8)348" -"Turkmenistan",993,"Turkmenbashi","(8)349" -"Turkmenistan",993,"Keneurgench","(8)360" -"Turkmenistan",993,"Charjou","(8)422" -"Turkmenistan",993,"Turkmenabat","(8)428" -"Turkmenistan",993,"Govurdak","(8)431" -"Turkmenistan",993,"Kizilatrek","(8)432" -"Turkmenistan",993,"Gazachak","(8)438" -"Turkmenistan",993,"Charkshanga","(8)440" -"Turkmenistan",993,"Halach","(8)441" -"Turkmenistan",993,"Hodzambaz","(8)442" -"Turkmenistan",993,"Garabekevul","(8)443" -"Turkmenistan",993,"Kerki","(8)444" -"Turkmenistan",993,"Darganata","(8)445" -"Turkmenistan",993,"Djenev","(8)446" -"Turkmenistan",993,"Sajat","(8)447" -"Turkmenistan",993,"Farap","(8)448" -"Turkmenistan",993,"Sakar","(8)449" -"Turkmenistan",993,"Seidi","(8)461" -"Turkmenistan",993,"Dostluk","(8)465" -"Turkmenistan",993,"Mary","(8)522" -"Turkmenistan",993,"Jahti-el","(8)557" -"Turkmenistan",993,"Mollanepes","(8)558" -"Turkmenistan",993,"Gulanli","(8)559" -"Turkmenistan",993,"Eloten","(8)560" -"Turkmenistan",993,"Gushgi","(8)561" -"Turkmenistan",993,"Bairamali","(8)564" -"Turkmenistan",993,"Murgap","(8)565" -"Turkmenistan",993,"Sakarchagi","(8)566" -"Turkmenistan",993,"Tagtabazar","(8)568" -"Turkmenistan",993,"Turkmengala","(8)569" -"Turks and Caicos Islands",1,"Turks and Caicos Islands","(1)649" -"Uganda",256,"Kampala – Central","031" -"Uganda",256,"Jinja – Central","033" -"Uganda",256,"Mbale – Central","035" -"Uganda",256,"Mityana","036" -"Uganda",256,"Kampala – Central","041" -"Uganda",256,"Jinja – Central","043" -"Uganda",256,"Mbale – Central","045" -"Uganda",256,"Mityana","046" -"Uganda",256,"Mubende","0464" -"Uganda",256,"Masindi","0465" -"Uganda",256,"Gulu","0471" -"Uganda",256,"Lira","0473" -"Uganda",256,"Arua","0476" -"Uganda",256,"Masaka","0481" -"Uganda",256,"Fort Portal","0483" -"Uganda",256,"Mbarara","0485" -"Uganda",256,"Kabale","0486" -"Ukraine",380,"Uzhhorod","(8~0)312" -"Ukraine",380,"Serednie","(8~0)3122" -"Ukraine",380,"Chynadiieve","(8~0)3131" -"Ukraine",380,"Rakhiv","(8~0)3132" -"Ukraine",380,"Poliana","(8~0)3133" -"Ukraine",380,"Bushtyna","(8~0)3134" -"Ukraine",380,"Velykyi Bereznyi","(8~0)3135" -"Ukraine",380,"Nyzhni Vorota","(8~0)3136" -"Ukraine",380,"Chop","(8~0)3137" -"Ukraine",380,"Berehove","(8~0)3141" -"Ukraine",380,"Khust","(8~0)31422" -"Ukraine",380,"Vylok","(8~0)3143" -"Ukraine",380,"Dovhe","(8~0)3144" -"Ukraine",380,"Perechyn","(8~0)3145" -"Ukraine",380,"Mizhhiria","(8~0)3146" -"Ukraine",380,"Lviv","(8~0)32" -"Ukraine",380,"Briukhovychi","(8~0)322" -"Ukraine",380,"Pustomyty","(8~0)3230" -"Ukraine",380,"Horodok","(8~0)3231" -"Ukraine",380,"Mostyska","(8~0)3234" -"Ukraine",380,"Dubliany","(8~0)3236" -"Ukraine",380,"Dobromyl","(8~0)3238" -"Ukraine",380,"Hnizdychiv","(8~0)3239" -"Ukraine",380,"Rozdol","(8~0)3241" -"Ukraine",380,"Drohobych","(8~0)3244" -"Ukraine",380,"Dashava","(8~0)3245" -"Ukraine",380,"Truskavets","(8~0)3247" -"Ukraine",380,"Boryslav","(8~0)3248" -"Ukraine",380,"Chervonohrad","(8~0)3249" -"Ukraine",380,"Skole","(8~0)3251" -"Ukraine",380,"Dubliany","(8~0)3252" -"Ukraine",380,"Dobrotvir","(8~0)3254" -"Ukraine",380,"Lopatyn","(8~0)3255" -"Ukraine",380,"Belz","(8~0)3257" -"Ukraine",380,"Ivano-Frankove","(8~0)3259" -"Ukraine",380,"Morshyn","(8~0)32606" -"Ukraine",380,"Novyi Rozdol","(8~0)3261" -"Ukraine",380,"Bibrka","(8~0)3263" -"Ukraine",380,"Busk","(8~0)3264" -"Ukraine",380,"Hlyniany","(8~0)3265" -"Ukraine",380,"Brody","(8~0)3266" -"Ukraine",380,"Borynia","(8~0)3269" -"Ukraine",380,"Lutsk","(8~0)33" -"Ukraine",380,"Lutsk","(8~0)332" -"Ukraine",380,"Torchyn","(8~0)3322" -"Ukraine",380,"Ustyluh","(8~0)3342" -"Ukraine",380,"Novovolynsk","(8~0)3344" -"Ukraine",380,"Stara Vyzhivka","(8~0)3346" -"Ukraine",380,"Holoby","(8~0)3352" -"Ukraine",380,"Kamin-Kashyrskyi","(8~0)3357" -"Ukraine",380,"Liubeshiv","(8~0)3362" -"Ukraine",380,"Lukiv","(8~0)3363" -"Ukraine",380,"Kivertsi","(8~0)3365" -"Ukraine",380,"Ratne","(8~0)3366" -"Ukraine",380,"Berezoluky","(8~0)3368" -"Ukraine",380,"Ivanychi","(8~0)3372" -"Ukraine",380,"Lokachi","(8~0)3374" -"Ukraine",380,"Kolky","(8~0)3376" -"Ukraine",380,"Holovne","(8~0)3377" -"Ukraine",380,"Berestechko","(8~0)3379" -"Ukraine",380,"Ivano-Frankivsk","(8~0)34" -"Ukraine",380,"Ivano-Frankivsk","(8~0)342" -"Ukraine",380,"Chernelytsia","(8~0)3430" -"Ukraine",380,"Bilshivtsi","(8~0)3431" -"Ukraine",380,"Verkhovyna","(8~0)3432" -"Ukraine",380,"Hvizdets","(8~0)3433" -"Ukraine",380,"Vorokhta","(8~0)3434" -"Ukraine",380,"Yaremcha","(8~0)34342" -"Ukraine",380,"Bukachivtsi","(8~0)3435" -"Ukraine",380,"Lysets","(8~0)3436" -"Ukraine",380,"Burshtyn","(8~0)3438" -"Ukraine",380,"Bohorodchany","(8~0)3471" -"Ukraine",380,"Kalush","(8~0)3472" -"Ukraine",380,"Broshniv-Osada","(8~0)3474" -"Ukraine",380,"Diliatyn","(8~0)3475" -"Ukraine",380,"Sniatyn","(8~0)3476" -"Ukraine",380,"Bolekhiv","(8~0)3477" -"Ukraine",380,"Kosiv","(8~0)3478" -"Ukraine",380,"Tlumach","(8~0)3479" -"Ukraine",380,"Ternopil","(8~0)35" -"Ukraine",380,"Ternopil","(8~0)352" -"Ukraine",380,"Zalozhtsi","(8~0)3540" -"Ukraine",380,"Borshchiv","(8~0)3541" -"Ukraine",380,"Pidhaitsi","(8~0)3542" -"Ukraine",380,"Nove Selo","(8~0)3543" -"Ukraine",380,"Buchach","(8~0)3544" -"Ukraine",380,"Kremenets","(8~0)3546" -"Ukraine",380,"Kozliv","(8~0)3547" -"Ukraine",380,"Berezhany","(8~0)3548" -"Ukraine",380,"Lanivtsi","(8~0)3549" -"Ukraine",380,"Vyshnivets","(8~0)3550" -"Ukraine",380,"Mykulyntsi","(8~0)3551" -"Ukraine",380,"Chortkiv","(8~0)3552" -"Ukraine",380,"Tovste","(8~0)3554" -"Ukraine",380,"Koropets","(8~0)3555" -"Ukraine",380,"Dubno","(8~0)3556" -"Ukraine",380,"Hrymailiv","(8~0)3557" -"Ukraine",380,"Shumske","(8~0)3558" -"Ukraine",380,"Rivne","(8~0)36" -"Ukraine",380,"Klevan","(8~0)362" -"Ukraine",380,"Zarichne","(8~0)3632" -"Ukraine",380,"Radyvyliv","(8~0)3633" -"Ukraine",380,"Volodymyrets","(8~0)3634" -"Ukraine",380,"Rokytne","(8~0)3635" -"Ukraine",380,"Kuznetsovsk","(8~0)3636" -"Ukraine",380,"Hoshcha","(8~0)3650" -"Ukraine",380,"Korets","(8~0)3651" -"Ukraine",380,"Mizoch","(8~0)3652" -"Ukraine",380,"Zdolbuniv","(8~0)36522" -"Ukraine",380,"Berezne","(8~0)3653" -"Ukraine",380,"Ostroh","(8~0)3654" -"Ukraine",380,"Klesiv","(8~0)36552" -"Ukraine",380,"Smyha","(8~0)3656" -"Ukraine",380,"Kostopil","(8~0)3657" -"Ukraine",380,"Dubrovytsia","(8~0)3658" -"Ukraine",380,"Demydivka","(8~0)3659" -"Ukraine",380,"Chernivtsi","(8~0)37" -"Ukraine",380,"Chernivtsi","(8~0)372" -"Ukraine",380,"Chernivtsi","(8~0)3722" -"Ukraine",380,"Berehomet","(8~0)3730" -"Ukraine",380,"Khotyn","(8~0)37312" -"Ukraine",380,"Kelmentsi","(8~0)3732" -"Ukraine",380,"Novoselytsia","(8~0)3733" -"Ukraine",380,"Hlyboka","(8~0)3734" -"Ukraine",380,"Krasnoilsk","(8~0)3735" -"Ukraine",380,"Kitsman","(8~0)3736" -"Ukraine",380,"Kostryzhivka","(8~0)3737" -"Ukraine",380,"Putyla","(8~0)3738" -"Ukraine",380,"Sokyriany","(8~0)3739" -"Ukraine",380,"Hertsa","(8~0)3740" -"Ukraine",380,"Novodnistrovsk","(8~0)3741" -"Ukraine",380,"Khmelnytskyi","(8~0)38" -"Ukraine",380,"Khmelnytskyi","(8~0)382" -"Ukraine",380,"Chornyi Ostriv","(8~0)3822" -"Ukraine",380,"Hrytsiv","(8~0)3840" -"Ukraine",380,"Yampil","(8~0)3841" -"Ukraine",380,"Slavuta","(8~0)3842" -"Ukraine",380,"Polonne","(8~0)3843" -"Ukraine",380,"Bazaliia","(8~0)3844" -"Ukraine",380,"Viitivtsi","(8~0)3845" -"Ukraine",380,"Vinkivtsi","(8~0)3846" -"Ukraine",380,"Nova Ushytsia","(8~0)3847" -"Ukraine",380,"Netishyn","(8~0)3848" -"Ukraine",380,"Kamianets-Podilskyi","(8~0)3849" -"Ukraine",380,"Stara Syniava","(8~0)3850" -"Ukraine",380,"Horodok","(8~0)3851" -"Ukraine",380,"Iziaslav","(8~0)3852" -"Ukraine",380,"Yarmolyntsi","(8~0)3853" -"Ukraine",380,"Starokonstiantyniv","(8~0)3854" -"Ukraine",380,"Antoniny","(8~0)3855" -"Ukraine",380,"Derazhnia","(8~0)3856" -"Ukraine",380,"Letychiv","(8~0)3857" -"Ukraine",380,"Dunaivtsi","(8~0)3858" -"Ukraine",380,"Chemerivtsi","(8~0)3859" -"Ukraine",380,"Zhytomyr","(8~0)41" -"Ukraine",380,"Zhytomyr","(8~0)412" -"Ukraine",380,"Huiva","(8~0)4122" -"Ukraine",380,"Korystyshiv","(8~0)4130" -"Ukraine",380,"Chervonoarmiisk","(8~0)4131" -"Ukraine",380,"Bila Krynytsa","(8~0)4132" -"Ukraine",380,"Chopovychi","(8~0)4133" -"Ukraine",380,"Cherniakhiv","(8~0)4134" -"Ukraine",380,"Buchmany","(8~0)4135" -"Ukraine",380,"Andrushivka","(8~0)4136" -"Ukraine",380,"Kornyn","(8~0)4137" -"Ukraine",380,"Popilnia","(8~0)41372" -"Ukraine",380,"Ruzhyn","(8~0)4138" -"Ukraine",380,"Chudniv","(8~0)4139" -"Ukraine",380,"Narodychi","(8~0)4140" -"Ukraine",380,"Bronytska Huta","(8~0)4141" -"Ukraine",380,"Korosten","(8~0)4142" -"Ukraine",380,"Berdychiv","(8~0)4143" -"Ukraine",380,"Dovbysh","(8~0)4144" -"Ukraine",380,"Baranivka","(8~0)41444" -"Ukraine",380,"Irshansk","(8~0)4145" -"Ukraine",380,"Bykivka","(8~0)4146" -"Ukraine",380,"Liubar","(8~0)4147" -"Ukraine",380,"Pershotravneve","(8~0)4148" -"Ukraine",380,"Ovruch","(8~0)41483" -"Ukraine",380,"Yablunets","(8~0)4149" -"Ukraine",380,"Yemilchyne","(8~0)41494" -"Ukraine",380,"Luhyny","(8~0)4161" -"Ukraine",380,"Brusyliv","(8~0)4162" -"Ukraine",380,"Zhovtneve","(8~0)4191" -"Ukraine",380,"Vinnytsia","(8~0)43" -"Ukraine",380,"Stryzhavka","(8~0)432" -"Ukraine",380,"Orativ","(8~0)4330" -"Ukraine",380,"Bratslav","(8~0)4331" -"Ukraine",380,"Brailiv","(8~0)4332" -"Ukraine",380,"Kalynivka","(8~0)4333" -"Ukraine",380,"Haisyn","(8~0)4334" -"Ukraine",380,"Kyrnasivka","(8~0)4335" -"Ukraine",380,"Yampil","(8~0)4336" -"Ukraine",380,"Mohyliv-Podilskyi","(8~0)4337" -"Ukraine",380,"Ulaniv","(8~0)433861" -"Ukraine",380,"Khmilnyk","(8~0)43388" -"Ukraine",380,"Kryzhopil","(8~0)4340" -"Ukraine",380,"Kopaihorod","(8~0)4341" -"Ukraine",380,"Bar","(8~0)43410" -"Ukraine",380,"Koziatyn","(8~0)4342" -"Ukraine",380,"Ladyzhyn","(8~0)4343" -"Ukraine",380,"Sharhorod","(8~0)4344" -"Ukraine",380,"Dashiv","(8~0)4345" -"Ukraine",380,"Pohrebyshche","(8~0)4346" -"Ukraine",380,"Lityn","(8~0)4347" -"Ukraine",380,"Tomashpil","(8~0)4348" -"Ukraine",380,"Pishchanka","(8~0)4349" -"Ukraine",380,"Vapniarka","(8~0)4350" -"Ukraine",380,"Chechelnyk","(8~0)4351" -"Ukraine",380,"Bershad","(8~0)4352" -"Ukraine",380,"Teplyk","(8~0)4353" -"Ukraine",380,"Hnivan","(8~0)4355" -"Ukraine",380,"Murovani Kurylivtsi","(8~0)4356" -"Ukraine",380,"Lypovets","(8~0)4358" -"Ukraine",380,"Kyiv","(8~0)44" -"Ukraine",380,"Myronivka","(8~0)44474" -"Ukraine",380,"Tetiiv","(8~0)4460" -"Ukraine",380,"Bohuslav","(8~0)4461" -"Ukraine",380,"Rokytne","(8~0)4462" -"Ukraine",380,"Bila Tserkva","(8~0)4463" -"Ukraine",380,"Stavyshche","(8~0)4464" -"Ukraine",380,"Borova","(8~0)4465" -"Ukraine",380,"Tarashcha","(8~0)4466" -"Ukraine",380,"Pereiaslav-Khmelnytskyi","(8~0)4467" -"Ukraine",380,"Skvyra","(8~0)4468" -"Ukraine",380,"Zhurivka","(8~0)4470" -"Ukraine",380,"Hlevakha","(8~0)4471" -"Ukraine",380,"Kozyn","(8~0)4472" -"Ukraine",380,"Kaharlyk","(8~0)4473" -"Ukraine",380,"Yahotyn","(8~0)4475" -"Ukraine",380,"Baryshivka","(8~0)4476" -"Ukraine",380,"Babyntsi","(8~0)4477" -"Ukraine",380,"Makariv","(8~0)4478" -"Ukraine",380,"Slavutych","(8~0)4479" -"Ukraine",380,"Ivankiv","(8~0)4491" -"Ukraine",380,"Poliske","(8~0)4492" -"Ukraine",380,"Chornobyl","(8~0)4493" -"Ukraine",380,"Brovary","(8~0)4494" -"Ukraine",380,"Boryspil","(8~0)4495" -"Ukraine",380,"Dymer","(8~0)4496" -"Ukraine",380,"Bucha","(8~0)4497" -"Ukraine",380,"Boiarka","(8~0)4498" -"Ukraine",380,"Chernihiv","(8~0)46" -"Ukraine",380,"Chernihiv","(8~0)462" -"Ukraine",380,"Chernihiv","(8~0)4622" -"Ukraine",380,"Losynivka","(8~0)4631" -"Ukraine",380,"Bobrovytsia","(8~0)4632" -"Ukraine",380,"Druzhba","(8~0)4633" -"Ukraine",380,"Talalaivka","(8~0)4634" -"Ukraine",380,"Bakhmach","(8~0)4635" -"Ukraine",380,"Varna","(8~0)4636" -"Ukraine",380,"Ladan","(8~0)4637" -"Ukraine",380,"Dihtiari","(8~0)4639" -"Ukraine",380,"Dobrianka","(8~0)4641" -"Ukraine",380,"Nosivka","(8~0)4642" -"Ukraine",380,"Kulykivka","(8~0)4643" -"Ukraine",380,"Berezna","(8~0)4644" -"Ukraine",380,"Horodnia","(8~0)4645" -"Ukraine",380,"Desna","(8~0)4646" -"Ukraine",380,"Borzna","(8~0)4653" -"Ukraine",380,"Shchors","(8~0)4654" -"Ukraine",380,"Sosnytsia","(8~0)4655" -"Ukraine",380,"Korop","(8~0)4656" -"Ukraine",380,"Kholmy","(8~0)4657" -"Ukraine",380,"Novhorod-Siverskyi","(8~0)4658" -"Ukraine",380,"Semenivka","(8~0)4659" -"Ukraine",380,"Cherkasy","(8~0)47" -"Ukraine",380,"Cherkasy","(8~0)472" -"Ukraine",380,"Irdyn","(8~0)4722" -"Ukraine",380,"Chyhyryn","(8~0)4730" -"Ukraine",380,"Talne","(8~0)4731" -"Ukraine",380,"Kamianka","(8~0)4732" -"Ukraine",380,"Rotmistrivka","(8~0)4733" -"Ukraine",380,"Horodyshche","(8~0)4734" -"Ukraine",380,"Korsun-Shevchenkivskyi","(8~0)4735" -"Ukraine",380,"Kaniv","(8~0)4736" -"Ukraine",380,"Zolotonosha","(8~0)4737" -"Ukraine",380,"Drabiv","(8~0)4738" -"Ukraine",380,"Chornobai","(8~0)4739" -"Ukraine",380,"Vatutine","(8~0)4740" -"Ukraine",380,"Shpola","(8~0)4741" -"Ukraine",380,"Katerynopil","(8~0)4742" -"Ukraine",380,"Uman","(8~0)4744" -"Ukraine",380,"Khrystynivka","(8~0)4745" -"Ukraine",380,"Monastyryshche","(8~0)4746" -"Ukraine",380,"Zhashkiv","(8~0)4747" -"Ukraine",380,"Buky","(8~0)4748" -"Ukraine",380,"Lysianka","(8~0)4749" -"Ukraine",380,"Odesa","(8~0)48" -"Ukraine",380,"Novi Biliary","(8~0)482" -"Ukraine",380,"Reni","(8~0)4840" -"Ukraine",380,"Izmail","(8~0)4841" -"Ukraine",380,"Kilia","(8~0)4843" -"Ukraine",380,"Tatarbunary","(8~0)4844" -"Ukraine",380,"Artsyz","(8~0)4845" -"Ukraine",380,"Bolhrad","(8~0)4846" -"Ukraine",380,"Berezyne","(8~0)4847" -"Ukraine",380,"Sarata","(8~0)4848" -"Ukraine",380,"Bilhorod-Dnistrovskyi","(8~0)4849" -"Ukraine",380,"Ovidiopil","(8~0)4851" -"Ukraine",380,"Biliavka","(8~0)4852" -"Ukraine",380,"Lymanske","(8~0)4853" -"Ukraine",380,"Ivanivka","(8~0)4854" -"Ukraine",380,"Kominternivske","(8~0)4855" -"Ukraine",380,"Berezivka","(8~0)4856" -"Ukraine",380,"Shyriaieve","(8~0)4858" -"Ukraine",380,"Tsebrykove","(8~0)4859" -"Ukraine",380,"Frunzivka","(8~0)4860" -"Ukraine",380,"Krasni Okny","(8~0)4861" -"Ukraine",380,"Kotovsk","(8~0)4862" -"Ukraine",380,"Liubashivka","(8~0)4864" -"Ukraine",380,"Savran","(8~0)4865" -"Ukraine",380,"Balta","(8~0)4866" -"Ukraine",380,"Kodyma","(8~0)4867" -"Ukraine",380,"Illichivsk","(8~0)4868" -"Ukraine",380,"Mykolaiv","(8~0)51" -"Ukraine",380,"Mykolaiv","(8~0)512" -"Ukraine",380,"Bratske","(8~0)5131" -"Ukraine",380,"Arbuzynka","(8~0)5132" -"Ukraine",380,"Kryve Ozero","(8~0)5133" -"Ukraine",380,"Oleksandrivka","(8~0)5134" -"Ukraine",380,"Vradiivka","(8~0)5135" -"Ukraine",380,"Yuzhnoukrainsk","(8~0)5136" -"Ukraine",380,"Novyi Buh","(8~0)5151" -"Ukraine",380,"Domanivka","(8~0)5152" -"Ukraine",380,"Berezanka","(8~0)5153" -"Ukraine",380,"Ochakiv","(8~0)5154" -"Ukraine",380,"Bashtanka","(8~0)5158" -"Ukraine",380,"Yelanets","(8~0)5159" -"Ukraine",380,"Pervomaisk","(8~0)5161" -"Ukraine",380,"Snihurivka","(8~0)5162" -"Ukraine",380,"Kudriavtsivka","(8~0)5163" -"Ukraine",380,"Kazanka","(8~0)5164" -"Ukraine",380,"Nova Odesa","(8~0)5167" -"Ukraine",380,"Bereznehuvate","(8~0)5168" -"Ukraine",380,"Kirovohrad","(8~0)52" -"Ukraine",380,"Kirovohrad","(8~0)522" -"Ukraine",380,"Znamianka","(8~0)5233" -"Ukraine",380,"Dolynska","(8~0)5234" -"Ukraine",380,"Dymytrove","(8~0)5235" -"Ukraine",380,"Svitlovodsk","(8~0)5236" -"Ukraine",380,"Petrove","(8~0)5237" -"Ukraine",380,"Onufriivka","(8~0)5238" -"Ukraine",380,"Ustynivka","(8~0)5239" -"Ukraine",380,"Kompaniivka","(8~0)5240" -"Ukraine",380,"Novhorodka","(8~0)5241" -"Ukraine",380,"Oleksandrivka","(8~0)5242" -"Ukraine",380,"Vilshanka","(8~0)5250" -"Ukraine",380,"Novoukrainka","(8~0)5251" -"Ukraine",380,"Holovanivsk","(8~0)5252" -"Ukraine",380,"Dobrovelychivka","(8~0)5253" -"Ukraine",380,"Haivoron","(8~0)5254" -"Ukraine",380,"Novoarkhanhelsk","(8~0)5255" -"Ukraine",380,"Kapitanivka","(8~0)5256" -"Ukraine",380,"Bobrynets","(8~0)5257" -"Ukraine",380,"Mala Vyska","(8~0)5258" -"Ukraine",380,"Ulianovka","(8~0)5259" -"Ukraine",380,"Poltava","(8~0)53" -"Ukraine",380,"Poltava","(8~0)532" -"Ukraine",380,"Chornukhy","(8~0)5340" -"Ukraine",380,"Semenivka","(8~0)5341" -"Ukraine",380,"Kozelshchyna","(8~0)5342" -"Ukraine",380,"Kobeliaky","(8~0)5343" -"Ukraine",380,"Novi Sanzhary","(8~0)5344" -"Ukraine",380,"Hoholeve","(8~0)5345" -"Ukraine",380,"Karlivka","(8~0)5346" -"Ukraine",380,"Artemivka","(8~0)5347" -"Ukraine",380,"Komsomolsk","(8~0)5348" -"Ukraine",380,"Kotelva","(8~0)5350" -"Ukraine",380,"Dykanka","(8~0)5351" -"Ukraine",380,"Shyshaky","(8~0)5352" -"Ukraine",380,"Opishnia","(8~0)5353" -"Ukraine",380,"Hadiach","(8~0)5354" -"Ukraine",380,"Komyshnia","(8~0)5355" -"Ukraine",380,"Chervonozavodske","(8~0)5356" -"Ukraine",380,"Novoorzhytske","(8~0)5357" -"Ukraine",380,"Pyriatyn","(8~0)5358" -"Ukraine",380,"Hrebinka","(8~0)5359" -"Ukraine",380,"Lubny","(8~0)53615" -"Ukraine",380,"Khorol","(8~0)5362" -"Ukraine",380,"Reshetylivka","(8~0)5363" -"Ukraine",380,"Mashivka","(8~0)5364" -"Ukraine",380,"Hlobyne","(8~0)5365" -"Ukraine",380,"Sumy","(8~0)54" -"Ukraine",380,"Khotin","(8~0)542" -"Ukraine",380,"Stepanivka","(8~0)5422" -"Ukraine",380,"Putyvl","(8~0)5442" -"Ukraine",380,"Bilopillia","(8~0)5443" -"Ukraine",380,"Chervone","(8~0)5444" -"Ukraine",380,"Lebedyn","(8~0)5445" -"Ukraine",380,"Chupakhivka","(8~0)5446" -"Ukraine",380,"Duboviazivka","(8~0)5447" -"Ukraine",380,"Romny","(8~0)5448" -"Ukraine",380,"Shostka","(8~0)5449" -"Ukraine",380,"Seredyna-Buda","(8~0)5451" -"Ukraine",380,"Lypova Dolyna","(8~0)5452" -"Ukraine",380,"Krolevets","(8~0)5453" -"Ukraine",380,"Buryn","(8~0)5454" -"Ukraine",380,"Nedryhailiv","(8~0)5455" -"Ukraine",380,"Druzhba","(8~0)5456" -"Ukraine",380,"Kyrykivka","(8~0)5457" -"Ukraine",380,"Trostianets","(8~0)5458" -"Ukraine",380,"Krasnopillia","(8~0)5459" -"Ukraine",380,"Kherson","(8~0)55" -"Ukraine",380,"Kherson","(8~0)552" -"Ukraine",380,"Kalanchak","(8~0)5530" -"Ukraine",380,"Ivanivka","(8~0)5531" -"Ukraine",380,"Bila Krynytsia","(8~0)5532" -"Ukraine",380,"Novovorontsovka","(8~0)5533" -"Ukraine",380,"Henichevsk","(8~0)5534" -"Ukraine",380,"Arkhanhelske","(8~0)5535" -"Ukraine",380,"Kakhovka","(8~0)5536" -"Ukraine",380,"Antonivka","(8~0)5537" -"Ukraine",380,"Askanija Nova","(8~0)5538" -"Ukraine",380,"Hola Prystan","(8~0)5539" -"Ukraine",380,"Nyzhni Sirihizy","(8~0)5540" -"Ukraine",380,"Brylivka","(8~0)5542" -"Ukraine",380,"Rubanivka","(8~0)55431" -"Ukraine",380,"Hornostaivka","(8~0)5544" -"Ukraine",380,"Verkhnii Rohachyk","(8~0)5545" -"Ukraine",380,"Beryslav","(8~0)5546" -"Ukraine",380,"Bilozerka","(8~0)5547" -"Ukraine",380,"Novotroitske","(8~0)5548" -"Ukraine",380,"Nova Kakhovka","(8~0)5549" -"Ukraine",380,"Dnipropetrovsk","(8~0)56" -"Ukraine",380,"Tsarychanka","(8~0)5610" -"Ukraine",380,"Mahdalynivka","(8~0)5611" -"Ukraine",380,"Hubynykha","(8~0)5612" -"Ukraine",380,"Synelnykove","(8~0)5615" -"Ukraine",380,"Solone","(8~0)5616" -"Ukraine",380,"Auly","(8~0)5617" -"Ukraine",380,"Novomykolaivka","(8~0)5618" -"Ukraine",380,"Dnipropetrovsk","(8~0)562" -"Ukraine",380,"Kryvyi Rih","(8~0)564" -"Ukraine",380,"Sofiivka","(8~0)5650" -"Ukraine",380,"Piatykhatky","(8~0)56510" -"Ukraine",380,"Zhovti Vody","(8~0)5652" -"Ukraine",380,"Vilnohirsk","(8~0)5653" -"Ukraine",380,"Zelenodolsk","(8~0)5655" -"Ukraine",380,"Apostolove","(8~0)5656" -"Ukraine",380,"Mykolaivka","(8~0)5657" -"Ukraine",380,"Chervonohryhorivka","(8~0)5662" -"Ukraine",380,"Marhanets","(8~0)5665" -"Ukraine",380,"Ordzhonikidze","(8~0)5667" -"Ukraine",380,"Tomakivka","(8~0)5668" -"Ukraine",380,"Mezhova","(8~0)5670" -"Ukraine",380,"Petropavlivka","(8~0)5671" -"Ukraine",380,"Pavlohrad","(8~0)5672" -"Ukraine",380,"Pershotravensk","(8~0)5673" -"Ukraine",380,"Porkovske","(8~0)5678" -"Ukraine",380,"Chaplyne","(8~0)5679" -"Ukraine",380,"Dniprodzerzhynsk","(8~0)5692" -"Ukraine",380,"Kharkiv","(8~0)57" -"Ukraine",380,"Babai","(8~0)572" -"Ukraine",380,"Kolomak","(8~0)5733" -"Ukraine",380,"Nova Vodolaha","(8~0)5740" -"Ukraine",380,"Staryi Saltiv","(8~0)5741" -"Ukraine",380,"Kivsharivka","(8~0)5742" -"Ukraine",380,"Izium","(8~0)5743" -"Ukraine",380,"Krasnohrad","(8~0)57442" -"Ukraine",380,"Krasnopavlivka","(8~0)5745" -"Ukraine",380,"Chkalovske","(8~0)5746" -"Ukraine",380,"Komsomolske","(8~0)5747" -"Ukraine",380,"Pervomaiskyi","(8~0)5748" -"Ukraine",380,"Balakliia","(8~0)5749" -"Ukraine",380,"Dvorichna","(8~0)5750" -"Ukraine",380,"Shevchenkove","(8~0)5751" -"Ukraine",380,"Prykolotne","(8~0)5752" -"Ukraine",380,"Koviahy","(8~0)5753" -"Ukraine",380,"Blyzniuky","(8~0)5754" -"Ukraine",380,"Chapaieve","(8~0)5755" -"Ukraine",380,"Kostiantynivka","(8~0)5756" -"Ukraine",380,"Barvinkove","(8~0)57572" -"Ukraine",380,"Bohodukhiv","(8~0)5758" -"Ukraine",380,"Borova","(8~0)5759" -"Ukraine",380,"Zachepylivka","(8~0)5761" -"Ukraine",380,"Sakhnovshchyna","(8~0)5762" -"Ukraine",380,"Cherkaska Lozova","(8~0)5763" -"Ukraine",380,"Zolochiv","(8~0)5764" -"Ukraine",380,"Pechenihy","(8~0)5765" -"Ukraine",380,"Zaporizhia","(8~0)61" -"Ukraine",380,"Balabyne","(8~0)612" -"Ukraine",380,"Kyrylivka","(8~0)6131" -"Ukraine",380,"Mykhailivka","(8~0)6132" -"Ukraine",380,"Novovasylivka","(8~0)6133" -"Ukraine",380,"Vesele","(8~0)6136" -"Ukraine",380,"Prymorsk","(8~0)6137" -"Ukraine",380,"Kamianka-Dniprovska","(8~0)6138" -"Ukraine",380,"Enerhodar","(8~0)6139" -"Ukraine",380,"Chernihivka","(8~0)6140" -"Ukraine",380,"Komyshuvakha","(8~0)6141" -"Ukraine",380,"Melitopol","(8~0)6142" -"Ukraine",380,"Vilniansk","(8~0)6143" -"Ukraine",380,"Novomykolaivka","(8~0)6144" -"Ukraine",380,"Huliaipole","(8~0)6145" -"Ukraine",380,"Komysh-Zoria","(8~0)6147" -"Ukraine",380,"Berdiansk","(8~0)6153" -"Ukraine",380,"Rozivka","(8~0)6162" -"Ukraine",380,"Polohy","(8~0)6165" -"Ukraine",380,"Dniprorudne","(8~0)6175" -"Ukraine",380,"Tokmak","(8~0)6178" -"Ukraine",380,"Donetsk","(8~0)62" -"Ukraine",380,"Krasnohorivka","(8~0)6212" -"Ukraine",380,"Velyka Novosilka","(8~0)6213" -"Ukraine",380,"Dokuchaievsk","(8~0)6214" -"Ukraine",380,"Komsomolske","(8~0)6217" -"Ukraine",380,"Donetsk","(8~0)622" -"Ukraine",380,"Makiivka","(8~0)6232" -"Ukraine",380,"Avdiivka","(8~0)6236" -"Ukraine",380,"Hirnyk","(8~0)6237" -"Ukraine",380,"Dymytrov","(8~0)6239" -"Ukraine",380,"Horlivka","(8~0)6242" -"Ukraine",380,"Dzerzhynsk","(8~0)6247" -"Ukraine",380,"Debaltseve","(8~0)6249" -"Ukraine",380,"Kirovske","(8~0)6250" -"Ukraine",380,"Druzhne","(8~0)6252" -"Ukraine",380,"Torez","(8~0)6254" -"Ukraine",380,"Shakhtarsk","(8~0)6255" -"Ukraine",380,"Brazhyne","(8~0)6256" -"Ukraine",380,"Ilovaisk","(8~0)6257" -"Ukraine",380,"Amvrosiivka","(8~0)6259" -"Ukraine",380,"Drobysheve","(8~0)6261" -"Ukraine",380,"Andriivka","(8~0)6262" -"Ukraine",380,"Bilenke","(8~0)6264" -"Ukraine",380,"Druzhkivka","(8~0)6267" -"Ukraine",380,"Oleksandrivka","(8~0)6269" -"Ukraine",380,"Kostiantynivka","(8~0)6272" -"Ukraine",380,"Vuhledar","(8~0)6273" -"Ukraine",380,"Artemivsk","(8~0)6274" -"Ukraine",380,"Bilozerske","(8~0)6277" -"Ukraine",380,"Telmanove","(8~0)6279" -"Ukraine",380,"Mariupol","(8~0)629" -"Ukraine",380,"Novoazovsk","(8~0)6296" -"Ukraine",380,"Pershotravneve","(8~0)6297" -"Ukraine",380,"Myrne","(8~0)6299" -"Ukraine",380,"Luhansk","(8~0)64" -"Ukraine",380,"Luhansk","(8~0)642" -"Ukraine",380,"Antratsyt","(8~0)6431" -"Ukraine",380,"Krasnyi Luch","(8~0)6432" -"Ukraine",380,"Rovenky","(8~0)6433" -"Ukraine",380,"Sverdlovsk","(8~0)6434" -"Ukraine",380,"Izvaryne","(8~0)6435" -"Ukraine",380,"Lutuhyne","(8~0)6436" -"Ukraine",380,"Perevalsk","(8~0)6441" -"Ukraine",380,"Alchevsk","(8~0)6442" -"Ukraine",380,"Brianka","(8~0)6443" -"Ukraine",380,"Stakhanov","(8~0)6444" -"Ukraine",380,"Novyi Aidar","(8~0)6445" -"Ukraine",380,"Kirovsk","(8~0)6446" -"Ukraine",380,"Lysychansk","(8~0)6451" -"Ukraine",380,"Sieverodonetsk","(8~0)6452" -"Ukraine",380,"Rubizhne","(8~0)6453" -"Ukraine",380,"Kreminna","(8~0)6454" -"Ukraine",380,"Pervomaisk","(8~0)6455" -"Ukraine",380,"Troitske","(8~0)6456" -"Ukraine",380,"Starobilsk","(8~0)6461" -"Ukraine",380,"Bilokurakyne","(8~0)6462" -"Ukraine",380,"Bilolutsk","(8~0)6463" -"Ukraine",380,"Markivka","(8~0)6464" -"Ukraine",380,"Milove","(8~0)6465" -"Ukraine",380,"Nyzhnia Duvanka","(8~0)6471" -"Ukraine",380,"Stanychno-Luhanske","(8~0)6472" -"Ukraine",380,"Frunze","(8~0)6473" -"Ukraine",380,"Popasna","(8~0)6474" -"Ukraine",380,"Simferopol","(8~0)65" -"Ukraine",380,"Aeroflotskyi","(8~0)652" -"Ukraine",380,"Alupka","(8~0)654" -"Ukraine",380,"Nyzhnohirskyi","(8~0)6550" -"Ukraine",380,"Sovietskyi","(8~0)6551" -"Ukraine",380,"Pervomaiske","(8~0)6552" -"Ukraine",380,"Novoselivske","(8~0)6553" -"Ukraine",380,"Bakhchysarai","(8~0)6554" -"Ukraine",380,"Kirovske","(8~0)6555" -"Ukraine",380,"Krasnohvardiiske","(8~0)6556" -"Ukraine",380,"Baherove","(8~0)6557" -"Ukraine",380,"Chornomorske","(8~0)6558" -"Ukraine",380,"Znlia","(8~0)6559" -"Ukraine",380,"Alushta","(8~0)6560" -"Ukraine",380,"Kerch","(8~0)6561" -"Ukraine",380,"Feodosiia","(8~0)6562" -"Ukraine",380,"Saky","(8~0)6563" -"Ukraine",380,"Azovske","(8~0)6564" -"Ukraine",380,"Armiansk","(8~0)6565" -"Ukraine",380,"Kurortne","(8~0)6566" -"Ukraine",380,"Novoozerne","(8~0)6569" -"Ukraine",380,"Sevastopol","(8~0)69" -"Ukraine",380,"Bilokamiansk","(8~0)692" -"United Arab Emirates",971,"Abu Dhabi","02" -"United Arab Emirates",971,"Al Ain","03" -"United Arab Emirates",971,"Dubai","04" -"United Arab Emirates",971,"Ajman","06" -"United Arab Emirates",971,"Ras Al Khaimah","07" -"United Arab Emirates",971,"Fujairah","09" -"United Kingdom",44,"Leeds","0113" -"United Kingdom",44,"Sheffield","0114" -"United Kingdom",44,"Nottingham","0115" -"United Kingdom",44,"Leicester","0116" -"United Kingdom",44,"Bristol","0117" -"United Kingdom",44,"Reading","0118" -"United Kingdom",44,"Clitheroe","01200" -"United Kingdom",44,"Bournemouth","01202" -"United Kingdom",44,"Bolton","01204" -"United Kingdom",44,"Boston","01205" -"United Kingdom",44,"Colchester","01206" -"United Kingdom",44,"Consett","01207" -"United Kingdom",44,"Bodmin","01208" -"United Kingdom",44,"Redruth","01209" -"United Kingdom",44,"Birmingham","0121" -"United Kingdom",44,"Cambridge","01223" -"United Kingdom",44,"Aberdeen","01224" -"United Kingdom",44,"Bath","01225" -"United Kingdom",44,"Barnsley","01226" -"United Kingdom",44,"Canterbury","01227" -"United Kingdom",44,"Carlisle","01228" -"United Kingdom",44,"Barrow-in-Furness / Millom","01229" -"United Kingdom",44,"Ashford","01233" -"United Kingdom",44,"Bedford","01234" -"United Kingdom",44,"Abingdon","01235" -"United Kingdom",44,"Coatbridge","01236" -"United Kingdom",44,"Bideford","01237" -"United Kingdom",44,"Cardigan","01239" -"United Kingdom",44,"Arbroath","01241" -"United Kingdom",44,"Cheltenham","01242" -"United Kingdom",44,"Chichester","01243" -"United Kingdom",44,"Chester","01244" -"United Kingdom",44,"Chelmsford","01245" -"United Kingdom",44,"Chesterfield","01246" -"United Kingdom",44,"Bangor (Gwynedd)","01248" -"United Kingdom",44,"Chippenham","01249" -"United Kingdom",44,"Blairgowrie","01250" -"United Kingdom",44,"Aldershot","01252" -"United Kingdom",44,"Blackpool","01253" -"United Kingdom",44,"Blackburn","01254" -"United Kingdom",44,"Clacton-on-Sea","01255" -"United Kingdom",44,"Basingstoke","01256" -"United Kingdom",44,"Coppull","01257" -"United Kingdom",44,"Blandford","01258" -"United Kingdom",44,"Alloa","01259" -"United Kingdom",44,"Congleton","01260" -"United Kingdom",44,"Banff","01261" -"United Kingdom",44,"Bridlington","01262" -"United Kingdom",44,"Cromer","01263" -"United Kingdom",44,"Andover","01264" -"United Kingdom",44,"Carmarthen","01267" -"United Kingdom",44,"Basildon","01268" -"United Kingdom",44,"Ammanford","01269" -"United Kingdom",44,"Crewe","01270" -"United Kingdom",44,"Barnstable","01271" -"United Kingdom",44,"Brighton","01273" -"United Kingdom",44,"Bradford","01274" -"United Kingdom",44,"Clevedon","01275" -"United Kingdom",44,"Camberley","01276" -"United Kingdom",44,"Brentwood","01277" -"United Kingdom",44,"Bridgwater","01278" -"United Kingdom",44,"Bishops Stortford","01279" -"United Kingdom",44,"Buckingham","01280" -"United Kingdom",44,"Burnley","01282" -"United Kingdom",44,"Burton-on-Trent","01283" -"United Kingdom",44,"Bury-St-Edmunds","01284" -"United Kingdom",44,"Cirencester","01285" -"United Kingdom",44,"Caernarvon","01286" -"United Kingdom",44,"Guisborough","01287" -"United Kingdom",44,"Bude","01288" -"United Kingdom",44,"Berwick-on-Tweed","01289" -"United Kingdom",44,"Cumnock","01290" -"United Kingdom",44,"Chepstow","01291" -"United Kingdom",44,"Ayr","01292" -"United Kingdom",44,"Crawley","01293" -"United Kingdom",44,"Ardrossan","01294" -"United Kingdom",44,"Banbury","01295" -"United Kingdom",44,"Aylesbury","01296" -"United Kingdom",44,"Axminster","01297" -"United Kingdom",44,"Buxton","01298" -"United Kingdom",44,"Bewdley","01299" -"United Kingdom",44,"Cerne Abbas","01300" -"United Kingdom",44,"Arrochar","01301" -"United Kingdom",44,"Doncaster","01302" -"United Kingdom",44,"Folkestone","01303" -"United Kingdom",44,"Dover","01304" -"United Kingdom",44,"Dorchester","01305" -"United Kingdom",44,"Dorking","01306" -"United Kingdom",44,"Forfar","01307" -"United Kingdom",44,"Bridport","01308" -"United Kingdom",44,"Forres","01309" -"United Kingdom",44,"Edinburgh","0131" -"United Kingdom",44,"Fort Augustus","01320" -"United Kingdom",44,"Dartford","01322" -"United Kingdom",44,"Eastbourne","01323" -"United Kingdom",44,"Falkirk","01324" -"United Kingdom",44,"Darlington","01325" -"United Kingdom",44,"Falmouth","01326" -"United Kingdom",44,"Daventry","01327" -"United Kingdom",44,"Fakenham","01328" -"United Kingdom",44,"Fareham","01329" -"United Kingdom",44,"Banchory","01330" -"United Kingdom",44,"Derby","01332" -"United Kingdom",44,"Peat Inn","01333" -"United Kingdom",44,"St Andrews","01334" -"United Kingdom",44,"Ashbourne","01335" -"United Kingdom",44,"Ladybank","01337" -"United Kingdom",44,"Aboyne / Ballater","01339" -"United Kingdom",44,"Craigellachie","01340" -"United Kingdom",44,"Barmouth","01341" -"United Kingdom",44,"East Grinstead","01342" -"United Kingdom",44,"Elgin","01343" -"United Kingdom",44,"Bracknell","01344" -"United Kingdom",44,"Fraserburgh","01346" -"United Kingdom",44,"Easingwold","01347" -"United Kingdom",44,"Fishguard","01348" -"United Kingdom",44,"Dingwall","01349" -"United Kingdom",44,"Dunkeld","01350" -"United Kingdom",44,"Mold","01352" -"United Kingdom",44,"Ely","01353" -"United Kingdom",44,"Chatteris","01354" -"United Kingdom",44,"East Kilbride","01355" -"United Kingdom",44,"Brechin","01356" -"United Kingdom",44,"Strathaven","01357" -"United Kingdom",44,"Ellon","01358" -"United Kingdom",44,"Pakenham","01359" -"United Kingdom",44,"Killearn","01360" -"United Kingdom",44,"Duns","01361" -"United Kingdom",44,"Dereham","01362" -"United Kingdom",44,"Crediton","01363" -"United Kingdom",44,"Ashburton","01364" -"United Kingdom",44,"Downham Market","01366" -"United Kingdom",44,"Faringdon","01367" -"United Kingdom",44,"Dunbar","01368" -"United Kingdom",44,"Dunoon","01369" -"United Kingdom",44,"Great Dunmow","01371" -"United Kingdom",44,"Esher","01372" -"United Kingdom",44,"Frome","01373" -"United Kingdom",44,"Grays Thurrock","01375" -"United Kingdom",44,"Braintree","01376" -"United Kingdom",44,"Driffield","01377" -"United Kingdom",44,"Diss","01379" -"United Kingdom",44,"Devizes","01380" -"United Kingdom",44,"Fortrose","01381" -"United Kingdom",44,"Dundee","01382" -"United Kingdom",44,"Dunfermline","01383" -"United Kingdom",44,"Dudley","01384" -"United Kingdom",44,"Evesham","01386" -"United Kingdom",44,"Dumfries","01387" -"United Kingdom",44,"Langholm","013873" -"United Kingdom",44,"Bishop Auckland / Stanhope","01388" -"United Kingdom",44,"Dumbarton","01389" -"United Kingdom",44,"Exeter","01392" -"United Kingdom",44,"Felixstowe","01394" -"United Kingdom",44,"Budleigh Salterton","01395" -"United Kingdom",44,"Fort William","01397" -"United Kingdom",44,"Dulverton","01398" -"United Kingdom",44,"Honington","01400" -"United Kingdom",44,"Horsham","01403" -"United Kingdom",44,"Honiton","01404" -"United Kingdom",44,"Goole","01405" -"United Kingdom",44,"Holbeach","01406" -"United Kingdom",44,"Holyhead","01407" -"United Kingdom",44,"Golspie","01408" -"United Kingdom",44,"Holsworthy","01409" -"United Kingdom",44,"Glasgow","0141" -"United Kingdom",44,"Alton","01420" -"United Kingdom",44,"Halifax","01422" -"United Kingdom",44,"Harrogate / Boroughbridge","01423" -"United Kingdom",44,"Hastings","01424" -"United Kingdom",44,"Ringwood","01425" -"United Kingdom",44,"Gainsborough","01427" -"United Kingdom",44,"Haslemere","01428" -"United Kingdom",44,"Hartlepool","01429" -"United Kingdom",44,"North Cave / Market Weighton","01430" -"United Kingdom",44,"Helmsdale","01431" -"United Kingdom",44,"Hereford","01432" -"United Kingdom",44,"Hathersage","01433" -"United Kingdom",44,"Bellingham / Haltwhistle / Hexham","01434" -"United Kingdom",44,"Heathfield","01435" -"United Kingdom",44,"Helensburgh","01436" -"United Kingdom",44,"Haverfordwest / Clynderwen","01437" -"United Kingdom",44,"Stevenage","01438" -"United Kingdom",44,"Helmsley","01439" -"United Kingdom",44,"Haverhill","01440" -"United Kingdom",44,"Hemel Hempstead","01442" -"United Kingdom",44,"Pontypridd","01443" -"United Kingdom",44,"Haywards Heath","01444" -"United Kingdom",44,"Gairloch","01445" -"United Kingdom",44,"Barry","01446" -"United Kingdom",44,"Stowmarket","01449" -"United Kingdom",44,"Hawick","01450" -"United Kingdom",44,"Stow-on-the-Wold","01451" -"United Kingdom",44,"Gloucester","01452" -"United Kingdom",44,"Dursley","01453" -"United Kingdom",44,"Chipping Sodbury","01454" -"United Kingdom",44,"Hinckley","01455" -"United Kingdom",44,"Glenurquhart","01456" -"United Kingdom",44,"Glossop","01457" -"United Kingdom",44,"Glastonbury","01458" -"United Kingdom",44,"Chard","01460" -"United Kingdom",44,"Gretna","01461" -"United Kingdom",44,"Hitchin","01462" -"United Kingdom",44,"Inverness","01463" -"United Kingdom",44,"Insch","01464" -"United Kingdom",44,"Girvan","01465" -"United Kingdom",44,"Huntly","01466" -"United Kingdom",44,"Inverurie","01467" -"United Kingdom",44,"Killingholme","01469" -"United Kingdom",44,"Isle of Skye - Edinbane","01470" -"United Kingdom",44,"Isle of Skye - Broadford","01471" -"United Kingdom",44,"Grimsby","01472" -"United Kingdom",44,"Ipswich","01473" -"United Kingdom",44,"Gravesend","01474" -"United Kingdom",44,"Greenock","01475" -"United Kingdom",44,"Grantham","01476" -"United Kingdom",44,"Holmes Chapel","01477" -"United Kingdom",44,"Isle of Skye - Portree","01478" -"United Kingdom",44,"Grantown-on-Spey","01479" -"United Kingdom",44,"Huntingdon","01480" -"United Kingdom",44,"Hull","01482" -"United Kingdom",44,"Guildford","01483" -"United Kingdom",44,"Huddersfield","01484" -"United Kingdom",44,"Hunstanton","01485" -"United Kingdom",44,"Warboys","01487" -"United Kingdom",44,"Hungerford","01488" -"United Kingdom",44,"Bishops Waltham","01489" -"United Kingdom",44,"Corwen","01490" -"United Kingdom",44,"Henley on Thames","01491" -"United Kingdom",44,"Colwyn Bay","01492" -"United Kingdom",44,"Great Yarmouth","01493" -"United Kingdom",44,"High Wycombe","01494" -"United Kingdom",44,"Pontypool","01495" -"United Kingdom",44,"Port Ellen","01496" -"United Kingdom",44,"Hay-on-Wye","01497" -"United Kingdom",44,"Inveraray","01499" -"United Kingdom",44,"Harthill","01501" -"United Kingdom",44,"Lowestoft","01502" -"United Kingdom",44,"Looe","01503" -"United Kingdom",44,"Johnstone","01505" -"United Kingdom",44,"Bathgate","01506" -"United Kingdom",44,"Louth / Alford / Spilsby","01507" -"United Kingdom",44,"Brooke","01508" -"United Kingdom",44,"Loughborough","01509" -"United Kingdom",44,"Liverpool","0151" -"United Kingdom",44,"Liverpool","01510" -"United Kingdom",44,"Liverpool","01511" -"United Kingdom",44,"Liverpool","01512" -"United Kingdom",44,"Liverpool","01513" -"United Kingdom",44,"Liverpool","01514" -"United Kingdom",44,"Liverpool","01515" -"United Kingdom",44,"Liverpool","01516" -"United Kingdom",44,"Liverpool","01517" -"United Kingdom",44,"Liverpool","01518" -"United Kingdom",44,"Liverpool","01519" -"United Kingdom",44,"Lochcarron","01520" -"United Kingdom",44,"Lincoln","01522" -"United Kingdom",44,"Lancaster","01524" -"United Kingdom",44,"Hornby","015242" -"United Kingdom",44,"Leighton Buzzard","01525" -"United Kingdom",44,"Martin","01526" -"United Kingdom",44,"Redditch","01527" -"United Kingdom",44,"Laggan","01528" -"United Kingdom",44,"Sleaford","01529" -"United Kingdom",44,"Coalville","01530" -"United Kingdom",44,"Ledbury","01531" -"United Kingdom",44,"Keighley","01535" -"United Kingdom",44,"Kettering","01536" -"United Kingdom",44,"Ipstones","01538" -"United Kingdom",44,"Kendal","01539" -"United Kingdom",44,"Hawkshead","015394" -"United Kingdom",44,"Grange over Sands","015395" -"United Kingdom",44,"Sedbergh","015396" -"United Kingdom",44,"Kingussie","01540" -"United Kingdom",44,"Keith","01542" -"United Kingdom",44,"Cannock","01543" -"United Kingdom",44,"Kington","01544" -"United Kingdom",44,"Llanarth","01545" -"United Kingdom",44,"Lochgilphead","01546" -"United Kingdom",44,"Knighton","01547" -"United Kingdom",44,"Kingsbridge","01548" -"United Kingdom",44,"Lairg","01549" -"United Kingdom",44,"Llandovery","01550" -"United Kingdom",44,"Kings Lynn","01553" -"United Kingdom",44,"Llanelli","01554" -"United Kingdom",44,"Lanark","01555" -"United Kingdom",44,"Castle Douglas","01556" -"United Kingdom",44,"Kirkcudbright","01557" -"United Kingdom",44,"Llandeilo","01558" -"United Kingdom",44,"Llandyssul","01559" -"United Kingdom",44,"Moscow","01560" -"United Kingdom",44,"Laurencekirk","01561" -"United Kingdom",44,"Kidderminster","01562" -"United Kingdom",44,"Kilmarnock","01563" -"United Kingdom",44,"Lapworth","01564" -"United Kingdom",44,"Knutsford","01565" -"United Kingdom",44,"Launceston","01566" -"United Kingdom",44,"Killin","01567" -"United Kingdom",44,"Leominster","01568" -"United Kingdom",44,"Stonehaven","01569" -"United Kingdom",44,"Lampeter","01570" -"United Kingdom",44,"Lochinver","01571" -"United Kingdom",44,"Oakham","01572" -"United Kingdom",44,"Kelso","01573" -"United Kingdom",44,"Kirriemuir","01575" -"United Kingdom",44,"Lockerbie","01576" -"United Kingdom",44,"Kinross","01577" -"United Kingdom",44,"Lauder","01578" -"United Kingdom",44,"Liskeard","01579" -"United Kingdom",44,"Cranbrook","01580" -"United Kingdom",44,"New Luce","01581" -"United Kingdom",44,"Luton","01582" -"United Kingdom",44,"Carradale","01583" -"United Kingdom",44,"Ludlow","01584" -"United Kingdom",44,"Campbeltown","01586" -"United Kingdom",44,"Bishops Castle","01588" -"United Kingdom",44,"Lymington","01590" -"United Kingdom",44,"Llanwrtyd Wells","01591" -"United Kingdom",44,"Kirkcaldy","01592" -"United Kingdom",44,"Lybster","01593" -"United Kingdom",44,"Lydney","01594" -"United Kingdom",44,"Lerwick-Foula & Fair Isle","01595" -"United Kingdom",44,"Llandrindod Wells","01597" -"United Kingdom",44,"Lynton","01598" -"United Kingdom",44,"Kyle","01599" -"United Kingdom",44,"Monmouth","01600" -"United Kingdom",44,"Norwich","01603" -"United Kingdom",44,"Northampton","01604" -"United Kingdom",44,"Northwich","01606" -"United Kingdom",44,"Chipping Norton","01608" -"United Kingdom",44,"Northallerton","01609" -"United Kingdom",44,"Manchester","0161" -"United Kingdom",44,"North Berwick","01620" -"United Kingdom",44,"Maldon","01621" -"United Kingdom",44,"Maidstone","01622" -"United Kingdom",44,"Mansfield","01623" -"United Kingdom",44,"Isle of Man","01624" -"United Kingdom",44,"Macclesfield","01625" -"United Kingdom",44,"Newton Abbot","01626" -"United Kingdom",44,"Maidenhead","01628" -"United Kingdom",44,"Matlock","01629" -"United Kingdom",44,"Market Drayton","01630" -"United Kingdom",44,"Oban","01631" -"United Kingdom",44,"Newport","01633" -"United Kingdom",44,"Medway","01634" -"United Kingdom",44,"Newbury","01635" -"United Kingdom",44,"Newark","01636" -"United Kingdom",44,"Newquay","01637" -"United Kingdom",44,"Newmarket","01638" -"United Kingdom",44,"Neath","01639" -"United Kingdom",44,"Strathy","01641" -"United Kingdom",44,"Middlesbrough","01642" -"United Kingdom",44,"Minehead","01643" -"United Kingdom",44,"New Galloway","01644" -"United Kingdom",44,"Milford Haven","01646" -"United Kingdom",44,"Moretonhampstead","01647" -"United Kingdom",44,"Cemmaes Road","01650" -"United Kingdom",44,"Oldmeldrum","01651" -"United Kingdom",44,"Brigg","01652" -"United Kingdom",44,"Malton","01653" -"United Kingdom",44,"Machynlleth","01654" -"United Kingdom",44,"Maybole","01655" -"United Kingdom",44,"Bridgend","01656" -"United Kingdom",44,"Sanquhar","01659" -"United Kingdom",44,"Prudhoe","01661" -"United Kingdom",44,"New Mills","01663" -"United Kingdom",44,"Melton Mowbray","01664" -"United Kingdom",44,"Alnwick","01665" -"United Kingdom",44,"Malmesbury","01666" -"United Kingdom",44,"Nairn","01667" -"United Kingdom",44,"Bamburgh","01668" -"United Kingdom",44,"Rothbury","01669" -"United Kingdom",44,"Morpeth","01670" -"United Kingdom",44,"Newton Stewart","01671" -"United Kingdom",44,"Marlborough","01672" -"United Kingdom",44,"Market Rasen","01673" -"United Kingdom",44,"Montrose","01674" -"United Kingdom",44,"Coleshill","01675" -"United Kingdom",44,"Meriden","01676" -"United Kingdom",44,"Bedale","01677" -"United Kingdom",44,"Bala","01678" -"United Kingdom",44,"Isle of Mull - Craignure","01680" -"United Kingdom",44,"Isle of Mull - Fionnphort","01681" -"United Kingdom",44,"Moffat","01683" -"United Kingdom",44,"Malvern","01684" -"United Kingdom",44,"Merthyr Tydfil","01685" -"United Kingdom",44,"Newtown / Llanidloes","01686" -"United Kingdom",44,"Mallaig","01687" -"United Kingdom",44,"Isle of Mull - Tobermory","01688" -"United Kingdom",44,"Orpington","01689" -"United Kingdom",44,"Betws-y-Coed","01690" -"United Kingdom",44,"Oswestry","01691" -"United Kingdom",44,"North Walsham","01692" -"United Kingdom",44,"Church Stretton","01694" -"United Kingdom",44,"Skelmersdale","01695" -"United Kingdom",44,"Brampton","01697" -"United Kingdom",44,"Wigton","016973" -"United Kingdom",44,"Raughton Head","016974" -"United Kingdom",44,"Motherwell","01698" -"United Kingdom",44,"Rothesay","01700" -"United Kingdom",44,"Southend-on-Sea","01702" -"United Kingdom",44,"Southport","01704" -"United Kingdom",44,"Rochdale","01706" -"United Kingdom",44,"Welwyn Garden City","01707" -"United Kingdom",44,"Romford","01708" -"United Kingdom",44,"Rotherham","01709" -"United Kingdom",44,"Isles of Scilly","01720" -"United Kingdom",44,"Peebles","01721" -"United Kingdom",44,"Salisbury","01722" -"United Kingdom",44,"Scarborough","01723" -"United Kingdom",44,"Scunthorpe","01724" -"United Kingdom",44,"Rockbourne","01725" -"United Kingdom",44,"St Austell","01726" -"United Kingdom",44,"St Albans","01727" -"United Kingdom",44,"Saxmundham","01728" -"United Kingdom",44,"Settle","01729" -"United Kingdom",44,"Petersfield","01730" -"United Kingdom",44,"Sevenoaks","01732" -"United Kingdom",44,"Peterborough","01733" -"United Kingdom",44,"Penzance","01736" -"United Kingdom",44,"Redhill","01737" -"United Kingdom",44,"Perth","01738" -"United Kingdom",44,"Sedgefield","01740" -"United Kingdom",44,"Shrewsbury","01743" -"United Kingdom",44,"St Helens","01744" -"United Kingdom",44,"Rhyl","01745" -"United Kingdom",44,"Bridgnorth","01746" -"United Kingdom",44,"Shaftesbury","01747" -"United Kingdom",44,"Richmond","01748" -"United Kingdom",44,"Shepton Mallet","01749" -"United Kingdom",44,"Selkirk","01750" -"United Kingdom",44,"Pickering","01751" -"United Kingdom",44,"Plymouth","01752" -"United Kingdom",44,"Slough","01753" -"United Kingdom",44,"Skegness","01754" -"United Kingdom",44,"Skipton","01756" -"United Kingdom",44,"Selby","01757" -"United Kingdom",44,"Pwllheli","01758" -"United Kingdom",44,"Pocklington","01759" -"United Kingdom",44,"Swaffham","01760" -"United Kingdom",44,"Temple Cloud","01761" -"United Kingdom",44,"Royston","01763" -"United Kingdom",44,"Crieff","01764" -"United Kingdom",44,"Ripon","01765" -"United Kingdom",44,"Porthmadog","01766" -"United Kingdom",44,"Sandy","01767" -"United Kingdom",44,"Penrith","01768" -"United Kingdom",44,"Appleby","017683" -"United Kingdom",44,"Pooley Bridge","017684" -"United Kingdom",44,"Keswick","017687" -"United Kingdom",44,"South Molton","01769" -"United Kingdom",44,"Isle of Arran","01770" -"United Kingdom",44,"Maud","01771" -"United Kingdom",44,"Preston","01772" -"United Kingdom",44,"Ripley","01773" -"United Kingdom",44,"Spalding","01775" -"United Kingdom",44,"Stranraer","01776" -"United Kingdom",44,"Retford","01777" -"United Kingdom",44,"Bourne","01778" -"United Kingdom",44,"Peterhead","01779" -"United Kingdom",44,"Stamford","01780" -"United Kingdom",44,"Stoke-on-Trent","01782" -"United Kingdom",44,"Staines","01784" -"United Kingdom",44,"Stafford","01785" -"United Kingdom",44,"Stirling","01786" -"United Kingdom",44,"Sudbury","01787" -"United Kingdom",44,"Rugby","01788" -"United Kingdom",44,"Stratford-upon-Avon","01789" -"United Kingdom",44,"Spilsby","01790" -"United Kingdom",44,"Swansea","01792" -"United Kingdom",44,"Swindon","01793" -"United Kingdom",44,"Romsey","01794" -"United Kingdom",44,"Sittingbourne","01795" -"United Kingdom",44,"Pitlochry","01796" -"United Kingdom",44,"Rye","01797" -"United Kingdom",44,"Pulborough","01798" -"United Kingdom",44,"Saffron Walden","01799" -"United Kingdom",44,"Torquay","01803" -"United Kingdom",44,"Torrington","01805" -"United Kingdom",44,"Shetland","01806" -"United Kingdom",44,"Ballindalloch","01807" -"United Kingdom",44,"Tomatin","01808" -"United Kingdom",44,"Tomdoun","01809" -"United Kingdom",44,"Kinrossie","01821" -"United Kingdom",44,"Tavistock","01822" -"United Kingdom",44,"Taunton","01823" -"United Kingdom",44,"Ruthin","01824" -"United Kingdom",44,"Uckfield","01825" -"United Kingdom",44,"Tamworth","01827" -"United Kingdom",44,"Coupar Angus","01828" -"United Kingdom",44,"Tarporley","01829" -"United Kingdom",44,"Kirkwhelpington","01830" -"United Kingdom",44,"Clopton","01832" -"United Kingdom",44,"Barnard Castle","01833" -"United Kingdom",44,"Narberth","01834" -"United Kingdom",44,"St Boswells","01835" -"United Kingdom",44,"Okehampton","01837" -"United Kingdom",44,"Dalmally","01838" -"United Kingdom",44,"Camelford","01840" -"United Kingdom",44,"Newquay","01841" -"United Kingdom",44,"Thetford","01842" -"United Kingdom",44,"Thanet","01843" -"United Kingdom",44,"Thame","01844" -"United Kingdom",44,"Thirsk","01845" -"United Kingdom",44,"Thurso / Tongue","01847" -"United Kingdom",44,"Thornhill","01848" -"United Kingdom",44,"Great Bernera / Stornoway","01851" -"United Kingdom",44,"Kilmelford","01852" -"United Kingdom",44,"Ullapool","01854" -"United Kingdom",44,"Ballachulish","01855" -"United Kingdom",44,"Orkney","01856" -"United Kingdom",44,"Sanday","01857" -"United Kingdom",44,"Market Harborough","01858" -"United Kingdom",44,"Harris","01859" -"United Kingdom",44,"Tain","01862" -"United Kingdom",44,"Ardgay","01863" -"United Kingdom",44,"Abington","01864" -"United Kingdom",44,"Oxford","01865" -"United Kingdom",44,"Kilchrenan","01866" -"United Kingdom",44,"Bicester","01869" -"United Kingdom",44,"Isle of Benbecula","01870" -"United Kingdom",44,"Castlebay","01871" -"United Kingdom",44,"Truro","01872" -"United Kingdom",44,"Abergavenny","01873" -"United Kingdom",44,"Brecon","01874" -"United Kingdom",44,"Tranent","01875" -"United Kingdom",44,"Lochmaddy","01876" -"United Kingdom",44,"Callander","01877" -"United Kingdom",44,"Lochboisdale","01878" -"United Kingdom",44,"Scarinish","01879" -"United Kingdom",44,"Tarbert","01880" -"United Kingdom",44,"Kinloch Rannoch","01882" -"United Kingdom",44,"Caterham","01883" -"United Kingdom",44,"Tiverton","01884" -"United Kingdom",44,"Pencombe","01885" -"United Kingdom",44,"Bromyard","01886" -"United Kingdom",44,"Aberfeldy","01887" -"United Kingdom",44,"Turriff","01888" -"United Kingdom",44,"Rugeley","01889" -"United Kingdom",44,"Coldstream / Ayton","01890" -"United Kingdom",44,"Tunbridge Wells","01892" -"United Kingdom",44,"Uxbridge","01895" -"United Kingdom",44,"Galashiels","01896" -"United Kingdom",44,"Biggar","01899" -"United Kingdom",44,"Workington","01900" -"United Kingdom",44,"Wolverhampton","01902" -"United Kingdom",44,"Worthing","01903" -"United Kingdom",44,"York","01904" -"United Kingdom",44,"Worcester","01905" -"United Kingdom",44,"Milton Keynes","01908" -"United Kingdom",44,"Worksop","01909" -"United Kingdom",44,"Tyneside / Durham / Sunderland","0191" -"United Kingdom",44,"Ware","01920" -"United Kingdom",44,"Walsall","01922" -"United Kingdom",44,"Watford","01923" -"United Kingdom",44,"Wakefield","01924" -"United Kingdom",44,"Warrington","01925" -"United Kingdom",44,"Warwick","01926" -"United Kingdom",44,"Runcorn","01928" -"United Kingdom",44,"Wareham","01929" -"United Kingdom",44,"Shap","01931" -"United Kingdom",44,"Weybridge","01932" -"United Kingdom",44,"Wellingborough","01933" -"United Kingdom",44,"Weston-Super-Mare","01934" -"United Kingdom",44,"Yeovil","01935" -"United Kingdom",44,"Wetherby","01937" -"United Kingdom",44,"Welshpool","01938" -"United Kingdom",44,"Wem","01939" -"United Kingdom",44,"Wigan","01942" -"United Kingdom",44,"Guiseley","01943" -"United Kingdom",44,"West Heslerton","01944" -"United Kingdom",44,"Wisbech","01945" -"United Kingdom",44,"Whitehaven","01946" -"United Kingdom",44,"Gosforth","019467" -"United Kingdom",44,"Whitby","01947" -"United Kingdom",44,"Whitchurch","01948" -"United Kingdom",44,"Whatton","01949" -"United Kingdom",44,"Sandwick","01950" -"United Kingdom",44,"Colonsay","01951" -"United Kingdom",44,"Telford","01952" -"United Kingdom",44,"Wymondham","01953" -"United Kingdom",44,"Madingley","01954" -"United Kingdom",44,"Wick","01955" -"United Kingdom",44,"Mid Yell","01957" -"United Kingdom",44,"Westerham","01959" -"United Kingdom",44,"Winchester","01962" -"United Kingdom",44,"Wincanton","01963" -"United Kingdom",44,"Hornsea / Patrington","01964" -"United Kingdom",44,"Strontian","01967" -"United Kingdom",44,"Penicuik","01968" -"United Kingdom",44,"Leyburn","01969" -"United Kingdom",44,"Aberystwyth","01970" -"United Kingdom",44,"Scourie","01971" -"United Kingdom",44,"Glenborrodale","01972" -"United Kingdom",44,"Llanon","01974" -"United Kingdom",44,"Alford / Strathdon","01975" -"United Kingdom",44,"Pontefract","01977" -"United Kingdom",44,"Wrexham","01978" -"United Kingdom",44,"Amesbury","01980" -"United Kingdom",44,"Wormbridge","01981" -"United Kingdom",44,"Builth Wells","01982" -"United Kingdom",44,"Isle of Wight","01983" -"United Kingdom",44,"Watchet","01984" -"United Kingdom",44,"Warminster","01985" -"United Kingdom",44,"Bungay","01986" -"United Kingdom",44,"Wigtown","01988" -"United Kingdom",44,"Ross-on-Wye","01989" -"United Kingdom",44,"Lea Valley","01992" -"United Kingdom",44,"Witney","01993" -"United Kingdom",44,"St Clears","01994" -"United Kingdom",44,"Garstang","01995" -"United Kingdom",44,"Strathpeffer","01997" -"United Kingdom",44,"London","020" -"United Kingdom",44,"London","0200" -"United Kingdom",44,"London","0201" -"United Kingdom",44,"Portsmouth / Southampton","023" -"United Kingdom",44,"Coventry","024" -"United Kingdom",44,"Nothern Ireland","028" -"United Kingdom",44,"Nothern Ireland","0280" -"United Kingdom",44,"Nothern Ireland","0281" -"United Kingdom",44,"Cardiff","029" -"United States",1,"New Jersey","(1+)201" -"United States",1,"District Of Columbia","(1+)202" -"United States",1,"Connecticut","(1+)203" -"United States",1,"Alabama","(1+)205" -"United States",1,"Washington","(1+)206" -"United States",1,"Maine","(1+)207" -"United States",1,"Idaho","(1+)208" -"United States",1,"California","(1+)209" -"United States",1,"Texas","(1+)210" -"United States",1,"New York","(1+)212" -"United States",1,"California","(1+)213" -"United States",1,"Texas","(1+)214" -"United States",1,"Pennsylvania","(1+)215" -"United States",1,"Ohio","(1+)216" -"United States",1,"Illinois","(1+)217" -"United States",1,"Minnesota","(1+)218" -"United States",1,"Indiana","(1+)219" -"United States",1,"Illinois","(1+)224" -"United States",1,"Louisiana","(1+)225" -"United States",1,"Mississippi","(1+)228" -"United States",1,"Georgia","(1+)229" -"United States",1,"Michigan","(1+)231" -"United States",1,"Ohio","(1+)234" -"United States",1,"Florida","(1+)239" -"United States",1,"Maryland","(1+)240" -"United States",1,"Michigan","(1+)248" -"United States",1,"Alabama","(1+)251" -"United States",1,"North Carolina","(1+)252" -"United States",1,"Washington","(1+)253" -"United States",1,"Texas","(1+)254" -"United States",1,"Alabama","(1+)256" -"United States",1,"Indiana","(1+)260" -"United States",1,"Wisconsin","(1+)262" -"United States",1,"Pennsylvania","(1+)267" -"United States",1,"Michigan","(1+)269" -"United States",1,"Kentucky","(1+)270" -"United States",1,"Virginia","(1+)276" -"United States",1,"Texas","(1+)281" -"United States",1,"Maryland","(1+)301" -"United States",1,"Delaware","(1+)302" -"United States",1,"Colorado","(1+)303" -"United States",1,"West Virginia","(1+)304" -"United States",1,"Florida","(1+)305" -"United States",1,"Wyoming","(1+)307" -"United States",1,"Nebraska","(1+)308" -"United States",1,"Illinois","(1+)309" -"United States",1,"California","(1+)310" -"United States",1,"Illinois","(1+)312" -"United States",1,"Michigan","(1+)313" -"United States",1,"Missouri","(1+)314" -"United States",1,"New York","(1+)315" -"United States",1,"Kansas","(1+)316" -"United States",1,"Indiana","(1+)317" -"United States",1,"Louisiana","(1+)318" -"United States",1,"Iowa","(1+)319" -"United States",1,"Minnesota","(1+)320" -"United States",1,"Florida","(1+)321" -"United States",1,"California","(1+)323" -"United States",1,"Texas","(1+)325" -"United States",1,"Ohio","(1+)330" -"United States",1,"Alabama","(1+)334" -"United States",1,"North Carolina","(1+)336" -"United States",1,"Louisiana","(1+)337" -"United States",1,"Massachusetts","(1+)339" -"United States",1,"New York","(1+)347" -"United States",1,"Massachusetts","(1+)351" -"United States",1,"Florida","(1+)352" -"United States",1,"Washington","(1+)360" -"United States",1,"Texas","(1+)361" -"United States",1,"Florida","(1+)386" -"United States",1,"Rhode Island","(1+)401" -"United States",1,"Nebraska","(1+)402" -"United States",1,"Georgia","(1+)404" -"United States",1,"Oklahoma","(1+)405" -"United States",1,"Montana","(1+)406" -"United States",1,"Florida","(1+)407" -"United States",1,"California","(1+)408" -"United States",1,"Texas","(1+)409" -"United States",1,"Maryland","(1+)410" -"United States",1,"Pennsylvania","(1+)412" -"United States",1,"Massachusetts","(1+)413" -"United States",1,"Wisconsin","(1+)414" -"United States",1,"California","(1+)415" -"United States",1,"Missouri","(1+)417" -"United States",1,"Ohio","(1+)419" -"United States",1,"Tennessee","(1+)423" -"United States",1,"California","(1+)424" -"United States",1,"Washington","(1+)425" -"United States",1,"Texas","(1+)430" -"United States",1,"Texas","(1+)432" -"United States",1,"Virginia","(1+)434" -"United States",1,"Utah","(1+)435" -"United States",1,"Ohio","(1+)440" -"United States",1,"Maryland","(1+)443" -"United States",1,"Texas","(1+)469" -"United States",1,"Georgia","(1+)478" -"United States",1,"Arkansas","(1+)479" -"United States",1,"Arizona","(1+)480" -"United States",1,"Pennsylvania","(1+)484" -"United States",1,"Arkansas","(1+)501" -"United States",1,"Kentucky","(1+)502" -"United States",1,"Oregon","(1+)503" -"United States",1,"Louisiana","(1+)504" -"United States",1,"New Mexico","(1+)505" -"United States",1,"Minnesota","(1+)507" -"United States",1,"Massachusetts","(1+)508" -"United States",1,"Washington","(1+)509" -"United States",1,"California","(1+)510" -"United States",1,"Texas","(1+)512" -"United States",1,"Ohio","(1+)513" -"United States",1,"Iowa","(1+)515" -"United States",1,"New York","(1+)516" -"United States",1,"Michigan","(1+)517" -"United States",1,"New York","(1+)518" -"United States",1,"Arizona","(1+)520" -"United States",1,"California","(1+)530" -"United States",1,"Virginia","(1+)540" -"United States",1,"Oregon","(1+)541" -"United States",1,"New Jersey","(1+)551" -"United States",1,"California","(1+)559" -"United States",1,"Florida","(1+)561" -"United States",1,"California","(1+)562" -"United States",1,"Iowa","(1+)563" -"United States",1,"Ohio","(1+)567" -"United States",1,"Pennsylvania","(1+)570" -"United States",1,"Virginia","(1+)571" -"United States",1,"Missouri","(1+)573" -"United States",1,"Indiana","(1+)574" -"United States",1,"Oklahoma","(1+)580" -"United States",1,"New York","(1+)585" -"United States",1,"Michigan","(1+)586" -"United States",1,"Mississippi","(1+)601" -"United States",1,"Arizona","(1+)602" -"United States",1,"New Hampshire","(1+)603" -"United States",1,"South Dakota","(1+)605" -"United States",1,"Kentucky","(1+)606" -"United States",1,"New York","(1+)607" -"United States",1,"Wisconsin","(1+)608" -"United States",1,"New Jersey","(1+)609" -"United States",1,"Pennsylvania","(1+)610" -"United States",1,"Minnesota","(1+)612" -"United States",1,"Ohio","(1+)614" -"United States",1,"Tennessee","(1+)615" -"United States",1,"Michigan","(1+)616" -"United States",1,"Massachusetts","(1+)617" -"United States",1,"Illinois","(1+)618" -"United States",1,"California","(1+)619" -"United States",1,"Kansas","(1+)620" -"United States",1,"Arizona","(1+)623" -"United States",1,"California","(1+)626" -"United States",1,"Illinois","(1+)630" -"United States",1,"New York","(1+)631" -"United States",1,"Missouri","(1+)636" -"United States",1,"Iowa","(1+)641" -"United States",1,"New York","(1+)646" -"United States",1,"California","(1+)650" -"United States",1,"Minnesota","(1+)651" -"United States",1,"Missouri","(1+)660" -"United States",1,"California","(1+)661" -"United States",1,"Mississippi","(1+)662" -"United States",1,"Georgia","(1+)678" -"United States",1,"Texas","(1+)682" -"United States",1,"Florida","(1+)689" -"United States",1,"North Dakota","(1+)701" -"United States",1,"Nevada","(1+)702" -"United States",1,"Virginia","(1+)703" -"United States",1,"North Carolina","(1+)704" -"United States",1,"Georgia","(1+)706" -"United States",1,"California","(1+)707" -"United States",1,"Illinois","(1+)708" -"United States",1,"Iowa","(1+)712" -"United States",1,"Texas","(1+)713" -"United States",1,"California","(1+)714" -"United States",1,"Wisconsin","(1+)715" -"United States",1,"New York","(1+)716" -"United States",1,"Pennsylvania","(1+)717" -"United States",1,"New York","(1+)718" -"United States",1,"Colorado","(1+)719" -"United States",1,"Colorado","(1+)720" -"United States",1,"Pennsylvania","(1+)724" -"United States",1,"Florida","(1+)727" -"United States",1,"Illinois","(1+)730" -"United States",1,"Tennessee","(1+)731" -"United States",1,"New Jersey","(1+)732" -"United States",1,"Michigan","(1+)734" -"United States",1,"Ohio","(1+)740" -"United States",1,"Florida","(1+)754" -"United States",1,"Virginia","(1+)757" -"United States",1,"California","(1+)760" -"United States",1,"Georgia","(1+)762" -"United States",1,"Minnesota","(1+)763" -"United States",1,"Indiana","(1+)765" -"United States",1,"Missouri","(1+)769" -"United States",1,"Georgia","(1+)770" -"United States",1,"Florida","(1+)772" -"United States",1,"Illinois","(1+)773" -"United States",1,"Massachusetts","(1+)774" -"United States",1,"Nevada","(1+)775" -"United States",1,"Illinois","(1+)779" -"United States",1,"Massachusetts","(1+)781" -"United States",1,"Kansas","(1+)785" -"United States",1,"Florida","(1+)786" -"United States",1,"Utah","(1+)801" -"United States",1,"Vermont","(1+)802" -"United States",1,"South Carolina","(1+)803" -"United States",1,"Virginia","(1+)804" -"United States",1,"California","(1+)805" -"United States",1,"Texas","(1+)806" -"United States",1,"Hawaii","(1+)808" -"United States",1,"Michigan","(1+)810" -"United States",1,"Indiana","(1+)812" -"United States",1,"Florida","(1+)813" -"United States",1,"Pennsylvania","(1+)814" -"United States",1,"Illinois","(1+)815" -"United States",1,"Missouri","(1+)816" -"United States",1,"Texas","(1+)817" -"United States",1,"California","(1+)818" -"United States",1,"North Carolina","(1+)828" -"United States",1,"Texas","(1+)830" -"United States",1,"California","(1+)831" -"United States",1,"Texas","(1+)832" -"United States",1,"South Carolina","(1+)843" -"United States",1,"New York","(1+)845" -"United States",1,"Illinois","(1+)847" -"United States",1,"New Jersey","(1+)848" -"United States",1,"Florida","(1+)850" -"United States",1,"New Jersey","(1+)856" -"United States",1,"Massachusetts","(1+)857" -"United States",1,"California","(1+)858" -"United States",1,"Kentucky","(1+)859" -"United States",1,"Connecticut","(1+)860" -"United States",1,"New Jersey","(1+)862" -"United States",1,"Florida","(1+)863" -"United States",1,"South Carolina","(1+)864" -"United States",1,"Tennessee","(1+)865" -"United States",1,"Arkansas","(1+)870" -"United States",1,"Pennsylvania","(1+)878" -"United States",1,"Tennessee","(1+)901" -"United States",1,"Texas","(1+)903" -"United States",1,"Florida","(1+)904" -"United States",1,"Michigan","(1+)906" -"United States",1,"Alaska","(1+)907" -"United States",1,"New Jersey","(1+)908" -"United States",1,"California","(1+)909" -"United States",1,"North Carolina","(1+)910" -"United States",1,"Georgia","(1+)912" -"United States",1,"Kansas","(1+)913" -"United States",1,"New York","(1+)914" -"United States",1,"Texas","(1+)915" -"United States",1,"California","(1+)916" -"United States",1,"New York","(1+)917" -"United States",1,"Oklahoma","(1+)918" -"United States",1,"North Carolina","(1+)919" -"United States",1,"Wisconsin","(1+)920" -"United States",1,"California","(1+)925" -"United States",1,"Arizona","(1+)928" -"United States",1,"Tennessee","(1+)931" -"United States",1,"Texas","(1+)936" -"United States",1,"Ohio","(1+)937" -"United States",1,"Texas","(1+)940" -"United States",1,"Florida","(1+)941" -"United States",1,"Michigan","(1+)947" -"United States",1,"California","(1+)949" -"United States",1,"California","(1+)951" -"United States",1,"Minnesota","(1+)952" -"United States",1,"Florida","(1+)954" -"United States",1,"Texas","(1+)956" -"United States",1,"Colorado","(1+)970" -"United States",1,"Oregon","(1+)971" -"United States",1,"Texas","(1+)972" -"United States",1,"New Jersey","(1+)973" -"United States",1,"Massachusetts","(1+)978" -"United States",1,"Texas","(1+)979" -"United States",1,"North Carolina","(1+)980" -"United States",1,"Louisiana","(1+)985" -"United States",1,"Michigan","(1+)989" -"United States Minor Outlying Islands",699,"Wake Island","(1)3" -"United States Minor Outlying Islands",699,"Midway Islands","(1)8" -"Uruguay",598,"Montevideo","02" -"Uruguay",598,"Casupi","0311" -"Uruguay",598,"San Ramón","0312" -"Uruguay",598,"Caserko Murialdo","0313" -"Uruguay",598,"Tala","0315" -"Uruguay",598,"Estación Andreoni","0317" -"Uruguay",598,"Cerro Colorado","0318" -"Uruguay",598,"Chamizo","0319" -"Uruguay",598,"Canelón Chico","033" -"Uruguay",598,"Capurro","0338" -"Uruguay",598,"Cardal","0339" -"Uruguay",598,"San José","034" -"Uruguay",598,"Libertad","0345" -"Uruguay",598,"Colonia Rapettti","0346" -"Uruguay",598,"Rodrkguez","0348" -"Uruguay",598,"Barrio Escavino","0349" -"Uruguay",598,"Florida","0352" -"Uruguay",598,"Pintado","0354" -"Uruguay",598,"Durazno","036" -"Uruguay",598,"Trinidad","0364" -"Uruguay",598,"Carmen","0365" -"Uruguay",598,"Sarandk del Yk","0367" -"Uruguay",598,"Carlos Reyles","0368" -"Uruguay",598,"San Gregorio de Polanco","0369" -"Uruguay",598,"Araminda","037" -"Uruguay",598,"Solks de Mataojo","0379" -"Uruguay",598,"Lagomar","038" -"Uruguay",598,"Estación Sosa Dkaz","0390" -"Uruguay",598,"San Jacinto","0399" -"Uruguay",598,"Izcua","0412" -"Uruguay",598,"Las Canas","0413" -"Uruguay",598,"Nueva Carrara","0415" -"Uruguay",598,"La Barra (Maldonado)","042" -"Uruguay",598,"Balneario Las Flores","043" -"Uruguay",598,"Minas","044" -"Uruguay",598,"Aigui","0446" -"Uruguay",598,"Piraraji","0448" -"Uruguay",598,"Mariscala","0449" -"Uruguay",598,"Treinta y Tres","045" -"Uruguay",598,"J.P.Varela","0455" -"Uruguay",598,"Lascano","0456" -"Uruguay",598,"Velizquez","0457" -"Uruguay",598,"Vergara","0458" -"Uruguay",598,"Cebollatk","0459" -"Uruguay",598,"Zapicin","0463" -"Uruguay",598,"Santa Clara de Olimar","0464" -"Uruguay",598,"Cerro Chato","0466" -"Uruguay",598,"José Batlle y Ordonez","0469" -"Uruguay",598,"Rocha","047" -"Uruguay",598,"Barra del Chuy","0474" -"Uruguay",598,"Castillos","0475" -"Uruguay",598,"La Coronilla","0476" -"Uruguay",598,"Punta del Diablo","0477" -"Uruguay",598,"Costa Azul (Rocha)","0479" -"Uruguay",598,"Faro José Ignacio","0486" -"Uruguay",598,"Caballada","052" -"Uruguay",598,"Mercedes","053" -"Uruguay",598,"Dolores","0534" -"Uruguay",598,"Cardona","0536" -"Uruguay",598,"Palmitas","0537" -"Uruguay",598,"José Enrique Rodó","0538" -"Uruguay",598,"Ismael Cortinas","0539" -"Uruguay",598,"Carmelo","0542" -"Uruguay",598,"Nueva Palmira","0544" -"Uruguay",598,"Colonia Valdense","055" -"Uruguay",598,"Colonia Piamontesa","0552" -"Uruguay",598,"Colonia Cosmopolita","0556" -"Uruguay",598,"Boca del Rosario","0557" -"Uruguay",598,"Colonia Tomis Berretta","0562" -"Uruguay",598,"Young","0567" -"Uruguay",598,"Nuevo Berlkn","0568" -"Uruguay",598,"San Javier","0569" -"Uruguay",598,"Tarariras","0574" -"Uruguay",598,"Colonia Miguelete","0575" -"Uruguay",598,"Ombses de Lavalle","0576" -"Uruguay",598,"Conchillas","0577" -"Uruguay",598,"Juan Lacaze","0586" -"Uruguay",598,"Playa Fomento","0587" -"Uruguay",598,"Santa Ana","0588" -"Uruguay",598,"Rivera","062" -"Uruguay",598,"Tacuarembó","063" -"Uruguay",598,"Melo","064" -"Uruguay",598,"Termas del Arapey","0645" -"Uruguay",598,"Vichadero","0654" -"Uruguay",598,"Tranqueras","0656" -"Uruguay",598,"Minas de Corrales","0658" -"Uruguay",598,"Paso de los Toros","0664" -"Uruguay",598,"Rko Branco","0675" -"Uruguay",598,"Laguna Merkn","0679" -"Uruguay",598,"Fraile Muerto","0688" -"Uruguay",598,"Paysands","072" -"Uruguay",598,"Dayman","073" -"Uruguay",598,"Guichón","0742" -"Uruguay",598,"Piedras Coloradas","0747" -"Uruguay",598,"Quebracho","0754" -"Uruguay",598,"Constitución","0764" -"Uruguay",598,"Belén","0766" -"Uruguay",598,"Artigas","0772" -"Uruguay",598,"Baltasar Brum","0776" -"Uruguay",598,"Tomis Gomensoro","0777" -"Uruguay",598,"Mones Quintela","0778" -"Uruguay",598,"Bella Unión","0779" -"Uzbekistan",998,"Karakalpakstan","(8)61" -"Uzbekistan",998,"Khorezm","(8)62" -"Uzbekistan",998,"Bukhara","(8)65" -"Uzbekistan",998,"Samarkand","(8)66" -"Uzbekistan",998,"Gulistan","(8)67" -"Uzbekistan",998,"Namangan","(8)69" -"Uzbekistan",998,"Tashkent","(8)71" -"Uzbekistan",998,"Jizak","(8)72" -"Uzbekistan",998,"Fergana","(8)73" -"Uzbekistan",998,"Andijan","(8)74" -"Uzbekistan",998,"Karshi","(8)75" -"Uzbekistan",998,"Surkhandaria","(8)76" -"Uzbekistan",998,"Navoi","(8)79" -"Venezuela",58,"Gran Caracas","0212" -"Venezuela",58,"Miranda","0234" -"Venezuela",58,"Guarico","0235" -"Venezuela",58,"Dependencias Federales","0237" -"Venezuela",58,"Guarico","0238" -"Venezuela",58,"Miranda","0239" -"Venezuela",58,"Apure","0240" -"Venezuela",58,"Carabobo","0241" -"Venezuela",58,"Carabobo","0242" -"Venezuela",58,"Arugua","0243" -"Venezuela",58,"Arugua","0244" -"Venezuela",58,"Carabobo","0245" -"Venezuela",58,"Arugua","0246" -"Venezuela",58,"Apure","0247" -"Venezuela",58,"Amazonas","0248" -"Venezuela",58,"Carabobo","0249" -"Venezuela",58,"Lara","0251" -"Venezuela",58,"Lara","0252" -"Venezuela",58,"Lara","0253" -"Venezuela",58,"Yaracuy","0254" -"Venezuela",58,"Portuguesa","0255" -"Venezuela",58,"Portuguesa","0256" -"Venezuela",58,"Portuguesa","0257" -"Venezuela",58,"Barinas","0258" -"Venezuela",58,"Falcón","0259" -"Venezuela",58,"Zulia","0260" -"Venezuela",58,"Zulia","0261" -"Venezuela",58,"Zulia","0262" -"Venezuela",58,"Zulia","0263" -"Venezuela",58,"Zulia","0264" -"Venezuela",58,"Zulia","0265" -"Venezuela",58,"Zulia","0266" -"Venezuela",58,"Zulia","0267" -"Venezuela",58,"Falcón","0268" -"Venezuela",58,"Falcón","0269" -"Venezuela",58,"Tachira","0270" -"Venezuela",58,"Mérida","0271" -"Venezuela",58,"Trujillo","0272" -"Venezuela",58,"Barinas","0273" -"Venezuela",58,"Mérida","0274" -"Venezuela",58,"Mérida","0275" -"Venezuela",58,"Tachira","0276" -"Venezuela",58,"Mérida","0277" -"Venezuela",58,"Apure","0278" -"Venezuela",58,"Falcón","0279" -"Venezuela",58,"Amazonas","0281" -"Venezuela",58,"Amazonas","0282" -"Venezuela",58,"Amazonas","0283" -"Venezuela",58,"Bolívar","0284" -"Venezuela",58,"Amazonas","0285" -"Venezuela",58,"Bolívar","0286" -"Venezuela",58,"Delta Amacuro","0287" -"Venezuela",58,"Bolívar","0288" -"Venezuela",58,"Bolívar","0289" -"Venezuela",58,"Monagas","0291" -"Venezuela",58,"Amazonas","0292" -"Venezuela",58,"Sucre","0293" -"Venezuela",58,"Sucre","0294" -"Venezuela",58,"Nueva Esparta","0295" -"Venezuela",58,"Amazonas","0296" -"Viet Nam",84,"Hoa Binh","018" -"Viet Nam",84,"Ha Giang","019" -"Viet Nam",84,"Lao cai","020" -"Viet Nam",84,"Phu Tho","0210" -"Viet Nam",84,"Vinh Phuc","0211" -"Viet Nam",84,"Son La","022" -"Viet Nam",84,"Lai Chau","023" -"Viet Nam",84,"Bac Giang","0240" -"Viet Nam",84,"Bac Ninh","0241" -"Viet Nam",84,"Lang Son","025" -"Viet Nam",84,"Cao Bang","026" -"Viet Nam",84,"Tuyen Quang","027" -"Viet Nam",84,"Thai Nguyen","0280" -"Viet Nam",84,"Bac Kan","0281" -"Viet Nam",84,"Yen Bai","029" -"Viet Nam",84,"Ninh Binh","030" -"Viet Nam",84,"Hai Phong","031" -"Viet Nam",84,"Hai Duong","0320" -"Viet Nam",84,"Hung Yen","0321" -"Viet Nam",84,"Quang Ninh","033" -"Viet Nam",84,"Ha Tay","034" -"Viet Nam",84,"Nam Dinh","0350" -"Viet Nam",84,"Ha Nam","0351" -"Viet Nam",84,"Thai Binh","036" -"Viet Nam",84,"Thanh Hoa","037" -"Viet Nam",84,"Nghe An","038" -"Viet Nam",84,"Ha Tinh","039" -"Viet Nam",84,"Hanoi","04" -"Viet Nam",84,"Dak Lak","050" -"Viet Nam",84,"Quang Nam","0510" -"Viet Nam",84,"Da Nang","0511" -"Viet Nam",84,"Quang Binh","052" -"Viet Nam",84,"Quang Tri","053" -"Viet Nam",84,"Thua Thien Hue","054" -"Viet Nam",84,"Quang Ngai","055" -"Viet Nam",84,"Binh Dinh","056" -"Viet Nam",84,"Phu Yen","057" -"Viet Nam",84,"Khanh Hoa","058" -"Viet Nam",84,"Gia Lai","059" -"Viet Nam",84,"Kon Tum","060" -"Viet Nam",84,"Dong Nai","061" -"Viet Nam",84,"Binh Thuan","062" -"Viet Nam",84,"Lam Dong","063" -"Viet Nam",84,"Ba Ria - Vung Tau","064" -"Viet Nam",84,"Binh Duong","0650" -"Viet Nam",84,"Binh Phuoc","0651" -"Viet Nam",84,"Tay Ninh","066" -"Viet Nam",84,"Dong Thap","067" -"Viet Nam",84,"Ninh Thuan","068" -"Viet Nam",84,"Home Affairs and Defence Ministry","069" -"Viet Nam",84,"Vinh Long","070" -"Viet Nam",84,"Can Tho","071" -"Viet Nam",84,"Long An","072" -"Viet Nam",84,"Tien Giang","073" -"Viet Nam",84,"Tra Vinh","074" -"Viet Nam",84,"Ben Tre","075" -"Viet Nam",84,"An Giang","076" -"Viet Nam",84,"Kien giang","077" -"Viet Nam",84,"Ca Mau","0780" -"Viet Nam",84,"Bac Lieu","0781" -"Viet Nam",84,"Soc Trang","079" -"Viet Nam",84,"Ho Chi Minh City","08" -"Virgin Islands- British",1,"British Virgin Islands","(1+)284" -"Virgin Islands- U.S.",1,"U.S. Virgin Islands","(1+)340" -"Wallis and Futuna Islands",681,"Wallis and Futuna",50 -"Wallis and Futuna Islands",681,"Wallis and Futuna",68 -"Wallis and Futuna Islands",681,"Wallis and Futuna",72 -"Western Sahara",212,"Lâayoune","028" -"Zambia",260,"Lusaka","01" -"Zambia",260,"Kitwe","02" -"Zambia",260,"Choma","03" -"Zambia",260,"Kasama","04" -"Zambia",260,"Kabwe","05" -"Zambia",260,"Chipata","06" -"Zambia",260,"Mongu","07" -"Zambia",260,"Solwezi","08" -"Zimbabwe",263,"Victoria Falls","013" -"Zimbabwe",263,"Rutenga","014" -"Zimbabwe",263,"Mwenezi","0147" -"Zimbabwe",263,"Binga","015" -"Zimbabwe",263,"West Nicholson","016" -"Zimbabwe",263,"Filabusi","017" -"Zimbabwe",263,"Dete","018" -"Zimbabwe",263,"Plumtree","019" -"Zimbabwe",263,"Mutare (Umtali)","020" -"Zimbabwe",263,"Odzi","0204" -"Zimbabwe",263,"Penhalonga","0205" -"Zimbabwe",263,"Murambinda","021" -"Zimbabwe",263,"Wedza","022" -"Zimbabwe",263,"Chipangayi","024" -"Zimbabwe",263,"Birchenough","0248" -"Zimbabwe",263,"Rusape","025" -"Zimbabwe",263,"Headlands","02582" -"Zimbabwe",263,"Nyazura","02583" -"Zimbabwe",263,"Chimanimani","026" -"Zimbabwe",263,"Chipinge","027" -"Zimbabwe",263,"Hauna","028" -"Zimbabwe",263,"Juliasdale","029" -"Zimbabwe",263,"Nyanga","0298" -"Zimbabwe",263,"Gutu","030" -"Zimbabwe",263,"Chatsworth","0308" -"Zimbabwe",263,"Chiredzi","031" -"Zimbabwe",263,"Checheche","0317" -"Zimbabwe",263,"Mvuma","032" -"Zimbabwe",263,"Triangle","033" -"Zimbabwe",263,"Jerera","034" -"Zimbabwe",263,"Mashava","035" -"Zimbabwe",263,"Ngundu","036" -"Zimbabwe",263,"Nyika","038" -"Zimbabwe",263,"Masvingo (Ft. Victoria)","039" -"Zimbabwe",263,"Harare","04" -"Zimbabwe",263,"Shangani","050" -"Zimbabwe",263,"Zvishavane","051" -"Zimbabwe",263,"Mataga","0517" -"Zimbabwe",263,"Mberengwa","0518" -"Zimbabwe",263,"Shurugwi","052" -"Zimbabwe",263,"Chegutu","053" -"Zimbabwe",263,"Gweru","054" -"Zimbabwe",263,"Lalapanzi","05483" -"Zimbabwe",263,"Kwekwe","055" -"Zimbabwe",263,"Munyati","0557" -"Zimbabwe",263,"Nkayi","0558" -"Zimbabwe",263,"Chivhu","056" -"Zimbabwe",263,"Centenary","057" -"Zimbabwe",263,"Guruve","058" -"Zimbabwe",263,"Gokwe","059" -"Zimbabwe",263,"Mhangura","060" -"Zimbabwe",263,"Kariba","061" -"Zimbabwe",263,"Norton","062" -"Zimbabwe",263,"Selous","0628" -"Zimbabwe",263,"Makuti","063" -"Zimbabwe",263,"Chirundu","0637" -"Zimbabwe",263,"Karoi","064" -"Zimbabwe",263,"Beatrice","065" -"Zimbabwe",263,"Banket","066" -"Zimbabwe",263,"Raffingora","0667" -"Zimbabwe",263,"Mutorashanga","0668" -"Zimbabwe",263,"Chinhoyi","067" -"Zimbabwe",263,"Kadoma (Gatooma)","068" -"Zimbabwe",263,"Sanyati","0687" -"Zimbabwe",263,"Chakari","0688" -"Zimbabwe",263,"Darwendale","069" -"Zimbabwe",263,"Trelawney","0698" -"Zimbabwe",263,"Chitungwiza","070" -"Zimbabwe",263,"Bindura","071" -"Zimbabwe",263,"Shamva","0718" -"Zimbabwe",263,"Mutoku","072" -"Zimbabwe",263,"Ruwa","073" -"Zimbabwe",263,"Arcturus","074" -"Zimbabwe",263,"Mazowe (Mazoe)","075" -"Zimbabwe",263,"Concession","0756" -"Zimbabwe",263,"Glendale","0758" -"Zimbabwe",263,"Mount Darwin","076" -"Zimbabwe",263,"Mvurwi","077" -"Zimbabwe",263,"Murewa","078" -"Zimbabwe",263,"Marondera","079" -"Zimbabwe",263,"Macheke","0798" -"Zimbabwe",263,"Hwange (Wankie)","081" -"Zimbabwe",263,"Kezi","082" -"Zimbabwe",263,"Figtree","083" -"Zimbabwe",263,"Matopos","0838" -"Zimbabwe",263,"Gwanda","084" -"Zimbabwe",263,"Colleen Bawn","0848" -"Zimbabwe",263,"Turk Mine","085" -"Zimbabwe",263,"Beitbridge","086" -"Zimbabwe",263,"Nyamandhlovu","087" -"Zimbabwe",263,"Tsholotsho","0878" -"Zimbabwe",263,"Esigodini","088" -"Zimbabwe",263,"Jotsholo","089" -"Zimbabwe",263,"Bulawayo","09" diff -Nru roger-router-1.8.14/libroutermanager/plugins/callmonitor/callmonitor.c roger-router-2.1.6/libroutermanager/plugins/callmonitor/callmonitor.c --- roger-router-1.8.14/libroutermanager/plugins/callmonitor/callmonitor.c 2015-11-15 00:11:12.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/callmonitor/callmonitor.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,325 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include -#include -#include - -#ifndef G_OS_WIN32 -#include -#include -#include -#endif - -#include -#include -#include -#include -#include -#include -#include - -#define ROUTERMANAGER_TYPE_CALLMONITOR_PLUGIN (routermanager_callmonitor_plugin_get_type ()) -#define ROUTERMANAGER_CALLMONITOR_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST((o), ROUTERMANAGER_TYPE_CALLMONITOR_PLUGIN, RouterManagerCallMonitorPlugin)) - -#define CALLMONITOR_DEBUG 1 - -typedef struct { - gconstpointer net_event_id; - - GIOChannel *channel; - guint id; -} RouterManagerCallMonitorPluginPrivate; - -ROUTERMANAGER_PLUGIN_REGISTER(ROUTERMANAGER_TYPE_CALLMONITOR_PLUGIN, RouterManagerCallMonitorPlugin, routermanager_callmonitor_plugin) - -/** - * \brief Convert text line and emit connection-notify signal - * \param text text line from telnet port - */ -static inline void callmonitor_convert(gchar *text) -{ - gchar **fields = g_strsplit(text, ";", -1); - struct connection *connection; - - if (!g_strcmp0(fields[1], "CALL")) { - connection = connection_add_call(atoi(fields[2]), CONNECTION_TYPE_OUTGOING, fields[4], fields[5]); - - emit_connection_notify(connection); - } else if (!g_strcmp0(fields[1], "RING")) { - connection = connection_add_call(atoi(fields[2]), CONNECTION_TYPE_INCOMING, fields[4], fields[3]); - - emit_connection_notify(connection); - } else if (!g_strcmp0(fields[1], "CONNECT")) { - connection = connection_find_by_id(atoi(fields[2])); - - if (connection) { - connection_set_type(connection, CONNECTION_TYPE_CONNECT); - - emit_connection_notify(connection); - } - } else if (!g_strcmp0(fields[1], "DISCONNECT")) { - connection = connection_find_by_id(atoi(fields[2])); - if (connection) { - connection_set_type(connection, CONNECTION_TYPE_DISCONNECT); - - emit_connection_notify(connection); - - connection_remove(connection); - } - } - - g_strfreev(fields); -} - -/** - * \brief Call monitor socket callback - * \param source source channel pointer - * \param condition io condition - * \param data user data (UNUSED) - * \return TRUE - */ -gboolean callmonitor_io_cb(GIOChannel *source, GIOCondition condition, gpointer data) -{ - GIOStatus ret; - GError *error = NULL; - gsize len; - gchar *msg; - - if (condition & (G_IO_HUP | G_IO_ERR | G_IO_NVAL)) { - /* A big problem occured and we've lost the connection */ - //callmonitor_reconnect(data); - g_warning("Error in callmonitor io cb, abort"); - return FALSE; - } - - switch (condition) { - case G_IO_IN: - case G_IO_PRI: - ret = g_io_channel_read_line(source, &msg, &len, NULL, &error); - if (ret != G_IO_STATUS_NORMAL) { - g_error("Error reading: %s", error ? error->message : "?"); - break; - } - - gchar **lines = g_strsplit(msg, "\n", -1); - gint count = 0; - for (count = 0; count < g_strv_length(lines); count++) { - if (strlen(lines[count]) > 0) { - callmonitor_convert(lines[count]); - } - } - g_strfreev(lines); - - g_free(msg); - break; - case G_IO_ERR: - case G_IO_HUP: - g_error("Read end of pipe died!"); - break; - default: - g_debug("Unhandled case: %d", condition); - break; - } - - return TRUE; -} - -/** - * \brief Call monitor connect - * \param user_data callmonitor plugin pointer - * \return error code - */ -gboolean callmonitor_connect(gpointer user_data) -{ - RouterManagerCallMonitorPlugin *callmonitor_plugin = user_data; - GSocket *socket; - GInetAddress *inet_address = NULL; - GSocketAddress *sock_address; - GError *error; - GResolver *resolver; - GList *list; - GList *iter; - struct profile *profile; - gint sock = -1; - const gchar *hostname; - gint tcp_keepalive_time = 600; - gboolean retry = TRUE; - - profile = profile_get_active(); - if (!profile) { - g_debug("No active profile"); - return FALSE; - } - - hostname = router_get_host(profile); - if (!hostname || strlen(hostname) <= 0) { - g_debug("Invalid hostname"); - return FALSE; - } - -again: -#ifdef CALLMONITOR_DEBUG - g_debug("Trying to connect to '%s' on port 1012", hostname); -#endif - - resolver = g_resolver_get_default(); - list = g_resolver_lookup_by_name(resolver, hostname, NULL, NULL); - g_object_unref(resolver); - - if (!list) { - g_warning("Cannot resolve ip from hostname!"); - return FALSE; - } - - for (iter = list; iter != NULL; iter = iter->next) { - if (g_inet_address_get_family(iter->data) == G_SOCKET_FAMILY_IPV4) { - inet_address = iter->data; - break; - } - } - - if (!inet_address) { - g_warning("Could not get required IPV4 connection to telnet port!"); - g_resolver_free_addresses(list); - return FALSE; - } - - sock_address = g_inet_socket_address_new(inet_address, 1012); - if (!sock_address) { - g_warning("Could not create sock address on port %s:1012", g_inet_address_to_string(inet_address)); - g_resolver_free_addresses(list); - return FALSE; - } - - error = NULL; - socket = g_socket_new(g_inet_address_get_family(inet_address), G_SOCKET_TYPE_STREAM, G_SOCKET_PROTOCOL_TCP, &error); - if (error) { - g_warning("Could not create socket on %s:1012. Error: '%s'", g_inet_address_to_string(inet_address), error->message); - g_error_free(error); - g_object_unref(sock_address); - g_resolver_free_addresses(list); - return FALSE; - } - - if (g_socket_connect(socket, sock_address, NULL, &error) == FALSE) { - if (error) { - g_debug("Could not connect to socket. Error: %s", error->message); - g_error_free(error); - } else { - g_debug("Could not connect to socket: Error: unknown"); - } - g_object_unref(socket); - g_object_unref(sock_address); - - g_resolver_free_addresses(list); - - if (retry) { - router_dial_number(profile, PORT_ISDN1, "#96*5*"); - g_usleep(G_USEC_PER_SEC * 2); - retry = FALSE; - error = NULL; - goto again; - } - - return FALSE; - } - -#ifdef CALLMONITOR_DEBUG - g_debug("Connected to '%s' on port 1012", g_inet_address_to_string(inet_address)); -#endif - - sock = g_socket_get_fd(socket); - - /* Set keep alive, otherwise the connection might drop silently */ - g_socket_set_keepalive(socket, TRUE); - - /* this is a bit of a mess: LINUX uses TCP_KEEP_IDLE, where OSX uses TCP_KEEPALIVE */ -#ifdef TCP_KEEPIDLE - setsockopt(sock, IPPROTO_TCP, TCP_KEEPIDLE, &tcp_keepalive_time, sizeof(tcp_keepalive_time)); -#else -#ifdef TCP_KEEPALIVE - setsockopt(sock, IPPROTO_TCP, TCP_KEEPALIVE, &tcp_keepalive_time, sizeof(tcp_keepalive_time)); -#endif -#endif - -#ifdef G_OS_WIN32 - callmonitor_plugin->priv->channel = g_io_channel_win32_new_socket(sock); -#else - callmonitor_plugin->priv->channel = g_io_channel_unix_new(sock); -#endif - g_io_channel_set_encoding(callmonitor_plugin->priv->channel, NULL, NULL); - - callmonitor_plugin->priv->id = g_io_add_watch(callmonitor_plugin->priv->channel, G_IO_IN | G_IO_PRI | G_IO_ERR | G_IO_HUP | G_IO_NVAL, callmonitor_io_cb, NULL); - - g_resolver_free_addresses(list); - - return TRUE; -} - -/** - * \brief Network disconnect callback - * \param user_data callmonitor plugin pointer - * \return TRUE - */ -gboolean callmonitor_disconnect(gpointer user_data) -{ - RouterManagerCallMonitorPlugin *callmonitor_plugin = user_data; - GError *error = NULL; - - if (callmonitor_plugin->priv->id > 0) { - g_source_remove(callmonitor_plugin->priv->id); - } - - if (callmonitor_plugin->priv->channel) { - if (g_io_channel_shutdown(callmonitor_plugin->priv->channel, FALSE, &error) != G_IO_STATUS_NORMAL) { - g_warning("Could not shutdown callmonitor channel: '%s'", error->message); - g_error_free(error); - return FALSE; - } - - g_io_channel_unref(callmonitor_plugin->priv->channel); - } - - return TRUE; -} - -/** - * \brief Activate plugin (add net event) - * \param plugin peas plugin - */ -static void impl_activate(PeasActivatable *plugin) -{ - RouterManagerCallMonitorPlugin *callmonitor_plugin = ROUTERMANAGER_CALLMONITOR_PLUGIN(plugin); - - /* Add network event */ - callmonitor_plugin->priv->net_event_id = net_add_event(callmonitor_connect, callmonitor_disconnect, callmonitor_plugin); -} - -/** - * \brief Deactivate plugin (remote net event) - * \param plugin peas plugin - */ -static void impl_deactivate(PeasActivatable *plugin) -{ - RouterManagerCallMonitorPlugin *callmonitor_plugin = ROUTERMANAGER_CALLMONITOR_PLUGIN(plugin); - - /* Remove network event */ - net_remove_event(callmonitor_plugin->priv->net_event_id); -} diff -Nru roger-router-1.8.14/libroutermanager/plugins/callmonitor/callmonitor.plugin.in roger-router-2.1.6/libroutermanager/plugins/callmonitor/callmonitor.plugin.in --- roger-router-1.8.14/libroutermanager/plugins/callmonitor/callmonitor.plugin.in 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/callmonitor/callmonitor.plugin.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,9 +0,0 @@ -[Plugin] -Module=callmonitor -_Name=Call Monitor (Telnet) -_Description=Call Monitor watches telnet port 1012 for call status messages (RING/CALL/DIAL) -Authors=Jan-Michael Brummer -Copyright=Copyright © 2012 Jan-Michael Brummer -Website=http://www.tabos.org/ -Help=http://www.tabos.org/forum/ -Builtin=true diff -Nru roger-router-1.8.14/libroutermanager/plugins/callmonitor/Makefile.am roger-router-2.1.6/libroutermanager/plugins/callmonitor/Makefile.am --- roger-router-1.8.14/libroutermanager/plugins/callmonitor/Makefile.am 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/callmonitor/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,14 +0,0 @@ -plugin_in_files = callmonitor.plugin - -include ../Makefile.plugins - -plugindir = $(libdir)/routermanager/callmonitor - -plugin_LTLIBRARIES = libcallmonitor.la - -libcallmonitor_la_SOURCES = \ - callmonitor.c - -libcallmonitor_la_CFLAGS = $(plugin_cflags) -libcallmonitor_la_LDFLAGS = $(plugin_ldflags) -libcallmonitor_la_LIBADD = $(plugin_libadd) diff -Nru roger-router-1.8.14/libroutermanager/plugins/callmonitor/Makefile.in roger-router-2.1.6/libroutermanager/plugins/callmonitor/Makefile.in --- roger-router-1.8.14/libroutermanager/plugins/callmonitor/Makefile.in 2015-12-10 21:33:43.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/callmonitor/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,799 +0,0 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2014 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@ - - -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@ -@WIN32_TRUE@am__append_1 = -L$(top_srcdir)/libroutermanager/.libs -lroutermanager -no-undefined -@MACOSX_TRUE@am__append_2 = -L$(top_srcdir)/libroutermanager/.libs -lroutermanager -no-undefined -subdir = libroutermanager/plugins/callmonitor -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ - $(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)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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)$(plugindir)" "$(DESTDIR)$(plugindir)" -LTLIBRARIES = $(plugin_LTLIBRARIES) -am__DEPENDENCIES_1 = -am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) -libcallmonitor_la_DEPENDENCIES = $(am__DEPENDENCIES_2) -am_libcallmonitor_la_OBJECTS = libcallmonitor_la-callmonitor.lo -libcallmonitor_la_OBJECTS = $(am_libcallmonitor_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 = -libcallmonitor_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ - $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ - $(libcallmonitor_la_CFLAGS) $(CFLAGS) \ - $(libcallmonitor_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) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -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 = $(libcallmonitor_la_SOURCES) -DIST_SOURCES = $(libcallmonitor_la_SOURCES) -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -DATA = $(plugin_DATA) -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)` -ETAGS = etags -CTAGS = ctags -am__DIST_COMMON = $(srcdir)/../Makefile.plugins $(srcdir)/Makefile.in \ - $(top_srcdir)/depcomp -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -ALL_LINGUAS = @ALL_LINGUAS@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@ -APPINDICATOR_LIBS = @APPINDICATOR_LIBS@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAPI_CFLAGS = @CAPI_CFLAGS@ -CAPI_LIBS = @CAPI_LIBS@ -CATALOGS = @CATALOGS@ -CATOBJEXT = @CATOBJEXT@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DATADIRNAME = @DATADIRNAME@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -EBOOK_CFLAGS = @EBOOK_CFLAGS@ -EBOOK_LIBS = @EBOOK_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXTRA_CFLAGS = @EXTRA_CFLAGS@ -EXTRA_LIBS = @EXTRA_LIBS@ -FAX_SPOOLER_CFLAGS = @FAX_SPOOLER_CFLAGS@ -FAX_SPOOLER_LIBS = @FAX_SPOOLER_LIBS@ -FGREP = @FGREP@ -GDATA_CFLAGS = @GDATA_CFLAGS@ -GDATA_LIBS = @GDATA_LIBS@ -GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMOFILES = @GMOFILES@ -GMSGFMT = @GMSGFMT@ -GREP = @GREP@ -GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@ -GSTREAMER1_CFLAGS = @GSTREAMER1_CFLAGS@ -GSTREAMER1_LIBS = @GSTREAMER1_LIBS@ -GTK_CFLAGS = @GTK_CFLAGS@ -GTK_LIBS = @GTK_LIBS@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INSTOBJEXT = @INSTOBJEXT@ -INTLLIBS = @INTLLIBS@ -INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ -INTLTOOL_MERGE = @INTLTOOL_MERGE@ -INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ -INTLTOOL_PERL = @INTLTOOL_PERL@ -INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ -INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ -INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ -INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ -INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ -INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ -KWALLET_CFLAGS = @KWALLET_CFLAGS@ -KWALLET_LIBS = @KWALLET_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@ -LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@ -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@ -MKINSTALLDIRS = @MKINSTALLDIRS@ -MSGFMT = @MSGFMT@ -MSGFMT_OPTS = @MSGFMT_OPTS@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OS_CFLAGS = @OS_CFLAGS@ -OS_LIBS = @OS_LIBS@ -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@ -PEAS_CFLAGS = @PEAS_CFLAGS@ -PEAS_GTK_CFLAGS = @PEAS_GTK_CFLAGS@ -PEAS_GTK_LIBS = @PEAS_GTK_LIBS@ -PEAS_LIBS = @PEAS_LIBS@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POFILES = @POFILES@ -PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@ -PORTAUDIO_LIBS = @PORTAUDIO_LIBS@ -POSUB = @POSUB@ -PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ -PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ -PULSEAUDIO_CFLAGS = @PULSEAUDIO_CFLAGS@ -PULSEAUDIO_LIBS = @PULSEAUDIO_LIBS@ -RANLIB = @RANLIB@ -ROGER_VERSION_MAJOR = @ROGER_VERSION_MAJOR@ -ROGER_VERSION_MICRO = @ROGER_VERSION_MICRO@ -ROGER_VERSION_MINOR = @ROGER_VERSION_MINOR@ -SECRET_CFLAGS = @SECRET_CFLAGS@ -SECRET_LIBS = @SECRET_LIBS@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SOUP_CFLAGS = @SOUP_CFLAGS@ -SOUP_LIBS = @SOUP_LIBS@ -SPANDSP_CFLAGS = @SPANDSP_CFLAGS@ -SPANDSP_LIBS = @SPANDSP_LIBS@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -WINDRES = @WINDRES@ -XGETTEXT = @XGETTEXT@ -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@ -found_cc = @found_cc@ -gsettingsschemadir = @gsettingsschemadir@ -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@ -intltool__v_merge_options_ = @intltool__v_merge_options_@ -intltool__v_merge_options_0 = @intltool__v_merge_options_0@ -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@ -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@ -plugin_in_files = callmonitor.plugin -plugin_DATA = $(plugin_in_files:.plugin.in=.plugin) -CLEANFILES = $(plugin_DATA) -DISTCLEANFILES = $(plugin_DATA) -EXTRA_DIST = $(plugin_in_files).in -AM_CFLAGS = \ - $(PEAS_CFLAGS) \ - $(OS_CFLAGS) \ - -I$(top_srcdir)/ - -plugin_cflags = \ - $(PEAS_CFLAGS) \ - $(OS_CFLAGS) \ - -I$(top_srcdir)/ - -plugin_ldflags = -export-dynamic -no-undefined -avoid-version -module \ - -shared $(PLUGIN_LIBTOOL_FLAGS) $(am__append_1) \ - $(am__append_2) -plugin_libadd = \ - $(PEAS_LIBS) \ - $(OS_LIBS) - -plugindir = $(libdir)/routermanager/callmonitor -plugin_LTLIBRARIES = libcallmonitor.la -libcallmonitor_la_SOURCES = \ - callmonitor.c - -libcallmonitor_la_CFLAGS = $(plugin_cflags) -libcallmonitor_la_LDFLAGS = $(plugin_ldflags) -libcallmonitor_la_LIBADD = $(plugin_libadd) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../Makefile.plugins $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libroutermanager/plugins/callmonitor/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign libroutermanager/plugins/callmonitor/Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; -$(srcdir)/../Makefile.plugins $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES) - @$(NORMAL_INSTALL) - @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || 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)$(plugindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(plugindir)" || exit 1; \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(plugindir)'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(plugindir)"; \ - } - -uninstall-pluginLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || list=; \ - for p in $$list; do \ - $(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(plugindir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(plugindir)/$$f"; \ - done - -clean-pluginLTLIBRARIES: - -test -z "$(plugin_LTLIBRARIES)" || rm -f $(plugin_LTLIBRARIES) - @list='$(plugin_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}; \ - } - -libcallmonitor.la: $(libcallmonitor_la_OBJECTS) $(libcallmonitor_la_DEPENDENCIES) $(EXTRA_libcallmonitor_la_DEPENDENCIES) - $(AM_V_CCLD)$(libcallmonitor_la_LINK) -rpath $(plugindir) $(libcallmonitor_la_OBJECTS) $(libcallmonitor_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcallmonitor_la-callmonitor.Plo@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ -@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -libcallmonitor_la-callmonitor.lo: callmonitor.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcallmonitor_la_CFLAGS) $(CFLAGS) -MT libcallmonitor_la-callmonitor.lo -MD -MP -MF $(DEPDIR)/libcallmonitor_la-callmonitor.Tpo -c -o libcallmonitor_la-callmonitor.lo `test -f 'callmonitor.c' || echo '$(srcdir)/'`callmonitor.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcallmonitor_la-callmonitor.Tpo $(DEPDIR)/libcallmonitor_la-callmonitor.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='callmonitor.c' object='libcallmonitor_la-callmonitor.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcallmonitor_la_CFLAGS) $(CFLAGS) -c -o libcallmonitor_la-callmonitor.lo `test -f 'callmonitor.c' || echo '$(srcdir)/'`callmonitor.c - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-pluginDATA: $(plugin_DATA) - @$(NORMAL_INSTALL) - @list='$(plugin_DATA)'; test -n "$(plugindir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(plugindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(plugindir)" || 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)$(plugindir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(plugindir)" || exit $$?; \ - done - -uninstall-pluginDATA: - @$(NORMAL_UNINSTALL) - @list='$(plugin_DATA)'; test -n "$(plugindir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(plugindir)'; $(am__uninstall_files_from_dir) - -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-am -TAGS: tags - -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - set x; \ - here=`pwd`; \ - $(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-am - -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" -cscopelist: cscopelist-am - -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 - -distdir: $(DISTFILES) - @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 -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) $(DATA) -installdirs: - for dir in "$(DESTDIR)$(plugindir)" "$(DESTDIR)$(plugindir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -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) - -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." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-pluginLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-pluginDATA install-pluginLTLIBRARIES - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-pluginDATA uninstall-pluginLTLIBRARIES - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-pluginLTLIBRARIES cscopelist-am ctags \ - ctags-am distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir 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-man install-pdf install-pdf-am \ - install-pluginDATA install-pluginLTLIBRARIES install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs 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-pluginDATA uninstall-pluginLTLIBRARIES - -.PRECIOUS: Makefile - -%.plugin: %.plugin.in - $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache - -# 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: diff -Nru roger-router-1.8.14/libroutermanager/plugins/fritzbox/csv.c roger-router-2.1.6/libroutermanager/plugins/fritzbox/csv.c --- roger-router-1.8.14/libroutermanager/plugins/fritzbox/csv.c 2015-12-08 17:08:18.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/fritzbox/csv.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,101 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include -#include - -#include - -#include -#include -#include -#include -#include - -#include "csv.h" -#include "firmware-common.h" - -/** - * \brief Parse FRITZ!Box "Anruferliste" - * \param ptr pointer to journal - * \param split splitted line - * \return pointer to journal with attached call line - */ -static inline gpointer csv_parse_fritzbox(gpointer ptr, gchar **split) -{ - GSList *list = ptr; - - if (g_strv_length(split) == 7) { - gint call_type = 0; - - switch (atoi(split[0])) { - case 1: - call_type = CALL_TYPE_INCOMING; - break; - case 2: - call_type = CALL_TYPE_MISSED; - break; - case 3: { - struct profile *profile = profile_get_active(); - - if (FIRMWARE_IS(4, 74)) { - call_type = CALL_TYPE_BLOCKED; - } else { - call_type = CALL_TYPE_OUTGOING; - } - break; - } - case 4: - call_type = CALL_TYPE_OUTGOING; - break; - } - - list = call_add(list, call_type, split[1], split[2], split[3], split[4], split[5], split[6], NULL); - } - - return list; -} - -/** - * \brief Parse journal data as csv - * \param data raw data to parse - * \return call list - */ -GSList *csv_parse_fritzbox_journal_data(GSList *list, const gchar *data) -{ - GSList *new_list = NULL; - - new_list = csv_parse_data(data, CSV_FRITZBOX_JOURNAL_DE, csv_parse_fritzbox, list); - if (!new_list) { - new_list = csv_parse_data(data, CSV_FRITZBOX_JOURNAL_EN, csv_parse_fritzbox, list); - if (!new_list) { - new_list = csv_parse_data(data, CSV_FRITZBOX_JOURNAL_EN2, csv_parse_fritzbox, list); - if (!new_list) { - new_list = csv_parse_data(data, CSV_FRITZBOX_JOURNAL_EN3, csv_parse_fritzbox, list); - } - } - } - - if (!new_list) { - log_save_data("journal.csv", data, strlen(data)); - } - - /* Return call list */ - return new_list; -} diff -Nru roger-router-1.8.14/libroutermanager/plugins/fritzbox/csv.h roger-router-2.1.6/libroutermanager/plugins/fritzbox/csv.h --- roger-router-1.8.14/libroutermanager/plugins/fritzbox/csv.h 2015-11-14 23:39:54.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/fritzbox/csv.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,34 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef FRITZBOX_CSV_H -#define FRITZBOX_CSV_H - -G_BEGIN_DECLS - -#define CSV_FRITZBOX_JOURNAL_DE "Typ;Datum;Name;Rufnummer;Nebenstelle;Eigene Rufnummer;Dauer" -#define CSV_FRITZBOX_JOURNAL_EN "Type;Date;Name;Number;Extension;Outgoing Caller ID;Duration" -#define CSV_FRITZBOX_JOURNAL_EN2 "Type;Date;Name;Number;Extension;Telephone Number;Duration" -#define CSV_FRITZBOX_JOURNAL_EN3 "Type;Date;Name;Telephone number;Extension;Telephone number;Duration" - -GSList *csv_parse_fritzbox_journal_data(GSList *list, const gchar *data); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/plugins/fritzbox/firmware-04-00.c roger-router-2.1.6/libroutermanager/plugins/fritzbox/firmware-04-00.c --- roger-router-1.8.14/libroutermanager/plugins/fritzbox/firmware-04-00.c 2015-11-15 00:13:14.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/fritzbox/firmware-04-00.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,220 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include -#include -#include -#include - -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "fritzbox.h" -#include "csv.h" -#include "firmware-common.h" -#include "firmware-04-00.h" - -/** - * \brief Try to detect a FRITZ!Box router by simply access the start page - * \param router_info router information structure - * \return TRUE if FRITZ!Box is detected, otherwise FALSE on error - */ -gboolean fritzbox_present_04_00(struct router_info *router_info) -{ - SoupMessage *msg; - const gchar *data; - gchar *url; - gboolean ret = FALSE; - gsize read; - - url = g_strdup_printf("http://%s/cgi-bin/webcm", router_info->host); - msg = soup_message_new(SOUP_METHOD_GET, url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_warning("Could not load 04_00 present page (Error: %d)", msg->status_code); - g_object_unref(msg); - g_free(url); - - return ret; - } - - data = msg->response_body->data; - read = msg->response_body->length; - - log_save_data("fritzbox-04_00-present.html", data, read); - g_assert(data != NULL); - - if (g_strcasestr(data, "fritz!box")) { - ret = TRUE; - - router_info->name = g_strdup("FRITZ!Box"); - router_info->version = g_strdup(">= x.4.0"); - router_info->lang = g_strdup("de"); - router_info->annex = g_strdup(""); - - /* This is a fritz!box router, but which version.... */ - router_info->box_id = 0; - router_info->maj_ver_id = 4; - router_info->min_ver_id = 0; - router_info->serial = g_strdup("Type Login"); - } else { - ret = FALSE; - } - - g_object_unref(msg); - g_free(url); - - return ret; -} - -gboolean fritzbox_login_04_00(struct profile *profile) -{ - SoupMessage *msg; - const gchar *data; - gchar *url; - gboolean ret = FALSE; - gsize read; - gchar *password; - - url = g_strdup_printf("http://%s/cgi-bin/webcm", router_get_host(profile)); - - password = router_get_login_password(profile); - msg = soup_form_request_new(SOUP_METHOD_POST, url, - "login:command/password", password, - "var:loginDone", "1", - NULL); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_warning("Could not load 04_00 login page (Error: %d)", msg->status_code); - g_object_unref(msg); - g_free(url); - - return ret; - } - - data = msg->response_body->data; - read = msg->response_body->length; - - log_save_data("fritzbox-04_00-login1.html", data, read); - g_assert(data != NULL); - - if (!strstr(data, "FRITZ!Box Anmeldung")) { - ret = TRUE; - } - - return ret; -} - - -/** - * \brief Dial number using ClickToDial - * \param profile profile information structure - * \param port dial port - * \param number remote number - * \return TRUE on success, otherwise FALSE - */ -gboolean fritzbox_dial_number_04_00(struct profile *profile, gint port, const gchar *number) -{ - SoupMessage *msg; - gchar *port_str; - gchar *scramble; - gboolean ret = FALSE; - - /* Login to box */ - if (fritzbox_login(profile) == FALSE) { - return FALSE; - } - - /* Create POST message */ - gchar *url = g_strdup_printf("http://%s/cgi-bin/webcm", router_get_host(profile)); - port_str = g_strdup_printf("%d", fritzbox_get_dialport(port)); - - scramble = call_scramble_number(number); - g_debug("Call number '%s' on port %s...", scramble, port_str); - g_free(scramble); - - msg = soup_form_request_new(SOUP_METHOD_POST, url, - "telcfg:settings/UseClickToDial", "1", - "telcfg:settings/DialPort", port_str, - "telcfg:command/Dial", number, - "sid", profile->router_info->session_id, - NULL); - g_free(port_str); - g_free(url); - - /* Send message */ - soup_session_send_message(soup_session_async, msg); - if (msg->status_code == 200) { - ret = TRUE; - } - fritzbox_logout(profile, FALSE); - - return ret; -} - - -/** - * \brief Hangup call - * \param profile profile information structure - * \param port dial port - * \param number remote number - * \return TRUE on success, otherwise FALSE - */ -gboolean fritzbox_hangup_04_00(struct profile *profile, gint port, const gchar *number) -{ - SoupMessage *msg; - gchar *port_str; - - /* Login to box */ - if (fritzbox_login(profile) == FALSE) { - return FALSE; - } - - /* Create POST message */ - gchar *url = g_strdup_printf("http://%s/cgi-bin/webcm", router_get_host(profile)); - port_str = g_strdup_printf("%d", fritzbox_get_dialport(port)); - - g_debug("Hangup on port %s...", port_str); - - msg = soup_form_request_new(SOUP_METHOD_POST, url, - "telcfg:settings/UseClickToDial", "1", - "telcfg:settings/DialPort", port_str, - "telcfg:command/Hangup", number, - "sid", profile->router_info->session_id, - NULL); - g_free(port_str); - g_free(url); - - /* Send message */ - soup_session_send_message(soup_session_async, msg); - fritzbox_logout(profile, FALSE); - - return TRUE; -} - diff -Nru roger-router-1.8.14/libroutermanager/plugins/fritzbox/firmware-04-00.h roger-router-2.1.6/libroutermanager/plugins/fritzbox/firmware-04-00.h --- roger-router-1.8.14/libroutermanager/plugins/fritzbox/firmware-04-00.h 2015-11-14 23:35:05.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/fritzbox/firmware-04-00.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,32 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef FIRMWARE_04_00_H -#define FIRMWARE_04_00_H - -G_BEGIN_DECLS - -gboolean fritzbox_present_04_00(struct router_info *router_info); -gboolean fritzbox_login_04_00(struct profile *profile); -gboolean fritzbox_dial_number_04_00(struct profile *profile, gint port, const gchar *number); -gboolean fritzbox_hangup_04_00(struct profile *profile, gint port, const gchar *number); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/plugins/fritzbox/firmware-04-74.c roger-router-2.1.6/libroutermanager/plugins/fritzbox/firmware-04-74.c --- roger-router-1.8.14/libroutermanager/plugins/fritzbox/firmware-04-74.c 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/fritzbox/firmware-04-74.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,743 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include -#include -#include - -#include - -#include -#include -#include -#include -#include -#include - -#include "fritzbox.h" -#include "csv.h" -#include "firmware-common.h" -#include "firmware-04-74.h" - -/** - * \brief Login function (>= FRITZ!OS 4.74 && < 5.50) - * \param profile profile information structure - * \return error code - */ -gboolean fritzbox_login_04_74(struct profile *profile) -{ - SoupMessage *msg; - gchar *response = NULL; - gsize read; - gchar *challenge = NULL; - gchar *dots = NULL; - gchar *str = NULL; - gchar *md5_str = NULL; - gchar *url; - const gchar *data; - gchar *writeaccess; - - if (profile->router_info->session_timer && g_timer_elapsed(profile->router_info->session_timer, NULL) < 9 * 60) { - return TRUE; - } else { - if (!profile->router_info->session_timer) { - profile->router_info->session_timer = g_timer_new(); - g_timer_start(profile->router_info->session_timer); - } else { - g_timer_reset(profile->router_info->session_timer); - } - } - - url = g_strdup_printf("http://%s/cgi-bin/webcm", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_POST, url, - "getpage", "../html/login_sid.xml", - NULL); - g_free(url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200 || !msg->response_body->length) { - g_debug("Received status code: %d", msg->status_code); - g_debug("Message length: %" G_GOFFSET_FORMAT, msg->response_body->length); - g_object_unref(msg); - - g_timer_destroy(profile->router_info->session_timer); - profile->router_info->session_timer = NULL; - return FALSE; - } - data = msg->response_body->data; - read = msg->response_body->length; - - log_save_data("fritzbox-04_74-login1.html", data, read); - g_assert(data != NULL); - - /* X */ - profile->router_info->session_id = xml_extract_tag(data, "SID"); - - /* X */ - writeaccess = xml_extract_tag(data, "iswriteaccess"); - if (writeaccess == NULL) { - g_debug("writeaccess is NULL"); - g_object_unref(msg); - - g_timer_destroy(profile->router_info->session_timer); - profile->router_info->session_timer = NULL; - return FALSE; - } - - /* X */ - challenge = xml_extract_tag(data, "Challenge"); - if (challenge == NULL) { - g_debug("challenge is NULL"); - g_object_unref(msg); - - g_timer_destroy(profile->router_info->session_timer); - profile->router_info->session_timer = NULL; - return FALSE; - } - - g_object_unref(msg); - - if (atoi(writeaccess) == 0) { - /* Currently not logged in */ - g_debug("Currently not logged in"); - - dots = make_dots(router_get_login_password(profile)); - str = g_strconcat(challenge, "-", dots, NULL); - md5_str = md5(str); - - response = g_strconcat(challenge, "-", md5_str, NULL); - - g_free(md5_str); - g_free(str); - g_free(dots); - - url = g_strdup_printf("http://%s/cgi-bin/webcm", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_POST, url, - "login:command/response", response, - "getpage", "../html/login_sid.xml", - NULL); - g_free(url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - - g_timer_destroy(profile->router_info->session_timer); - profile->router_info->session_timer = NULL; - - return FALSE; - } - data = msg->response_body->data; - read = msg->response_body->length; - - log_save_data("fritzbox-04_74-login2.html", data, read); - - g_free(response); - - /* X */ - writeaccess = xml_extract_tag(data, "iswriteaccess"); - - /* X */ - challenge = xml_extract_tag(data, "Challenge"); - - if ((atoi(writeaccess) == 0) || strcmp(profile->router_info->session_id, "0000000000000000")) { - g_debug("Login failure (%d should be non 0, %s should not be 0000000000000000)", atoi(writeaccess), profile->router_info->session_id); - - g_object_unref(msg); - - g_timer_destroy(profile->router_info->session_timer); - profile->router_info->session_timer = NULL; - - return FALSE; - } - - g_debug("Login successful"); - - g_free(profile->router_info->session_id); - profile->router_info->session_id = xml_extract_tag(data, "SID"); - - g_object_unref(msg); - } else { - g_debug("Already logged in"); - } - - g_free(challenge); - g_free(writeaccess); - - return TRUE; -} - -/** - * \brief Compare strings - * \param a string a - * \param b string b - * \return return value of strcmp - */ -gint number_compare_04_74(gconstpointer a, gconstpointer b) -{ - return strcmp(a, b); -} - -/** - * \brief Extract phone number from fw 04.74 - * \param number_list pointer to number_list - * \param data incoming page data - * \param msn_str string we want to lookup - * \return TRUE on success, otherwise FALSE - */ -gboolean extract_number_04_74(GSList **number_list, const gchar *data, gchar *msn_str) -{ - gchar *fon; - - fon = xml_extract_input_value(data, msn_str); - if (!EMPTY_STRING(fon) && isdigit(fon[0])) { - if (!g_slist_find_custom(*number_list, fon, number_compare_04_74)) { - *number_list = g_slist_prepend(*number_list, fon); - } else { - g_free(fon); - } - - return TRUE; - } - - g_free(fon); - return FALSE; -} - -/** - * \brief strndup phone number from fw 04.74 - * \param number_list pointer to number_list - * \param data incoming page data - * \param len len of string to copy - * \return TRUE on success, otherwise FALSE - */ -gboolean copy_number_04_74(GSList **number_list, const gchar *data, gsize len) -{ - gchar *fon; - - fon = g_strndup(data, len); - if (!EMPTY_STRING(fon) && isdigit(fon[0])) { - if (!g_slist_find_custom(*number_list, fon, number_compare_04_74)) { - *number_list = g_slist_prepend(*number_list, fon); - } else { - g_free(fon); - } - - return TRUE; - } - - g_free(fon); - return FALSE; -} - -/** - * \brief Read MSNs of data - * \param profile profile information structure - * \param data data to parse for MSNs - */ -void fritzbox_extract_numbers_04_74(struct profile *profile, const gchar *data) -{ - gint index; - gint type = -1; - gint port; - GSList *number_list = NULL; - GSList *list; - gchar **numbers; - gint counter = 0; - gchar *skip = NULL; - gchar *start; - gchar *end; - - /* First read old entries */ - skip = strstr(data, "readFonNumbers()"); - - if (skip != NULL) { - /* POTS */ - skip = strstr(skip, "nrs.pots"); - if (skip != NULL) { - start = strchr(skip, '"'); - end = strchr(start + 1, '"'); - if (end - start - 1 > 0) { - copy_number_04_74(&number_list, start + 1, end - start - 1); - } - } else { - skip = (gchar*)data; - } - - /* MSN */ - for (index = 0; index < 10; index++) { - skip = strstr(skip, "nrs.msn.push"); - if (skip != NULL) { - start = strchr(skip, '"'); - end = strchr(start + 1, '"'); - if (end - start - 1 > 0) { - copy_number_04_74(&number_list, start + 1, end - start - 1); - } - skip = end; - } - } - - /* SIP */ - for (index = 0; index < 19; index++) { - skip = strstr(skip, "nrs.sip.push"); - if (skip != NULL) { - start = strchr(skip, '"'); - end = strchr(start + 1, '"'); - if (end - start - 1 > 0) { - copy_number_04_74(&number_list, start + 1, end - start - 1); - } - skip = end; - } - } - } - - /* Now read the new entries */ - /* POTS first! */ - if (extract_number_04_74(&number_list, data, "telcfg:settings/MSN/POTS")) { - type = 3; - } - - /* TAM */ - for (index = 0; index < 10; index++) { - gchar *msn_str = g_strdup_printf("tam:settings/MSN%d", index); - - extract_number_04_74(&number_list, data, msn_str); - - g_free(msn_str); - } - - /* FAX */ - for (index = 0; index < 10; index++) { - gchar *msn_str = g_strdup_printf("telcfg:settings/FaxMSN%d", index); - - extract_number_04_74(&number_list, data, msn_str); - - g_free(msn_str); - } - - /* PortX-MSN */ - for (port = 0; port < 3; port++) { - for (index = 0; index < 10; index++) { - gchar *msn_str = g_strdup_printf("telcfg:settings/MSN/Port%d/MSN%d", port, index); - - if (extract_number_04_74(&number_list, data, msn_str)) { - if (type == -1) { - type = 0; - } - } - g_free(msn_str); - } - } - - /* MSN */ - for (index = 0; index < 10; index++) { - gchar *msn_str = g_strdup_printf("telcfg:settings/MSN/MSN%d", index); - - if (extract_number_04_74(&number_list, data, msn_str)) { - if (type == -1) { - type = 0; - } - } - g_free(msn_str); - } - - /* SIP */ - for (index = 0; index < 19; index++) { - gchar *msn_str = g_strdup_printf("telcfg:settings/SIP%d/MSN", index); - - if (extract_number_04_74(&number_list, data, msn_str)) { - if (type == -1) { - type = 4; - } - } - - g_free(msn_str); - } - - /* VoipExtensionX/NumberY */ - for (port = 0; port < 10; port++) { - for (index = 0; index < 10; index++) { - gchar *msn_str = g_strdup_printf("telcfg:settings/VoipExtension%d/Number%d", port, index); - - if (extract_number_04_74(&number_list, data, msn_str)) { - if (type == -1) { - type = 4; - } - } - g_free(msn_str); - } - } - - numbers = g_malloc(sizeof(gchar *) * (g_slist_length(number_list) + 1)); - for (list = number_list; list; list = list->next) { - gchar *scramble = call_scramble_number(list->data); - g_debug("Adding MSN '%s'", scramble); - g_free(scramble); - numbers[counter++] = g_strdup(list->data); - } - numbers[counter] = NULL; - - g_settings_set_strv(profile->settings, "numbers", (const gchar * const *)numbers); - - if (type != -1) { - g_debug("Setting controllers to %d", type); - g_settings_set_int(profile->settings, "fax-controller", type); - g_settings_set_int(profile->settings, "phone-controller", type); - } -} - -/** - * \brief Get settings (std) - * \param profile profile information structure - * \return error code - */ -gboolean fritzbox_get_settings_04_74(struct profile *profile) -{ - SoupMessage *msg; - const gchar *data; - gint index; - gsize read; - gchar *url; - gchar *volume = NULL; - - if (fritzbox_login(profile) == FALSE) { - return FALSE; - } - - gchar *request = g_strconcat("../html/", - profile->router_info->lang, - "/menus/menu2.html", NULL); - - url = g_strdup_printf("http://%s/cgi-bin/webcm", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_GET, url, - "getpage", request, - "var:lang", profile->router_info->lang, - "var:pagename", "fondevices", - "var:menu", "home", - "sid", profile->router_info->session_id, - NULL); - g_free(url); - g_free(request); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - return FALSE; - } - data = msg->response_body->data; - read = msg->response_body->length; - - log_save_data("fritzbox-04_74-get-settings-1.html", data, read); - g_assert(data != NULL); - - fritzbox_extract_numbers_04_74(profile, data); - - for (index = 0; index < PORT_MAX; index++) { - gchar *value; - - value = xml_extract_input_value(data, fritzbox_phone_ports[index].name); - if (value != NULL && strlen(value) > 0) { - g_debug("port %d: '%s'", index, value); - g_settings_set_string(profile->settings, router_phone_ports[index].name, value); - } - g_free(value); - } - g_object_unref(msg); - - url = g_strdup_printf("http://%s/cgi-bin/webcm", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_GET, url, - "getpage", "../html/de/menus/menu2.html", - "var:lang", profile->router_info->lang, - "var:pagename", "sipoptionen", - "var:menu", "fon", - "sid", profile->router_info->session_id, - NULL); - g_free(url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - return FALSE; - } - data = msg->response_body->data; - read = msg->response_body->length; - - log_save_data("fritzbox-04_74-get-settings-2.html", data, read); - g_assert(data != NULL); - - gchar *value; - - value = xml_extract_list_value(data, "telcfg:settings/Location/LKZ"); - if (value != NULL && strlen(value) > 0) { - g_debug("lkz: '%s'", value); - } - g_settings_set_string(profile->settings, "country-code", value); - g_free(value); - - value = xml_extract_list_value(data, "telcfg:settings/Location/LKZPrefix"); - if (value != NULL && strlen(value) > 0) { - g_debug("lkz prefix: '%s'", value); - } - g_settings_set_string(profile->settings, "international-call-prefix", value); - g_free(value); - - value = xml_extract_list_value(data, "telcfg:settings/Location/OKZ"); - if (value != NULL && strlen(value) > 0) { - g_debug("okz: '%s'", value); - } - g_settings_set_string(profile->settings, "area-code", value); - g_free(value); - - value = xml_extract_list_value(data, "telcfg:settings/Location/OKZPrefix"); - if (value != NULL && strlen(value) > 0) { - g_debug("okz prefix: '%s'", value); - } - g_settings_set_string(profile->settings, "national-call-prefix", value); - g_free(value); - - g_object_unref(msg); - - /* Extract Fax information */ - url = g_strdup_printf("http://%s/cgi-bin/webcm", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_POST, url, - "getpage", "../html/de/menus/menu2.html", - "var:lang", profile->router_info->lang, - "var:pagename", "fon1fxi", - "var:menu", "fon", - "sid", profile->router_info->session_id, - NULL); - g_free(url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - return FALSE; - } - data = msg->response_body->data; - read = msg->response_body->length; - - log_save_data("fritzbox-04_74-get-settings-fax.html", data, read); - g_assert(data != NULL); - - gchar *header = xml_extract_input_value(data, "telcfg:settings/FaxKennung"); - g_debug("Fax-Header: '%s'", header); - g_settings_set_string(profile->settings, "fax-header", header); - g_free(header); - - gchar *fax_msn = xml_extract_input_value(data, "telcfg:settings/FaxMSN0"); - if (fax_msn) { - gchar *formated_number = call_format_number(profile, fax_msn, NUMBER_FORMAT_INTERNATIONAL_PLUS); - gchar *scramble = call_scramble_number(fax_msn); - - g_debug("Fax number: '%s'", scramble); - g_free(scramble); - g_settings_set_string(profile->settings, "fax-number", fax_msn); - - g_settings_set_string(profile->settings, "fax-ident", formated_number); - g_free(formated_number); - } - g_free(fax_msn); - - gchar *active = xml_extract_input_value(data, "telcfg:settings/FaxMailActive"); - - if (active && ((atoi(&active[0]) == 2) || (atoi(&active[0]) == 3))) { - volume = xml_extract_input_value(data, "ctlusb:settings/storage-part0"); - - if (volume) { - g_debug("Fax-Storage-Volume: '%s'", volume); - g_settings_set_string(profile->settings, "fax-volume", volume); - } else { - g_settings_set_string(profile->settings, "fax-volume", ""); - } - - g_free(active); - } else { - g_settings_set_string(profile->settings, "fax-volume", ""); - } - - g_object_unref(msg); - - /* Extract default dial port */ - url = g_strdup_printf("http://%s/cgi-bin/webcm", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_POST, url, - "getpage", "../html/de/menus/menu2.html", - "var:lang", profile->router_info->lang, - "var:pagename", "dial", - "var:menu", "fon", - "sid", profile->router_info->session_id, - NULL); - g_free(url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - return FALSE; - } - data = msg->response_body->data; - read = msg->response_body->length; - - log_save_data("fritzbox-04_74-get-settings-4.html", data, read); - g_assert(data != NULL); - - gchar *dialport = xml_extract_input_value(data, "telcfg:settings/DialPort"); - if (dialport) { - gint port = atoi(dialport); - gint phone_port = fritzbox_find_phone_port(port); - g_debug("Dial port: %s, phone_port: %d", dialport, phone_port); - router_set_phone_port(profile, phone_port); - } - g_free(dialport); - - /* Always use tam-stick */ - g_settings_set_int(profile->settings, "tam-stick", 1); - - g_object_unref(msg); - - fritzbox_logout(profile, FALSE); - - return TRUE; -} - -/** - * \brief Journal callback function (parse data and emit "journal-process"/"journal-loaded" signals, logout) - * \param session soup session - * \param msg soup message - * \param user_data poiner to profile structure - */ -void fritzbox_journal_04_74_cb(SoupSession *session, SoupMessage *msg, gpointer user_data) -{ - GSList *journal = NULL; - struct profile *profile = user_data; - - /* Parse journal */ - journal = csv_parse_fritzbox_journal_data(journal, msg->response_body->data); - - /* Load and add faxbox */ - journal = fritzbox_load_faxbox(journal); - - /* Load and add voicebox */ - journal = fritzbox_load_voicebox(journal); - - /* Load fax reports */ - journal = router_load_fax_reports(profile, journal); - - /* Load voice records */ - journal = router_load_voice_records(profile, journal); - - router_process_journal(journal); - - /* Logout */ - fritzbox_logout(profile, FALSE); -} - -/** - * \brief Load journal function for FRITZ!OS >= 4.74 && < 5.50 - * \param profile profile info structure - * \param data_ptr data pointer to optional store journal to - * \return error code - */ -gboolean fritzbox_load_journal_04_74(struct profile *profile, gchar **data_ptr) -{ - SoupMessage *msg; - gchar *url; - - /* Login to box */ - if (fritzbox_login(profile) == FALSE) { - g_debug("Login failed"); - return FALSE; - } - - /* Create POST request */ - url = g_strdup_printf("http://%s/cgi-bin/webcm", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_POST, url, - "getpage", "../html/de/menus/menu2.html", - "var:lang", profile->router_info->lang, - "var:pagename", "foncalls", - "var:menu", "fon", - "sid", profile->router_info->session_id, - NULL); - g_free(url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - return FALSE; - } - g_object_unref(msg); - - /* Create POST request */ - url = g_strdup_printf("http://%s/cgi-bin/webcm", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_POST, url, - "getpage", "../html/de/FRITZ!Box_Anrufliste.csv", - "sid", profile->router_info->session_id, - NULL); - g_free(url); - - /* Queue message to session */ - soup_session_queue_message(soup_session_async, msg, fritzbox_journal_04_74_cb, profile); - - return TRUE; -} - -/** - * \brief Clear journal - * \param profile profile pointer - * \return TRUE on success, otherwise FALSE - */ -gboolean fritzbox_clear_journal_04_74(struct profile *profile) -{ - SoupMessage *msg; - gchar *url; - - /* Login to box */ - if (fritzbox_login(profile) == FALSE) { - return FALSE; - } - - url = g_strdup_printf("http://%s/cgi-bin/webcm", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_POST, url, - "sid", profile->router_info->session_id, - "getpage", "../html/de/menus/menu2.html", - "var:pagename", "foncalls", - "var:menu", "fon", - "telcfg:settings/ClearJournal", "", - NULL); - g_free(url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - return FALSE; - } - - g_debug("Done"); - - g_object_unref(msg); - - fritzbox_logout(profile, FALSE); - - return TRUE; -} diff -Nru roger-router-1.8.14/libroutermanager/plugins/fritzbox/firmware-04-74.h roger-router-2.1.6/libroutermanager/plugins/fritzbox/firmware-04-74.h --- roger-router-1.8.14/libroutermanager/plugins/fritzbox/firmware-04-74.h 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/fritzbox/firmware-04-74.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,32 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef FIRMWARE_04_74_H -#define FIRMWARE_04_74_H - -G_BEGIN_DECLS - -gboolean fritzbox_login_04_74(struct profile *profile); -gboolean fritzbox_get_settings_04_74(struct profile *profile); -gboolean fritzbox_load_journal_04_74(struct profile *profile, gchar **data_ptr); -gboolean fritzbox_clear_journal_04_74(struct profile *profile); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/plugins/fritzbox/firmware-05-50.c roger-router-2.1.6/libroutermanager/plugins/fritzbox/firmware-05-50.c --- roger-router-1.8.14/libroutermanager/plugins/fritzbox/firmware-05-50.c 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/fritzbox/firmware-05-50.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,795 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include -#include -#include -#include - -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "fritzbox.h" -#include "csv.h" -#include "firmware-common.h" -#include "firmware-05-50.h" - -/** - * \brief Login function (>= FRITZ!OS 5.50) - * \param profile profile information structure - * \return error code - */ -gboolean fritzbox_login_05_50(struct profile *profile) -{ - SoupMessage *msg; - gchar *response = NULL; - gsize read; - gchar *challenge = NULL; - gchar *dots = NULL; - gchar *str = NULL; - gchar *md5_str = NULL; - gchar *url; - const gchar *data; - - if (profile->router_info->session_timer && g_timer_elapsed(profile->router_info->session_timer, NULL) < 9 * 60) { - return TRUE; - } else { - if (!profile->router_info->session_timer) { - profile->router_info->session_timer = g_timer_new(); - g_timer_start(profile->router_info->session_timer); - } else { - g_timer_reset(profile->router_info->session_timer); - } - } - - url = g_strdup_printf("http://%s/login_sid.lua", router_get_host(profile)); - msg = soup_message_new(SOUP_METHOD_GET, url); - g_free(url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - - g_timer_destroy(profile->router_info->session_timer); - profile->router_info->session_timer = NULL; - return FALSE; - } - data = msg->response_body->data; - read = msg->response_body->length; - - log_save_data("fritzbox-05_50-login_1.html", data, read); - g_assert(data != NULL); - - /* session_id */ - profile->router_info->session_id = xml_extract_tag(data, "SID"); - - if (!strcmp(profile->router_info->session_id, "0000000000000000")) { - gchar *user = router_get_login_user(profile); - gchar *password = router_get_login_password(profile); - - challenge = xml_extract_tag(data, "Challenge"); - g_object_unref(msg); - - dots = make_dots(password); - g_free(password); - str = g_strconcat(challenge, "-", dots, NULL); - md5_str = md5(str); - - response = g_strconcat(challenge, "-", md5_str, NULL); - - g_free(md5_str); - g_free(str); - g_free(dots); - g_free(challenge); - - url = g_strdup_printf("http://%s/login_sid.lua", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_POST, url, - "username", user, - "response", response, - NULL); - g_free(url); - - soup_session_send_message(soup_session_sync, msg); - g_free(user); - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - - g_timer_destroy(profile->router_info->session_timer); - profile->router_info->session_timer = NULL; - - return FALSE; - } - data = msg->response_body->data; - read = msg->response_body->length; - - log_save_data("fritzbox-05_50-login_2.html", data, read); - - g_free(response); - - profile->router_info->session_id = xml_extract_tag(data, "SID"); - } - - g_object_unref(msg); - - return !!strcmp(profile->router_info->session_id, "0000000000000000"); -} - -/** - * \brief Number compare function - * \param a string a - * \param b string b - * \return return value of strcmp - */ -gint number_compare(gconstpointer a, gconstpointer b) -{ - return strcmp(a, b); -} - -/** - * \brief Extract number from fw 05.50 - * \param number_list pointer to number list - * \param data incoming page data - * \param msn_str msn string to lookup - * \return TRUE on success, otherwise FALSE - */ -gboolean extract_number_05_50(GSList **number_list, const gchar *data, gchar *msn_str) -{ - gchar *fon; - - fon = xml_extract_list_value(data, msn_str); - if (!EMPTY_STRING(fon) && isdigit(fon[0])) { - if (!g_slist_find_custom(*number_list, fon, number_compare)) { - if (strlen(fon) > 2) { - *number_list = g_slist_prepend(*number_list, fon); - } - } else { - g_free(fon); - } - - return TRUE; - } - - g_free(fon); - return FALSE; -} - -/** - * \brief Extract phone numbers from webpage data - * \param profile profile structure - * \param data webpage data - */ -static void fritzbox_detect_controller_05_50(struct profile *profile, const gchar *data) -{ - gint index; - gint type = -1; - gint port; - GSList *number_list = NULL; - - /* POTS first! */ - if (extract_number_05_50(&number_list, data, "telcfg:settings/MSN/POTS")) { - type = 3; - goto set; - } - - /* PortX-MSN */ - for (port = 0; port < 3; port++) { - for (index = 0; index < 10; index++) { - gchar *msn_str = g_strdup_printf("telcfg:settings/MSN/Port%d/MSN%d", port, index); - - if (extract_number_05_50(&number_list, data, msn_str)) { - if (type == -1) { - type = 0; - g_free(msn_str); - goto set; - } - } - g_free(msn_str); - } - } - - /* NTHotDialList */ - for (index = 0; index < 10; index++) { - gchar *msn_str = g_strdup_printf("telcfg:settings/NTHotDialList/Number%d", index); - - if (!msn_str) { - continue; - } - - if (extract_number_05_50(&number_list, data, msn_str)) { - if (type == -1) { - type = 0; - g_free(msn_str); - goto set; - } - } - g_free(msn_str); - } - - /* SIP */ - for (index = 0; index < 19; index++) { - gchar *msn_str = g_strdup_printf("telcfg:settings/SIP%d/MSN", index); - - if (extract_number_05_50(&number_list, data, msn_str)) { - if (type == -1) { - type = 4; - g_free(msn_str); - goto set; - } - } - - g_free(msn_str); - } - - return; - -set: - g_debug("Setting controllers to %d", type); - g_settings_set_int(profile->settings, "fax-controller", type); - g_settings_set_int(profile->settings, "phone-controller", type); -} - -/** - * \brief Extract DECT numbers of fw 05.50 - * \param profile profile pointer - * \param data incoming page data - */ -static void fritzbox_extract_dect_05_50(struct profile *profile, const gchar *data) -{ - const gchar *start = data; - gchar *pos; - gchar *end; - gint size; - gchar *fon; - gint count = 1; - gchar name_dect[11]; - - do { - pos = g_strstr_len(start, -1, "DECT"); - if (!pos) { - break; - } - - /* Set new start position */ - start = pos + 1; - - /* Extract previous XXXX, this is the phone name */ - end = g_strrstr_len(data, pos - data - 1, "\">"); - if (!end) { - continue; - } - - size = pos - end - 7; - if (size <= 0) { - continue; - } - - memset(name_dect, 0, sizeof(name_dect)); - g_snprintf(name_dect, sizeof(name_dect), "name-dect%d", count); - fon = g_slice_alloc0(size); - g_strlcpy(fon, end + 2, size); - g_debug("fon: '%s'", fon); - g_settings_set_string(profile->settings, name_dect, fon); - g_slice_free1(size, fon); - count++; - } while (count < 7); -} - -gboolean fritzbox_get_fax_information_05_50(struct profile *profile) -{ - SoupMessage *msg; - const gchar *data; - gsize read; - gchar *url; - gchar *scramble; - - url = g_strdup_printf("http://%s/cgi-bin/webcm", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_POST, url, - "getpage", "../html/de/menus/menu2.html", - "var:lang", profile->router_info->lang, - "var:pagename", "fon1fxi", - "var:menu", "fon", - "sid", profile->router_info->session_id, - NULL); - g_free(url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - return FALSE; - } - data = msg->response_body->data; - read = msg->response_body->length; - - log_save_data("fritzbox-05_50-get-settings-fax.html", data, read); - - g_assert(data != NULL); - - gchar *header = xml_extract_input_value(data, "telcfg:settings/FaxKennung"); - if (header) { - scramble = call_scramble_number(header); - g_debug("Fax-Header: '%s'", scramble); - g_free(scramble); - g_settings_set_string(profile->settings, "fax-header", header); - g_free(header); - } - - gchar *fax_msn = xml_extract_input_value(data, "telcfg:settings/FaxMSN0"); - if (fax_msn) { - if (!strcmp(fax_msn, "POTS")) { - gchar **numbers = g_settings_get_strv(profile->settings, "numbers"); - g_free(fax_msn); - fax_msn = g_strdup(numbers[0]); - } - gchar *formated_number; - - formated_number = call_format_number(profile, fax_msn, NUMBER_FORMAT_INTERNATIONAL_PLUS); - - scramble = call_scramble_number(fax_msn); - g_debug("Fax number: '%s'", scramble); - g_free(scramble); - - g_settings_set_string(profile->settings, "fax-number", fax_msn); - - g_settings_set_string(profile->settings, "fax-ident", formated_number); - g_free(formated_number); - } - g_free(fax_msn); - - g_settings_set_string(profile->settings, "fax-volume", ""); - gchar *active = xml_extract_input_value(data, "telcfg:settings/FaxMailActive"); - if (active) { - gint fax_mail_active = atoi(&active[0]); - - if ((fax_mail_active == 2 || fax_mail_active == 3)) { - gchar *volume = xml_extract_input_value(data, "ctlusb:settings/storage-part0"); - - if (volume) { - g_debug("Fax-Storage-Volume: '%s'", volume); - g_settings_set_string(profile->settings, "fax-volume", volume); - } else { - g_settings_set_string(profile->settings, "fax-volume", ""); - } - - g_free(active); - } - } - - g_object_unref(msg); - - return TRUE; -} - -gboolean fritzbox_get_fax_information_06_00(struct profile *profile) -{ - SoupMessage *msg; - const gchar *data; - gsize read; - gchar *url; - gchar *scramble; - - url = g_strdup_printf("http://%s/fon_devices/fax_send.lua", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_GET, url, - "sid", profile->router_info->session_id, - NULL); - g_free(url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - return FALSE; - } - data = msg->response_body->data; - read = msg->response_body->length; - - log_save_data("fritzbox-06_00-get-settings-fax.html", data, read); - - g_assert(data != NULL); - - gchar *header = xml_extract_list_value(data, "telcfg:settings/FaxKennung"); - if (header) { - scramble = call_scramble_number(header); - g_debug("Fax-Header: '%s'", scramble); - g_free(scramble); - g_settings_set_string(profile->settings, "fax-header", header); - g_free(header); - } - - gchar *fax_msn = xml_extract_list_value(data, "telcfg:settings/FaxMSN0"); - if (fax_msn) { - if (!strcmp(fax_msn, "POTS")) { - gchar **numbers = g_settings_get_strv(profile->settings, "numbers"); - g_free(fax_msn); - fax_msn = g_strdup(numbers[0]); - } - gchar *formated_number; - - formated_number = call_format_number(profile, fax_msn, NUMBER_FORMAT_INTERNATIONAL_PLUS); - - scramble = call_scramble_number(fax_msn); - g_debug("Fax number: '%s'", scramble); - g_free(scramble); - - g_settings_set_string(profile->settings, "fax-number", fax_msn); - - g_settings_set_string(profile->settings, "fax-ident", formated_number); - g_free(formated_number); - } - g_free(fax_msn); - - g_settings_set_string(profile->settings, "fax-volume", ""); - gchar *mail_active = xml_extract_list_value(data, "telcfg:settings/FaxMailActive"); - if (mail_active) { - gint fax_mail_active = atoi(&mail_active[0]); - - if (fax_mail_active == 3) { - gchar *volume; - g_object_unref(msg); - - - url = g_strdup_printf("http://%s/usb/show_usb_devices.lua", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_GET, url, - "sid", profile->router_info->session_id, - NULL); - g_free(url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - return FALSE; - } - data = msg->response_body->data; - read = msg->response_body->length; - - log_save_data("fritzbox-06_00-show-usb-devices.html", data, read); - - g_assert(data != NULL); - - volume = xml_extract_list_value(data, "name"); - - if (volume) { - g_debug("Fax-Storage-Volume: '%s'", volume); - g_settings_set_string(profile->settings, "fax-volume", volume); - } - - g_free(mail_active); - } - } - - g_object_unref(msg); - - return TRUE; -} - -/** - * \brief Get settings via lua-scripts (phone numbers/names, default controller, tam setting, fax volume/settings, prefixes, default dial port) - * \param profile profile information structure - * \return error code - */ -gboolean fritzbox_get_settings_05_50(struct profile *profile) -{ - SoupMessage *msg; - const gchar *data; - gint index; - gsize read; - gchar *url; - - g_debug("Get settings"); - - /* Login */ - if (fritzbox_login(profile) == FALSE) { - return FALSE; - } - - /* Extract phone numbers */ - url = g_strdup_printf("http://%s/fon_num/fon_num_list.lua", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_GET, url, - "sid", profile->router_info->session_id, - NULL); - g_free(url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - return FALSE; - } - data = msg->response_body->data; - read = msg->response_body->length; - - log_save_data("fritzbox-05_50-get-settings-0.html", data, read); - g_assert(data != NULL); - - gchar **numbers = xml_extract_tags(data, "td title=\"[^\"]*\"", "td"); - - if (g_strv_length(numbers)) { - gchar **profile_numbers = strv_remove_duplicates(numbers); - gint idx; - - if (g_strv_length(profile_numbers)) { - for (idx = 0; idx < g_strv_length(profile_numbers); idx++) { - gchar *scramble = call_scramble_number(profile_numbers[idx]); - g_debug("Adding MSN '%s'", scramble); - g_free(scramble); - } - g_settings_set_strv(profile->settings, "numbers", (const gchar * const *)profile_numbers); - } - g_strfreev(numbers); - - } - g_object_unref(msg); - - /* Extract phone names, default controller */ - url = g_strdup_printf("http://%s/fon_devices/fondevices_list.lua", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_GET, url, - "sid", profile->router_info->session_id, - NULL); - g_free(url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - return FALSE; - } - data = msg->response_body->data; - read = msg->response_body->length; - - log_save_data("fritzbox-05_50-get-settings-1.html", data, read); - g_assert(data != NULL); - - /* Try to detect controller */ - fritzbox_detect_controller_05_50(profile, data); - - /* Extract phone names */ - for (index = 0; index < PORT_MAX; index++) { - gchar *value; - - value = xml_extract_list_value(data, fritzbox_phone_ports[index].name); - if (value) { - if (!EMPTY_STRING(value)) { - g_debug("Port %d: '%s'", index, value); - } - g_settings_set_string(profile->settings, router_phone_ports[index].name, value); - g_free(value); - } - } - - /* FRITZ!OS 5.50 has broken the layout of DECT, therefore we must scan again for DECT */ - fritzbox_extract_dect_05_50(profile, data); - - /* Check if TAM is using USB-Stick */ - gchar *stick = xml_extract_input_value(data, "tam:settings/UseStick"); - if (stick && atoi(&stick[0])) { - g_settings_set_int(profile->settings, "tam-stick", atoi(stick)); - } else { - g_settings_set_int(profile->settings, "tam-stick", 0); - } - g_free(stick); - - g_object_unref(msg); - - /* Extract city/country/area prefix */ - url = g_strdup_printf("http://%s/fon_num/sip_option.lua", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_GET, url, - "sid", profile->router_info->session_id, - NULL); - g_free(url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - return FALSE; - } - data = msg->response_body->data; - read = msg->response_body->length; - - log_save_data("fritzbox-05_50-get-settings-2.html", data, read); - g_assert(data != NULL); - - gchar *value; - - value = xml_extract_list_value(data, "telcfg:settings/Location/LKZ"); - if (value != NULL && strlen(value) > 0) { - g_debug("lkz: '%s'", value); - } - g_settings_set_string(profile->settings, "country-code", value); - g_free(value); - - value = xml_extract_list_value(data, "telcfg:settings/Location/LKZPrefix"); - if (value != NULL && strlen(value) > 0) { - g_debug("lkz prefix: '%s'", value); - } - g_settings_set_string(profile->settings, "international-call-prefix", value); - g_free(value); - - value = xml_extract_list_value(data, "telcfg:settings/Location/OKZ"); - if (value != NULL && strlen(value) > 0) { - g_debug("okz: '%s'", value); - } - g_settings_set_string(profile->settings, "area-code", value); - g_free(value); - - value = xml_extract_list_value(data, "telcfg:settings/Location/OKZPrefix"); - if (value != NULL && strlen(value) > 0) { - g_debug("okz prefix: '%s'", value); - } - g_settings_set_string(profile->settings, "national-call-prefix", value); - g_free(value); - - g_object_unref(msg); - - /* Extract Fax information */ - if (FIRMWARE_IS(6, 0)) { - fritzbox_get_fax_information_06_00(profile); - } else { - fritzbox_get_fax_information_05_50(profile); - } - - /* Extract default dial port */ - url = g_strdup_printf("http://%s/fon_num/dial_foncalls.lua", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_GET, url, - "sid", profile->router_info->session_id, - NULL); - g_free(url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - return FALSE; - } - data = msg->response_body->data; - read = msg->response_body->length; - - log_save_data("fritzbox-05_50-get-settings-3.html", data, read); - g_assert(data != NULL); - - gchar *dialport = xml_extract_list_value(data, "telcfg:settings/DialPort"); - if (dialport) { - gint port = atoi(dialport); - gint phone_port = fritzbox_find_phone_port(port); - g_debug("Dial port: %s, phone_port: %d", dialport, phone_port); - router_set_phone_port(profile, phone_port); - } - g_free(dialport); - - g_object_unref(msg); - - /* The end - exit */ - fritzbox_logout(profile, FALSE); - - return TRUE; -} - -/** - * \brief Journal callback function (parse data and emit "journal-process"/"journal-loaded" signals, logout) - * \param session soup session - * \param msg soup message - * \param user_data poiner to profile structure - */ -void fritzbox_journal_05_50_cb(SoupSession *session, SoupMessage *msg, gpointer user_data) -{ - GSList *journal = NULL; - struct profile *profile = user_data; - - /* Parse online journal */ - journal = csv_parse_fritzbox_journal_data(journal, msg->response_body->data); - - /* Load and add faxbox */ - journal = fritzbox_load_faxbox(journal); - - /* Load and add voicebox */ - journal = fritzbox_load_voicebox(journal); - - /* Load fax reports */ - journal = router_load_fax_reports(profile, journal); - - /* Load voice records */ - journal = router_load_voice_records(profile, journal); - - /* Process journal list */ - router_process_journal(journal); - - /* Logout */ - fritzbox_logout(profile, FALSE); -} - -/** - * \brief Load journal function for FRITZ!OS >= 5.50 - * \param profile router info structure - * \param data_ptr data pointer to optional store journal to - * \return error code - */ -gboolean fritzbox_load_journal_05_50(struct profile *profile, gchar **data_ptr) -{ - SoupMessage *msg; - - /* Login to box */ - if (fritzbox_login(profile) == FALSE) { - g_debug("Login failed"); - return FALSE; - } - - /* Create GET request */ - gchar *url = g_strdup_printf("http://%s/fon_num/foncalls_list.lua", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_GET, url, - "sid", profile->router_info->session_id, - "csv", "", - NULL); - g_free(url); - - /* Queue message to session */ - soup_session_queue_message(soup_session_async, msg, fritzbox_journal_05_50_cb, profile); - - return TRUE; -} - -/** - * \brief Clear journal - * \param profile profile pointer - * \return TRUE on success, otherwise FALSE - */ -gboolean fritzbox_clear_journal_05_50(struct profile *profile) -{ - SoupMessage *msg; - gchar *url; - - /* Login to box */ - if (fritzbox_login(profile) == FALSE) { - return FALSE; - } - - url = g_strdup_printf("http://%s/fon_num/foncalls_list.lua", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_POST, url, - "sid", profile->router_info->session_id, - "usejournal", "on", - "clear", "", - "callstab", "all", - NULL); - g_free(url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - return FALSE; - } - - g_debug("Done"); - - g_object_unref(msg); - - fritzbox_logout(profile, FALSE); - - return TRUE; -} diff -Nru roger-router-1.8.14/libroutermanager/plugins/fritzbox/firmware-05-50.h roger-router-2.1.6/libroutermanager/plugins/fritzbox/firmware-05-50.h --- roger-router-1.8.14/libroutermanager/plugins/fritzbox/firmware-05-50.h 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/fritzbox/firmware-05-50.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,33 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef FIRMWARE_05_50_H -#define FIRMWARE_05_50_H - -G_BEGIN_DECLS - -gboolean fritzbox_login_05_50(struct profile *profile); -gboolean fritzbox_get_settings_05_50(struct profile *profile); -void fritzbox_journal_cb(SoupSession *session, SoupMessage *msg, gpointer user_data); -gboolean fritzbox_load_journal_05_50(struct profile *profile, gchar **data_ptr); -gboolean fritzbox_clear_journal_05_50(struct profile *profile); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/plugins/fritzbox/firmware-06-35.c roger-router-2.1.6/libroutermanager/plugins/fritzbox/firmware-06-35.c --- roger-router-1.8.14/libroutermanager/plugins/fritzbox/firmware-06-35.c 2015-12-08 20:40:14.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/fritzbox/firmware-06-35.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,570 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2015 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include -#include -#include -#include - -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "fritzbox.h" -#include "csv.h" -#include "firmware-common.h" -#include "firmware-06-35.h" - -gchar *xml_extract_tag_value(gchar *data, gchar *tag) -{ - gchar *pos = g_strstr_len(data, -1, tag); - gchar *value; - gchar *end; - gchar *ret = NULL; - gsize len; - - if (!pos) { - return ret; - } - - value = g_strstr_len(pos, -1, "value=\""); - if (!value) { - return ret; - } - - value += 7; - - end = g_strstr_len(value, -1, "\""); - if (!end) { - return ret; - } - - len = end - value; - if (len > 0) { - ret = g_malloc0(len); - memcpy(ret, value, len); - } - - return ret; -} - -/** - * \brief Extract phone numbers from webpage data - * \param profile profile structure - * \param data webpage data - */ -static void fritzbox_detect_controller_06_35(struct profile *profile, const gchar *data) -{ - gint index; - gint type = 4; - - for (index = 0; index < PORT_MAX; index++) { - if (!EMPTY_STRING(router_phone_ports[index].name)) { - if (index < PORT_ISDNALL) { - /* Analog */ - type = 3; - } else if (index < PORT_IP1) { - /* ISDN */ - type = 0; - } else { - /* SIP */ - type = 4; - } - } - } - - g_debug("Setting controllers to %d", type); - g_settings_set_int(profile->settings, "fax-controller", type); - g_settings_set_int(profile->settings, "phone-controller", type); -} - -gboolean fritzbox_get_fax_information_06_35(struct profile *profile) -{ - SoupMessage *msg; - const gchar *data; - gsize read; - gchar *url; - - url = g_strdup_printf("http://%s/fon_devices/fax_option.lua", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_GET, url, - "sid", profile->router_info->session_id, - NULL); - g_free(url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - return FALSE; - } - data = msg->response_body->data; - read = msg->response_body->length; - - log_save_data("fritzbox-06_35-get-settings-fax-option.html", data, read); - - g_assert(data != NULL); - - /* name="headline" value="...name..." > */ - gchar *regex_str = g_strdup_printf("(\\w|\\s|-)+)\" >"); - GRegex *regex = NULL; - GError *error = NULL; - GMatchInfo *match_info; - - regex = g_regex_new(regex_str, 0, 0, &error); - g_assert(regex != NULL); - - g_regex_match(regex, data, 0, &match_info); - - while (match_info && g_match_info_matches(match_info)) { - gchar *name = g_match_info_fetch_named(match_info, "name"); - - if (name) { - gchar *scramble = call_scramble_number(name); - g_debug("Fax-Header: '%s'", scramble); - g_free(scramble); - g_settings_set_string(profile->settings, "fax-header", name); - break; - } - - if (g_match_info_next(match_info, NULL) == FALSE) { - break; - } - } - - g_match_info_free(match_info); - g_free(regex_str); - - /* input type="checkbox" id="uiFaxSaveUsb" name="fax_save_usb" checked disabled> */ - regex_str = g_strdup_printf("(\\w|\\s)+)disabled>"); - error = NULL; - gboolean store = FALSE; - - regex = g_regex_new(regex_str, 0, 0, &error); - g_assert(regex != NULL); - - g_regex_match(regex, data, 0, &match_info); - - while (match_info && g_match_info_matches(match_info)) { - gchar *checked = g_match_info_fetch_named(match_info, "checked"); - - if (checked && strstr(checked, "checked")) { - store = TRUE; - break; - } - - if (g_match_info_next(match_info, NULL) == FALSE) { - break; - } - } - - g_match_info_free(match_info); - g_free(regex_str); - - g_settings_set_int(profile->settings, "tam-stick", store); - g_settings_set_string(profile->settings, "fax-volume", ""); - - g_object_unref(msg); - - if (store) { - url = g_strdup_printf("http://%s/storage/settings.lua", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_GET, url, - "sid", profile->router_info->session_id, - NULL); - g_free(url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - return FALSE; - } - data = msg->response_body->data; - read = msg->response_body->length; - - log_save_data("fritzbox-06_35-get-settings-fax-usb.html", data, read); - - /* */ - - regex_str = g_strdup_printf("(\\w|\\s|\\d|-)+)\""); - error = NULL; - - regex = g_regex_new(regex_str, 0, 0, &error); - g_assert(regex != NULL); - - g_regex_match(regex, data, 0, &match_info); - - while (match_info && g_match_info_matches(match_info)) { - gchar *volume = g_match_info_fetch_named(match_info, "volume"); - - if (volume) { - g_debug("Fax-Storage-Volume: '%s'", volume); - g_settings_set_string(profile->settings, "fax-volume", volume); - break; - } - - if (g_match_info_next(match_info, NULL) == FALSE) { - break; - } - } - - g_match_info_free(match_info); - g_free(regex_str); - - g_object_unref(msg); - } - - url = g_strdup_printf("http://%s/fon_devices/fax_send.lua", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_GET, url, - "sid", profile->router_info->session_id, - NULL); - g_free(url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - return FALSE; - } - data = msg->response_body->data; - read = msg->response_body->length; - - log_save_data("fritzbox-06_35-get-settings-fax-send.html", data, read); - - g_assert(data != NULL); - - /* "); - GRegex *regex = NULL; - GError *error = NULL; - GMatchInfo *match_info; - - regex = g_regex_new(regex_str, 0, 0, &error); - g_assert(regex != NULL); - - g_regex_match(regex, data, 0, &match_info); - - while (match_info && g_match_info_matches(match_info)) { - gchar *port = g_match_info_fetch_named(match_info, "port"); - gchar *name = g_match_info_fetch_named(match_info, "name"); - - if (port && name) { - gint val = atoi(port); - gint index; - - for (index = 0; index < PORT_MAX; index++) { - if (fritzbox_phone_ports[index].number == val) { - g_debug("Port %d: '%s'", index, name); - g_settings_set_string(profile->settings, router_phone_ports[index].name, name); - } - } - } - - if (g_match_info_next(match_info, NULL) == FALSE) { - break; - } - } - - g_match_info_free(match_info); - g_free(regex_str); -} - -/** - * \brief Get settings via lua-scripts (phone numbers/names, default controller, tam setting, fax volume/settings, prefixes, default dial port) - * \param profile profile information structure - * \return error code - */ -gboolean fritzbox_get_settings_06_35(struct profile *profile) -{ - SoupMessage *msg; - const gchar *data; - gsize read; - gchar *url; - - g_debug("Get settings"); - - /* Login */ - if (fritzbox_login(profile) == FALSE) { - return FALSE; - } - - /* Extract phone numbers */ - url = g_strdup_printf("http://%s/fon_num/fon_num_list.lua", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_GET, url, - "sid", profile->router_info->session_id, - NULL); - g_free(url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - return FALSE; - } - data = msg->response_body->data; - read = msg->response_body->length; - - log_save_data("fritzbox-06_35-get-settings-0.html", data, read); - g_assert(data != NULL); - - gchar **numbers = xml_extract_tags(data, "td title=\"[^\"]*\"", "td"); - - if (g_strv_length(numbers)) { - gchar **profile_numbers = strv_remove_duplicates(numbers); - gint idx; - - if (g_strv_length(profile_numbers)) { - for (idx = 0; idx < g_strv_length(profile_numbers); idx++) { - gchar *scramble = call_scramble_number(profile_numbers[idx]); - g_debug("Adding MSN '%s'", scramble); - g_free(scramble); - } - g_settings_set_strv(profile->settings, "numbers", (const gchar * const *)profile_numbers); - } - g_strfreev(numbers); - - } - g_object_unref(msg); - - /* Extract phone names, default controller */ - url = g_strdup_printf("http://%s/fon_num/dial_foncalls.lua", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_GET, url, - "sid", profile->router_info->session_id, - NULL); - g_free(url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - return FALSE; - } - data = msg->response_body->data; - read = msg->response_body->length; - - log_save_data("fritzbox-06_35-get-settings-1.html", data, read); - g_assert(data != NULL); - - fritzbox_extract_phone_names_06_35(profile, data, read); - - /* Try to detect controller */ - fritzbox_detect_controller_06_35(profile, data); - - gchar *dialport = xml_extract_tag_value((gchar*)data, "option selected"); - if (dialport) { - gint port = atoi(dialport); - gint phone_port = fritzbox_find_phone_port(port); - g_debug("Dial port: %s, phone_port: %d", dialport, phone_port); - router_set_phone_port(profile, phone_port); - } - g_free(dialport); - - g_object_unref(msg); - - /* Extract city/country/area prefix */ - url = g_strdup_printf("http://%s/fon_num/sip_option.lua", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_GET, url, - "sid", profile->router_info->session_id, - NULL); - g_free(url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - return FALSE; - } - data = msg->response_body->data; - read = msg->response_body->length; - - log_save_data("fritzbox-06_35-get-settings-2.html", data, read); - g_assert(data != NULL); - - gchar *value; - - value = xml_extract_input_value_r(data, "lkz"); - if (value != NULL && strlen(value) > 0) { - g_debug("lkz: '%s'", value); - } - g_settings_set_string(profile->settings, "country-code", value); - g_free(value); - - value = xml_extract_input_value_r(data, "lkz_prefix"); - if (value != NULL && strlen(value) > 0) { - g_debug("lkz prefix: '%s'", value); - } - g_settings_set_string(profile->settings, "international-call-prefix", value); - g_free(value); - - value = xml_extract_input_value_r(data, "okz"); - if (value != NULL && strlen(value) > 0) { - g_debug("okz: '%s'", value); - } - g_settings_set_string(profile->settings, "area-code", value); - g_free(value); - - value = xml_extract_input_value_r(data, "okz_prefix"); - if (value != NULL && strlen(value) > 0) { - g_debug("okz prefix: '%s'", value); - } - g_settings_set_string(profile->settings, "national-call-prefix", value); - g_free(value); - - g_object_unref(msg); - - /* Extract Fax information */ - fritzbox_get_fax_information_06_35(profile); - - /* The end - exit */ - fritzbox_logout(profile, FALSE); - - return TRUE; -} - -/** - * \brief Dial number using new ui format - * \param profile profile information structure - * \param port dial port - * \param number remote number - * \return TRUE on success, otherwise FALSE - */ -gboolean fritzbox_dial_number_06_35(struct profile *profile, gint port, const gchar *number) -{ - SoupMessage *msg; - gchar *port_str; - gchar *url; - gchar *scramble; - - /* Login to box */ - if (fritzbox_login(profile) == FALSE) { - return FALSE; - } - - /* Create GET message */ - port_str = g_strdup_printf("%d", fritzbox_get_dialport(port)); - - scramble = call_scramble_number(number); - g_debug("Call number '%s' on port %s...", scramble, port_str); - g_free(scramble); - - url = g_strdup_printf("http://%s/fon_num/foncalls_list.lua", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_GET, url, - "sid", profile->router_info->session_id, - "dial", number, - NULL); - g_free(url); - g_free(port_str); - - /* Send message */ - soup_session_send_message(soup_session_async, msg); - fritzbox_logout(profile, FALSE); - - return TRUE; -} - -/** - * \brief Hangup call using new ui format - * \param profile profile information structure - * \param port dial port - * \param number remote number - * \return TRUE on success, otherwise FALSE - */ -gboolean fritzbox_hangup_06_35(struct profile *profile, gint port, const gchar *number) -{ - SoupMessage *msg; - gchar *port_str; - gchar *url; - gchar *scramble; - - /* Login to box */ - if (fritzbox_login(profile) == FALSE) { - return FALSE; - } - - /* Create GET message */ - port_str = g_strdup_printf("%d", fritzbox_get_dialport(port)); - - scramble = call_scramble_number(number); - g_debug("Hangup call '%s' on port %s...", scramble, port_str); - g_free(scramble); - - url = g_strdup_printf("http://%s/fon_num/foncalls_list.lua", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_GET, url, - "sid", profile->router_info->session_id, - "hangup", "", - NULL); - g_free(url); - g_free(port_str); - - /* Send message */ - soup_session_send_message(soup_session_async, msg); - fritzbox_logout(profile, FALSE); - - return TRUE; -} - diff -Nru roger-router-1.8.14/libroutermanager/plugins/fritzbox/firmware-06-35.h roger-router-2.1.6/libroutermanager/plugins/fritzbox/firmware-06-35.h --- roger-router-1.8.14/libroutermanager/plugins/fritzbox/firmware-06-35.h 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/fritzbox/firmware-06-35.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,31 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef FIRMWARE_06_35_H -#define FIRMWARE_06_35_H - -G_BEGIN_DECLS - -gboolean fritzbox_get_settings_06_35(struct profile *profile); -gboolean fritzbox_dial_number_06_35(struct profile *profile, gint port, const gchar *number); -gboolean fritzbox_hangup_06_35(struct profile *profile, gint port, const gchar *number); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/plugins/fritzbox/firmware-common.c roger-router-2.1.6/libroutermanager/plugins/fritzbox/firmware-common.c --- roger-router-1.8.14/libroutermanager/plugins/fritzbox/firmware-common.c 2015-11-14 23:35:09.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/fritzbox/firmware-common.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,1087 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include -#include -#include -#include - -#include - -#include - -#include -#include -#include -#include -#include -#include - -#include "fritzbox.h" -#include "firmware-common.h" -#include "firmware-04-00.h" - -/** phone port names */ -struct phone_port fritzbox_phone_ports[PORT_MAX] = { - /* Analog */ - {"telcfg:settings/MSN/Port0/Name", PORT_ANALOG1, 1}, - {"telcfg:settings/MSN/Port1/Name", PORT_ANALOG2, 2}, - {"telcfg:settings/MSN/Port2/Name", PORT_ANALOG3, 3}, - /* ISDN */ - {"telcfg:settings/NTHotDialList/Name1", PORT_ISDN1, 51}, - {"telcfg:settings/NTHotDialList/Name2", PORT_ISDN2, 52}, - {"telcfg:settings/NTHotDialList/Name3", PORT_ISDN3, 53}, - {"telcfg:settings/NTHotDialList/Name4", PORT_ISDN4, 54}, - {"telcfg:settings/NTHotDialList/Name5", PORT_ISDN5, 55}, - {"telcfg:settings/NTHotDialList/Name6", PORT_ISDN6, 56}, - {"telcfg:settings/NTHotDialList/Name7", PORT_ISDN7, 57}, - {"telcfg:settings/NTHotDialList/Name8", PORT_ISDN8, 58}, - /* DECT */ - {"telcfg:settings/Foncontrol/User1/Name", PORT_DECT1, 60}, - {"telcfg:settings/Foncontrol/User2/Name", PORT_DECT2, 61}, - {"telcfg:settings/Foncontrol/User3/Name", PORT_DECT3, 62}, - {"telcfg:settings/Foncontrol/User4/Name", PORT_DECT4, 63}, - {"telcfg:settings/Foncontrol/User5/Name", PORT_DECT5, 64}, - {"telcfg:settings/Foncontrol/User6/Name", PORT_DECT6, 65}, - /* IP-Phone */ - {"telcfg:settings/VoipExtension0/Name", PORT_IP1, 620}, - {"telcfg:settings/VoipExtension1/Name", PORT_IP2, 621}, - {"telcfg:settings/VoipExtension2/Name", PORT_IP3, 622}, - {"telcfg:settings/VoipExtension3/Name", PORT_IP4, 623}, - {"telcfg:settings/VoipExtension4/Name", PORT_IP5, 624}, - {"telcfg:settings/VoipExtension5/Name", PORT_IP6, 625}, - {"telcfg:settings/VoipExtension6/Name", PORT_IP7, 626}, - {"telcfg:settings/VoipExtension7/Name", PORT_IP8, 627}, - {"telcfg:settings/VoipExtension8/Name", PORT_IP9, 628}, - {"telcfg:settings/VoipExtension9/Name", PORT_IP10, 629}, -}; - -static struct voice_box voice_boxes[5]; - -/** - * \brief Extract XML Tag: VALUE - * \param data data to parse - * \param tag tag to extract - * \return tag value - */ -gchar *xml_extract_tag(const gchar *data, gchar *tag) -{ - gchar *regex_str = g_strdup_printf("<%s>[^<]*", tag, tag); - GRegex *regex = NULL; - GError *error = NULL; - GMatchInfo *match_info; - gchar *entry = NULL; - gint tag_len = strlen(tag); - - regex = g_regex_new(regex_str, 0, 0, &error); - g_assert(regex != NULL); - - g_regex_match(regex, data, 0, &match_info); - - while (match_info && g_match_info_matches(match_info)) { - gint start; - gint end; - gboolean fetched = g_match_info_fetch_pos(match_info, 0, &start, &end); - - if (fetched == TRUE) { - gint entry_size = end - start - 2 * tag_len - 5; - entry = g_malloc0(entry_size + 1); - strncpy(entry, data + start + tag_len + 2, entry_size); - break; - } - - if (g_match_info_next(match_info, NULL) == FALSE) { - break; - } - } - - g_match_info_free(match_info); - g_free(regex_str); - - return entry; -} - -/** - * \brief Extract XML Tags: VALUE - * \param data data to parse - * \param tag tag to extract - * \return tag values - */ -gchar **xml_extract_tags(const gchar *data, gchar *tag_start, gchar *tag_end) -{ - gchar *regex_str = g_strdup_printf("<%s>[^<]*", tag_start, tag_end); - GRegex *regex = NULL; - GError *error = NULL; - GMatchInfo *match_info; - gchar **entries = NULL; - gint index = 0; - - regex = g_regex_new(regex_str, 0, 0, &error); - g_assert(regex != NULL); - - g_regex_match(regex, data, 0, &match_info); - - while (match_info && g_match_info_matches(match_info)) { - gint start; - gint end; - gboolean fetched = g_match_info_fetch_pos(match_info, 0, &start, &end); - - if (fetched == TRUE) { - gchar *tag_start_pos = strchr(data + start, '>'); - gchar *tag_end_pos = strchr(tag_start_pos + 1, '<'); - gint entry_size = tag_end_pos - tag_start_pos - 1; - - entries = g_realloc(entries, (index + 2) * sizeof(gchar *)); - entries[index] = g_malloc0(entry_size + 1); - strncpy(entries[index], tag_start_pos + 1, entry_size); - entries[index + 1] = NULL; - index++; - } - - if (g_match_info_next(match_info, NULL) == FALSE) { - break; - } - } - - g_match_info_free(match_info); - g_free(regex_str); - - return entries; -} - -/** - * \brief Extract XML input tag: name="TAG" ... value="VALUE" - * \param data data to parse - * \param tag tag to extract - * \return tag value - */ -gchar *xml_extract_input_value(const gchar *data, gchar *tag) -{ - gchar *name = g_strdup_printf("name=\"%s\"", tag); - gchar *start = g_strstr_len(data, -1, name); - gchar *val_start = NULL; - gchar *val_end = NULL; - gchar *value = NULL; - gssize val_size; - - g_free(name); - if (start == NULL) { - return NULL; - } - - val_start = g_strstr_len(start, -1, "value=\""); - g_assert(val_start != NULL); - - val_start += 7; - - val_end = g_strstr_len(val_start, -1, "\""); - - val_size = val_end - val_start; - g_assert(val_size >= 0); - - value = g_malloc0(val_size + 1); - memcpy(value, val_start, val_size); - - return value; -} - -/** - * \brief Extract XML input tag reverse: name="TAG" ... value="VALUE" - * \param data data to parse - * \param tag tag to extract - * \return tag value - */ -gchar *xml_extract_input_value_r(const gchar *data, gchar *tag) -{ - gchar *name = g_strdup_printf("name=\"%s\"", tag); - gchar *start = g_strstr_len(data, -1, name); - gchar *val_start = NULL; - gchar *val_end = NULL; - gchar *value = NULL; - gssize val_size; - - g_free(name); - if (start == NULL) { - return NULL; - } - - val_start = g_strrstr_len(data, start - data, "value=\""); - g_assert(val_start != NULL); - - val_start += 7; - - val_end = g_strstr_len(val_start, -1, "\""); - - val_size = val_end - val_start; - g_assert(val_size >= 0); - - value = g_malloc0(val_size + 1); - memcpy(value, val_start, val_size); - - return value; -} - -/** - * \brief Extract XML list tag: ["TAG"] = "VALUE" - * \param data data to parse - * \param tag tag to extract - * \return tag value - */ -gchar *xml_extract_list_value(const gchar *data, gchar *tag) -{ - gchar *name = g_strdup_printf("\"%s\"", tag); - gchar *start = g_strstr_len(data, -1, name); - gchar *val_start = NULL; - gchar *val_end = NULL; - gchar *value = NULL; - gssize val_size; - - g_free(name); - if (start == NULL) { - return NULL; - } - - start += strlen(tag) + 2; - - val_start = g_strstr_len(start, -1, "\""); - g_assert(val_start != NULL); - - val_start += 1; - - val_end = g_strstr_len(val_start, -1, "\""); - - val_size = val_end - val_start; - g_assert(val_size >= 0); - - value = g_malloc0(val_size + 1); - memcpy(value, val_start, val_size); - - return value; -} - -/** - * \brief Extract HTML assignment: TAG = "VALUE" - * \param data data to parse - * \param tag tag to extract - * \param p value is surrounded by " flag - * \return tag value - */ -gchar *html_extract_assignment(const gchar *data, gchar *tag, gboolean p) -{ - gchar *name = g_strdup_printf("%s", tag); - gchar *start = g_strstr_len(data, -1, name); - gchar *val_start = NULL; - gchar *val_end = NULL; - gchar *value = NULL; - gssize val_size; - - g_free(name); - if (start == NULL) { - return NULL; - } - - start += strlen(tag); - - if (p == 1) { - start += 2; - val_start = g_strstr_len(start, -1, "\""); - g_assert(val_start != NULL); - - val_start += 1; - - val_end = g_strstr_len(val_start, -1, "\""); - - val_size = val_end - val_start; - g_assert(val_size >= 0); - } else { - val_start = start; - g_assert(val_start != NULL); - - val_start += 1; - - val_end = g_strstr_len(val_start, -1, "\n"); - - val_size = val_end - val_start - 2; - g_assert(val_size >= 0); - } - - value = g_malloc0(val_size + 1); - memcpy(value, val_start, val_size); - - return value; -} - - -/** - * \brief Remove duplicate entries from string array - * \param numbers input string array - * \return duplicate free string array - */ -gchar **strv_remove_duplicates(gchar **numbers) -{ - gchar **ret = NULL; - gint len = g_strv_length(numbers); - gint idx; - gint ret_idx = 1; - - for (idx = 0; idx < len; idx++) { - if (!ret || !strv_contains((const gchar * const *)ret, numbers[idx])) { - ret = g_realloc(ret, (ret_idx + 1) * sizeof(char *)); - ret[ret_idx - 1] = g_strdup(numbers[idx]); - ret[ret_idx] = NULL; - - ret_idx++; - } - } - - return ret; -} - - -/** - * \brief Check if a FRITZ!Box router is present - * \param router_info - router information structure - * \return true if fritzbox and type could be retrieved, otherwise false - */ -gboolean fritzbox_present(struct router_info *router_info) -{ - SoupMessage *msg; - gsize read; - const gchar *data; - gchar *name; - gchar *version; - gchar *lang; - gchar *serial; - gchar *url; - gchar *annex; - gboolean ret = FALSE; - - if (router_info->name != NULL) { - g_free(router_info->name); - } - - if (router_info->version != NULL) { - g_free(router_info->version); - } - - if (router_info->session_timer != NULL) { - //g_timer_destroy(router_info->session_timer); - router_info->session_timer = NULL; - } - - url = g_strdup_printf("http://%s/jason_boxinfo.xml", router_info->host); - msg = soup_message_new(SOUP_METHOD_GET, url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_object_unref(msg); - g_free(url); - - if (msg->status_code == 404) { - ret = fritzbox_present_04_00(router_info); - } else { - g_warning("Could not read boxinfo file (Error: %d, %s)", msg->status_code, soup_status_get_phrase(msg->status_code)); - } - - return ret; - } - data = msg->response_body->data; - read = msg->response_body->length; - - log_save_data("fritzbox-present.html", data, read); - g_return_val_if_fail(data != NULL, FALSE); - - name = xml_extract_tag(data, "j:Name"); - version = xml_extract_tag(data, "j:Version"); - lang = xml_extract_tag(data, "j:Lang"); - serial = xml_extract_tag(data, "j:Serial"); - annex = xml_extract_tag(data, "j:Annex"); - - g_object_unref(msg); - g_free(url); - - if (name && version && lang && serial && annex) { - gchar **split; - - router_info->name = g_strdup(name); - router_info->version = g_strdup(version); - router_info->lang = g_strdup(lang); - router_info->serial = g_strdup(serial); - router_info->annex = g_strdup(annex); - - /* Version: Box.Major.Minor(-XXXXX) */ - - split = g_strsplit(router_info->version, ".", -1); - - router_info->box_id = atoi(split[0]); - router_info->maj_ver_id = atoi(split[1]); - router_info->min_ver_id = atoi(split[2]); - - g_strfreev(split); - ret = TRUE; - } else { - g_warning("name, version, lang or serial not valid"); - } - - g_free(annex); - g_free(serial); - g_free(lang); - g_free(version); - g_free(name); - - return ret; -} - -/** - * \brief Logout of box (if session_timer is not present) - * \param profile profile information structure - * \param force force logout - * \return error code - */ -gboolean fritzbox_logout(struct profile *profile, gboolean force) -{ - SoupMessage *msg; - gchar *url; - - if (profile->router_info->session_timer && !force) { - return TRUE; - } - - url = g_strdup_printf("http://%s/cgi-bin/webcm", router_get_host(profile)); - msg = soup_form_request_new(SOUP_METHOD_POST, url, - "sid", profile->router_info->session_id, - "security:command/logout", "", - "getpage", "../html/confirm_logout.html", - NULL); - g_free(url); - - soup_session_send_message(soup_session_sync, msg); - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - return FALSE; - } - - if (profile->router_info->session_timer != NULL) { - g_timer_destroy(profile->router_info->session_timer); - profile->router_info->session_timer = NULL; - } - - g_object_unref(msg); - g_debug("Logout successful"); - - return TRUE; -} - -/** - * \brief Read MSNs of data - * \param profile profile information structure - * \param data data to parse for MSNs - */ -void fritzbox_read_msn(struct profile *profile, const gchar *data) -{ - gchar *func; - gchar *pots_start; - gchar *pots_end; - gchar *pots; - gint pots_len; - - gchar *msns_start; - gchar *msns_end; - gchar *msns; - gint msns_len; - - gchar *sips_start; - gchar *sips_end; - gchar *sips; - gint sips_len; - - gint index; - - /* Check for readFonNumbers() function */ - func = g_strstr_len(data, -1, "readFonNumbers()"); - if (!func) { - return; - } - - /* Extract POTS */ - pots_start = g_strstr_len(func, -1, "nrs.pots"); - g_assert(pots_start != NULL); - - pots_start += 11; - - pots_end = g_strstr_len(pots_start, -1, "\""); - g_assert(pots_end != NULL); - - pots_len = pots_end - pots_start; - - pots = g_slice_alloc0(pots_len + 1); - strncpy(pots, pots_start, pots_len); - if (strlen(pots) > 0) { - g_debug("pots: '%s'", pots); - } - g_slice_free1(pots_len + 1, pots); - - /* Extract MSNs */ - for (index = 0; index < 10; index++) { - msns_start = g_strstr_len(func, -1, "nrs.msn.push"); - g_assert(msns_start != NULL); - - msns_start += 14; - - msns_end = g_strstr_len(msns_start, -1, "\""); - g_assert(msns_end != NULL); - - msns_len = msns_end - msns_start; - - msns = g_slice_alloc0(msns_len + 1); - strncpy(msns, msns_start, msns_len); - - if (strlen(msns) > 0) { - g_debug("msn%d: '%s'", index, msns); - } - g_slice_free1(msns_len + 1, msns); - - func = msns_end; - } - - /* Extract SIPs */ - for (index = 0; index < 19; index++) { - sips_start = g_strstr_len(func, -1, "nrs.sip.push"); - g_assert(sips_start != NULL); - - sips_start += 14; - - sips_end = g_strstr_len(sips_start, -1, "\""); - g_assert(sips_end != NULL); - - sips_len = sips_end - sips_start; - - sips = g_slice_alloc0(sips_len + 1); - strncpy(sips, sips_start, sips_len); - - if (strlen(sips) > 0) { - g_debug("sip%d: '%s'", index, sips); - } - g_slice_free1(sips_len + 1, sips); - - func = sips_end; - } -} - -/** - * \brief Depending on type get dialport - * \param type phone type - * \return dialport - */ -gint fritzbox_get_dialport(gint type) -{ - gint index; - - for (index = 0; index < PORT_MAX; index++) { - if (fritzbox_phone_ports[index].type == type) { - return fritzbox_phone_ports[index].number; - } - } - - return -1; -} - -/** - * \brief Load faxbox and add it to journal - * \param journal journal call list - * \return journal list with added faxbox - */ -GSList *fritzbox_load_faxbox(GSList *journal) -{ - struct profile *profile = profile_get_active(); - struct ftp *client; - gchar *user = router_get_ftp_user(profile); - gchar *response; - gchar *path; - gchar *volume_path; - - client = ftp_init(router_get_host(profile)); - if (!client) { - return journal; - } - - if (!ftp_login(client, user, router_get_ftp_password(profile))) { - g_warning("Could not login to router ftp"); - ftp_shutdown(client); - return journal; - } - - if (!ftp_passive(client)) { - g_warning("Could not switch to passive mode"); - ftp_shutdown(client); - return journal; - } - - volume_path = g_settings_get_string(profile->settings, "fax-volume"); - path = g_build_filename(volume_path, "FRITZ/faxbox/", NULL); - g_free(volume_path); - response = ftp_list_dir(client, path); - if (response) { - gchar **split; - gint index; - - split = g_strsplit(response, "\n", -1); - - for (index = 0; index < g_strv_length(split); index++) { - gchar date[9]; - gchar time[6]; - gchar remote_number[32]; - gchar *start; - gchar *pos; - gchar *full; - gchar *number; - - start = strstr(split[index], "Telefax"); - if (!start) { - continue; - } - - full = g_strconcat(path, split[index], NULL); - strncpy(date, split[index], 8); - date[8] = '\0'; - - strncpy(time, split[index] + 9, 5); - time[2] = ':'; - time[5] = '\0'; - - pos = strstr(start + 8, "."); - strncpy(remote_number, start + 8, pos - start - 8); - remote_number[pos - start - 8] = '\0'; - - if (isdigit(remote_number[0])) { - number = remote_number; - } else { - number = ""; - } - - journal = call_add(journal, CALL_TYPE_FAX, g_strdup_printf("%s %s", date, time), "", number, ("Telefax"), "", "0:01", g_strdup(full)); - g_free(full); - } - - g_strfreev(split); - - g_free(response); - } - g_free(path); - - ftp_shutdown(client); - - return journal; -} - -/** - * \brief Parse voice data structure and add calls to journal - * \param journal journal call list - * \param data meta data to parse voice data for - * \param len length of data - * \return journal call list with voicebox data - */ -static GSList *fritzbox_parse_voice_data(GSList *journal, const gchar *data, gsize len) -{ - gint index; - - for (index = 0; index < len / sizeof(struct voice_data); index++) { - struct voice_data *voice_data = (struct voice_data *)(data + index * sizeof(struct voice_data)); - gchar date_time[15]; - - /* Skip user/standard welcome message */ - if (!strncmp(voice_data->file, "uvp", 3)) { - continue; - } - - if (voice_data->header == 0x5C010000) { - voice_data->header = GINT_TO_BE(voice_data->header); - voice_data->type = GINT_TO_BE(voice_data->type); - voice_data->sub_type = GUINT_TO_BE(voice_data->sub_type); - voice_data->size = GUINT_TO_BE(voice_data->size); - voice_data->duration = GUINT_TO_BE(voice_data->duration); - voice_data->status = GUINT_TO_BE(voice_data->status); - } - - snprintf(date_time, sizeof(date_time), "%2.2d.%2.2d.%2.2d %2.2d:%2.2d", voice_data->day, voice_data->month, voice_data->year, - voice_data->hour, voice_data->minute); - journal = call_add(journal, CALL_TYPE_VOICE, date_time, "", voice_data->remote_number, "", voice_data->local_number, "0:01", g_strdup(voice_data->file)); - } - - return journal; -} - -/** - * \brief Load voicebox and add it to journal - * \param journal journal call list - * \return journal list with added voicebox - */ -GSList *fritzbox_load_voicebox(GSList *journal) -{ - struct ftp *client; - gchar *path; - gint index; - struct profile *profile = profile_get_active(); - gchar *user = router_get_ftp_user(profile); - gchar *volume_path; - - client = ftp_init(router_get_host(profile)); - if (!client) { - g_warning("Could not init ftp connection. Please check that ftp is enabled"); - return journal; - } - - if (!ftp_login(client, user, router_get_ftp_password(profile))) { - g_warning("Could not login to router ftp"); - ftp_shutdown(client); - return journal; - } - - volume_path = g_settings_get_string(profile->settings, "fax-volume"); - path = g_build_filename(volume_path, "FRITZ/voicebox/", NULL); - g_free(volume_path); - - for (index = 0; index < 5; index++) { - gchar *file = g_strdup_printf("%smeta%d", path, index); - gchar *file_data; - gsize file_size = 0; - - if (!ftp_passive(client)) { - g_warning("Could not switch to passive mode"); - break; - } - - file_data = ftp_get_file(client, file, &file_size); - g_free(file); - - if (file_data && file_size) { - voice_boxes[index].len = file_size; - voice_boxes[index].data = g_malloc(voice_boxes[index].len); - memcpy(voice_boxes[index].data, file_data, file_size); - journal = fritzbox_parse_voice_data(journal, file_data, file_size); - g_free(file_data); - } else { - g_free(file_data); - break; - } - } - g_free(path); - - ftp_shutdown(client); - - return journal; -} - -/** - * \brief Load fax file via FTP - * \param profile profile structure - * \param filename fax filename - * \param len pointer to store the data length to - * \return fax data - */ -gchar *fritzbox_load_fax(struct profile *profile, const gchar *filename, gsize *len) -{ - struct ftp *client; - gchar *user = router_get_ftp_user(profile); - gchar *ret; - - client = ftp_init(router_get_host(profile)); - ftp_login(client, user, router_get_ftp_password(profile)); - - ftp_passive(client); - - ret = ftp_get_file(client, filename, len); - ftp_shutdown(client); - - return ret; -} - -/** - * \brief Load voice file via FTP - * \param profile profile structure - * \param name voice filename - * \param len pointer to store the data length to - * \return voice data - */ -gchar *fritzbox_load_voice(struct profile *profile, const gchar *name, gsize *len) -{ - struct ftp *client; - gchar *filename = g_strconcat("/", g_settings_get_string(profile->settings, "fax-volume"), "/FRITZ/voicebox/rec/", name, NULL); - gchar *user = router_get_ftp_user(profile); - gchar *ret = NULL; - - client = ftp_init(router_get_host(profile)); - if (!client) { - g_debug("Could not init ftp connection"); - return ret; - } - - ftp_login(client, user, router_get_ftp_password(profile)); - - ftp_passive(client); - - ret = ftp_get_file(client, filename, len); - - ftp_shutdown(client); - - g_free(filename); - - return ret; -} - -/** - * \brief Find phone port by dial port - * \param dial_port dial port number - * \param phone port on success, otherwise -1 - */ -gint fritzbox_find_phone_port(gint dial_port) -{ - gint index; - - for (index = 0; index < PORT_MAX; index++) { - if (fritzbox_phone_ports[index].number == dial_port) { - return fritzbox_phone_ports[index].type; - } - } - - return -1; -} - -/** - * \brief Extract IP address from router - * \param profile profile pointer - * \return current IP address or NULL on error - */ -gchar *fritzbox_get_ip(struct profile *profile) -{ - SoupMessage *msg; - SoupURI *uri; - gchar *ip = NULL; - gchar *request; - SoupMessageHeaders *headers; - gchar *url; - - /* Create POST message */ - if (FIRMWARE_IS(6, 6)) { - url = g_strdup_printf("http://%s/igdupnp/control/WANIPConn1", router_get_host(profile)); - } else { - url = g_strdup_printf("http://%s/upnp/control/WANIPConn1", router_get_host(profile)); - } - - uri = soup_uri_new(url); - soup_uri_set_port(uri, 49000); - msg = soup_message_new_from_uri(SOUP_METHOD_POST, uri); - g_free(url); - - request = g_strdup( - "" - " " - " " - " " - " " - " \r\n"); - - soup_message_set_request(msg, "text/xml; charset=\"utf-8\"", SOUP_MEMORY_STATIC, request, strlen(request)); - headers = msg->request_headers; - soup_message_headers_append(headers, "SoapAction", "urn:schemas-upnp-org:service:WANIPConnection:1#GetExternalIPAddress"); - - soup_session_send_message(soup_session_sync, msg); - - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - return NULL; - } - - g_debug("buffer: %s\n\n", msg->response_body->data); - - ip = xml_extract_tag(msg->response_body->data, "NewExternalIPAddress"); - - g_object_unref(msg); - - g_debug("Got IP data (%s)", ip); - - return ip; -} - -/** - * \brief Reconnect network - * \param profile profile pointer - * \return TRUE on success, otherwise FALSE - */ -gboolean fritzbox_reconnect(struct profile *profile) -{ - SoupMessage *msg; - SoupURI *uri; - gchar *request; - SoupMessageHeaders *headers; - gchar *url; - - /* Create POST message */ - if (FIRMWARE_IS(6, 6)) { - url = g_strdup_printf("http://%s:49000/igdupnp/control/WANIPConn1", router_get_host(profile)); - } else { - url = g_strdup_printf("http://%s:49000/upnp/control/WANIPConn1", router_get_host(profile)); - } - - uri = soup_uri_new(url); - soup_uri_set_port(uri, 49000); - msg = soup_message_new_from_uri(SOUP_METHOD_POST, uri); - g_free(url); - - request = g_strdup( - "" - " " - " " - " " - " " - " \r\n"); - - soup_message_set_request(msg, "text/xml; charset=\"utf-8\"", SOUP_MEMORY_STATIC, request, strlen(request)); - headers = msg->request_headers; - soup_message_headers_append(headers, "SoapAction", "urn:schemas-upnp-org:service:WANIPConnection:1#ForceTermination"); - - soup_session_send_message(soup_session_sync, msg); - - if (msg->status_code != 200) { - g_debug("Received status code: %d", msg->status_code); - g_object_unref(msg); - return FALSE; - } - - g_object_unref(msg); - - return TRUE; -} - -/** - * \brief Delete fax file from router - * \param profile profile pointer - * \param filename fax filename to delete - * \return TRUE on success, otherwise FALSE - */ -gboolean fritzbox_delete_fax(struct profile *profile, const gchar *filename) -{ - struct ftp *client; - gchar *user = router_get_ftp_user(profile); - gboolean ret; - - client = ftp_init(router_get_host(profile)); - ftp_login(client, user, router_get_ftp_password(profile)); - - ftp_passive(client); - - ret = ftp_delete_file(client, filename); - ftp_shutdown(client); - - return ret; -} - -/** - * \brief Delete voice file from router - * \param profile profile pointer - * \param filename voice filename to delete - * \return TRUE on success, otherwise FALSE - */ -gboolean fritzbox_delete_voice(struct profile *profile, const gchar *filename) -{ - struct ftp *client; - struct voice_data *voice_data; - gpointer modified_data; - gint nr; - gint count; - gint index; - gint offset = 0; - gchar *name; - - nr = filename[4] - '0'; - if (!voice_boxes[nr].data || voice_boxes[nr].len == 0) { - return FALSE; - } - - /* Modify data */ - count = voice_boxes[nr].len / sizeof(struct voice_data); - modified_data = g_malloc((count - 1) * sizeof(struct voice_data)); - - for (index = 0; index < count; index++) { - voice_data = (struct voice_data *)(voice_boxes[nr].data + index * sizeof(struct voice_data)); - if (strncmp(voice_data->file, filename, strlen(filename)) != 0) { - memcpy(modified_data + offset, voice_boxes[nr].data + index * sizeof(struct voice_data), sizeof(struct voice_data)); - offset += sizeof(struct voice_data); - } - } - - /* Write data to router */ - client = ftp_init(router_get_host(profile)); - ftp_login(client, router_get_ftp_user(profile), router_get_ftp_password(profile)); - - gchar *path = g_build_filename(g_settings_get_string(profile->settings, "fax-volume"), "FRITZ/voicebox/", NULL); - gchar *remote_file = g_strdup_printf("meta%d", nr); - if (!ftp_put_file(client, remote_file, path, modified_data, offset)) { - g_free(modified_data); - g_free(remote_file); - g_free(path); - ftp_shutdown(client); - return FALSE; - } - - g_free(remote_file); - g_free(path); - - /* Modify internal data structure */ - g_free(voice_boxes[nr].data); - voice_boxes[nr].data = modified_data; - voice_boxes[nr].len = offset; - - /* Delete voice file */ - name = g_build_filename(g_settings_get_string(profile->settings, "fax-volume"), "FRITZ/voicebox/rec", filename, NULL); - if (!ftp_delete_file(client, name)) { - g_free(name); - ftp_shutdown(client); - return FALSE; - } - - ftp_shutdown(client); - - g_free(name); - - return TRUE; -} - -/** - * \brief Checks if @strv contains @str. @strv must not be %NULL. - * \strv a %NULL-terminated array of strings - * \str a string - * \return %TRUE if @str is an element of @strv, according to g_str_equal(). - */ -gboolean strv_contains(const gchar *const *strv, const gchar *str) -{ - g_return_val_if_fail(strv != NULL, FALSE); - g_return_val_if_fail(str != NULL, FALSE); - - for (; *strv != NULL; strv++) { - if (g_str_equal(str, *strv)) { - return TRUE; - } - } - - return FALSE; -} - diff -Nru roger-router-1.8.14/libroutermanager/plugins/fritzbox/firmware-common.h roger-router-2.1.6/libroutermanager/plugins/fritzbox/firmware-common.h --- roger-router-1.8.14/libroutermanager/plugins/fritzbox/firmware-common.h 2015-11-14 23:35:22.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/fritzbox/firmware-common.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,148 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef FIRMWARE_COMMON_H -#define FIRMWARE_COMMON_H - -#include - -#include - -G_BEGIN_DECLS - -#define FIRMWARE_IS(major, minor) (((profile->router_info->maj_ver_id == major) && (profile->router_info->min_ver_id >= minor)) || (profile->router_info->maj_ver_id > major)) - -struct voice_data { - /* 0 */ - gint header; - /* 4 */ - gint index; - /* 8 (2=own message, 3=remote message) */ - gint type; - /* 12 */ - guint sub_type; - /* 16 */ - guint size; - /* 20 */ - guint duration; - /* 24 */ - guint status; - /* 28 */ - guchar tmp0[24]; - /* 52 */ - gchar remote_number[54]; - /* 106 */ - gchar tmp1[18]; - /* 124 */ - gchar file[32]; - /* 151 */ - gchar path[128]; - /* 279 */ - guchar day; - guchar month; - guchar year; - guchar hour; - guchar minute; - guchar tmp2[31]; - gchar local_number[24]; - gchar tmp3[4]; -}; - -struct voice_box { - gsize len; - gpointer data; -}; - -extern struct phone_port fritzbox_phone_ports[PORT_MAX]; - -gchar **xml_extract_tags(const gchar *data, gchar *tag_start, gchar *tag_end); -gchar *xml_extract_tag(const gchar *data, gchar *tag); -gchar *xml_extract_input_value(const gchar *data, gchar *tag); -gchar *xml_extract_input_value_r(const gchar *data, gchar *tag); -gchar *xml_extract_list_value(const gchar *data, gchar *tag); -gchar *html_extract_assignment(const gchar *data, gchar *tag, gboolean p); -gchar **strv_remove_duplicates(gchar **numbers); -gboolean fritzbox_present(struct router_info *router_info); -gboolean fritzbox_logout(struct profile *profile, gboolean force); -void fritzbox_read_msn(struct profile *profile, const gchar *data); -gint fritzbox_get_dialport(gint type); -gchar *fritzbox_load_fax(struct profile *profile, const gchar *filename, gsize *len); -gchar *fritzbox_load_voice(struct profile *profile, const gchar *filename, gsize *len); -GSList *fritzbox_load_voicebox(GSList *journal); -GSList *fritzbox_load_faxbox(GSList *journal); -gint fritzbox_find_phone_port(gint dial_port); -gchar *fritzbox_get_ip(struct profile *profile); -gboolean fritzbox_reconnect(struct profile *profile); -gboolean fritzbox_delete_fax(struct profile *profile, const gchar *filename); -gboolean fritzbox_delete_voice(struct profile *profile, const gchar *filename); -gboolean strv_contains(const gchar *const *strv, const gchar *str); - -/** - * \brief Make dots (UTF8 -> UTF16) - * \param str UTF8 string - * \return UTF16 string - */ -static inline gchar *make_dots(const gchar *str) -{ - GString *new_str = g_string_new(""); - gunichar chr; - gchar *next; - - while (str && *str) { - chr = g_utf8_get_char(str); - next = g_utf8_next_char(str); - - if (chr > 255) { - new_str = g_string_append_c(new_str, '.'); - } else { - new_str = g_string_append_c(new_str, chr); - } - - str = next; - } - - return g_string_free(new_str, FALSE); -} - -/** - * \brief Compute md5 sum of input string - * \param input - input string - * \return md5 in hex or NULL on error - */ -static inline gchar *md5(gchar *input) -{ - GError *error = NULL; - gchar *ret = NULL; - gsize written; - gchar *bin = g_convert(input, -1, "UTF-16LE", "UTF-8", NULL, &written, &error); - - if (error == NULL) { - ret = g_compute_checksum_for_string(G_CHECKSUM_MD5, (gchar *) bin, written); - g_free(bin); - } else { - g_debug("Error converting utf8 to utf16: '%s'", error->message); - g_error_free(error); - } - - return ret; -} - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/plugins/fritzbox/fritzbox.c roger-router-2.1.6/libroutermanager/plugins/fritzbox/fritzbox.c --- roger-router-1.8.14/libroutermanager/plugins/fritzbox/fritzbox.c 2015-11-14 23:35:40.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/fritzbox/fritzbox.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,223 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include -#include - -#include - -#include -#include -#include -#include -#include -#include -#include - -#include - -#include "firmware-common.h" -#include "firmware-04-74.h" -#include "firmware-05-50.h" -#include "firmware-06-35.h" -#include "firmware-04-00.h" -#include "csv.h" - -#define ROUTERMANAGER_TYPE_FRITZBOX_PLUGIN (routermanager_fritzbox_plugin_get_type ()) -#define ROUTERMANAGER_FRITZBOX_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST((o), ROUTERMANAGER_TYPE_FRITZBOX_PLUGIN, RouterManagerFritzboxPlugin)) - -typedef struct { - guint dummy; -} RouterManagerFritzBoxPluginPrivate; - -ROUTERMANAGER_PLUGIN_REGISTER(ROUTERMANAGER_TYPE_FRITZBOX_PLUGIN, RouterManagerFritzBoxPlugin, routermanager_fritzbox_plugin) - -/** - * \brief Main login function (depending on box type) - * \param profile profile information structure - * \return error code - */ -gboolean fritzbox_login(struct profile *profile) -{ - if (FIRMWARE_IS(5, 50)) { - /* Session-ID based on login_sid.lua */ - return fritzbox_login_05_50(profile); - } - - if (FIRMWARE_IS(4, 74)) { - /* Session-ID based on login_sid.xml */ - return fritzbox_login_04_74(profile); - } - - if (FIRMWARE_IS(4, 0)) { - /* Plain login method */ - return fritzbox_login_04_00(profile); - } - - return FALSE; -} - -/** - * \brief Main get settings functions - * \param profile profile information structure - * \return error code - */ -gboolean fritzbox_get_settings(struct profile *profile) -{ - if (FIRMWARE_IS(6, 35)) { - return fritzbox_get_settings_06_35(profile); - } - - if (FIRMWARE_IS(5, 50)) { - return fritzbox_get_settings_05_50(profile); - } - - if (FIRMWARE_IS(4, 0)) { - return fritzbox_get_settings_04_74(profile); - } - - return FALSE; -} - -/** - * \brief Main load journal function (big switch for each supported router) - * \param profile profile info structure - * \param data_ptr data pointer to optional store journal to - * \return error code - */ -gboolean fritzbox_load_journal(struct profile *profile, gchar **data_ptr) -{ - gboolean ret = FALSE; - - if (FIRMWARE_IS(5, 50)) { - ret = fritzbox_load_journal_05_50(profile, data_ptr); - } else if (FIRMWARE_IS(4, 0)) { - ret = fritzbox_load_journal_04_74(profile, data_ptr); - } - - return ret; -} - -/** - * \brief Main clear journal function (big switch for each supported router) - * \param profile profile info structure - * \return error code - */ -gboolean fritzbox_clear_journal(struct profile *profile) -{ - if (!profile) { - return FALSE; - } - - if (FIRMWARE_IS(5, 50)) { - return fritzbox_clear_journal_05_50(profile); - } - - if (FIRMWARE_IS(4, 0)) { - return fritzbox_clear_journal_04_74(profile); - } - - return FALSE; -} - -/** - * \brief Dial number using router ui - * \param profile profile information structure - * \param port dial port - * \param number remote number - * \return TRUE on success, otherwise FALSE - */ -gboolean fritzbox_dial_number(struct profile *profile, gint port, const gchar *number) -{ - if (!profile) { - return FALSE; - } - - if (FIRMWARE_IS(6, 30)) { - return fritzbox_dial_number_06_35(profile, port, number); - } - - if (FIRMWARE_IS(4, 0)) { - return fritzbox_dial_number_04_00(profile, port, number); - } - - return FALSE; -} - -/** - * \brief Hangup call using router ui - * \param profile profile information structure - * \param port dial port - * \param number remote number - * \return TRUE on success, otherwise FALSE - */ -gboolean fritzbox_hangup(struct profile *profile, gint port, const gchar *number) -{ - if (!profile) { - return FALSE; - } - - if (FIRMWARE_IS(6, 30)) { - return fritzbox_hangup_06_35(profile, port, number); - } - - if (FIRMWARE_IS(4, 0)) { - return fritzbox_hangup_04_00(profile, port, number); - } - - return FALSE; -} - -/** FRITZ!Box router functions */ -static struct router fritzbox = { - "FRITZ!Box", - fritzbox_present, - fritzbox_login, - fritzbox_logout, - fritzbox_get_settings, - fritzbox_load_journal, - fritzbox_clear_journal, - fritzbox_dial_number, - fritzbox_hangup, - fritzbox_load_fax, - fritzbox_load_voice, - fritzbox_get_ip, - fritzbox_reconnect, - fritzbox_delete_fax, - fritzbox_delete_voice, -}; - -/** - * \brief Activate plugin (register fritzbox router) - * \param plugin peas plugin - */ -static void impl_activate(PeasActivatable *plugin) -{ - /* Register router structure */ - routermanager_router_register(&fritzbox); -} - -/** - * \brief Deactivate plugin - * \param plugin peas plugin - */ -static void impl_deactivate(PeasActivatable *plugin) -{ - /* Currently does nothing */ -} diff -Nru roger-router-1.8.14/libroutermanager/plugins/fritzbox/fritzbox.h roger-router-2.1.6/libroutermanager/plugins/fritzbox/fritzbox.h --- roger-router-1.8.14/libroutermanager/plugins/fritzbox/fritzbox.h 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/fritzbox/fritzbox.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,35 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef FRITZBOX_H -#define FRITZBOX_H - -#include - -G_BEGIN_DECLS - -gboolean fritzbox_login(struct profile *profile); -gboolean fritzbox_get_settings(struct profile *profile); -gboolean fritzbox_load_journal(struct profile *profile, gchar **data_ptr); -gboolean fritzbox_dial_number(struct profile *profile, gint port, const gchar *number); -gboolean fritzbox_hangup(struct profile *profile, gint port, const gchar *number); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/plugins/fritzbox/fritzbox.plugin.in roger-router-2.1.6/libroutermanager/plugins/fritzbox/fritzbox.plugin.in --- roger-router-1.8.14/libroutermanager/plugins/fritzbox/fritzbox.plugin.in 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/fritzbox/fritzbox.plugin.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,9 +0,0 @@ -[Plugin] -Module=fritzbox -_Name=AVM FRITZ!Box -_Description=FRITZ!Box router integration for firmware >= 04.74 -Authors=Jan-Michael Brummer -Copyright=Copyright © 2014 Jan-Michael Brummer -Website=http://www.tabos.org/ -Help=http://www.tabos.org/forum/ -Builtin=true diff -Nru roger-router-1.8.14/libroutermanager/plugins/fritzbox/Makefile.am roger-router-2.1.6/libroutermanager/plugins/fritzbox/Makefile.am --- roger-router-1.8.14/libroutermanager/plugins/fritzbox/Makefile.am 2015-11-14 23:31:28.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/fritzbox/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,27 +0,0 @@ -plugin_in_files = fritzbox.plugin - -include ../Makefile.plugins - -plugindir = $(libdir)/routermanager/fritzbox - -plugin_LTLIBRARIES = libfritzbox.la - -libfritzbox_la_SOURCES = \ - fritzbox.c \ - fritzbox.h \ - firmware-common.c \ - firmware-common.h \ - firmware-04-00.c \ - firmware-04-00.h \ - firmware-04-74.c \ - firmware-04-74.h \ - firmware-05-50.c \ - firmware-05-50.h \ - firmware-06-35.c \ - firmware-06-35.h \ - csv.c \ - csv.h - -libfritzbox_la_CFLAGS = $(plugin_cflags) $(SOUP_CFLAGS) -libfritzbox_la_LDFLAGS = $(plugin_ldflags) -libfritzbox_la_LIBADD = $(plugin_libadd) $(SOUP_LIBS) diff -Nru roger-router-1.8.14/libroutermanager/plugins/fritzbox/Makefile.in roger-router-2.1.6/libroutermanager/plugins/fritzbox/Makefile.in --- roger-router-1.8.14/libroutermanager/plugins/fritzbox/Makefile.in 2015-12-10 21:33:44.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/fritzbox/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,866 +0,0 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2014 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@ - - -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@ -@WIN32_TRUE@am__append_1 = -L$(top_srcdir)/libroutermanager/.libs -lroutermanager -no-undefined -@MACOSX_TRUE@am__append_2 = -L$(top_srcdir)/libroutermanager/.libs -lroutermanager -no-undefined -subdir = libroutermanager/plugins/fritzbox -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ - $(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)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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)$(plugindir)" "$(DESTDIR)$(plugindir)" -LTLIBRARIES = $(plugin_LTLIBRARIES) -am__DEPENDENCIES_1 = -am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) -libfritzbox_la_DEPENDENCIES = $(am__DEPENDENCIES_2) \ - $(am__DEPENDENCIES_1) -am_libfritzbox_la_OBJECTS = libfritzbox_la-fritzbox.lo \ - libfritzbox_la-firmware-common.lo \ - libfritzbox_la-firmware-04-00.lo \ - libfritzbox_la-firmware-04-74.lo \ - libfritzbox_la-firmware-05-50.lo \ - libfritzbox_la-firmware-06-35.lo libfritzbox_la-csv.lo -libfritzbox_la_OBJECTS = $(am_libfritzbox_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 = -libfritzbox_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ - $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ - $(libfritzbox_la_CFLAGS) $(CFLAGS) $(libfritzbox_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) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -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 = $(libfritzbox_la_SOURCES) -DIST_SOURCES = $(libfritzbox_la_SOURCES) -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -DATA = $(plugin_DATA) -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)` -ETAGS = etags -CTAGS = ctags -am__DIST_COMMON = $(srcdir)/../Makefile.plugins $(srcdir)/Makefile.in \ - $(top_srcdir)/depcomp README -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -ALL_LINGUAS = @ALL_LINGUAS@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@ -APPINDICATOR_LIBS = @APPINDICATOR_LIBS@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAPI_CFLAGS = @CAPI_CFLAGS@ -CAPI_LIBS = @CAPI_LIBS@ -CATALOGS = @CATALOGS@ -CATOBJEXT = @CATOBJEXT@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DATADIRNAME = @DATADIRNAME@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -EBOOK_CFLAGS = @EBOOK_CFLAGS@ -EBOOK_LIBS = @EBOOK_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXTRA_CFLAGS = @EXTRA_CFLAGS@ -EXTRA_LIBS = @EXTRA_LIBS@ -FAX_SPOOLER_CFLAGS = @FAX_SPOOLER_CFLAGS@ -FAX_SPOOLER_LIBS = @FAX_SPOOLER_LIBS@ -FGREP = @FGREP@ -GDATA_CFLAGS = @GDATA_CFLAGS@ -GDATA_LIBS = @GDATA_LIBS@ -GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMOFILES = @GMOFILES@ -GMSGFMT = @GMSGFMT@ -GREP = @GREP@ -GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@ -GSTREAMER1_CFLAGS = @GSTREAMER1_CFLAGS@ -GSTREAMER1_LIBS = @GSTREAMER1_LIBS@ -GTK_CFLAGS = @GTK_CFLAGS@ -GTK_LIBS = @GTK_LIBS@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INSTOBJEXT = @INSTOBJEXT@ -INTLLIBS = @INTLLIBS@ -INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ -INTLTOOL_MERGE = @INTLTOOL_MERGE@ -INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ -INTLTOOL_PERL = @INTLTOOL_PERL@ -INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ -INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ -INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ -INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ -INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ -INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ -KWALLET_CFLAGS = @KWALLET_CFLAGS@ -KWALLET_LIBS = @KWALLET_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@ -LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@ -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@ -MKINSTALLDIRS = @MKINSTALLDIRS@ -MSGFMT = @MSGFMT@ -MSGFMT_OPTS = @MSGFMT_OPTS@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OS_CFLAGS = @OS_CFLAGS@ -OS_LIBS = @OS_LIBS@ -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@ -PEAS_CFLAGS = @PEAS_CFLAGS@ -PEAS_GTK_CFLAGS = @PEAS_GTK_CFLAGS@ -PEAS_GTK_LIBS = @PEAS_GTK_LIBS@ -PEAS_LIBS = @PEAS_LIBS@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POFILES = @POFILES@ -PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@ -PORTAUDIO_LIBS = @PORTAUDIO_LIBS@ -POSUB = @POSUB@ -PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ -PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ -PULSEAUDIO_CFLAGS = @PULSEAUDIO_CFLAGS@ -PULSEAUDIO_LIBS = @PULSEAUDIO_LIBS@ -RANLIB = @RANLIB@ -ROGER_VERSION_MAJOR = @ROGER_VERSION_MAJOR@ -ROGER_VERSION_MICRO = @ROGER_VERSION_MICRO@ -ROGER_VERSION_MINOR = @ROGER_VERSION_MINOR@ -SECRET_CFLAGS = @SECRET_CFLAGS@ -SECRET_LIBS = @SECRET_LIBS@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SOUP_CFLAGS = @SOUP_CFLAGS@ -SOUP_LIBS = @SOUP_LIBS@ -SPANDSP_CFLAGS = @SPANDSP_CFLAGS@ -SPANDSP_LIBS = @SPANDSP_LIBS@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -WINDRES = @WINDRES@ -XGETTEXT = @XGETTEXT@ -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@ -found_cc = @found_cc@ -gsettingsschemadir = @gsettingsschemadir@ -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@ -intltool__v_merge_options_ = @intltool__v_merge_options_@ -intltool__v_merge_options_0 = @intltool__v_merge_options_0@ -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@ -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@ -plugin_in_files = fritzbox.plugin -plugin_DATA = $(plugin_in_files:.plugin.in=.plugin) -CLEANFILES = $(plugin_DATA) -DISTCLEANFILES = $(plugin_DATA) -EXTRA_DIST = $(plugin_in_files).in -AM_CFLAGS = \ - $(PEAS_CFLAGS) \ - $(OS_CFLAGS) \ - -I$(top_srcdir)/ - -plugin_cflags = \ - $(PEAS_CFLAGS) \ - $(OS_CFLAGS) \ - -I$(top_srcdir)/ - -plugin_ldflags = -export-dynamic -no-undefined -avoid-version -module \ - -shared $(PLUGIN_LIBTOOL_FLAGS) $(am__append_1) \ - $(am__append_2) -plugin_libadd = \ - $(PEAS_LIBS) \ - $(OS_LIBS) - -plugindir = $(libdir)/routermanager/fritzbox -plugin_LTLIBRARIES = libfritzbox.la -libfritzbox_la_SOURCES = \ - fritzbox.c \ - fritzbox.h \ - firmware-common.c \ - firmware-common.h \ - firmware-04-00.c \ - firmware-04-00.h \ - firmware-04-74.c \ - firmware-04-74.h \ - firmware-05-50.c \ - firmware-05-50.h \ - firmware-06-35.c \ - firmware-06-35.h \ - csv.c \ - csv.h - -libfritzbox_la_CFLAGS = $(plugin_cflags) $(SOUP_CFLAGS) -libfritzbox_la_LDFLAGS = $(plugin_ldflags) -libfritzbox_la_LIBADD = $(plugin_libadd) $(SOUP_LIBS) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../Makefile.plugins $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libroutermanager/plugins/fritzbox/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign libroutermanager/plugins/fritzbox/Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; -$(srcdir)/../Makefile.plugins $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES) - @$(NORMAL_INSTALL) - @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || 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)$(plugindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(plugindir)" || exit 1; \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(plugindir)'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(plugindir)"; \ - } - -uninstall-pluginLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || list=; \ - for p in $$list; do \ - $(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(plugindir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(plugindir)/$$f"; \ - done - -clean-pluginLTLIBRARIES: - -test -z "$(plugin_LTLIBRARIES)" || rm -f $(plugin_LTLIBRARIES) - @list='$(plugin_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}; \ - } - -libfritzbox.la: $(libfritzbox_la_OBJECTS) $(libfritzbox_la_DEPENDENCIES) $(EXTRA_libfritzbox_la_DEPENDENCIES) - $(AM_V_CCLD)$(libfritzbox_la_LINK) -rpath $(plugindir) $(libfritzbox_la_OBJECTS) $(libfritzbox_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfritzbox_la-csv.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfritzbox_la-firmware-04-00.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfritzbox_la-firmware-04-74.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfritzbox_la-firmware-05-50.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfritzbox_la-firmware-06-35.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfritzbox_la-firmware-common.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfritzbox_la-fritzbox.Plo@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ -@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -libfritzbox_la-fritzbox.lo: fritzbox.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libfritzbox_la_CFLAGS) $(CFLAGS) -MT libfritzbox_la-fritzbox.lo -MD -MP -MF $(DEPDIR)/libfritzbox_la-fritzbox.Tpo -c -o libfritzbox_la-fritzbox.lo `test -f 'fritzbox.c' || echo '$(srcdir)/'`fritzbox.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libfritzbox_la-fritzbox.Tpo $(DEPDIR)/libfritzbox_la-fritzbox.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fritzbox.c' object='libfritzbox_la-fritzbox.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libfritzbox_la_CFLAGS) $(CFLAGS) -c -o libfritzbox_la-fritzbox.lo `test -f 'fritzbox.c' || echo '$(srcdir)/'`fritzbox.c - -libfritzbox_la-firmware-common.lo: firmware-common.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libfritzbox_la_CFLAGS) $(CFLAGS) -MT libfritzbox_la-firmware-common.lo -MD -MP -MF $(DEPDIR)/libfritzbox_la-firmware-common.Tpo -c -o libfritzbox_la-firmware-common.lo `test -f 'firmware-common.c' || echo '$(srcdir)/'`firmware-common.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libfritzbox_la-firmware-common.Tpo $(DEPDIR)/libfritzbox_la-firmware-common.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='firmware-common.c' object='libfritzbox_la-firmware-common.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libfritzbox_la_CFLAGS) $(CFLAGS) -c -o libfritzbox_la-firmware-common.lo `test -f 'firmware-common.c' || echo '$(srcdir)/'`firmware-common.c - -libfritzbox_la-firmware-04-00.lo: firmware-04-00.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libfritzbox_la_CFLAGS) $(CFLAGS) -MT libfritzbox_la-firmware-04-00.lo -MD -MP -MF $(DEPDIR)/libfritzbox_la-firmware-04-00.Tpo -c -o libfritzbox_la-firmware-04-00.lo `test -f 'firmware-04-00.c' || echo '$(srcdir)/'`firmware-04-00.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libfritzbox_la-firmware-04-00.Tpo $(DEPDIR)/libfritzbox_la-firmware-04-00.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='firmware-04-00.c' object='libfritzbox_la-firmware-04-00.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libfritzbox_la_CFLAGS) $(CFLAGS) -c -o libfritzbox_la-firmware-04-00.lo `test -f 'firmware-04-00.c' || echo '$(srcdir)/'`firmware-04-00.c - -libfritzbox_la-firmware-04-74.lo: firmware-04-74.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libfritzbox_la_CFLAGS) $(CFLAGS) -MT libfritzbox_la-firmware-04-74.lo -MD -MP -MF $(DEPDIR)/libfritzbox_la-firmware-04-74.Tpo -c -o libfritzbox_la-firmware-04-74.lo `test -f 'firmware-04-74.c' || echo '$(srcdir)/'`firmware-04-74.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libfritzbox_la-firmware-04-74.Tpo $(DEPDIR)/libfritzbox_la-firmware-04-74.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='firmware-04-74.c' object='libfritzbox_la-firmware-04-74.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libfritzbox_la_CFLAGS) $(CFLAGS) -c -o libfritzbox_la-firmware-04-74.lo `test -f 'firmware-04-74.c' || echo '$(srcdir)/'`firmware-04-74.c - -libfritzbox_la-firmware-05-50.lo: firmware-05-50.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libfritzbox_la_CFLAGS) $(CFLAGS) -MT libfritzbox_la-firmware-05-50.lo -MD -MP -MF $(DEPDIR)/libfritzbox_la-firmware-05-50.Tpo -c -o libfritzbox_la-firmware-05-50.lo `test -f 'firmware-05-50.c' || echo '$(srcdir)/'`firmware-05-50.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libfritzbox_la-firmware-05-50.Tpo $(DEPDIR)/libfritzbox_la-firmware-05-50.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='firmware-05-50.c' object='libfritzbox_la-firmware-05-50.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libfritzbox_la_CFLAGS) $(CFLAGS) -c -o libfritzbox_la-firmware-05-50.lo `test -f 'firmware-05-50.c' || echo '$(srcdir)/'`firmware-05-50.c - -libfritzbox_la-firmware-06-35.lo: firmware-06-35.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libfritzbox_la_CFLAGS) $(CFLAGS) -MT libfritzbox_la-firmware-06-35.lo -MD -MP -MF $(DEPDIR)/libfritzbox_la-firmware-06-35.Tpo -c -o libfritzbox_la-firmware-06-35.lo `test -f 'firmware-06-35.c' || echo '$(srcdir)/'`firmware-06-35.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libfritzbox_la-firmware-06-35.Tpo $(DEPDIR)/libfritzbox_la-firmware-06-35.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='firmware-06-35.c' object='libfritzbox_la-firmware-06-35.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libfritzbox_la_CFLAGS) $(CFLAGS) -c -o libfritzbox_la-firmware-06-35.lo `test -f 'firmware-06-35.c' || echo '$(srcdir)/'`firmware-06-35.c - -libfritzbox_la-csv.lo: csv.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libfritzbox_la_CFLAGS) $(CFLAGS) -MT libfritzbox_la-csv.lo -MD -MP -MF $(DEPDIR)/libfritzbox_la-csv.Tpo -c -o libfritzbox_la-csv.lo `test -f 'csv.c' || echo '$(srcdir)/'`csv.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libfritzbox_la-csv.Tpo $(DEPDIR)/libfritzbox_la-csv.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='csv.c' object='libfritzbox_la-csv.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libfritzbox_la_CFLAGS) $(CFLAGS) -c -o libfritzbox_la-csv.lo `test -f 'csv.c' || echo '$(srcdir)/'`csv.c - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-pluginDATA: $(plugin_DATA) - @$(NORMAL_INSTALL) - @list='$(plugin_DATA)'; test -n "$(plugindir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(plugindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(plugindir)" || 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)$(plugindir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(plugindir)" || exit $$?; \ - done - -uninstall-pluginDATA: - @$(NORMAL_UNINSTALL) - @list='$(plugin_DATA)'; test -n "$(plugindir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(plugindir)'; $(am__uninstall_files_from_dir) - -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-am -TAGS: tags - -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - set x; \ - here=`pwd`; \ - $(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-am - -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" -cscopelist: cscopelist-am - -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 - -distdir: $(DISTFILES) - @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 -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) $(DATA) -installdirs: - for dir in "$(DESTDIR)$(plugindir)" "$(DESTDIR)$(plugindir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -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) - -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." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-pluginLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-pluginDATA install-pluginLTLIBRARIES - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-pluginDATA uninstall-pluginLTLIBRARIES - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-pluginLTLIBRARIES cscopelist-am ctags \ - ctags-am distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir 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-man install-pdf install-pdf-am \ - install-pluginDATA install-pluginLTLIBRARIES install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs 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-pluginDATA uninstall-pluginLTLIBRARIES - -.PRECIOUS: Makefile - -%.plugin: %.plugin.in - $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache - -# 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: diff -Nru roger-router-1.8.14/libroutermanager/plugins/fritzbox/README roger-router-2.1.6/libroutermanager/plugins/fritzbox/README --- roger-router-1.8.14/libroutermanager/plugins/fritzbox/README 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/fritzbox/README 1970-01-01 00:00:00.000000000 +0000 @@ -1,35 +0,0 @@ -* The router plugin for FRITZ!Box uses the jason_boxinfo.xml file from update-check for detection. This means that it will - only support recent FRITZ!Box router, namely: - - FRITZ!Box WLAN 3270 - FRITZ!Box WLAN 3370 - FRITZ!Box Fon 5113 - FRITZ!Box 6360 Cable - FRITZ!Box 6840 LTE - FRITZ!Box Fon WLAN 7112 - FRITZ!Box Fon WLAN 7113 - FRITZ!Box Fon WLAN 7170 - FRITZ!Box Fon WLAN 7240 - FRITZ!Box Fon WLAN 7270 - FRITZ!Box Fon WLAN 7320 - FRITZ!Box Fon WLAN 7330 - FRITZ!Box Fon WLAN 7340 - FRITZ!Box Fon WLAN 7360 - FRITZ!Box Fon WLAN 7390 - FRITZ!Box Fon WLAN 7570 - VoIP Gateway 5188 - FRITZ!WLAN Repeater N/G - FRITZ!WLAN Repeater 300E - Multibox 7270 NGN - -* Tested devices are listed in the fritzbox.plugin.in file. Currently tested: - FRITZ!Box Fon WLAN 7112 - FRITZ!Box Fon WLAN 7170 - FRITZ!Box Fon WLAN 7320 - FRITZ!Box Fon WLAN 7390 - - -* This plugin supports any firmware >= 04.74 with update-check. - - --- 19.10.2014 Jan-Michael Brummer -- diff -Nru roger-router-1.8.14/libroutermanager/plugins/gstreamer1/gstreamer1.plugin.in roger-router-2.1.6/libroutermanager/plugins/gstreamer1/gstreamer1.plugin.in --- roger-router-1.8.14/libroutermanager/plugins/gstreamer1/gstreamer1.plugin.in 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/gstreamer1/gstreamer1.plugin.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,9 +0,0 @@ -[Plugin] -Module=gstreamer1 -_Name=GStreamer 1.x plugin -_Description=Audio plugin for GStreamer -Authors=Jan-Michael Brummer -Copyright=Copyright © 2013 Jan-Michael Brummer -Website=http://www.tabos.org/ -Help=http://www.tabos.org/forum/ -Builtin=true diff -Nru roger-router-1.8.14/libroutermanager/plugins/gstreamer1/gstreamer.c roger-router-2.1.6/libroutermanager/plugins/gstreamer1/gstreamer.c --- roger-router-1.8.14/libroutermanager/plugins/gstreamer1/gstreamer.c 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/gstreamer1/gstreamer.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,483 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include -#include - -#include -#include -#include - -#include -#include -#include -#include - -#define ROUTERMANAGER_TYPE_GSTREAMER_PLUGIN (routermanager_gstreamer_plugin_get_type()) -#define ROUTERMANAGER_GSTREAMER_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST((o), ROUTERMANAGER_TYPE_GSTREAMER_PLUGIN, RouterManagerGStreamerPlugin)) - -typedef struct { - guint id; -} RouterManagerGStreamerPluginPrivate; - -ROUTERMANAGER_PLUGIN_REGISTER(ROUTERMANAGER_TYPE_GSTREAMER_PLUGIN, RouterManagerGStreamerPlugin, routermanager_gstreamer_plugin) - -/** predefined backup values */ -static gint gstreamer_channels = 2; -static gint gstreamer_sample_rate = 8000; -static gint gstreamer_bits_per_sample = 16; -static GstDeviceMonitor *monitor = NULL; -static gboolean use_gst_device_monitor = FALSE; - -struct pipes { - GstElement *in_pipe; - GstElement *out_pipe; - GstElement *in_bin; - GstElement *out_bin; - GstAdapter *adapter; -}; - -/** - * \brief Stop and clean gstreamer pipeline - * \param bus gstreamer bus - * \param message gstreamer message - * \param pipeline pipeline to pipeline we want to stop - * \return TRUE if we received a EOS for the requested pipeline, otherwise FALSE - */ -static gboolean pipeline_cleaner(GstBus *bus, GstMessage *message, gpointer pipeline) -{ - gboolean result = TRUE; - - /* If we receive a End-Of-Stream message for the requested pipeline, stop the pipeline */ - if (GST_MESSAGE_TYPE(message) == GST_MESSAGE_EOS && GST_MESSAGE_SRC(message) == GST_OBJECT_CAST(pipeline)) { - result = FALSE; - gst_element_set_state(GST_ELEMENT(pipeline), GST_STATE_NULL); - g_object_unref(pipeline); - } - - return result; -} - -/** - * \brief Detect supported audio devices - * \return 0 - */ -static GSList *gstreamer_detect_devices(void) -{ - GSList *devices = NULL; - struct audio_device *audio_device; - GList *gst_devices = NULL; - - if (!use_gst_device_monitor) { - audio_device = g_slice_new0(struct audio_device); - - audio_device->internal_name = g_strdup("autoaudiosink"); - audio_device->name = g_strdup("Standard"); - audio_device->type = AUDIO_OUTPUT; - devices = g_slist_prepend(devices, audio_device); - - audio_device = g_slice_new0(struct audio_device); - audio_device->internal_name = g_strdup("autoaudiosrc"); - audio_device->name = g_strdup("Standard"); - audio_device->type = AUDIO_INPUT; - devices = g_slist_prepend(devices, audio_device); - - return devices; - } - - gst_devices = gst_device_monitor_get_devices(monitor); - GList *list; - - for (list = gst_devices; list != NULL; list = list->next) { - GstDevice *device = list->data; - gchar *name = gst_device_get_display_name(device); - gchar *class; - - if (strstr(name, "Monitor")) { - continue; - } - - class = gst_device_get_device_class(device); - - if (!strcmp(class, "Audio/Sink")) { - audio_device = g_slice_new0(struct audio_device); - audio_device->internal_name = g_strdup(name); - audio_device->name = g_strdup(name); - audio_device->type = AUDIO_OUTPUT; - devices = g_slist_prepend(devices, audio_device); - } else if (!strcmp(class, "Audio/Source")) { - audio_device = g_slice_new0(struct audio_device); - audio_device->internal_name = g_strdup(name); - audio_device->name = g_strdup(name); - audio_device->type = AUDIO_INPUT; - devices = g_slist_prepend(devices, audio_device); - } - } - - return devices; -} - -/** - * \brief Set buffer size we want to use - * \param buffer_size requested buffer size - */ -static void gstreamer_set_buffer_output_size(gpointer priv, unsigned buffer_size) -{ - GstElement *src = NULL; - GstElement *pipeline = priv; - - /* Try to receive pipeline bin name */ - src = gst_bin_get_by_name(GST_BIN(pipeline), "routermanager_src"); - if (src != NULL) { - /* set blocksize */ - g_object_set(G_OBJECT(src), "blocksize", buffer_size, NULL); - g_object_unref(src); - } -} - -static void gstreamer_set_buffer_input_size(gpointer priv, unsigned buffer_size) -{ - GstElement *sink = NULL; - GstElement *pipeline = priv; - - /* Try to receive pipeline bin name */ - sink = gst_bin_get_by_name(GST_BIN(pipeline), "routermanager_sink"); - if (sink != NULL) { - /* set blocksize */ - g_object_set(G_OBJECT(sink), "blocksize", buffer_size, NULL); - g_object_unref(sink); - } -} - -/** - * \brief Initialize audio device - * \param channels number of channels - * \param sample_rate sample rate - * \param bits_per_sample number of bits per samplerate - * \return TRUE on success, otherwise error - */ -static int gstreamer_init(unsigned char channels, unsigned short sample_rate, unsigned char bits_per_sample) -{ - monitor = gst_device_monitor_new(); - - gst_device_monitor_add_filter(monitor, "Audio/Sink", NULL); - gst_device_monitor_add_filter(monitor, "Audio/Source", NULL); - - use_gst_device_monitor = gst_device_monitor_start(monitor); - if (!use_gst_device_monitor) { - g_warning("Failed to start device monitor!"); - } - - /* TODO: Check if configuration is valid and usable */ - gstreamer_channels = channels; - gstreamer_sample_rate = sample_rate; - gstreamer_bits_per_sample = bits_per_sample; - - return 0; -} - -/** - * \brief Open audio device - * \return private data or NULL on error - */ -static void *gstreamer_open(void) -{ - struct profile *profile = profile_get_active(); - struct pipes *pipes = NULL; - GstElement *sink; - GstElement *audio_sink; - GstElement *audio_source; - GstElement *pipe; - GstElement *filter; - GstElement *convert; - GstElement *resample; - GstCaps *filtercaps; - GstDevice *output_device = NULL; - GstDevice *input_device = NULL; - GList *list; - GList *gst_devices; - gchar *output_name; - gchar *input_name; - gint ret; - - pipes = g_slice_alloc0(sizeof(struct pipes)); - if (pipes == NULL) { - return NULL; - } - - /* Get devices */ - if (use_gst_device_monitor) { - gst_devices = gst_device_monitor_get_devices(monitor); - - g_debug("%s(): Using device monitor based audio src/sink", __FUNCTION__); - - /* Get preferred input/output device names */ - output_name = g_settings_get_string(profile->settings, "audio-output"); - input_name = g_settings_get_string(profile->settings, "audio-input"); - - /* Find output device */ - for (list = gst_devices; list != NULL; list = list->next) { - GstDevice *device = list->data; - - gchar *class = gst_device_get_device_class(device); - gchar *name = gst_device_get_display_name(device); - - if (!strcmp(class, "Audio/Sink") && !strcmp(name, output_name)) { - output_device = device; - } else if (!strcmp(class, "Audio/Source") && !strcmp(name, input_name)) { - input_device = device; - } - } - - if (!output_device || !input_device) { - g_error("Audio device not found!"); - } - - audio_sink = gst_device_create_element(output_device, NULL); - audio_source = gst_device_create_element(input_device, NULL); - } else { - g_debug("%s(): Using auto audio src/sink", __FUNCTION__); - audio_sink = gst_element_factory_make("autoaudiosink", NULL); - audio_source = gst_element_factory_make("autoaudiosrc", NULL); - } - - /* Create output pipeline */ - if (audio_sink != NULL) { - pipe = gst_pipeline_new("output"); - g_assert(pipe != NULL); - - GstElement *source = gst_element_factory_make("appsrc", "routermanager_src"); - g_assert(source != NULL); - - g_object_set(G_OBJECT(source), - "is-live", 1, - "format", 3, - "block", 1, - "max-bytes", 320, - NULL); - - filter = gst_element_factory_make("capsfilter", "filter"); - - filtercaps = gst_caps_new_simple("audio/x-raw", - "format", G_TYPE_STRING, "S16LE", - "channels", G_TYPE_INT, gstreamer_channels, - "rate", G_TYPE_INT, gstreamer_sample_rate, - NULL); - - g_object_set(G_OBJECT(filter), "caps", filtercaps, NULL); - gst_caps_unref(filtercaps); - - convert = gst_element_factory_make("audioconvert", "convert"); - resample = gst_element_factory_make("audioresample", "resample"); - - gst_bin_add_many(GST_BIN(pipe), source, filter, convert, resample, audio_sink, NULL); - gst_element_link_many(source, filter, convert, resample, audio_sink, NULL); - - ret = gst_element_set_state(pipe, GST_STATE_PLAYING); - if (ret == GST_STATE_CHANGE_FAILURE) { - g_warning("Error: cannot start sink pipeline => %d", ret); - return NULL; - } - - pipes->out_pipe = pipe; - pipes->out_bin = gst_bin_get_by_name(GST_BIN(pipe), "routermanager_src"); - gstreamer_set_buffer_output_size(pipe, 160); - } - - /* Create input pipeline */ - if (audio_source != NULL ) { - pipe = gst_pipeline_new("input"); - g_assert(pipe != NULL); - - sink = gst_element_factory_make("appsink", "routermanager_sink"); - g_assert(sink != NULL); - - g_object_set(G_OBJECT(sink), - "drop", 1, - "max-buffers", 2, - "sync", 1, - "qos", 1, - NULL); - - filter = gst_element_factory_make("capsfilter", "filter"); - - filtercaps = gst_caps_new_simple("audio/x-raw", - "format", G_TYPE_STRING, "S16LE", - "channels", G_TYPE_INT, gstreamer_channels, - "rate", G_TYPE_INT, gstreamer_sample_rate, - NULL); - - //g_object_set(G_OBJECT(filter), "caps", filtercaps, NULL); - gst_caps_unref(filtercaps); - - convert = gst_element_factory_make("audioconvert", "convert"); - resample = gst_element_factory_make("audioresample", "resample"); - - gst_bin_add_many(GST_BIN(pipe), audio_source, convert, resample, filter, sink, NULL); - gst_element_link_many(audio_source, convert, resample, filter, sink, NULL); - - ret = gst_element_set_state(pipe, GST_STATE_PLAYING); - if (ret == GST_STATE_CHANGE_FAILURE) { - g_warning("Error: cannot start source pipeline => %d", ret); - return NULL; - } - - pipes->in_pipe = pipe; - pipes->in_bin = gst_bin_get_by_name(GST_BIN(pipe), "routermanager_sink"); - gstreamer_set_buffer_input_size(pipe, 160); - } - - pipes->adapter = gst_adapter_new(); - - return pipes; -} - -/** - * \brief Write audio data - * \param priv private data - * \param pnData audio data - * \param size size of audio data - * \return bytes written or error code - */ -static gsize gstreamer_write(void *priv, guchar *data, gsize size) -{ - GstBuffer *buffer = NULL; - struct pipes *pipes = priv; - GstElement *src = pipes->out_bin; - gchar *tmp; - - if (!pipes || !src) { - return 0; - } - - tmp = g_malloc0(size); - memcpy((char *) tmp, (char *) data, size); - - buffer = gst_buffer_new_wrapped(tmp, size); - gst_app_src_push_buffer(GST_APP_SRC(src), buffer); - - return size; -} - -static gsize gstreamer_read(void *priv, guchar *data, gsize size) -{ - GstSample *sample = NULL; - struct pipes *pipes = priv; - GstElement *sink = pipes->in_bin; - unsigned int read = 0; - - if (!sink) { - return read; - } - - sample = gst_app_sink_pull_sample(GST_APP_SINK(sink)); - if (sample != NULL) { - gst_adapter_push(pipes->adapter, gst_sample_get_buffer(sample)); - } - - read = MIN(gst_adapter_available(pipes->adapter), size); - if (read != 0) { - gst_adapter_copy(pipes->adapter, data, 0, read); - gst_adapter_flush(pipes->adapter, read); - } - - return read; -} - -/** - * \brief Stop and remove pipeline - * \param priv private data - * \return error code - */ -int gstreamer_close(void *priv) -{ - struct pipes *pipes = priv; - - g_debug("close"); - if (pipes == NULL) { - return 0; - } - - GstElement *src = pipes->out_bin; - if (src != NULL) { - g_debug("src close"); - GstBus *bus = gst_pipeline_get_bus(GST_PIPELINE(pipes->out_pipe)); - gst_bus_add_watch(bus, pipeline_cleaner, pipes->out_pipe); - gst_app_src_end_of_stream(GST_APP_SRC(src)); - gst_element_set_state(pipes->out_pipe, GST_STATE_NULL); - gst_object_unref(bus); - gst_object_unref(pipes->out_pipe); - pipes->out_pipe = NULL; - } - - if (pipes->in_pipe != NULL) { - g_debug("in close"); - gst_element_set_state(pipes->in_pipe, GST_STATE_NULL); - gst_object_unref(pipes->in_pipe); - pipes->out_pipe = NULL; - } - - g_slice_free(struct pipes, pipes); - pipes = NULL; - g_debug("done"); - - return 0; -} - -int gstreamer_shutdown(void) -{ - gst_device_monitor_stop(monitor); - gst_object_unref(monitor); - - return 0; -} - -/** audio definition */ -struct audio gstreamer = { - "GStreamer", - gstreamer_init, - gstreamer_open, - gstreamer_write, - gstreamer_read, - gstreamer_close, - gstreamer_shutdown, - gstreamer_detect_devices -}; - -/** - * \brief Activate plugin (add net event) - * \param plugin peas plugin - */ -static void impl_activate(PeasActivatable *plugin) -{ - gst_init(NULL, NULL); - - g_setenv("PULSE_PROP_media.role", "phone", TRUE); - g_setenv("PULSE_PROP_filter.want", "echo-cancel", TRUE); - - routermanager_audio_register(&gstreamer); -} - -/** - * \brief Deactivate plugin (remote net event) - * \param plugin peas plugin - */ -static void impl_deactivate(PeasActivatable *plugin) -{ -} diff -Nru roger-router-1.8.14/libroutermanager/plugins/gstreamer1/Makefile.am roger-router-2.1.6/libroutermanager/plugins/gstreamer1/Makefile.am --- roger-router-1.8.14/libroutermanager/plugins/gstreamer1/Makefile.am 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/gstreamer1/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,14 +0,0 @@ -plugin_in_files = gstreamer1.plugin - -include ../Makefile.plugins - -plugindir = $(libdir)/routermanager/gstreamer1 - -plugin_LTLIBRARIES = libgstreamer1.la - -libgstreamer1_la_SOURCES = \ - gstreamer.c - -libgstreamer1_la_CFLAGS = $(plugin_cflags) $(GSTREAMER1_CFLAGS) -DGST_DISABLE_DEPRECATED -libgstreamer1_la_LDFLAGS = $(plugin_ldflags) -libgstreamer1_la_LIBADD = $(plugin_libadd) $(GSTREAMER1_LIBS) diff -Nru roger-router-1.8.14/libroutermanager/plugins/gstreamer1/Makefile.in roger-router-2.1.6/libroutermanager/plugins/gstreamer1/Makefile.in --- roger-router-1.8.14/libroutermanager/plugins/gstreamer1/Makefile.in 2015-12-10 21:33:44.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/gstreamer1/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,800 +0,0 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2014 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@ - - -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@ -@WIN32_TRUE@am__append_1 = -L$(top_srcdir)/libroutermanager/.libs -lroutermanager -no-undefined -@MACOSX_TRUE@am__append_2 = -L$(top_srcdir)/libroutermanager/.libs -lroutermanager -no-undefined -subdir = libroutermanager/plugins/gstreamer1 -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ - $(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)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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)$(plugindir)" "$(DESTDIR)$(plugindir)" -LTLIBRARIES = $(plugin_LTLIBRARIES) -am__DEPENDENCIES_1 = -am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) -libgstreamer1_la_DEPENDENCIES = $(am__DEPENDENCIES_2) \ - $(am__DEPENDENCIES_1) -am_libgstreamer1_la_OBJECTS = libgstreamer1_la-gstreamer.lo -libgstreamer1_la_OBJECTS = $(am_libgstreamer1_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 = -libgstreamer1_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ - $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ - $(libgstreamer1_la_CFLAGS) $(CFLAGS) \ - $(libgstreamer1_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) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -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 = $(libgstreamer1_la_SOURCES) -DIST_SOURCES = $(libgstreamer1_la_SOURCES) -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -DATA = $(plugin_DATA) -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)` -ETAGS = etags -CTAGS = ctags -am__DIST_COMMON = $(srcdir)/../Makefile.plugins $(srcdir)/Makefile.in \ - $(top_srcdir)/depcomp -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -ALL_LINGUAS = @ALL_LINGUAS@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@ -APPINDICATOR_LIBS = @APPINDICATOR_LIBS@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAPI_CFLAGS = @CAPI_CFLAGS@ -CAPI_LIBS = @CAPI_LIBS@ -CATALOGS = @CATALOGS@ -CATOBJEXT = @CATOBJEXT@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DATADIRNAME = @DATADIRNAME@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -EBOOK_CFLAGS = @EBOOK_CFLAGS@ -EBOOK_LIBS = @EBOOK_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXTRA_CFLAGS = @EXTRA_CFLAGS@ -EXTRA_LIBS = @EXTRA_LIBS@ -FAX_SPOOLER_CFLAGS = @FAX_SPOOLER_CFLAGS@ -FAX_SPOOLER_LIBS = @FAX_SPOOLER_LIBS@ -FGREP = @FGREP@ -GDATA_CFLAGS = @GDATA_CFLAGS@ -GDATA_LIBS = @GDATA_LIBS@ -GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMOFILES = @GMOFILES@ -GMSGFMT = @GMSGFMT@ -GREP = @GREP@ -GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@ -GSTREAMER1_CFLAGS = @GSTREAMER1_CFLAGS@ -GSTREAMER1_LIBS = @GSTREAMER1_LIBS@ -GTK_CFLAGS = @GTK_CFLAGS@ -GTK_LIBS = @GTK_LIBS@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INSTOBJEXT = @INSTOBJEXT@ -INTLLIBS = @INTLLIBS@ -INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ -INTLTOOL_MERGE = @INTLTOOL_MERGE@ -INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ -INTLTOOL_PERL = @INTLTOOL_PERL@ -INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ -INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ -INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ -INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ -INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ -INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ -KWALLET_CFLAGS = @KWALLET_CFLAGS@ -KWALLET_LIBS = @KWALLET_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@ -LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@ -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@ -MKINSTALLDIRS = @MKINSTALLDIRS@ -MSGFMT = @MSGFMT@ -MSGFMT_OPTS = @MSGFMT_OPTS@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OS_CFLAGS = @OS_CFLAGS@ -OS_LIBS = @OS_LIBS@ -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@ -PEAS_CFLAGS = @PEAS_CFLAGS@ -PEAS_GTK_CFLAGS = @PEAS_GTK_CFLAGS@ -PEAS_GTK_LIBS = @PEAS_GTK_LIBS@ -PEAS_LIBS = @PEAS_LIBS@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POFILES = @POFILES@ -PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@ -PORTAUDIO_LIBS = @PORTAUDIO_LIBS@ -POSUB = @POSUB@ -PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ -PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ -PULSEAUDIO_CFLAGS = @PULSEAUDIO_CFLAGS@ -PULSEAUDIO_LIBS = @PULSEAUDIO_LIBS@ -RANLIB = @RANLIB@ -ROGER_VERSION_MAJOR = @ROGER_VERSION_MAJOR@ -ROGER_VERSION_MICRO = @ROGER_VERSION_MICRO@ -ROGER_VERSION_MINOR = @ROGER_VERSION_MINOR@ -SECRET_CFLAGS = @SECRET_CFLAGS@ -SECRET_LIBS = @SECRET_LIBS@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SOUP_CFLAGS = @SOUP_CFLAGS@ -SOUP_LIBS = @SOUP_LIBS@ -SPANDSP_CFLAGS = @SPANDSP_CFLAGS@ -SPANDSP_LIBS = @SPANDSP_LIBS@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -WINDRES = @WINDRES@ -XGETTEXT = @XGETTEXT@ -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@ -found_cc = @found_cc@ -gsettingsschemadir = @gsettingsschemadir@ -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@ -intltool__v_merge_options_ = @intltool__v_merge_options_@ -intltool__v_merge_options_0 = @intltool__v_merge_options_0@ -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@ -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@ -plugin_in_files = gstreamer1.plugin -plugin_DATA = $(plugin_in_files:.plugin.in=.plugin) -CLEANFILES = $(plugin_DATA) -DISTCLEANFILES = $(plugin_DATA) -EXTRA_DIST = $(plugin_in_files).in -AM_CFLAGS = \ - $(PEAS_CFLAGS) \ - $(OS_CFLAGS) \ - -I$(top_srcdir)/ - -plugin_cflags = \ - $(PEAS_CFLAGS) \ - $(OS_CFLAGS) \ - -I$(top_srcdir)/ - -plugin_ldflags = -export-dynamic -no-undefined -avoid-version -module \ - -shared $(PLUGIN_LIBTOOL_FLAGS) $(am__append_1) \ - $(am__append_2) -plugin_libadd = \ - $(PEAS_LIBS) \ - $(OS_LIBS) - -plugindir = $(libdir)/routermanager/gstreamer1 -plugin_LTLIBRARIES = libgstreamer1.la -libgstreamer1_la_SOURCES = \ - gstreamer.c - -libgstreamer1_la_CFLAGS = $(plugin_cflags) $(GSTREAMER1_CFLAGS) -DGST_DISABLE_DEPRECATED -libgstreamer1_la_LDFLAGS = $(plugin_ldflags) -libgstreamer1_la_LIBADD = $(plugin_libadd) $(GSTREAMER1_LIBS) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../Makefile.plugins $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libroutermanager/plugins/gstreamer1/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign libroutermanager/plugins/gstreamer1/Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; -$(srcdir)/../Makefile.plugins $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES) - @$(NORMAL_INSTALL) - @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || 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)$(plugindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(plugindir)" || exit 1; \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(plugindir)'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(plugindir)"; \ - } - -uninstall-pluginLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || list=; \ - for p in $$list; do \ - $(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(plugindir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(plugindir)/$$f"; \ - done - -clean-pluginLTLIBRARIES: - -test -z "$(plugin_LTLIBRARIES)" || rm -f $(plugin_LTLIBRARIES) - @list='$(plugin_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}; \ - } - -libgstreamer1.la: $(libgstreamer1_la_OBJECTS) $(libgstreamer1_la_DEPENDENCIES) $(EXTRA_libgstreamer1_la_DEPENDENCIES) - $(AM_V_CCLD)$(libgstreamer1_la_LINK) -rpath $(plugindir) $(libgstreamer1_la_OBJECTS) $(libgstreamer1_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgstreamer1_la-gstreamer.Plo@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ -@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -libgstreamer1_la-gstreamer.lo: gstreamer.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgstreamer1_la_CFLAGS) $(CFLAGS) -MT libgstreamer1_la-gstreamer.lo -MD -MP -MF $(DEPDIR)/libgstreamer1_la-gstreamer.Tpo -c -o libgstreamer1_la-gstreamer.lo `test -f 'gstreamer.c' || echo '$(srcdir)/'`gstreamer.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgstreamer1_la-gstreamer.Tpo $(DEPDIR)/libgstreamer1_la-gstreamer.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gstreamer.c' object='libgstreamer1_la-gstreamer.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgstreamer1_la_CFLAGS) $(CFLAGS) -c -o libgstreamer1_la-gstreamer.lo `test -f 'gstreamer.c' || echo '$(srcdir)/'`gstreamer.c - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-pluginDATA: $(plugin_DATA) - @$(NORMAL_INSTALL) - @list='$(plugin_DATA)'; test -n "$(plugindir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(plugindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(plugindir)" || 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)$(plugindir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(plugindir)" || exit $$?; \ - done - -uninstall-pluginDATA: - @$(NORMAL_UNINSTALL) - @list='$(plugin_DATA)'; test -n "$(plugindir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(plugindir)'; $(am__uninstall_files_from_dir) - -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-am -TAGS: tags - -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - set x; \ - here=`pwd`; \ - $(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-am - -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" -cscopelist: cscopelist-am - -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 - -distdir: $(DISTFILES) - @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 -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) $(DATA) -installdirs: - for dir in "$(DESTDIR)$(plugindir)" "$(DESTDIR)$(plugindir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -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) - -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." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-pluginLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-pluginDATA install-pluginLTLIBRARIES - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-pluginDATA uninstall-pluginLTLIBRARIES - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-pluginLTLIBRARIES cscopelist-am ctags \ - ctags-am distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir 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-man install-pdf install-pdf-am \ - install-pluginDATA install-pluginLTLIBRARIES install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs 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-pluginDATA uninstall-pluginLTLIBRARIES - -.PRECIOUS: Makefile - -%.plugin: %.plugin.in - $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache - -# 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: diff -Nru roger-router-1.8.14/libroutermanager/plugins/Makefile.am roger-router-2.1.6/libroutermanager/plugins/Makefile.am --- roger-router-1.8.14/libroutermanager/plugins/Makefile.am 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,21 +0,0 @@ -SUBDIRS = fritzbox callmonitor areacodes_global reverselookup webjournal - -if WITH_PULSEAUDIO -SUBDIRS += pulseaudio -endif - -if WITH_PORTAUDIO -SUBDIRS += portaudio -endif - -if WITH_GSTREAMER1 -SUBDIRS += gstreamer1 -endif - -if WITH_SECRET -SUBDIRS += secret -endif - -if WIN32 -SUBDIRS += wincred -endif diff -Nru roger-router-1.8.14/libroutermanager/plugins/Makefile.in roger-router-2.1.6/libroutermanager/plugins/Makefile.in --- roger-router-1.8.14/libroutermanager/plugins/Makefile.in 2015-12-10 21:33:43.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,709 +0,0 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2014 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@ -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_PULSEAUDIO_TRUE@am__append_1 = pulseaudio -@WITH_PORTAUDIO_TRUE@am__append_2 = portaudio -@WITH_GSTREAMER1_TRUE@am__append_3 = gstreamer1 -@WITH_SECRET_TRUE@am__append_4 = secret -@WIN32_TRUE@am__append_5 = wincred -subdir = libroutermanager/plugins -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ - $(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)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -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 = -SOURCES = -DIST_SOURCES = -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 -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 \ - distdir -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)` -ETAGS = etags -CTAGS = ctags -DIST_SUBDIRS = fritzbox callmonitor areacodes_global reverselookup \ - webjournal pulseaudio portaudio gstreamer1 secret wincred -am__DIST_COMMON = $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -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" -ACLOCAL = @ACLOCAL@ -ALL_LINGUAS = @ALL_LINGUAS@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@ -APPINDICATOR_LIBS = @APPINDICATOR_LIBS@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAPI_CFLAGS = @CAPI_CFLAGS@ -CAPI_LIBS = @CAPI_LIBS@ -CATALOGS = @CATALOGS@ -CATOBJEXT = @CATOBJEXT@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DATADIRNAME = @DATADIRNAME@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -EBOOK_CFLAGS = @EBOOK_CFLAGS@ -EBOOK_LIBS = @EBOOK_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXTRA_CFLAGS = @EXTRA_CFLAGS@ -EXTRA_LIBS = @EXTRA_LIBS@ -FAX_SPOOLER_CFLAGS = @FAX_SPOOLER_CFLAGS@ -FAX_SPOOLER_LIBS = @FAX_SPOOLER_LIBS@ -FGREP = @FGREP@ -GDATA_CFLAGS = @GDATA_CFLAGS@ -GDATA_LIBS = @GDATA_LIBS@ -GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMOFILES = @GMOFILES@ -GMSGFMT = @GMSGFMT@ -GREP = @GREP@ -GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@ -GSTREAMER1_CFLAGS = @GSTREAMER1_CFLAGS@ -GSTREAMER1_LIBS = @GSTREAMER1_LIBS@ -GTK_CFLAGS = @GTK_CFLAGS@ -GTK_LIBS = @GTK_LIBS@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INSTOBJEXT = @INSTOBJEXT@ -INTLLIBS = @INTLLIBS@ -INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ -INTLTOOL_MERGE = @INTLTOOL_MERGE@ -INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ -INTLTOOL_PERL = @INTLTOOL_PERL@ -INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ -INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ -INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ -INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ -INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ -INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ -KWALLET_CFLAGS = @KWALLET_CFLAGS@ -KWALLET_LIBS = @KWALLET_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@ -LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@ -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@ -MKINSTALLDIRS = @MKINSTALLDIRS@ -MSGFMT = @MSGFMT@ -MSGFMT_OPTS = @MSGFMT_OPTS@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OS_CFLAGS = @OS_CFLAGS@ -OS_LIBS = @OS_LIBS@ -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@ -PEAS_CFLAGS = @PEAS_CFLAGS@ -PEAS_GTK_CFLAGS = @PEAS_GTK_CFLAGS@ -PEAS_GTK_LIBS = @PEAS_GTK_LIBS@ -PEAS_LIBS = @PEAS_LIBS@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POFILES = @POFILES@ -PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@ -PORTAUDIO_LIBS = @PORTAUDIO_LIBS@ -POSUB = @POSUB@ -PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ -PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ -PULSEAUDIO_CFLAGS = @PULSEAUDIO_CFLAGS@ -PULSEAUDIO_LIBS = @PULSEAUDIO_LIBS@ -RANLIB = @RANLIB@ -ROGER_VERSION_MAJOR = @ROGER_VERSION_MAJOR@ -ROGER_VERSION_MICRO = @ROGER_VERSION_MICRO@ -ROGER_VERSION_MINOR = @ROGER_VERSION_MINOR@ -SECRET_CFLAGS = @SECRET_CFLAGS@ -SECRET_LIBS = @SECRET_LIBS@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SOUP_CFLAGS = @SOUP_CFLAGS@ -SOUP_LIBS = @SOUP_LIBS@ -SPANDSP_CFLAGS = @SPANDSP_CFLAGS@ -SPANDSP_LIBS = @SPANDSP_LIBS@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -WINDRES = @WINDRES@ -XGETTEXT = @XGETTEXT@ -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@ -found_cc = @found_cc@ -gsettingsschemadir = @gsettingsschemadir@ -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@ -intltool__v_merge_options_ = @intltool__v_merge_options_@ -intltool__v_merge_options_0 = @intltool__v_merge_options_0@ -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@ -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@ -SUBDIRS = fritzbox callmonitor areacodes_global reverselookup \ - webjournal $(am__append_1) $(am__append_2) $(am__append_3) \ - $(am__append_4) $(am__append_5) -all: all-recursive - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libroutermanager/plugins/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign libroutermanager/plugins/Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -# 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" -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 - -distdir: $(DISTFILES) - @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 -check-am: all-am -check: check-recursive -all-am: Makefile -installdirs: installdirs-recursive -installdirs-am: -install: install-recursive -install-exec: 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: - -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) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-recursive - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-recursive - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -html-am: - -info: info-recursive - -info-am: - -install-data-am: - -install-dvi: install-dvi-recursive - -install-dvi-am: - -install-exec-am: - -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 Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: - -.MAKE: $(am__recursive_targets) install-am install-strip - -.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ - check-am clean clean-generic clean-libtool cscopelist-am ctags \ - ctags-am distclean distclean-generic distclean-libtool \ - distclean-tags distdir 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-man \ - install-pdf install-pdf-am install-ps install-ps-am \ - install-strip installcheck installcheck-am installdirs \ - installdirs-am maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags tags-am uninstall uninstall-am - -.PRECIOUS: Makefile - - -# 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: diff -Nru roger-router-1.8.14/libroutermanager/plugins/Makefile.plugins roger-router-2.1.6/libroutermanager/plugins/Makefile.plugins --- roger-router-1.8.14/libroutermanager/plugins/Makefile.plugins 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/Makefile.plugins 1970-01-01 00:00:00.000000000 +0000 @@ -1,38 +0,0 @@ -%.plugin: %.plugin.in - $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache - -plugin_DATA = $(plugin_in_files:.plugin.in=.plugin) - -CLEANFILES = $(plugin_DATA) -DISTCLEANFILES = $(plugin_DATA) -EXTRA_DIST = $(plugin_in_files).in - -AM_CFLAGS = \ - $(PEAS_CFLAGS) \ - $(OS_CFLAGS) \ - -I$(top_srcdir)/ - -plugin_cflags = \ - $(PEAS_CFLAGS) \ - $(OS_CFLAGS) \ - -I$(top_srcdir)/ - -plugin_ldflags = \ - -export-dynamic \ - -no-undefined \ - -avoid-version \ - -module \ - -shared \ - $(PLUGIN_LIBTOOL_FLAGS) - -plugin_libadd = \ - $(PEAS_LIBS) \ - $(OS_LIBS) - -if WIN32 -plugin_ldflags += -L$(top_srcdir)/libroutermanager/.libs -lroutermanager -no-undefined -endif - -if MACOSX -plugin_ldflags += -L$(top_srcdir)/libroutermanager/.libs -lroutermanager -no-undefined -endif diff -Nru roger-router-1.8.14/libroutermanager/plugins/portaudio/Makefile.am roger-router-2.1.6/libroutermanager/plugins/portaudio/Makefile.am --- roger-router-1.8.14/libroutermanager/plugins/portaudio/Makefile.am 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/portaudio/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,14 +0,0 @@ -plugin_in_files = portaudio.plugin - -include ../Makefile.plugins - -plugindir = $(libdir)/routermanager/portaudio - -plugin_LTLIBRARIES = libportaudio.la - -libportaudio_la_SOURCES = \ - portaudio.c - -libportaudio_la_CFLAGS = $(plugin_cflags) -libportaudio_la_LDFLAGS = $(plugin_ldflags) -libportaudio_la_LIBADD = $(plugin_libadd) $(PORTAUDIO_LIBS) diff -Nru roger-router-1.8.14/libroutermanager/plugins/portaudio/Makefile.in roger-router-2.1.6/libroutermanager/plugins/portaudio/Makefile.in --- roger-router-1.8.14/libroutermanager/plugins/portaudio/Makefile.in 2015-12-10 21:33:44.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/portaudio/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,800 +0,0 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2014 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@ - - -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@ -@WIN32_TRUE@am__append_1 = -L$(top_srcdir)/libroutermanager/.libs -lroutermanager -no-undefined -@MACOSX_TRUE@am__append_2 = -L$(top_srcdir)/libroutermanager/.libs -lroutermanager -no-undefined -subdir = libroutermanager/plugins/portaudio -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ - $(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)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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)$(plugindir)" "$(DESTDIR)$(plugindir)" -LTLIBRARIES = $(plugin_LTLIBRARIES) -am__DEPENDENCIES_1 = -am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) -libportaudio_la_DEPENDENCIES = $(am__DEPENDENCIES_2) \ - $(am__DEPENDENCIES_1) -am_libportaudio_la_OBJECTS = libportaudio_la-portaudio.lo -libportaudio_la_OBJECTS = $(am_libportaudio_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 = -libportaudio_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ - $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ - $(libportaudio_la_CFLAGS) $(CFLAGS) $(libportaudio_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) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -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 = $(libportaudio_la_SOURCES) -DIST_SOURCES = $(libportaudio_la_SOURCES) -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -DATA = $(plugin_DATA) -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)` -ETAGS = etags -CTAGS = ctags -am__DIST_COMMON = $(srcdir)/../Makefile.plugins $(srcdir)/Makefile.in \ - $(top_srcdir)/depcomp -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -ALL_LINGUAS = @ALL_LINGUAS@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@ -APPINDICATOR_LIBS = @APPINDICATOR_LIBS@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAPI_CFLAGS = @CAPI_CFLAGS@ -CAPI_LIBS = @CAPI_LIBS@ -CATALOGS = @CATALOGS@ -CATOBJEXT = @CATOBJEXT@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DATADIRNAME = @DATADIRNAME@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -EBOOK_CFLAGS = @EBOOK_CFLAGS@ -EBOOK_LIBS = @EBOOK_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXTRA_CFLAGS = @EXTRA_CFLAGS@ -EXTRA_LIBS = @EXTRA_LIBS@ -FAX_SPOOLER_CFLAGS = @FAX_SPOOLER_CFLAGS@ -FAX_SPOOLER_LIBS = @FAX_SPOOLER_LIBS@ -FGREP = @FGREP@ -GDATA_CFLAGS = @GDATA_CFLAGS@ -GDATA_LIBS = @GDATA_LIBS@ -GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMOFILES = @GMOFILES@ -GMSGFMT = @GMSGFMT@ -GREP = @GREP@ -GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@ -GSTREAMER1_CFLAGS = @GSTREAMER1_CFLAGS@ -GSTREAMER1_LIBS = @GSTREAMER1_LIBS@ -GTK_CFLAGS = @GTK_CFLAGS@ -GTK_LIBS = @GTK_LIBS@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INSTOBJEXT = @INSTOBJEXT@ -INTLLIBS = @INTLLIBS@ -INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ -INTLTOOL_MERGE = @INTLTOOL_MERGE@ -INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ -INTLTOOL_PERL = @INTLTOOL_PERL@ -INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ -INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ -INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ -INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ -INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ -INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ -KWALLET_CFLAGS = @KWALLET_CFLAGS@ -KWALLET_LIBS = @KWALLET_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@ -LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@ -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@ -MKINSTALLDIRS = @MKINSTALLDIRS@ -MSGFMT = @MSGFMT@ -MSGFMT_OPTS = @MSGFMT_OPTS@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OS_CFLAGS = @OS_CFLAGS@ -OS_LIBS = @OS_LIBS@ -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@ -PEAS_CFLAGS = @PEAS_CFLAGS@ -PEAS_GTK_CFLAGS = @PEAS_GTK_CFLAGS@ -PEAS_GTK_LIBS = @PEAS_GTK_LIBS@ -PEAS_LIBS = @PEAS_LIBS@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POFILES = @POFILES@ -PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@ -PORTAUDIO_LIBS = @PORTAUDIO_LIBS@ -POSUB = @POSUB@ -PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ -PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ -PULSEAUDIO_CFLAGS = @PULSEAUDIO_CFLAGS@ -PULSEAUDIO_LIBS = @PULSEAUDIO_LIBS@ -RANLIB = @RANLIB@ -ROGER_VERSION_MAJOR = @ROGER_VERSION_MAJOR@ -ROGER_VERSION_MICRO = @ROGER_VERSION_MICRO@ -ROGER_VERSION_MINOR = @ROGER_VERSION_MINOR@ -SECRET_CFLAGS = @SECRET_CFLAGS@ -SECRET_LIBS = @SECRET_LIBS@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SOUP_CFLAGS = @SOUP_CFLAGS@ -SOUP_LIBS = @SOUP_LIBS@ -SPANDSP_CFLAGS = @SPANDSP_CFLAGS@ -SPANDSP_LIBS = @SPANDSP_LIBS@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -WINDRES = @WINDRES@ -XGETTEXT = @XGETTEXT@ -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@ -found_cc = @found_cc@ -gsettingsschemadir = @gsettingsschemadir@ -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@ -intltool__v_merge_options_ = @intltool__v_merge_options_@ -intltool__v_merge_options_0 = @intltool__v_merge_options_0@ -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@ -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@ -plugin_in_files = portaudio.plugin -plugin_DATA = $(plugin_in_files:.plugin.in=.plugin) -CLEANFILES = $(plugin_DATA) -DISTCLEANFILES = $(plugin_DATA) -EXTRA_DIST = $(plugin_in_files).in -AM_CFLAGS = \ - $(PEAS_CFLAGS) \ - $(OS_CFLAGS) \ - -I$(top_srcdir)/ - -plugin_cflags = \ - $(PEAS_CFLAGS) \ - $(OS_CFLAGS) \ - -I$(top_srcdir)/ - -plugin_ldflags = -export-dynamic -no-undefined -avoid-version -module \ - -shared $(PLUGIN_LIBTOOL_FLAGS) $(am__append_1) \ - $(am__append_2) -plugin_libadd = \ - $(PEAS_LIBS) \ - $(OS_LIBS) - -plugindir = $(libdir)/routermanager/portaudio -plugin_LTLIBRARIES = libportaudio.la -libportaudio_la_SOURCES = \ - portaudio.c - -libportaudio_la_CFLAGS = $(plugin_cflags) -libportaudio_la_LDFLAGS = $(plugin_ldflags) -libportaudio_la_LIBADD = $(plugin_libadd) $(PORTAUDIO_LIBS) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../Makefile.plugins $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libroutermanager/plugins/portaudio/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign libroutermanager/plugins/portaudio/Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; -$(srcdir)/../Makefile.plugins $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES) - @$(NORMAL_INSTALL) - @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || 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)$(plugindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(plugindir)" || exit 1; \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(plugindir)'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(plugindir)"; \ - } - -uninstall-pluginLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || list=; \ - for p in $$list; do \ - $(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(plugindir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(plugindir)/$$f"; \ - done - -clean-pluginLTLIBRARIES: - -test -z "$(plugin_LTLIBRARIES)" || rm -f $(plugin_LTLIBRARIES) - @list='$(plugin_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}; \ - } - -libportaudio.la: $(libportaudio_la_OBJECTS) $(libportaudio_la_DEPENDENCIES) $(EXTRA_libportaudio_la_DEPENDENCIES) - $(AM_V_CCLD)$(libportaudio_la_LINK) -rpath $(plugindir) $(libportaudio_la_OBJECTS) $(libportaudio_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libportaudio_la-portaudio.Plo@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ -@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -libportaudio_la-portaudio.lo: portaudio.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libportaudio_la_CFLAGS) $(CFLAGS) -MT libportaudio_la-portaudio.lo -MD -MP -MF $(DEPDIR)/libportaudio_la-portaudio.Tpo -c -o libportaudio_la-portaudio.lo `test -f 'portaudio.c' || echo '$(srcdir)/'`portaudio.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libportaudio_la-portaudio.Tpo $(DEPDIR)/libportaudio_la-portaudio.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='portaudio.c' object='libportaudio_la-portaudio.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libportaudio_la_CFLAGS) $(CFLAGS) -c -o libportaudio_la-portaudio.lo `test -f 'portaudio.c' || echo '$(srcdir)/'`portaudio.c - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-pluginDATA: $(plugin_DATA) - @$(NORMAL_INSTALL) - @list='$(plugin_DATA)'; test -n "$(plugindir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(plugindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(plugindir)" || 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)$(plugindir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(plugindir)" || exit $$?; \ - done - -uninstall-pluginDATA: - @$(NORMAL_UNINSTALL) - @list='$(plugin_DATA)'; test -n "$(plugindir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(plugindir)'; $(am__uninstall_files_from_dir) - -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-am -TAGS: tags - -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - set x; \ - here=`pwd`; \ - $(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-am - -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" -cscopelist: cscopelist-am - -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 - -distdir: $(DISTFILES) - @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 -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) $(DATA) -installdirs: - for dir in "$(DESTDIR)$(plugindir)" "$(DESTDIR)$(plugindir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -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) - -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." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-pluginLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-pluginDATA install-pluginLTLIBRARIES - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-pluginDATA uninstall-pluginLTLIBRARIES - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-pluginLTLIBRARIES cscopelist-am ctags \ - ctags-am distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir 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-man install-pdf install-pdf-am \ - install-pluginDATA install-pluginLTLIBRARIES install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs 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-pluginDATA uninstall-pluginLTLIBRARIES - -.PRECIOUS: Makefile - -%.plugin: %.plugin.in - $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache - -# 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: diff -Nru roger-router-1.8.14/libroutermanager/plugins/portaudio/portaudio.c roger-router-2.1.6/libroutermanager/plugins/portaudio/portaudio.c --- roger-router-1.8.14/libroutermanager/plugins/portaudio/portaudio.c 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/portaudio/portaudio.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,864 +0,0 @@ -/** - * Parts are based upon pablio.c: - * - * Portable Audio Blocking Input/Output utility. - * - * Author: Phil Burk, http://www.softsynth.com - * - * This program uses the PortAudio Portable Audio Library. - * For more information see: http://www.portaudio.com - * Copyright (c) 1999-2000 Ross Bencina and Phil Burk - * - * 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 -#include -#include - -#include -#include -#include -#include - -#define ROUTERMANAGER_TYPE_PORTAUDIO_PLUGIN (routermanager_portaudio_plugin_get_type()) -#define ROUTERMANAGER_PORTAUDIO_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST((o), ROUTERMANAGER_TYPE_PORTAUDIO_PLUGIN, RouterManagerPortAudioPlugin)) - -typedef struct { - guint id; -} RouterManagerPortAudioPluginPrivate; - -ROUTERMANAGER_PLUGIN_REGISTER(ROUTERMANAGER_TYPE_PORTAUDIO_PLUGIN, RouterManagerPortAudioPlugin, routermanager_portaudio_plugin) - -/* Does not work at the moment */ -#define USE_SPEEX 1 - -/** predefined backup values */ -static gint port_channels = 1; -static gint port_sample_rate = 8000; -static gint port_bits_per_sample = 16; - -#if defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(__i686__) || defined(__x86_64__) -#define pa_util_read_memory_barrier() __asm__ volatile("lfence":::"memory") -#define pa_util_write_memory_barrier() __asm__ volatile("sfence":::"memory") -#else -#define pa_util_read_memory_barrier() -#define pa_util_write_memory_barrier() -#endif - -#ifdef USE_SPEEX -#include -#include -#endif - -#define FRAME_SIZE 160 - -struct pa_util_ring_buffer { - long buffer_size; - long write_index; - long read_index; - long big_mask; - long small_mask; - char *buffer; -}; - -typedef struct pa_util_ring_buffer pa_util_ring_buffer; - -struct port_private { - PaStream *in_stream; - PaStream *out_stream; - pa_util_ring_buffer out_fifo; - pa_util_ring_buffer in_fifo; - pa_util_ring_buffer echo_fifo; - int bytes_per_frame; -#ifdef USE_SPEEX - SpeexEchoState *echo_state; - SpeexPreprocessState *preprocess_state; -#endif -}; - -/** - * \brief Clear buffer - * \param buffer ring buffer structure - */ -void pa_util_flush_ring_buffer(pa_util_ring_buffer *ring_buffer) -{ - ring_buffer->write_index = ring_buffer->read_index = 0; -} - -/** - * \brief Initialize ring buffer - * \param buffer ring buffer structure - * \param bytes buffer size, must be power of 2 - * \param data allocated buffer - * \return 0 on success, otherwise error - */ -long pa_util_initialize_ring_buffer(pa_util_ring_buffer *ring_buffer, long bytes, void *data) -{ - if (((bytes - 1) & bytes) != 0) { - g_warning("Size not power of 2"); - return -1; - } - - ring_buffer->buffer_size = bytes; - ring_buffer->buffer = (char *) data; - pa_util_flush_ring_buffer(ring_buffer); - - ring_buffer->big_mask = (bytes * 2) - 1; - ring_buffer->small_mask = (bytes) - 1; - - return 0; -} - -/** - * \brief Return number of bytes available for reading - * \param buffer ring buffer structure - * \return available size in bytes - */ -long pa_util_get_ring_buffer_read_available(pa_util_ring_buffer *ring_buffer) -{ - pa_util_read_memory_barrier(); - - return ((ring_buffer->write_index - ring_buffer->read_index) & ring_buffer->big_mask); -} - -/** - * \brief Return number of bytes available for writing - * \param buffer ring buffer structure - * \return available size in bytes - */ -long pa_util_get_ring_buffer_write_available(pa_util_ring_buffer *ring_buffer) -{ - return (ring_buffer->buffer_size - pa_util_get_ring_buffer_read_available(ring_buffer)); -} - -/** - * \brief Get address of region(s) to which we can write data - * \param buffer ring buffer structure - * \param bytes length of data - * \param data_ptr1 first data pointer - * \param size_ptr1 first data pointer length - * \param data_ptr2 second data pointer - * \param size_ptr2 second data pointer length - * \return room available to be written - */ -long pa_util_get_ring_buffer_write_regions(pa_util_ring_buffer *ring_buffer, long bytes, void **data_ptr1, long *size_ptr1, void **data_ptr2, long *size_ptr2) -{ - long index; - long available = pa_util_get_ring_buffer_write_available(ring_buffer); - - if (bytes > available) { - bytes = available; - } - - /* Check to see if write is not contiguous */ - index = ring_buffer->write_index & ring_buffer->small_mask; - - if ((index + bytes) > ring_buffer->buffer_size) { - /* Write data in two blocks that wrap the buffer */ - long first_half = ring_buffer->buffer_size - index; - - *data_ptr1 = &ring_buffer->buffer[index]; - *size_ptr1 = first_half; - *data_ptr2 = &ring_buffer->buffer[0]; - *size_ptr2 = bytes - first_half; - } else { - *data_ptr1 = &ring_buffer->buffer[index]; - *size_ptr1 = bytes; - *data_ptr2 = NULL; - *size_ptr2 = 0; - } - - return bytes; -} - -/** - * \brief Get address of region(s) to which we can read data - * \param buffer ring buffer structure - * \param bytes length of data - * \param data_ptr1 first data pointer - * \param size_ptr1 first data pointer length - * \param data_ptr2 second data pointer - * \param size_ptr2 second data pointer length - * \return room available to be read - */ -long pa_util_get_ring_buffer_read_regions(pa_util_ring_buffer *ring_buffer, long bytes, void **data_ptr1, long *size_ptr1, void **data_ptr2, long *size_ptr2) -{ - long index; - long available = pa_util_get_ring_buffer_read_available(ring_buffer); - - if (bytes > available) { - bytes = available; - } - - /* Check to see if write is not contiguous */ - index = ring_buffer->read_index & ring_buffer->small_mask; - - if ((index + bytes) > ring_buffer->buffer_size) { - /* Write data in two blocks that wrap the buffer */ - long first_half = ring_buffer->buffer_size - index; - - *data_ptr1 = &ring_buffer->buffer[index]; - *size_ptr1 = first_half; - *data_ptr2 = &ring_buffer->buffer[0]; - *size_ptr2 = bytes - first_half; - } else { - *data_ptr1 = &ring_buffer->buffer[index]; - *size_ptr1 = bytes; - *data_ptr2 = NULL; - *size_ptr2 = 0; - } - - return bytes; -} - -/** - * \brief Advance write index - * \param buffer ring buffer structure - * \param bytes number of bytes - * \return new write index - */ -long pa_util_advance_ring_buffer_write_index(pa_util_ring_buffer *ring_buffer, long bytes) -{ - pa_util_write_memory_barrier(); - - return ring_buffer->write_index = (ring_buffer->write_index + bytes) & ring_buffer->big_mask; -} - -/** - * \brief Advance read index - * \param buffer ring buffer structure - * \param bytes number of bytes - * \return new read index - */ -long pa_util_advance_ring_buffer_read_index(pa_util_ring_buffer *ring_buffer, long bytes) -{ - pa_util_write_memory_barrier(); - - return ring_buffer->read_index = (ring_buffer->read_index + bytes) & ring_buffer->big_mask; -} - -/** - * \brief Write to ring buffer - * \param buffer ring buffer structure - * \param data data that needs to be written - * \param bytes length of data - * \return number of written bytes - */ -long pa_util_write_ring_buffer(pa_util_ring_buffer *ring_buffer, const void *data, long bytes) -{ - long size1; - long size2; - long written; - void *data1; - void *data2; - - written = pa_util_get_ring_buffer_write_regions(ring_buffer, bytes, &data1, &size1, &data2, &size2); - if (size2 > 0) { - memcpy(data1, data, size1); - data = ((char *) data) + size1; - memcpy(data2, data, size2); - } else { - memcpy(data1, data, size1); - } - - pa_util_advance_ring_buffer_write_index(ring_buffer, written); - - return written; -} - -/** - * \brief Read from ring buffer - * \param buffer ring buffer structure - * \param data data that needs to be written - * \param bytes length of data - * \return number of read bytes - */ -long pa_util_read_ring_buffer(pa_util_ring_buffer *ring_buffer, void *data, long bytes) -{ - long size1; - long size2; - long read; - void *data1; - void *data2; - - read = pa_util_get_ring_buffer_read_regions(ring_buffer, bytes, &data1, &size1, &data2, &size2); - if (size2 > 0) { - memcpy(data, data1, size1); - data = ((char *) data) + size1; - memcpy(data, data2, size2); - } else { - memcpy(data, data1, size1); - } - - pa_util_advance_ring_buffer_read_index(ring_buffer, read); - - return read; -} - -/** - * \brief Detect supported audio devices - * \return 0 - */ -static GSList *port_audio_detect_devices(void) -{ - GSList *list = NULL; - struct audio_device *device; - gint num_devices; - gint index; - const PaDeviceInfo *info; - - Pa_Initialize(); - - num_devices = Pa_GetDeviceCount(); - - for (index = 0; index < num_devices; index++) { - info = Pa_GetDeviceInfo(index); - - if (info->maxOutputChannels > 0) { - device = g_slice_new0(struct audio_device); - device->internal_name = g_strdup(info->name); - device->name = g_strdup(info->name); - device->type = AUDIO_OUTPUT; - list = g_slist_prepend(list, device); - } - - if (info->maxInputChannels > 0) { - device = g_slice_new0(struct audio_device); - device->internal_name = g_strdup(info->name); - device->name = g_strdup(info->name); - device->type = AUDIO_INPUT; - list = g_slist_prepend(list, device); - } - } - - return list; -} - -/** - * \brief Initialize audio device - * \param channels number of channels - * \param sample_rate sample rate - * \param bits_per_sample number of bits per samplerate - * \return TRUE on success, otherwise error - */ -static int port_audio_init(unsigned char channels, unsigned short sample_rate, unsigned char bits_per_sample) -{ - Pa_Initialize(); - - /* TODO: Check if configuration is valid and usable */ - port_channels = channels; - port_sample_rate = sample_rate; - port_bits_per_sample = bits_per_sample; - - return 0; -} - -/** - * \brief Perform echo cancellation - process input buffer with exitisting output buffer - * \param private private data structure - * \param input_buffer audio input buffer - * \param samples number of samples - * \return -1 if we have no existing output buffer, or 0 on success - */ -int echo_cancellation(struct port_private *private, short *input_buffer, int samples) -{ -#ifdef USE_SPEEX - short delayed[FRAME_SIZE]; - short cancelled[FRAME_SIZE]; - int speaking; - - /* If we have no existing output buffer, exit */ - if (pa_util_get_ring_buffer_read_available(&private->echo_fifo) < 2 * 160) { - return -1; - } - - /* Read output buffer from echo fifo */ - pa_util_read_ring_buffer(&private->echo_fifo, delayed, 2 * 160); - - /* Perform echo cancellation */ - speex_echo_cancellation(private->echo_state, input_buffer, delayed, cancelled); - - /* Overwrite input buffer with cancelled frame */ - memcpy(input_buffer, cancelled, samples * sizeof(short)); - - /* Further preprocessing - e.g. advanced echo cancellation, VAG, AGC, redux */ - speaking = speex_preprocess_run(private->preprocess_state, input_buffer); - if (!speaking) { - memset(input_buffer, 0, samples * sizeof(short)); - } -#endif - - return 0; -} - -/** - * \brief Main audio callback system - called whenever we have an audio frame to process - * \param input_buffer input buffer if it exist - * \param output_buffer output buffer if it exist - * \param frames_per_buffer number of frames per buffer - * \param time_info additional time information - * \param statusFlags status flags - * \param user_data pointer to private data structure - * \return 0 - */ -static int audio_cb(const void *input_buffer, void *output_buffer, unsigned long frames_per_buffer, const PaStreamCallbackTimeInfo *time_info, PaStreamCallbackFlags statusFlags, void *user_data) -{ - struct port_private *private = user_data; - long bytes = private->bytes_per_frame * frames_per_buffer; - int ret = 0; - - if (output_buffer != NULL) { - int index; - int numRead = pa_util_read_ring_buffer(&private->out_fifo, output_buffer, bytes); - - for (index = numRead; index < bytes; index++) { - ((char *) output_buffer)[index] = 0; - } - -#ifdef USE_SPEEX - /* Write it to echo fifo */ - pa_util_write_ring_buffer(&private->echo_fifo, output_buffer, bytes); -#endif - } - - if (input_buffer != NULL) { - /* Call echo cancellation */ - ret = echo_cancellation(private, (short *) input_buffer, frames_per_buffer); - - if (ret == 0) { - /* If we have a valid frame, write it to the input fifo */ - int numRead = pa_util_write_ring_buffer(&private->in_fifo, input_buffer, bytes); - - if (numRead != bytes) { - pa_util_flush_ring_buffer(&private->in_fifo); - pa_util_write_ring_buffer(&private->in_fifo, input_buffer, bytes); - } - } - } - - return 0; -} - -/** - * \brief Initialize fifo - allocate ring buffer size and initialize it - * \param buffer ring buffer we need to setup - * \param frames number of frames - * \param bytes_per_frame bytes per frame - */ -PaError init_fifo(pa_util_ring_buffer *ring_buffer, long frames, long bytes_per_frame) -{ - /* Calculate whole size in bytes */ - long bytes = frames * bytes_per_frame; - char *buffer = g_malloc0(bytes); - - if (buffer == NULL) { - return paInsufficientMemory; - } - - return (PaError) pa_util_initialize_ring_buffer(ring_buffer, bytes, buffer); -} - -/** - * \brief Terminate fifo - * \param buffer ring buffer pointer - */ -PaError term_fifo(pa_util_ring_buffer *buffer) -{ - if (buffer && buffer->buffer) { - g_free(buffer->buffer); - } - - buffer->buffer = NULL; - - return paNoError; -} - -/** - * \brief Round number to next power of 2 - * \param n number - * \return power of 2 - */ -unsigned long RoundUpToNextPowerOf2(unsigned long n) -{ - long bits = 0; - - if (((n - 1) & n) == 0) { - return n; - } - - while (n > 0) { - n = n >> 1; - bits++; - } - - return (1 << bits); -} - -/** - * \brief Stop and remove pipeline - * \param priv private data - * \return error code - */ -int port_audio_close(void *priv) -{ - struct port_private *private = priv; - //int bytesEmpty; - - if (private == NULL) { - return 0; - } - - g_debug("now out stream.."); - if (private->out_stream) { - /*int nByteSize = private->out_fifo.buffer_size; - - if (nByteSize > 0) { - bytesEmpty = pa_util_get_ring_buffer_write_available(&private->out_fifo); - - while (bytesEmpty < nByteSize) { - Pa_Sleep(10); - bytesEmpty = pa_util_get_ring_buffer_write_available(&private->out_fifo); - } - }*/ - - if (!Pa_IsStreamStopped(private->out_stream)) { - Pa_AbortStream(private->out_stream); - } - Pa_CloseStream(private->out_stream); - - private->out_stream = NULL; - - term_fifo(&private->out_fifo); - } - g_debug("now in stream.."); - - if (private->in_stream) { - g_debug("Check Pa_IsStreamStopped()"); - if (!Pa_IsStreamStopped(private->in_stream)) { - g_debug("Pa_AbortStream()"); - Pa_AbortStream(private->in_stream); - } - - g_debug("Pa_CloseStream()"); - Pa_CloseStream(private->in_stream); - private->in_stream = NULL; - - g_debug("term_fifo()"); - term_fifo(&private->in_fifo); - } - -#ifdef USE_SPEEX - g_debug("kill speex"); - - if (private->preprocess_state) { - speex_preprocess_state_destroy(private->preprocess_state); - private->preprocess_state = NULL; - } - if (private->echo_state) { - speex_echo_state_destroy(private->echo_state); - private->echo_state = NULL; - } -#endif - g_debug("end"); - g_free(private); - - return 0; -} - -/** - * \brief Open audio device - * \return private data or NULL on error - */ -static void *port_audio_open(void) -{ - struct port_private *private = g_malloc(sizeof(struct port_private)); - PaStreamParameters output_parameters; - PaStreamParameters input_parameters; - PaError err; - struct profile *profile = profile_get_active(); - const gchar *playback = g_settings_get_string(profile->settings, "audio-output"); - const gchar *capture = g_settings_get_string(profile->settings, "audio-input"); - const PaDeviceInfo *info; - int num_devices = Pa_GetDeviceCount(); - int index; - - if (private == NULL) { - return private; - } - memset(private, 0, sizeof(struct port_private)); - - index = num_devices; - if (playback != NULL) { - for (index = 0; index < num_devices; index++) { - info = Pa_GetDeviceInfo(index); - - if ((info->maxOutputChannels > 0) && !strcmp(info->name, playback)) { - g_debug("Settings wants output device: %d:%s (channels: %d)", index, playback, info->maxOutputChannels); - break; - } - } - } - - if (index >= num_devices) { - index = Pa_GetDefaultOutputDevice(); - info = Pa_GetDeviceInfo(index); - if (info) { - g_debug("Settings wants output device: %s (channels: %d)", playback, info->maxOutputChannels); - g_debug("Device can not be found, so we are using the systems default device: %d:%s", index, info->name); - } - } - - private->bytes_per_frame = 2; - - int num_frames = RoundUpToNextPowerOf2(FRAME_SIZE * 10); - -#ifdef USE_SPEEX - /* Maximum attenuation of residual echo in dB (negative number) */ -#define ECHO_SUPPRESS -60 - /* Maximum attenuation of residual echo when near end is active, in dB (negative number) */ -#define ECHO_SUPPRESS_ACTIVE -60 - - int nTmp; - - /* Echo canceller with 20ms tail length */ - private->echo_state = speex_echo_state_init(FRAME_SIZE, 512); - private->preprocess_state = speex_preprocess_state_init(FRAME_SIZE, port_sample_rate); - - speex_preprocess_ctl(private->preprocess_state, SPEEX_PREPROCESS_SET_ECHO_STATE, private->echo_state); - nTmp = ECHO_SUPPRESS; - speex_preprocess_ctl(private->preprocess_state, SPEEX_PREPROCESS_SET_ECHO_SUPPRESS, &nTmp); - nTmp = ECHO_SUPPRESS_ACTIVE; - speex_preprocess_ctl(private->preprocess_state, SPEEX_PREPROCESS_SET_ECHO_SUPPRESS_ACTIVE, &nTmp); - - /* Enable denoising */ - nTmp = 1; - speex_preprocess_ctl(private->preprocess_state, SPEEX_PREPROCESS_SET_DENOISE, &nTmp); - - /* Enable Automatic Gain Control */ - nTmp = 1; - speex_preprocess_ctl(private->preprocess_state, SPEEX_PREPROCESS_SET_AGC, &nTmp); - - /* Set AGC increment */ - nTmp = 12; - speex_preprocess_ctl(private->preprocess_state, SPEEX_PREPROCESS_SET_AGC_INCREMENT, &nTmp); - /* Set AGC decrement */ - nTmp = -40; - speex_preprocess_ctl(private->preprocess_state, SPEEX_PREPROCESS_SET_AGC_DECREMENT, &nTmp); - - /* Enable Voice Activity Detection */ - //nTmp = 1; - //speex_preprocess_ctl(private->preprocess_state, SPEEX_PREPROCESS_SET_VAD, &nTmp); - - /* Enable reverberation removal */ - nTmp = 1; - speex_preprocess_ctl(private->preprocess_state, SPEEX_PREPROCESS_SET_DEREVERB, &nTmp); -#if 0 - /*nTmp = 35; - speex_preprocess_ctl(private->preprocess_state, SPEEX_PREPROCESS_SET_PROB_START, &nTmp); - nTmp = 20; - speex_preprocess_ctl(private->preprocess_state, SPEEX_PREPROCESS_SET_PROB_CONTINUE, &nTmp);*/ -#endif - - err = init_fifo(&private->echo_fifo, num_frames, private->bytes_per_frame); - if (err) { - g_debug("Could not init echo fifo"); - port_audio_close(private); - - return NULL; - } -#endif - - g_debug("sample rate: %d, channels: %d", port_sample_rate, port_channels); - output_parameters.device = index; - output_parameters.channelCount = port_channels; - output_parameters.sampleFormat = paInt16; - output_parameters.hostApiSpecificStreamInfo = NULL; - output_parameters.suggestedLatency = Pa_GetDeviceInfo(output_parameters.device)->defaultLowOutputLatency; - - err = init_fifo(&private->out_fifo, num_frames, private->bytes_per_frame); - if (err) { - g_debug("Could not init output fifo"); - port_audio_close(private); - - return NULL; - } - - err = Pa_OpenStream(&private->out_stream, NULL, &output_parameters, port_sample_rate, FRAME_SIZE, paClipOff, &audio_cb, private); - if (err == paNoError) { - Pa_StartStream(private->out_stream); - } else { - g_warning("Sorry, could not open output stream (%s)", Pa_GetErrorText(err)); - port_audio_close(private); - - return NULL; - } - - index = num_devices; - if (capture != NULL) { - for (index = 0; index < num_devices; index++) { - info = Pa_GetDeviceInfo(index); - - if ((info->maxInputChannels > 0) && !strcmp(info->name, capture)) { - g_debug("Settings wants input device: %d:%s", index, capture); - break; - } - } - } - - if (index >= num_devices) { - index = Pa_GetDefaultInputDevice(); - info = Pa_GetDeviceInfo(index); - g_debug("Settings wants input device: %s", capture); - g_debug("Device can not be found, so we are using the systems default device: %d:%s", index, info->name); - } - - input_parameters.device = index; - input_parameters.channelCount = port_channels; - input_parameters.sampleFormat = paInt16; - input_parameters.hostApiSpecificStreamInfo = NULL; - input_parameters.suggestedLatency = Pa_GetDeviceInfo(input_parameters.device)->defaultLowInputLatency; - - err = init_fifo(&private->in_fifo, num_frames, private->bytes_per_frame); - if (err) { - g_debug("Could not init input fifo"); - port_audio_close(private); - - return NULL; - } - - err = Pa_OpenStream(&private->in_stream, &input_parameters, NULL, port_sample_rate, FRAME_SIZE, paClipOff, &audio_cb, private); - if (err == paNoError) { - Pa_StartStream(private->in_stream); - } else { - g_warning("Sorry, could not open input stream (%s)", Pa_GetErrorText(err)); - port_audio_close(private); - - private = NULL; - } - - return private; -} - -/** - * \brief Write audio data - * \param priv private data - * \param data audio data - * \param size size of audio data - * \return bytes written or error code - */ -static gsize port_audio_write(void *priv, guchar *data, gsize size) -{ - struct port_private *private = priv; - //PaError err; - int written = 0; - int offset = 0; - - if (private == NULL) { - return 0; - } - -again: - written = pa_util_write_ring_buffer(&private->out_fifo, data + offset, size - offset); - if (written != size - offset) { - int bytesEmpty = 0; - bytesEmpty = pa_util_get_ring_buffer_write_available(&private->out_fifo); - - while (bytesEmpty < size - offset) { - Pa_Sleep(1); - bytesEmpty = pa_util_get_ring_buffer_write_available(&private->out_fifo); - } - offset = written; - goto again; - } - - return written; -} - -/** - * \brief Read audio data - * \param priv private data pointer - * \param data output buffer pointer - * \param size size of buffer - * \return total bytes read - */ -static gsize port_audio_read(void *priv, guchar *data, gsize size) -{ - struct port_private *private = priv; - long total_bytes = 0; - long avail; - int max = 5000; - long read; - char *ptr = (char *) data; - - while (total_bytes < size && --max > 0) { - avail = pa_util_get_ring_buffer_read_available(&private->in_fifo); - - read = 0; - - if (avail >= size) { - read = pa_util_read_ring_buffer(&private->in_fifo, ptr, size); - total_bytes += read; - ptr += read; - } else { - Pa_Sleep(1); - } - } - - return total_bytes; -} - -/** - * \brief Deinit audio - * \return see error code of Pa_Terminate() - */ -int port_audio_shutdown(void) -{ - return Pa_Terminate(); -} - -/** audio definition */ -struct audio port_audio = { - "PortAudio", - port_audio_init, - port_audio_open, - port_audio_write, - port_audio_read, - port_audio_close, - port_audio_shutdown, - port_audio_detect_devices -}; - -/** - * \brief Activate plugin (add net event) - * \param plugin peas plugin - */ -static void impl_activate(PeasActivatable *plugin) -{ - routermanager_audio_register(&port_audio); -} - -/** - * \brief Deactivate plugin (remote net event) - * \param plugin peas plugin - */ -static void impl_deactivate(PeasActivatable *plugin) -{ -} diff -Nru roger-router-1.8.14/libroutermanager/plugins/portaudio/portaudio.plugin.in roger-router-2.1.6/libroutermanager/plugins/portaudio/portaudio.plugin.in --- roger-router-1.8.14/libroutermanager/plugins/portaudio/portaudio.plugin.in 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/portaudio/portaudio.plugin.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,9 +0,0 @@ -[Plugin] -Module=portaudio -_Name=PortAudio plugin -_Description=Audio plugin for PortAudio -Authors=Jan-Michael Brummer -Copyright=Copyright © 2013 Jan-Michael Brummer -Website=http://www.tabos.org/ -Help=http://www.tabos.org/forum/ -Builtin=true diff -Nru roger-router-1.8.14/libroutermanager/plugins/pulseaudio/Makefile.am roger-router-2.1.6/libroutermanager/plugins/pulseaudio/Makefile.am --- roger-router-1.8.14/libroutermanager/plugins/pulseaudio/Makefile.am 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/pulseaudio/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,14 +0,0 @@ -plugin_in_files = pulseaudio.plugin - -include ../Makefile.plugins - -plugindir = $(libdir)/routermanager/pulseaudio - -plugin_LTLIBRARIES = libpulseaudio.la - -libpulseaudio_la_SOURCES = \ - pulseaudio.c - -libpulseaudio_la_CFLAGS = $(plugin_cflags) -libpulseaudio_la_LDFLAGS = $(plugin_ldflags) -libpulseaudio_la_LIBADD = $(plugin_libadd) $(PULSEAUDIO_LIBS) diff -Nru roger-router-1.8.14/libroutermanager/plugins/pulseaudio/Makefile.in roger-router-2.1.6/libroutermanager/plugins/pulseaudio/Makefile.in --- roger-router-1.8.14/libroutermanager/plugins/pulseaudio/Makefile.in 2015-12-10 21:33:44.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/pulseaudio/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,800 +0,0 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2014 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@ - - -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@ -@WIN32_TRUE@am__append_1 = -L$(top_srcdir)/libroutermanager/.libs -lroutermanager -no-undefined -@MACOSX_TRUE@am__append_2 = -L$(top_srcdir)/libroutermanager/.libs -lroutermanager -no-undefined -subdir = libroutermanager/plugins/pulseaudio -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ - $(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)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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)$(plugindir)" "$(DESTDIR)$(plugindir)" -LTLIBRARIES = $(plugin_LTLIBRARIES) -am__DEPENDENCIES_1 = -am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) -libpulseaudio_la_DEPENDENCIES = $(am__DEPENDENCIES_2) \ - $(am__DEPENDENCIES_1) -am_libpulseaudio_la_OBJECTS = libpulseaudio_la-pulseaudio.lo -libpulseaudio_la_OBJECTS = $(am_libpulseaudio_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 = -libpulseaudio_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ - $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ - $(libpulseaudio_la_CFLAGS) $(CFLAGS) \ - $(libpulseaudio_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) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -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 = $(libpulseaudio_la_SOURCES) -DIST_SOURCES = $(libpulseaudio_la_SOURCES) -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -DATA = $(plugin_DATA) -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)` -ETAGS = etags -CTAGS = ctags -am__DIST_COMMON = $(srcdir)/../Makefile.plugins $(srcdir)/Makefile.in \ - $(top_srcdir)/depcomp -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -ALL_LINGUAS = @ALL_LINGUAS@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@ -APPINDICATOR_LIBS = @APPINDICATOR_LIBS@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAPI_CFLAGS = @CAPI_CFLAGS@ -CAPI_LIBS = @CAPI_LIBS@ -CATALOGS = @CATALOGS@ -CATOBJEXT = @CATOBJEXT@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DATADIRNAME = @DATADIRNAME@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -EBOOK_CFLAGS = @EBOOK_CFLAGS@ -EBOOK_LIBS = @EBOOK_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXTRA_CFLAGS = @EXTRA_CFLAGS@ -EXTRA_LIBS = @EXTRA_LIBS@ -FAX_SPOOLER_CFLAGS = @FAX_SPOOLER_CFLAGS@ -FAX_SPOOLER_LIBS = @FAX_SPOOLER_LIBS@ -FGREP = @FGREP@ -GDATA_CFLAGS = @GDATA_CFLAGS@ -GDATA_LIBS = @GDATA_LIBS@ -GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMOFILES = @GMOFILES@ -GMSGFMT = @GMSGFMT@ -GREP = @GREP@ -GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@ -GSTREAMER1_CFLAGS = @GSTREAMER1_CFLAGS@ -GSTREAMER1_LIBS = @GSTREAMER1_LIBS@ -GTK_CFLAGS = @GTK_CFLAGS@ -GTK_LIBS = @GTK_LIBS@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INSTOBJEXT = @INSTOBJEXT@ -INTLLIBS = @INTLLIBS@ -INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ -INTLTOOL_MERGE = @INTLTOOL_MERGE@ -INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ -INTLTOOL_PERL = @INTLTOOL_PERL@ -INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ -INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ -INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ -INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ -INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ -INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ -KWALLET_CFLAGS = @KWALLET_CFLAGS@ -KWALLET_LIBS = @KWALLET_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@ -LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@ -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@ -MKINSTALLDIRS = @MKINSTALLDIRS@ -MSGFMT = @MSGFMT@ -MSGFMT_OPTS = @MSGFMT_OPTS@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OS_CFLAGS = @OS_CFLAGS@ -OS_LIBS = @OS_LIBS@ -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@ -PEAS_CFLAGS = @PEAS_CFLAGS@ -PEAS_GTK_CFLAGS = @PEAS_GTK_CFLAGS@ -PEAS_GTK_LIBS = @PEAS_GTK_LIBS@ -PEAS_LIBS = @PEAS_LIBS@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POFILES = @POFILES@ -PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@ -PORTAUDIO_LIBS = @PORTAUDIO_LIBS@ -POSUB = @POSUB@ -PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ -PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ -PULSEAUDIO_CFLAGS = @PULSEAUDIO_CFLAGS@ -PULSEAUDIO_LIBS = @PULSEAUDIO_LIBS@ -RANLIB = @RANLIB@ -ROGER_VERSION_MAJOR = @ROGER_VERSION_MAJOR@ -ROGER_VERSION_MICRO = @ROGER_VERSION_MICRO@ -ROGER_VERSION_MINOR = @ROGER_VERSION_MINOR@ -SECRET_CFLAGS = @SECRET_CFLAGS@ -SECRET_LIBS = @SECRET_LIBS@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SOUP_CFLAGS = @SOUP_CFLAGS@ -SOUP_LIBS = @SOUP_LIBS@ -SPANDSP_CFLAGS = @SPANDSP_CFLAGS@ -SPANDSP_LIBS = @SPANDSP_LIBS@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -WINDRES = @WINDRES@ -XGETTEXT = @XGETTEXT@ -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@ -found_cc = @found_cc@ -gsettingsschemadir = @gsettingsschemadir@ -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@ -intltool__v_merge_options_ = @intltool__v_merge_options_@ -intltool__v_merge_options_0 = @intltool__v_merge_options_0@ -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@ -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@ -plugin_in_files = pulseaudio.plugin -plugin_DATA = $(plugin_in_files:.plugin.in=.plugin) -CLEANFILES = $(plugin_DATA) -DISTCLEANFILES = $(plugin_DATA) -EXTRA_DIST = $(plugin_in_files).in -AM_CFLAGS = \ - $(PEAS_CFLAGS) \ - $(OS_CFLAGS) \ - -I$(top_srcdir)/ - -plugin_cflags = \ - $(PEAS_CFLAGS) \ - $(OS_CFLAGS) \ - -I$(top_srcdir)/ - -plugin_ldflags = -export-dynamic -no-undefined -avoid-version -module \ - -shared $(PLUGIN_LIBTOOL_FLAGS) $(am__append_1) \ - $(am__append_2) -plugin_libadd = \ - $(PEAS_LIBS) \ - $(OS_LIBS) - -plugindir = $(libdir)/routermanager/pulseaudio -plugin_LTLIBRARIES = libpulseaudio.la -libpulseaudio_la_SOURCES = \ - pulseaudio.c - -libpulseaudio_la_CFLAGS = $(plugin_cflags) -libpulseaudio_la_LDFLAGS = $(plugin_ldflags) -libpulseaudio_la_LIBADD = $(plugin_libadd) $(PULSEAUDIO_LIBS) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../Makefile.plugins $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libroutermanager/plugins/pulseaudio/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign libroutermanager/plugins/pulseaudio/Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; -$(srcdir)/../Makefile.plugins $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES) - @$(NORMAL_INSTALL) - @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || 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)$(plugindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(plugindir)" || exit 1; \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(plugindir)'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(plugindir)"; \ - } - -uninstall-pluginLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || list=; \ - for p in $$list; do \ - $(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(plugindir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(plugindir)/$$f"; \ - done - -clean-pluginLTLIBRARIES: - -test -z "$(plugin_LTLIBRARIES)" || rm -f $(plugin_LTLIBRARIES) - @list='$(plugin_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}; \ - } - -libpulseaudio.la: $(libpulseaudio_la_OBJECTS) $(libpulseaudio_la_DEPENDENCIES) $(EXTRA_libpulseaudio_la_DEPENDENCIES) - $(AM_V_CCLD)$(libpulseaudio_la_LINK) -rpath $(plugindir) $(libpulseaudio_la_OBJECTS) $(libpulseaudio_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpulseaudio_la-pulseaudio.Plo@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ -@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -libpulseaudio_la-pulseaudio.lo: pulseaudio.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpulseaudio_la_CFLAGS) $(CFLAGS) -MT libpulseaudio_la-pulseaudio.lo -MD -MP -MF $(DEPDIR)/libpulseaudio_la-pulseaudio.Tpo -c -o libpulseaudio_la-pulseaudio.lo `test -f 'pulseaudio.c' || echo '$(srcdir)/'`pulseaudio.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libpulseaudio_la-pulseaudio.Tpo $(DEPDIR)/libpulseaudio_la-pulseaudio.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pulseaudio.c' object='libpulseaudio_la-pulseaudio.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpulseaudio_la_CFLAGS) $(CFLAGS) -c -o libpulseaudio_la-pulseaudio.lo `test -f 'pulseaudio.c' || echo '$(srcdir)/'`pulseaudio.c - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-pluginDATA: $(plugin_DATA) - @$(NORMAL_INSTALL) - @list='$(plugin_DATA)'; test -n "$(plugindir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(plugindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(plugindir)" || 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)$(plugindir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(plugindir)" || exit $$?; \ - done - -uninstall-pluginDATA: - @$(NORMAL_UNINSTALL) - @list='$(plugin_DATA)'; test -n "$(plugindir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(plugindir)'; $(am__uninstall_files_from_dir) - -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-am -TAGS: tags - -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - set x; \ - here=`pwd`; \ - $(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-am - -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" -cscopelist: cscopelist-am - -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 - -distdir: $(DISTFILES) - @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 -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) $(DATA) -installdirs: - for dir in "$(DESTDIR)$(plugindir)" "$(DESTDIR)$(plugindir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -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) - -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." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-pluginLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-pluginDATA install-pluginLTLIBRARIES - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-pluginDATA uninstall-pluginLTLIBRARIES - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-pluginLTLIBRARIES cscopelist-am ctags \ - ctags-am distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir 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-man install-pdf install-pdf-am \ - install-pluginDATA install-pluginLTLIBRARIES install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs 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-pluginDATA uninstall-pluginLTLIBRARIES - -.PRECIOUS: Makefile - -%.plugin: %.plugin.in - $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache - -# 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: diff -Nru roger-router-1.8.14/libroutermanager/plugins/pulseaudio/pulseaudio.c roger-router-2.1.6/libroutermanager/plugins/pulseaudio/pulseaudio.c --- roger-router-1.8.14/libroutermanager/plugins/pulseaudio/pulseaudio.c 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/pulseaudio/pulseaudio.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,495 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include -#include -#include - -#include - -#include -#include -#include - -#include -#include -#include -#include - -#define ROUTERMANAGER_TYPE_PULSEAUDIO_PLUGIN (routermanager_pulseaudio_plugin_get_type()) -#define ROUTERMANAGER_PULSEAUDIO_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST((o), ROUTERMANAGER_TYPE_PULSEAUDIO_PLUGIN, RouterManagerPulseAudioPlugin)) - -typedef struct { - guint id; -} RouterManagerPulseAudioPluginPrivate; - -ROUTERMANAGER_PLUGIN_REGISTER(ROUTERMANAGER_TYPE_PULSEAUDIO_PLUGIN, RouterManagerPulseAudioPlugin, routermanager_pulseaudio_plugin) - -struct pulse_pipes { - pa_simple *simple_in; - pa_simple *simple_out; -}; - -/** predefined backup values */ -static gint pulse_channels = 1; -static gint pulse_sample_rate = 8000; -static gint pulse_bits_per_sample = 16; - -struct pulse_device_list { - gchar initialized; - gchar name[512]; - gint index; - gchar description[256]; -}; - -/** This is where we'll store the input device list */ -struct pulse_device_list input_device_list[16]; -/** This is where we'll store the output device list */ -struct pulse_device_list output_device_list[16]; - -/** - * \brief This callback gets called when our context changes state. - * \param context pulseaudio context - * \param user_data pa ready flag - */ -static void pulse_state_cb(pa_context *context, void *user_data) -{ - pa_context_state_t state; - int *pulse_ready = user_data; - - state = pa_context_get_state(context); - - switch (state) { - /* There are just here for reference */ - case PA_CONTEXT_UNCONNECTED: - case PA_CONTEXT_CONNECTING: - case PA_CONTEXT_AUTHORIZING: - case PA_CONTEXT_SETTING_NAME: - default: - break; - case PA_CONTEXT_FAILED: - case PA_CONTEXT_TERMINATED: - *pulse_ready = 2; - break; - case PA_CONTEXT_READY: - *pulse_ready = 1; - break; - } -} - -/** - * \brief mainloop will call this function when it's ready to tell us about a sink. - * \param context pulseaudio context - * \param sink_info sink information - * \param eol end-of-list - * \param user_data pointer to device list - */ -static void pulse_sink_list_cb(pa_context *context, const pa_sink_info *sink_info, int eol, void *user_data) -{ - struct pulse_device_list *device_list = user_data; - int index = 0; - - /* If eol is set to a positive number, you're at the end of the list */ - if (eol > 0) { - return; - } - - for (index = 0; index < 16; index++) { - if (!device_list[index].initialized) { - strncpy(device_list[index].name, sink_info->name, 511); - strncpy(device_list[index].description, sink_info->description, 255); - device_list[index].index = sink_info->index; - device_list[index].initialized = 1; - break; - } - } -} - -/** - * \brief See above. This callback is pretty much identical to the previous - * \param context pulseaudio context - * \param source_info source information - * \param eol end-of-list - * \param user_data pointer to device list - */ -static void pulse_source_list_cb(pa_context *context, const pa_source_info *source_info, int eol, void *user_data) -{ - struct pulse_device_list *device_list = user_data; - int index = 0; - - if (eol > 0) { - return; - } - - for (index = 0; index < 16; index++) { - if (!device_list[index].initialized) { - strncpy(device_list[index].name, source_info->name, 511); - strncpy(device_list[index].description, source_info->description, 255); - device_list[index].index = source_info->index; - device_list[index].initialized = 1; - break; - } - } -} - -/** - * \brief Get device list for input and output devices - * \param input pointer input device list - * \param output pointer output device list - * \return error code - */ -static int pulse_get_device_list(struct pulse_device_list *input, struct pulse_device_list *output) -{ - /* Define our pulse audio loop and connection variables */ - pa_mainloop *main_loop; - pa_mainloop_api *main_api; - pa_operation *operation = NULL; - pa_context *context; - /* We'll need these state variables to keep track of our requests */ - int state = 0; - int ready = 0; - - /* Initialize our device lists */ - memset(input, 0, sizeof(struct pulse_device_list) * 16); - memset(output, 0, sizeof(struct pulse_device_list) * 16); - - /* Create a mainloop API and connection to the default server */ - main_loop = pa_mainloop_new(); - main_api = pa_mainloop_get_api(main_loop); - context = pa_context_new(main_api, "test"); - - /* This function connects to the pulse server */ - pa_context_connect(context, NULL, 0, NULL); - - /** - * This function defines a callback so the server will tell us it's state. - * Our callback will wait for the state to be ready. The callback will - * modify the variable to 1 so we know when we have a connection and it's - * ready. - * If there's an error, the callback will set pa_ready to 2 - */ - pa_context_set_state_callback(context, pulse_state_cb, &ready); - - /** - * Now we'll enter into an infinite loop until we get the data we receive - * or if there's an error - */ - for (; ;) { - /** - * We can't do anything until PA is ready, so just iterate the mainloop - * and continue - */ - if (ready == 0) { - pa_mainloop_iterate(main_loop, 1, NULL); - continue; - } - - /* We couldn't get a connection to the server, so exit out */ - if (ready == 2) { - pa_context_disconnect(context); - pa_context_unref(context); - pa_mainloop_free(main_loop); - return -1; - } - - /** - * At this point, we're connected to the server and ready to make - * requests - */ - switch (state) { - /* State 0: we haven't done anything yet */ - case 0: - operation = pa_context_get_sink_info_list(context, pulse_sink_list_cb, output); - - /* Update state for next iteration through the loop */ - state++; - break; - case 1: - if (pa_operation_get_state(operation) == PA_OPERATION_DONE) { - pa_operation_unref(operation); - - operation = pa_context_get_source_info_list(context, pulse_source_list_cb, input); - - /* Update the state so we know what to do next */ - state++; - } - break; - case 2: - if (pa_operation_get_state(operation) == PA_OPERATION_DONE) { - pa_operation_unref(operation); - pa_context_disconnect(context); - pa_context_unref(context); - pa_mainloop_free(main_loop); - return 0; - } - break; - default: - g_warning("in state %d", state); - return -1; - } - - pa_mainloop_iterate(main_loop, 1, NULL); - } -} - -/** - * \brief Detect pulseaudio devices - * \return list of audio devices - */ -GSList *pulse_audio_detect_devices(void) -{ - int found_in = 0; - int found_out = 0; - int index; - GSList *list = NULL; - struct audio_device *device; - - if (pulse_get_device_list(input_device_list, output_device_list) < 0) { - g_warning("failed to get device list"); - return list; - } - - for (index = 0; index < 16; index++) { - if (!output_device_list[index].initialized || strstr(output_device_list[index].name, ".monitor")) { - continue; - } - found_out++; - - device = g_slice_new0(struct audio_device); - device->internal_name = g_strdup(output_device_list[index].name); - device->name = g_strdup(output_device_list[index].description); - device->type = AUDIO_OUTPUT; - list = g_slist_prepend(list, device); - } - - for (index = 0; index < 16; index++) { - if (!input_device_list[index].initialized || strstr(input_device_list[index].name, ".monitor")) { - continue; - } - - device = g_slice_new0(struct audio_device); - device->internal_name = g_strdup(input_device_list[index].name); - device->name = g_strdup(input_device_list[index].description); - device->type = AUDIO_INPUT; - list = g_slist_prepend(list, device); - - found_in++; - } - - return list; -} - -/** - * \brief Initialize audio device - * \param channels number of channels - * \param sample_rate sample rate - * \param bits_per_sample number of bits per samplerate - * \return TRUE on success, otherwise error - */ -static int pulse_audio_init(unsigned char channels, unsigned short sample_rate, unsigned char bits_per_sample) -{ - /* TODO: Check if configuration is valid and usable */ - pulse_channels = channels; - pulse_sample_rate = sample_rate; - pulse_bits_per_sample = bits_per_sample; - - return 0; -} - -/** - * \brief Open new playback and record pipes - * \return pipe pointer or NULL on error - */ -static void *pulse_audio_open(void) -{ - pa_sample_spec sample_spec = { - .format = PA_SAMPLE_S16LE, - }; - int error; - pa_buffer_attr buffer = { - .fragsize = 320, - .maxlength = -1, - .minreq = -1, - .prebuf = -1, - .tlength = -1, - }; - struct pulse_pipes *pipes = malloc(sizeof(struct pulse_pipes)); - const gchar *output; - const gchar *input; - - if (!pipes) { - g_warning("Could not get memory for pipes"); - return NULL; - } - - sample_spec.rate = pulse_sample_rate; - sample_spec.channels = pulse_channels; - if (pulse_bits_per_sample == 2) { - sample_spec.format = PA_SAMPLE_S16LE; - } - - output = g_settings_get_string(profile_get_active()->settings, "audio-output"); - if (EMPTY_STRING(output)) { - output = NULL; - } - - pipes->simple_out = pa_simple_new(NULL, "Roger Router", PA_STREAM_PLAYBACK, output, "phone", &sample_spec, NULL, NULL, &error); - if (pipes->simple_out == NULL) { - g_debug("Pulseaudio - Could not open output device '%s'. Error: %s", output ? output : "", pa_strerror(error)); - free(pipes); - return NULL; - } - - input = g_settings_get_string(profile_get_active()->settings, "audio-input"); - if (EMPTY_STRING(input)) { - input = NULL; - } - - pipes->simple_in = pa_simple_new(NULL, "Roger Router", PA_STREAM_RECORD, input, "phone", &sample_spec, NULL, &buffer, &error); - if (pipes->simple_in == NULL) { - g_debug("Pulseaudio - Could not open input device '%s'. Error: %s", input ? input : "", pa_strerror(error)); - //pa_simple_free(pipes->simple_out); - //free(pipes); - //return NULL; - } - - return pipes; -} - -/** - * \brief Close audio pipelines - * \param priv pointer to private input/output pipes - * \return error code - */ -static int pulse_audio_close(void *priv) -{ - struct pulse_pipes *pipes = priv; - - if (!pipes) { - return -EINVAL; - } - - if (pipes->simple_out) { - pa_simple_free(pipes->simple_out); - pipes->simple_out = NULL; - } - - if (pipes->simple_in) { - pa_simple_free(pipes->simple_in); - pipes->simple_in = NULL; - } - - free(pipes); - - return 0; -} - -/** - * \brief Write data to audio device - * \param priv pointer to private pipes - * \param buf audio data pointer - * \param len length of buffer - * \return error code - */ -static gsize pulse_audio_write(void *priv, guchar *buf, gsize len) -{ - struct pulse_pipes *pipes = priv; - int error; - - if (pipes == NULL || pipes->simple_out == NULL) { - return -1; - } - - if (pa_simple_write(pipes->simple_out, buf, (size_t) len, &error) < 0) { - g_debug("Failed: %s", pa_strerror(error)); - } - - return 0; -} - -/** - * \brief Read data from audio device - * \param priv pointer to private pipes - * \param buf audio data pointer - * \param len maximal length of buffer - * \return error code - */ -static gsize pulse_audio_read(void *priv, guchar *buf, gsize len) -{ - struct pulse_pipes *pipes = priv; - int nRet = 0; - int error; - - if (!pipes || !pipes->simple_in) { - return 0; - } - - nRet = pa_simple_read(pipes->simple_in, buf, len, &error); - if (nRet < 0) { - g_debug("Failed: %s", pa_strerror(error)); - len = 0; - } - - return len; -} - -/** - * \brief Shutdown audio interface - * \return 0 - */ -static int pulse_audio_shutdown(void) -{ - return 0; -} - -/** audio definition */ -struct audio pulse_audio = { - "PulseAudio", - pulse_audio_init, - pulse_audio_open, - pulse_audio_write, - pulse_audio_read, - pulse_audio_close, - pulse_audio_shutdown, - pulse_audio_detect_devices -}; - -/** - * \brief Activate plugin (add net event) - * \param plugin peas plugin - */ -static void impl_activate(PeasActivatable *plugin) -{ - //RouterManagerPulseAudioPlugin *pulseaudio_plugin = ROUTERMANAGER_PULSEAUDIO_PLUGIN(plugin); - - /* Set media role */ - g_setenv("PULSE_PROP_media.role", "phone", TRUE); - g_setenv("PULSE_PROP_filter.want", "echo-cancel", TRUE); - - routermanager_audio_register(&pulse_audio); -} - -/** - * \brief Deactivate plugin (remote net event) - * \param plugin peas plugin - */ -static void impl_deactivate(PeasActivatable *plugin) -{ - //RouterManagerPulseAudioPlugin *pulseaudio_plugin = ROUTERMANAGER_PULSEAUDIO_PLUGIN(plugin); -} diff -Nru roger-router-1.8.14/libroutermanager/plugins/pulseaudio/pulseaudio.plugin.in roger-router-2.1.6/libroutermanager/plugins/pulseaudio/pulseaudio.plugin.in --- roger-router-1.8.14/libroutermanager/plugins/pulseaudio/pulseaudio.plugin.in 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/pulseaudio/pulseaudio.plugin.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,9 +0,0 @@ -[Plugin] -Module=pulseaudio -_Name=PulseAudio plugin -_Description=Audio plugin for PulseAudio -Authors=Jan-Michael Brummer -Copyright=Copyright © 2013 Jan-Michael Brummer -Website=http://www.tabos.org/ -Help=http://www.tabos.org/forum/ -Builtin=true diff -Nru roger-router-1.8.14/libroutermanager/plugins/reverselookup/Makefile.am roger-router-2.1.6/libroutermanager/plugins/reverselookup/Makefile.am --- roger-router-1.8.14/libroutermanager/plugins/reverselookup/Makefile.am 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/reverselookup/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,20 +0,0 @@ -plugin_in_files = reverselookup.plugin - -include ../Makefile.plugins - -plugindir = $(libdir)/routermanager/reverselookup - -plugin_LTLIBRARIES = libreverselookup.la - -sharedir = $(libdir)/routermanager/reverselookup -share_DATA = share/lookup.xml - -EXTRA_DIST += $(share_DATA) - -libreverselookup_la_SOURCES = \ - reverselookup.c \ - reverselookup.h - -libreverselookup_la_CFLAGS = $(plugin_cflags) -DPLUGIN_DIR=\"$(plugindir)\" $(SOUP_CFLAGS) -libreverselookup_la_LDFLAGS = $(plugin_ldflags) -libreverselookup_la_LIBADD = $(plugin_libadd) $(SOUP_LIBADD) diff -Nru roger-router-1.8.14/libroutermanager/plugins/reverselookup/Makefile.in roger-router-2.1.6/libroutermanager/plugins/reverselookup/Makefile.in --- roger-router-1.8.14/libroutermanager/plugins/reverselookup/Makefile.in 2015-12-10 21:33:44.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/reverselookup/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,827 +0,0 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2014 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@ - - -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@ -@WIN32_TRUE@am__append_1 = -L$(top_srcdir)/libroutermanager/.libs -lroutermanager -no-undefined -@MACOSX_TRUE@am__append_2 = -L$(top_srcdir)/libroutermanager/.libs -lroutermanager -no-undefined -subdir = libroutermanager/plugins/reverselookup -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ - $(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)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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)$(plugindir)" "$(DESTDIR)$(plugindir)" \ - "$(DESTDIR)$(sharedir)" -LTLIBRARIES = $(plugin_LTLIBRARIES) -am__DEPENDENCIES_1 = -am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) -libreverselookup_la_DEPENDENCIES = $(am__DEPENDENCIES_2) -am_libreverselookup_la_OBJECTS = libreverselookup_la-reverselookup.lo -libreverselookup_la_OBJECTS = $(am_libreverselookup_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 = -libreverselookup_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ - $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ - $(libreverselookup_la_CFLAGS) $(CFLAGS) \ - $(libreverselookup_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) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -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 = $(libreverselookup_la_SOURCES) -DIST_SOURCES = $(libreverselookup_la_SOURCES) -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -DATA = $(plugin_DATA) $(share_DATA) -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)` -ETAGS = etags -CTAGS = ctags -am__DIST_COMMON = $(srcdir)/../Makefile.plugins $(srcdir)/Makefile.in \ - $(top_srcdir)/depcomp -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -ALL_LINGUAS = @ALL_LINGUAS@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@ -APPINDICATOR_LIBS = @APPINDICATOR_LIBS@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAPI_CFLAGS = @CAPI_CFLAGS@ -CAPI_LIBS = @CAPI_LIBS@ -CATALOGS = @CATALOGS@ -CATOBJEXT = @CATOBJEXT@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DATADIRNAME = @DATADIRNAME@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -EBOOK_CFLAGS = @EBOOK_CFLAGS@ -EBOOK_LIBS = @EBOOK_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXTRA_CFLAGS = @EXTRA_CFLAGS@ -EXTRA_LIBS = @EXTRA_LIBS@ -FAX_SPOOLER_CFLAGS = @FAX_SPOOLER_CFLAGS@ -FAX_SPOOLER_LIBS = @FAX_SPOOLER_LIBS@ -FGREP = @FGREP@ -GDATA_CFLAGS = @GDATA_CFLAGS@ -GDATA_LIBS = @GDATA_LIBS@ -GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMOFILES = @GMOFILES@ -GMSGFMT = @GMSGFMT@ -GREP = @GREP@ -GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@ -GSTREAMER1_CFLAGS = @GSTREAMER1_CFLAGS@ -GSTREAMER1_LIBS = @GSTREAMER1_LIBS@ -GTK_CFLAGS = @GTK_CFLAGS@ -GTK_LIBS = @GTK_LIBS@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INSTOBJEXT = @INSTOBJEXT@ -INTLLIBS = @INTLLIBS@ -INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ -INTLTOOL_MERGE = @INTLTOOL_MERGE@ -INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ -INTLTOOL_PERL = @INTLTOOL_PERL@ -INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ -INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ -INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ -INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ -INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ -INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ -KWALLET_CFLAGS = @KWALLET_CFLAGS@ -KWALLET_LIBS = @KWALLET_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@ -LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@ -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@ -MKINSTALLDIRS = @MKINSTALLDIRS@ -MSGFMT = @MSGFMT@ -MSGFMT_OPTS = @MSGFMT_OPTS@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OS_CFLAGS = @OS_CFLAGS@ -OS_LIBS = @OS_LIBS@ -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@ -PEAS_CFLAGS = @PEAS_CFLAGS@ -PEAS_GTK_CFLAGS = @PEAS_GTK_CFLAGS@ -PEAS_GTK_LIBS = @PEAS_GTK_LIBS@ -PEAS_LIBS = @PEAS_LIBS@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POFILES = @POFILES@ -PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@ -PORTAUDIO_LIBS = @PORTAUDIO_LIBS@ -POSUB = @POSUB@ -PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ -PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ -PULSEAUDIO_CFLAGS = @PULSEAUDIO_CFLAGS@ -PULSEAUDIO_LIBS = @PULSEAUDIO_LIBS@ -RANLIB = @RANLIB@ -ROGER_VERSION_MAJOR = @ROGER_VERSION_MAJOR@ -ROGER_VERSION_MICRO = @ROGER_VERSION_MICRO@ -ROGER_VERSION_MINOR = @ROGER_VERSION_MINOR@ -SECRET_CFLAGS = @SECRET_CFLAGS@ -SECRET_LIBS = @SECRET_LIBS@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SOUP_CFLAGS = @SOUP_CFLAGS@ -SOUP_LIBS = @SOUP_LIBS@ -SPANDSP_CFLAGS = @SPANDSP_CFLAGS@ -SPANDSP_LIBS = @SPANDSP_LIBS@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -WINDRES = @WINDRES@ -XGETTEXT = @XGETTEXT@ -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@ -found_cc = @found_cc@ -gsettingsschemadir = @gsettingsschemadir@ -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@ -intltool__v_merge_options_ = @intltool__v_merge_options_@ -intltool__v_merge_options_0 = @intltool__v_merge_options_0@ -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@ -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@ -plugin_in_files = reverselookup.plugin -plugin_DATA = $(plugin_in_files:.plugin.in=.plugin) -CLEANFILES = $(plugin_DATA) -DISTCLEANFILES = $(plugin_DATA) -EXTRA_DIST = $(plugin_in_files).in $(share_DATA) -AM_CFLAGS = \ - $(PEAS_CFLAGS) \ - $(OS_CFLAGS) \ - -I$(top_srcdir)/ - -plugin_cflags = \ - $(PEAS_CFLAGS) \ - $(OS_CFLAGS) \ - -I$(top_srcdir)/ - -plugin_ldflags = -export-dynamic -no-undefined -avoid-version -module \ - -shared $(PLUGIN_LIBTOOL_FLAGS) $(am__append_1) \ - $(am__append_2) -plugin_libadd = \ - $(PEAS_LIBS) \ - $(OS_LIBS) - -plugindir = $(libdir)/routermanager/reverselookup -plugin_LTLIBRARIES = libreverselookup.la -sharedir = $(libdir)/routermanager/reverselookup -share_DATA = share/lookup.xml -libreverselookup_la_SOURCES = \ - reverselookup.c \ - reverselookup.h - -libreverselookup_la_CFLAGS = $(plugin_cflags) -DPLUGIN_DIR=\"$(plugindir)\" $(SOUP_CFLAGS) -libreverselookup_la_LDFLAGS = $(plugin_ldflags) -libreverselookup_la_LIBADD = $(plugin_libadd) $(SOUP_LIBADD) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../Makefile.plugins $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libroutermanager/plugins/reverselookup/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign libroutermanager/plugins/reverselookup/Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; -$(srcdir)/../Makefile.plugins $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES) - @$(NORMAL_INSTALL) - @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || 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)$(plugindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(plugindir)" || exit 1; \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(plugindir)'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(plugindir)"; \ - } - -uninstall-pluginLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || list=; \ - for p in $$list; do \ - $(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(plugindir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(plugindir)/$$f"; \ - done - -clean-pluginLTLIBRARIES: - -test -z "$(plugin_LTLIBRARIES)" || rm -f $(plugin_LTLIBRARIES) - @list='$(plugin_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}; \ - } - -libreverselookup.la: $(libreverselookup_la_OBJECTS) $(libreverselookup_la_DEPENDENCIES) $(EXTRA_libreverselookup_la_DEPENDENCIES) - $(AM_V_CCLD)$(libreverselookup_la_LINK) -rpath $(plugindir) $(libreverselookup_la_OBJECTS) $(libreverselookup_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libreverselookup_la-reverselookup.Plo@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ -@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -libreverselookup_la-reverselookup.lo: reverselookup.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libreverselookup_la_CFLAGS) $(CFLAGS) -MT libreverselookup_la-reverselookup.lo -MD -MP -MF $(DEPDIR)/libreverselookup_la-reverselookup.Tpo -c -o libreverselookup_la-reverselookup.lo `test -f 'reverselookup.c' || echo '$(srcdir)/'`reverselookup.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libreverselookup_la-reverselookup.Tpo $(DEPDIR)/libreverselookup_la-reverselookup.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='reverselookup.c' object='libreverselookup_la-reverselookup.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libreverselookup_la_CFLAGS) $(CFLAGS) -c -o libreverselookup_la-reverselookup.lo `test -f 'reverselookup.c' || echo '$(srcdir)/'`reverselookup.c - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-pluginDATA: $(plugin_DATA) - @$(NORMAL_INSTALL) - @list='$(plugin_DATA)'; test -n "$(plugindir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(plugindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(plugindir)" || 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)$(plugindir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(plugindir)" || exit $$?; \ - done - -uninstall-pluginDATA: - @$(NORMAL_UNINSTALL) - @list='$(plugin_DATA)'; test -n "$(plugindir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(plugindir)'; $(am__uninstall_files_from_dir) -install-shareDATA: $(share_DATA) - @$(NORMAL_INSTALL) - @list='$(share_DATA)'; test -n "$(sharedir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(sharedir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(sharedir)" || 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)$(sharedir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(sharedir)" || exit $$?; \ - done - -uninstall-shareDATA: - @$(NORMAL_UNINSTALL) - @list='$(share_DATA)'; test -n "$(sharedir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(sharedir)'; $(am__uninstall_files_from_dir) - -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-am -TAGS: tags - -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - set x; \ - here=`pwd`; \ - $(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-am - -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" -cscopelist: cscopelist-am - -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 - -distdir: $(DISTFILES) - @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 -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) $(DATA) -installdirs: - for dir in "$(DESTDIR)$(plugindir)" "$(DESTDIR)$(plugindir)" "$(DESTDIR)$(sharedir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -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) - -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." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-pluginLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-pluginDATA install-pluginLTLIBRARIES \ - install-shareDATA - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-pluginDATA uninstall-pluginLTLIBRARIES \ - uninstall-shareDATA - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-pluginLTLIBRARIES cscopelist-am ctags \ - ctags-am distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir 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-man install-pdf install-pdf-am \ - install-pluginDATA install-pluginLTLIBRARIES install-ps \ - install-ps-am install-shareDATA install-strip installcheck \ - installcheck-am installdirs 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-pluginDATA \ - uninstall-pluginLTLIBRARIES uninstall-shareDATA - -.PRECIOUS: Makefile - -%.plugin: %.plugin.in - $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache - -# 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: diff -Nru roger-router-1.8.14/libroutermanager/plugins/reverselookup/reverselookup.c roger-router-2.1.6/libroutermanager/plugins/reverselookup/reverselookup.c --- roger-router-1.8.14/libroutermanager/plugins/reverselookup/reverselookup.c 2015-11-27 21:12:53.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/reverselookup/reverselookup.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,687 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include -#include - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include - -#include "reverselookup.h" - -#define ROUTERMANAGER_TYPE_REVERSE_LOOKUP_PLUGIN (routermanager_reverse_lookup_plugin_get_type ()) -#define ROUTERMANAGER_REVERSE_LOOKUP_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST((o), ROUTERMANAGER_TYPE_REVERSE_LOOKUP_PLUGIN, RouterManagerReverseLookupPlugin)) - -//#define RL_DEBUG 1 - -typedef struct { - guint signal_id; - GHashTable *table; -} RouterManagerReverseLookupPluginPrivate; - -ROUTERMANAGER_PLUGIN_REGISTER(ROUTERMANAGER_TYPE_REVERSE_LOOKUP_PLUGIN, RouterManagerReverseLookupPlugin, routermanager_reverse_lookup_plugin) - -static GHashTable *table = NULL; -/** Global lookup list */ -static GSList *lookup_list = NULL; -/** Lookup country code hash table */ -static GHashTable *lookup_table = NULL; - -static gchar *replace_number(gchar *url, gchar *full_number) -{ - GRegex *number = g_regex_new("%NUMBER%", G_REGEX_DOTALL | G_REGEX_OPTIMIZE, 0, NULL); - gchar *out = g_regex_replace_literal(number, url, -1, 0, full_number, 0, NULL); - - g_regex_unref(number); - - return out; -} - -static gboolean extract_element(gchar **in, xmlNode *a_node, gchar **out) -{ - xmlNode *cur_node = NULL; - gboolean ret = FALSE; - - for (cur_node = a_node; cur_node && !ret; cur_node = cur_node->next) { - if (cur_node->type == XML_ELEMENT_NODE) { - if (!strcmp((gchar*)cur_node->name, in[0])) { - gchar *type = (gchar*)xmlGetProp(cur_node, (xmlChar*)in[1]); - - if (type && !strcmp(type, in[2])) { - xmlChar *name = xmlNodeListGetString(cur_node->doc, cur_node->children, TRUE); - *out = g_strdup(g_strstrip((gchar*)name)); - printf("-> %s\n", *out); - xmlFree(name); - return TRUE; - } - } - } - - ret = extract_element(in, cur_node->children, out); - } - - return ret; -} - -/** - * \brief Internal reverse lookup function - * \param number number to lookup - * \param name pointer to store name to - * \param street pointer to store street to - * \param zip pointer to store zip to - * \param city pointer to store city to - * \return TRUE on success, otherwise FALSE - */ -static gboolean do_reverse_lookup(struct lookup *lookup, gchar *number, gchar **name, gchar **street, gchar **zip, gchar **city) -{ - SoupMessage *msg; - const gchar *data; - GRegex *reg = NULL; - GMatchInfo *info = NULL; - gchar *rl_tmp; - struct contact *rl_contact; - gboolean result = FALSE; - gchar *full_number; - gchar *rdata = NULL; - gchar *file; - gsize len; - - /* get full number according to service preferences */ - full_number = call_full_number(number, lookup->prefix); - -#ifdef RL_DEBUG - g_debug("New lookup for '%s'", full_number); -#endif - - g_assert(name != NULL); - g_assert(street != NULL); - g_assert(zip != NULL); - g_assert(city != NULL); - - gchar *url = replace_number(lookup->url, full_number); -#ifdef RL_DEBUG - g_debug("URL: %s", url); -#endif - SoupURI *uri = soup_uri_new(url); - msg = soup_message_new_from_uri(SOUP_METHOD_GET, uri); - soup_message_headers_append (msg->request_headers, "User-Agent", "Mozilla/5.0 (Fedora; Linux x86_64)"); - - soup_session_send_message(soup_session_sync, msg); - soup_uri_free(uri); - g_free(url); - if (msg->status_code != 200) { - g_debug("Service: %s received status code: %d", lookup->service, msg->status_code); - g_object_unref(msg); - return FALSE; - } - - data = msg->response_body->data; - len = msg->response_body->length; - if (!len) { - goto end; - } - - rdata = g_convert_utf8(data, len); - - if (lookup->pattern) { -#ifdef RL_DEBUG - g_debug("Lookup pattern '%s'", lookup->pattern); -#endif - reg = g_regex_new(lookup->pattern, G_REGEX_MULTILINE | G_REGEX_DOTALL, 0, NULL); - if (!reg) { - goto end; - } - - if (!g_regex_match(reg, rdata, 0, &info)) { -#ifdef RL_DEBUG - gchar *tmp_file = g_strdup_printf("rl-%s-%s.html", lookup->service, number); - log_save_data(tmp_file, rdata, len); - g_free(tmp_file); -#endif - goto end; - } - -#ifdef RL_DEBUG - gchar *tmp_file = g_strdup_printf("rl-found-%s-%s.html", lookup->service, number); - log_save_data(tmp_file, rdata, len); - g_free(tmp_file); -#endif - -#ifdef RL_DEBUG - g_debug("g_match_info_matches()"); -#endif - - if (!g_match_info_matches(info)) { - goto end; - } - -#ifdef RL_DEBUG - g_debug("g_match_info_fetch_named()"); -#endif - rl_tmp = g_match_info_fetch_named(info, "name"); - if (rl_tmp != NULL) { - *name = strip_html(rl_tmp); - g_free(rl_tmp); - } else { - *name = g_strdup(""); - } - -#ifdef RL_DEBUG - g_debug(" --> Name: '%s'", *name); -#endif - - rl_tmp = g_match_info_fetch_named(info, "street"); - if (rl_tmp != NULL) { -#ifdef RL_DEBUG - g_debug(" --> street: '%s'", rl_tmp); -#endif - *street = strip_html(rl_tmp); - g_free(rl_tmp); - } else { - *street = g_strdup(""); - } - - rl_tmp = g_match_info_fetch_named(info, "zip"); - if (rl_tmp != NULL) { -#ifdef RL_DEBUG - g_debug(" --> zip: '%s'", rl_tmp); -#endif - *zip = strip_html(rl_tmp); - g_free(rl_tmp); - } else { - *zip = g_strdup(""); - } - - rl_tmp = g_match_info_fetch_named(info, "city"); - if (!EMPTY_STRING(rl_tmp)) { - gchar **split; - -#ifdef RL_DEBUG - g_debug(" --> city: '%s'", rl_tmp); -#endif - *city = strip_html(rl_tmp); - - split = g_strsplit(*city, "\n", -1); - *city = g_strdup(split[0]); - g_strfreev(split); - - g_free(rl_tmp); - } else { - *city = g_strdup(""); - } - } else { - htmlDocPtr html; - xmlNodePtr node; - - html = htmlReadMemory(data, len, lookup->url, "utf-8", HTML_PARSE_NOBLANKS | HTML_PARSE_NOERROR | HTML_PARSE_NOWARNING | HTML_PARSE_NONET); - - node = xmlDocGetRootElement(html); - - if (!extract_element(lookup->name, node, name)) { -#ifdef RL_DEBUG - gchar *tmp_file = g_strdup_printf("rl-%s-%s.html", lookup->service, number); - log_save_data(tmp_file, rdata, len); - g_free(tmp_file); -#endif - goto end; - } - - if (!extract_element(lookup->street, node, street)) { -#ifdef RL_DEBUG - gchar *tmp_file = g_strdup_printf("rl-%s-%s.html", lookup->service, number); - log_save_data(tmp_file, rdata, len); - g_free(tmp_file); -#endif - goto end; - } - - if (!extract_element(lookup->city, node, city)) { -#ifdef RL_DEBUG - gchar *tmp_file = g_strdup_printf("rl-%s-%s.html", lookup->service, number); - log_save_data(tmp_file, rdata, len); - g_free(tmp_file); -#endif - goto end; - } - - if (lookup->zip_len) { - *zip = g_strndup(*city, lookup->zip_len); - strcpy(*city, *city + lookup->zip_len + 1); - } - } - - rl_contact = g_slice_new0(struct contact); - rl_contact->name = g_strdup(*name); - rl_contact->street = g_strdup(*street); - rl_contact->zip = g_strdup(*zip); - rl_contact->city = g_strdup(*city); - g_hash_table_insert(table, number, rl_contact); - result = TRUE; - - rl_tmp = g_strdup_printf("%s;%s;%s;%s;%s\n", - number, - rl_contact->name, - rl_contact->street, - rl_contact->zip, - rl_contact->city); - - file = g_build_filename(g_get_user_cache_dir(), "routermanager", "reverselookup", number, NULL); - file_save(file, rl_tmp, strlen(rl_tmp)); - g_free(file); - g_free(rl_tmp); - -#ifdef RL_DEBUG - gchar *tmp_file = g_strdup_printf("rl-found-%s-%s.html", lookup->service, number); - log_save_data(tmp_file, rdata, len); - g_free(tmp_file); -#endif - -end: - if (rdata) { - g_free(rdata); - } - - if (info) { - g_match_info_free(info); - } - - if (reg) { - g_regex_unref(reg); - } - - g_object_unref(msg); - - return result; -} - -/** - * \brief Get lookup list - * \param country_code country code - * \return lookup list - */ -GSList *get_lookup_list(const gchar *country_code) -{ - GSList *list = NULL; - - /* If country code is NULL, return current lookup list */ - if (!country_code) { - return lookup_list; - } - - if (!lookup_table) { - return NULL; - } - - /* Extract country code list from hashtable */ - list = g_hash_table_lookup(lookup_table, (gpointer) atol(country_code)); - - return list; -} - -/** - * \brief Extract country code from full number - * \param full_number full international number - * \return country code or NULL on error - */ -gchar *get_country_code(const gchar *full_number) -{ - gchar sub_string[7]; - int index; - int len = strlen(full_number); - - for (index = 6; index > 0; index--) { - if (len <= index) { - continue; - } - - strncpy(sub_string, full_number, index); - sub_string[index] = '\0'; - - if (g_hash_table_lookup(lookup_table, (gpointer) atol(sub_string))) { - return g_strdup(sub_string); - } - } - - return NULL; -} - -/** - * \brief Reverse lookup function - * \param number number to lookup - * \param name pointer to store name to - * \param street pointer to store street to - * \param zip pointer to store zip to - * \param city pointer to store city to - * \return TRUE on success, otherwise FALSE - */ -static gboolean reverse_lookup(gchar *number, gchar **name, gchar **street, gchar **zip, gchar **city) -{ - struct lookup *lookup = NULL; - GSList *list = NULL; - gchar *full_number = NULL; - gchar *country_code = NULL; - gboolean found = FALSE; - gint international_prefix_len; - struct profile *profile = profile_get_active(); - struct contact *rl_contact; - - if (!profile) { - return FALSE; - } - - /* In case we do not have a number, abort */ - if (EMPTY_STRING(number) || !isdigit(number[0])) { - return FALSE; - } - -#ifdef RL_DEBUG - g_debug("Input number '%s'", number); -#endif - - rl_contact = g_hash_table_lookup(table, number); - if (rl_contact) { - if (!EMPTY_STRING(rl_contact->name)) { - *name = g_strdup(rl_contact->name); - *street = g_strdup(rl_contact->street); - *zip = g_strdup(rl_contact->zip); - *city = g_strdup(rl_contact->city); - return TRUE; - } - - return FALSE; - } - - /* Get full number and extract country code if possible */ - full_number = call_full_number(number, TRUE); - if (!full_number) { - return FALSE; - } - -#ifdef RL_DEBUG - g_debug("full number '%s'", full_number); -#endif - - country_code = get_country_code(full_number); - g_free(full_number); - - international_prefix_len = strlen(router_get_international_prefix(profile)); -#ifdef RL_DEBUG - if (!country_code) { - g_debug("Warning: Could not get country code!!"); - } else { - g_debug("Country code: %s", country_code + international_prefix_len); - } -#endif - - if (!country_code) { - return FALSE; - } - - if (strcmp(country_code + international_prefix_len, router_get_country_code(profile_get_active()))) { - /* if country code is not the same as the router country code, loop through country list */ - list = get_lookup_list(country_code + international_prefix_len); - } else { - /* if country code is the same as the router country code, use default plugin */ - list = get_lookup_list(router_get_country_code(profile_get_active())); - } - - g_free(country_code); - - for (; list != NULL && list->data != NULL; list = list->next) { - lookup = list->data; - -#ifdef RL_DEBUG - g_debug("Using service '%s'", lookup->service); -#endif - - found = do_reverse_lookup(lookup, number, name, street, zip, city); - /* in case we found some valid data, break loop */ - if (found) { - break; - } - } - - if (!found) { - rl_contact = g_slice_new0(struct contact); - - g_hash_table_insert(table, number, rl_contact); - } - - return found; -} - -/** - * \brief Add lookup from xmlnode - * \param psNode xml node structure - */ -static void lookup_add(xmlnode *node) -{ - struct lookup *lookup = NULL; - xmlnode *child = NULL; - gchar *service = NULL; - gchar *prefix = NULL; - gchar *url = NULL; - gchar *pattern = NULL; - gchar **name = NULL; - gchar **street = NULL; - gchar **city = NULL; - gint zip_len = 0; - - child = xmlnode_get_child(node, "service"); - g_assert(child != NULL); - service = xmlnode_get_data(child); - - child = xmlnode_get_child(node, "prefix"); - g_assert(child != NULL); - prefix = xmlnode_get_data(child); - - child = xmlnode_get_child(node, "url"); - g_assert(child != NULL); - url = xmlnode_get_data(child); - - child = xmlnode_get_child(node, "pattern"); - if (!child) { - gchar *tmp; - - child = xmlnode_get_child(node, "name"); - g_assert(child != NULL); - tmp = xmlnode_get_data(child); - name = g_strsplit(tmp, " ", -1); - - child = xmlnode_get_child(node, "street"); - g_assert(child != NULL); - tmp = xmlnode_get_data(child); - street = g_strsplit(tmp, " ", -1); - - child = xmlnode_get_child(node, "city"); - g_assert(child != NULL); - tmp = xmlnode_get_data(child); - city = g_strsplit(tmp, " ", -1); - - tmp = (gchar*)xmlnode_get_attrib(child, "zip"); - if (tmp) { - zip_len = atoi(tmp); - } - } else { - pattern = xmlnode_get_data(child); - while ((child = xmlnode_get_next_twin(child)) != NULL) { - gchar *entry = xmlnode_get_data(child); - gchar *tmp = g_strconcat(pattern, "\\R", entry, NULL); - g_free(entry); - g_free(pattern); - pattern = tmp; - } - } - - lookup = g_slice_alloc0(sizeof(struct lookup)); - g_debug(" o Service: '%s', prefix: %s", service, prefix); - lookup->service = service; - lookup->prefix = prefix[ 0 ] == '1'; - lookup->url = url; - lookup->pattern = pattern; - lookup->name = name; - lookup->street = street; - lookup->city = city; - lookup->zip_len = zip_len; - - lookup_list = g_slist_prepend(lookup_list, lookup); -} - -/** - * \brief Add country code from xmlnode - * \param node xml node structure - */ -static void country_code_add(xmlnode *node) -{ - xmlnode *child = NULL; - const gchar *code = NULL; - - code = xmlnode_get_attrib(node, "code"); - g_debug("Country Code: %s", code); - - lookup_list = NULL; - - for (child = xmlnode_get_child(node, "lookup"); child != NULL; child = xmlnode_get_next_twin(child)) { - lookup_add(child); - } - lookup_list = g_slist_reverse(lookup_list); - - g_hash_table_insert(lookup_table, (gpointer) atol(code), lookup_list); -} - -static void lookup_read_cache(gchar *dir_name) -{ -#ifndef RL_DEBUG - GDir *dir; - GError *error = NULL; - const gchar *file_name; - - if (!dir_name) { - return; - } - - dir = g_dir_open(dir_name, 0, &error); - if (!dir) { - g_debug("Could not open lookup directory"); - return; - } - - while ((file_name = g_dir_read_name(dir))) { - gchar *data; - gchar *uri; - gchar **split; - struct contact *contact; - - uri = g_build_filename(dir_name, file_name, NULL); - data = file_load(uri, NULL); - g_free(uri); - - g_assert(data != NULL); - - split = g_strsplit(data, ";", -1); - - contact = g_slice_new0(struct contact); - - contact->name = g_strdup(split[1]); - contact->street = g_strdup(split[2]); - contact->zip = g_strdup(split[3]); - contact->city = g_strstrip(g_strdup(split[4])); - - g_hash_table_insert(table, g_strdup(split[0]), contact); - - g_strfreev(split); - } -#endif -} - -/** - * \brief Activate plugin - * \param plugin peas plugin - */ -static void impl_activate(PeasActivatable *plugin) -{ - RouterManagerReverseLookupPlugin *reverselookup_plugin = ROUTERMANAGER_REVERSE_LOOKUP_PLUGIN(plugin); - xmlnode *node, *child; - gchar *file; - - reverselookup_plugin->priv->table = g_hash_table_new(g_str_hash, g_str_equal); - table = g_hash_table_new(g_str_hash, g_str_equal); - - file = g_build_filename(g_get_home_dir(), "lookup.xml", NULL); - if (!g_file_test(file, G_FILE_TEST_EXISTS)) { - g_free(file); - - file = g_build_filename(get_directory(ROUTERMANAGER_PLUGINS), "reverselookup", "lookup.xml", NULL); - } - - node = read_xml_from_file(file); - if (!node) { - g_debug("Could not read %s", file); - g_free(file); - return; - } - g_debug("ReverseLookup: '%s'", file); - g_free(file); - - /* Create new lookup hash table */ - lookup_table = g_hash_table_new(NULL, NULL); - - for (child = xmlnode_get_child(node, "country"); child != NULL; child = xmlnode_get_next_twin(child)) { - /* Add new country code lists to hash table */ - country_code_add(child); - } - - file = g_build_filename(g_get_user_cache_dir(), "routermanager", "reverselookup", NULL); - g_mkdir_with_parents(file, 0770); - lookup_read_cache(file); - g_free(file); - - xmlnode_free(node); - - routermanager_lookup_register(reverse_lookup); -} - -/** - * \brief Deactivate plugin - * \param plugin peas plugin - */ -static void impl_deactivate(PeasActivatable *plugin) -{ - RouterManagerReverseLookupPlugin *reverselookup_plugin = ROUTERMANAGER_REVERSE_LOOKUP_PLUGIN(plugin); - - /* If signal handler is connected: disconnect */ - if (g_signal_handler_is_connected(G_OBJECT(app_object), reverselookup_plugin->priv->signal_id)) { - g_signal_handler_disconnect(G_OBJECT(app_object), reverselookup_plugin->priv->signal_id); - } -} diff -Nru roger-router-1.8.14/libroutermanager/plugins/reverselookup/reverselookup.h roger-router-2.1.6/libroutermanager/plugins/reverselookup/reverselookup.h --- roger-router-1.8.14/libroutermanager/plugins/reverselookup/reverselookup.h 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/reverselookup/reverselookup.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,38 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef ROUTERMANAGER_REVERSELOOKUP_H -#define ROUTERMANAGER_REVERSELOOKUP_H - -struct lookup { - gboolean prefix; - gchar *service; - gchar *url; - gchar *pattern; - gchar **name; - gchar **street; - gchar **city; - gint zip_len; -}; - -G_BEGIN_DECLS - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/plugins/reverselookup/reverselookup.plugin.in roger-router-2.1.6/libroutermanager/plugins/reverselookup/reverselookup.plugin.in --- roger-router-1.8.14/libroutermanager/plugins/reverselookup/reverselookup.plugin.in 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/reverselookup/reverselookup.plugin.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,8 +0,0 @@ -[Plugin] -Module=reverselookup -_Name=Reverse Lookup -_Description=Reverse lookup through 3rd-party -Authors=Jan-Michael Brummer -Copyright=Copyright © 2013 Jan-Michael Brummer -Website=http://www.tabos.org/ -Help=http://www.tabos.org/forum/ diff -Nru roger-router-1.8.14/libroutermanager/plugins/reverselookup/share/lookup.xml roger-router-2.1.6/libroutermanager/plugins/reverselookup/share/lookup.xml --- roger-router-1.8.14/libroutermanager/plugins/reverselookup/share/lookup.xml 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/reverselookup/share/lookup.xml 1970-01-01 00:00:00.000000000 +0000 @@ -1,72 +0,0 @@ - - - - - - gebeld.nl - 0 - http://www.gebeld.nl/content.asp?zapp=zapp&land=&zoek=Nummer&searchfield1=fullnumber&searchfield2=&queryfield1=%NUMBER%&queryfield2=&fuzzy=&volll=&database=open&tld= - </div> - - </td></tr> - \s+<tr\s+bgcolor="#fee3ad">\s+<TD></TD>\s+<td\s+width="73%">&nbsp;(?P<name>.*)</td>\s+<TD></TD></tr> - \s+<tr\s+bgcolor="#fee3ad">\s+<TD></TD>\s+<td\s+width="73%">&nbsp;(?P<street>.*)</td>\s+<TD></TD></tr> - \s+<tr\s+bgcolor="#fee3ad">\s+<TD></TD>\s+<td\s+width="73%">&nbsp;(?P<zip>.*)&nbsp;(?P<city>.*)</td>\s+<TD></TD></tr> - \s+<tr\s+bgcolor="#fee3ad">\s+<TD></TD>\s+<td\s+width="73%">&nbsp;(?P<misc>.*)</td>\s+<TD></TD></tr> - - - gevonden.cc - 0 - http://www.gevonden.cc/telefoonnummer/%NUMBER%/lastname/ - <div\sclass="resultaat">&nbsp;<b>(?P<lastname>.*),(?P<firstname>.*)&nbsp;</b><br\s/>&nbsp;(?P<street>.*)&nbsp;<br\s/>&nbsp;(?P<zip>.*)&nbsp;(?P<city>.*)<br\s/> - - - nummerzoeker.com - 0 - http://www.nummerzoeker.com/?color=white&lastname=&str=&hnr=&pc=&pl=&phone=%NUMBER%&maxrows=10&sort=3&search=Zoeken - \s+<tr\sclass="c0"> - \s+<td\sclass="nowrap"> - \s+</td> - \s+<td\sclass="nowrap">.*</td> - \s+<td>(?P<lastname>.*),(?P<firstname>.*)</td> - \s+<td\sclass="nowrap">(?P<street>.*)</td> - \s+<td\sclass="nowrap">(?P<zip>.*)</td> - \s+<td\sclass="nowrap">(?P<city>.*)</td> - \s+<td\sclass="nowrap"> - - - - - 11880.com - 0 - http://www.11880.com/rueckwaertssuche/%NUMBER% - h1 itemprop name - div itemprop streetAddress - div itemprop addressLocality - - - klicktel.de - 0 - http://www.klicktel.de/rueckwaertssuche/%NUMBER% - h1 itemprop name - div itemprop streetAddress - div itemprop addressLocality - - - - - diff -Nru roger-router-1.8.14/libroutermanager/plugins/secret/Makefile.am roger-router-2.1.6/libroutermanager/plugins/secret/Makefile.am --- roger-router-1.8.14/libroutermanager/plugins/secret/Makefile.am 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/secret/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -plugin_in_files = secret.plugin - -include ../Makefile.plugins - -plugindir = $(libdir)/routermanager/secret - -plugin_LTLIBRARIES = libsecret.la - -libsecret_la_SOURCES = \ - secret.c \ - secret.h - -libsecret_la_CFLAGS = $(plugin_cflags) $(SECRET_CFLAGS) -libsecret_la_LDFLAGS = $(plugin_ldflags) $(SECRET_LIBS) -libsecret_la_LIBADD = $(plugin_libadd) $(SECRET_LIBS) diff -Nru roger-router-1.8.14/libroutermanager/plugins/secret/Makefile.in roger-router-2.1.6/libroutermanager/plugins/secret/Makefile.in --- roger-router-1.8.14/libroutermanager/plugins/secret/Makefile.in 2015-12-10 21:33:44.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/secret/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,800 +0,0 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2014 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@ - - -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@ -@WIN32_TRUE@am__append_1 = -L$(top_srcdir)/libroutermanager/.libs -lroutermanager -no-undefined -@MACOSX_TRUE@am__append_2 = -L$(top_srcdir)/libroutermanager/.libs -lroutermanager -no-undefined -subdir = libroutermanager/plugins/secret -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ - $(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)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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)$(plugindir)" "$(DESTDIR)$(plugindir)" -LTLIBRARIES = $(plugin_LTLIBRARIES) -am__DEPENDENCIES_1 = -am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) -libsecret_la_DEPENDENCIES = $(am__DEPENDENCIES_2) \ - $(am__DEPENDENCIES_1) -am_libsecret_la_OBJECTS = libsecret_la-secret.lo -libsecret_la_OBJECTS = $(am_libsecret_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 = -libsecret_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libsecret_la_CFLAGS) \ - $(CFLAGS) $(libsecret_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) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -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 = $(libsecret_la_SOURCES) -DIST_SOURCES = $(libsecret_la_SOURCES) -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -DATA = $(plugin_DATA) -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)` -ETAGS = etags -CTAGS = ctags -am__DIST_COMMON = $(srcdir)/../Makefile.plugins $(srcdir)/Makefile.in \ - $(top_srcdir)/depcomp -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -ALL_LINGUAS = @ALL_LINGUAS@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@ -APPINDICATOR_LIBS = @APPINDICATOR_LIBS@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAPI_CFLAGS = @CAPI_CFLAGS@ -CAPI_LIBS = @CAPI_LIBS@ -CATALOGS = @CATALOGS@ -CATOBJEXT = @CATOBJEXT@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DATADIRNAME = @DATADIRNAME@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -EBOOK_CFLAGS = @EBOOK_CFLAGS@ -EBOOK_LIBS = @EBOOK_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXTRA_CFLAGS = @EXTRA_CFLAGS@ -EXTRA_LIBS = @EXTRA_LIBS@ -FAX_SPOOLER_CFLAGS = @FAX_SPOOLER_CFLAGS@ -FAX_SPOOLER_LIBS = @FAX_SPOOLER_LIBS@ -FGREP = @FGREP@ -GDATA_CFLAGS = @GDATA_CFLAGS@ -GDATA_LIBS = @GDATA_LIBS@ -GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMOFILES = @GMOFILES@ -GMSGFMT = @GMSGFMT@ -GREP = @GREP@ -GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@ -GSTREAMER1_CFLAGS = @GSTREAMER1_CFLAGS@ -GSTREAMER1_LIBS = @GSTREAMER1_LIBS@ -GTK_CFLAGS = @GTK_CFLAGS@ -GTK_LIBS = @GTK_LIBS@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INSTOBJEXT = @INSTOBJEXT@ -INTLLIBS = @INTLLIBS@ -INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ -INTLTOOL_MERGE = @INTLTOOL_MERGE@ -INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ -INTLTOOL_PERL = @INTLTOOL_PERL@ -INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ -INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ -INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ -INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ -INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ -INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ -KWALLET_CFLAGS = @KWALLET_CFLAGS@ -KWALLET_LIBS = @KWALLET_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@ -LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@ -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@ -MKINSTALLDIRS = @MKINSTALLDIRS@ -MSGFMT = @MSGFMT@ -MSGFMT_OPTS = @MSGFMT_OPTS@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OS_CFLAGS = @OS_CFLAGS@ -OS_LIBS = @OS_LIBS@ -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@ -PEAS_CFLAGS = @PEAS_CFLAGS@ -PEAS_GTK_CFLAGS = @PEAS_GTK_CFLAGS@ -PEAS_GTK_LIBS = @PEAS_GTK_LIBS@ -PEAS_LIBS = @PEAS_LIBS@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POFILES = @POFILES@ -PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@ -PORTAUDIO_LIBS = @PORTAUDIO_LIBS@ -POSUB = @POSUB@ -PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ -PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ -PULSEAUDIO_CFLAGS = @PULSEAUDIO_CFLAGS@ -PULSEAUDIO_LIBS = @PULSEAUDIO_LIBS@ -RANLIB = @RANLIB@ -ROGER_VERSION_MAJOR = @ROGER_VERSION_MAJOR@ -ROGER_VERSION_MICRO = @ROGER_VERSION_MICRO@ -ROGER_VERSION_MINOR = @ROGER_VERSION_MINOR@ -SECRET_CFLAGS = @SECRET_CFLAGS@ -SECRET_LIBS = @SECRET_LIBS@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SOUP_CFLAGS = @SOUP_CFLAGS@ -SOUP_LIBS = @SOUP_LIBS@ -SPANDSP_CFLAGS = @SPANDSP_CFLAGS@ -SPANDSP_LIBS = @SPANDSP_LIBS@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -WINDRES = @WINDRES@ -XGETTEXT = @XGETTEXT@ -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@ -found_cc = @found_cc@ -gsettingsschemadir = @gsettingsschemadir@ -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@ -intltool__v_merge_options_ = @intltool__v_merge_options_@ -intltool__v_merge_options_0 = @intltool__v_merge_options_0@ -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@ -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@ -plugin_in_files = secret.plugin -plugin_DATA = $(plugin_in_files:.plugin.in=.plugin) -CLEANFILES = $(plugin_DATA) -DISTCLEANFILES = $(plugin_DATA) -EXTRA_DIST = $(plugin_in_files).in -AM_CFLAGS = \ - $(PEAS_CFLAGS) \ - $(OS_CFLAGS) \ - -I$(top_srcdir)/ - -plugin_cflags = \ - $(PEAS_CFLAGS) \ - $(OS_CFLAGS) \ - -I$(top_srcdir)/ - -plugin_ldflags = -export-dynamic -no-undefined -avoid-version -module \ - -shared $(PLUGIN_LIBTOOL_FLAGS) $(am__append_1) \ - $(am__append_2) -plugin_libadd = \ - $(PEAS_LIBS) \ - $(OS_LIBS) - -plugindir = $(libdir)/routermanager/secret -plugin_LTLIBRARIES = libsecret.la -libsecret_la_SOURCES = \ - secret.c \ - secret.h - -libsecret_la_CFLAGS = $(plugin_cflags) $(SECRET_CFLAGS) -libsecret_la_LDFLAGS = $(plugin_ldflags) $(SECRET_LIBS) -libsecret_la_LIBADD = $(plugin_libadd) $(SECRET_LIBS) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../Makefile.plugins $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libroutermanager/plugins/secret/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign libroutermanager/plugins/secret/Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; -$(srcdir)/../Makefile.plugins $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES) - @$(NORMAL_INSTALL) - @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || 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)$(plugindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(plugindir)" || exit 1; \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(plugindir)'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(plugindir)"; \ - } - -uninstall-pluginLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || list=; \ - for p in $$list; do \ - $(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(plugindir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(plugindir)/$$f"; \ - done - -clean-pluginLTLIBRARIES: - -test -z "$(plugin_LTLIBRARIES)" || rm -f $(plugin_LTLIBRARIES) - @list='$(plugin_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}; \ - } - -libsecret.la: $(libsecret_la_OBJECTS) $(libsecret_la_DEPENDENCIES) $(EXTRA_libsecret_la_DEPENDENCIES) - $(AM_V_CCLD)$(libsecret_la_LINK) -rpath $(plugindir) $(libsecret_la_OBJECTS) $(libsecret_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsecret_la-secret.Plo@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ -@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -libsecret_la-secret.lo: secret.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libsecret_la_CFLAGS) $(CFLAGS) -MT libsecret_la-secret.lo -MD -MP -MF $(DEPDIR)/libsecret_la-secret.Tpo -c -o libsecret_la-secret.lo `test -f 'secret.c' || echo '$(srcdir)/'`secret.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libsecret_la-secret.Tpo $(DEPDIR)/libsecret_la-secret.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='secret.c' object='libsecret_la-secret.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libsecret_la_CFLAGS) $(CFLAGS) -c -o libsecret_la-secret.lo `test -f 'secret.c' || echo '$(srcdir)/'`secret.c - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-pluginDATA: $(plugin_DATA) - @$(NORMAL_INSTALL) - @list='$(plugin_DATA)'; test -n "$(plugindir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(plugindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(plugindir)" || 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)$(plugindir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(plugindir)" || exit $$?; \ - done - -uninstall-pluginDATA: - @$(NORMAL_UNINSTALL) - @list='$(plugin_DATA)'; test -n "$(plugindir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(plugindir)'; $(am__uninstall_files_from_dir) - -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-am -TAGS: tags - -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - set x; \ - here=`pwd`; \ - $(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-am - -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" -cscopelist: cscopelist-am - -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 - -distdir: $(DISTFILES) - @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 -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) $(DATA) -installdirs: - for dir in "$(DESTDIR)$(plugindir)" "$(DESTDIR)$(plugindir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -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) - -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." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-pluginLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-pluginDATA install-pluginLTLIBRARIES - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-pluginDATA uninstall-pluginLTLIBRARIES - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-pluginLTLIBRARIES cscopelist-am ctags \ - ctags-am distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir 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-man install-pdf install-pdf-am \ - install-pluginDATA install-pluginLTLIBRARIES install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs 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-pluginDATA uninstall-pluginLTLIBRARIES - -.PRECIOUS: Makefile - -%.plugin: %.plugin.in - $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache - -# 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: diff -Nru roger-router-1.8.14/libroutermanager/plugins/secret/secret.c roger-router-2.1.6/libroutermanager/plugins/secret/secret.c --- roger-router-1.8.14/libroutermanager/plugins/secret/secret.c 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/secret/secret.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,162 +0,0 @@ -/** - * Roger Router - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This file is part of Roger Router. - * - * 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; version 2 only. - * - * 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 . - */ - -#include - -#include -#include -#include - -#include - -#define ROUTERMANAGER_TYPE_SECRET_PLUGIN (routermanager_secret_plugin_get_type ()) -#define ROUTERMANAGER_SECRET_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST((o), ROUTERMANAGER_TYPE_SECRET_PLUGIN, RouterManagerSecretPlugin)) - -typedef struct { - guint signal_id; -} RouterManagerSecretPluginPrivate; - -ROUTERMANAGER_PLUGIN_REGISTER(ROUTERMANAGER_TYPE_SECRET_PLUGIN, RouterManagerSecretPlugin, routermanager_secret_plugin) - -/** - * \brief Get secret schema for this plugin - * \return secret schema layout - */ -const SecretSchema *secret_get_schema(void) -{ - static const SecretSchema the_schema = { - "org.tabos.roger.Password", SECRET_SCHEMA_NONE, - { - {"profile", SECRET_SCHEMA_ATTRIBUTE_STRING}, - {"name", SECRET_SCHEMA_ATTRIBUTE_STRING}, - {"NULL", 0}, - } - }; - - return &the_schema; -} - -/** - * \brief Store password - * \param profile profile pointer - * \param name password name - * \param password password - */ -static void secret_store_password(struct profile *profile, const gchar *name, const gchar *password) -{ - GError *error = NULL; - - secret_password_store_sync(SECRET_SCHEMA, SECRET_COLLECTION_DEFAULT, - "Roger Router password", password, NULL, &error, - "profile", profile ? profile->name : "fallback", - "name", name, - NULL); - - if (error != NULL) { - /* ... handle the failure here */ - g_debug("could not store password: %s", error->message); - g_error_free(error); - } else { - /* ... do something now that the password has been stored */ - } -} - -/** - * \brief Get password - * \param profile profile pointer - * \param name password name - * \return password - */ -static gchar *secret_get_password(struct profile *profile, const gchar *name) -{ - GError *error = NULL; - gchar *password = secret_password_lookup_sync(SECRET_SCHEMA, NULL, &error, - "profile", profile ? profile->name : "fallback", - "name", name, - NULL); - - if (error != NULL) { - /* ... handle the failure here */ - g_debug("could not get password: %s", error->message); - g_error_free(error); - } else { - /* ... do something now that the password has been stored */ - } - - return password; -} - -/** - * \brief Remove password - * \param profile profile pointer - * \param name password name - * \return TRUE on success, otherwise FALSE - */ -static gboolean secret_remove_password(struct profile *profile, const gchar *name) -{ - GError *error = NULL; - gboolean removed = secret_password_clear_sync(SECRET_SCHEMA, NULL, &error, - "profile", profile ? profile->name : "fallback", - "name", name, - NULL); - - if (error != NULL) { - /* ... handle the failure here */ - g_debug("could not store password: %s", error->message); - g_error_free(error); - } else { - /* ... do something now that the password has been stored */ - } - - return removed; -} - -struct password_manager secret = { - "libsecret", - secret_store_password, - secret_get_password, - secret_remove_password, -}; - -/** - * \brief Activate peas plugin - register libsecret password manager if present - * \param plugin peas plugin - */ -void impl_activate(PeasActivatable *plugin) -{ - g_debug("Register libsecret password manager plugin"); - password_manager_register(&secret); - -#ifdef SECRET_TEST - g_debug("Starting secret\n"); - - secret_store_password(profile_get_active(), "Test", "testpassword"); - - g_debug("Got test password: '%s'", secret_get_password(profile_get_active(), "Test")); - secret_remove_password(profile_get_active(), "Test"); -#endif -} - -/** - * \brief Deactivate peas plugin - * \param plugin peas plugin - */ -void impl_deactivate(PeasActivatable *plugin) -{ -} diff -Nru roger-router-1.8.14/libroutermanager/plugins/secret/secret.h roger-router-2.1.6/libroutermanager/plugins/secret/secret.h --- roger-router-1.8.14/libroutermanager/plugins/secret/secret.h 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/secret/secret.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,27 +0,0 @@ -/** - * Roger Router - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This file is part of Roger Router. - * - * 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; version 2 only. - * - * 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 . - */ - -#ifndef SECRET_H -#define SECRET_H - -const SecretSchema *secret_get_schema(void) G_GNUC_CONST; - -#define SECRET_SCHEMA secret_get_schema() - -#endif diff -Nru roger-router-1.8.14/libroutermanager/plugins/secret/secret.plugin.in roger-router-2.1.6/libroutermanager/plugins/secret/secret.plugin.in --- roger-router-1.8.14/libroutermanager/plugins/secret/secret.plugin.in 2015-11-05 21:19:30.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/secret/secret.plugin.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,9 +0,0 @@ -[Plugin] -Module=secret -_Name=Secret -_Description=Secret password storage -Authors=Jan-Michael Brummer -Copyright=Copyright © 2013 Jan-Michael Brummer -Website=http://www.tabos.org/ -Help=http://www.tabos.org/forum/ -Builtin=true diff -Nru roger-router-1.8.14/libroutermanager/plugins/webjournal/Makefile.am roger-router-2.1.6/libroutermanager/plugins/webjournal/Makefile.am --- roger-router-1.8.14/libroutermanager/plugins/webjournal/Makefile.am 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/webjournal/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,23 +0,0 @@ -plugin_in_files = webjournal.plugin - -include ../Makefile.plugins - -plugindir = $(libdir)/routermanager/webjournal - -plugin_LTLIBRARIES = libwebjournal.la - -sharedir = $(libdir)/routermanager/webjournal -share_DATA = share/header.html -share_DATA += share/entry.html -share_DATA += share/footer.html -share_DATA += share/style.css - -EXTRA_DIST += $(share_DATA) - -libwebjournal_la_SOURCES = \ - webjournal.c \ - webjournal.h - -libwebjournal_la_CFLAGS = $(plugin_cflags) -DPLUGIN_DIR=\"$(plugindir)\" $(SOUP_CFLAGS) -libwebjournal_la_LDFLAGS = $(plugin_ldflags) -libwebjournal_la_LIBADD = $(plugin_libadd) $(SOUP_LIBADD) diff -Nru roger-router-1.8.14/libroutermanager/plugins/webjournal/Makefile.in roger-router-2.1.6/libroutermanager/plugins/webjournal/Makefile.in --- roger-router-1.8.14/libroutermanager/plugins/webjournal/Makefile.in 2015-12-10 21:33:44.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/webjournal/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,828 +0,0 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2014 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@ - - -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@ -@WIN32_TRUE@am__append_1 = -L$(top_srcdir)/libroutermanager/.libs -lroutermanager -no-undefined -@MACOSX_TRUE@am__append_2 = -L$(top_srcdir)/libroutermanager/.libs -lroutermanager -no-undefined -subdir = libroutermanager/plugins/webjournal -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ - $(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)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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)$(plugindir)" "$(DESTDIR)$(plugindir)" \ - "$(DESTDIR)$(sharedir)" -LTLIBRARIES = $(plugin_LTLIBRARIES) -am__DEPENDENCIES_1 = -am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) -libwebjournal_la_DEPENDENCIES = $(am__DEPENDENCIES_2) -am_libwebjournal_la_OBJECTS = libwebjournal_la-webjournal.lo -libwebjournal_la_OBJECTS = $(am_libwebjournal_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 = -libwebjournal_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ - $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ - $(libwebjournal_la_CFLAGS) $(CFLAGS) \ - $(libwebjournal_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) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -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 = $(libwebjournal_la_SOURCES) -DIST_SOURCES = $(libwebjournal_la_SOURCES) -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -DATA = $(plugin_DATA) $(share_DATA) -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)` -ETAGS = etags -CTAGS = ctags -am__DIST_COMMON = $(srcdir)/../Makefile.plugins $(srcdir)/Makefile.in \ - $(top_srcdir)/depcomp -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -ALL_LINGUAS = @ALL_LINGUAS@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@ -APPINDICATOR_LIBS = @APPINDICATOR_LIBS@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAPI_CFLAGS = @CAPI_CFLAGS@ -CAPI_LIBS = @CAPI_LIBS@ -CATALOGS = @CATALOGS@ -CATOBJEXT = @CATOBJEXT@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DATADIRNAME = @DATADIRNAME@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -EBOOK_CFLAGS = @EBOOK_CFLAGS@ -EBOOK_LIBS = @EBOOK_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXTRA_CFLAGS = @EXTRA_CFLAGS@ -EXTRA_LIBS = @EXTRA_LIBS@ -FAX_SPOOLER_CFLAGS = @FAX_SPOOLER_CFLAGS@ -FAX_SPOOLER_LIBS = @FAX_SPOOLER_LIBS@ -FGREP = @FGREP@ -GDATA_CFLAGS = @GDATA_CFLAGS@ -GDATA_LIBS = @GDATA_LIBS@ -GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMOFILES = @GMOFILES@ -GMSGFMT = @GMSGFMT@ -GREP = @GREP@ -GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@ -GSTREAMER1_CFLAGS = @GSTREAMER1_CFLAGS@ -GSTREAMER1_LIBS = @GSTREAMER1_LIBS@ -GTK_CFLAGS = @GTK_CFLAGS@ -GTK_LIBS = @GTK_LIBS@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INSTOBJEXT = @INSTOBJEXT@ -INTLLIBS = @INTLLIBS@ -INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ -INTLTOOL_MERGE = @INTLTOOL_MERGE@ -INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ -INTLTOOL_PERL = @INTLTOOL_PERL@ -INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ -INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ -INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ -INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ -INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ -INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ -KWALLET_CFLAGS = @KWALLET_CFLAGS@ -KWALLET_LIBS = @KWALLET_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@ -LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@ -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@ -MKINSTALLDIRS = @MKINSTALLDIRS@ -MSGFMT = @MSGFMT@ -MSGFMT_OPTS = @MSGFMT_OPTS@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OS_CFLAGS = @OS_CFLAGS@ -OS_LIBS = @OS_LIBS@ -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@ -PEAS_CFLAGS = @PEAS_CFLAGS@ -PEAS_GTK_CFLAGS = @PEAS_GTK_CFLAGS@ -PEAS_GTK_LIBS = @PEAS_GTK_LIBS@ -PEAS_LIBS = @PEAS_LIBS@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POFILES = @POFILES@ -PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@ -PORTAUDIO_LIBS = @PORTAUDIO_LIBS@ -POSUB = @POSUB@ -PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ -PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ -PULSEAUDIO_CFLAGS = @PULSEAUDIO_CFLAGS@ -PULSEAUDIO_LIBS = @PULSEAUDIO_LIBS@ -RANLIB = @RANLIB@ -ROGER_VERSION_MAJOR = @ROGER_VERSION_MAJOR@ -ROGER_VERSION_MICRO = @ROGER_VERSION_MICRO@ -ROGER_VERSION_MINOR = @ROGER_VERSION_MINOR@ -SECRET_CFLAGS = @SECRET_CFLAGS@ -SECRET_LIBS = @SECRET_LIBS@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SOUP_CFLAGS = @SOUP_CFLAGS@ -SOUP_LIBS = @SOUP_LIBS@ -SPANDSP_CFLAGS = @SPANDSP_CFLAGS@ -SPANDSP_LIBS = @SPANDSP_LIBS@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -WINDRES = @WINDRES@ -XGETTEXT = @XGETTEXT@ -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@ -found_cc = @found_cc@ -gsettingsschemadir = @gsettingsschemadir@ -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@ -intltool__v_merge_options_ = @intltool__v_merge_options_@ -intltool__v_merge_options_0 = @intltool__v_merge_options_0@ -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@ -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@ -plugin_in_files = webjournal.plugin -plugin_DATA = $(plugin_in_files:.plugin.in=.plugin) -CLEANFILES = $(plugin_DATA) -DISTCLEANFILES = $(plugin_DATA) -EXTRA_DIST = $(plugin_in_files).in $(share_DATA) -AM_CFLAGS = \ - $(PEAS_CFLAGS) \ - $(OS_CFLAGS) \ - -I$(top_srcdir)/ - -plugin_cflags = \ - $(PEAS_CFLAGS) \ - $(OS_CFLAGS) \ - -I$(top_srcdir)/ - -plugin_ldflags = -export-dynamic -no-undefined -avoid-version -module \ - -shared $(PLUGIN_LIBTOOL_FLAGS) $(am__append_1) \ - $(am__append_2) -plugin_libadd = \ - $(PEAS_LIBS) \ - $(OS_LIBS) - -plugindir = $(libdir)/routermanager/webjournal -plugin_LTLIBRARIES = libwebjournal.la -sharedir = $(libdir)/routermanager/webjournal -share_DATA = share/header.html share/entry.html share/footer.html \ - share/style.css -libwebjournal_la_SOURCES = \ - webjournal.c \ - webjournal.h - -libwebjournal_la_CFLAGS = $(plugin_cflags) -DPLUGIN_DIR=\"$(plugindir)\" $(SOUP_CFLAGS) -libwebjournal_la_LDFLAGS = $(plugin_ldflags) -libwebjournal_la_LIBADD = $(plugin_libadd) $(SOUP_LIBADD) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../Makefile.plugins $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libroutermanager/plugins/webjournal/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign libroutermanager/plugins/webjournal/Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; -$(srcdir)/../Makefile.plugins $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES) - @$(NORMAL_INSTALL) - @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || 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)$(plugindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(plugindir)" || exit 1; \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(plugindir)'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(plugindir)"; \ - } - -uninstall-pluginLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || list=; \ - for p in $$list; do \ - $(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(plugindir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(plugindir)/$$f"; \ - done - -clean-pluginLTLIBRARIES: - -test -z "$(plugin_LTLIBRARIES)" || rm -f $(plugin_LTLIBRARIES) - @list='$(plugin_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}; \ - } - -libwebjournal.la: $(libwebjournal_la_OBJECTS) $(libwebjournal_la_DEPENDENCIES) $(EXTRA_libwebjournal_la_DEPENDENCIES) - $(AM_V_CCLD)$(libwebjournal_la_LINK) -rpath $(plugindir) $(libwebjournal_la_OBJECTS) $(libwebjournal_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libwebjournal_la-webjournal.Plo@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ -@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -libwebjournal_la-webjournal.lo: webjournal.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwebjournal_la_CFLAGS) $(CFLAGS) -MT libwebjournal_la-webjournal.lo -MD -MP -MF $(DEPDIR)/libwebjournal_la-webjournal.Tpo -c -o libwebjournal_la-webjournal.lo `test -f 'webjournal.c' || echo '$(srcdir)/'`webjournal.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libwebjournal_la-webjournal.Tpo $(DEPDIR)/libwebjournal_la-webjournal.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='webjournal.c' object='libwebjournal_la-webjournal.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwebjournal_la_CFLAGS) $(CFLAGS) -c -o libwebjournal_la-webjournal.lo `test -f 'webjournal.c' || echo '$(srcdir)/'`webjournal.c - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-pluginDATA: $(plugin_DATA) - @$(NORMAL_INSTALL) - @list='$(plugin_DATA)'; test -n "$(plugindir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(plugindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(plugindir)" || 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)$(plugindir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(plugindir)" || exit $$?; \ - done - -uninstall-pluginDATA: - @$(NORMAL_UNINSTALL) - @list='$(plugin_DATA)'; test -n "$(plugindir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(plugindir)'; $(am__uninstall_files_from_dir) -install-shareDATA: $(share_DATA) - @$(NORMAL_INSTALL) - @list='$(share_DATA)'; test -n "$(sharedir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(sharedir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(sharedir)" || 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)$(sharedir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(sharedir)" || exit $$?; \ - done - -uninstall-shareDATA: - @$(NORMAL_UNINSTALL) - @list='$(share_DATA)'; test -n "$(sharedir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(sharedir)'; $(am__uninstall_files_from_dir) - -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-am -TAGS: tags - -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - set x; \ - here=`pwd`; \ - $(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-am - -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" -cscopelist: cscopelist-am - -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 - -distdir: $(DISTFILES) - @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 -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) $(DATA) -installdirs: - for dir in "$(DESTDIR)$(plugindir)" "$(DESTDIR)$(plugindir)" "$(DESTDIR)$(sharedir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -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) - -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." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-pluginLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-pluginDATA install-pluginLTLIBRARIES \ - install-shareDATA - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-pluginDATA uninstall-pluginLTLIBRARIES \ - uninstall-shareDATA - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-pluginLTLIBRARIES cscopelist-am ctags \ - ctags-am distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir 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-man install-pdf install-pdf-am \ - install-pluginDATA install-pluginLTLIBRARIES install-ps \ - install-ps-am install-shareDATA install-strip installcheck \ - installcheck-am installdirs 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-pluginDATA \ - uninstall-pluginLTLIBRARIES uninstall-shareDATA - -.PRECIOUS: Makefile - -%.plugin: %.plugin.in - $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache - -# 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: diff -Nru roger-router-1.8.14/libroutermanager/plugins/webjournal/share/entry.html roger-router-2.1.6/libroutermanager/plugins/webjournal/share/entry.html --- roger-router-1.8.14/libroutermanager/plugins/webjournal/share/entry.html 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/webjournal/share/entry.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,9 +0,0 @@ - - %DATETIME% - %NAME% - %COMPANY% - %NUMBER% - %CITY% - %EXTENSION% - %LINE% - %DURATION% diff -Nru roger-router-1.8.14/libroutermanager/plugins/webjournal/share/footer.html roger-router-2.1.6/libroutermanager/plugins/webjournal/share/footer.html --- roger-router-1.8.14/libroutermanager/plugins/webjournal/share/footer.html 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/webjournal/share/footer.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,3 +0,0 @@ - - - diff -Nru roger-router-1.8.14/libroutermanager/plugins/webjournal/share/header.html roger-router-2.1.6/libroutermanager/plugins/webjournal/share/header.html --- roger-router-1.8.14/libroutermanager/plugins/webjournal/share/header.html 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/webjournal/share/header.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,90 +0,0 @@ - - - - Journal - - - - -

Roger Router Journal

- - - - - - - - - - diff -Nru roger-router-1.8.14/libroutermanager/plugins/webjournal/share/style.css roger-router-2.1.6/libroutermanager/plugins/webjournal/share/style.css --- roger-router-1.8.14/libroutermanager/plugins/webjournal/share/style.css 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/webjournal/share/style.css 1970-01-01 00:00:00.000000000 +0000 @@ -1,71 +0,0 @@ -@charset "utf-8"; - -html, body { - height:101%; -} - -body { - font-family:'Arial'; - font-size:0.938em; - line-height:1.5em; -} - -table { - margin:0 auto; - boder-collapse:collapse; -} - -th { - background:#ededed; - color:#a7aba7; - padding:6px 9px; - font-weight:normal; - margin:0 !important; - cursor:pointer; -} -th:hover { - color:#4d6067; -} - -tr:first-child th:first-child { - -webkit-border-top-left-radius: 10px; - -moz-border-radius-topleft: 10px; - border-top-left-radius: 10px; -} - -tr:first-child th:last-child { - -webkit-border-top-right-radius: 10px; - -moz-border-radius-topright: 10px; - border-top-right-radius: 10px; -} - -tr:nth-child(odd) td { - background-color:#fff; - color:#000; -} - -tr:nth-child(even) td { - background-color:#f8f8f8; - color:#222; -} - -td { - padding:7px 9px; -} - -td.in, td.out, td.missed { - background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAABcRgAAXEYBFJRDQQAAAAd0SU1FB9kFBwshBCt1bpUAAAJCSURBVDjLrZTPS1RRFMc/5755M4PmDImCY1kbpyKo1KCFMAy0NGgttG2V/0uLQFoFEbRp06ptMJi2s1lI0Q8lFLM0LAfnh/reOS3evDczZtGiu7qHc873fO8533vEzACQuSUHlIApIM/fzx6wDCzY/LQCiJkhc0tngKfZtF8uDOfJ9WcR5EQEw6jVW2zt7NE6PKoAd2x+elO4t+iAl2Mjg+XSZBHEI1BQAzPAovTEBnwPPBeyWP3ExtfdCnAzBZRO9WXKN65eZLsuqCqhgmqUaGaEIah2wFQjwCvFIj9q1fJ+46DkgKnx86P8bP4dxIlwOiuoRnYQGOs7xrlCAWDKAblcLt9DP35CDOhEeHjL4/msx+VhSRiZGen0AEDeAThxhGrtalFQGEZ2qMZkQZgYgX4frhckKaIKag4AB6D2ZxCAlW/Giw/R/f333lht00/F6PE5DqIKvsC1ESFQqG5Zp6BaxCRm1OmJJc0cywszRUfGEx7MOM7m4PEbpda0ntg4NxUzUe1M6MKQ8Oi2R8aDu5MwloeVbWP+tXZi2wXN6wIyiyamZhjQOupUGuqHJ1Xl/ivlMLCon9YGSQTb1aMQS0a/tmvMPgvo84V328ZhEPnioYRhJ9a6ml1rNuv42XSiWlVjbbfNtEucsc+6FB6GDYA9Byyvrm8w0KXaOLlH4Sf4BgeErZ1NgOUUsLDfaFVWP38sT1wap95yHBxFn5aYiUmbiWAGGV/I9Rlv11bZb7QqwMJva2T0H9fIl+Nr5H8ttl+JvsqF9iOBLgAAAABJRU5ErkJggg==); - background-repeat:no-repeat; - background-position:center; - background-size:auto; -} - -td.out { - background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAAEhyb7BAAAACXBIWXMAAFxGAABcRgEUlENBAAAACXRFWHRDb21tZW50AACJKo0GAAACuUlEQVR4nH1Uz08TQRjd9NR2ty0EOHExHozeuHvo0ZP/gnePvZvYg4nBeILwQ6AUKC3FUhGNwQu4QBANbaW/aAHBCDUSjcSQGIyJec77dhZoRCeZtDvz5u33vfdmDQDGvUVvlL/yJ1ENIbVpweBKqhyEWuzkToS7xkjRQroWhDGUs8Bt2RovW5jaDCC7HUKiFHAoB/J+xEstSFQCSJRNWfRwQ8+wES9ZSFYDyGwFMfc+pEjfmeBIKa4ZxWX05fwY3jBROIzKIjnsZCkor36w7HNIWcvyp3YsHrTBbrRhqdGOFfX85rCD5dtSDisfU3VyzO9dly74jic7IWTqTiPRflUzi0jXrsEd2e1LAk5WLQGFB/NesDA2yOJimpmNdi97HekIPNesO6mixxXbfv25Q4p+1WDh7dIE19gQgUZ844ya/U/XnaJnVdHPdlsIihixoolRJWXu8M6peo+3HOBTJasC3TUGVbGUYLp2BfvHLzBZDTQBBdSf92GwYArw1+9j7H6fwtHP0ilQQH3rPlCnRxo4v3sDq43b4iRDIKDuJS961/1NQNrNpKSqJsR/RqtbmTipDHVN5RzJC4stOmkxO7lAx2NqM10J/XcSQyzP8KwrePjhig/zH1qVno6mSa3ClNY2o9XIao2Zyud7LVjYbwPPumVHx1Q/1JzmcGbql/HlxyrKX+8LIQPjSuumjF7QNKZNRCLRUMHxZUQT2vu3xMSjkyLmdrqE7F+E6Zp1RuR6x/i6hAfHL4Vs6yiGCdXu7PZVdaj1L0JG+4wo5/g7oK1jxEk2U+/Ct5MNnB8LH2826Zd0rBWiSM9bJwO8KxcRxnQmqN94udmQ4YLPCbf+aNg9az4kK36MlfzqoB+jasaLfDYxob4udHSyYkkr1CVbt9C7dhoBj+RIZ8mjL2fkggt60YUNu5eW8w9rxRrF6ZJtngAAAABJRU5ErkJggg==); -} - -td.missed { - background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAAEhyb7BAAAACXBIWXMAAFxGAABcRgEUlENBAAAACXRFWHRDb21tZW50AACJKo0GAAAC00lEQVR4nG1US2tTQRi95FcIkZrYNuTRNrYiImiD4kbcqSsRXHQvRkTRWpo+7Mu+krbpi9a+FgWhC6XV2mqia3EhKBTxsXEhdNX1ne/4fd/MTSp0YGg6c+65Z845cz0AHt0/lpO/wQ9QPgVPd1ZbwYth2cnKrmcGT4Kmk7w10Qxaa9Wns2asHlRMgBYaQePNltL0noAZqgWWL4MKCV0MyYabGc+M1IEm46C5FGg5Dc/0R0GlHpEAmm/gha4aYP87aOseaMpylGnlAr86A3pSY0nNaDP8nZvwN6/Bf83zzXX4b2/A/9gm8stWDis3o/XQUUwBv94BnwqgxSamTjvNPayZReDHexWhY6ZJj0yFpIIyJEzdNdADDkRhntUqM+VjoPaws06A1cMGU1wMBWaX/XKbFb0lwln0Nosu3YIcSIDsULpKzeenmaQaQ89Z08opAWU90xeDGWYrdzuAbxsqWGMU4FJaQJ0e5Vi0CGdgZew8AM2mLFBBXXyapxHQcNwh2IKfu/bVAlRQdwTiE02cBb28A0kRB3/4/7gtgYIeh2E6jyvQ9EXsqxmoTZlTpoxYEJYQafk8aJVDlbpJsMXTmpv65MwMa/LtzJY/A7NwEWbx0tFT9hgjWH2Gnw0Mz1BHFP76FQbErafSPjlc0Xk759yQIovH3EpabYHZuMp1i1Zk58xQSq2UcDSg8RiwcZublbSEXBjMp4HdrCWUlkkWEtp0izNJOtFda81x2dCHvmo+e6+A3yWXhAFKjyxZQJhvOESUs9lJfZVsiG/qGKvY36sS/v0CTDdWFFbCzycPK4ra2HptdPi85hT4oM27oO2HVo2Mry/+928iUSHKUk/EdkDuiiOkgTp7Z0Sh3Bv5BBQabC8OBzJSb8vtPhpl6mfgEvdiiiWPS3oJ/arQZNKuFfkYMzxnJTk2eP0caDAWVCCkPXJdCrnLmT3igh51YTPBpZX5DwIGbe2/xW1jAAAAAElFTkSuQmCC); -} - - diff -Nru roger-router-1.8.14/libroutermanager/plugins/webjournal/webjournal.c roger-router-2.1.6/libroutermanager/plugins/webjournal/webjournal.c --- roger-router-1.8.14/libroutermanager/plugins/webjournal/webjournal.c 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/webjournal/webjournal.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,170 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include -#include - -#include - -#include -#include -#include -#include -#include - -#include "webjournal.h" - -#define ROUTERMANAGER_TYPE_WEBJOURNAL_PLUGIN (routermanager_webjournal_plugin_get_type ()) -#define ROUTERMANAGER_WEBJOURNAL_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST((o), ROUTERMANAGER_TYPE_WEBJOURNAL_PLUGIN, RouterManagerWebJournalPlugin)) - -typedef struct { - guint signal_id; - gchar *header; - gchar *entry; - gchar *footer; -} RouterManagerWebJournalPluginPrivate; - -ROUTERMANAGER_PLUGIN_REGISTER(ROUTERMANAGER_TYPE_WEBJOURNAL_PLUGIN, RouterManagerWebJournalPlugin, routermanager_webjournal_plugin) - -gchar *get_call_type_string(gint type) -{ - switch (type) { - case CALL_TYPE_INCOMING: - return "in"; - case CALL_TYPE_OUTGOING: - return "out"; - case CALL_TYPE_MISSED: - return "missed"; - case CALL_TYPE_FAX: - return "fax"; - case CALL_TYPE_VOICE: - return "voice"; - case CALL_TYPE_FAX_REPORT: - return "fax-report"; - } - - return "unknown"; -} - -void webjournal_journal_loaded_cb(AppObject *obj, GSList *journal, gpointer user_data) -{ - RouterManagerWebJournalPlugin *webjournal_plugin = user_data; - gchar *file; - GString *string; - GSList *list; - gchar *out; - - file = g_strconcat(g_get_home_dir(), G_DIR_SEPARATOR_S, "journal.html", NULL); - - string = g_string_new(webjournal_plugin->priv->header); - - for (list = journal; list != NULL; list = list->next) { - struct call *call = list->data; - GRegex *type = g_regex_new("%TYPE%", G_REGEX_DOTALL | G_REGEX_OPTIMIZE, 0, NULL); - GRegex *date_time = g_regex_new("%DATETIME%", G_REGEX_DOTALL | G_REGEX_OPTIMIZE, 0, NULL); - GRegex *name = g_regex_new("%NAME%", G_REGEX_DOTALL | G_REGEX_OPTIMIZE, 0, NULL); - GRegex *company = g_regex_new("%COMPANY%", G_REGEX_DOTALL | G_REGEX_OPTIMIZE, 0, NULL); - GRegex *number = g_regex_new("%NUMBER%", G_REGEX_DOTALL | G_REGEX_OPTIMIZE, 0, NULL); - GRegex *city = g_regex_new("%CITY%", G_REGEX_DOTALL | G_REGEX_OPTIMIZE, 0, NULL); - GRegex *extension = g_regex_new("%EXTENSION%", G_REGEX_DOTALL | G_REGEX_OPTIMIZE, 0, NULL); - GRegex *line = g_regex_new("%LINE%", G_REGEX_DOTALL | G_REGEX_OPTIMIZE, 0, NULL); - GRegex *duration = g_regex_new("%DURATION%", G_REGEX_DOTALL | G_REGEX_OPTIMIZE, 0, NULL); - gchar *out1; - gchar *out2; - - out1 = g_regex_replace_literal(type, webjournal_plugin->priv->entry, -1, 0, get_call_type_string(call->type), 0, NULL); - - out2 = g_regex_replace_literal(date_time, out1, -1, 0, call->date_time, 0, NULL); - g_free(out1); - out1 = g_regex_replace_literal(name, out2, -1, 0, call->remote->name, 0, NULL); - g_free(out2); - out2 = g_regex_replace_literal(company, out1, -1, 0, call->remote->company ? call->remote->company : "", 0, NULL); - g_free(out1); - out1 = g_regex_replace_literal(number, out2, -1, 0, call->remote->number, 0, NULL); - g_free(out2); - out2 = g_regex_replace_literal(city, out1, -1, 0, call->remote->city, 0, NULL); - g_free(out1); - out1 = g_regex_replace_literal(extension, out2, -1, 0, call->local->name, 0, NULL); - g_free(out2); - out2 = g_regex_replace_literal(line, out1, -1, 0, call->local->number, 0, NULL); - g_free(out1); - out1 = g_regex_replace_literal(duration, out2, -1, 0, call->duration, 0, NULL); - g_free(out2); - - string = g_string_append(string, out1); - - g_free(out1); - g_regex_unref(duration); - g_regex_unref(line); - g_regex_unref(extension); - g_regex_unref(city); - g_regex_unref(number); - g_regex_unref(company); - g_regex_unref(name); - g_regex_unref(date_time); - g_regex_unref(type); - } - - string = g_string_append(string, webjournal_plugin->priv->footer); - - out = g_string_free(string, FALSE); - - file_save(file, out, -1); - - g_free(out); -} - -/** - * \brief Activate plugin - * \param plugin peas plugin - */ -static void impl_activate(PeasActivatable *plugin) -{ - RouterManagerWebJournalPlugin *webjournal_plugin = ROUTERMANAGER_WEBJOURNAL_PLUGIN(plugin); - gchar *file; - - file = g_strconcat(get_directory(ROUTERMANAGER_PLUGINS), G_DIR_SEPARATOR_S, "webjournal", G_DIR_SEPARATOR_S, "header.html", NULL); - webjournal_plugin->priv->header = file_load(file, NULL); - g_free(file); - - file = g_strconcat(get_directory(ROUTERMANAGER_PLUGINS), G_DIR_SEPARATOR_S, "webjournal", G_DIR_SEPARATOR_S, "entry.html", NULL); - webjournal_plugin->priv->entry = file_load(file, NULL); - g_free(file); - - file = g_strconcat(get_directory(ROUTERMANAGER_PLUGINS), G_DIR_SEPARATOR_S, "webjournal", G_DIR_SEPARATOR_S, "footer.html", NULL); - webjournal_plugin->priv->footer = file_load(file, NULL); - g_free(file); - - webjournal_plugin->priv->signal_id = g_signal_connect_after(G_OBJECT(app_object), "journal-loaded", G_CALLBACK(webjournal_journal_loaded_cb), webjournal_plugin); - -} - -/** - * \brief Deactivate plugin - * \param plugin peas plugin - */ -static void impl_deactivate(PeasActivatable *plugin) -{ - RouterManagerWebJournalPlugin *webjournal_plugin = ROUTERMANAGER_WEBJOURNAL_PLUGIN(plugin); - - /* If signal handler is connected: disconnect */ - if (g_signal_handler_is_connected(G_OBJECT(app_object), webjournal_plugin->priv->signal_id)) { - g_signal_handler_disconnect(G_OBJECT(app_object), webjournal_plugin->priv->signal_id); - } -} diff -Nru roger-router-1.8.14/libroutermanager/plugins/webjournal/webjournal.h roger-router-2.1.6/libroutermanager/plugins/webjournal/webjournal.h --- roger-router-1.8.14/libroutermanager/plugins/webjournal/webjournal.h 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/webjournal/webjournal.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,27 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef ROUTERMANAGER_WEBJOURNAL_H -#define ROUTERMANAGER_WEBJOURNAL_H - -G_BEGIN_DECLS - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/plugins/webjournal/webjournal.plugin.in roger-router-2.1.6/libroutermanager/plugins/webjournal/webjournal.plugin.in --- roger-router-1.8.14/libroutermanager/plugins/webjournal/webjournal.plugin.in 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/webjournal/webjournal.plugin.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,8 +0,0 @@ -[Plugin] -Module=webjournal -_Name=Web Journal -_Description=Store journal as html file on a server -Authors=Jan-Michael Brummer -Copyright=Copyright © 2014 Jan-Michael Brummer -Website=http://www.tabos.org/ -Help=http://www.tabos.org/forum/ diff -Nru roger-router-1.8.14/libroutermanager/plugins/wincred/Makefile.am roger-router-2.1.6/libroutermanager/plugins/wincred/Makefile.am --- roger-router-1.8.14/libroutermanager/plugins/wincred/Makefile.am 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/wincred/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,14 +0,0 @@ -plugin_in_files = wincred.plugin - -include ../Makefile.plugins - -plugindir = $(libdir)/roger/wincred - -plugin_LTLIBRARIES = libwincred.la - -libwincred_la_SOURCES = \ - wincred.c - -libwincred_la_CFLAGS = $(plugin_cflags) $(wincred_CFLAGS) -libwincred_la_LDFLAGS = $(plugin_ldflags) $(wincred_LIBS) -libwincred_la_LIBADD = $(plugin_libadd) $(wincred_LIBS) diff -Nru roger-router-1.8.14/libroutermanager/plugins/wincred/Makefile.in roger-router-2.1.6/libroutermanager/plugins/wincred/Makefile.in --- roger-router-1.8.14/libroutermanager/plugins/wincred/Makefile.in 2015-12-10 21:33:44.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/wincred/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,798 +0,0 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2014 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@ - - -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@ -@WIN32_TRUE@am__append_1 = -L$(top_srcdir)/libroutermanager/.libs -lroutermanager -no-undefined -@MACOSX_TRUE@am__append_2 = -L$(top_srcdir)/libroutermanager/.libs -lroutermanager -no-undefined -subdir = libroutermanager/plugins/wincred -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ - $(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)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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)$(plugindir)" "$(DESTDIR)$(plugindir)" -LTLIBRARIES = $(plugin_LTLIBRARIES) -am__DEPENDENCIES_1 = -am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) -libwincred_la_DEPENDENCIES = $(am__DEPENDENCIES_2) -am_libwincred_la_OBJECTS = libwincred_la-wincred.lo -libwincred_la_OBJECTS = $(am_libwincred_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 = -libwincred_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libwincred_la_CFLAGS) \ - $(CFLAGS) $(libwincred_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) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -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 = $(libwincred_la_SOURCES) -DIST_SOURCES = $(libwincred_la_SOURCES) -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -DATA = $(plugin_DATA) -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)` -ETAGS = etags -CTAGS = ctags -am__DIST_COMMON = $(srcdir)/../Makefile.plugins $(srcdir)/Makefile.in \ - $(top_srcdir)/depcomp -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -ALL_LINGUAS = @ALL_LINGUAS@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@ -APPINDICATOR_LIBS = @APPINDICATOR_LIBS@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAPI_CFLAGS = @CAPI_CFLAGS@ -CAPI_LIBS = @CAPI_LIBS@ -CATALOGS = @CATALOGS@ -CATOBJEXT = @CATOBJEXT@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DATADIRNAME = @DATADIRNAME@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -EBOOK_CFLAGS = @EBOOK_CFLAGS@ -EBOOK_LIBS = @EBOOK_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXTRA_CFLAGS = @EXTRA_CFLAGS@ -EXTRA_LIBS = @EXTRA_LIBS@ -FAX_SPOOLER_CFLAGS = @FAX_SPOOLER_CFLAGS@ -FAX_SPOOLER_LIBS = @FAX_SPOOLER_LIBS@ -FGREP = @FGREP@ -GDATA_CFLAGS = @GDATA_CFLAGS@ -GDATA_LIBS = @GDATA_LIBS@ -GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMOFILES = @GMOFILES@ -GMSGFMT = @GMSGFMT@ -GREP = @GREP@ -GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@ -GSTREAMER1_CFLAGS = @GSTREAMER1_CFLAGS@ -GSTREAMER1_LIBS = @GSTREAMER1_LIBS@ -GTK_CFLAGS = @GTK_CFLAGS@ -GTK_LIBS = @GTK_LIBS@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INSTOBJEXT = @INSTOBJEXT@ -INTLLIBS = @INTLLIBS@ -INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ -INTLTOOL_MERGE = @INTLTOOL_MERGE@ -INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ -INTLTOOL_PERL = @INTLTOOL_PERL@ -INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ -INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ -INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ -INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ -INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ -INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ -KWALLET_CFLAGS = @KWALLET_CFLAGS@ -KWALLET_LIBS = @KWALLET_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@ -LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@ -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@ -MKINSTALLDIRS = @MKINSTALLDIRS@ -MSGFMT = @MSGFMT@ -MSGFMT_OPTS = @MSGFMT_OPTS@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OS_CFLAGS = @OS_CFLAGS@ -OS_LIBS = @OS_LIBS@ -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@ -PEAS_CFLAGS = @PEAS_CFLAGS@ -PEAS_GTK_CFLAGS = @PEAS_GTK_CFLAGS@ -PEAS_GTK_LIBS = @PEAS_GTK_LIBS@ -PEAS_LIBS = @PEAS_LIBS@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POFILES = @POFILES@ -PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@ -PORTAUDIO_LIBS = @PORTAUDIO_LIBS@ -POSUB = @POSUB@ -PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ -PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ -PULSEAUDIO_CFLAGS = @PULSEAUDIO_CFLAGS@ -PULSEAUDIO_LIBS = @PULSEAUDIO_LIBS@ -RANLIB = @RANLIB@ -ROGER_VERSION_MAJOR = @ROGER_VERSION_MAJOR@ -ROGER_VERSION_MICRO = @ROGER_VERSION_MICRO@ -ROGER_VERSION_MINOR = @ROGER_VERSION_MINOR@ -SECRET_CFLAGS = @SECRET_CFLAGS@ -SECRET_LIBS = @SECRET_LIBS@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SOUP_CFLAGS = @SOUP_CFLAGS@ -SOUP_LIBS = @SOUP_LIBS@ -SPANDSP_CFLAGS = @SPANDSP_CFLAGS@ -SPANDSP_LIBS = @SPANDSP_LIBS@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -WINDRES = @WINDRES@ -XGETTEXT = @XGETTEXT@ -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@ -found_cc = @found_cc@ -gsettingsschemadir = @gsettingsschemadir@ -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@ -intltool__v_merge_options_ = @intltool__v_merge_options_@ -intltool__v_merge_options_0 = @intltool__v_merge_options_0@ -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@ -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@ -plugin_in_files = wincred.plugin -plugin_DATA = $(plugin_in_files:.plugin.in=.plugin) -CLEANFILES = $(plugin_DATA) -DISTCLEANFILES = $(plugin_DATA) -EXTRA_DIST = $(plugin_in_files).in -AM_CFLAGS = \ - $(PEAS_CFLAGS) \ - $(OS_CFLAGS) \ - -I$(top_srcdir)/ - -plugin_cflags = \ - $(PEAS_CFLAGS) \ - $(OS_CFLAGS) \ - -I$(top_srcdir)/ - -plugin_ldflags = -export-dynamic -no-undefined -avoid-version -module \ - -shared $(PLUGIN_LIBTOOL_FLAGS) $(am__append_1) \ - $(am__append_2) -plugin_libadd = \ - $(PEAS_LIBS) \ - $(OS_LIBS) - -plugindir = $(libdir)/roger/wincred -plugin_LTLIBRARIES = libwincred.la -libwincred_la_SOURCES = \ - wincred.c - -libwincred_la_CFLAGS = $(plugin_cflags) $(wincred_CFLAGS) -libwincred_la_LDFLAGS = $(plugin_ldflags) $(wincred_LIBS) -libwincred_la_LIBADD = $(plugin_libadd) $(wincred_LIBS) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../Makefile.plugins $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libroutermanager/plugins/wincred/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign libroutermanager/plugins/wincred/Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; -$(srcdir)/../Makefile.plugins $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES) - @$(NORMAL_INSTALL) - @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || 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)$(plugindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(plugindir)" || exit 1; \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(plugindir)'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(plugindir)"; \ - } - -uninstall-pluginLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || list=; \ - for p in $$list; do \ - $(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(plugindir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(plugindir)/$$f"; \ - done - -clean-pluginLTLIBRARIES: - -test -z "$(plugin_LTLIBRARIES)" || rm -f $(plugin_LTLIBRARIES) - @list='$(plugin_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}; \ - } - -libwincred.la: $(libwincred_la_OBJECTS) $(libwincred_la_DEPENDENCIES) $(EXTRA_libwincred_la_DEPENDENCIES) - $(AM_V_CCLD)$(libwincred_la_LINK) -rpath $(plugindir) $(libwincred_la_OBJECTS) $(libwincred_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libwincred_la-wincred.Plo@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ -@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -libwincred_la-wincred.lo: wincred.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwincred_la_CFLAGS) $(CFLAGS) -MT libwincred_la-wincred.lo -MD -MP -MF $(DEPDIR)/libwincred_la-wincred.Tpo -c -o libwincred_la-wincred.lo `test -f 'wincred.c' || echo '$(srcdir)/'`wincred.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libwincred_la-wincred.Tpo $(DEPDIR)/libwincred_la-wincred.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='wincred.c' object='libwincred_la-wincred.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwincred_la_CFLAGS) $(CFLAGS) -c -o libwincred_la-wincred.lo `test -f 'wincred.c' || echo '$(srcdir)/'`wincred.c - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-pluginDATA: $(plugin_DATA) - @$(NORMAL_INSTALL) - @list='$(plugin_DATA)'; test -n "$(plugindir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(plugindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(plugindir)" || 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)$(plugindir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(plugindir)" || exit $$?; \ - done - -uninstall-pluginDATA: - @$(NORMAL_UNINSTALL) - @list='$(plugin_DATA)'; test -n "$(plugindir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(plugindir)'; $(am__uninstall_files_from_dir) - -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-am -TAGS: tags - -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - set x; \ - here=`pwd`; \ - $(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-am - -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" -cscopelist: cscopelist-am - -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 - -distdir: $(DISTFILES) - @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 -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) $(DATA) -installdirs: - for dir in "$(DESTDIR)$(plugindir)" "$(DESTDIR)$(plugindir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -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) - -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." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-pluginLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-pluginDATA install-pluginLTLIBRARIES - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-pluginDATA uninstall-pluginLTLIBRARIES - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-pluginLTLIBRARIES cscopelist-am ctags \ - ctags-am distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir 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-man install-pdf install-pdf-am \ - install-pluginDATA install-pluginLTLIBRARIES install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs 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-pluginDATA uninstall-pluginLTLIBRARIES - -.PRECIOUS: Makefile - -%.plugin: %.plugin.in - $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache - -# 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: diff -Nru roger-router-1.8.14/libroutermanager/plugins/wincred/wincred.c roger-router-2.1.6/libroutermanager/plugins/wincred/wincred.c --- roger-router-1.8.14/libroutermanager/plugins/wincred/wincred.c 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/wincred/wincred.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,157 +0,0 @@ -/** - * Roger Router - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This file is part of Roger Router. - * - * 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, version 2 of the License. - * - * 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 . - */ - -#include -#include - -#include - -#include -#include - -#define ROUTERMANAGER_TYPE_WINCRED_PLUGIN (routermanager_wincred_plugin_get_type ()) -#define ROUTERMANAGER_WINCRED_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST((o), ROUTERMANAGER_TYPE_WINCRED_PLUGIN, RouterManagerWinCredPlugin)) - -typedef struct { - guint signal_id; -} RouterManagerWinCredPluginPrivate; - -ROUTERMANAGER_PLUGIN_REGISTER(ROUTERMANAGER_TYPE_WINCRED_PLUGIN, RouterManagerWinCredPlugin, routermanager_wincred_plugin) - -/** - * \brief Store password - * \param profile profile pointer - * \param name password name - * \param password password - */ -static void wincred_store_password(struct profile *profile, const gchar *name, const gchar *password) -{ - CREDENTIALA cred = { 0 }; - WCHAR *wide_password = NULL; - gchar *cred_name; - int length; - - if (!name || !profile || !profile->name || !password) { - return; - } - - length = strlen(password); - - wide_password = malloc(length * sizeof(WCHAR)); - swprintf(wide_password, length, L"%S", password); - - cred_name = g_strdup_printf("%s/%s", profile->name, name); - - cred.Type = CRED_TYPE_GENERIC; - cred.Persist = CRED_PERSIST_LOCAL_MACHINE; - cred.TargetName = cred_name; - cred.UserName = cred_name; - cred.CredentialBlob = (BYTE *) wide_password; - cred.CredentialBlobSize = sizeof(BYTE) * sizeof(WCHAR) * length; - - CredWrite(&cred, 0); - - g_free(cred_name); - g_free(wide_password); -} - -/** - * \brief Get password - * \param profile profile pointer - * \param name password name - * \return password - */ -static gchar *wincred_get_password(struct profile *profile, const gchar *name) -{ - PCREDENTIALA cred; - BOOL result; - gchar *cred_name; - gchar *secret_password = NULL; - - if (!profile || !profile->name || !name) { - return NULL; - } - - cred_name = g_strdup_printf("%s/%s", profile->name, name); - result = CredReadA(cred_name, CRED_TYPE_GENERIC, 0, &cred); - g_free(cred_name); - - if (result == TRUE) { - secret_password = g_strdup_printf("%S", (WCHAR *) cred->CredentialBlob); - - if (cred->CredentialBlobSize > 1) { - secret_password[ cred->CredentialBlobSize / 2 ] = '\0'; - } - } - - CredFree(cred); - - return g_strdup(secret_password); -} - -/** - * \brief Remove password - * \param profile profile pointer - * \param name password name - * \return TRUE on success, otherwise FALSE - */ -static gboolean wincred_remove_password(struct profile *profile, const gchar *name) -{ - PCREDENTIALA cred; - BOOL result; - gchar *cred_name; - - if (!profile || !profile->name || !name) { - return FALSE; - } - - cred_name = g_strdup_printf("%s/%s", profile->name, name); - result = CredRead(cred_name, CRED_TYPE_GENERIC, 0, &cred); - g_free(cred_name); - if (result == TRUE) { - CredDelete(cred->TargetName, cred->Type, 0); - } - - return result; -} - -struct password_manager wincred = { - "Windows Credentials", - wincred_store_password, - wincred_get_password, - wincred_remove_password, -}; - -/** - * \brief Activate plugin - register windows credential password manager - * \pram plugin peas plugin - */ -void impl_activate(PeasActivatable *plugin) -{ - g_debug("Register wincred password manager plugin"); - password_manager_register(&wincred); -} - -/** - * \brief Deactivate plugin - * \pram plugin peas plugin - */ -void impl_deactivate(PeasActivatable *plugin) -{ -} diff -Nru roger-router-1.8.14/libroutermanager/plugins/wincred/wincred.plugin.in roger-router-2.1.6/libroutermanager/plugins/wincred/wincred.plugin.in --- roger-router-1.8.14/libroutermanager/plugins/wincred/wincred.plugin.in 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins/wincred/wincred.plugin.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,9 +0,0 @@ -[Plugin] -Module=wincred -_Name=Windows Credentials -_Description=Windows Credentials password storage -Authors=Jan-Michael Brummer -Copyright=Copyright © 2013 Jan-Michael Brummer -Website=http://www.tabos.org/ -Help=http://www.tabos.org/forum/ -Builtin=true diff -Nru roger-router-1.8.14/libroutermanager/plugins.c roger-router-2.1.6/libroutermanager/plugins.c --- roger-router-1.8.14/libroutermanager/plugins.c 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,137 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include - -#include -#include -#include - -/** Internal search path list */ -static GSList *search_path_list = NULL; -/** Internal peas extension set */ -static PeasExtensionSet *exten = NULL; -/** peas engine */ -PeasEngine *engine = NULL; - -/** - * \brief Add additional search path for peas - * \param path path to search for plugins for - */ -void routermanager_plugins_add_search_path(gchar *path) -{ - search_path_list = g_slist_append(search_path_list, g_strdup(path)); -} - -/** - * \brief Add extension callback - * \param set peas extension set - * \param info peas plugin info - * \param exten peas extension - * \param unused unused data poiner - */ -static void plugins_extension_added_cb(PeasExtensionSet *set, PeasPluginInfo *info, PeasExtension *exten, gpointer unused) -{ - /* Active plugin now */ - g_debug(" + %s (%s) activated", peas_plugin_info_get_name(info), peas_plugin_info_get_module_name(info)); - peas_activatable_activate(PEAS_ACTIVATABLE(exten)); -} - -/** - * \brief Remove extension callback - * \param set peas extension set - * \param info peas plugin info - * \param exten peas extension - * \param unused unused data poiner - */ -static void plugins_extension_removed_cb(PeasExtensionSet *set, PeasPluginInfo *info, PeasExtension *exten, gpointer unused) -{ - /* Remove plugin now */ - if (!peas_plugin_info_is_builtin(info)) { - g_debug(" - %s (%s) deactivated", peas_plugin_info_get_name(info), peas_plugin_info_get_module_name(info)); - } - peas_activatable_deactivate(PEAS_ACTIVATABLE(exten)); -} - -/** - * \brief Find and load builtin plugins - */ -void plugins_init(void) -{ - GSList *slist; - const GList *list; - - /* Get default engine */ - engine = peas_engine_get_default(); - - /* Set app object as object to engine */ - exten = peas_extension_set_new(engine, PEAS_TYPE_ACTIVATABLE, "object", app_object, NULL); - - /* Connect extension added/removed signals */ - g_signal_connect(exten, "extension-added", G_CALLBACK(plugins_extension_added_cb), NULL); - g_signal_connect(exten, "extension-removed", G_CALLBACK(plugins_extension_removed_cb), NULL); - - /* Look for plugins in plugin_dir */ - peas_engine_add_search_path(engine, ROUTERMANAGER_PLUGINS, ROUTERMANAGER_PLUGINS); - - /* And all other directories */ - for (slist = search_path_list; slist != NULL; slist = slist->next) { - gchar *plugin_dir = slist->data; - - peas_engine_add_search_path(engine, plugin_dir, plugin_dir); - } - - /* In addition to C we want to support python plugins */ - peas_engine_enable_loader(engine, "python"); - - /* Traverse through detected plugins and loaded builtin plugins now */ - for (list = peas_engine_get_plugin_list(engine); list != NULL; list = list->next) { - PeasPluginInfo *info = list->data; - - if (peas_plugin_info_is_builtin(info)) { - peas_engine_load_plugin(engine, info); - } - } -} - -/** - * \brief Add plugins information to profile settings - */ -void plugins_user_plugins(void) -{ - g_settings_bind(profile_get_active()->settings, "active-plugins", engine, "loaded-plugins", G_SETTINGS_BIND_DEFAULT); -} - -/** - * \brief Shutdown plugins - */ -void plugins_shutdown(void) -{ - if (!exten) { - return; - } - - g_signal_handlers_disconnect_by_func(exten, G_CALLBACK(plugins_extension_added_cb), NULL); - g_signal_handlers_disconnect_by_func(exten, G_CALLBACK(plugins_extension_removed_cb), NULL); - - peas_extension_set_foreach(exten, plugins_extension_removed_cb, NULL); - - g_clear_object(&exten); - g_clear_object(&engine); -} diff -Nru roger-router-1.8.14/libroutermanager/plugins.h roger-router-2.1.6/libroutermanager/plugins.h --- roger-router-1.8.14/libroutermanager/plugins.h 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/plugins.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,177 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_PLUGINS_H -#define LIBROUTERMANAGER_PLUGINS_H - -#include - -#ifdef GTK_MAJOR_VERSION -#include -#endif - -G_BEGIN_DECLS - -/** - * _ROUTERMANAGER_PLUGIN_REGISTER: - * \param TYPE_NAME: the name of the plugin type, in UPPER_CASE - * \param TypeName: the name of the plugin type, in CamelCase - * \param type_name: the name of the plugin type, in lower_case - * \param TYPE_CODE: code to go in the fifth parameter to %G_DEFINE_DYNAMIC_TYPE_EXTENDED - * \param REGISTER_CODE: code to go in the peas_register_types() exported function - * - * Registers a plugin with the RouterManager plugin system, including registering the type specified in the parameters and declaring its activate and - * deactivate functions. - **/ -#define _ROUTERMANAGER_PLUGIN_REGISTER(TYPE_NAME, TypeName, type_name, TYPE_CODE, REGISTER_CODE) \ - typedef struct { \ - PeasExtensionBaseClass parent_class; \ - } TypeName##Class; \ - typedef struct { \ - PeasExtensionBase parent; \ - TypeName##Private *priv; \ - } TypeName; \ - GType type_name##_get_type (void) G_GNUC_CONST; \ - static void impl_activate (PeasActivatable *plugin); \ - static void impl_deactivate (PeasActivatable *plugin); \ - G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module); \ - static void peas_activatable_iface_init (PeasActivatableInterface *iface); \ - enum { \ - PROP_0, \ - PROP_OBJECT \ - }; \ - G_DEFINE_DYNAMIC_TYPE_EXTENDED (TypeName, \ - type_name, \ - PEAS_TYPE_EXTENSION_BASE, \ - 0, \ - G_IMPLEMENT_INTERFACE_DYNAMIC (PEAS_TYPE_ACTIVATABLE, \ - peas_activatable_iface_init) \ - TYPE_CODE) \ - static void \ - peas_activatable_iface_init (PeasActivatableInterface *iface) \ - { \ - iface->activate = impl_activate; \ - iface->deactivate = impl_deactivate; \ - } \ - static void \ - set_property (GObject *object, \ - guint prop_id, \ - const GValue *value, \ - GParamSpec *pspec) \ - { \ - switch (prop_id) { \ - case PROP_OBJECT: \ - g_object_set_data_full (object, "object", \ - g_value_dup_object (value), \ - g_object_unref); \ - break; \ - default: \ - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); \ - break; \ - } \ - } \ - static void \ - get_property (GObject *object, \ - guint prop_id, \ - GValue *value, \ - GParamSpec *pspec) \ - { \ - switch (prop_id) { \ - case PROP_OBJECT: \ - g_value_set_object (value, g_object_get_data (object, "object")); \ - break; \ - default: \ - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); \ - break; \ - } \ - } \ - static void \ - type_name##_class_init (TypeName##Class *klass) \ - { \ - GObjectClass *object_class = G_OBJECT_CLASS (klass); \ - \ - object_class->set_property = set_property; \ - object_class->get_property = get_property; \ - \ - g_object_class_override_property (object_class, PROP_OBJECT, "object"); \ - g_type_class_add_private (klass, sizeof (TypeName##Private)); \ - } \ - static void \ - type_name##_class_finalize (TypeName##Class *klass) \ - { \ - } \ - static void \ - type_name##_init (TypeName *plugin) \ - { \ - plugin->priv = G_TYPE_INSTANCE_GET_PRIVATE (plugin, TYPE_NAME, TypeName##Private); \ - } \ - G_MODULE_EXPORT void \ - peas_register_types (PeasObjectModule *module) \ - { \ - type_name##_register_type (G_TYPE_MODULE (module)); \ - peas_object_module_register_extension_type (module, \ - PEAS_TYPE_ACTIVATABLE, \ - TYPE_NAME); \ - REGISTER_CODE \ - } - -/** - * ROUTERMANAGER_PLUGIN_REGISTER: - * \param TYPE_NAME: the name of the plugin type, in UPPER_CASE - * \param TypeName: the name of the plugin type, in CamelCase - * \param type_name: the name of the plugin type, in lower_case - * - * Registers a plugin with the RouterManager plugin system, including registering the type specified in the parameters and declaring its activate and - * deactivate functions. - **/ -#define ROUTERMANAGER_PLUGIN_REGISTER(TYPE_NAME, TypeName, type_name) \ - _ROUTERMANAGER_PLUGIN_REGISTER(TYPE_NAME, TypeName, type_name,,) - -/** - * ROUTERMANAGER_PLUGIN_REGISTER_CONFIGURABLE: - * \param TYPE_NAME: the name of the plugin type, in UPPER_CASE - * \param TypeName: the name of the plugin type, in CamelCase - * \param type_name: the name of the plugin type, in lower_case - * - * Registers a configurable plugin with the RouterManager plugin system, including registering the type specified in the parameters and declaring its activate - * and deactivate and widget creation functions. - **/ -#define ROUTERMANAGER_PLUGIN_REGISTER_CONFIGURABLE(TYPE_NAME, TypeName, type_name) \ - static GtkWidget *impl_create_configure_widget (PeasGtkConfigurable *configurable); \ - static void peas_gtk_configurable_iface_init (PeasGtkConfigurableInterface *iface); \ - _ROUTERMANAGER_PLUGIN_REGISTER(TYPE_NAME, TypeName, type_name, \ - (G_IMPLEMENT_INTERFACE_DYNAMIC (PEAS_GTK_TYPE_CONFIGURABLE, peas_gtk_configurable_iface_init)), \ - peas_object_module_register_extension_type (module, PEAS_GTK_TYPE_CONFIGURABLE, TYPE_NAME);) \ - static void \ - peas_gtk_configurable_iface_init (PeasGtkConfigurableInterface *iface) \ - { \ - iface->create_configure_widget = impl_create_configure_widget; \ - } - -extern PeasEngine *engine; - -void plugins_init(void); -void plugins_shutdown(void); -void plugins_user_plugins(void); - -void routermanager_plugins_add_search_path(gchar *path); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/profile.c roger-router-2.1.6/libroutermanager/profile.c --- roger-router-1.8.14/libroutermanager/profile.c 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/profile.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,311 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -/** Internal profile list */ -static GSList *profile_list = NULL; -/** Internal pointer to active profile */ -static struct profile *profile_active = NULL; -/** Global application settings */ -static GSettings *settings = NULL; - -/** - * \brief Add profile to profile list - * \param profile profile structure pointer - */ -void profile_add(struct profile *profile) -{ - profile_list = g_slist_prepend(profile_list, profile); -} - -/** - * \brief Remove profile from list - * \param profile profile to remove - */ -void profile_remove(struct profile *profile) -{ - profile_list = g_slist_remove(profile_list, profile); - - /* Remove gsettings entry */ - profile_commit(); -} - -/** - * \brief Get active profile - * \return active profile - */ -struct profile *profile_get_active(void) -{ - return profile_active; -} - -/** - * \brief Get profile list - * \return profile list - */ -GSList *profile_get_list(void) -{ - return profile_list; -} - -/** - * \brief Create new profile structure - * \param name profile name - * \param host router host - * \param password router password - * \return new profile structure poiner - */ -struct profile *profile_new(const gchar *name, const gchar *host, const gchar *user, const gchar *password) -{ - struct profile *profile; - gchar *settings_path; - gchar *filename; - - /* Create new profile structure */ - profile = g_slice_new0(struct profile); - - /* Add entries */ - profile->name = g_strdup(name); - profile->router_info = g_slice_new0(struct router_info); - profile->router_info->host = g_strdup(host); - profile->router_info->user = g_strdup(user); - profile->router_info->password = g_strdup(password); - - /* Setup profiles settings */ - filename = g_build_filename(name, "profile.conf", NULL); - settings_path = g_strconcat("/org/tabos/routermanager/profile/", name, "/", NULL); - profile->settings = rm_settings_new_with_path(ROUTERMANAGER_SCHEME_PROFILE, settings_path, filename); - g_free(filename); - - g_settings_set_string(profile->settings, "host", host); - g_settings_set_string(profile->settings, "login-user", user); - password_manager_set_password(profile, "login-password", password); - - g_free(settings_path); - - /* Return new profile */ - return profile; -} - -/** - * \brief Update profiles in gsettting - */ -void profile_commit(void) -{ - GSList *plist = profile_get_list(); - GSList *list; - gchar **profiles; - gint counter = 0; - - profiles = g_malloc(sizeof(gchar *) * (g_slist_length(plist) + 1)); - for (list = plist; list != NULL; list = list->next) { - struct profile *current_profile = list->data; - profiles[counter++] = g_strdup(current_profile->name); - } - profiles[counter] = NULL; - - g_settings_set_strv(settings, "profiles", (const gchar * const *)profiles); -} - -/** - * \brief Load profile by name - * \param name profile name to load - */ -static void profile_load(const gchar *name) -{ - struct profile *profile; - gchar *settings_path; - gchar *filename; - - profile = g_slice_new0(struct profile); - - profile->name = g_strdup(name); - - filename = g_build_filename(name, "profile.conf", NULL); - settings_path = g_strconcat("/org/tabos/routermanager/profile/", name, "/", NULL); - profile->settings = rm_settings_new_with_path(ROUTERMANAGER_SCHEME_PROFILE, settings_path, filename); - g_free(filename); - - profile->router_info = g_slice_new0(struct router_info); - profile->router_info->host = g_settings_get_string(profile->settings, "host"); - profile->router_info->user = g_settings_get_string(profile->settings, "login-user"); - profile->router_info->password = password_manager_get_password(profile, "login-password"); - - g_free(settings_path); - - profile_add(profile); -} - -/** - * \brief Set active profile - * \param profile profile structure - * - * Set active profile in detail: - * * Set internal active profile - * * Connect user plugin bindings - * * Load and initialize action - * * faxophone setup - * * Load journal - */ -void profile_set_active(struct profile *profile) -{ - if (profile_active) { - action_shutdown(profile_active); - } - - profile_active = profile; - - /* If we have no active profile, exit */ - if (!profile_active) { - /* Clear journal list */ - emit_journal_loaded(NULL); - return; - } - - router_present(profile->router_info); - - plugins_user_plugins(); - - /* Init audio */ - audio_init(profile); - - /* Load and initialize action */ - action_init(profile); - - /* Init faxophone */ - faxophone_setup(); - - /* Load journal list */ - router_load_journal(profile_active); -} - -/** - * \brief Detect active profile (scan available routers and select correct profile) - * \return TRUE on success, otherwise FALSE - */ -gboolean profile_detect_active(void) -{ - GSList *list = profile_get_list(); - struct profile *profile; - struct router_info *router_info; - - /* Compare our profile list against available routers */ - while (list) { - profile = list->data; - - router_info = g_slice_new0(struct router_info); - router_info->host = g_settings_get_string(profile->settings, "host"); - - /* Check if router is present */ - if (router_present(router_info) == TRUE && !strcmp(router_info->serial, g_settings_get_string(profile->settings, "serial"))) { - g_debug("Configured router found: %s", router_info->name); - g_debug("Current router firmware: %d.%d.%d", router_info->box_id, router_info->maj_ver_id, router_info->min_ver_id); - - router_info_free(router_info); - - profile_set_active(profile); - return TRUE; - } - - router_info_free(router_info); - - list = list->next; - } - - g_debug("No already configured router found!"); - - return FALSE; -} - -/** - * \brief Initialize profiles (load profiles) - * \return TRUE - */ -gboolean profile_init(void) -{ - settings = rm_settings_new(ROUTERMANAGER_SCHEME, ROUTERMANAGER_PATH, "routermanager.conf"); - - gchar **profiles = g_settings_get_strv(settings, "profiles"); - gint count; - - /* Load all available profiles */ - for (count = 0; count < g_strv_length(profiles); count++) { - profile_load(profiles[count]); - } - - g_strfreev(profiles); - - return TRUE; -} - -/** - * \brief Free profile entry - * \param data pointer to profile structure - */ -static void profile_free_entry(gpointer data) -{ - struct profile *profile = data; - - /* Free entries */ - g_free(profile->name); - - /* Free router information structure */ - router_info_free(profile->router_info); - - /* Free actions */ - action_shutdown(profile); - - /* Free profiles settings */ - g_clear_object(&profile->settings); - - /* Free structure */ - g_slice_free(struct profile, profile); -} - -/** - * \brief Shutdown profile (free profile list, free settings) - */ -void profile_shutdown(void) -{ - /* Set active profile to NULL */ - profile_active = NULL; - - if (profile_list) { - /* Free profile list */ - g_slist_free_full(profile_list, profile_free_entry); - } - - /* Clear settings object */ - if (settings) { - g_clear_object(&settings); - } -} diff -Nru roger-router-1.8.14/libroutermanager/profile.h roger-router-2.1.6/libroutermanager/profile.h --- roger-router-1.8.14/libroutermanager/profile.h 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/profile.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,50 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_PROFILE_H -#define LIBROUTERMANAGER_PROFILE_H - -#include - -G_BEGIN_DECLS - -struct profile { - gchar *name; - struct router_info *router_info; - - GSettings *settings; - - GSList *action_list; -}; - -gboolean profile_init(void); -void profile_shutdown(void); - -struct profile *profile_new(const gchar *name, const gchar *host, const gchar *user, const gchar *password); -struct profile *profile_get_active(void); -GSList *profile_get_list(void); -void profile_add(struct profile *profile); -void profile_remove(struct profile *profile); -void profile_set_active(struct profile *profile); -void profile_commit(void); -gboolean profile_detect_active(void); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/router.c roger-router-2.1.6/libroutermanager/router.c --- roger-router-1.8.14/libroutermanager/router.c 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/router.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,687 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include - -#include -#include -#include -#include -#include -#include -#include - -/** Active router structure */ -static struct router *active_router = NULL; -/** Global router plugin list */ -static GSList *router_list = NULL; - -/** Mapping between config value and port type */ -struct phone_port router_phone_ports[PORT_MAX] = { - {"name-analog1", PORT_ANALOG1, -1}, - {"name-analog2", PORT_ANALOG2, -1}, - {"name-analog3", PORT_ANALOG3, -1}, - {"name-isdn1", PORT_ISDN1, -1}, - {"name-isdn2", PORT_ISDN2, -1}, - {"name-isdn3", PORT_ISDN3, -1}, - {"name-isdn4", PORT_ISDN4, -1}, - {"name-isdn5", PORT_ISDN5, -1}, - {"name-isdn6", PORT_ISDN6, -1}, - {"name-isdn7", PORT_ISDN7, -1}, - {"name-isdn8", PORT_ISDN8, -1}, - {"name-dect1", PORT_DECT1, -1}, - {"name-dect2", PORT_DECT2, -1}, - {"name-dect3", PORT_DECT3, -1}, - {"name-dect4", PORT_DECT4, -1}, - {"name-dect5", PORT_DECT5, -1}, - {"name-dect6", PORT_DECT6, -1}, - {"name-sip0", PORT_IP1, -1}, - {"name-sip1", PORT_IP2, -1}, - {"name-sip2", PORT_IP3, -1}, - {"name-sip3", PORT_IP4, -1}, - {"name-sip4", PORT_IP5, -1}, - {"name-sip5", PORT_IP6, -1}, - {"name-sip6", PORT_IP7, -1}, - {"name-sip7", PORT_IP8, -1}, - {"name-sip8", PORT_IP9, -1}, - {"name-sip9", PORT_IP10, -1} -}; - -/** - * \brief Get list of phone names - * \param profile profile structure - * \return phone name list - */ -GSList *router_get_phone_list(struct profile *profile) -{ - GSList *list = NULL; - gchar *fon; - gint index; - struct phone *phone; - - if (!profile) { - return list; - } - - phone = g_slice_new(struct phone); - - phone->name = g_strdup("Softphone"); - phone->type = PORT_SOFTPHONE; - - list = g_slist_append(list, phone); - - for (index = 0; index < PORT_MAX - 2; index++) { - fon = g_settings_get_string(profile->settings, router_phone_ports[index].name); - if (!EMPTY_STRING(fon)) { - phone = g_slice_new(struct phone); - - phone->name = g_strdup(fon); - phone->type = router_phone_ports[index].type; - - list = g_slist_append(list, phone); - } - } - - return list; -} - -/** - * \brief Free one phone list entry - * \param data pointer to phone structure - */ -static void free_phone_list(gpointer data) -{ - struct phone *phone = data; - - g_free(phone->name); -} - -/** - * \brief Free full phone list - * \param phone_list phone list - */ -void router_free_phone_list(GSList *phone_list) -{ - g_slist_free_full(phone_list, free_phone_list); -} - -/** - * \brief Get array of phone numbers - * \param profile profile structure - * \return phone number array - */ -gchar **router_get_numbers(struct profile *profile) -{ - return g_settings_get_strv(profile->settings, "numbers"); -} - -/** - * \brief Check if router is present - * \param router_info router information structure - * \return present state - */ -gboolean router_present(struct router_info *router_info) -{ - GSList *list; - - if (!router_list) { - return FALSE; - } - - for (list = router_list; list != NULL; list = list->next) { - struct router *router = list->data; - - if (router->present(router_info)) { - active_router = router; - return TRUE; - } - } - - return FALSE; -} - -/** - * \brief Login to router - * \param profile profile information structure - * \return login state - */ -gboolean router_login(struct profile *profile) -{ - return active_router ? active_router->login(profile) : FALSE; -} - -/** - * \brief Router logout - * \param profile profile information structure - * \return logout state - */ -gboolean router_logout(struct profile *profile) -{ - return active_router ? active_router->logout(profile, TRUE) : FALSE; -} - -/** - * \brief Get router host - * \param profile profile information structure - * \return router host or "" if no profile is active - */ -gchar *router_get_host(struct profile *profile) -{ - return profile ? g_settings_get_string(profile->settings, "host") : ""; -} - -/** - * \brief Get login password - * \param profile router information structure - * \return login password - */ -gchar *router_get_login_password(struct profile *profile) -{ - return password_manager_get_password(profile, "login-password"); -} - -/** - * \brief Get login user - * \param profile router information structure - * \return login user - */ -gchar *router_get_login_user(struct profile *profile) -{ - return g_settings_get_string(profile->settings, "login-user"); -} - -/** - * \brief Get router FTP password - * \param profile router information structure - * \return router ftp password - */ -gchar *router_get_ftp_password(struct profile *profile) -{ - return password_manager_get_password(profile, "ftp-password"); -} - -/** - * \brief Get router FTP user - * \param profile router information structure - * \return router ftp user - */ -gchar *router_get_ftp_user(struct profile *profile) -{ - return g_settings_get_string(profile->settings, "ftp-user"); -} - -/* - * \brief Get international call prefix - * \param profile router information structure - * \return international call prefix - */ -gchar *router_get_international_prefix(struct profile *profile) -{ - if (!profile || !profile->settings) { - return NULL; - } - - return g_settings_get_string(profile->settings, "international-call-prefix"); -} - -/* - * \brief Get national call prefix - * \param profile router information structure - * \return national call prefix - */ -gchar *router_get_national_prefix(struct profile *profile) -{ - return g_settings_get_string(profile->settings, "national-call-prefix"); -} - -/* - * \brief Get router area code - * \param profile router information structure - * \return area code - */ -gchar *router_get_area_code(struct profile *profile) -{ - if (!profile || !profile->settings) { - return NULL; - } - - return g_settings_get_string(profile->settings, "area-code"); -} - -/* - * \brief Get router country code - * \param profile router information structure - * \return country code - */ -gchar *router_get_country_code(struct profile *profile) -{ - if (!profile || !profile->settings) { - return NULL; - } - - return g_settings_get_string(profile->settings, "country-code"); -} - -/** - * \brief Get router settings - * \param profile profile information structure - * \return router settings - */ -gboolean router_get_settings(struct profile *profile) -{ - return active_router ? active_router->get_settings(profile) : FALSE; -} - -/** - * \brief Get router name - * \param profile profile information structure - * \return router name - */ -const gchar *router_get_name(struct profile *profile) -{ - if (!profile || !profile->router_info) { - return NULL; - } - - return profile->router_info->name; -} - -/** - * \brief Get router version - * \param profile profile information structure - * \return router version - */ -const gchar *router_get_version(struct profile *profile) -{ - if (!profile || !profile->router_info) { - return NULL; - } - - return profile->router_info->version; -} - -/** - * \brief Get router journal - * \param profile profile information structure - * \return get journal return state - */ -gboolean router_load_journal(struct profile *profile) -{ - return active_router ? active_router->load_journal(profile, NULL) : FALSE; -} -/** - * \brief Clear router journal - * \param profile profile information structure - * \return clear journal return state - */ -gboolean router_clear_journal(struct profile *profile) -{ - return active_router->clear_journal(profile); -} - -/** - * \brief Dial number - * \param profile profile information structure - * \param port dial port - * \param number number to dial - * \return return state of dial function - */ -gboolean router_dial_number(struct profile *profile, gint port, const gchar *number) -{ - gchar *target = call_canonize_number(number); - gboolean ret; - - ret = active_router->dial_number(profile, port, target); - g_free(target); - - return ret; -} - -/** - * \brief Hangup call - * \param profile profile information structure - * \param port dial port - * \param number number to dial - * \return return state of hangup function - */ -gboolean router_hangup(struct profile *profile, gint port, const gchar *number) -{ - return active_router->hangup(profile, port, number); -} - -/** - * \brief Register new router - * \param router new router structure - */ -gboolean routermanager_router_register(struct router *router) -{ - g_debug("Registering router plugin: '%s'", router->name); - router_list = g_slist_prepend(router_list, router); - - return TRUE; -} - -/** - * \brief Initialize router (if available set internal router structure) - * \return TRUE on success, otherwise FALSE - */ -gboolean router_init(void) -{ - if (g_slist_length(router_list)) { - return TRUE; - } - - g_warning("No router plugin registered!"); - return FALSE; -} - -/** - * \brief Shutdown router - * \return TRUE - */ -void router_shutdown(void) -{ - /* Free router list */ - if (router_list != NULL) { - g_slist_free(router_list); - router_list = NULL; - } - - /* Unset active router */ - active_router = NULL; -} - -/** - * \brief Router needs to process a new loaded journal (emit journal-process signal and journal-loaded) - * \param journal journal list - */ -void router_process_journal(GSList *journal) -{ - GSList *list; - - /* Parse offline journal and combine new entries */ - journal = csv_load_journal(journal); - - /* Store it back to disk */ - csv_save_journal(journal); - - /* Try to lookup entries in address book */ - for (list = journal; list; list = list->next) { - struct call *call = list->data; - - emit_contact_process(call->remote); - } - - /* Emit "journal-loaded" signal */ - emit_journal_loaded(journal); - -} - -/** - * \brief Load fax file - * \param profile profile structure - * \param filename fax filename - * \param len pointer to store data length to - * \return fax data - */ -gchar *router_load_fax(struct profile *profile, const gchar *filename, gsize *len) -{ - return filename[0] == '/' ? file_load((gchar*)filename, len) : active_router->load_fax(profile, filename, len); -} - -/** - * \brief Load voice file - * \param profile profile structure - * \param name voice filename - * \param len pointer to store data length to - * \return voice data - */ -gchar *router_load_voice(struct profile *profile, const gchar *name, gsize *len) -{ - return active_router->load_voice(profile, name, len); -} - -/** - * \brief Get external IP address - * \param profile profile structure - * \return IP address - */ -gchar *router_get_ip(struct profile *profile) -{ - return active_router->get_ip(profile); -} - -/** - * \brief Reconnect network connection - * \param profile profile structure - * \param TRUE on success, otherwise FALSE - */ -gboolean router_reconnect(struct profile *profile) -{ - return active_router->reconnect(profile); -} - -/** - * \brief Delete fax file on router - * \param profile profile structure - * \param filename fax filename to delete - * \param TRUE on success, otherwise FALSE - */ -gboolean router_delete_fax(struct profile *profile, const gchar *filename) -{ - return active_router->delete_fax(profile, filename); -} - -/** - * \brief Delete voice file on router - * \param profile profile structure - * \param filename voice filename to delete - * \param TRUE on success, otherwise FALSE - */ -gboolean router_delete_voice(struct profile *profile, const gchar *filename) -{ - return active_router->delete_voice(profile, filename); -} - -/** - * \brief Free router info structure - * \param info router_info structure - * \return TRUE if structure is freed, otherwise FALSE - */ -gboolean router_info_free(struct router_info *info) -{ - if (info) { - g_free(info->name); - g_free(info->serial); - g_free(info->version); - g_free(info->lang); - g_free(info->annex); - - g_free(info->host); - g_free(info->user); - g_free(info->password); - g_free(info->session_id); - - if (info->session_timer) { - g_timer_destroy(info->session_timer); - } - - g_slice_free(struct router_info, info); - - return TRUE; - } - - return FALSE; -} - -/** - * \brief Check if router is using cable as annex - * \param profile profile structure - * \return TRUE if cable is used, otherwise FALSE - */ -gboolean router_is_cable(struct profile *profile) -{ - gboolean is_cable = FALSE; - - if (!EMPTY_STRING(profile->router_info->annex) && !strcmp(profile->router_info->annex, "Kabel")) { - is_cable = TRUE; - } - - return is_cable; -} - -/** - * \brief Load fax reports and add them to the journal - * \param profile profile structure - * \param journal journal list pointer - * \return new journal list with attached fax reports - */ -GSList *router_load_fax_reports(struct profile *profile, GSList *journal) -{ - GDir *dir; - GError *error = NULL; - const gchar *file_name; - gchar *dir_name = g_settings_get_string(profile->settings, "fax-report-dir"); - - if (!dir_name) { - return journal; - } - - dir = g_dir_open(dir_name, 0, &error); - if (!dir) { - g_debug("Could not open fax report directory"); - return journal; - } - - while ((file_name = g_dir_read_name(dir))) { - gchar *uri; - gchar **split; - gchar *date_time; - - if (strncmp(file_name, "fax-report", 10)) { - continue; - } - - split = g_strsplit(file_name, "_", -1); - if (g_strv_length(split) != 9) { - g_strfreev(split); - continue; - } - - uri = g_build_filename(dir_name, file_name, NULL); - - date_time = g_strdup_printf("%s.%s.%s %2.2s:%2.2s", split[3], split[4], split[5] + 2, split[6], split[7]); - journal = call_add(journal, CALL_TYPE_FAX_REPORT, date_time, "", split[2], ("Fax-Report"), split[1], "0:01", g_strdup(uri)); - - g_free(uri); - g_strfreev(split); - } - - return journal; -} - -/** - * \brief Load voice records and add them to the journal - * \param profile profile structure - * \param journal journal list pointer - * \return new journal list with attached fax reports - */ -GSList *router_load_voice_records(struct profile *profile, GSList *journal) -{ - GDir *dir; - GError *error = NULL; - const gchar *file_name; - const gchar *user_plugins = g_get_user_data_dir(); - gchar *dir_name = g_build_filename(user_plugins, "roger", G_DIR_SEPARATOR_S, NULL); - - if (!dir_name) { - return journal; - } - - dir = g_dir_open(dir_name, 0, &error); - if (!dir) { - g_debug("Could not open voice records directory"); - return journal; - } - - while ((file_name = g_dir_read_name(dir))) { - gchar *uri; - gchar **split; - gchar *date_time; - gchar *num; - - /* %2.2d.%2.2d.%4.4d-%2.2d-%2.2d-%s-%s.wav", - time_val->tm_mday, time_val->tm_mon, 1900 + time_val->tm_year, - time_val->tm_hour, time_val->tm_min, connection->source, connection->target); - */ - - if (!strstr(file_name, ".wav")) { - continue; - } - - split = g_strsplit(file_name, "-", -1); - if (g_strv_length(split) != 5) { - g_strfreev(split); - continue; - } - - uri = g_build_filename(dir_name, file_name, NULL); - num = split[4]; - num[strlen(num) - 4] = '\0'; - - //date_time = g_strdup_printf("%s.%s.%s %2.2s:%2.2s", split[3], split[4], split[5] + 2, split[6], split[7]); - date_time = g_strdup_printf("%s %2.2s:%2.2s", split[0], split[1], split[2]); - journal = call_add(journal, CALL_TYPE_RECORD, date_time, "", num, ("Record"), split[3], "0:01", g_strdup(uri)); - - g_free(uri); - g_strfreev(split); - } - - return journal; -} - -/** - * \brief Get phone port - * \param profile router information structure - * \return phone port - */ -gint router_get_phone_port(struct profile *profile) -{ - return g_settings_get_int(profile->settings, "port"); -} - -/** - * \brief Set phone port - * \param profile router information structure - * \param port phone port - */ -void router_set_phone_port(struct profile *profile, gint port) -{ - g_settings_set_int(profile->settings, "port", port); -} - -/** - * \brief Get number suppress state - * \param profile router information structure - * \return suppress state - */ -gboolean router_get_suppress_state(struct profile *profile) -{ - return g_settings_get_boolean(profile->settings, "suppress"); -} diff -Nru roger-router-1.8.14/libroutermanager/router.h roger-router-2.1.6/libroutermanager/router.h --- roger-router-1.8.14/libroutermanager/router.h 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/router.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,179 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_ROUTER_H -#define LIBROUTERMANAGER_ROUTER_H - -#include - -#include - -G_BEGIN_DECLS - -enum phone_ports { - PORT_SOFTPHONE, - PORT_ANALOG1, - PORT_ANALOG2, - PORT_ANALOG3, - PORT_ISDNALL, - PORT_ISDN1, - PORT_ISDN2, - PORT_ISDN3, - PORT_ISDN4, - PORT_ISDN5, - PORT_ISDN6, - PORT_ISDN7, - PORT_ISDN8, - PORT_DECT1, - PORT_DECT2, - PORT_DECT3, - PORT_DECT4, - PORT_DECT5, - PORT_DECT6, - PORT_IP1, - PORT_IP2, - PORT_IP3, - PORT_IP4, - PORT_IP5, - PORT_IP6, - PORT_IP7, - PORT_IP8, - PORT_IP9, - PORT_IP10, - PORT_MAX -}; - -enum phone_number_type { - PHONE_NUMBER_HOME, - PHONE_NUMBER_WORK, - PHONE_NUMBER_MOBILE, - PHONE_NUMBER_FAX_HOME, - PHONE_NUMBER_FAX_WORK, - PHONE_NUMBER_PAGER, -}; - -struct phone { - gchar *name; - gint type; -}; - -struct phone_number { - enum phone_number_type type; - gchar *number; -}; - -struct phone_port { - gchar *name; - gint type; - gint number; -}; - -struct router_info { - gchar *host; - gchar *user; - gchar *password; - gchar *name; - gchar *version; - gchar *serial; - gchar *session_id; - gchar *lang; - gchar *annex; - - /* Extend */ - gint box_id; - gint maj_ver_id; - gint min_ver_id; - GTimer *session_timer; -}; - -struct router { - const gchar *name; - gboolean (*present)(struct router_info *router_info); - gboolean (*login)(struct profile *profile); - gboolean (*logout)(struct profile *profile, gboolean force); - gboolean (*get_settings)(struct profile *profile); - gboolean (*load_journal)(struct profile *profile, gchar **data); - gboolean (*clear_journal)(struct profile *profile); - gboolean (*dial_number)(struct profile *profile, gint port, const gchar *number); - gboolean (*hangup)(struct profile *profile, gint port, const gchar *number); - gchar *(*load_fax)(struct profile *profile, const gchar *filename, gsize *len); - gchar *(*load_voice)(struct profile *profile, const gchar *filename, gsize *len); - gchar *(*get_ip)(struct profile *profile); - gboolean (*reconnect)(struct profile *profile); - gboolean (*delete_fax)(struct profile *profile, const gchar *filename); - gboolean (*delete_voice)(struct profile *profile, const gchar *filename); -}; - -extern struct phone_port router_phone_ports[PORT_MAX]; - -gboolean router_present(struct router_info *router_info); -gboolean router_login(struct profile *profile); -gboolean router_logout(struct profile *profile); -gboolean router_get_settings(struct profile *profile); -const gchar *router_get_name(struct profile *profile); -const gchar *router_get_version(struct profile *profile); -gchar *router_get_host(struct profile *profile); -gchar *router_get_login_password(struct profile *profile); -gchar *router_get_login_user(struct profile *profile); -gchar *router_get_ftp_password(struct profile *profile); -gchar *router_get_ftp_user(struct profile *profile); -gboolean router_load_journal(struct profile *profile); -gboolean router_clear_journal(struct profile *profile); -gboolean router_dial_number(struct profile *profile, gint port, const gchar *number); -gboolean router_hangup(struct profile *profile, gint port, const gchar *number); -gchar *router_get_ip(struct profile *profile); -gboolean router_reconnect(struct profile *profile); -gboolean router_delete_fax(struct profile *profile, const gchar *filename); -gboolean router_delete_voice(struct profile *profile, const gchar *filename); - -gchar *router_get_area_code(struct profile *profile); -gchar *router_get_country_code(struct profile *profile); -gchar *router_get_international_prefix(struct profile *profile); -gchar *router_get_national_prefix(struct profile *profile); - -gboolean router_init(void); -void router_shutdown(void); - -GSList *router_get_phone_list(struct profile *profile); -gchar **router_get_numbers(struct profile *profile); - -void router_process_journal(GSList *journal); - -gboolean routermanager_router_register(struct router *router_new); - -gchar *router_load_fax(struct profile *profile, const gchar *filename, gsize *len); -gchar *router_load_voice(struct profile *profile, const gchar *filename, gsize *len); - -gboolean router_info_free(struct router_info *info); -gboolean router_is_cable(struct profile *profile); - -GSList *router_load_fax_reports(struct profile *profile, GSList *journal); -GSList *router_load_voice_records(struct profile *profile, GSList *journal); - -void router_free_phone_list(GSList *phone_list); - -gint router_get_phone_port(struct profile *profile); -void router_set_phone_port(struct profile *profile, gint port); - -gboolean router_get_suppress_state(struct profile *profile); - - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/routermanager.c roger-router-2.1.6/libroutermanager/routermanager.c --- roger-router-1.8.14/libroutermanager/routermanager.c 2015-12-06 17:34:21.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/routermanager.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,221 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#ifdef __APPLE__ -#include -#endif - -/** Private data pointing to the plugin directory */ -static gchar *plugin_dir = NULL; - -/** - * \brief Print error quark - * \return quark - */ -GQuark rm_print_error_quark(void) -{ - return g_quark_from_static_string("rm-print-error-quark"); -} - -/** - * \brief Get directory of requested type - * \param type directory type name - * \return directory as duplicated string - */ -gchar *get_directory(gchar *type) -{ -#ifdef G_OS_WIN32 - GFile *directory; - GFile *child; - gchar *tmp; - - tmp = g_win32_get_package_installation_directory_of_module(NULL); - - directory = g_file_new_for_path(tmp); - g_free(tmp); - - child = g_file_get_child(directory, type); - g_object_unref(directory); - - directory = child; - - tmp = g_file_get_path(directory); - g_object_unref(directory); - - return tmp; -#elif __APPLE__ - gchar *bundle = gtkosx_application_get_bundle_path(); - - if (gtkosx_application_get_bundle_id()) { - return g_strdup_printf("%s/Contents/Resources/%s", bundle, type); - } else { - return g_strdup_printf("%s/../%s", bundle, type); - } -#else - return g_strdup(type); -#endif -} - -/** - * \brief Initialize directory paths - */ -void init_directory_paths(void) -{ - plugin_dir = get_directory(ROUTERMANAGER_PLUGINS); -} - -/** - * \brief Return plugin directory - * \return plugin directory string - */ -static gchar *get_plugin_dir(void) -{ - return plugin_dir; -} - -/** - * \brief Initialize routermanager - * \param debug enable debug output - * \return TRUE on success, FALSE on error - */ -gboolean routermanager_init(gboolean debug, GError **error) -{ - gchar *dir; - -#if !GLIB_CHECK_VERSION(2, 36, 0) - /* Init g_type */ - g_type_init(); -#endif - - /* Init directory path */ - init_directory_paths(); - - /* Initialize logging system */ - log_init(debug); - - /* Say hello */ - g_debug("%s %s", PACKAGE_NAME, PACKAGE_VERSION); - - /* Create routermanager data & cache directory */ - dir = g_build_filename(g_get_user_data_dir(), "routermanager", NULL); - g_mkdir_with_parents(dir, 0700); - g_free(dir); - - dir = g_build_filename(g_get_user_cache_dir(), "routermanager", NULL); - g_mkdir_with_parents(dir, 0700); - g_free(dir); - - /* Create main app object (signals) */ - app_object = app_object_new(); - g_assert(app_object != NULL); - - /* Init filter */ - filter_init(); - - /* Init fax printer */ - if (!fax_printer_init(error)) { - return FALSE; - } - - /* Initialize network */ - net_init(); - - /* Load plugins depending on ui (router, audio, address book, reverse lookup...) */ - routermanager_plugins_add_search_path(get_plugin_dir()); - - /* Initialize plugins */ - plugins_init(); - - /* Check password manager */ - if (!password_manager_get_plugins()) { - g_set_error(error, RM_ERROR, RM_ERROR_ROUTER, "%s", "No password manager plugins active"); - return FALSE; - } - - /* Initialize router */ - if (!router_init()) { - g_set_error(error, RM_ERROR, RM_ERROR_ROUTER, "%s", "Failed to initialize router"); - return FALSE; - } - - /* Initialize profiles */ - profile_init(); - - /* Initialize network monitor */ - net_monitor_init(); - - return TRUE; -} - -/** - * \brief Shutdown routermanager - * - Network monitor - * - Profile - * - Router - * - Plugins - * - Network - * - Filter - * - AppObject - * - Log - */ -void routermanager_shutdown(void) -{ - /* Shutdown network monitor */ - net_monitor_shutdown(); - - /* Shutdown profiles */ - profile_shutdown(); - - /* Shutdown router */ - router_shutdown(); - - /* Shutdown plugins */ - plugins_shutdown(); - - /* Shutdown network */ - net_shutdown(); - - /* Shutdown filter */ - filter_shutdown(); - - /* Destroy app_object */ - g_clear_object(&app_object); - - /* Shutdown logging */ - log_shutdown(); -} diff -Nru roger-router-1.8.14/libroutermanager/routermanager.h roger-router-2.1.6/libroutermanager/routermanager.h --- roger-router-1.8.14/libroutermanager/routermanager.h 2015-12-05 21:39:05.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/routermanager.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,54 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_ROUTERMANAGER_H -#define LIBROUTERMANAGER_ROUTERMANAGER_H - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -G_BEGIN_DECLS - -#define _(text) gettext(text) - -#define ROUTERMANAGER_SCHEME "org.tabos.routermanager" -#define ROUTERMANAGER_SCHEME_PROFILE "org.tabos.routermanager.profile" -#define ROUTERMANAGER_SCHEME_PROFILE_ACTION "org.tabos.routermanager.profile.action" - -#define ROUTERMANAGER_PATH "/org/tabos/routermanager/" - -#define RM_ERROR rm_print_error_quark() - -typedef enum { - RM_ERROR_FAX, - RM_ERROR_ROUTER, - RM_ERROR_AUDIO, -} rm_error; - -GQuark rm_print_error_quark(void); -gboolean routermanager_init(gboolean debug, GError **error); -void routermanager_shutdown(void); -gchar *get_directory(gchar *type); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/routermanager.pc.in roger-router-2.1.6/libroutermanager/routermanager.pc.in --- roger-router-1.8.14/libroutermanager/routermanager.pc.in 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/routermanager.pc.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,11 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@ - -Name: routermanager -Description: Router Manager -Version: @VERSION@ -Requires: gio-2.0 gmodule-2.0 libsecret-1 libsoup-2.4 libpeas-1.0 glib-2.0 speex speexdsp sndfile -Libs: -L${libdir} -lroutermanager -Cflags: -I${includedir}/ diff -Nru roger-router-1.8.14/libroutermanager/settings.c roger-router-2.1.6/libroutermanager/settings.c --- roger-router-1.8.14/libroutermanager/settings.c 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/settings.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,114 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -//#define USE_KEYFILE 1 - -#include -#include - -#ifdef USE_KEYFILE -#define G_SETTINGS_ENABLE_BACKEND -#include -#endif - -#include -#include -#include - -/** - * \brief Create new gsettings configuration (either keyfile based, or system based) - * \param scheme scheme name - * \param path root path or NULL - * \param file filename (used in keyfile case) - * \return newly create gsettings - */ -GSettings *rm_settings_new(gchar *scheme, gchar *root_path, gchar *file) -{ - GSettings *settings = NULL; - -#ifdef USE_KEYFILE - GSettingsBackend *keyfile; - gchar *filename; - - filename = g_build_filename(g_get_user_config_dir(), "routermanager", file, NULL); - g_debug("filename: '%s'", filename); - //keyfile = g_keyfile_settings_backend_new(filename, ROUTERMANAGER_PATH, "General"); - if (!root_path) { - root_path = "/"; - } - if (root_path) { - g_debug("root_path: '%s'", root_path); - } - keyfile = g_keyfile_settings_backend_new(filename, root_path, "General"); - g_debug("keyfile: '%p'", keyfile); - settings = g_settings_new_with_backend(scheme, keyfile); - g_debug("settings: '%p'", settings); - g_free(filename); -#else - settings = g_settings_new(scheme); -#endif - - return settings; -} - -/** - * \brief Create new gsettings configuration (either keyfile based, or system based) - * \param scheme scheme name - * \param settings_path settings path name - * \param file filename (used in keyfile case) - * \return newly create gsettings - */ -GSettings *rm_settings_new_with_path(gchar *scheme, gchar *settings_path, gchar *file) -{ - GSettings *settings = NULL; - -#ifdef USE_KEYFILE - GSettingsBackend *keyfile; - gchar *filename; - - filename = g_build_filename(g_get_user_config_dir(), "routermanager/", file, NULL); - //keyfile = g_keyfile_settings_backend_new(filename, ROUTERMANAGER_PATH, NULL); - keyfile = g_keyfile_settings_backend_new(filename, "/", NULL); - settings = g_settings_new_with_backend_and_path(scheme, keyfile, settings_path); - g_free(filename); -#else - settings = g_settings_new_with_path(scheme, settings_path); -#endif - - return settings; -} - -/** - * \brief Create new plugin gsettings configuration (either keyfile based, or system based) - * \param scheme scheme name - * \param name plugin name - * \return newly create gsettings - */ -GSettings *rm_settings_plugin_new(gchar *scheme, gchar *name) -{ - GSettings *settings = NULL; - struct profile *profile = profile_get_active(); - gchar *filename; - - filename = g_strconcat(profile->name, "/plugin-", name, ".conf", NULL); - settings = rm_settings_new(scheme, NULL, filename); - g_free(filename); - - return settings; -} diff -Nru roger-router-1.8.14/libroutermanager/settings.h roger-router-2.1.6/libroutermanager/settings.h --- roger-router-1.8.14/libroutermanager/settings.h 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/settings.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,31 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_SETTINGS_H -#define LIBROUTERMANAGER_SETTINGS_H - -G_BEGIN_DECLS - -GSettings *rm_settings_new(gchar *scheme, gchar *root_path, gchar *file); -GSettings *rm_settings_plugin_new(gchar *scheme, gchar *file); -GSettings *rm_settings_new_with_path(gchar *scheme, gchar *path, gchar *file); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/ssdp.c roger-router-2.1.6/libroutermanager/ssdp.c --- roger-router-1.8.14/libroutermanager/ssdp.c 2015-12-06 21:06:53.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/ssdp.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,86 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include -#include - -#include - -static GUPnPContextManager *context_manager; - -static GList *routers = NULL; - -static void device_proxy_available_cb(GUPnPControlPoint *cp, GUPnPDeviceProxy *proxy) -{ - struct router_info *router_info = g_slice_new0(struct router_info); - GUPnPDeviceInfo *info = GUPNP_DEVICE_INFO(proxy); - const SoupURI *uri; - - uri = gupnp_device_info_get_url_base(info); - router_info->host = g_strdup(soup_uri_get_host((SoupURI*)uri)); - - /* Scan for router and add detected devices */ - if (router_present(router_info) == TRUE) { - routers = g_list_append(routers, router_info); - } -} - -static void device_proxy_unavailable_cb(GUPnPControlPoint *cp, GUPnPDeviceProxy *proxy) -{ - g_debug("%s(): %s", __FUNCTION__, gupnp_device_info_get_model_name(GUPNP_DEVICE_INFO(proxy))); -} - -GList *ssdp_get_routers(void) -{ - if (!routers) { - struct router_info *router_info = g_slice_new0(struct router_info); - - /* Fallback - In case no routers have been detected, try at least fritz.box manually */ - router_info->host = g_strdup("fritz.box"); - - /* Scan for router and add detected devices */ - if (router_present(router_info) == TRUE) { - routers = g_list_append(routers, router_info); - } - } - - return routers; -} - -static void on_context_available(GUPnPContextManager *manager, GUPnPContext *context, gpointer user_data) -{ - GUPnPControlPoint *cp; - - cp = gupnp_control_point_new(context, "urn:schemas-upnp-org:device:InternetGatewayDevice:1"); - - g_signal_connect(cp, "device-proxy-available", G_CALLBACK(device_proxy_available_cb), NULL); - g_signal_connect(cp, "device-proxy-unavailable", G_CALLBACK (device_proxy_unavailable_cb), NULL); - - gssdp_resource_browser_set_active(GSSDP_RESOURCE_BROWSER(cp), TRUE); - - gupnp_context_manager_manage_control_point(context_manager, cp); - - g_object_unref (cp); -} - -void ssdp_init(void) -{ - context_manager = gupnp_context_manager_new(NULL, 1900); - g_signal_connect(context_manager, "context-available", G_CALLBACK(on_context_available), NULL); -} diff -Nru roger-router-1.8.14/libroutermanager/ssdp.h roger-router-2.1.6/libroutermanager/ssdp.h --- roger-router-1.8.14/libroutermanager/ssdp.h 2015-12-06 19:18:15.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/ssdp.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,26 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_SSDP_H -#define LIBROUTERMANAGER_SSDP_H - -void ssdp_init(void); -GList *ssdp_get_routers(void); - -#endif diff -Nru roger-router-1.8.14/libroutermanager/voxplay.c roger-router-2.1.6/libroutermanager/voxplay.c --- roger-router-1.8.14/libroutermanager/voxplay.c 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/voxplay.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,366 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include -#include - -#include -#include - -#include - -#include -#include -#include -#include - -#define MAX_FRAME_SIZE 2000 - -/** Private vox playback structure */ -struct vox_playback { - /** Vox data buffer */ - gchar *data; - /** Length of vox data */ - gsize len; - /** Pointer to thread structure */ - GThread *thread; - /** Speex structure */ - gpointer speex; - /** audio device */ - struct audio *audio; - /** audio private data */ - gpointer audio_priv; - /** cancellable object for playback thread */ - GCancellable *cancel; - /** playback state (pause/playing) */ - gboolean state; - /** number of frame count */ - gint num_cnt; - /** current playback data offset */ - gsize offset; - /** current playback frame count */ - gint cnt; - /** Current fraction */ - gint fraction; -}; - -/** - * \brief Main playback thread - * \param user_data audio private pointer - * \return NULL - */ -static gpointer playback_thread(gpointer user_data) -{ - struct vox_playback *playback = user_data; - spx_int32_t frame_size; - SpeexBits bits; - gshort output[MAX_FRAME_SIZE]; - gint j; - gint max_cnt = 0; - guchar bytes = 0; - - speex_bits_init(&bits); - - /* Get frame rate */ - speex_decoder_ctl(playback->speex, SPEEX_GET_FRAME_SIZE, &frame_size); - - /* Loop through data in order to calculate frame counts */ - playback->offset = 0; - while (playback->offset < playback->len && !g_cancellable_is_cancelled(playback->cancel)) { - bytes = playback->data[playback->offset]; - playback->offset++; - - if (bytes != 0x26) { - continue; - } - - playback->offset += bytes; - playback->cnt++; - } - - playback->num_cnt = playback->cnt; - -//#ifdef VOX_DEBUG - g_debug("cnt: %d", playback->num_cnt); - g_debug("Seconds: %f", (float)(frame_size * playback->cnt) / (float)8000); -//#endif - - max_cnt = playback->cnt; - playback->offset = 0; - playback->cnt = 0; - - /* Start playback */ - while (playback->offset < playback->len && !g_cancellable_is_cancelled(playback->cancel)) { - if (playback->state) { - /* We are in pause state, delay the loop to prevent high cpu load */ - g_usleep(100); - continue; - } - - /* Read number of bytes */ - bytes = playback->data[playback->offset]; - playback->offset++; - - if (bytes != 0x26) { - continue; - } - - /* initializes bit stream */ - speex_bits_read_from(&bits, (char *) playback->data + playback->offset, bytes); - playback->offset += bytes; - - /* Deocde data */ - for (j = 0; j != 2; j++) { - gint ret; - - ret = speex_decode_int(playback->speex, &bits, output); - if (ret == -1) { - break; - } else if (ret == -2) { - g_warning("Decoding error: corrupted stream?"); - break; - } - - if (speex_bits_remaining(&bits) < 0) { - g_warning("Decoding overflow: corrupted stream?"); - break; - } - } - - /* Write data to audio device */ - playback->audio->write(playback->audio_priv, (guchar *) output, frame_size * sizeof(gshort)); - - /* Increment current frame count and update ui */ - playback->cnt++; - - playback->fraction = playback->cnt * 100 / max_cnt; - } - g_debug("End of vox"); - - speex_bits_destroy(&bits); - - return NULL; -} - -/** - * \brief Play voicebox message file - * \param vox_data pointer to vox playback data - * \return TRUE on playback started, FALSE otherwise - */ -gboolean vox_play(gpointer vox_data) -{ - struct vox_playback *playback = vox_data; - - if (!playback) { - return FALSE; - } - - /* Reset internal values */ - playback->offset = 0; - playback->cnt = 0; - - /* Start playback thread */ - playback->state = FALSE; - playback->thread = g_thread_new("play vox", playback_thread, playback); - - return playback->thread != NULL; -} - -/** - * \brief Toggle play/pause state - * \param vox_data pointer to vox playback data - * \return TRUE if pause, FALSE on playing - */ -gboolean vox_playpause(gpointer vox_data) -{ - struct vox_playback *playback = vox_data; - - if (!playback) { - return FALSE; - } - - playback->state = !playback->state; - - return !playback->state; -} - -/** - * \brief Stop vox playback if it is still running - * \param vox_data pointer to vox playback data - */ -gboolean vox_stop(gpointer vox_data) -{ - struct vox_playback *playback = vox_data; - - /* Safety check */ - if (!playback) { - return FALSE; - } - - /* Pause music, cancel cancellable and join thread */ - playback->state = TRUE; - g_cancellable_cancel(playback->cancel); - g_thread_join(playback->thread); - - /* Destroy speex decoder */ - speex_decoder_destroy(playback->speex); - - /* Close audio device */ - playback->audio->close(playback->audio_priv); - playback->audio = NULL; - - /* Unref cancellable and free structure */ - g_object_unref(playback->cancel); - g_slice_free(struct vox_playback, playback); - - return TRUE; -} - -/** - * \brief Seek within vox stream - * \param vox_data pointer to vox playback data - * \param pos position fraction - * \return TRUE on seek success, FALSE on error - */ -gboolean vox_seek(gpointer vox_data, gdouble pos) -{ - struct vox_playback *playback = vox_data; - spx_int32_t frame_size; - gint cnt; - gint cur_cnt = 0; - gsize offset = 0; - guchar bytes = 0; - - g_debug("seek called"); - - if (!playback) { - return FALSE; - } - - /* Get frame rate */ - speex_decoder_ctl(playback->speex, SPEEX_GET_FRAME_SIZE, &frame_size); - - g_debug("num_cnt: %d, pos: %f", playback->num_cnt, pos); - cnt = playback->num_cnt * pos; - - /* Loop through data in order to calculate frame counts */ - //g_debug("loop %d < %d; cancel %d", offset, playback->len, g_cancellable_is_cancelled(playback->cancel)); - while (offset < playback->len && !g_cancellable_is_cancelled(playback->cancel)) { - bytes = playback->data[offset]; - offset++; - - if (bytes != 0x26) { - continue; - } - - offset += bytes; - cur_cnt++; - - g_debug("cur_cnt: %d cnt: %d", cur_cnt, cnt); - /* If we have the requested count, overwrite playback data */ - if (cur_cnt == cnt) { - playback->offset = offset; - playback->cnt = cnt; - - g_debug("true"); - return TRUE; - } - } - g_debug("false"); - - return FALSE; -} - -/** - * \brief Get current fraction of playback slider - * \param vox_data internal vox playback structure - * \return current fraction - */ -gint vox_get_fraction(gpointer vox_data) -{ - struct vox_playback *playback = vox_data; - - return playback->fraction; -} - -/** - * \brief Initialize vox playback structure - * \param data voice data - * \param len length of voice data - * \param error error message - * \return vox play structure - */ -gpointer vox_init(gchar *data, gsize len, GError **error) -{ - struct vox_playback *playback; - const SpeexMode *mode; - spx_int32_t rate = 0; - - /* Create internal structue and store data pointer and data length */ - playback = g_slice_new(struct vox_playback); - playback->data = data; - playback->len = len; - - /* Get default audio device */ - playback->audio = audio_get_default(); - if (!playback->audio) { - g_warning("No audio device"); - g_slice_free(struct vox_playback, playback); - - g_set_error(error, RM_ERROR, RM_ERROR_AUDIO, "%s", "No audio device"); - - - return NULL; - } - - /* open audio device */ - playback->audio_priv = playback->audio->open(); - if (!playback->audio_priv) { - g_debug("Could not open audio device"); - g_slice_free(struct vox_playback, playback); - - g_set_error(error, RM_ERROR, RM_ERROR_AUDIO, "%s", "Could not open audio device"); - - - return NULL; - } - - /* Initialize speex decoder */ - mode = speex_lib_get_mode(0); - - playback->speex = speex_decoder_init(mode); - if (!playback->speex) { - g_warning("Decoder initialization failed."); - playback->audio->close(playback->audio_priv); - - g_slice_free(struct vox_playback, playback); - - g_set_error(error, RM_ERROR, RM_ERROR_AUDIO, "%s", "Decoder initialization failed."); - - return NULL; - } - - rate = 8000; - speex_decoder_ctl(playback->speex, SPEEX_SET_SAMPLING_RATE, &rate); - - /* Create cancellable */ - playback->cancel = g_cancellable_new(); - - return playback; -} diff -Nru roger-router-1.8.14/libroutermanager/voxplay.h roger-router-2.1.6/libroutermanager/voxplay.h --- roger-router-1.8.14/libroutermanager/voxplay.h 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/voxplay.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,34 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef LIBROUTERMANAGER_VOXPLAY_H -#define LIBROUTERMANAGER_VOXPLAY_H - -G_BEGIN_DECLS - -gpointer vox_init(gchar *data, gsize len, GError **error); -gboolean vox_play(gpointer vox_data); -gboolean vox_stop(gpointer vox_data); -gboolean vox_playpause(gpointer vox_data); -gboolean vox_seek(gpointer vox_data, gdouble pos); -gint vox_get_fraction(gpointer vox_data); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/libroutermanager/xml.c roger-router-2.1.6/libroutermanager/xml.c --- roger-router-1.8.14/libroutermanager/xml.c 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/xml.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,989 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -/** - * \file xml.c - * \brief XML config file parsing - */ - -#include - -#include -#include - -#include - -#include - -/** - * \brief Create new xml node - * \param name node name - * \param type node type - * \return new node pointer - */ -xmlnode *new_node(const gchar *name, xml_node_type type) -{ - xmlnode *node = g_new0(xmlnode, 1); - - node->name = g_strdup(name); - node->type = type; - - return node; -} - -/** - * \brief Create a new tag node - * \param name node name - * \return new node pointer or NULL on error - */ -xmlnode *xmlnode_new(const gchar *name) -{ - g_return_val_if_fail(name != NULL, NULL); - - return new_node(name, XMLNODE_TYPE_TAG); -} - -/** - * \brief Insert child into parent node - * \param parent parent node - * \param child child node - */ -void xmlnode_insert_child(xmlnode *parent, xmlnode *child) -{ - g_return_if_fail(parent != NULL); - g_return_if_fail(child != NULL); - - child->parent = parent; - - if (parent->last_child) { - parent->last_child->next = child; - } else { - parent->child = child; - } - - parent->last_child = child; -} - -/** - * \brief Create new child node - * \param parent parent node - * \param name node name - * \return new node pointer or NULL on error - */ -xmlnode *xmlnode_new_child(xmlnode *parent, const gchar *name) -{ - xmlnode *node; - - g_return_val_if_fail(parent != NULL, NULL); - g_return_val_if_fail(name != NULL, NULL); - - node = new_node(name, XMLNODE_TYPE_TAG); - - xmlnode_insert_child(parent, node); - - return node; -} - -/** - * \brief Free node - * \param node node to free - */ -void xmlnode_free(xmlnode *node) -{ - xmlnode *x, *y; - - g_return_if_fail(node != NULL); - - if (node->parent != NULL) { - if (node->parent->child == node) { - node->parent->child = node->next; - if (node->parent->last_child == node) { - node->parent->last_child = node->next; - } - } else { - xmlnode *prev = node->parent->child; - while (prev && prev->next != node) { - prev = prev->next; - } - - if (prev) { - prev->next = node->next; - if (node->parent->last_child == node) { - node->parent->last_child = prev; - } - } - } - } - - x = node->child; - while (x) { - y = x->next; - xmlnode_free(x); - x = y; - } - - g_free(node->name); - g_free(node->data); - g_free(node->xml_ns); - g_free(node->prefix); - - if (node->namespace_map) { - g_hash_table_destroy(node->namespace_map); - } - - g_free(node); -} - -/** - * \brief Remove attribute from node - * \param node node pointer - * \param attr attribute name - */ -static void xmlnode_remove_attrib(xmlnode *node, const gchar *attr) -{ - xmlnode *attr_node, *sibling = NULL; - - g_return_if_fail(node != NULL); - g_return_if_fail(attr != NULL); - - for (attr_node = node->child; attr_node != NULL; attr_node = attr_node->next) { - if (attr_node->type == XMLNODE_TYPE_ATTRIB && !strcmp(attr_node->name, attr)) { - if (sibling == NULL) { - node->child = attr_node->next; - } else { - sibling->next = attr_node->next; - } - - if (node->last_child == attr_node) { - node->last_child = sibling; - } - xmlnode_free(attr_node); - - return; - } - sibling = attr_node; - } -} - -/** - * \brief Set attribute for node - * \param node node pointer - * \param attr attribute name - * \param value value to set - */ -void xmlnode_set_attrib(xmlnode *node, const gchar *attr, const gchar *value) -{ - xmlnode *attrib_node; - - g_return_if_fail(node != NULL); - g_return_if_fail(attr != NULL); - g_return_if_fail(value != NULL); - - xmlnode_remove_attrib(node, attr); - - attrib_node = new_node(attr, XMLNODE_TYPE_ATTRIB); - - attrib_node->data = g_strdup(value); - - xmlnode_insert_child(node, attrib_node); -} - -/** - * \brief Get node prefix - * \param node node pointer - * \return node prefix - */ -static const gchar *xmlnode_get_prefix(xmlnode *node) -{ - g_return_val_if_fail(node != NULL, NULL); - - return node->prefix; -} - -/** - * \brief Convert node to string - * \param key key name - * \param value value - * \param buf buffer to print to - */ -static void xmlnode_to_str_foreach_append_ns(const gchar *key, const gchar *value, GString *buf) -{ - if (*key) { - g_string_append_printf(buf, " xmlns:%s='%s'", key, value); - } else { - g_string_append_printf(buf, " xmlns='%s'", value); - } -} - -/** - * \brief Helps with converting node to string - * \param node node to convert - * \param len pointer for len saving - * \param formatting format text? - * \param depth depth - * \return string data or NULL on error - */ -static gchar *xmlnode_to_str_helper(xmlnode *node, gint *len, gboolean formatting, gint depth) -{ - GString *text = g_string_new(""); - const gchar *prefix; - xmlnode *c; - gchar *node_name, *esc, *esc2, *tab = NULL; - gboolean need_end = FALSE, pretty = formatting; - - g_return_val_if_fail(node != NULL, NULL); - - if (pretty && depth) { - tab = g_strnfill(depth, '\t'); - text = g_string_append(text, tab); - } - - node_name = g_markup_escape_text(node->name, -1); - prefix = xmlnode_get_prefix(node); - - if (prefix) { - g_string_append_printf(text, "<%s:%s", prefix, node_name); - } else { - g_string_append_printf(text, "<%s", node_name); - } - - if (node->namespace_map) { - g_hash_table_foreach(node->namespace_map, (GHFunc) xmlnode_to_str_foreach_append_ns, text); - } else if (node->xml_ns) { - if (!node->parent || !node->parent->xml_ns || strcmp(node->xml_ns, node->parent->xml_ns)) { - gchar *xml_ns = g_markup_escape_text(node->xml_ns, -1); - - g_string_append_printf(text, " xmlns='%s'", xml_ns); - g_free(xml_ns); - } - } - - for (c = node->child; c != NULL; c = c->next) { - if (c->type == XMLNODE_TYPE_ATTRIB) { - const gchar *a_prefix = xmlnode_get_prefix(c); - - esc = g_markup_escape_text(c->name, -1); - esc2 = g_markup_escape_text(c->data, -1); - - if (a_prefix) { - g_string_append_printf(text, " %s:%s='%s'", a_prefix, esc, esc2); - } else { - g_string_append_printf(text, " %s='%s'", esc, esc2); - } - - g_free(esc); - g_free(esc2); - } else if (c->type == XMLNODE_TYPE_TAG || c->type == XMLNODE_TYPE_DATA) { - if (c->type == XMLNODE_TYPE_DATA) { - pretty = FALSE; - } - need_end = TRUE; - } - } - - if (need_end) { - g_string_append_printf(text, ">%s", pretty ? "\n" : ""); - - for (c = node->child; c != NULL; c = c->next) { - if (c->type == XMLNODE_TYPE_TAG) { - gint esc_len; - - esc = xmlnode_to_str_helper(c, &esc_len, pretty, depth + 1); - text = g_string_append_len(text, esc, esc_len); - g_free(esc); - } else if (c->type == XMLNODE_TYPE_DATA && c->data_size > 0) { - esc = g_markup_escape_text(c->data, c->data_size); - text = g_string_append(text, esc); - g_free(esc); - } - } - - if (tab && pretty) { - text = g_string_append(text, tab); - } - if (prefix) { - g_string_append_printf(text, "%s", prefix, node_name, formatting ? "\n" : ""); - } else { - g_string_append_printf(text, "%s", node_name, formatting ? "\n" : ""); - } - } else { - g_string_append_printf(text, "/>%s", formatting ? "\n" : ""); - } - - g_free(node_name); - - g_free(tab); - - if (len) { - *len = text->len; - } - - return g_string_free(text, FALSE); -} - -/** - * \brief Convet node to formatted string - * \param node node - * \param len pointer to len - * \return formatted string or NULL on error - */ -gchar *xmlnode_to_formatted_str(xmlnode *node, gint *len) -{ - gchar *xml, *xml_with_declaration; - - g_return_val_if_fail(node != NULL, NULL); - - xml = xmlnode_to_str_helper(node, len, TRUE, 0); - xml_with_declaration = g_strdup_printf("\n\n%s", xml); - g_free(xml); - - if (len) { - *len += sizeof("\n\n") - 1; - } - - return xml_with_declaration; -} - -/** xmlnode parser data structure */ -struct _xmlnode_parser_data { - xmlnode *current; - gboolean error; -}; - -/** - * \brief Set namespace - * \param node xml node - * \param xml_ns xml namespace - */ -void xmlnode_set_namespace(xmlnode *node, const gchar *xml_ns) -{ - g_return_if_fail(node != NULL); - - g_free(node->xml_ns); - node->xml_ns = g_strdup(xml_ns); -} - -/** - * \brief Set prefix - * \param node xml node - * \param prefix prefix - */ -static void xmlnode_set_prefix(xmlnode *node, const gchar *prefix) -{ - g_return_if_fail(node != NULL); - - g_free(node->prefix); - node->prefix = g_strdup(prefix); -} - -/** - * \brief Insert data into xmlnode - * \param node xml node - * \param data data pointer - * \param size size of data - */ -void xmlnode_insert_data(xmlnode *node, const gchar *data, gssize size) -{ - xmlnode *child; - gsize real_size; - - g_return_if_fail(node != NULL); - g_return_if_fail(data != NULL); - g_return_if_fail(size != 0); - - if (size == -1) { - real_size = strlen(data); - } else { - real_size = size; - } - - child = new_node(NULL, XMLNODE_TYPE_DATA); - - child->data = g_memdup(data, real_size); - child->data_size = real_size; - - xmlnode_insert_child(node, child); -} - -/** - * \brief Set attribute with prefix - * \param node xml node - * \param attr attribute - * \param prefix prefix - * \param value value - */ -static void xmlnode_set_attrib_with_prefix(xmlnode *node, const gchar *attr, const gchar *prefix, const gchar *value) -{ - xmlnode *attrib_node; - - g_return_if_fail(node != NULL); - g_return_if_fail(attr != NULL); - g_return_if_fail(value != NULL); - - attrib_node = new_node(attr, XMLNODE_TYPE_ATTRIB); - - attrib_node->data = g_strdup(value); - attrib_node->prefix = g_strdup(prefix); - - xmlnode_insert_child(node, attrib_node); -} - -/** - * \brief Get attribute from node - * \param node xml node structure - * \param attr attribute name - * \return attribute data - */ -const gchar *xmlnode_get_attrib(xmlnode *node, const gchar *attr) -{ - xmlnode *x; - - g_return_val_if_fail(node != NULL, NULL); - g_return_val_if_fail(attr != NULL, NULL); - - for (x = node->child; x != NULL; x = x->next) { - if (x->type == XMLNODE_TYPE_ATTRIB && strcmp(attr, x->name) == 0) { - return x->data; - } - } - - return NULL; -} - -/** - * \brief Unescape html text - * \param html html text - * \return unescaped text - */ -static gchar *unescape_html(const gchar *html) -{ - if (html != NULL) { - const gchar *c = html; - GString *ret = g_string_new(""); - - while (*c) { - if (!strncmp(c, "
", 4)) { - ret = g_string_append_c(ret, '\n'); - c += 4; - } else { - ret = g_string_append_c(ret, *c); - c++; - } - } - - return g_string_free(ret, FALSE); - } - - return NULL; -} - -/** - * \brief Parser: Element start - * \param user_data xmlnode parser data - * \param element_name element name - * \param prefix prefix - * \param xml_ns xml namespace - * \param nb_namespaces number of namespaces - * \param namespaces pointer to xml namespaces - * \param nb_attributes number of attributes - * \param nb_defaulted number of defaulted - * \param attributes pointer to xml attributes - */ -static void xmlnode_parser_element_start_libxml(void *user_data, const xmlChar *element_name, const xmlChar *prefix, - const xmlChar *xml_ns, gint nb_namespaces, const xmlChar **namespaces, gint nb_attributes, gint nb_defaulted, - const xmlChar **attributes) -{ - struct _xmlnode_parser_data *xpd = user_data; - xmlnode *node; - gint i, j; - - if (!element_name || xpd->error) { - return; - } - - if (xpd->current) { - node = xmlnode_new_child(xpd->current, (const gchar *) element_name); - } else { - node = xmlnode_new((const gchar *) element_name); - } - - xmlnode_set_namespace(node, (const gchar *) xml_ns); - xmlnode_set_prefix(node, (const gchar *) prefix); - - if (nb_namespaces != 0) { - node->namespace_map = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); - - for (i = 0, j = 0; i < nb_namespaces; i++, j += 2) { - const gchar *key = (const gchar *) namespaces[j]; - const gchar *val = (const gchar *) namespaces[j + 1]; - - g_hash_table_insert(node->namespace_map, g_strdup(key ? key : ""), g_strdup(val ? val : "")); - } - } - - for (i = 0; i < nb_attributes * 5; i += 5) { - const gchar *prefix = (const gchar *) attributes[i + 1]; - gchar *txt; - gint attrib_len = attributes[i + 4] - attributes[i + 3]; - gchar *attrib = g_malloc(attrib_len + 1); - - memcpy(attrib, attributes[i + 3], attrib_len); - attrib[attrib_len] = '\0'; - txt = attrib; - attrib = unescape_html(txt); - g_free(txt); - - if (prefix && *prefix) { - xmlnode_set_attrib_with_prefix(node, (const gchar *) attributes[i], prefix, attrib); - } else { - xmlnode_set_attrib(node, (const gchar *) attributes[i], attrib); - } - g_free(attrib); - } - - xpd->current = node; -} - -/** - * \brief Parser: Element end - * \param user_data xmlnode parser data - * \param element_name element name - * \param prefix prefix - * \param xml_ns xml namespace - */ -static void xmlnode_parser_element_end_libxml(void *user_data, const xmlChar *element_name, const xmlChar *prefix, const xmlChar *xml_ns) -{ - struct _xmlnode_parser_data *xpd = user_data; - - if (!element_name || !xpd->current || xpd->error) { - return; - } - - if (xpd->current->parent) { - if (!xmlStrcmp((xmlChar *) xpd->current->name, element_name)) { - xpd->current = xpd->current->parent; - } - } -} - -/** - * \brief Parser: Element text - * \param user_data xmlnode parser data - * \param text text element - * \param text_len text length - */ -static void xmlnode_parser_element_text_libxml(void *user_data, const xmlChar *text, gint text_len) -{ - struct _xmlnode_parser_data *xpd = user_data; - - if (!xpd->current || xpd->error) { - return; - } - - if (!text || !text_len) { - return; - } - - xmlnode_insert_data(xpd->current, (const gchar *) text, text_len); -} - -/** - * \brief Parser error - * \param user_data xmlnode parser data - * \param msg error message - */ -static void xmlnode_parser_error_libxml(void *user_data, const gchar *msg, ...) -{ - struct _xmlnode_parser_data *xpd = user_data; - gchar err_msg[2048]; - va_list args; - - xpd->error = TRUE; - - va_start(args, msg); - vsnprintf(err_msg, sizeof(err_msg), msg, args); - va_end(args); - - g_debug("Error parsing xml file: %s", err_msg); -} - -/** xmlnode parser libxml */ -static xmlSAXHandler xml_node_parser_libxml = { - /* internalSubset */ - NULL, - /* isStandalone */ - NULL, - /* hasInternalSubset */ - NULL, - /* hasExternalSubset */ - NULL, - /* resolveEntity */ - NULL, - /* getEntity */ - NULL, - /* entityDecl */ - NULL, - /* notationDecl */ - NULL, - /* attributeDecl */ - NULL, - /* elementDecl */ - NULL, - /* unparsedEntityDecl */ - NULL, - /* setDocumentLocator */ - NULL, - /* startDocument */ - NULL, - /* endDocument */ - NULL, - /* startElement */ - NULL, - /* endElement */ - NULL, - /* reference */ - NULL, - /* characters */ - xmlnode_parser_element_text_libxml, - /* ignorableWhitespace */ - NULL, - /* processingInstruction */ - NULL, - /* comment */ - NULL, - /* warning */ - NULL, - /* error */ - xmlnode_parser_error_libxml, - /* fatalError */ - NULL, - /* getParameterEntity */ - NULL, - /* cdataBlock */ - NULL, - /* externalSubset */ - NULL, - /* initialized */ - XML_SAX2_MAGIC, - /* _private */ - NULL, - /* startElementNs */ - xmlnode_parser_element_start_libxml, - /* endElementNs */ - xmlnode_parser_element_end_libxml, - /* serror */ - NULL, -}; - -/** - * \brief Create xmlnode from string - * \param str string - * \param size size of string - * \return new xml node - */ -xmlnode *xmlnode_from_str(const gchar *str, gssize size) -{ - struct _xmlnode_parser_data *xpd; - xmlnode *ret; - gsize real_size; - - g_return_val_if_fail(str != NULL, NULL); - - real_size = size < 0 ? strlen(str) : size; - xpd = g_new0(struct _xmlnode_parser_data, 1); - - if (xmlSAXUserParseMemory(&xml_node_parser_libxml, xpd, str, real_size) < 0) { - while (xpd->current && xpd->current->parent) { - xpd->current = xpd->current->parent; - } - - if (xpd->current) { - xmlnode_free(xpd->current); - } - xpd->current = NULL; - } - ret = xpd->current; - - if (xpd->error) { - ret = NULL; - - if (xpd->current) { - xmlnode_free(xpd->current); - } - } - - g_free(xpd); - - return ret; -} - -/** - * \brief Get namespace - * \param node xml node - * \return namespace - */ -const gchar *xmlnode_get_namespace(xmlnode *node) -{ - g_return_val_if_fail(node != NULL, NULL); - - return node->xml_ns; -} - -/** - * \brief Get child with namespace - * \param parent parent xml node - * \param name child name - * \param ns namespace - * \return chuld xmlnode - */ -xmlnode *xmlnode_get_child_with_namespace(const xmlnode *parent, const gchar *name, const gchar *ns) -{ - xmlnode *x, *ret = NULL; - gchar **names; - gchar *parent_name, *child_name; - - g_return_val_if_fail(parent != NULL, NULL); - g_return_val_if_fail(name != NULL, NULL); - - names = g_strsplit(name, "/", 2); - parent_name = names[0]; - child_name = names[1]; - - for (x = parent->child; x; x = x->next) { - const gchar *xml_ns = NULL; - - if (ns != NULL) { - xml_ns = xmlnode_get_namespace(x); - } - - if (x->type == XMLNODE_TYPE_TAG && name && !strcmp(parent_name, x->name) && (!ns || (xml_ns && !strcmp(ns, xml_ns)))) { - ret = x; - break; - } - } - - if (child_name && ret) { - ret = xmlnode_get_child(ret, child_name); - } - - g_strfreev(names); - - return ret; -} - -/** - * \brief Get xml node child - * \param parent xml node parent - * \param name child name - * \return child xmlnode - */ -xmlnode *xmlnode_get_child(const xmlnode *parent, const gchar *name) -{ - return xmlnode_get_child_with_namespace(parent, name, NULL); -} - -/** - * \brief Get next twin from xml node - * \param node xml node - * \return next xml node twin - */ -xmlnode *xmlnode_get_next_twin(xmlnode *node) -{ - xmlnode *sibling; - const gchar *ns = xmlnode_get_namespace(node); - - g_return_val_if_fail(node != NULL, NULL); - g_return_val_if_fail(node->type == XMLNODE_TYPE_TAG, NULL); - - for (sibling = node->next; sibling; sibling = sibling->next) { - const gchar *xml_ns = NULL; - - if (ns != NULL) { - xml_ns = xmlnode_get_namespace(sibling); - } - - if (sibling->type == XMLNODE_TYPE_TAG && !strcmp(node->name, sibling->name) && (!ns || (xml_ns && !strcmp(ns, xml_ns)))) { - return sibling; - } - } - - return NULL; -} - -/** - * \brief Get data from xmlnode - * \param node xml node - * \return xmlnode data - */ -gchar *xmlnode_get_data(xmlnode *node) -{ - GString *str = NULL; - xmlnode *c; - - g_return_val_if_fail(node != NULL, NULL); - - for (c = node->child; c; c = c->next) { - if (c->type == XMLNODE_TYPE_DATA) { - if (!str) { - str = g_string_new_len(c->data, c->data_size); - } else { - str = g_string_append_len(str, c->data, c->data_size); - } - } - } - - if (str == NULL) { - return NULL; - } - - return g_string_free(str, FALSE); -} - -/** - * \brief Set data from xmlnode - * \param node xml node - * \param data data string - * \return error code - */ -gint xmlnode_set_data(xmlnode *node, gchar *data) -{ - xmlnode *c; - gint ret = -1; - - g_return_val_if_fail(node != NULL, ret); - - for (c = node->child; c != NULL; c = c->next) { - if (c->type == XMLNODE_TYPE_DATA) { - if (c->data) { - g_free(c->data); - c->data = NULL; - } - - c->data = g_strdup(data); - c->data_size = strlen(c->data); - ret = 0; - } - } - - return ret; -} - -/** - * \brief Read xml from file - * \param file_name xml file name - * \return new xml node or NULL - */ -xmlnode *read_xml_from_file(const gchar *file_name) -{ - const gchar *user_dir = g_get_user_data_dir(); - gchar *file_name_full = NULL; - gchar *contents = NULL; - gsize length; - GError *error = NULL; - xmlnode *node = NULL; - - g_return_val_if_fail(user_dir != NULL, NULL); - - file_name_full = g_build_filename(user_dir, file_name, NULL); - if (!g_file_test(file_name_full, G_FILE_TEST_EXISTS)) { - g_free(file_name_full); - file_name_full = g_strdup(file_name); - if (!g_file_test(file_name_full, G_FILE_TEST_EXISTS)) { - g_free(file_name_full); - return NULL; - } - } - - if (!g_file_get_contents(file_name_full, &contents, &length, &error)) { - g_warning("'%s'", error->message); - g_error_free(error); - } - - if ((contents != NULL) && (length > 0)) { - node = xmlnode_from_str(contents, length); - if (node == NULL) { - g_warning("Could not parse node"); - } - g_free(contents); - } - - g_free(file_name_full); - - return node; -} - -/** - * \brief Insert key/value into hash-table - * \param key key type - * \param value value type - * \param user_data pointer to hash table - */ -static void xmlnode_copy_foreach_ns(gpointer key, gpointer value, gpointer user_data) -{ - GHashTable *ret = (GHashTable *)user_data; - g_hash_table_insert(ret, g_strdup(key), g_strdup(value)); -} - -/** - * \brief Make a copy of a given xmlnode - * \param src source xml node - * \return new xml node - */ -xmlnode *xmlnode_copy(const xmlnode *src) -{ - xmlnode *ret; - xmlnode *child; - xmlnode *sibling = NULL; - - g_return_val_if_fail(src != NULL, NULL); - - ret = new_node(src->name, src->type); - ret->xml_ns = g_strdup(src->xml_ns); - - if (src->data) { - if (src->data_size) { - ret->data = g_memdup(src->data, src->data_size); - ret->data_size = src->data_size; - } else { - ret->data = g_strdup(src->data); - } - } - - ret->prefix = g_strdup(src->prefix); - - if (src->namespace_map) { - ret->namespace_map = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); - g_hash_table_foreach(src->namespace_map, xmlnode_copy_foreach_ns, ret->namespace_map); - } - - for (child = src->child; child; child = child->next) { - if (sibling) { - sibling->next = xmlnode_copy(child); - sibling = sibling->next; - } else { - ret->child = xmlnode_copy(child); - sibling = ret->child; - } - sibling->parent = ret; - } - - ret->last_child = sibling; - - return ret; -} diff -Nru roger-router-1.8.14/libroutermanager/xml.h roger-router-2.1.6/libroutermanager/xml.h --- roger-router-1.8.14/libroutermanager/xml.h 2015-11-05 21:19:29.000000000 +0000 +++ roger-router-2.1.6/libroutermanager/xml.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,67 +0,0 @@ -/** - * The libroutermanager project - * Copyright (c) 2012-2014 Jan-Michael Brummer - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -/** - * \file xml.h - * \brief XML node header - */ - -#ifndef LIBROUTERMANAGER_XML_H -#define LIBROUTERMANAGER_XML_H - -G_BEGIN_DECLS - -typedef enum { - XMLNODE_TYPE_TAG, - XMLNODE_TYPE_ATTRIB, - XMLNODE_TYPE_DATA -} xml_node_type; - -typedef struct xml_node { - gchar *name; - gchar *xml_ns; - xml_node_type type; - gchar *data; - size_t data_size; - struct xml_node *parent; - struct xml_node *child; - struct xml_node *last_child; - struct xml_node *next; - gchar *prefix; - GHashTable *namespace_map; -} xmlnode; - -xmlnode *xmlnode_new(const gchar *name); -xmlnode *xmlnode_new_child(xmlnode *parent, const gchar *name); -xmlnode *read_xml_from_file(const gchar *file_name); -xmlnode *xmlnode_get_child(const xmlnode *parent, const gchar *name); -xmlnode *xmlnode_get_next_twin(xmlnode *node); -gchar *xmlnode_get_data(xmlnode *node); -const gchar *xmlnode_get_attrib(xmlnode *node, const gchar *attr); -xmlnode *xmlnode_from_str(const char *str, gssize size); -void xmlnode_insert_data(xmlnode *node, const gchar *data, gssize size); -void xmlnode_free(xmlnode *node); -void xmlnode_set_attrib(xmlnode *node, const gchar *attr, const gchar *value); -void xmlnode_insert_child(xmlnode *parent, xmlnode *child); -gchar *xmlnode_to_formatted_str(xmlnode *node, gint *len); -xmlnode *xmlnode_copy(const xmlnode *node); - -G_END_DECLS - -#endif diff -Nru roger-router-1.8.14/ltmain.sh roger-router-2.1.6/ltmain.sh --- roger-router-1.8.14/ltmain.sh 2015-12-10 21:33:16.000000000 +0000 +++ roger-router-2.1.6/ltmain.sh 1970-01-01 00:00:00.000000000 +0000 @@ -1,11147 +0,0 @@ -#! /bin/sh -## DO NOT EDIT - This file generated from ./build-aux/ltmain.in -## by inline-source v2014-01-03.01 - -# libtool (GNU libtool) 2.4.6 -# Provide generalized library-building support services. -# Written by Gordon Matzigkeit , 1996 - -# Copyright (C) 1996-2015 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.6 -package_revision=2.4.6 - - -## ------ ## -## 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=2015-01-20.17; # UTC - -# General shell script boiler plate, and helper functions. -# Written by Gary V. Vaughan, 2004 - -# Copyright (C) 2004-2015 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. - -# 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. - -# 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. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNES 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 . - -# Please report bugs or propose patches to gary@gnu.org. - - -## ------ ## -## 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 - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# 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 - - - -## ------------------------- ## -## 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" - - -## ----------------- ## -## 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_for_eval "$2" - eval "$1+=\\ \$func_quote_for_eval_result" - }' -else - func_append_quoted () - { - $debug_cmd - - func_quote_for_eval "$2" - eval "$1=\$$1\\ \$func_quote_for_eval_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_for_eval ARG... -# -------------------------- -# Aesthetically quote ARGs to be evaled later. -# This function returns two values: -# i) func_quote_for_eval_result -# double-quoted, suitable for a subsequent eval -# ii) func_quote_for_eval_unquoted_result -# has all characters that are still active within double -# quotes backslashified. -func_quote_for_eval () -{ - $debug_cmd - - func_quote_for_eval_unquoted_result= - func_quote_for_eval_result= - while test 0 -lt $#; do - case $1 in - *[\\\`\"\$]*) - _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;; - *) - _G_unquoted_arg=$1 ;; - esac - if test -n "$func_quote_for_eval_unquoted_result"; then - func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg" - else - func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg" - fi - - case $_G_unquoted_arg 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. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - _G_quoted_arg=\"$_G_unquoted_arg\" - ;; - *) - _G_quoted_arg=$_G_unquoted_arg - ;; - esac - - if test -n "$func_quote_for_eval_result"; then - func_append func_quote_for_eval_result " $_G_quoted_arg" - else - func_append func_quote_for_eval_result "$_G_quoted_arg" - fi - shift - done -} - - -# func_quote_for_expand ARG -# ------------------------- -# Aesthetically quote ARG to be evaled later; same as above, -# but do not quote variable references. -func_quote_for_expand () -{ - $debug_cmd - - case $1 in - *[\\\`\"]*) - _G_arg=`$ECHO "$1" | $SED \ - -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;; - *) - _G_arg=$1 ;; - esac - - case $_G_arg in - # Double-quote args containing shell metacharacters to delay - # word splitting and command substitution for a subsequent eval. - # Many Bourne shells cannot handle close brackets correctly - # in scan sets, so we specify it separately. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - _G_arg=\"$_G_arg\" - ;; - esac - - func_quote_for_expand_result=$_G_arg -} - - -# 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_for_expand "$_G_cmd" - eval "func_notquiet $func_quote_for_expand_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_for_expand "$_G_cmd" - eval "func_echo $func_quote_for_expand_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 - -# Set a version string for this script. -scriptversion=2014-01-07.03; # UTC - -# A portable, pluggable option parser for Bourne shell. -# Written by Gary V. Vaughan, 2010 - -# Copyright (C) 2010-2015 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. - -# 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 . - -# Please report bugs or propose patches to gary@gnu.org. - - -## ------ ## -## 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 '# warranty; '. -# -# 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 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 -# to the main code. A hook is just a named list of of function, 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 functions called by FUNC_NAME. -func_remove_hook () -{ - $debug_cmd - - eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`' -} - - -# func_run_hooks FUNC_NAME [ARG]... -# --------------------------------- -# Run all hook functions registered to FUNC_NAME. -# It is 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 funcions.n" ;; - esac - - eval _G_hook_fns=\$$1_hooks; shift - - for _G_hook in $_G_hook_fns; do - eval $_G_hook '"$@"' - - # store returned options list back into positional - # parameters for next 'cmd' execution. - eval _G_hook_result=\$${_G_hook}_result - eval set dummy "$_G_hook_result"; shift - done - - func_quote_for_eval ${1+"$@"} - func_run_hooks_result=$func_quote_for_eval_result -} - - - -## --------------- ## -## Option parsing. ## -## --------------- ## - -# In order to add your own option parsing hooks, you must accept the -# full positional parameter list in your hook function, remove any -# options that you action, and then pass back the remaining unprocessed -# options in '_result', escaped suitably for -# 'eval'. Like this: -# -# my_options_prep () -# { -# $debug_cmd -# -# # Extend the existing usage message. -# usage_message=$usage_message' -# -s, --silent don'\''t print informational messages -# ' -# -# func_quote_for_eval ${1+"$@"} -# my_options_prep_result=$func_quote_for_eval_result -# } -# func_add_hook func_options_prep my_options_prep -# -# -# my_silent_option () -# { -# $debug_cmd -# -# # 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=: ;; -# # 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 -# ;; -# *) set dummy "$_G_opt" "$*"; shift; break ;; -# esac -# done -# -# func_quote_for_eval ${1+"$@"} -# my_silent_option_result=$func_quote_for_eval_result -# } -# 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_quote_for_eval ${1+"$@"} -# my_option_validation_result=$func_quote_for_eval_result -# } -# func_add_hook func_validate_options my_option_validation -# -# You'll alse 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 [ARG]... -# --------------------- -# All the functions called inside func_options are hookable. See the -# individual implementations for details. -func_hookable func_options -func_options () -{ - $debug_cmd - - func_options_prep ${1+"$@"} - eval func_parse_options \ - ${func_options_prep_result+"$func_options_prep_result"} - eval func_validate_options \ - ${func_parse_options_result+"$func_parse_options_result"} - - eval func_run_hooks func_options \ - ${func_validate_options_result+"$func_validate_options_result"} - - # save modified positional parameters for caller - func_options_result=$func_run_hooks_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 propogate 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+"$@"} - - # save modified positional parameters for caller - func_options_prep_result=$func_run_hooks_result -} - - -# func_parse_options [ARG]... -# --------------------------- -# The main option parsing loop. -func_hookable func_parse_options -func_parse_options () -{ - $debug_cmd - - func_parse_options_result= - - # 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+"$@"} - - # Adjust func_parse_options positional parameters to match - eval set dummy "$func_run_hooks_result"; shift - - # Break out of the loop if we already parsed every option. - test $# -gt 0 || break - - _G_opt=$1 - shift - case $_G_opt in - --debug|-x) debug_cmd='set -x' - func_echo "enabling shell trace mode" - $debug_cmd - ;; - - --no-warnings|--no-warning|--no-warn) - set dummy --warnings none ${1+"$@"} - shift - ;; - - --warnings|--warning|-W) - test $# = 0 && func_missing_arg $_G_opt && break - 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 - ;; - - --) break ;; - -*) func_fatal_help "unrecognised option: '$_G_opt'" ;; - *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;; - esac - done - - # save modified positional parameters for caller - func_quote_for_eval ${1+"$@"} - func_parse_options_result=$func_quote_for_eval_result -} - - -# 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+"$@"} - - # Bail if the options were screwed! - $exit_cmd $EXIT_FAILURE - - # save modified positional parameters for caller - func_validate_options_result=$func_run_hooks_result -} - - - -## ----------------- ## -## 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#*=} - test "x$func_split_equals_lhs" = "x$1" \ - && func_split_equals_rhs= - }' -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. -func_version () -{ - $debug_cmd - - printf '%s\n' "$progname $scriptversion" - $SED -n ' - /(C)/!b go - :more - /\./!{ - N - s|\n# | | - b more - } - :go - /^# Written by /,/# warranty; / { - s|^# || - s|^# *$|| - s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2| - p - } - /^# Written by / { - s|^# || - p - } - /^warranty; /q' < "$progpath" - - exit $? -} - - -# 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: - -# Set a version string. -scriptversion='(GNU libtool) 2.4.6' - - -# 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.6 - 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= - - # 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 - ;; - esac - - # Pass back the list of options. - func_quote_for_eval ${1+"$@"} - libtool_options_prep_result=$func_quote_for_eval_result -} -func_add_hook func_options_prep libtool_options_prep - - -# libtool_parse_options [ARG]... -# --------------------------------- -# Provide handling for libtool specific options. -libtool_parse_options () -{ - $debug_cmd - - # Perform our own loop to consume as many options as possible in - # each iteration. - while test $# -gt 0; do - _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; break ;; - esac - done - - - # save modified positional parameters for caller - func_quote_for_eval ${1+"$@"} - libtool_parse_options_result=$func_quote_for_eval_result -} -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_for_eval ${1+"$@"} - libtool_validate_options_result=$func_quote_for_eval_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_for_eval "$libobj" - test "X$libobj" != "X$func_quote_for_eval_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_for_eval "$srcfile" - qsrcfile=$func_quote_for_eval_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 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 - -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_for_eval "$nonopt" - install_prog="$func_quote_for_eval_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_for_eval "$arg" - func_append install_prog "$func_quote_for_eval_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_for_eval "$arg" - func_append install_prog " $func_quote_for_eval_result" - if test -n "$arg2"; then - func_quote_for_eval "$arg2" - fi - func_append install_shared_prog " $func_quote_for_eval_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_for_eval "$install_override_mode" - func_append install_shared_prog " -m $func_quote_for_eval_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_for_expand "$relink_command" - eval "func_echo $func_quote_for_expand_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\"" - - qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` - $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_for_eval "$arg" - qarg=$func_quote_for_eval_unquoted_result - func_append libtool_args " $func_quote_for_eval_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 - ;; - 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*) - # 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*) - # 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 - ;; - - -mt|-mthreads|-kthread|-Kthread|-pthread|-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_for_eval "$flag" - func_append arg " $func_quote_for_eval_result" - func_append compiler_flags " $func_quote_for_eval_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_for_eval "$flag" - func_append arg " $wl$func_quote_for_eval_result" - func_append compiler_flags " $wl$func_quote_for_eval_result" - func_append linker_flags " $func_quote_for_eval_result" - done - IFS=$save_ifs - func_stripname ' ' '' "$arg" - arg=$func_stripname_result - ;; - - -Xcompiler) - prev=xcompiler - continue - ;; - - -Xlinker) - prev=xlinker - continue - ;; - - -XCClinker) - prev=xcclinker - continue - ;; - - # -msg_* for osf cc - -msg_*) - func_quote_for_eval "$arg" - arg=$func_quote_for_eval_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 - # -stdlib=* select c++ std lib with clang - -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=*) - func_quote_for_eval "$arg" - arg=$func_quote_for_eval_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_for_eval "$arg" - arg=$func_quote_for_eval_result - fi - ;; - - # Some other compiler flag. - -* | +*) - func_quote_for_eval "$arg" - arg=$func_quote_for_eval_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_for_eval "$arg" - arg=$func_quote_for_eval_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|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) - 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*) - # 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_for_expand "$cmd" - eval "func_echo $func_quote_for_expand_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_for_expand "$cmd" - eval "func_echo $func_quote_for_expand_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_for_eval "$var_value" - relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" - fi - done - relink_command="(cd `pwd`; $relink_command)" - relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` - 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_for_eval "$var_value" - relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" - fi - done - # Quote the link command for shipping. - relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" - relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` - 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: diff -Nru roger-router-1.8.14/m4/intltool.m4 roger-router-2.1.6/m4/intltool.m4 --- roger-router-1.8.14/m4/intltool.m4 2015-12-10 21:33:24.000000000 +0000 +++ roger-router-2.1.6/m4/intltool.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,212 +0,0 @@ -## intltool.m4 - Configure intltool for the target system. -*-Shell-script-*- -## Copyright (C) 2001 Eazel, Inc. -## Author: Maciej Stachowiak -## Kenneth Christiansen -## -## 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 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, write to the Free Software -## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -## -## 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. - -dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) -# serial 42 IT_PROG_INTLTOOL -AC_DEFUN([IT_PROG_INTLTOOL], [ -AC_PREREQ([2.50])dnl -AC_REQUIRE([AM_NLS])dnl - -case "$am__api_version" in - 1.[01234]) - AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) - ;; - *) - ;; -esac - -INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` -INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` -INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` -if test -n "$1"; then - AC_MSG_CHECKING([for intltool >= $1]) - AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) - test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || - AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) -fi - -AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) -AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) -AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) -if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then - AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) -fi - -if test -z "$AM_DEFAULT_VERBOSITY"; then - AM_DEFAULT_VERBOSITY=1 -fi -AC_SUBST([AM_DEFAULT_VERBOSITY]) - -INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' -INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' -INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;' -AC_SUBST(INTLTOOL_V_MERGE) -AC_SUBST(INTLTOOL__v_MERGE_) -AC_SUBST(INTLTOOL__v_MERGE_0) - -INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' -intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' -intltool__v_merge_options_0='-q' -AC_SUBST(INTLTOOL_V_MERGE_OPTIONS) -AC_SUBST(intltool__v_merge_options_) -AC_SUBST(intltool__v_merge_options_0) - - INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' -INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@' - INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' -INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' -if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then - INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@' -else - INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir' -fi - INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - -_IT_SUBST(INTLTOOL_DESKTOP_RULE) -_IT_SUBST(INTLTOOL_DIRECTORY_RULE) -_IT_SUBST(INTLTOOL_KEYS_RULE) -_IT_SUBST(INTLTOOL_PROP_RULE) -_IT_SUBST(INTLTOOL_OAF_RULE) -_IT_SUBST(INTLTOOL_PONG_RULE) -_IT_SUBST(INTLTOOL_SERVER_RULE) -_IT_SUBST(INTLTOOL_SHEET_RULE) -_IT_SUBST(INTLTOOL_SOUNDLIST_RULE) -_IT_SUBST(INTLTOOL_UI_RULE) -_IT_SUBST(INTLTOOL_XAM_RULE) -_IT_SUBST(INTLTOOL_KBD_RULE) -_IT_SUBST(INTLTOOL_XML_RULE) -_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) -_IT_SUBST(INTLTOOL_CAVES_RULE) -_IT_SUBST(INTLTOOL_SCHEMAS_RULE) -_IT_SUBST(INTLTOOL_THEME_RULE) -_IT_SUBST(INTLTOOL_SERVICE_RULE) -_IT_SUBST(INTLTOOL_POLICY_RULE) - -# Check the gettext tools to make sure they are GNU -AC_PATH_PROG(XGETTEXT, xgettext) -AC_PATH_PROG(MSGMERGE, msgmerge) -AC_PATH_PROG(MSGFMT, msgfmt) -AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) -if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then - AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) -fi -xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" -mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" -mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" -if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then - AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) -fi - -AC_PATH_PROG(INTLTOOL_PERL, perl) -if test -z "$INTLTOOL_PERL"; then - AC_MSG_ERROR([perl not found]) -fi -AC_MSG_CHECKING([for perl >= 5.8.1]) -$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 -if test $? -ne 0; then - AC_MSG_ERROR([perl 5.8.1 is required for intltool]) -else - IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` - AC_MSG_RESULT([$IT_PERL_VERSION]) -fi -if test "x$2" != "xno-xml"; then - AC_MSG_CHECKING([for XML::Parser]) - if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then - AC_MSG_RESULT([ok]) - else - AC_MSG_ERROR([XML::Parser perl module is required for intltool]) - fi -fi - -# Substitute ALL_LINGUAS so we can use it in po/Makefile -AC_SUBST(ALL_LINGUAS) - -IT_PO_SUBDIR([po]) - -]) - - -# IT_PO_SUBDIR(DIRNAME) -# --------------------- -# All po subdirs have to be declared with this macro; the subdir "po" is -# declared by IT_PROG_INTLTOOL. -# -AC_DEFUN([IT_PO_SUBDIR], -[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. -dnl -dnl The following CONFIG_COMMANDS should be executed at the very end -dnl of config.status. -AC_CONFIG_COMMANDS_PRE([ - AC_CONFIG_COMMANDS([$1/stamp-it], [ - if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then - AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) - fi - rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" - >"$1/stamp-it.tmp" - [sed '/^#/d - s/^[[].*] *// - /^[ ]*$/d - '"s|^| $ac_top_srcdir/|" \ - "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" - ] - [sed '/^POTFILES =/,/[^\\]$/ { - /^POTFILES =/!d - r $1/POTFILES - } - ' "$1/Makefile.in" >"$1/Makefile"] - rm -f "$1/Makefile.tmp" - mv "$1/stamp-it.tmp" "$1/stamp-it" - ]) -])dnl -]) - -# _IT_SUBST(VARIABLE) -# ------------------- -# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST -# -AC_DEFUN([_IT_SUBST], -[ -AC_SUBST([$1]) -m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) -] -) - -# deprecated macros -AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) -# A hint is needed for aclocal from Automake <= 1.9.4: -# AC_DEFUN([AC_PROG_INTLTOOL], ...) - diff -Nru roger-router-1.8.14/m4/libtool.m4 roger-router-2.1.6/m4/libtool.m4 --- roger-router-1.8.14/m4/libtool.m4 2015-12-10 21:33:16.000000000 +0000 +++ roger-router-2.1.6/m4/libtool.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,8372 +0,0 @@ -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- -# -# Copyright (C) 1996-2001, 2003-2015 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 58 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_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, -# which needs '.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 cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD - $AR cru 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*) # darwin 5.x on - # if running on 10.5 or later, the deployment target defaults - # to the OS version, if on x86, and 10.4, the deployment - # target defaults to 10.4. Don't you love it? - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in - 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) - _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; - 10.[[012]][[,.]]*) - _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; - 10.*) - _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 - 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_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], -[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 `/usr/bin/file 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 `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" - ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `/usr/bin/file 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 `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - emul="${emul}32" - ;; - *64-bit*) - emul="${emul}64" - ;; - esac - case `/usr/bin/file conftest.$ac_objext` in - *MSB*) - emul="${emul}btsmip" - ;; - *LSB*) - emul="${emul}ltsmip" - ;; - esac - case `/usr/bin/file 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 `/usr/bin/file conftest.o` in - *32-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_i386_fbsd" - ;; - x86_64-*linux*) - case `/usr/bin/file 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 `/usr/bin/file 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} -: ${AR_FLAGS=cru} -_LT_DECL([], [AR], [1], [The archiver]) -_LT_DECL([], [AR_FLAGS], [1], [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* | 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 -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - AC_MSG_RESULT([yes]) -else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP"; then - striplib="$STRIP -x" - old_striplib="$STRIP -S" - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - fi - ;; - *) - AC_MSG_RESULT([no]) - ;; - esac -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*) - # Native MSVC - 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 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*) - # 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 - - # Add ABI-specific directories to the system library path. - sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" - - # 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="$sys_lib_dlsearch_path_spec $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='/usr/bin/file -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*) - 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=/usr/bin/file - 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=/usr/bin/file - 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=/usr/bin/file - 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++, - # 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*) - # 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 == "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*) - _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++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test yes != "$GCC"; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - 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 - ;; - - 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 == "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++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - case $cc_basename in - cl*) - # Native MSVC - _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 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*) - _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 - ;; - - 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*) - # Native MSVC - # 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 - ;; - - 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*) - # 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_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 diff -Nru roger-router-1.8.14/m4/lt~obsolete.m4 roger-router-2.1.6/m4/lt~obsolete.m4 --- roger-router-1.8.14/m4/lt~obsolete.m4 2015-12-10 21:33:16.000000000 +0000 +++ roger-router-2.1.6/m4/lt~obsolete.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,99 +0,0 @@ -# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- -# -# Copyright (C) 2004-2005, 2007, 2009, 2011-2015 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])]) diff -Nru roger-router-1.8.14/m4/ltoptions.m4 roger-router-2.1.6/m4/ltoptions.m4 --- roger-router-1.8.14/m4/ltoptions.m4 2015-12-10 21:33:16.000000000 +0000 +++ roger-router-2.1.6/m4/ltoptions.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,437 +0,0 @@ -# Helper functions for option handling. -*- Autoconf -*- -# -# Copyright (C) 2004-2005, 2007-2009, 2011-2015 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])]) diff -Nru roger-router-1.8.14/m4/ltsugar.m4 roger-router-2.1.6/m4/ltsugar.m4 --- roger-router-1.8.14/m4/ltsugar.m4 2015-12-10 21:33:16.000000000 +0000 +++ roger-router-2.1.6/m4/ltsugar.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,124 +0,0 @@ -# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- -# -# Copyright (C) 2004-2005, 2007-2008, 2011-2015 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 -]) diff -Nru roger-router-1.8.14/m4/ltversion.m4 roger-router-2.1.6/m4/ltversion.m4 --- roger-router-1.8.14/m4/ltversion.m4 2015-12-10 21:33:16.000000000 +0000 +++ roger-router-2.1.6/m4/ltversion.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,23 +0,0 @@ -# ltversion.m4 -- version numbers -*- Autoconf -*- -# -# Copyright (C) 2004, 2011-2015 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 4179 ltversion.m4 -# This file is part of GNU Libtool - -m4_define([LT_PACKAGE_VERSION], [2.4.6]) -m4_define([LT_PACKAGE_REVISION], [2.4.6]) - -AC_DEFUN([LTVERSION_VERSION], -[macro_version='2.4.6' -macro_revision='2.4.6' -_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) -_LT_DECL(, macro_revision, 0) -]) diff -Nru roger-router-1.8.14/macosx/package.in roger-router-2.1.6/macosx/package.in --- roger-router-1.8.14/macosx/package.in 2015-11-05 21:19:33.000000000 +0000 +++ roger-router-2.1.6/macosx/package.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -#!/bin/sh -set -x -package_version=@PACKAGE_VERSION@ -if test -d ../.svn && test -x "`which svn 2>&1;true`" ; then \ - svn=`svn info ../ | \ - sed -n 's/^Revision: \([0-9][0-9]*\).*/\1/p'` -fi - -echo SVN version: $svn -#exit -VERSION=$package_version -gtk-mac-bundler roger.bundle -pkgbuild --install-location /Applications --component roger.app --version $VERSION --scripts scripts Roger\ Router\ -\ ${VERSION}.pkg -rm -rf roger.app - diff -Nru roger-router-1.8.14/macosx/roger.plist.in roger-router-2.1.6/macosx/roger.plist.in --- roger-router-1.8.14/macosx/roger.plist.in 2015-11-05 21:19:33.000000000 +0000 +++ roger-router-2.1.6/macosx/roger.plist.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,32 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleLocalizations - nl de - CFBundleExecutable - Roger Router - CFBundleGetInfoString - @PACKAGE_VERSION@ (C) 2008-2013 Jan-Michael Brummer - CFBundleIconFile - roger - CFBundleIdentifier - org.tabos.roger.pkg - CFBundleInfoDictionaryVersion - 1.0 - CFBundlePackageType - APPL - CFBundleShortVersionString - @PACKAGE_VERSION@ - CFBundleSignature - frtz - CFBundleVersion - @PACKAGE_VERSION@ - NSHumanReadableCopyright - Copyright 2008 - 2013 Jan-Michael Brummer, GNU General Public License V2. - LSMinimumSystemVersion - 10.5 - - diff -Nru roger-router-1.8.14/Makefile.am roger-router-2.1.6/Makefile.am --- roger-router-1.8.14/Makefile.am 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,46 +0,0 @@ -SUBDIRS = libroutermanager roger roger-cli po doc - -AM_DISTCHECK_CONFIGURE_FLAGS = \ - --disable-werror - -EXTRA_DIST = \ - autogen.sh \ - org.tabos.roger.desktop.in \ - roger.appdata.xml.in \ - remove-settings.sh \ - share/roger-cups \ - share/roger-fax.ppd \ - share/install-fax.sh \ - win32/setup-mingw.sh \ - win32/settings.ini \ - win32/printer.nsh \ - win32/roger.nsi.in \ - win32/roger.ico \ - win32/themes/Adwaita/gtk-3.0/gtk.css \ - win32/themes/Adwaita/gtk-3.0/gtk.gresource \ - win32/themes/Adwaita/gtk-3.0/settings.ini \ - win32/printer/ghostpdf.inf \ - win32/printer/ghostpdf.ppd \ - win32/patches/portaudio.patch \ - win32/patches/spandsp-0.0.6.patch - -sharedir = $(datadir)/roger -share_DATA = \ - share/roger-cups\ - share/roger-fax.ppd\ - share/install-fax.sh - -noinst_HEADERS = config.h - -DISTCLEANFILES = intltool-extract intltool-merge intltool-update org.tabos.roger.desktop roger.appdata.xml - -appsdir = $(datadir)/applications -apps_in_files = org.tabos.roger.desktop.in -apps_DATA = $(apps_in_files:.desktop.in=.desktop) - -appdatadir = $(datadir)/appdata -appdata_in_files = roger.appdata.xml.in -appdata_DATA = $(appdata_in_files:.xml.in=.xml) - -@INTLTOOL_XML_RULE@ -@INTLTOOL_DESKTOP_RULE@ diff -Nru roger-router-1.8.14/Makefile.in roger-router-2.1.6/Makefile.in --- roger-router-1.8.14/Makefile.in 2015-12-10 21:33:43.000000000 +0000 +++ roger-router-2.1.6/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,1048 +0,0 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2014 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@ - - -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@ -subdir = . -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ - $(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)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ - $(am__configure_deps) $(noinst_HEADERS) $(am__DIST_COMMON) -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno config.status.lineno -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = config.h -CONFIG_CLEAN_FILES = win32/roger.nsi macosx/roger.plist macosx/package -CONFIG_CLEAN_VPATH_FILES = -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 = -SOURCES = -DIST_SOURCES = -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 -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)$(appdatadir)" "$(DESTDIR)$(appsdir)" \ - "$(DESTDIR)$(sharedir)" -DATA = $(appdata_DATA) $(apps_DATA) $(share_DATA) -HEADERS = $(noinst_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 dist dist-all distcheck -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ - $(LISP)config.h.in -# 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)` -ETAGS = etags -CTAGS = ctags -CSCOPE = cscope -DIST_SUBDIRS = $(SUBDIRS) -am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ - $(top_srcdir)/macosx/package.in \ - $(top_srcdir)/macosx/roger.plist.in \ - $(top_srcdir)/win32/roger.nsi.in AUTHORS COPYING ChangeLog \ - NEWS README TODO compile config.guess config.sub depcomp \ - install-sh ltmain.sh 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" -GZIP_ENV = --best -DIST_ARCHIVES = $(distdir).tar.xz -DIST_TARGETS = dist-xz -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@ -ALL_LINGUAS = @ALL_LINGUAS@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@ -APPINDICATOR_LIBS = @APPINDICATOR_LIBS@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAPI_CFLAGS = @CAPI_CFLAGS@ -CAPI_LIBS = @CAPI_LIBS@ -CATALOGS = @CATALOGS@ -CATOBJEXT = @CATOBJEXT@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DATADIRNAME = @DATADIRNAME@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -EBOOK_CFLAGS = @EBOOK_CFLAGS@ -EBOOK_LIBS = @EBOOK_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -EXTRA_CFLAGS = @EXTRA_CFLAGS@ -EXTRA_LIBS = @EXTRA_LIBS@ -FAX_SPOOLER_CFLAGS = @FAX_SPOOLER_CFLAGS@ -FAX_SPOOLER_LIBS = @FAX_SPOOLER_LIBS@ -FGREP = @FGREP@ -GDATA_CFLAGS = @GDATA_CFLAGS@ -GDATA_LIBS = @GDATA_LIBS@ -GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMOFILES = @GMOFILES@ -GMSGFMT = @GMSGFMT@ -GREP = @GREP@ -GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@ -GSTREAMER1_CFLAGS = @GSTREAMER1_CFLAGS@ -GSTREAMER1_LIBS = @GSTREAMER1_LIBS@ -GTK_CFLAGS = @GTK_CFLAGS@ -GTK_LIBS = @GTK_LIBS@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INSTOBJEXT = @INSTOBJEXT@ -INTLLIBS = @INTLLIBS@ -INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ -INTLTOOL_MERGE = @INTLTOOL_MERGE@ -INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ -INTLTOOL_PERL = @INTLTOOL_PERL@ -INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ -INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ -INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ -INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ -INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ -INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ -KWALLET_CFLAGS = @KWALLET_CFLAGS@ -KWALLET_LIBS = @KWALLET_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@ -LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@ -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@ -MKINSTALLDIRS = @MKINSTALLDIRS@ -MSGFMT = @MSGFMT@ -MSGFMT_OPTS = @MSGFMT_OPTS@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OS_CFLAGS = @OS_CFLAGS@ -OS_LIBS = @OS_LIBS@ -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@ -PEAS_CFLAGS = @PEAS_CFLAGS@ -PEAS_GTK_CFLAGS = @PEAS_GTK_CFLAGS@ -PEAS_GTK_LIBS = @PEAS_GTK_LIBS@ -PEAS_LIBS = @PEAS_LIBS@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POFILES = @POFILES@ -PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@ -PORTAUDIO_LIBS = @PORTAUDIO_LIBS@ -POSUB = @POSUB@ -PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ -PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ -PULSEAUDIO_CFLAGS = @PULSEAUDIO_CFLAGS@ -PULSEAUDIO_LIBS = @PULSEAUDIO_LIBS@ -RANLIB = @RANLIB@ -ROGER_VERSION_MAJOR = @ROGER_VERSION_MAJOR@ -ROGER_VERSION_MICRO = @ROGER_VERSION_MICRO@ -ROGER_VERSION_MINOR = @ROGER_VERSION_MINOR@ -SECRET_CFLAGS = @SECRET_CFLAGS@ -SECRET_LIBS = @SECRET_LIBS@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SOUP_CFLAGS = @SOUP_CFLAGS@ -SOUP_LIBS = @SOUP_LIBS@ -SPANDSP_CFLAGS = @SPANDSP_CFLAGS@ -SPANDSP_LIBS = @SPANDSP_LIBS@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -WINDRES = @WINDRES@ -XGETTEXT = @XGETTEXT@ -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@ -found_cc = @found_cc@ -gsettingsschemadir = @gsettingsschemadir@ -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@ -intltool__v_merge_options_ = @intltool__v_merge_options_@ -intltool__v_merge_options_0 = @intltool__v_merge_options_0@ -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@ -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@ -SUBDIRS = libroutermanager roger roger-cli po doc -AM_DISTCHECK_CONFIGURE_FLAGS = \ - --disable-werror - -EXTRA_DIST = \ - autogen.sh \ - org.tabos.roger.desktop.in \ - roger.appdata.xml.in \ - remove-settings.sh \ - share/roger-cups \ - share/roger-fax.ppd \ - share/install-fax.sh \ - win32/setup-mingw.sh \ - win32/settings.ini \ - win32/printer.nsh \ - win32/roger.nsi.in \ - win32/roger.ico \ - win32/themes/Adwaita/gtk-3.0/gtk.css \ - win32/themes/Adwaita/gtk-3.0/gtk.gresource \ - win32/themes/Adwaita/gtk-3.0/settings.ini \ - win32/printer/ghostpdf.inf \ - win32/printer/ghostpdf.ppd \ - win32/patches/portaudio.patch \ - win32/patches/spandsp-0.0.6.patch - -sharedir = $(datadir)/roger -share_DATA = \ - share/roger-cups\ - share/roger-fax.ppd\ - share/install-fax.sh - -noinst_HEADERS = config.h -DISTCLEANFILES = intltool-extract intltool-merge intltool-update org.tabos.roger.desktop roger.appdata.xml -appsdir = $(datadir)/applications -apps_in_files = org.tabos.roger.desktop.in -apps_DATA = $(apps_in_files:.desktop.in=.desktop) -appdatadir = $(datadir)/appdata -appdata_in_files = roger.appdata.xml.in -appdata_DATA = $(appdata_in_files:.xml.in=.xml) -all: config.h - $(MAKE) $(AM_MAKEFLAGS) all-recursive - -.SUFFIXES: -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__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ - 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): - -config.h: stamp-h1 - @test -f $@ || rm -f stamp-h1 - @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 - -stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status - @rm -f stamp-h1 - cd $(top_builddir) && $(SHELL) ./config.status config.h -$(srcdir)/config.h.in: $(am__configure_deps) - ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) - rm -f stamp-h1 - touch $@ - -distclean-hdr: - -rm -f config.h stamp-h1 -win32/roger.nsi: $(top_builddir)/config.status $(top_srcdir)/win32/roger.nsi.in - cd $(top_builddir) && $(SHELL) ./config.status $@ -macosx/roger.plist: $(top_builddir)/config.status $(top_srcdir)/macosx/roger.plist.in - cd $(top_builddir) && $(SHELL) ./config.status $@ -macosx/package: $(top_builddir)/config.status $(top_srcdir)/macosx/package.in - cd $(top_builddir) && $(SHELL) ./config.status $@ - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool config.lt -install-appdataDATA: $(appdata_DATA) - @$(NORMAL_INSTALL) - @list='$(appdata_DATA)'; test -n "$(appdatadir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(appdatadir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(appdatadir)" || 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)$(appdatadir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(appdatadir)" || exit $$?; \ - done - -uninstall-appdataDATA: - @$(NORMAL_UNINSTALL) - @list='$(appdata_DATA)'; test -n "$(appdatadir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(appdatadir)'; $(am__uninstall_files_from_dir) -install-appsDATA: $(apps_DATA) - @$(NORMAL_INSTALL) - @list='$(apps_DATA)'; test -n "$(appsdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(appsdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(appsdir)" || 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)$(appsdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(appsdir)" || exit $$?; \ - done - -uninstall-appsDATA: - @$(NORMAL_UNINSTALL) - @list='$(apps_DATA)'; test -n "$(appsdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(appsdir)'; $(am__uninstall_files_from_dir) -install-shareDATA: $(share_DATA) - @$(NORMAL_INSTALL) - @list='$(share_DATA)'; test -n "$(sharedir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(sharedir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(sharedir)" || 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)$(sharedir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(sharedir)" || exit $$?; \ - done - -uninstall-shareDATA: - @$(NORMAL_UNINSTALL) - @list='$(share_DATA)'; test -n "$(sharedir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(sharedir)'; $(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: $(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 - -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) | GZIP=$(GZIP_ENV) gzip -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-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) | GZIP=$(GZIP_ENV) gzip -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*) \ - GZIP=$(GZIP_ENV) gzip -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*) \ - GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ - *.zip*) \ - unzip $(distdir).zip ;;\ - 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) dvi \ - && $(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: check-recursive -all-am: Makefile $(DATA) $(HEADERS) config.h -installdirs: installdirs-recursive -installdirs-am: - for dir in "$(DESTDIR)$(appdatadir)" "$(DESTDIR)$(appsdir)" "$(DESTDIR)$(sharedir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-recursive -install-exec: 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: - -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) - -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." -clean: clean-recursive - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-hdr \ - distclean-libtool distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -html-am: - -info: info-recursive - -info-am: - -install-data-am: install-appdataDATA install-appsDATA \ - install-shareDATA - -install-dvi: install-dvi-recursive - -install-dvi-am: - -install-exec-am: - -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-generic mostlyclean-libtool - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: uninstall-appdataDATA uninstall-appsDATA \ - uninstall-shareDATA - -.MAKE: $(am__recursive_targets) all install-am install-strip - -.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ - am--refresh check check-am clean clean-cscope clean-generic \ - clean-libtool cscope cscopelist-am ctags ctags-am dist \ - dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \ - dist-xz dist-zip distcheck distclean distclean-generic \ - distclean-hdr distclean-libtool distclean-tags distcleancheck \ - distdir distuninstallcheck dvi dvi-am html html-am info \ - info-am install install-am install-appdataDATA \ - install-appsDATA 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-man \ - install-pdf install-pdf-am install-ps install-ps-am \ - install-shareDATA install-strip installcheck installcheck-am \ - installdirs installdirs-am maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ - uninstall-am uninstall-appdataDATA uninstall-appsDATA \ - uninstall-shareDATA - -.PRECIOUS: Makefile - - -@INTLTOOL_XML_RULE@ -@INTLTOOL_DESKTOP_RULE@ - -# 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: diff -Nru roger-router-1.8.14/meson.build roger-router-2.1.6/meson.build --- roger-router-1.8.14/meson.build 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/meson.build 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,69 @@ +project('roger', 'c', version : '2.1.6', license : 'GPL2') + +gnome = import('gnome') + +msgfmt = find_program('msgfmt') + +result = run_command(msgfmt, ['--version']) + +app_version = meson.project_version() + +version_arr = app_version.split('.') +app_version_major = version_arr[0] +app_version_minor = version_arr[1] +app_version_micro = version_arr[2] + +cc = meson.get_compiler('c') + +#intltool_merge = find_program('intltool-merge') + +cdata = configuration_data() +cdata.set('PACKAGE_NAME', '"Roger Router"') +cdata.set('PACKAGE_VERSION', '"@0@"'.format(app_version)) +cdata.set('PACKAGE_BUGREPORT', '"https://www.tabos.org/forum"') +cdata.set('GETTEXT_PACKAGE', '"roger"') + +host_system = host_machine.system() + +if host_system == 'windows' +cdata.set('APP_PLUGINS', '"' + get_option('libdir') + '/roger/"') +cdata.set('APP_DATA', '"' + get_option('datadir') + '/roger/"') +cdata.set('APP_LOCALE', '"' + get_option('localedir') + '"') +else +cdata.set('APP_PLUGINS', '"' + get_option('prefix') + '/' + get_option('libdir') + '/roger/"') +cdata.set('APP_DATA', '"' + get_option('prefix') + '/' + get_option('datadir') + '/roger/"') +cdata.set('APP_LOCALE', '"' + get_option('prefix') + '/' + get_option('localedir') + '"') +endif + +gslib = cc.find_library('gs') + +check_headers = [['dlfcn.h','HAVE_DLFCN_H'], + ['sys/utsname.h', 'HAVE_SYS_UTSNAME_H'], +] + +foreach h : check_headers + if cc.has_header(h.get(0)) + cdata.set(h.get(1), 1) + endif +endforeach + +configure_file( + output : 'config.h', + configuration : cdata) + +roger_inc = include_directories('.') + +librm_dep = dependency('librm', version : '>=2.1.2') + +subdir('po') +subdir('share') +subdir('plugins') +subdir('platform') +subdir('roger') + +if get_option('enable-post-install') + meson.add_install_script('meson_post_install.sh') +endif + +#rpm = import('rpm') +#rpm.generate_spec_template() \ No newline at end of file diff -Nru roger-router-1.8.14/meson_options.txt roger-router-2.1.6/meson_options.txt --- roger-router-1.8.14/meson_options.txt 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/meson_options.txt 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1 @@ +option('enable-post-install', type: 'boolean', value: 'true', description : 'Enable post install (schema compiling, desktop, ...)') diff -Nru roger-router-1.8.14/meson_post_install.sh roger-router-2.1.6/meson_post_install.sh --- roger-router-1.8.14/meson_post_install.sh 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/meson_post_install.sh 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,14 @@ +#!/bin/sh + +# Packagers set DESTDIR so we don't want to try writing to root +if [ -z $DESTDIR ]; then + PREFIX=${MESON_INSTALL_PREFIX:-/usr} + + echo 'Compiling GSchema' + glib-compile-schemas "$PREFIX/share/glib-2.0/schemas" + echo 'Updating desktop database' + update-desktop-database -q + echo 'Updating icon cache' + mkdir -p "$PREFIX/share/icons/hicolor" + gtk-update-icon-cache -q -t -f "$PREFIX/share/icons/hicolor" +fi diff -Nru roger-router-1.8.14/missing roger-router-2.1.6/missing --- roger-router-1.8.14/missing 2015-12-10 21:33:22.000000000 +0000 +++ roger-router-2.1.6/missing 1970-01-01 00:00:00.000000000 +0000 @@ -1,215 +0,0 @@ -#! /bin/sh -# Common wrapper for a few potentially missing GNU programs. - -scriptversion=2013-10-28.13; # UTC - -# Copyright (C) 1996-2014 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=http://www.perl.org/ -flex_URL=http://flex.sourceforge.net/ -gnu_software_URL=http://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 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC" -# time-stamp-end: "; # UTC" -# End: diff -Nru roger-router-1.8.14/NEWS roger-router-2.1.6/NEWS --- roger-router-1.8.14/NEWS 2015-11-05 21:19:31.000000000 +0000 +++ roger-router-2.1.6/NEWS 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -* Plugins support with PEAS (C, Vala, Python, JavaScript) -* Splitted ui from lib (GTK frontend, CLI frontend) -* GApplication (Jumplist in GNOME 3) -* GNetworkMonitor for reduced network transfer -* Faster detection routine -* Call list search now automatically search all columns (no user input) -* Status icon available as plugin -* Instant apply of settings using gsettings (dconf, registry) -* Moved almost everything to plugins with signal support -* Cleaner interface which can be extended by plugins -* Wayland support - -* SOUP network for a/synchronous calls to router to let UI be responsive -* Improved parser (e.g. 10x faster for caller list parsing, 4x faster for ab parsing, 3x faster areacodes lookup) -* Use complete session time (reduced login/logout calls improves general router performance) -* Size is 1/3 compared to ffgtk diff -Nru roger-router-1.8.14/org.tabos.roger.desktop.in roger-router-2.1.6/org.tabos.roger.desktop.in --- roger-router-1.8.14/org.tabos.roger.desktop.in 2015-11-05 21:19:33.000000000 +0000 +++ roger-router-2.1.6/org.tabos.roger.desktop.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,13 +0,0 @@ -[Desktop Entry] -_Name=Roger Router -_GenericName=Roger Router -_Comment=Journal, Fax-Software and Call-Monitor for AVM FRITZ!Box or compatible -Exec=roger -Icon=roger -StartupNotify=true -Terminal=false -Type=Application -Categories=Network; -_Keywords=fritz;box;fritzbox;router;manager;fax;softphone; -MimeType=x-scheme-handler/tel; -X-GNOME-UsesNotifications=true diff -Nru roger-router-1.8.14/platform/linux/appindicator-rip-build-system-apart.patch roger-router-2.1.6/platform/linux/appindicator-rip-build-system-apart.patch --- roger-router-1.8.14/platform/linux/appindicator-rip-build-system-apart.patch 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/linux/appindicator-rip-build-system-apart.patch 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,187 @@ +diff -ru libappindicator-7/configure.ac libappindicator-patched/configure.ac +--- libappindicator-7/configure.ac 2012-07-11 13:28:51.115114265 -0400 ++++ libappindicator-patched/configure.ac 2017-05-06 22:37:46.792117906 -0400 +@@ -86,58 +86,6 @@ + + AM_CONDITIONAL(INTROSPECTION_TEN, [test "x$introspection_ten" = "xyes"]) + +-########################### +-# Vala API Generation +-########################### +- +-AC_PATH_PROG([VALA_API_GEN], [vapigen]) +-AM_CONDITIONAL(HAVE_VAPIGEN, [test "x$VALA_API_GEN" != "x"]) +- +-########################### +-# Vala Compiler support +-########################### +- +-AM_PROG_VALAC([0.14.0]) +-AM_CONDITIONAL(HAVE_VALAC, [test "x$VALAC" != "x"]) +- +-########################### +-# Check for Mono support +-########################### +- +-MONO_REQUIRED_VERSION=1.0 +-PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false) +-AM_CONDITIONAL(HAS_MONO, [test "x$has_mono" = "xtrue"]) +- +-AC_PATH_PROG(AL, al, no) +-if test "x$AL" = "xno" ; then +- AC_MSG_NOTICE([No al tool found. You need to install Mono.]) +-fi +- +-if test "x$has_mono" = "xtrue" ; then +- GENERATED_SOURCES=generated/*.cs +- AC_PATH_PROG(RUNTIME, mono, no) +- +- if test "x$RUNTIME" != "no" ; then +- RUNTIME=mono +- fi +- +- AC_PATH_PROG(CSC, gmcs, no) +- LIB_PREFIX=.so +- LIB_SUFFIX= +-fi +- +-if test "x$CSC" = "xno" ; then +- AC_MSG_NOTICE([No Mono compiler found.]) +-fi +- +-AC_PATH_PROG(GACUTIL, gacutil, no) +-if test "x$GACUTIL" = "xno" ; then +- AC_MSG_NOTICE([No gacutil tool found]) +-fi +- +-AC_SUBST(RUNTIME) +-AC_SUBST(CSC) +-AC_SUBST(GACUTIL) + AC_SUBST(LIB_PREFIX) + AC_SUBST(LIB_SUFFIX) + AC_SUBST(GENERATED_SOURCES) +@@ -154,60 +102,6 @@ + AC_PATH_PROG(GAPI_FIXUP, gapi2-fixup, no) + AC_SUBST(GAPI_FIXUP) + +-# Check for nunit +-AC_ARG_ENABLE([mono-test], +- AC_HELP_STRING([--disable-mono-test], [Disable mono test]),, +- [enable_mono_test=auto]) +- +-if test x"$enable_mono_test" != x"no" ; then +- PKG_CHECK_MODULES(NUNIT, nunit >= 2.4.7, +- [have_nunit=yes], +- [PKG_CHECK_MODULES(MONO_NUNIT, mono-nunit, +- [have_nunit=yes], +- [have_nunit=no]) +- ]) +- if test x${enable_mono_test} = xyes && test x${have_nunit} = xno; then +- AC_MSG_ERROR([Mono test configured but nunit not found]) +- fi +-else +- have_nunit=no +-fi +-AM_CONDITIONAL(BUILD_MONO_TEST, test x${have_nunit} = xyes) +- +-########################### +-# Check to see if we're local +-########################### +- +-with_localinstall="no" +-AC_ARG_ENABLE(localinstall, AS_HELP_STRING([--enable-localinstall], [install all of the files localy instead of system directories (for distcheck)]), with_localinstall=$enableval, with_localinstall=no) +- +-########################### +-# Python +-########################### +- +-PYGTK_REQUIRED=2.14.0 +-PYGOBJECT_REQUIRED=0.22 +- +-AM_PATH_PYTHON(2.3.5) +-AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)]) +- +-PKG_CHECK_MODULES(APPINDICATOR_PYTHON, +- [ +- pygtk-2.0 >= $PYGTK_REQUIRED +- gtk+-2.0 >= $GTK_REQUIRED_VERSION +- pygobject-2.0 >= $PYGOBJECT_REQUIRED +- ]) +- +-AC_MSG_CHECKING(for pygtk defs) +-PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0` +-AC_SUBST(PYGTK_DEFSDIR) +-AC_MSG_RESULT($PYGTK_DEFSDIR) +- +-AC_MSG_CHECKING(for pygtk codegen) +-PYGTK_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygtk-2.0`/codegen.py" +-AC_SUBST(PYGTK_CODEGEN) +-AC_MSG_RESULT($PYGTK_CODEGEN) +- + ######################### + # Check if build tests + ######################### +@@ -238,30 +132,13 @@ + src/Makefile + src/appindicator-0.1.pc + src/appindicator3-0.1.pc +-bindings/Makefile +-bindings/python/Makefile +-bindings/python/appindicator.override +-bindings/vala/Makefile +-bindings/vala/examples/Makefile + tests/Makefile +-example/Makefile + docs/Makefile + docs/reference/Makefile + docs/reference/version.xml + docs/reference/libappindicator-docs.sgml + ]) + +-if test "x$has_mono" = "xtrue" ; then +- AC_CONFIG_FILES([ +- bindings/mono/Makefile +- bindings/mono/appindicator-sharp.dll.config +- bindings/mono/appindicator-sharp-0.1.pc +- bindings/mono/app-indicator.sources.xml +- bindings/mono/examples/Makefile +- bindings/mono/examples/indicator-example +- ]) +-fi +- + AC_OUTPUT + + ########################### +@@ -274,8 +151,6 @@ + + Prefix: $prefix + GTK+ Version: $with_gtk +- Mono: $has_mono + Tests: $enable_tests +- Mono tests: $have_nunit + gcov: $use_gcov + ]) +diff -ru libappindicator-7/Makefile.am libappindicator-patched/Makefile.am +--- libappindicator-7/Makefile.am 2012-07-11 13:28:34.415113869 -0400 ++++ libappindicator-patched/Makefile.am 2017-05-06 22:37:35.213890331 -0400 +@@ -2,8 +2,6 @@ + + SUBDIRS = \ + src \ +- bindings \ +- example \ + docs + + if WANT_TESTS +diff -ru libappindicator-7/src/Makefile.am libappindicator-patched/src/Makefile.am +--- libappindicator-7/src/Makefile.am 2012-07-11 13:28:34.415113869 -0400 ++++ libappindicator-patched/src/Makefile.am 2017-05-06 22:44:57.719587973 -0400 +@@ -76,7 +76,7 @@ + libappindicator_la_CFLAGS = \ + $(LIBRARY_CFLAGS) \ + $(COVERAGE_CFLAGS) \ +- -Wall -Werror \ ++ -Wall \ + -DG_LOG_DOMAIN=\"libappindicator\" + + libappindicator_la_LIBADD = \ diff -Nru roger-router-1.8.14/platform/linux/build-flatpak.sh roger-router-2.1.6/platform/linux/build-flatpak.sh --- roger-router-1.8.14/platform/linux/build-flatpak.sh 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/linux/build-flatpak.sh 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,19 @@ +#!/bin/bash + +BUILD_DIR=~/.builds +NAME=org.tabos.roger +JSON=$NAME.json +REPO=repo +EXE=roger + +echo "Removing build dir.." +rm -rf $BUILD_DIR + +echo "Building $NAME with flatpak" +flatpak-builder --ccache --repo=$REPO --subject="Nightly build of Roger, `date`" $BUILD_DIR $JSON + +flatpak build-sign repo --gpg-sign=2366F73FC963E8482C87A2D7E00E793AD2EE07CF --gpg-homedir=~/.gpg +flatpak build-update-repo repo --generate-static-deltas --gpg-sign=2366F73FC963E8482C87A2D7E00E793AD2EE07CF --gpg-homedir=~/.gpg + +#echo "Creating bundle file..." +#flatpak -v build-bundle $REPO $EXE.flatpak $NAME diff -Nru roger-router-1.8.14/platform/linux/build-local.sh roger-router-2.1.6/platform/linux/build-local.sh --- roger-router-1.8.14/platform/linux/build-local.sh 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/linux/build-local.sh 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,14 @@ +#!/bin/bash + +BUILD_DIR=build-local + +echo "Building $NAME" +meson ../.. $BUILD_DIR --prefix=/usr + +cd $BUILD_DIR +ninja-build + +#ninja-build roger-pot +#ninja-build roger-update-po + +cd .. \ No newline at end of file diff -Nru roger-router-1.8.14/platform/linux/dev-setup.sh roger-router-2.1.6/platform/linux/dev-setup.sh --- roger-router-1.8.14/platform/linux/dev-setup.sh 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/linux/dev-setup.sh 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,4 @@ +#!/bin/bash + +sudo dnf install meson gcc glib2-devel libsoup-devel speex-devel libtiff-devel spandsp-devel \ + json-glib-devel libsndfile-devel isdn4k-utils-devel gstreamer1-plugins-base-devel gtk3-devel \ No newline at end of file diff -Nru roger-router-1.8.14/platform/linux/libappindicator.json roger-router-2.1.6/platform/linux/libappindicator.json --- roger-router-1.8.14/platform/linux/libappindicator.json 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/linux/libappindicator.json 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,57 @@ +{ + "name": "libappindicator", + "rm-configure": true, + "config-opts": ["--with-gtk=3", "--disable-static", "--disable-tests", "--disable-gtk-doc-html"], + "cleanup": ["/include", "/lib/*.la", "/lib/pkgconfig", "/libexec", "/share"], + "sources": [ + { + "type": "archive", + "url": "https://launchpad.net/libappindicator/12.10/12.10.0/+download/libappindicator-12.10.0.tar.gz", + "sha256": "d5907c1f98084acf28fd19593cb70672caa0ca1cf82d747ba6f4830d4cc3b49f" + }, + { + "type": "patch", + "path": "appindicator-rip-build-system-apart.patch" + } + ], + "modules": [ + { + "name": "libindicator", + "config-opts": ["--with-gtk=3", "--disable-static", "--disable-tests"], + "cleanup": ["/include", "/lib/*.la", "/lib/pkgconfig", "/libexec", "/share"], + "sources": [ + { + "type": "archive", + "url": "https://launchpad.net/libindicator/12.10/12.10.1/+download/libindicator-12.10.1.tar.gz", + "sha256": "b2d2e44c10313d5c9cd60db455d520f80b36dc39562df079a3f29495e8f9447f" + }, + { + "type": "shell", + "commands": [ + "sed 's/gtk_icon_info_free/g_object_unref/' -i libindicator/indicator-image-helper.c", + "sed 's/LIBS=\"-lm $LIBS\"/LIBS=\" -lm $LIBS\"/g' -i configure", + "sed 's/LIBM=\"-lm\"/LIBM=\" -lm\"/g' -i configure" + ] + } + ] + }, + { + "name": "libdbusmenu", + "config-opts": ["--with-gtk=3", "--disable-static", "--disable-tests"], + "cleanup": ["/include", "/lib/*.la", "/lib/pkgconfig", "/libexec", "/share"], + "build-options": { + "env": { + "HAVE_VALGRIND_FALSE": "'1'", + "HAVE_VALGRIND_TRUE": "''", + "PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_GIRDIR": "/app/share/gir-1.0", + "PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_TYPELIBDIR": "/app/lib/girepository-1.0" + } + }, + "sources": [{ + "type": "archive", + "url": "https://launchpad.net/libdbusmenu/16.04/16.04.0/+download/libdbusmenu-16.04.0.tar.gz", + "sha256": "b9cc4a2acd74509435892823607d966d424bd9ad5d0b00938f27240a1bfa878a" + }] + } + ] +} \ No newline at end of file diff -Nru roger-router-1.8.14/platform/linux/org.tabos.roger.json roger-router-2.1.6/platform/linux/org.tabos.roger.json --- roger-router-1.8.14/platform/linux/org.tabos.roger.json 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/linux/org.tabos.roger.json 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,269 @@ +{ + "app-id" : "org.tabos.roger", + "runtime" : "org.gnome.Platform", + "runtime-version" : "master", + "sdk" : "org.gnome.Sdk", + "command" : "roger", + "tags" : [ + "nightly" + ], + "desktop-file-name-suffix" : " (Nightly)", + "finish-args" : [ + "--socket=x11", + "--share=ipc", + "--socket=wayland", + "--share=network", + "--filesystem=host", + "--socket=pulseaudio", + "--talk-name=org.freedesktop.secrets", + "--filesystem=xdg-run/keyring", + "--talk-name=org.kde.StatusNotifierWatcher", + "--talk-name=com.canonical.indicator.application", + "--talk-name=org.gnome.OnlineAccounts", + "--talk-name=org.gnome.evolution.dataserver.AddressBook9", + "--talk-name=org.gnome.evolution.dataserver.Calendar7", + "--talk-name=org.gnome.evolution.dataserver.Sources5", + "--talk-name=org.gnome.evolution.dataserver.Subprocess.Backend.*" + ], + "cleanup" : [ + "/include", + "/lib/pkgconfig", + "/share/pkgconfig", + "/share/aclocal", + "/man", + "/share/man", + "/share/gtk-doc", + "/share/vala", + "*.la", + "*.a", + "/lib/girepository-1.0", + "/share/info", + "/share/gtksourceview-3.0", + "/share/doc", + "/share/gir-1.0" + ], + "modules" : [ + { + "name" : "gssdp", + "buildsystem" : "meson", + "cleanup" : [ + "/bin" + ], + "sources" : [ + { + "type" : "archive", + "url" : "https://download.gnome.org/sources/gssdp/1.2/gssdp-1.2.1.tar.xz", + "sha256" : "6b57b79a96e229367981b6f00474e4bbc795909a2d3160c748cba3395b3556d3" + } + ] + }, + { + "name" : "gupnp", + "buildsystem" : "meson", + "cleanup" : [ + "/bin" + ], + "sources" : [ + { + "type" : "archive", + "url" : "https://download.gnome.org/sources/gupnp/1.2/gupnp-1.2.1.tar.xz", + "sha256" : "a9aa557eff415598e05999d0ab122f202a978ff827688d3f951023117a315f5e" + } + ] + }, + { + "name" : "ghostscript", + "config-opts" : [ + "--disable-cups", + "--disable-dbus", + "--disable-gtk", + "--without-ijs", + "--without-luratech", + "--without-pdftoraster", + "--disable-compile-inits", + "--enable-dynamic", + "--with-system-libtiff", + "--without-jbig2dec" + ], + "make-args" : [ + "so" + ], + "make-install-args" : [ + "soinstall" + ], + "cleanup" : [ + "/bin", + "/share/man", + "/share/ghostscript/9.27/doc/", + "/share/ghostscript/9.27/examples" + ], + "sources" : [ + { + "type" : "archive", + "url" : "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs927/ghostscript-9.27.tar.xz", + "sha256" : "fc0f1fbacd3610c67a9f080487a0e021f14390c38a4b4df9723e2bdf2b90b619" + }, + { + "type": "shell", + "commands": [ + "rm -rf freetype lcms2mt jpeg libpng openjpeg zlib" + ] + } + ] + }, + { + "name" : "liboauth", + "config-opts" : [ + "--enable-nss" + ], + "sources" : [ + { + "type" : "archive", + "url" : "http://netix.dl.sourceforge.net/project/liboauth/liboauth-1.0.3.tar.gz", + "sha256" : "0df60157b052f0e774ade8a8bac59d6e8d4b464058cc55f9208d72e41156811f" + } + ] + }, + { + "name" : "libgdata", + "buildsystem" : "meson", + "config-opts" : [ + "-Dalways_build_tests=false", + "-Dgoa=disabled", + "-Dgtk_doc=false", + "-Dintrospection=false", + "-Dvapi=false", + "-Dinstalled_tests=false" + ], + "sources" : [ + { + "type" : "archive", + "url" : "https://download.gnome.org/sources/libgdata/0.17/libgdata-0.17.11.tar.xz", + "sha256" : "6b9917122e4def6e6f78bcb660e49e146540832e296abcb5cde99829a04ea986" + } + ] + }, + { + "name" : "poppler", + "buildsystem": "cmake", + "config-opts" : [ + "-DENABLE_SPLASH=OFF", + "-DENABLE_CPP=OFF", + "-DENABLE_LIBCURL=OFF", + "-DBUILD_GTK_TESTS=OFF", + "-DENABLE_LIBOPENJPEG=none" + ], + "sources" : [ + { + "type" : "archive", + "url" : "https://poppler.freedesktop.org/poppler-0.80.0.tar.xz", + "sha256" : "4d3ca6b79bc13b8e24092e34f83ef5f387f3bb0bbd7359a6c078e09c696d104f" + } + ] + }, + { + "name" : "libical", + "cleanup" : [ + "/lib/cmake" + ], + "buildsystem": "cmake", + "config-opts" : [ + "-DCMAKE_INSTALL_LIBDIR:PATH=/app/lib", + "-DBUILD_SHARED_LIBS:BOOL=ON" + ], + "sources" : [ + { + "type" : "archive", + "url" : "https://github.com/libical/libical/releases/download/v3.0.6/libical-3.0.6.tar.gz", + "sha256" : "5c8a21c2b732ece4a33e5c862970b4f35a8548bbcda50de5695f6fc211ac4d97" + } + ] + }, + "shared-modules/intltool/intltool-0.51.json", + { + "name" : "evolution-data-server", + "cleanup" : [ + "/lib/cmake", + "/lib/evolution-data-server/*-backends", + "/libexec", + "/share/dbus-1/services" + ], + "config-opts" : [ + "-DENABLE_GTK=OFF", + "-DENABLE_GOOGLE_AUTH=OFF", + "-DENABLE_UOA=OFF", + "-DENABLE_GOOGLE=OFF", + "-DENABLE_VALA_BINDINGS=OFF", + "-DWITH_OPENLDAP=OFF", + "-DENABLE_INTROSPECTION=OFF", + "-DENABLE_INSTALLED_TESTS=OFF", + "-DENABLE_GTK_DOC=OFF", + "-DENABLE_EXAMPLES=OFF", + "-DENABLE_GOA=OFF", + "-DENABLE_WEATHER=OFF", + "-DWITH_LIBDB=OFF" + ], + "buildsystem": "cmake", + "sources" : [ + { + "type" : "archive", + "url" : "https://download.gnome.org/sources/evolution-data-server/3.34/evolution-data-server-3.34.0.tar.xz", + "sha256" : "fb9db0a824ae01ecc63c82cf8e503fecdcba7118b919f04bda7d8d91f3e486cf" + } + ] + }, + { + "name" : "capi20", + "buildsystem" : "meson", + "sources" : [ + { + "type" : "git", + "url" : "https://gitlab.com/tabos/libcapi.git", + "tag" : "v3.2.2", + "commit" : "7de497e8a74640aba8f108eb3eba3a26a1a24a3d" + } + ] + }, + { + "name" : "spandsp", + "sources" : [ + { + "type" : "git", + "url" : "https://gitlab.com/tabos/spandsp.git", + "tag" : "0.0.6pre21", + "commit" : "68455c2d0d56def0443ba2ae7df0e82e3a5fa5bb" + } + ] + }, + { + "name" : "librm", + "buildsystem" : "meson", + "config-opts" : [ + "--libdir=/app/lib", + "--buildtype=release" + ], + "sources" : [ + { + "type" : "git", + "url" : "https://gitlab.com/tabos/librm.git", + "tag" : "v2.1.2", + "commit" : "b6cb29874e1e3fe629220391676778b82da9bcff" + } + ] + }, + { + "name" : "roger", + "config-opts" : [ + "--libdir=/app/lib", + "--buildtype=release" + ], + "buildsystem" : "meson", + "sources" : [ + { + "type" : "git", + "url" : "https://gitlab.com/tabos/rogerrouter.git" + } + ] + } + ] +} diff -Nru roger-router-1.8.14/platform/linux/README roger-router-2.1.6/platform/linux/README --- roger-router-1.8.14/platform/linux/README 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/linux/README 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1 @@ +This directory should offer scripts for easy compilation to flatpak images \ No newline at end of file diff -Nru roger-router-1.8.14/platform/linux/remove-settings.sh roger-router-2.1.6/platform/linux/remove-settings.sh --- roger-router-1.8.14/platform/linux/remove-settings.sh 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/linux/remove-settings.sh 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,21 @@ +#!/bin/sh +## + # Roger Router + # Copyright (c) 2012-2014 Jan-Michael Brummer + # + # This file is part of Roger Router. + # + # 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; version 2 only. + # + # 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 . +## + +dconf reset -f "/org/tabos/" diff -Nru roger-router-1.8.14/platform/linux/shared-modules/intltool/intltool-0.51.json roger-router-2.1.6/platform/linux/shared-modules/intltool/intltool-0.51.json --- roger-router-1.8.14/platform/linux/shared-modules/intltool/intltool-0.51.json 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/linux/shared-modules/intltool/intltool-0.51.json 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,11 @@ +{ + "name": "intltool", + "cleanup": [ "*" ], + "sources": [ + { + "type": "archive", + "url": "https://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz", + "sha256": "67c74d94196b153b774ab9f89b2fa6c6ba79352407037c8c14d5aeb334e959cd" + } + ] +} diff -Nru roger-router-1.8.14/platform/macosx/package.in roger-router-2.1.6/platform/macosx/package.in --- roger-router-1.8.14/platform/macosx/package.in 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/macosx/package.in 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,8 @@ +#!/bin/sh +set -x +VERSION=@PACKAGE_VERSION@ + +gtk-mac-bundler roger.bundle +pkgbuild --install-location /Applications --component RogerRouter.app --version $VERSION --scripts scripts Roger\ Router\ -\ ${VERSION}.pkg +rm -rf RogerRouter.app + diff -Nru roger-router-1.8.14/platform/macosx/patches/libpeas-1.6.2.patch roger-router-2.1.6/platform/macosx/patches/libpeas-1.6.2.patch --- roger-router-1.8.14/platform/macosx/patches/libpeas-1.6.2.patch 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/macosx/patches/libpeas-1.6.2.patch 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,1498 @@ +diff -urN libpeas-1.6.2/configure libpeas-1.6.2-patched/configure +--- libpeas-1.6.2/configure 2012-11-25 11:18:48.000000000 +0100 ++++ libpeas-1.6.2-patched/configure 2013-08-26 22:36:01.000000000 +0200 +@@ -1,13 +1,11 @@ + #! /bin/sh + # Guess values for system-dependent variables and create Makefiles. +-# Generated by GNU Autoconf 2.68 for libpeas 1.6.2. ++# Generated by GNU Autoconf 2.69 for libpeas 1.6.2. + # + # Report bugs to . + # + # +-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, +-# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software +-# Foundation, Inc. ++# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. + # + # + # This configure script is free software; the Free Software Foundation +@@ -136,6 +134,31 @@ + # CDPATH. + (unset CDPATH) >/dev/null 2>&1 && unset CDPATH + ++# 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'. ++$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 ++as_fn_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 -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh +@@ -169,7 +192,8 @@ + else + exitcode=1; echo positional parameters were not saved. + fi +-test x\$exitcode = x0 || exit 1" ++test x\$exitcode = x0 || 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'\" && +@@ -222,21 +246,25 @@ + + + if test "x$CONFIG_SHELL" != x; then : +- # 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 +- export CONFIG_SHELL +- 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+"$@"} ++ 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'. ++$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 ++exit 255 + fi + + if test x$as_have_required = xno; then : +@@ -340,6 +368,14 @@ + + + } # 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 +@@ -461,6 +497,10 @@ + chmod +x "$as_me.lineno" || + { $as_echo "$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). +@@ -495,16 +535,16 @@ + # ... 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 -p'. ++ # 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 -p' ++ as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else +- as_ln_s='cp -p' ++ as_ln_s='cp -pR' + fi + else +- as_ln_s='cp -p' ++ as_ln_s='cp -pR' + fi + rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file + rmdir conf$$.dir 2>/dev/null +@@ -516,28 +556,8 @@ + as_mkdir_p=false + fi + +-if test -x / >/dev/null 2>&1; then +- as_test_x='test -x' +-else +- if ls -dL / >/dev/null 2>&1; then +- as_ls_L_option=L +- else +- as_ls_L_option= +- fi +- as_test_x=' +- eval sh -c '\'' +- if test -d "$1"; then +- test -d "$1/."; +- else +- case $1 in #( +- -*)set "./$1";; +- esac; +- case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( +- ???[sx]*):;;*)false;;esac;fi +- '\'' sh +- ' +-fi +-as_executable_p=$as_test_x ++as_test_x='test -x' ++as_executable_p=as_fn_executable_p + + # Sed expression to map a string onto a valid CPP name. + as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +@@ -681,6 +701,12 @@ + GDB_ENABLED_FALSE + GDB_ENABLED_TRUE + enable_gdb ++OSX_GTK_FALSE ++OSX_GTK_TRUE ++OSX_IGE_FALSE ++OSX_IGE_TRUE ++GTK_MAC_LIBS ++GTK_MAC_CFLAGS + IGE_MAC_LIBS + IGE_MAC_CFLAGS + OS_OSX_FALSE +@@ -925,6 +951,8 @@ + PEAS_GTK_LIBS + IGE_MAC_CFLAGS + IGE_MAC_LIBS ++GTK_MAC_CFLAGS ++GTK_MAC_LIBS + PYTHON + GTKDOC_DEPS_CFLAGS + GTKDOC_DEPS_LIBS' +@@ -1383,8 +1411,6 @@ + if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe +- $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. +- If a cross compiler is detected then cross compile mode will be used" >&2 + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +@@ -1615,6 +1641,10 @@ + C compiler flags for IGE_MAC, overriding pkg-config + IGE_MAC_LIBS + linker flags for IGE_MAC, overriding pkg-config ++ GTK_MAC_CFLAGS ++ C compiler flags for GTK_MAC, overriding pkg-config ++ GTK_MAC_LIBS ++ linker flags for GTK_MAC, overriding pkg-config + PYTHON the Python interpreter + GTKDOC_DEPS_CFLAGS + C compiler flags for GTKDOC_DEPS, overriding pkg-config +@@ -1689,9 +1719,9 @@ + if $ac_init_version; then + cat <<\_ACEOF + libpeas configure 1.6.2 +-generated by GNU Autoconf 2.68 ++generated by GNU Autoconf 2.69 + +-Copyright (C) 2010 Free Software Foundation, Inc. ++Copyright (C) 2012 Free Software Foundation, Inc. + This configure script is free software; the Free Software Foundation + gives unlimited permission to copy, distribute and modify it. + _ACEOF +@@ -1767,7 +1797,7 @@ + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || +- $as_test_x conftest$ac_exeext ++ test -x conftest$ac_exeext + }; then : + ac_retval=0 + else +@@ -2058,7 +2088,7 @@ + running configure, to aid debugging if configure makes a mistake. + + It was created by libpeas $as_me 1.6.2, which was +-generated by GNU Autoconf 2.68. Invocation command line was ++generated by GNU Autoconf 2.69. Invocation command line was + + $ $0 $@ + +@@ -2499,7 +2529,7 @@ + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then ++ 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. +@@ -2668,7 +2698,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -2708,7 +2738,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -2759,7 +2789,7 @@ + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do +- { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue ++ 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 (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ +@@ -2812,7 +2842,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -3107,7 +3137,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -3147,7 +3177,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -3200,7 +3230,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -3241,7 +3271,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ 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 +@@ -3299,7 +3329,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -3343,7 +3373,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -3789,8 +3819,7 @@ + /* end confdefs.h. */ + #include + #include +-#include +-#include ++struct stat; + /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ + struct buf { int x; }; + FILE * (*rcsopen) (struct buf *, struct stat *, int); +@@ -4268,7 +4297,7 @@ + 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" +- { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue ++ 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 +@@ -4344,7 +4373,7 @@ + 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" +- { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue ++ 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 +@@ -4410,7 +4439,7 @@ + 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" +- { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue ++ 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 +@@ -4477,7 +4506,7 @@ + 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" +- { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue ++ 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 +@@ -4733,7 +4762,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -4777,7 +4806,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -5190,7 +5219,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -5230,7 +5259,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -5536,7 +5565,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -5576,7 +5605,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -5680,7 +5709,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -5724,7 +5753,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AR="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -5849,7 +5878,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -5889,7 +5918,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -5948,7 +5977,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -5988,7 +6017,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -6637,7 +6666,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -6677,7 +6706,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -6757,7 +6786,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -6797,7 +6826,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -6849,7 +6878,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -6889,7 +6918,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_NMEDIT="nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -6941,7 +6970,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_LIPO="${ac_tool_prefix}lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -6981,7 +7010,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_LIPO="lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -7033,7 +7062,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OTOOL="${ac_tool_prefix}otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -7073,7 +7102,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OTOOL="otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -7125,7 +7154,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -7165,7 +7194,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OTOOL64="otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -11724,7 +11753,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -11764,7 +11793,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -11804,7 +11833,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -11988,7 +12017,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -12028,7 +12057,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -12068,7 +12097,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -12108,7 +12137,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -12159,7 +12188,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -12345,7 +12374,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -14176,7 +14205,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -14219,7 +14248,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -14395,7 +14424,6 @@ + Alternatively, you may set the environment variables PEAS_CFLAGS + and PEAS_LIBS to avoid the need to call pkg-config. + See the pkg-config man page for more details." "$LINENO" 5 +- + elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + $as_echo "no" >&6; } +@@ -14411,7 +14439,6 @@ + + To get pkg-config, see . + See \`config.log' for more details" "$LINENO" 5; } +- + else + PEAS_CFLAGS=$pkg_cv_PEAS_CFLAGS + PEAS_LIBS=$pkg_cv_PEAS_LIBS +@@ -14617,7 +14644,6 @@ + Alternatively, you may set the environment variables PEAS_GTK_CFLAGS + and PEAS_GTK_LIBS to avoid the need to call pkg-config. + See the pkg-config man page for more details." "$LINENO" 5 +- + elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + $as_echo "no" >&6; } +@@ -14633,7 +14659,6 @@ + + To get pkg-config, see . + See \`config.log' for more details" "$LINENO" 5; } +- + else + PEAS_GTK_CFLAGS=$pkg_cv_PEAS_GTK_CFLAGS + PEAS_GTK_LIBS=$pkg_cv_PEAS_GTK_LIBS +@@ -14687,7 +14712,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -14796,17 +14821,167 @@ + # Put the nasty error message in config.log where it belongs + echo "$IGE_MAC_PKG_ERRORS" >&5 + +- as_fn_error $? "Package requirements (ige-mac-integration) were not met: + +-$IGE_MAC_PKG_ERRORS ++pkg_failed=no ++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK_MAC" >&5 ++$as_echo_n "checking for GTK_MAC... " >&6; } ++ ++if test -n "$GTK_MAC_CFLAGS"; then ++ pkg_cv_GTK_MAC_CFLAGS="$GTK_MAC_CFLAGS" ++ elif test -n "$PKG_CONFIG"; then ++ if test -n "$PKG_CONFIG" && \ ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration\""; } >&5 ++ ($PKG_CONFIG --exists --print-errors "gtk-mac-integration") 2>&5 ++ ac_status=$? ++ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ++ test $ac_status = 0; }; then ++ pkg_cv_GTK_MAC_CFLAGS=`$PKG_CONFIG --cflags "gtk-mac-integration" 2>/dev/null` ++else ++ pkg_failed=yes ++fi ++ else ++ pkg_failed=untried ++fi ++if test -n "$GTK_MAC_LIBS"; then ++ pkg_cv_GTK_MAC_LIBS="$GTK_MAC_LIBS" ++ elif test -n "$PKG_CONFIG"; then ++ if test -n "$PKG_CONFIG" && \ ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration\""; } >&5 ++ ($PKG_CONFIG --exists --print-errors "gtk-mac-integration") 2>&5 ++ ac_status=$? ++ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ++ test $ac_status = 0; }; then ++ pkg_cv_GTK_MAC_LIBS=`$PKG_CONFIG --libs "gtk-mac-integration" 2>/dev/null` ++else ++ pkg_failed=yes ++fi ++ else ++ pkg_failed=untried ++fi ++ ++ ++ ++if test $pkg_failed = yes; then ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo "no" >&6; } ++ ++if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then ++ _pkg_short_errors_supported=yes ++else ++ _pkg_short_errors_supported=no ++fi ++ if test $_pkg_short_errors_supported = yes; then ++ GTK_MAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk-mac-integration" 2>&1` ++ else ++ GTK_MAC_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk-mac-integration" 2>&1` ++ fi ++ # Put the nasty error message in config.log where it belongs ++ echo "$GTK_MAC_PKG_ERRORS" >&5 ++ ++ as_fn_error $? "Package requirements (gtk-mac-integration) were not met: ++ ++$GTK_MAC_PKG_ERRORS + + Consider adjusting the PKG_CONFIG_PATH environment variable if you + installed software in a non-standard prefix. + +-Alternatively, you may set the environment variables IGE_MAC_CFLAGS +-and IGE_MAC_LIBS to avoid the need to call pkg-config. ++Alternatively, you may set the environment variables GTK_MAC_CFLAGS ++and GTK_MAC_LIBS to avoid the need to call pkg-config. + See the pkg-config man page for more details." "$LINENO" 5 ++elif test $pkg_failed = untried; then ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo "no" >&6; } ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ++$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ++as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it ++is in your PATH or set the PKG_CONFIG environment variable to the full ++path to pkg-config. ++ ++Alternatively, you may set the environment variables GTK_MAC_CFLAGS ++and GTK_MAC_LIBS to avoid the need to call pkg-config. ++See the pkg-config man page for more details. ++ ++To get pkg-config, see . ++See \`config.log' for more details" "$LINENO" 5; } ++else ++ GTK_MAC_CFLAGS=$pkg_cv_GTK_MAC_CFLAGS ++ GTK_MAC_LIBS=$pkg_cv_GTK_MAC_LIBS ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ++$as_echo "yes" >&6; } ++ ++$as_echo "#define OSX_GTK 1" >>confdefs.h ++ ++fi ++elif test $pkg_failed = untried; then ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo "no" >&6; } ++ ++pkg_failed=no ++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK_MAC" >&5 ++$as_echo_n "checking for GTK_MAC... " >&6; } ++ ++if test -n "$GTK_MAC_CFLAGS"; then ++ pkg_cv_GTK_MAC_CFLAGS="$GTK_MAC_CFLAGS" ++ elif test -n "$PKG_CONFIG"; then ++ if test -n "$PKG_CONFIG" && \ ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration\""; } >&5 ++ ($PKG_CONFIG --exists --print-errors "gtk-mac-integration") 2>&5 ++ ac_status=$? ++ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ++ test $ac_status = 0; }; then ++ pkg_cv_GTK_MAC_CFLAGS=`$PKG_CONFIG --cflags "gtk-mac-integration" 2>/dev/null` ++else ++ pkg_failed=yes ++fi ++ else ++ pkg_failed=untried ++fi ++if test -n "$GTK_MAC_LIBS"; then ++ pkg_cv_GTK_MAC_LIBS="$GTK_MAC_LIBS" ++ elif test -n "$PKG_CONFIG"; then ++ if test -n "$PKG_CONFIG" && \ ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration\""; } >&5 ++ ($PKG_CONFIG --exists --print-errors "gtk-mac-integration") 2>&5 ++ ac_status=$? ++ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ++ test $ac_status = 0; }; then ++ pkg_cv_GTK_MAC_LIBS=`$PKG_CONFIG --libs "gtk-mac-integration" 2>/dev/null` ++else ++ pkg_failed=yes ++fi ++ else ++ pkg_failed=untried ++fi ++ + ++ ++if test $pkg_failed = yes; then ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo "no" >&6; } ++ ++if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then ++ _pkg_short_errors_supported=yes ++else ++ _pkg_short_errors_supported=no ++fi ++ if test $_pkg_short_errors_supported = yes; then ++ GTK_MAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk-mac-integration" 2>&1` ++ else ++ GTK_MAC_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk-mac-integration" 2>&1` ++ fi ++ # Put the nasty error message in config.log where it belongs ++ echo "$GTK_MAC_PKG_ERRORS" >&5 ++ ++ as_fn_error $? "Package requirements (gtk-mac-integration) were not met: ++ ++$GTK_MAC_PKG_ERRORS ++ ++Consider adjusting the PKG_CONFIG_PATH environment variable if you ++installed software in a non-standard prefix. ++ ++Alternatively, you may set the environment variables GTK_MAC_CFLAGS ++and GTK_MAC_LIBS to avoid the need to call pkg-config. ++See the pkg-config man page for more details." "$LINENO" 5 + elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + $as_echo "no" >&6; } +@@ -14816,21 +14991,47 @@ + is in your PATH or set the PKG_CONFIG environment variable to the full + path to pkg-config. + +-Alternatively, you may set the environment variables IGE_MAC_CFLAGS +-and IGE_MAC_LIBS to avoid the need to call pkg-config. ++Alternatively, you may set the environment variables GTK_MAC_CFLAGS ++and GTK_MAC_LIBS to avoid the need to call pkg-config. + See the pkg-config man page for more details. + + To get pkg-config, see . + See \`config.log' for more details" "$LINENO" 5; } ++else ++ GTK_MAC_CFLAGS=$pkg_cv_GTK_MAC_CFLAGS ++ GTK_MAC_LIBS=$pkg_cv_GTK_MAC_LIBS ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ++$as_echo "yes" >&6; } + ++$as_echo "#define OSX_GTK 1" >>confdefs.h ++ ++fi + else + IGE_MAC_CFLAGS=$pkg_cv_IGE_MAC_CFLAGS + IGE_MAC_LIBS=$pkg_cv_IGE_MAC_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 + $as_echo "yes" >&6; } + ++$as_echo "#define OSX_IGE 1" >>confdefs.h ++ + fi + fi ++ if test "x$OSX_IGE" != "xno"; then ++ OSX_IGE_TRUE= ++ OSX_IGE_FALSE='#' ++else ++ OSX_IGE_TRUE='#' ++ OSX_IGE_FALSE= ++fi ++ ++ if test "x$OSX_GTK" != "xno"; then ++ OSX_GTK_TRUE= ++ OSX_GTK_FALSE='#' ++else ++ OSX_GTK_TRUE='#' ++ OSX_GTK_FALSE= ++fi ++ + + + if test "x$GCC" = "xno"; then +@@ -14854,7 +15055,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_enable_gdb="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -14907,7 +15108,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_enable_valgrind="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -14972,7 +15173,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_enable_gcov="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -15286,7 +15487,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -15450,7 +15651,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -15493,7 +15694,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_ac_pt_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -15549,7 +15750,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -15592,7 +15793,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_ac_pt_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -15727,7 +15928,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -15769,7 +15970,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -15813,7 +16014,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -15934,7 +16135,6 @@ + Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS + and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config. + See the pkg-config man page for more details." "$LINENO" 5 +- + elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + $as_echo "no" >&6; } +@@ -15950,7 +16150,6 @@ + + To get pkg-config, see . + See \`config.log' for more details" "$LINENO" 5; } +- + else + GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS + GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS +@@ -16075,7 +16274,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -16115,7 +16314,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_GLIB_MKENUMS="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -16148,6 +16347,7 @@ + fi + + ++ warnCFLAGS= + if test "x$GCC" != xyes; then + enable_compile_warnings=no + fi +@@ -16163,26 +16363,17 @@ + warning_flags="-Wall" + ;; + yes) +- warning_flags="-Wall -Wstrict-prototypes -Waggregate-return -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format-security -Werror=format=2 -Werror=missing-include-dirs" ++ warning_flags="-Wall -Wmissing-prototypes" + ;; + maximum|error) +- warning_flags="-Wall -Wstrict-prototypes -Waggregate-return -Wdeclaration-after-statement -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format-security -Werror=format=2 -Werror=missing-include-dirs -Wnested-externs -Wno-sign-compare" +- ;; +- *) +- as_fn_error $? "Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" "$LINENO" 5 +- ;; +- esac +- +- if test "$enable_compile_warnings" = "error" ; then +- warning_flags="$warning_flags -Werror" +- fi +- +- for option in $warning_flags; do +- save_CFLAGS="$CFLAGS" +- CFLAGS="$CFLAGS $option" +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands $option" >&5 ++ warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith" ++ CFLAGS="$warning_flags $CFLAGS" ++ for option in -Wno-sign-compare; do ++ SAVE_CFLAGS="$CFLAGS" ++ CFLAGS="$CFLAGS $option" ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands $option" >&5 + $as_echo_n "checking whether gcc understands $option... " >&6; } +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + + int +@@ -16199,21 +16390,29 @@ + has_option=no + fi + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +- CFLAGS="$save_CFLAGS" +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 ++ CFLAGS="$SAVE_CFLAGS" ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 + $as_echo "$has_option" >&6; } +- if test $has_option = yes; then +- tested_warning_flags="$tested_warning_flags $option" ++ if test $has_option = yes; then ++ warning_flags="$warning_flags $option" ++ fi ++ unset has_option ++ unset SAVE_CFLAGS ++ done ++ unset option ++ if test "$enable_compile_warnings" = "error" ; then ++ warning_flags="$warning_flags -Werror" + fi +- unset has_option +- unset save_CFLAGS +- done +- unset option ++ ;; ++ *) ++ as_fn_error $? "Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" "$LINENO" 5 ++ ;; ++ esac + CFLAGS="$realsave_CFLAGS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5 + $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; } +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tested_warning_flags" >&5 +-$as_echo "$tested_warning_flags" >&6; } ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $warning_flags" >&5 ++$as_echo "$warning_flags" >&6; } + + # Check whether --enable-iso-c was given. + if test "${enable_iso_c+set}" = set; then : +@@ -16241,7 +16440,7 @@ + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $complCFLAGS" >&5 + $as_echo "$complCFLAGS" >&6; } + +- WARN_CFLAGS="$tested_warning_flags $complCFLAGS" ++ WARN_CFLAGS="$warning_flags $complCFLAGS" + + + # Use --enable-maintainer-mode to disabled deprecated symbols +@@ -16250,7 +16449,7 @@ + + DISABLE_DEPRECATED="" + if test $USE_MAINTAINER_MODE = yes; then +- DOMAINS="GCONF BONOBO BONOBO_UI GNOME LIBGLADE GNOME_VFS LIBSOUP" ++ DOMAINS="GCONF BONOBO BONOBO_UI GNOME LIBGLADE GNOME_VFS WNCK LIBSOUP" + for DOMAIN in $DOMAINS; do + DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES" + done +@@ -16423,6 +16622,14 @@ + as_fn_error $? "conditional \"OS_OSX\" was never defined. + Usually this means the macro was only invoked conditionally." "$LINENO" 5 + fi ++if test -z "${OSX_IGE_TRUE}" && test -z "${OSX_IGE_FALSE}"; then ++ as_fn_error $? "conditional \"OSX_IGE\" was never defined. ++Usually this means the macro was only invoked conditionally." "$LINENO" 5 ++fi ++if test -z "${OSX_GTK_TRUE}" && test -z "${OSX_GTK_FALSE}"; then ++ as_fn_error $? "conditional \"OSX_GTK\" was never defined. ++Usually this means the macro was only invoked conditionally." "$LINENO" 5 ++fi + if test -z "${GDB_ENABLED_TRUE}" && test -z "${GDB_ENABLED_FALSE}"; then + as_fn_error $? "conditional \"GDB_ENABLED\" was never defined. + Usually this means the macro was only invoked conditionally." "$LINENO" 5 +@@ -16769,16 +16976,16 @@ + # ... 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 -p'. ++ # 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 -p' ++ as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else +- as_ln_s='cp -p' ++ as_ln_s='cp -pR' + fi + else +- as_ln_s='cp -p' ++ as_ln_s='cp -pR' + fi + rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file + rmdir conf$$.dir 2>/dev/null +@@ -16838,28 +17045,16 @@ + as_mkdir_p=false + fi + +-if test -x / >/dev/null 2>&1; then +- as_test_x='test -x' +-else +- if ls -dL / >/dev/null 2>&1; then +- as_ls_L_option=L +- else +- as_ls_L_option= +- fi +- as_test_x=' +- eval sh -c '\'' +- if test -d "$1"; then +- test -d "$1/."; +- else +- case $1 in #( +- -*)set "./$1";; +- esac; +- case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( +- ???[sx]*):;;*)false;;esac;fi +- '\'' sh +- ' +-fi +-as_executable_p=$as_test_x ++ ++# 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_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +@@ -16881,7 +17076,7 @@ + # values after options handling. + ac_log=" + This file was extended by libpeas $as_me 1.6.2, which was +-generated by GNU Autoconf 2.68. Invocation command line was ++generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS +@@ -16948,10 +17143,10 @@ + ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" + ac_cs_version="\\ + libpeas config.status 1.6.2 +-configured by $0, generated by GNU Autoconf 2.68, ++configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" + +-Copyright (C) 2010 Free Software Foundation, Inc. ++Copyright (C) 2012 Free Software Foundation, Inc. + This config.status script is free software; the Free Software Foundation + gives unlimited permission to copy, distribute and modify it." + +@@ -17042,7 +17237,7 @@ + _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 ++ set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' +diff -urN libpeas-1.6.2/configure.ac libpeas-1.6.2-patched/configure.ac +--- libpeas-1.6.2/configure.ac 2012-11-25 10:56:29.000000000 +0100 ++++ libpeas-1.6.2-patched/configure.ac 2013-08-26 22:35:42.000000000 +0200 +@@ -142,8 +142,11 @@ + if test "$os_osx" = "yes"; then + AC_DEFINE([OS_OSX],[1],[Defined if os is Mac OSX]) + +- PKG_CHECK_MODULES(IGE_MAC, ige-mac-integration) ++ PKG_CHECK_MODULES(IGE_MAC, ige-mac-integration, AC_DEFINE([OSX_IGE], [1], [Defined if os x support is IGE]), ++ [PKG_CHECK_MODULES(GTK_MAC, gtk-mac-integration, AC_DEFINE([OSX_GTK], [1], [Defined if os x support is GTK]))]) + fi ++AM_CONDITIONAL([OSX_IGE], [test "x$OSX_IGE" != "xno"]) ++AM_CONDITIONAL([OSX_GTK], [test "x$OSX_GTK" != "xno"]) + + dnl ================================================================ + dnl Check for GDB +diff -urN libpeas-1.6.2/libpeas/Makefile.am libpeas-1.6.2-patched/libpeas/Makefile.am +--- libpeas-1.6.2/libpeas/Makefile.am 2012-07-15 21:06:08.000000000 +0200 ++++ libpeas-1.6.2-patched/libpeas/Makefile.am 2013-08-26 22:36:25.000000000 +0200 +@@ -4,19 +4,31 @@ + -I$(top_srcdir) \ + -I$(srcdir) \ + $(PEAS_CFLAGS) \ +- $(IGE_MAC_CFLAGS) \ + $(GCOV_CFLAGS) \ + $(WARN_CFLAGS) \ + $(DISABLE_DEPRECATED) \ + -DDATADIR=\""$(datadir)"\" \ + -DLIBDIR=\""$(libdir)"\" + ++ + libpeas_1_0_la_LDFLAGS = \ + $(GCOV_LDFLAGS) \ + -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ + -export-dynamic -no-undefined -export-symbols-regex "^[^_].*" + +-libpeas_1_0_la_LIBADD = $(PEAS_LIBS) $(IGE_MAC_LIBS) ++libpeas_1_0_la_LIBADD = $(PEAS_LIBS) ++ ++ ++if OSX_IGE ++INCLUDES += $(IGE_MAC_CFLAGS) ++libpeas_1_0_la_LIBADD += $(IGE_MAC_LIBS) ++endif ++ ++if OSX_GTK ++INCLUDES += $(GTK_MAC_CFLAGS) ++libpeas_1_0_la_LIBADD += $(GTK_MAC_LIBS) ++endif ++ + + INST_H_FILES = \ + peas-plugin-info.h \ +diff -urN libpeas-1.6.2/libpeas/peas-dirs.c libpeas-1.6.2-patched/libpeas/peas-dirs.c +--- libpeas-1.6.2/libpeas/peas-dirs.c 2012-07-15 21:06:08.000000000 +0200 ++++ libpeas-1.6.2-patched/libpeas/peas-dirs.c 2013-08-26 22:45:44.000000000 +0200 +@@ -24,9 +24,16 @@ + #endif + + #ifdef OS_OSX ++ ++#if OSX_IGE + #include + #endif + ++#if OSX_GTK ++#include ++#endif ++#endif ++ + #include "peas-dirs.h" + + gchar * +@@ -42,6 +49,8 @@ + data_dir = g_build_filename (win32_dir, "share", "libpeas-1.0", NULL); + g_free (win32_dir); + #elif defined (OS_OSX) ++ ++#if OSX_IGE + IgeMacBundle *bundle = ige_mac_bundle_get_default (); + + if (ige_mac_bundle_get_is_app_bundle (bundle)) +@@ -55,6 +64,19 @@ + data_dir = g_build_filename (DATADIR, "libpeas-1.0", NULL); + } + #else ++ gchar *bundle_dir_path = gtkosx_application_get_bundle_path(); ++ ++ if (bundle_dir_path) ++ { ++ data_dir = g_build_filename (bundle_dir_path, "libpeas-1.0", NULL); ++ } ++ else ++ { ++ data_dir = g_build_filename (DATADIR, "libpeas-1.0", NULL); ++ } ++#endif ++ ++#else + data_dir = g_build_filename (DATADIR, "libpeas-1.0", NULL); + #endif + +@@ -74,6 +96,8 @@ + lib_dir = g_build_filename (win32_dir, "lib", "libpeas-1.0", NULL); + g_free (win32_dir); + #elif defined (OS_OSX) ++ ++#if OSX_IGE + IgeMacBundle *bundle = ige_mac_bundle_get_default (); + + if (ige_mac_bundle_get_is_app_bundle (bundle)) +@@ -86,6 +110,19 @@ + { + lib_dir = g_build_filename (LIBDIR, "libpeas-1.0", NULL); + } ++#else // GTK ++ gchar *resource_dir_path = gtkosx_application_get_resource_path(); ++ ++ if (resource_dir_path) ++ { ++ lib_dir = g_build_filename (resource_dir_path, "lib", "libpeas-1.0", NULL); ++ } ++ else ++ { ++ lib_dir = g_build_filename (LIBDIR, "libpeas-1.0", NULL); ++ } ++#endif ++ + #else + lib_dir = g_build_filename (LIBDIR, "libpeas-1.0", NULL); + #endif +@@ -126,6 +163,8 @@ + + g_free (win32_dir); + #elif defined (OS_OSX) ++ ++#if OSX_IGE + IgeMacBundle *bundle = ige_mac_bundle_get_default (); + + if (ige_mac_bundle_get_is_app_bundle (bundle)) +@@ -136,6 +175,21 @@ + { + locale_dir = g_build_filename (DATADIR, "locale", NULL); + } ++#endif ++ ++#if OSX_GTK ++ gchar *path = gtkosx_application_get_resource_path(); ++ ++ if (path) ++ { ++ locale_dir = g_strdup (path); ++ } ++ else ++ { ++ locale_dir = g_build_filename (DATADIR, "locale", NULL); ++ } ++#endif ++ + #else + locale_dir = g_build_filename (DATADIR, "locale", NULL); + #endif +diff -urN libpeas-1.6.2/libpeas-gtk/peas-gtk-plugin-manager.c libpeas-1.6.2-patched/libpeas-gtk/peas-gtk-plugin-manager.c +--- libpeas-1.6.2/libpeas-gtk/peas-gtk-plugin-manager.c 2012-07-15 21:06:08.000000000 +0200 ++++ libpeas-1.6.2-patched/libpeas-gtk/peas-gtk-plugin-manager.c 2013-08-26 22:49:42.000000000 +0200 +@@ -149,7 +149,7 @@ + PeasPluginInfo *info) + { + const gchar *help_uri; +-#ifndef OS_OSX ++#if !defined(OS_OSX) || !defined(OSX_IGE) + GError *error = NULL; + GtkWindow *toplevel; + GtkWidget *error_dlg; +@@ -160,7 +160,7 @@ + + help_uri = peas_plugin_info_get_help_uri (info); + +-#ifdef OS_OSX ++#if defined(OS_OSX) && defined(OSX_IGE) + [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:[NSString stringWithUTF8String:help_uri]]]; + #else + diff -Nru roger-router-1.8.14/platform/macosx/patches/libsndfile-1.0.25.patch roger-router-2.1.6/platform/macosx/patches/libsndfile-1.0.25.patch --- roger-router-1.8.14/platform/macosx/patches/libsndfile-1.0.25.patch 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/macosx/patches/libsndfile-1.0.25.patch 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,16 @@ +diff -urN libsndfile-1.0.25/doc/libsndfile.css libsndfile-1.0.25-patched/doc/libsndfile.css +diff -urN libsndfile-1.0.25/man/sndfile-deinterleave.1 libsndfile-1.0.25-patched/man/sndfile-deinterleave.1 +diff -urN libsndfile-1.0.25/man/sndfile-metadata-set.1 libsndfile-1.0.25-patched/man/sndfile-metadata-set.1 +diff -urN libsndfile-1.0.25/programs/sndfile-play.c libsndfile-1.0.25-patched/programs/sndfile-play.c +--- libsndfile-1.0.25/programs/sndfile-play.c 2011-03-28 07:15:31.000000000 +0200 ++++ libsndfile-1.0.25-patched/programs/sndfile-play.c 2013-08-26 21:44:37.000000000 +0200 +@@ -58,7 +58,7 @@ + #include + + #elif (defined (__MACH__) && defined (__APPLE__)) +- #include ++// #include + #include + + #elif defined (HAVE_SNDIO_H) +diff -urN libsndfile-1.0.25/src/version-metadata.rc libsndfile-1.0.25-patched/src/version-metadata.rc diff -Nru roger-router-1.8.14/platform/macosx/patches/portaudio.patch roger-router-2.1.6/platform/macosx/patches/portaudio.patch --- roger-router-1.8.14/platform/macosx/patches/portaudio.patch 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/macosx/patches/portaudio.patch 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,845 @@ +diff -urN portaudio/autom4te.cache/output.0 portaudio-patched/autom4te.cache/output.0 +diff -urN portaudio/autom4te.cache/requests portaudio-patched/autom4te.cache/requests +diff -urN portaudio/autom4te.cache/traces.0 portaudio-patched/autom4te.cache/traces.0 +diff -urN portaudio/configure portaudio-patched/configure +--- portaudio/configure 2011-11-11 19:27:15.000000000 +0100 ++++ portaudio-patched/configure 2013-08-26 23:06:46.000000000 +0200 +@@ -1,11 +1,9 @@ + #! /bin/sh + # Guess values for system-dependent variables and create Makefiles. +-# Generated by GNU Autoconf 2.68. ++# Generated by GNU Autoconf 2.69. + # + # +-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, +-# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software +-# Foundation, Inc. ++# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. + # + # + # This configure script is free software; the Free Software Foundation +@@ -134,6 +132,31 @@ + # CDPATH. + (unset CDPATH) >/dev/null 2>&1 && unset CDPATH + ++# 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'. ++$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 ++as_fn_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 -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh +@@ -167,7 +190,8 @@ + else + exitcode=1; echo positional parameters were not saved. + fi +-test x\$exitcode = x0 || exit 1" ++test x\$exitcode = x0 || 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'\" && +@@ -220,21 +244,25 @@ + + + if test "x$CONFIG_SHELL" != x; then : +- # 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 +- export CONFIG_SHELL +- 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+"$@"} ++ 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'. ++$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 ++exit 255 + fi + + if test x$as_have_required = xno; then : +@@ -336,6 +364,14 @@ + + + } # 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 +@@ -457,6 +493,10 @@ + chmod +x "$as_me.lineno" || + { $as_echo "$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). +@@ -491,16 +531,16 @@ + # ... 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 -p'. ++ # 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 -p' ++ as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else +- as_ln_s='cp -p' ++ as_ln_s='cp -pR' + fi + else +- as_ln_s='cp -p' ++ as_ln_s='cp -pR' + fi + rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file + rmdir conf$$.dir 2>/dev/null +@@ -512,28 +552,8 @@ + as_mkdir_p=false + fi + +-if test -x / >/dev/null 2>&1; then +- as_test_x='test -x' +-else +- if ls -dL / >/dev/null 2>&1; then +- as_ls_L_option=L +- else +- as_ls_L_option= +- fi +- as_test_x=' +- eval sh -c '\'' +- if test -d "$1"; then +- test -d "$1/."; +- else +- case $1 in #( +- -*)set "./$1";; +- esac; +- case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( +- ???[sx]*):;;*)false;;esac;fi +- '\'' sh +- ' +-fi +-as_executable_p=$as_test_x ++as_test_x='test -x' ++as_executable_p=as_fn_executable_p + + # Sed expression to map a string onto a valid CPP name. + as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +@@ -1218,8 +1238,6 @@ + if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe +- $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. +- If a cross compiler is detected then cross compile mode will be used" >&2 + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +@@ -1492,9 +1510,9 @@ + if $ac_init_version; then + cat <<\_ACEOF + configure +-generated by GNU Autoconf 2.68 ++generated by GNU Autoconf 2.69 + +-Copyright (C) 2010 Free Software Foundation, Inc. ++Copyright (C) 2012 Free Software Foundation, Inc. + This configure script is free software; the Free Software Foundation + gives unlimited permission to copy, distribute and modify it. + _ACEOF +@@ -1608,7 +1626,7 @@ + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || +- $as_test_x conftest$ac_exeext ++ test -x conftest$ac_exeext + }; then : + ac_retval=0 + else +@@ -1868,7 +1886,7 @@ + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || +- $as_test_x conftest$ac_exeext ++ test -x conftest$ac_exeext + }; then : + ac_retval=0 + else +@@ -1991,7 +2009,8 @@ + main () + { + static int test_array [1 - 2 * !(($2) >= 0)]; +-test_array [0] = 0 ++test_array [0] = 0; ++return test_array [0]; + + ; + return 0; +@@ -2007,7 +2026,8 @@ + main () + { + static int test_array [1 - 2 * !(($2) <= $ac_mid)]; +-test_array [0] = 0 ++test_array [0] = 0; ++return test_array [0]; + + ; + return 0; +@@ -2033,7 +2053,8 @@ + main () + { + static int test_array [1 - 2 * !(($2) < 0)]; +-test_array [0] = 0 ++test_array [0] = 0; ++return test_array [0]; + + ; + return 0; +@@ -2049,7 +2070,8 @@ + main () + { + static int test_array [1 - 2 * !(($2) >= $ac_mid)]; +-test_array [0] = 0 ++test_array [0] = 0; ++return test_array [0]; + + ; + return 0; +@@ -2083,7 +2105,8 @@ + main () + { + static int test_array [1 - 2 * !(($2) <= $ac_mid)]; +-test_array [0] = 0 ++test_array [0] = 0; ++return test_array [0]; + + ; + return 0; +@@ -2156,7 +2179,7 @@ + running configure, to aid debugging if configure makes a mistake. + + It was created by $as_me, which was +-generated by GNU Autoconf 2.68. Invocation command line was ++generated by GNU Autoconf 2.69. Invocation command line was + + $ $0 $@ + +@@ -2785,7 +2808,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -2825,7 +2848,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -2878,7 +2901,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -2919,7 +2942,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ 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 +@@ -2977,7 +3000,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -3021,7 +3044,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -3467,8 +3490,7 @@ + /* end confdefs.h. */ + #include + #include +-#include +-#include ++struct stat; + /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ + struct buf { int x; }; + FILE * (*rcsopen) (struct buf *, struct stat *, int); +@@ -3582,7 +3604,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -3626,7 +3648,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -3833,7 +3855,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AS="${ac_tool_prefix}as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -3873,7 +3895,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AS="as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -3925,7 +3947,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -3965,7 +3987,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -4017,7 +4039,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -4057,7 +4079,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -4231,7 +4253,7 @@ + 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" +- { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue ++ 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 +@@ -4307,7 +4329,7 @@ + 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" +- { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue ++ 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 +@@ -4373,7 +4395,7 @@ + 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" +- { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue ++ 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 +@@ -4440,7 +4462,7 @@ + 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" +- { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue ++ 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 +@@ -4696,7 +4718,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -4740,7 +4762,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -5159,7 +5181,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -5199,7 +5221,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -5502,7 +5524,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -5542,7 +5564,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -5643,7 +5665,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -5687,7 +5709,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AR="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -5812,7 +5834,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -5852,7 +5874,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -5911,7 +5933,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -5951,7 +5973,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -6055,7 +6077,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -6628,7 +6650,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -6668,7 +6690,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -6748,7 +6770,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -6788,7 +6810,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -6840,7 +6862,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -6880,7 +6902,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_NMEDIT="nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -6932,7 +6954,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_LIPO="${ac_tool_prefix}lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -6972,7 +6994,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_LIPO="lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -7024,7 +7046,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OTOOL="${ac_tool_prefix}otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -7064,7 +7086,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OTOOL="otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -7116,7 +7138,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -7156,7 +7178,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OTOOL64="otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -14873,7 +14895,7 @@ + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then ++ 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. +@@ -14958,7 +14980,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -15391,7 +15413,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -15434,7 +15456,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 +@@ -15765,7 +15787,7 @@ + $as_echo "#define PA_USE_COREAUDIO 1" >>confdefs.h + + +- CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix -Werror" ++ CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix" + LIBS="-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon" + + if test "x$enable_mac_universal" = "xyes" ; then +@@ -16594,16 +16616,16 @@ + # ... 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 -p'. ++ # 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 -p' ++ as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else +- as_ln_s='cp -p' ++ as_ln_s='cp -pR' + fi + else +- as_ln_s='cp -p' ++ as_ln_s='cp -pR' + fi + rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file + rmdir conf$$.dir 2>/dev/null +@@ -16663,28 +16685,16 @@ + as_mkdir_p=false + fi + +-if test -x / >/dev/null 2>&1; then +- as_test_x='test -x' +-else +- if ls -dL / >/dev/null 2>&1; then +- as_ls_L_option=L +- else +- as_ls_L_option= +- fi +- as_test_x=' +- eval sh -c '\'' +- if test -d "$1"; then +- test -d "$1/."; +- else +- case $1 in #( +- -*)set "./$1";; +- esac; +- case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( +- ???[sx]*):;;*)false;;esac;fi +- '\'' sh +- ' +-fi +-as_executable_p=$as_test_x ++ ++# 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_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +@@ -16706,7 +16716,7 @@ + # values after options handling. + ac_log=" + This file was extended by $as_me, which was +-generated by GNU Autoconf 2.68. Invocation command line was ++generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS +@@ -16763,10 +16773,10 @@ + ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" + ac_cs_version="\\ + config.status +-configured by $0, generated by GNU Autoconf 2.68, ++configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" + +-Copyright (C) 2010 Free Software Foundation, Inc. ++Copyright (C) 2012 Free Software Foundation, Inc. + This config.status script is free software; the Free Software Foundation + gives unlimited permission to copy, distribute and modify it." + +@@ -16845,7 +16855,7 @@ + _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 ++ set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' +diff -urN portaudio/configure.in portaudio-patched/configure.in +--- portaudio/configure.in 2011-11-11 05:06:17.000000000 +0100 ++++ portaudio-patched/configure.in 2013-08-26 23:06:25.000000000 +0200 +@@ -204,7 +204,7 @@ + + AC_DEFINE(PA_USE_COREAUDIO,1) + +- CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix -Werror" ++ CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix" + LIBS="-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon" + + if test "x$enable_mac_universal" = "xyes" ; then +diff -urN portaudio/include/pa_mac_core.h portaudio-patched/include/pa_mac_core.h +--- portaudio/include/pa_mac_core.h 2011-07-09 17:01:52.000000000 +0200 ++++ portaudio-patched/include/pa_mac_core.h 2013-08-26 23:07:53.000000000 +0200 +@@ -97,7 +97,7 @@ + * + * @return A valid AudioDeviceID, or NULL if an error occurred. + */ +-AudioDeviceID PaMacCore_GetStreamInputDevice( PaStream* s ); ++//AudioDeviceID PaMacCore_GetStreamInputDevice( PaStream* s ); + + /** + * Retrieve the AudioDeviceID of the output device assigned to an open stream +@@ -106,7 +106,7 @@ + * + * @return A valid AudioDeviceID, or NULL if an error occurred. + */ +-AudioDeviceID PaMacCore_GetStreamOutputDevice( PaStream* s ); ++//AudioDeviceID PaMacCore_GetStreamOutputDevice( PaStream* s ); + + /** + * Returns a statically allocated string with the device's name diff -Nru roger-router-1.8.14/platform/macosx/README roger-router-2.1.6/platform/macosx/README --- roger-router-1.8.14/platform/macosx/README 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/macosx/README 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,78 @@ +These are the steps necessary to compile Roger Router from source on OS X: + +Latest version tested: 10.13.2 + +* Building GTK+ 3 for OS X + + $ curl -O https://git.gnome.org/browse/gtk-osx/plain/gtk-osx-build-setup.sh + $ sh gtk-osx-build-setup.sh + +- We need jhbuild from master instead of gtk-osx preferred stable because of meson support + + $ cd Source/jhbuild/ + $ git stash + $ git checkout master + $ make + $ make install + $ cd $HOME + +- Please note that we have to add the following in our ~/.jhbuildrc-custom: + + moduleset=os.environ['HOME'] + '/PATH_TO_ROGER_MODULES/roger.modules' + +- Setup PATH so we can easily execute jhbuild + $ export PATH=$PATH:/Users/$USER/.local/bin + + $ jhbuild bootstrap + +# Note: Bison +# 1. errors (illegal instruction 4): OS X introduced new security mechanisms. Adjustment of gnulib necessary. Vasnprintf needs to be exchanged + +# Note: m4-common +# 1. Failure due to diff in Makefile.am (remove line and continue) + + $ jhbuild build meta-gtk-osx-bootstrap + $ jhbuild build meta-gtk-osx-gtk3 + +# Note: ragen +# 1. Needed distclean + +* Building Roger Router + + $ jhbuild build roger + +# Note: gnutls +# 1. Downloading through ftp took too long, downloaded manually and added it to gtk/Sources/pkgs + +# Note: poppler +# 1. Moduleset request a gz instead of xz. Manually fixing solves issue +# 2. destclean required + +# Note: python3 +# 1. Crash during execution. Solution remove line from configuration for Darwin: +# LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" + +# Note: meson +# Download it from official site, and install it within jhbuild shell + +Optional: Add more eye-candy: + Copy settings.ini to gtk/inst/etc/gtk-3.0 + Copy directory win32/themes/Adwaita to gtk/inst/share/themes/ + +* Test Roger Router + + $ jhbuild shell + $ roger + +If you are done testing your build exit the jhbuild shell. + +* Build package for distribution + + - Install gtk-mac-bundler + +Then run + $ jhbuild shell + $ cd gtk/source/roger/macosx/ + $ sh package + +in the macosx folder within the Roger Router sources. \ No newline at end of file diff -Nru roger-router-1.8.14/platform/macosx/roger.bundle roger-router-2.1.6/platform/macosx/roger.bundle --- roger-router-1.8.14/platform/macosx/roger.bundle 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/macosx/roger.bundle 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,254 @@ + + + + ${env:PREFIX} + + gtk+-3.0 + ${project}/ + ${project}/roger-launcher.sh + + + ${project}/roger.plist + + ${prefix}/bin/roger + + + + ${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/immodules/*.so + + + + + ${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/printbackends/*.so + + + + + ${prefix}/lib/gdk-pixbuf-2.0/${pkg:gdk-pixbuf-2.0:gdk_pixbuf_binary_version}/loaders/*.so + + + + + + + + ${prefix}/lib/rm/* + + + + + ${prefix}/lib/roger/* + + + + + ${prefix}/lib/libspandsp*.dylib + + + + + ${prefix}/lib/libgssdp*.dylib + + + + + + + + + ${prefix}/share/roger/roger-fax.ppd + + + + + + ${prefix}/lib/libspeex* + + + + ${prefix}/lib/libjson-glib* + + + + ${prefix}/lib/libsndfile* + + + + ${prefix}/lib/libgupnp* + + + + ${prefix}/lib/libgtkmacintegration-gtk3* + + + + ${prefix}/lib/libcapi* + + + + ${prefix}/lib/liborc* + + + + ${prefix}/lib/libjpeg* + --> + + + + + ${prefix}/share/locale + + + + ${prefix}/share/locale + + + + + + + ${prefix}/share/themes/Adwaita + + + + + ${prefix}/share/icons + + + + + ${prefix}/share/glib-2.0/schemas/* + + + + + ${project}/roger.icns + --> + Binary files /tmp/tmpr2Ljb8/8cpAYtGLyW/roger-router-1.8.14/platform/macosx/roger.icns and /tmp/tmpr2Ljb8/fMQMI8vGTv/roger-router-2.1.6/platform/macosx/roger.icns differ diff -Nru roger-router-1.8.14/platform/macosx/roger.modules roger-router-2.1.6/platform/macosx/roger.modules --- roger-router-1.8.14/platform/macosx/roger.modules 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/macosx/roger.modules 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -Nru roger-router-1.8.14/platform/macosx/roger.plist.in roger-router-2.1.6/platform/macosx/roger.plist.in --- roger-router-1.8.14/platform/macosx/roger.plist.in 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/macosx/roger.plist.in 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,34 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleLocalizations + nl de + CFBundleExecutable + RogerRouter + CFBundleGetInfoString + @PACKAGE_VERSION@ (C) 2008-2016 Jan-Michael Brummer + CFBundleIconFile + roger + CFBundleIdentifier + org.tabos.roger.pkg + CFBundleInfoDictionaryVersion + 1.0 + CFBundlePackageType + APPL + CFBundleShortVersionString + @PACKAGE_VERSION@ + CFBundleSignature + frtz + CFBundleVersion + @PACKAGE_VERSION@ + NSHumanReadableCopyright + Copyright 2008 - 2016 Jan-Michael Brummer, GNU General Public License V2. + LSMinimumSystemVersion + 10.5 + NSHighResolutionCapable + + + diff -Nru roger-router-1.8.14/platform/macosx/scripts/postinstall roger-router-2.1.6/platform/macosx/scripts/postinstall --- roger-router-1.8.14/platform/macosx/scripts/postinstall 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/macosx/scripts/postinstall 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,19 @@ +#!/bin/bash + +# redirect all output to stdout and stderr to /tmp/roger.log +exec >/tmp/roger.log 2>&1 + +install_path=$2/RogerRouter.app + +echo roger postinstall script, trying to install printer +echo install_path = ${install_path} + +echo "Executing: lpadmin -p Roger-Router-Fax -P ${install_path}/Contents/Resources/share/roger/roger-fax.ppd -v socket://localhost:9100/ -E" +lpadmin -p Roger-Router-Fax -P "${install_path}/Contents/Resources/share/roger/roger-fax.ppd" -v socket://localhost:9100/ -E +retval=$? +if test $retval != 0; then + echo lpadmin command failed, returned $retval +else + echo Printer Roger-Router-Fax is added +fi +exit $retval diff -Nru roger-router-1.8.14/platform/macosx/settings.ini roger-router-2.1.6/platform/macosx/settings.ini --- roger-router-1.8.14/platform/macosx/settings.ini 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/macosx/settings.ini 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,5 @@ +[Settings] +gtk-theme-name = Adwaita +gtk-icon-theme-name = Gnome +gtk-button-images = 0 +gtk-menu-images = 0 diff -Nru roger-router-1.8.14/platform/meson.build roger-router-2.1.6/platform/meson.build --- roger-router-1.8.14/platform/meson.build 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/meson.build 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,7 @@ +if host_machine.system() == 'windows' + subdir('windows') +endif + +if host_machine.system().contains('darwin') + subdir('macosx') +endif \ No newline at end of file diff -Nru roger-router-1.8.14/platform/windows/compile-dependency.sh roger-router-2.1.6/platform/windows/compile-dependency.sh --- roger-router-1.8.14/platform/windows/compile-dependency.sh 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/windows/compile-dependency.sh 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,9 @@ +MXEDIR=$(pwd)/mxe + +if [ ! -d "$MXEDIR" ]; then + git clone https://github.com/mxe/mxe.git + cp mxe-pkgs/* $MXEDIR/src +fi + +cd $MXEDIR +make capi gtk3 speex libsndfile speexdsp spandsp gst-plugins-good gst-plugins-bad librsvg libsoup json-glib gssdp gupnp ghostscript adwaita-icon-theme poppler MXE_TARGETS=i686-w64-mingw32.shared.posix diff -Nru roger-router-1.8.14/platform/windows/compile-roger.sh roger-router-2.1.6/platform/windows/compile-roger.sh --- roger-router-1.8.14/platform/windows/compile-roger.sh 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/windows/compile-roger.sh 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,7 @@ +MXE=$(pwd)/mxe +export PATH=$MXE/usr/bin:$PATH +meson ../.. build --cross-file=mingw-cross.txt --prefix=$MXE/usr/i686-w64-mingw32.shared.posix --libdir=lib +cd build +ninja +ninja install +cd .. \ No newline at end of file diff -Nru roger-router-1.8.14/platform/windows/create-setup.sh roger-router-2.1.6/platform/windows/create-setup.sh --- roger-router-1.8.14/platform/windows/create-setup.sh 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/windows/create-setup.sh 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,7 @@ +MXE=$(pwd)/mxe +MXE_SYSROOT=$MXE/usr/i686-w64-mingw32.shared.posix + +echo Creating setup with files from $MXE_SYSROOT . + +cd ../../ +makensis -dMXE_SYSROOT=$MXE_SYSROOT -DPREFIX=$MXE_SYSROOT platform/windows/build/platform/windows/roger.nsi diff -Nru roger-router-1.8.14/platform/windows/gen-ico.py roger-router-2.1.6/platform/windows/gen-ico.py --- roger-router-1.8.14/platform/windows/gen-ico.py 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/windows/gen-ico.py 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,6 @@ +#!/usr/bin/env python3 + +import sys + +with open(sys.argv[1], 'rb') as infile, open(sys.argv[2], 'wb') as outfile: + outfile.write(infile.read()) diff -Nru roger-router-1.8.14/platform/windows/meson.build roger-router-2.1.6/platform/windows/meson.build --- roger-router-1.8.14/platform/windows/meson.build 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/windows/meson.build 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,34 @@ +windows = import('windows') + +# Setup nsis installation file +cdata = configuration_data() +cdata.set('PACKAGE_NAME', 'Roger Router') +cdata.set('PACKAGE_VERSION', '@0@'.format(app_version)) +cdata.set('PACKAGE_BUGREPORT', '"https://www.tabos.org/forum"') +cdata.set('ROGER_VERSION_MAJOR', app_version_major) +cdata.set('ROGER_VERSION_MINOR', app_version_minor) +cdata.set('ROGER_VERSION_MICRO', app_version_micro) + +configure_file(input : 'roger.nsi.in', + output : 'roger.nsi', + configuration : cdata) + +ico_writer = find_program('gen-ico.py') + +ico = custom_target('makeico', + input : 'roger.ico.in', + output : 'roger.ico', + command : [ico_writer, '@INPUT@', '@OUTPUT@'], + install : false) + +roger_win_rc = configure_file( + input: 'roger_winres.rc.in', + output: 'roger_winres.rc', + configuration : cdata, +) + +roger_win_res = windows.compile_resources( + roger_win_rc, + depends: ico, + include_directories: include_directories('.') +) diff -Nru roger-router-1.8.14/platform/windows/mingw-cross.txt roger-router-2.1.6/platform/windows/mingw-cross.txt --- roger-router-1.8.14/platform/windows/mingw-cross.txt 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/windows/mingw-cross.txt 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,18 @@ +[binaries] +name = 'mingw' +c = 'i686-w64-mingw32.shared.posix-gcc' +cpp = 'i686-w64-mingw32.shared.posix-g++' +ar = 'i686-w64-mingw32.shared.posix-ar' +strip = 'i686-w64-mingw32.shared.posix-strip' +pkgconfig = 'i686-w64-mingw32.shared.posix-pkg-config' +windres = 'i686-w64-mingw32.shared.posix-windres' +exe_wrapper = 'wine' # A command used to run generated executables. + +[host_machine] +system = 'windows' +cpu_family = 'x86' +cpu = 'i686' +endian = 'little' + +[properties] +c_link_args = ['-mwindows'] diff -Nru roger-router-1.8.14/platform/windows/mxe-pkgs/adwaita-icon-theme.mk roger-router-2.1.6/platform/windows/mxe-pkgs/adwaita-icon-theme.mk --- roger-router-1.8.14/platform/windows/mxe-pkgs/adwaita-icon-theme.mk 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/windows/mxe-pkgs/adwaita-icon-theme.mk 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,25 @@ +PKG := adwaita-icon-theme +$(PKG)_WEBSITE := https://www.gnome.org +$(PKG)_DESCR := Adwaita Icon Theme +$(PKG)_IGNORE := +$(PKG)_VERSION := 3.32.0 +$(PKG)_CHECKSUM := 698db6e407bb987baec736c6a30216dfc0317e3ca2403c7adf3a5aa46c193286 +$(PKG)_SUBDIR := adwaita-icon-theme-$($(PKG)_VERSION) +$(PKG)_FILE := adwaita-icon-theme-$($(PKG)_VERSION).tar.xz +$(PKG)_URL := https://download.gnome.org/sources/$(PKG)/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE) +$(PKG)_DEPS := gcc librsvg + +define $(PKG)_UPDATE + $(WGET) -q -O- 'https://git.gnome.org/browse/adwaita-icon-theme/refs/tags' | \ + grep ']*>\([0-9]*\.[0-9]*[02468]\.[^<]*\)<.*,\1,p' | \ + sort -Vr | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + $(subst docdir$(comma),,$(MXE_CONFIGURE_OPTS)) + $(MAKE) -C '$(1)' + $(MAKE) -C '$(1)' install +endef diff -Nru roger-router-1.8.14/platform/windows/mxe-pkgs/capi.mk roger-router-2.1.6/platform/windows/mxe-pkgs/capi.mk --- roger-router-1.8.14/platform/windows/mxe-pkgs/capi.mk 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/windows/mxe-pkgs/capi.mk 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,22 @@ +PKG := capi +$(PKG)_WEBSITE := https://www.tabos.org +$(PKG)_DESCR := Common ISDN Application Programming Interface +$(PKG)_IGNORE := +$(PKG)_VERSION := v3 +$(PKG)_CHECKSUM := d6612fc5472cd40f56de4463975eae602dcab38dc285c0c7d4059a5a35a39724 +$(PKG)_SUBDIR := capi20-v3 +$(PKG)_FILE := capi20-$($(PKG)_VERSION).tar.xz +$(PKG)_URL := https://www.tabos.org/wp-content/uploads/2017/03/$($(PKG)_FILE) +$(PKG)_DEPS := gcc dlfcn-win32 + +define $(PKG)_UPDATE + echo 'TODO: write update script for $(PKG).' >&2; + echo $($(PKG)_VERSION) +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + $(subst docdir$(comma),,$(MXE_CONFIGURE_OPTS)) + $(MAKE) -C '$(1)' + $(MAKE) -C '$(1)' install +endef diff -Nru roger-router-1.8.14/platform/windows/mxe-pkgs/glib-networking.mk roger-router-2.1.6/platform/windows/mxe-pkgs/glib-networking.mk --- roger-router-1.8.14/platform/windows/mxe-pkgs/glib-networking.mk 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/windows/mxe-pkgs/glib-networking.mk 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,25 @@ +PKG := glib-networking +$(PKG)_WEBSITE := https://www.gnome.org +$(PKG)_DESCR := Network-related GIO modules for glib +$(PKG)_IGNORE := +$(PKG)_VERSION := 2.54.1 +$(PKG)_CHECKSUM := eaa787b653015a0de31c928e9a17eb57b4ce23c8cf6f277afaec0d685335012f +$(PKG)_SUBDIR := glib-networking-$($(PKG)_VERSION) +$(PKG)_FILE := glib-networking-$($(PKG)_VERSION).tar.xz +$(PKG)_URL := https://download.gnome.org/sources/$(PKG)/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE) +$(PKG)_DEPS := gcc gnutls + +define $(PKG)_UPDATE + $(WGET) -q -O- 'https://git.gnome.org/browse/glib-networking/refs/tags' | \ + grep ']*>\([0-9]*\.[0-9]*[02468]\.[^<]*\)<.*,\1,p' | \ + sort -Vr | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + $(subst docdir$(comma),,$(MXE_CONFIGURE_OPTS)) + $(MAKE) -C '$(1)' + $(MAKE) -C '$(1)' install +endef diff -Nru roger-router-1.8.14/platform/windows/mxe-pkgs/gssdp.mk roger-router-2.1.6/platform/windows/mxe-pkgs/gssdp.mk --- roger-router-1.8.14/platform/windows/mxe-pkgs/gssdp.mk 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/windows/mxe-pkgs/gssdp.mk 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,24 @@ +PKG := gssdp +$(PKG)_WEBSITE := https://download.gnome.org/ +$(PKG)_DESCR := A GObject-based API for handling resource discovery and announcement over SSDP +$(PKG)_IGNORE := +$(PKG)_VERSION := 1.0.2 +$(PKG)_CHECKSUM := a1e17c09c7e1a185b0bd84fd6ff3794045a3cd729b707c23e422ff66471535dc +$(PKG)_SUBDIR := gssdp-$($(PKG)_VERSION) +$(PKG)_FILE := gssdp-$($(PKG)_VERSION).tar.xz +$(PKG)_URL := https://download.gnome.org/sources/gssdp/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE) +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + $(WGET) -q -O- 'https://git.gnome.org/browse/gssdp/refs/tags' | \ + $(SED) -n "s,.*gssdp-\([0-9]\+\.[0-9]*[02468]\.[^']*\)\.tar.*,\1,p" | \ + $(SORT) -Vr | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + $(subst docdir$(comma),,$(MXE_CONFIGURE_OPTS)) + $(MAKE) -C '$(1)' + $(MAKE) -C '$(1)' install +endef diff -Nru roger-router-1.8.14/platform/windows/mxe-pkgs/gupnp.mk roger-router-2.1.6/platform/windows/mxe-pkgs/gupnp.mk --- roger-router-1.8.14/platform/windows/mxe-pkgs/gupnp.mk 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/windows/mxe-pkgs/gupnp.mk 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,24 @@ +PKG := gupnp +$(PKG)_WEBSITE := https://download.gnome.org/ +$(PKG)_DESCR := Core UPnP API built on top of gssdp. +$(PKG)_IGNORE := +$(PKG)_VERSION := 1.0.2 +$(PKG)_CHECKSUM := 5173fda779111c6b01cd4a5e41b594322be9d04f8c74d3361f0a0c2069c77610 +$(PKG)_SUBDIR := gupnp-$($(PKG)_VERSION) +$(PKG)_FILE := gupnp-$($(PKG)_VERSION).tar.xz +$(PKG)_URL := https://download.gnome.org/sources/gupnp/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE) +$(PKG)_DEPS := gcc gssdp + +define $(PKG)_UPDATE + $(WGET) -q -O- 'https://git.gnome.org/browse/gupnp/refs/tags' | \ + $(SED) -n "s,.*gupnp-\([0-9]\+\.[0-9]*[02468]\.[^']*\)\.tar.*,\1,p" | \ + $(SORT) -Vr | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + $(subst docdir$(comma),,$(MXE_CONFIGURE_OPTS)) + $(MAKE) -C '$(1)' + $(MAKE) -C '$(1)' install +endef diff -Nru roger-router-1.8.14/platform/windows/mxe-pkgs/libsoup.mk roger-router-2.1.6/platform/windows/mxe-pkgs/libsoup.mk --- roger-router-1.8.14/platform/windows/mxe-pkgs/libsoup.mk 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/windows/mxe-pkgs/libsoup.mk 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,30 @@ +# This file is part of MXE. See LICENSE.md for licensing information. + +PKG := libsoup +$(PKG)_WEBSITE := https://github.com/GNOME/libsoup +$(PKG)_DESCR := HTTP client/server library for GNOME +$(PKG)_IGNORE := +$(PKG)_VERSION := 2.57.1 +$(PKG)_APIVER := 2.4 +$(PKG)_CHECKSUM := 675c3bc11c2a6347625ca5215720d41c84fd8e9498dd664cda8a635fd5105a26 +$(PKG)_GH_CONF := GNOME/libsoup/tags,,,pre\|SOUP\|base +$(PKG)_DEPS := gcc glib libxml2 sqlite glib-networking + +define $(PKG)_BUILD + cd '$(SOURCE_DIR)' && \ + NOCONFIGURE=1 \ + ACLOCAL_FLAGS=-I'$(PREFIX)/$(TARGET)/share/aclocal' \ + ./autogen.sh + cd '$(BUILD_DIR)' && '$(SOURCE_DIR)'/configure \ + $(MXE_CONFIGURE_OPTS) \ + --disable-vala \ + --without-apache-httpd \ + --without-gssapi + $(MAKE) -C '$(BUILD_DIR)' -j $(JOBS) + $(MAKE) -C '$(BUILD_DIR)' -j 1 install + + $(TARGET)-gcc \ + -W -Wall -Werror -ansi \ + '$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \ + `$(TARGET)-pkg-config $(PKG)-$($(PKG)_APIVER) --cflags --libs` +endef diff -Nru roger-router-1.8.14/platform/windows/mxe-pkgs/spandsp-1-fixes.patch roger-router-2.1.6/platform/windows/mxe-pkgs/spandsp-1-fixes.patch --- roger-router-1.8.14/platform/windows/mxe-pkgs/spandsp-1-fixes.patch 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/windows/mxe-pkgs/spandsp-1-fixes.patch 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,37 @@ +diff -urN spandsp-0.0.6/configure.ac spandsp-0.0.6-new/configure.ac +--- spandsp-0.0.6/configure.ac 2014-06-04 16:27:54.000000000 +0200 ++++ spandsp-0.0.6-new/configure.ac 2019-09-02 22:57:22.346611038 +0200 +@@ -152,9 +152,9 @@ + + AC_FUNC_ERROR_AT_LINE + AC_FUNC_VPRINTF +-AC_FUNC_MALLOC ++#AC_FUNC_MALLOC + AC_FUNC_MEMCMP +-AC_FUNC_REALLOC ++#AC_FUNC_REALLOC + AC_FUNC_SELECT_ARGTYPES + + AX_C99_FUNC_LRINT +@@ -368,6 +368,7 @@ + ;; + mingw*) + COMP_VENDOR_LDFLAGS="-no-undefined -lws2_32" ++ COMP_VENDOR_CFLAGS="-DLIBSPANDSP_EXPORTS $COMP_VENDOR_CFLAGS" + ;; + *) + COMP_VENDOR_LDFLAGS= +diff -urN spandsp-0.0.6/src/t4_rx.c spandsp-0.0.6-new/src/t4_rx.c +--- spandsp-0.0.6/src/t4_rx.c 2013-01-27 10:19:12.000000000 +0100 ++++ spandsp-0.0.6-new/src/t4_rx.c 2019-09-04 22:12:42.620970198 +0200 +@@ -103,6 +103,10 @@ + #include "spandsp/private/t4_rx.h" + #include "spandsp/private/t4_tx.h" + ++#ifdef __WIN32 ++#include ++#endif ++ + /*! The number of centimetres in one inch */ + #define CM_PER_INCH 2.54f + diff -Nru roger-router-1.8.14/platform/windows/mxe-pkgs/spandsp.mk roger-router-2.1.6/platform/windows/mxe-pkgs/spandsp.mk --- roger-router-1.8.14/platform/windows/mxe-pkgs/spandsp.mk 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/windows/mxe-pkgs/spandsp.mk 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,29 @@ +# This file is part of MXE. See LICENSE.md for licensing information. + +PKG := spandsp +$(PKG)_WEBSITE := https://www.soft-switch.org +$(PKG)_IGNORE := +$(PKG)_VERSION := 0.0.6 +$(PKG)_CHECKSUM := cc053ac67e8ac4bb992f258fd94f275a7872df959f6a87763965feabfdcc9465 +$(PKG)_SUBDIR := spandsp-0.0.6 +$(PKG)_FILE := spandsp-$($(PKG)_VERSION).tar.gz +# Due to frequent downtime of soft-switch.org several project have created mirrors +# Use gstreamer mirror as it is the most stable one +$(PKG)_URL := https://gstreamer.freedesktop.org/src/mirror/$($(PKG)_FILE) +$(PKG)_DEPS := cc tiff + +define $(PKG)_UPDATE + $(WGET) -q -O- 'https://download.soft-switch.org/downloads/spandsp/' | \ + grep ' compile-dependency.sh + - Build generation (compile everything using a shell script) -> compile-roger.sh + - Setup file generation using makensis from local build (non-root interaction) -> create-setup.sh + +Following these shell scripts should result in a setup file called: Roger Router-X.YY.exe Binary files /tmp/tmpr2Ljb8/8cpAYtGLyW/roger-router-1.8.14/platform/windows/roger.ico.in and /tmp/tmpr2Ljb8/fMQMI8vGTv/roger-router-2.1.6/platform/windows/roger.ico.in differ diff -Nru roger-router-1.8.14/platform/windows/roger.nsi.in roger-router-2.1.6/platform/windows/roger.nsi.in --- roger-router-1.8.14/platform/windows/roger.nsi.in 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/windows/roger.nsi.in 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,347 @@ +; Package information (taken from configure) +!define PACKAGE_NAME "@PACKAGE_NAME@" +!define PACKAGE_VERSION "@PACKAGE_VERSION@" +!define PACKAGE_PUBLISHER "The Tabos Team" +!define PACKAGE_WEB_SITE "http://www.tabos.org" + +; Include Modern UI +!include "MUI2.nsh" + +; MUI Settings / Icons +!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\orange-install.ico" +!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\orange-uninstall.ico" + +; MUI Settings / Header +!define MUI_HEADERIMAGE +!define MUI_HEADERIMAGE_RIGHT +!define MUI_HEADERIMAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Header\orange-r.bmp" +!define MUI_HEADERIMAGE_UNBITMAP "${NSISDIR}\Contrib\Graphics\Header\orange-uninstall-r.bmp" + +; MUI Settings / Wizard +!define MUI_WELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\orange.bmp" +!define MUI_UNWELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\orange-uninstall.bmp" + +Name "${PACKAGE_NAME} ${PACKAGE_VERSION}" +OutFile "${PACKAGE_NAME}-${PACKAGE_VERSION}.exe" + +SetCompressor /SOLID lzma + +; Run the installer with admin privileges +RequestExecutionLevel admin + +!define MUI_ABORTWARNING + +!define MUI_LANGDLL_ALLLANGUAGES + +; Set default installation directory +InstallDir "$PROGRAMFILES\${PACKAGE_NAME}" + +; Pages +; Welcome page +!insertmacro MUI_PAGE_WELCOME +; Components page +!insertmacro MUI_PAGE_COMPONENTS +; Directory page +!insertmacro MUI_PAGE_DIRECTORY +; Instfiles page +!insertmacro MUI_PAGE_INSTFILES +; Finish page +!define MUI_FINISHPAGE_NOAUTOCLOSE +!define MUI_FINISHPAGE_RUN "$INSTDIR\roger.exe" +!define MUI_FINISHPAGE_RUN_NOTCHECKED +!define MUI_FINISHPAGE_LINK "Tabos.org homepage" +!define MUI_FINISHPAGE_LINK_LOCATION "http://www.tabos.org" +!insertmacro MUI_PAGE_FINISH + +!insertmacro MUI_UNPAGE_CONFIRM +!insertmacro MUI_UNPAGE_INSTFILES + +!insertmacro MUI_LANGUAGE "German" ;first language is the default language +!insertmacro MUI_LANGUAGE "English" + +!insertmacro MUI_RESERVEFILE_LANGDLL + +Function .onInit + !insertmacro MUI_LANGDLL_DISPLAY +FunctionEnd + +Function un.onInit + !insertmacro MUI_UNGETLANGUAGE +FunctionEnd + +Section RogerRouter + ; Install program + SetOutPath "$INSTDIR" + File "${PREFIX}/bin/roger.exe" + + SetOutPath "$INSTDIR\lib\roger" + File /r "${PREFIX}/lib/roger/*.dll" + File /r "${PREFIX}/lib/roger/*.plugin" + + SetOutPath "$INSTDIR\etc\gtk-3.0" + File "$%PWD%/platform/windows/settings.ini" + + ; Install librm + SetOutPath "$INSTDIR" + File "${PREFIX}/bin/librm-0.dll" + + SetOutPath "$INSTDIR\lib\rm" + File /r "${PREFIX}/lib/rm/" + + ; Install libraries + SetOutPath "$INSTDIR" + File "${MXE_SYSROOT}/bin/gspawn-win32-helper-console.exe" + File "${MXE_SYSROOT}/bin/gspawn-win32-helper.exe" + File "${MXE_SYSROOT}/bin/libatk-1.0-0.dll" + File "${MXE_SYSROOT}/bin/libcairo-2.dll" + File "${MXE_SYSROOT}/bin/libcairo-gobject-2.dll" + File "${MXE_SYSROOT}/bin/libgdk-3-0.dll" + File "${MXE_SYSROOT}/bin/libepoxy-0.dll" + File "${MXE_SYSROOT}/bin/libwebp-7.dll" + File "${MXE_SYSROOT}/bin/libgdk_pixbuf-2.0-0.dll" + File "${MXE_SYSROOT}/bin/libgio-2.0-0.dll" + File "${MXE_SYSROOT}/bin/libglib-2.0-0.dll" + File "${MXE_SYSROOT}/bin/libgmodule-2.0-0.dll" + File "${MXE_SYSROOT}/bin/libgobject-2.0-0.dll" + File "${MXE_SYSROOT}/bin/libgthread-2.0-0.dll" + File "${MXE_SYSROOT}/bin/libgtk-3-0.dll" + File "${MXE_SYSROOT}/bin/libiconv-2.dll" + File "${MXE_SYSROOT}/bin/libintl-8.dll" + File "${MXE_SYSROOT}/bin/libpango-1.0-0.dll" + File "${MXE_SYSROOT}/bin/libpangocairo-1.0-0.dll" + File "${MXE_SYSROOT}/bin/libpangowin32-1.0-0.dll" + File "${MXE_SYSROOT}/bin/libpixman-1-0.dll" + File "${MXE_SYSROOT}/bin/libpng16-16.dll" + File "${MXE_SYSROOT}/bin/libsndfile-1.dll" + File "${MXE_SYSROOT}/bin/libspeex-1.dll" + File "${MXE_SYSROOT}/bin/libxml2-2.dll" + File "${MXE_SYSROOT}/bin/gdk-pixbuf-query-loaders.exe" + File "${MXE_SYSROOT}/bin/zlib1.dll" + File "${MXE_SYSROOT}/bin/libjasper.dll" + File "${MXE_SYSROOT}/bin/libcapi20-3.dll" + File "${MXE_SYSROOT}/bin/libdl.dll" + File "${MXE_SYSROOT}/bin/libspandsp-2.dll" + File "${MXE_SYSROOT}/bin/libspeexdsp-1.dll" + File "${MXE_SYSROOT}/bin/libtiff-5.dll" + File "${MXE_SYSROOT}/bin/libjpeg-9.dll" + File "${MXE_SYSROOT}/bin/libffi-6.dll" + File "${MXE_SYSROOT}/bin/libpangoft2-1.0-0.dll" + File "${MXE_SYSROOT}/bin/libfontconfig-1.dll" + File "${MXE_SYSROOT}/bin/libfreetype-6.dll" + File "${MXE_SYSROOT}/bin/libexpat-1.dll" + File "${MXE_SYSROOT}/bin/libgcc_s_sjlj-1.dll" + File "${MXE_SYSROOT}/bin/libbz2.dll" + File "${MXE_SYSROOT}/bin/libharfbuzz-0.dll" + File "${MXE_SYSROOT}/bin/libsoup-2.4-1.dll" + File "${MXE_SYSROOT}/bin/libsqlite3-0.dll" + File "${MXE_SYSROOT}/bin/libcroco-0.6-3.dll" + File "${MXE_SYSROOT}/bin/librsvg-2-2.dll" + File "${MXE_SYSROOT}/bin/libwinpthread-1.dll" + File "${MXE_SYSROOT}/bin/libpcre-1.dll" + File "${MXE_SYSROOT}/bin/liblzma-5.dll" + File "${MXE_SYSROOT}/bin/libopenjp2.dll" + File "${MXE_SYSROOT}/bin/libpaper-1.dll" + File "${MXE_SYSROOT}/bin/libgs-9.dll" + File "${MXE_SYSROOT}/bin/libFLAC-8.dll" + File "${MXE_SYSROOT}/bin/libidn-12.dll" + File "${MXE_SYSROOT}/bin/liblcms2-2.dll" + + # Poppler (PDF) + File "${MXE_SYSROOT}/bin/libpoppler-glib-8.dll" + File "${MXE_SYSROOT}/bin/libstdc++-6.dll" + File "${MXE_SYSROOT}/bin/libcurl-4.dll" + File "${MXE_SYSROOT}/bin/librtmp-1.dll" + File "${MXE_SYSROOT}/bin/libssh2-1.dll" + File "${MXE_SYSROOT}/bin/libpoppler-90.dll" + File "${MXE_SYSROOT}/bin/libgcrypt-20.dll" + File "${MXE_SYSROOT}/bin/libgpg-error-0.dll" + + # UPnP + File "${MXE_SYSROOT}/bin/libgssdp-1.0-3.dll" + File "${MXE_SYSROOT}/bin/libgupnp-1.0-4.dll" + File "${MXE_SYSROOT}/bin/libjson-glib-1.0-0.dll" + + # GStreamer + File "${MXE_SYSROOT}/bin/libgstreamer-1.0-0.dll" + File "${MXE_SYSROOT}/bin/libgstallocators-1.0-0.dll" + File "${MXE_SYSROOT}/bin/libgstaudio-1.0-0.dll" + File "${MXE_SYSROOT}/bin/libgstcontroller-1.0-0.dll" + File "${MXE_SYSROOT}/bin/libgstnet-1.0-0.dll" + File "${MXE_SYSROOT}/bin/libgstreamer-1.0-0.dll" + File "${MXE_SYSROOT}/bin/libgstrtp-1.0-0.dll" + File "${MXE_SYSROOT}/bin/libgstsdp-1.0-0.dll" + File "${MXE_SYSROOT}/bin/libgstvideo-1.0-0.dll" + File "${MXE_SYSROOT}/bin/libgstapp-1.0-0.dll" + File "${MXE_SYSROOT}/bin/libgstbase-1.0-0.dll" + File "${MXE_SYSROOT}/bin/libgstfft-1.0-0.dll" + File "${MXE_SYSROOT}/bin/libgstpbutils-1.0-0.dll" + File "${MXE_SYSROOT}/bin/libgstriff-1.0-0.dll" + File "${MXE_SYSROOT}/bin/libgstrtsp-1.0-0.dll" + File "${MXE_SYSROOT}/bin/libgsttag-1.0-0.dll" + File "${MXE_SYSROOT}/bin/libogg-0.dll" + ;File "${MXE_SYSROOT}/bin/liborc-0.4-0.dll" + File "${MXE_SYSROOT}/bin/libvorbis-0.dll" + File "${MXE_SYSROOT}/bin/libvorbisenc-2.dll" + File "${MXE_SYSROOT}/bin/libwavpack-1.dll" + + # SSL + File "${MXE_SYSROOT}/bin/libtasn1-6.dll" + File "${MXE_SYSROOT}/bin/libgnutls-30.dll" + File "${MXE_SYSROOT}/bin/libgmp-10.dll" + File "${MXE_SYSROOT}/bin/libhogweed-5.dll" + File "${MXE_SYSROOT}/bin/libidn2-0.dll" + File "${MXE_SYSROOT}/bin/libnettle-7.dll" + File "${MXE_SYSROOT}/bin/libunistring-2.dll" + + SetOutPath "$INSTDIR\lib\gstreamer-1.0" + ;File /r "${MXE_SYSROOT}/lib/gstreamer-1.0/" + File "${MXE_SYSROOT}/bin/gstreamer-1.0/libgstapp.dll" + File "${MXE_SYSROOT}/bin/gstreamer-1.0/libgstaudioconvert.dll" + File "${MXE_SYSROOT}/bin/gstreamer-1.0/libgstaudioresample.dll" + File "${MXE_SYSROOT}/bin/gstreamer-1.0/libgstautodetect.dll" + File "${MXE_SYSROOT}/bin/gstreamer-1.0/libgstcoreelements.dll" + File "${MXE_SYSROOT}/bin/gstreamer-1.0/libgstdirectsound.dll" + File "${MXE_SYSROOT}/bin/gstreamer-1.0/libgstdirectsoundsrc.dll" + File "${MXE_SYSROOT}/bin/gstreamer-1.0/libgstplayback.dll" + + SetOutPath "$INSTDIR\lib\gio" + File /r "${MXE_SYSROOT}/lib/gio/" + + ; Install data files + SetOutPath "$INSTDIR\etc" + File /r "${MXE_SYSROOT}/etc/fonts" + File /r "${MXE_SYSROOT}/etc/gtk-3.0" + CreateDirectory "$INSTDIR\etc\pango" + + ;SetOutPath "$INSTDIR\lib" + ;File /r "${MXE_SYSROOT}/lib/gdk-pixbuf-2.0" + + SetOutPath "$INSTDIR\lib\capi" + File /r "${MXE_SYSROOT}/lib/capi/*fritz*.dll" + + SetOutPath "$INSTDIR\share\" + File /r "${MXE_SYSROOT}/share/glib-2.0" + File /r "${PREFIX}/share/glib-2.0" + + ; Themes / Icons + ;SetOutPath "$INSTDIR\share\icons\Adwaita\scalable" + ;File /r "${MXE_SYSROOT}/share/icons/Adwaita/scalable/*" + + ;SetOutPath "$INSTDIR\share\icons\Adwaita" + ;File "${MXE_SYSROOT}/share/icons/Adwaita/index.theme" + + SetOutPath "$INSTDIR\share\icons\Adwaita" + File /r "${MXE_SYSROOT}/share/icons/Adwaita/*" + + SetOutPath "$INSTDIR\share\icons\hicolor" + File /r "${MXE_SYSROOT}/share/icons/hicolor/*" + File /r "${PREFIX}/share/icons/hicolor/*" + + ; Translations + SetOutPath "$INSTDIR\share\locale\de\LC_MESSAGES\" + File "${PREFIX}/share/locale/de/LC_MESSAGES/rm.mo" + File "${PREFIX}/share/locale/de/LC_MESSAGES/roger.mo" + File "${MXE_SYSROOT}/share/locale/de/LC_MESSAGES/atk10.mo" + File "${MXE_SYSROOT}/share/locale/de/LC_MESSAGES/gtk30.mo" + + ReadEnvStr $0 COMSPEC + + SetOutPath "$INSTDIR" + DetailPrint "Creating loaders.cache" + nsExec::ExecToLog '"$0" /C .\gdk-pixbuf-query-loaders.exe > lib\gdk-pixbuf-2.0\2.10.0\loaders.cache' + + WriteUninstaller "$INSTDIR\uninstall.exe" + + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\RogerRouter" "DisplayName" "Roger Router" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\RogerRouter" "DisplayVersion" "${PACKAGE_VERSION}" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\RogerRouter" "Publisher" "Tabos.org" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\RogerRouter" "HelpLink" "http://www.tabos.org" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\RogerRouter" "URLInfoAbout" "http://www.tabos.org" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\RogerRouter" "UninstallString" "$\"$INSTDIR\uninstall.exe$\"" +SectionEnd + +Section "Start Menu Shortcuts" + CreateShortCut "$SMPROGRAMS\Roger Router.lnk" "$INSTDIR\roger.exe" +SectionEnd + +Section "Desktop Icons" + CreateShortCut "$DESKTOP\Roger Router.lnk" "$INSTDIR\roger.exe" +SectionEnd + +Section "Uninstall" + DeleteRegKey HKCU "Software\GSettings\org\tabos" + Delete /rebootok "$DESKTOP\Roger Router.lnk" + Delete /rebootok "$SMPROGRAMS\RogerRouter\Roger Router.lnk" + Delete /rebootok "$SMPROGRAMS\RogerRouter\Uninstall.lnk" + RMDir "$SMPROGRAMS\RogerRouter" + RMDir /r "$INSTDIR" + + ; Removing printers + SetDetailsPrint textonly + DetailPrint "Removing Roger Router Fax printer" + SetDetailsPrint none + ExecWait 'rundll32 printui.dll,PrintUIEntry /dl /n "Roger Router (Fax)" /q' + + DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\RogerRouter" +SectionEnd + +;Add printer ports to registry +Section -RegistryFiles SEC05 + SetDetailsPrint textonly + DetailPrint "Adding printer port to registry" + SetDetailsPrint none + + ;Include the results from Reg2NSIS utility + !include $%PWD%/platform/windows/printer.nsh + sleep 1 +SectionEnd + +;Restart Print Spooler service (needed to load new ports) +Section -RestartSpooler SEC10 + ;Display text above progress bar + SetDetailsPrint textonly + DetailPrint "Restarting Print Spooler service" + SetDetailsPrint none + + ;Run command to restart services + nsExec::Exec "net stop Spooler" + sleep 2 + nsExec::Exec "net start Spooler" + sleep 2 +SectionEnd + +;Execute rundll to install printers +; NOTE: ExecWait requires quotes in single-double-double-single format (' " " ') for this to work +Section -ExecBatchFiles SEC15 + SetOutPath $INSTDIR + + ;Display text above progress bar + SetDetailsPrint textonly + DetailPrint "Removing existing Roger Router Fax printer" + SetDetailsPrint none + + ; Removing printers + ExecWait 'rundll32 printui.dll,PrintUIEntry /q /dl /n "Roger Router (Fax)"' + sleep 2 + + ;Display text above progress bar + SetDetailsPrint textonly + DetailPrint "Installing new Roger Router Fax printer" + SetDetailsPrint none + + ; Installing printers + ExecWait 'rundll32 printui.dll,PrintUIEntry /if /b "Roger Router (Fax)" /f "C:\Windows\INF\prnms005.inf" /r "RogerRouterFax" /m "Microsoft PS Class Driver" /z' + sleep 1 + + ;Display text above progress bar + SetDetailsPrint textonly + DetailPrint "Applying details to new Roger Router Fax printer" + SetDetailsPrint none + + ; Adding Printer comments + ExecWait 'rundll32 printui.dll,PrintUIEntry /q /Xs /n "Roger Router (Fax)" comment "Fax-Printer of Roger Router" location "Router"' + + SetDetailsPrint textonly + DetailPrint "Installation completed" + SetDetailsPrint none +SectionEnd diff -Nru roger-router-1.8.14/platform/windows/roger_winres.rc.in roger-router-2.1.6/platform/windows/roger_winres.rc.in --- roger-router-1.8.14/platform/windows/roger_winres.rc.in 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/windows/roger_winres.rc.in 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,32 @@ +#include + +VS_VERSION_INFO VERSIONINFO + FILEVERSION @ROGER_VERSION_MAJOR@,@ROGER_VERSION_MINOR@,@ROGER_VERSION_MICRO@,0 + PRODUCTVERSION @ROGER_VERSION_MAJOR@,@ROGER_VERSION_MINOR@,@ROGER_VERSION_MICRO@,0 + FILEFLAGSMASK 0 + FILEFLAGS 0 + FILEOS VOS__WINDOWS32 + FILETYPE VFT_APP + FILESUBTYPE VFT2_UNKNOWN + BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904B0" + BEGIN + VALUE "CompanyName", "Tabos.org" + VALUE "FileDescription", "@PACKAGE_NAME@" + VALUE "FileVersion", "@PACKAGE_VERSION@" + VALUE "InternalName", "Roger Router" + VALUE "LegalCopyright", "Copyright (C) 2012-2019 Jan-Michael Brummer (See the COPYRIGHT file in the source distribution)." + VALUE "OriginalFilename", "roger.exe" + VALUE "ProductName", "@PACKAGE_NAME@" + VALUE "ProductVersion", "@PACKAGE_VERSION@" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END + END + +roger ICON "roger.ico" diff -Nru roger-router-1.8.14/platform/windows/settings.ini roger-router-2.1.6/platform/windows/settings.ini --- roger-router-1.8.14/platform/windows/settings.ini 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/platform/windows/settings.ini 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,4 @@ +[Settings] +gtk-xft-antialias = 1 +gtk-xft-rgba = rgb +gtk-font-name = Arial 10 diff -Nru roger-router-1.8.14/plugins/evolution/ebook-sources.h roger-router-2.1.6/plugins/evolution/ebook-sources.h --- roger-router-1.8.14/plugins/evolution/ebook-sources.h 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/evolution/ebook-sources.h 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,33 @@ +/** + * Roger Router + * Copyright (c) 2012-2014 Jan-Michael Brummer + * + * This file is part of Roger Router. + * + * 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; version 2 only. + * + * 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 . + */ + +#ifndef EBOOK_SOURCES_H +#define EBOOK_SOURCES_H + +struct ebook_data { + gchar *name; + gchar *id; +}; + +const gchar *get_selected_ebook_id(void); +EBookClient *get_selected_ebook_client(void); +GList *get_ebook_list(void); +void free_ebook_list(GList *ebook_list); + +#endif diff -Nru roger-router-1.8.14/plugins/evolution/evolution.c roger-router-2.1.6/plugins/evolution/evolution.c --- roger-router-1.8.14/plugins/evolution/evolution.c 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/evolution/evolution.c 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,657 @@ +/** + * Roger Router + * Copyright (c) 2012-2014 Jan-Michael Brummer + * + * This file is part of Roger Router. + * + * 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; version 2 only. + * + * 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 . + */ + +#include + +#include + +#include +#include + +#include + +#include +#include "config.h" + +#include + +#include "ebook-sources.h" + +static GSList *contacts = NULL; +static GSettings *ebook_settings = NULL; +static EClient *e_client = NULL; + +gboolean evolution_reload(void); + +/** + * \brief Get selected evolution address book Id + * \return evolution address book + */ +const gchar *get_selected_ebook_id(void) +{ + return g_settings_get_string(ebook_settings, "book"); +} + +/** + *\brief free data allocated for an address book data item + *\param ebook data item to be destroyed + */ +static void free_ebook_data(struct ebook_data *ebook_data) +{ + g_free(ebook_data->name); + g_free(ebook_data->id); +} + +/** + * \brief free ebook list + */ +void free_ebook_list(GList *ebook_list) +{ + g_list_free_full(ebook_list, (GDestroyNotify)free_ebook_data); +} + +/** + * \brief Retrieve source registry + * \return Registry pointer + */ +static ESourceRegistry *get_source_registry(void) +{ + static ESourceRegistry *registry = NULL; + GError *error = NULL; + + if (!registry) { + registry = e_source_registry_new_sync(NULL, &error); + if (!registry) { + g_warning("Could not get source registry. Error: %s", error->message); + } + } + + return registry; +} + +/** + * \brief Get ESource for active address book + * \return Esource + */ +static ESource *get_selected_ebook_esource(void) +{ + GList *list; + ESourceRegistry *registry = get_source_registry(); + const gchar *id = get_selected_ebook_id(); + gboolean none_selected = RM_EMPTY_STRING(id); + + list = get_ebook_list(); + while (list) { + struct ebook_data *ebook_data = list->data; + + //g_debug("%s <-> %s", ebook_data->name, id); + if (none_selected || !strcmp(ebook_data->name, id)) { + if (none_selected) { + g_settings_set_string(ebook_settings, "book", ebook_data->name); + } + return e_source_registry_ref_source(registry, ebook_data->id); + } + list = list->next; + } + + return NULL; +} + +/** + * \brief Retrieve a list of all address book sources + * \return List of address book sources + */ +GList *get_ebook_list(void) +{ + GList *source, *sources; + GList *ebook_list = NULL; + struct ebook_data *ebook_data = NULL; + + sources = e_source_registry_list_sources(get_source_registry(), E_SOURCE_EXTENSION_ADDRESS_BOOK); + + for (source = sources; source != NULL; source = source->next) { + ESource *e_source = E_SOURCE(source->data); + ESource *parent_source; + + if (!e_source_get_enabled(e_source)) { + g_debug("Source %s not enabled... skip it", e_source_get_uid(e_source)); + continue; + } + + ebook_data = g_slice_new(struct ebook_data); + + parent_source = e_source_registry_ref_source(get_source_registry(), e_source_get_parent(e_source)); + + ebook_data->name = g_strdup_printf("%s (%s)", e_source_get_display_name(e_source), e_source_get_display_name(parent_source)); + ebook_data->id = e_source_dup_uid(e_source); + + ebook_list = g_list_append(ebook_list, ebook_data); + + g_object_unref(parent_source); + } + + g_list_free_full(sources, g_object_unref); + + return ebook_list; +} + +void ebook_objects_changed_cb(EBookClientView *view, const GSList *ids, gpointer user_data) +{ + g_debug("%s(): called", __FUNCTION__); + + /* Reload contacts */ + evolution_reload(); + + /* Send signal to redraw journal and update contacts view */ + rm_object_emit_contacts_changed(); +} + +void ebook_read_data(EClient *e_client) +{ + EBookClient *client; + EBookQuery *query; + gchar *sexp = NULL; + EContact *e_contact; + EContactPhoto *photo; + GdkPixbufLoader *loader; + GSList *list; + GSList *ebook_contacts; + GError *error = NULL; + + /* TODO: Free list */ + contacts = NULL; + + if (!e_client) { + g_debug("no callback!!!! (Error: %s)", error ? error->message : "?"); + return; + } + + client = E_BOOK_CLIENT(e_client); + + query = e_book_query_any_field_contains(""); + if (!query) { + g_warning("Couldn't create query."); + return; + } + sexp = e_book_query_to_string(query); + + EBookClientView *view; + + if (!e_book_client_get_view_sync(client, sexp, &view, NULL, &error)) { + g_error("get_view_sync"); + } + + g_signal_connect(view, "objects-added", G_CALLBACK(ebook_objects_changed_cb), NULL); + g_signal_connect(view, "objects-removed", G_CALLBACK(ebook_objects_changed_cb), NULL); + g_signal_connect(view, "objects-modified", G_CALLBACK(ebook_objects_changed_cb), NULL); + e_book_client_view_set_fields_of_interest(view, NULL, &error); + if (error) { + g_error("set_fields_of_interest()"); + } + + e_book_client_view_set_flags(view, 0, &error); + if (error) { + g_error("set_flags()"); + } + + e_book_client_view_start(view, &error); + + if (!e_book_client_get_contacts_sync(client, sexp, &ebook_contacts, NULL, NULL)) { + g_warning("Couldn't get query results."); + e_book_query_unref(query); + g_object_unref(client); + return; + } + g_free(sexp); + + e_book_query_unref(query); + + if (!ebook_contacts) { + g_debug("%s(): No contacts in book", __FUNCTION__); + return; + } + for (list = ebook_contacts; list != NULL; list = list->next) { + const gchar *display_name; + RmContact *contact; + RmPhoneNumber *phone_number; + const gchar *number; + const gchar *company; + EContactAddress *address; + + g_return_if_fail(E_IS_CONTACT(list->data)); + e_contact = E_CONTACT(list->data); + + display_name = e_contact_get_const(e_contact, E_CONTACT_FULL_NAME); + + if (RM_EMPTY_STRING(display_name)) { + continue; + } + + contact = g_slice_new0(RmContact); + + contact->priv = (gpointer)e_contact_get_const(e_contact, E_CONTACT_UID); + + photo = e_contact_get(e_contact, E_CONTACT_PHOTO); + if (photo) { + GdkPixbuf *buf = NULL; + + switch (photo->type) { + case E_CONTACT_PHOTO_TYPE_INLINED: + loader = gdk_pixbuf_loader_new(); + + if (gdk_pixbuf_loader_write(loader, photo->data.inlined.data, photo->data.inlined.length, NULL)) { + gdk_pixbuf_loader_close(loader, NULL); + buf = gdk_pixbuf_loader_get_pixbuf(loader); + } else { + g_debug("Could not load inlined photo!"); + } + break; + case E_CONTACT_PHOTO_TYPE_URI: { + GRegex *pro = g_regex_new("%25", G_REGEX_DOTALL | G_REGEX_OPTIMIZE, 0, NULL); + + if (!strncmp(photo->data.uri, "file://", 7)) { + gchar *uri = g_regex_replace_literal(pro, photo->data.uri + 7, -1, 0, "%", 0, NULL); + buf = gdk_pixbuf_new_from_file(uri, NULL); + } else { + g_debug("Cannot handle URI: '%s'!", photo->data.uri); + } + g_regex_unref(pro); + break; + } + default: + g_debug("Unhandled photo type: %d", photo->type); + break; + } + + contact->image = buf; + + e_contact_photo_free(photo); + } else { + contact->image = NULL; + } + + contact->name = g_strdup(display_name); + contact->numbers = NULL; + + number = e_contact_get_const(e_contact, E_CONTACT_PHONE_HOME); + if (!RM_EMPTY_STRING(number)) { + phone_number = g_slice_new(RmPhoneNumber); + phone_number->type = RM_PHONE_NUMBER_TYPE_HOME; + phone_number->number = rm_number_full(number, FALSE); + contact->numbers = g_slist_prepend(contact->numbers, phone_number); + } + + number = e_contact_get_const(e_contact, E_CONTACT_PHONE_BUSINESS); + if (!RM_EMPTY_STRING(number)) { + phone_number = g_slice_new(RmPhoneNumber); + phone_number->type = RM_PHONE_NUMBER_TYPE_WORK; + phone_number->number = rm_number_full(number, FALSE); + contact->numbers = g_slist_prepend(contact->numbers, phone_number); + } + + number = e_contact_get_const(e_contact, E_CONTACT_PHONE_MOBILE); + if (!RM_EMPTY_STRING(number)) { + phone_number = g_slice_new(RmPhoneNumber); + phone_number->type = RM_PHONE_NUMBER_TYPE_MOBILE; + phone_number->number = rm_number_full(number, FALSE); + contact->numbers = g_slist_prepend(contact->numbers, phone_number); + } + + number = e_contact_get_const(e_contact, E_CONTACT_PHONE_HOME_FAX); + if (!RM_EMPTY_STRING(number)) { + phone_number = g_slice_new(RmPhoneNumber); + phone_number->type = RM_PHONE_NUMBER_TYPE_FAX_HOME; + phone_number->number = rm_number_full(number, FALSE); + contact->numbers = g_slist_prepend(contact->numbers, phone_number); + } + + number = e_contact_get_const(e_contact, E_CONTACT_PHONE_BUSINESS_FAX); + if (!RM_EMPTY_STRING(number)) { + phone_number = g_slice_new(RmPhoneNumber); + phone_number->type = RM_PHONE_NUMBER_TYPE_FAX_WORK; + phone_number->number = rm_number_full(number, FALSE); + contact->numbers = g_slist_prepend(contact->numbers, phone_number); + } + + company = e_contact_get_const(e_contact, E_CONTACT_ORG); + if (!RM_EMPTY_STRING(company)) { + contact->company = g_strdup(company); + } + + address = e_contact_get(e_contact, E_CONTACT_ADDRESS_HOME); + if (address) { + RmContactAddress *c_address = g_slice_new(RmContactAddress); + c_address->type = 0; + c_address->street = g_strdup(address->street); + c_address->zip = g_strdup(address->code); + c_address->city = g_strdup(address->locality); + contact->addresses = g_slist_prepend(contact->addresses, c_address); + } + + address = e_contact_get(e_contact, E_CONTACT_ADDRESS_WORK); + if (address) { + RmContactAddress *c_address = g_slice_new(RmContactAddress); + c_address->type = 1; + c_address->street = g_strdup(address->street); + c_address->zip = g_strdup(address->code); + c_address->city = g_strdup(address->locality); + contact->addresses = g_slist_prepend(contact->addresses, c_address); + } + + contacts = g_slist_insert_sorted(contacts, contact, rm_contact_name_compare); + } + + g_slist_free(ebook_contacts); + + /* Send signal to redraw journal and update contacts view */ + g_debug("%s(): ********************************* loaded", __FUNCTION__); + rm_object_emit_contacts_changed(); +} + +static void ebook_read_cb(GObject *source, GAsyncResult *res, gpointer user_data) +{ + GError *error = NULL; + + e_client = e_book_client_connect_finish(res, &error); + if (!e_client) { + g_warning("Error finishing client connection. Error: %s", error ? error->message : "?"); + } else { + ebook_read_data(e_client); + } +} + +/** + * \brief Read ebook list (async) + * \return error code + */ +gboolean ebook_read_book(void) +{ + ESource *source = get_selected_ebook_esource(); + + if (!source) { + g_debug("Book could not be found...."); + return FALSE; + } + + e_book_client_connect(source, +#if EDS_CHECK_VERSION(3, 16, 0) + 5, +#endif + NULL, ebook_read_cb, NULL); + + return TRUE; +} + +/** + * \brief Read ebook list (sync) + * \return error code + */ +gboolean ebook_read_book_sync(void) +{ + EClient *client; + ESource *source = get_selected_ebook_esource(); + + if (!source) { + g_debug("Book could not be found...."); + return FALSE; + } + + client = e_book_client_connect_sync(source, +#if EDS_CHECK_VERSION(3, 16, 0) + 5, +#endif + NULL, NULL); + if (client) { + ebook_read_data(client); + } + + return TRUE; +} + +GSList *evolution_get_contacts(void) +{ + GSList *list = contacts; + + return list; +} + +gboolean evolution_reload(void) +{ + ebook_read_book_sync(); + + return TRUE; +} + +gboolean evolution_remove_contact(RmContact *contact) +{ + EBookClient *client; + gboolean ret = FALSE; + + if (!e_client) { + return FALSE; + } + + client = E_BOOK_CLIENT(e_client); + +#if EDS_CHECK_VERSION(3,33,0) + ret = e_book_client_remove_contact_by_uid_sync(client, contact->priv, E_BOOK_OPERATION_FLAG_NONE, NULL, NULL); +#else + ret = e_book_client_remove_contact_by_uid_sync(client, contact->priv, NULL, NULL); +#endif + if (ret) { + ebook_read_book_sync(); + } + + return ret; +} + +static void evolution_set_image(EContact *e_contact, RmContact *contact) +{ + if (contact->image != NULL) { + EContactPhoto photo; + GError *error = NULL; + + if (gdk_pixbuf_save_to_buffer(contact->image, (gchar**)&photo.data.inlined.data, &photo.data.inlined.length, "png", &error, NULL)) { + photo.type = E_CONTACT_PHOTO_TYPE_INLINED; + photo.data.inlined.mime_type = NULL; + e_contact_set(e_contact, E_CONTACT_PHOTO, &photo); + } else { + g_warning("%s(): gdk_pixbuf_save_to_buffer failed (%s)", __FUNCTION__, error? error->message : ""); + } + } else if (contact->image == NULL) { + e_contact_set(e_contact, E_CONTACT_PHOTO, NULL); + } +} + +gboolean evolution_save_contact(RmContact *contact) +{ + EBookClient *client; + EContact *e_contact; + gboolean ret = FALSE; + GError *error = NULL; + GSList *numbers; + GSList *addresses; + + if (!e_client) { + return FALSE; + } + + client = E_BOOK_CLIENT(e_client); + + if (!contact->priv) { + e_contact = e_contact_new(); + } else { + ret = e_book_client_get_contact_sync(client, contact->priv, &e_contact, NULL, &error); + if (!ret) { + return FALSE; + } + + /* Remove entries we can fill */ + e_contact_set(e_contact, E_CONTACT_PHONE_HOME, ""); + e_contact_set(e_contact, E_CONTACT_PHONE_BUSINESS, ""); + e_contact_set(e_contact, E_CONTACT_PHONE_MOBILE, ""); + e_contact_set(e_contact, E_CONTACT_PHONE_HOME_FAX, ""); + e_contact_set(e_contact, E_CONTACT_PHONE_BUSINESS_FAX, ""); + + e_contact_set(e_contact, E_CONTACT_ADDRESS_HOME, NULL); + e_contact_set(e_contact, E_CONTACT_ADDRESS_WORK, NULL); + } + + e_contact_set(e_contact, E_CONTACT_FULL_NAME, contact->name ? contact->name : ""); + + for (numbers = contact->numbers; numbers != NULL; numbers = numbers->next) { + RmPhoneNumber *number = numbers->data; + gint type; + + switch (number->type) { + case RM_PHONE_NUMBER_TYPE_HOME: + type = E_CONTACT_PHONE_HOME; + break; + case RM_PHONE_NUMBER_TYPE_WORK: + type = E_CONTACT_PHONE_BUSINESS; + break; + case RM_PHONE_NUMBER_TYPE_MOBILE: + type = E_CONTACT_PHONE_MOBILE; + break; + case RM_PHONE_NUMBER_TYPE_FAX_HOME: + type = E_CONTACT_PHONE_HOME_FAX; + break; + case RM_PHONE_NUMBER_TYPE_FAX_WORK: + type = E_CONTACT_PHONE_BUSINESS_FAX; + break; + default: + continue; + } + e_contact_set(e_contact, type, number->number); + } + + for (addresses = contact->addresses; addresses != NULL; addresses = addresses->next) { + RmContactAddress *address = addresses->data; + EContactAddress e_address; + EContactAddress *ep_address = &e_address; + gint type; + + memset(ep_address, 0, sizeof(EContactAddress)); + + switch (address->type) { + case 0: + type = E_CONTACT_ADDRESS_HOME; + break; + case 1: + type = E_CONTACT_ADDRESS_WORK; + break; + default: + continue; + } + ep_address->street = address->street; + ep_address->locality = address->city; + ep_address->code = address->zip; + e_contact_set(e_contact, type, ep_address); + } + + evolution_set_image(e_contact, contact); + +#if EDS_CHECK_VERSION(3,33,0) + if (!contact->priv) { + ret = e_book_client_add_contact_sync(client, e_contact, E_BOOK_OPERATION_FLAG_NONE, NULL, NULL, &error); + } else { + ret = e_book_client_modify_contact_sync(client, e_contact, E_BOOK_OPERATION_FLAG_NONE, NULL, &error); + } +#else + if (!contact->priv) { + ret = e_book_client_add_contact_sync(client, e_contact, NULL, NULL, &error); + } else { + ret = e_book_client_modify_contact_sync(client, e_contact, NULL, &error); + } +#endif + + if (!ret && error) { + g_debug("Error saving contact. '%s'", error->message); + } + + g_object_unref(client); + + if (ret) { + ebook_read_book_sync(); + } + + return ret; +} + +gchar *evolution_get_active_book_name(void) +{ + return g_strdup(get_selected_ebook_id()); +} + +gchar **evolution_get_sub_books(void) +{ + GList *source, *sources; + gchar **ret = NULL; + + sources = get_ebook_list(); + + for (source = sources; source != NULL; source = source->next) { + struct ebook_data *ebook_data = source->data; + + ret = rm_strv_add(ret, ebook_data->name); + } + + return ret; +} + +gboolean evolution_set_sub_book(gchar *name) +{ + g_settings_set_string(ebook_settings, "book", name); + + contacts = NULL; + ebook_read_book(); + + return TRUE; +} + +RmAddressBook evolution_book = { + "Evolution", + evolution_get_active_book_name, + evolution_get_contacts, + evolution_remove_contact, + evolution_save_contact, + evolution_get_sub_books, + evolution_set_sub_book +}; + +gboolean evolution_plugin_init(RmPlugin *plugin) +{ + ebook_settings = rm_settings_new_profile("org.tabos.roger.plugins.evolution", "evolution", (gchar*)rm_profile_get_name(rm_profile_get_active())); + + ebook_read_book(); + + rm_addressbook_register(&evolution_book); + + return TRUE; +} + +gboolean evolution_plugin_shutdown(RmPlugin *plugin) +{ + rm_addressbook_unregister(&evolution_book); + g_clear_object(&ebook_settings); + + return TRUE; +} + +RM_PLUGIN(evolution); diff -Nru roger-router-1.8.14/plugins/evolution/evolution.desktop.in roger-router-2.1.6/plugins/evolution/evolution.desktop.in --- roger-router-1.8.14/plugins/evolution/evolution.desktop.in 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/evolution/evolution.desktop.in 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,8 @@ +[Plugin] +Module=evolution +Name=Evolution +Comment=Evolution address book support +Authors=Jan-Michael Brummer +Copyright=Copyright © 2012 Jan-Michael Brummer +Website=http://www.tabos.org/ +Help=http://www.tabos.org/forum/ diff -Nru roger-router-1.8.14/plugins/evolution/meson.build roger-router-2.1.6/plugins/evolution/meson.build --- roger-router-1.8.14/plugins/evolution/meson.build 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/evolution/meson.build 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,31 @@ +dep = dependency('libebook-1.2', required: false) + +if dep.found() + +evolution_sources = [] +evolution_sources += 'evolution.c' + +evolution_dep = [] +evolution_dep += plugins_dep +evolution_dep += dependency('libebook-1.2') + +evolution_inc = [] +evolution_inc += include_directories('../../..') +evolution_inc += roger_inc + +libevolution = shared_module('evolution', + evolution_sources, + include_directories : evolution_inc, + dependencies : evolution_dep, + install : true, + install_dir : join_paths(get_option('prefix'), get_option('libdir'), 'roger', 'evolution')) + +custom_target('evolution.plugin', + output : 'evolution.plugin', + input : 'evolution.desktop.in', + command : [msgfmt, '--desktop', '--template', '@INPUT@', '-d', podir, '-o', '@OUTPUT@'], + install : true, + install_dir : join_paths(get_option('prefix'), get_option('libdir'), 'roger', 'evolution')) + +install_data('org.tabos.roger.plugins.evolution.gschema.xml', install_dir : join_paths(get_option('datadir'), 'glib-2.0', 'schemas')) +endif diff -Nru roger-router-1.8.14/plugins/evolution/org.tabos.roger.plugins.evolution.gschema.xml roger-router-2.1.6/plugins/evolution/org.tabos.roger.plugins.evolution.gschema.xml --- roger-router-1.8.14/plugins/evolution/org.tabos.roger.plugins.evolution.gschema.xml 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/evolution/org.tabos.roger.plugins.evolution.gschema.xml 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,7 @@ + + + + 'system-address-book' + + + diff -Nru roger-router-1.8.14/plugins/evolution/roger-plugins-evolution.metainfo.xml.in roger-router-2.1.6/plugins/evolution/roger-plugins-evolution.metainfo.xml.in --- roger-router-1.8.14/plugins/evolution/roger-plugins-evolution.metainfo.xml.in 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/evolution/roger-plugins-evolution.metainfo.xml.in 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,11 @@ + + + roger-plugins-evolution + org.tabos.roger.desktop + <_name>Evolution + <_summary>Support for Evolution address book + https://www.tabos.org + GPL-2.0 + GPL-2.0 + jan.brummer_AT_tabos.org + diff -Nru roger-router-1.8.14/plugins/google/google.c roger-router-2.1.6/plugins/google/google.c --- roger-router-1.8.14/plugins/google/google.c 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/google/google.c 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,916 @@ +/* + * Roger Router + * Copyright (c) 2012-2014 Jan-Michael Brummer + * + * This file is part of Roger Router. + * + * 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; version 2 only. + * + * 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 . + */ + +#include + +#include + +#include + +#include +#include + +#include +#include + +typedef struct { + guint signal_id; +} RmGooglePlugin; + +static GSList *contacts = NULL; +static GSettings *google_settings = NULL; +static GHashTable *table = NULL; + +static GDataContactsService *service = NULL; + +#define CLIENT_1 "943191323673-f8sm9idvulv05eib5c2aq5a181s7a10f.apps.googleusercontent.com" +#define CLIENT_2 "WDvD1ghMuNq8yph6UAedN0Oo" +#define CLIENT_3 "urn:ietf:wg:oauth:2.0:oob" + +static GDataOAuth2Authorizer *authorizer = NULL; + +struct auth_code_data { + const gchar *auth_uri; + GtkWidget *entry; +}; + +static void auth_uri_link_button_clicked_cb(GtkButton *button, gpointer data) +{ + struct auth_code_data *auth_code_data = data; + GError *error = NULL; + + if (!gtk_show_uri_on_window(NULL, auth_code_data->auth_uri, gtk_get_current_event_time (), &error)) { + g_debug("%s(): Could not open uri '%s'", __FUNCTION__, auth_code_data->auth_uri); + g_debug("%s(): '%s'", __FUNCTION__, error->message); + } else { + g_debug("%s(): Opened '%s'", __FUNCTION__, auth_code_data->auth_uri); + } + + gtk_widget_grab_focus(auth_code_data->entry); +} + +static void auth_code_entry_changed_cb(GtkEditable *entry, gpointer data) +{ + gtk_widget_set_sensitive(GTK_WIDGET(data), gtk_entry_get_text_length(GTK_ENTRY(entry)) > 0); +} + +gchar *ask_user_for_auth_code(const gchar *auth_uri) +{ + GtkWidget *dialog; + GtkWidget *grid; + GtkWidget *link_button; + GtkWidget *label; + GtkWidget *entry; + gchar *str; + gchar *retval = NULL; + gint dlg_res; + GtkWidget *btn_ok; + struct auth_code_data *auth_code_data; + + dialog = gtk_message_dialog_new_with_markup(NULL, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_INFO, GTK_BUTTONS_NONE, "%s", _("Google plugin: Authorization required")); + gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), + _("You need to authorize Roger Router to access your Google contact list." + "\n\nVisit Google's authorization page by pressing the button below. After you " + "confirmed the authorization, you will get an authorization code. Enter that code " + "in the field below to grant Roger Router access to your Google contact list.")); + + gtk_dialog_add_button(GTK_DIALOG(dialog), _("_Cancel"), GTK_RESPONSE_CANCEL); + btn_ok = gtk_dialog_add_button(GTK_DIALOG(dialog), _("_OK"), GTK_RESPONSE_OK); + gtk_window_set_resizable(GTK_WINDOW(dialog), TRUE); + gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); + + gtk_widget_set_sensitive(btn_ok, FALSE); + + grid = gtk_grid_new(); + gtk_grid_set_row_spacing(GTK_GRID(grid), 8); + gtk_grid_set_column_spacing(GTK_GRID(grid), 8); + + str = g_strconcat("", _("Step 1:"), "", NULL); + label = gtk_label_new(str); + g_free(str); + gtk_label_set_use_markup(GTK_LABEL(label), TRUE); + gtk_grid_attach(GTK_GRID(grid), label, 0, 0, 1, 1); + + link_button = gtk_button_new_with_label(_("Click here to open the Google authorization page in a browser")); + auth_code_data = g_new0(struct auth_code_data, 1); + gtk_grid_attach(GTK_GRID(grid), link_button, 1, 0, 2, 1); + + str = g_strconcat("", _("Step 2:"), "", NULL); + label = gtk_label_new(str); + g_free(str); + gtk_label_set_use_markup(GTK_LABEL(label), TRUE); + gtk_grid_attach(GTK_GRID(grid), label, 0, 1, 1, 1); + + gtk_grid_attach(GTK_GRID(grid), gtk_label_new(_("Enter code:")), 1, 1, 1, 1); + + entry = gtk_entry_new(); + g_signal_connect(G_OBJECT(entry), "changed", (GCallback)auth_code_entry_changed_cb, (gpointer)btn_ok); + gtk_widget_set_hexpand(entry, TRUE); + gtk_grid_attach(GTK_GRID(grid), entry, 2, 1, 1, 1); + + auth_code_data->auth_uri = auth_uri; + auth_code_data->entry = entry; + g_signal_connect(G_OBJECT(link_button), "clicked", (GCallback)auth_uri_link_button_clicked_cb, (gpointer)auth_code_data); + + gtk_box_pack_start(GTK_BOX(gtk_message_dialog_get_message_area(GTK_MESSAGE_DIALOG(dialog))), grid, FALSE, FALSE, 0); + + gtk_widget_show_all(dialog); + + dlg_res = gtk_dialog_run(GTK_DIALOG(dialog)); + + switch (dlg_res) { + case GTK_RESPONSE_DELETE_EVENT: + case GTK_RESPONSE_CANCEL: + break; + case GTK_RESPONSE_OK: + retval = g_strdup(gtk_entry_get_text(GTK_ENTRY(entry))); + break; + } + + g_free(auth_code_data); + gtk_widget_destroy(dialog); + + return retval; +} + +static void google_interactive_auth(void) +{ + gchar *authentication_uri, *authorization_code; + + authentication_uri = gdata_oauth2_authorizer_build_authentication_uri(authorizer, NULL, FALSE); + + /* (Present the page at the authentication URI to the user, either in an embedded or stand-alone web browser, and + * ask them to grant access to the application and return the code Google gives them.) + */ + authorization_code = ask_user_for_auth_code(authentication_uri); + + gdata_oauth2_authorizer_request_authorization(authorizer, authorization_code, NULL, NULL); + + g_free(authentication_uri); + + /* Zero out the code before freeing. */ + if (authorization_code != NULL) { + memset(authorization_code, 0, strlen(authorization_code)); + } + + g_free(authorization_code); +} + +/** + * \brief Initialize gdata and authenticate user + * \return error code, 0 on success otherwise error + */ +static int google_init(void) +{ + gchar *user; + gchar *pwd; + + if (!authorizer) { + user = g_settings_get_string(google_settings, "user"); + pwd = g_settings_get_string(google_settings, "password"); + + if (RM_EMPTY_STRING(user) || RM_EMPTY_STRING(pwd)) { + return 0; + } + + authorizer = gdata_oauth2_authorizer_new(CLIENT_1, CLIENT_2, CLIENT_3, GDATA_TYPE_CONTACTS_SERVICE); + + if (authorizer == NULL) { + g_debug("Could not create authorizer"); + return -1; + } + } + + if (!service) { + service = gdata_contacts_service_new(GDATA_AUTHORIZER(authorizer)); + if (service == NULL) { + g_debug("Could not contacts service"); + g_object_unref(authorizer); + return -2; + } + } + + if (!gdata_service_is_authorized(GDATA_SERVICE(service))) { + /* Try to use refresh token */ + gchar *token = g_settings_get_string(google_settings, "token"); + + if (!RM_EMPTY_STRING(token)) { + GError *error = NULL; + g_debug("%s(): Trying to refresh authorization", __FUNCTION__); + + gdata_oauth2_authorizer_set_refresh_token(authorizer, token); + if (!gdata_authorizer_refresh_authorization(GDATA_AUTHORIZER(authorizer), NULL, &error)) { + if (!g_error_matches(error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) { + g_debug("%s(): Authorization refresh error: %s", __FUNCTION__, error->message); + rm_object_emit_message("Google Plugin", _("Authorization refresh error")); + } + + g_error_free(error); + + google_interactive_auth(); + } else { + g_debug("%s(): Authorization refresh successful", __FUNCTION__); + } + } else { + google_interactive_auth(); + } + } + + return 0; +} + +/** + * \brief Deinitialize gdata + * \return error code + */ +static int google_shutdown(void) +{ + gchar *token = NULL; + + if (service != NULL) { + g_object_unref(service); + service = NULL; + } + + if (authorizer) { + token = gdata_oauth2_authorizer_dup_refresh_token(authorizer); + } + g_settings_set_string(google_settings, "token", token ? token : ""); + + if (authorizer != NULL) { + g_object_unref(authorizer); + authorizer = NULL; + } + + return 0; +} + +/** + * \brief Read address book + * \return error code + */ +static int google_read_book(void) +{ + GDataQuery *query; + GDataFeed *feed; + GList *list; + GError *error = NULL; + int chunk_size = 16; + int result = 0; + + if (google_init()) { + g_warning("google_init() failed!"); + return -1; + } + + query = GDATA_QUERY(gdata_contacts_query_new_with_limits(NULL, 1, chunk_size)); + if (query == NULL) { + g_warning("Contact query failed"); + google_shutdown(); + return -2; + } + + do { + feed = gdata_contacts_service_query_contacts(service, query, NULL, NULL, NULL, &error); + if (feed == NULL) { + g_warning("Query contacts failed"); + if (error != NULL) { + g_warning("Error: %s", error->message); + g_error_free(error); + } + + return -1; + } + + list = gdata_feed_get_entries(feed); + result = list ? g_list_length(list) : 0; + + for (list = gdata_feed_get_entries(feed); list != NULL; list = list->next) { + GDataContactsContact *gcontact; + GDataGDName *name = NULL; + GList *number_list = NULL; + GList *address_list = NULL; + const gchar *id; + GHashTable *table; + guint8 *photo; + gsize photo_len; + gchar *photo_type; + RmContact *contact; + + if (list->data == NULL) { + g_warning("Strange... data == NULL"); + continue; + } + + gcontact = GDATA_CONTACTS_CONTACT(list->data); + if (gcontact == NULL) { + g_warning("gcontact == NULL"); + return -2; + } + + id = gdata_entry_get_id(GDATA_ENTRY(list->data)); + if (id == NULL) { + g_warning("id == NULL"); + return -2; + } + + table = g_hash_table_new(NULL, NULL); + if (table == NULL) { + g_warning("table == NULL"); + return -2; + } + + name = gdata_contacts_contact_get_name(gcontact); + if (!name) { + g_debug("name is NULL"); + continue; + } + + contact = g_slice_new0(RmContact); + contact->priv = g_strdup(id); + + contact->name = g_strdup(gdata_gd_name_get_full_name(name)); + if (contact->name == NULL) { + g_debug("contact name is NULL"); + continue; + } + + number_list = gdata_contacts_contact_get_phone_numbers(gcontact); + while (number_list != NULL && number_list->data != NULL) { + GDataGDPhoneNumber *number = number_list->data; + const gchar *type = gdata_gd_phone_number_get_relation_type(number); + const gchar *num = gdata_gd_phone_number_get_number(number); + RmPhoneNumber *phone_number; + + if (type == NULL) { + g_warning("type == NULL"); + break; + } + if (num == NULL) { + g_warning("num == NULL"); + break; + } + + phone_number = g_slice_new(RmPhoneNumber); + if (strcmp(type, GDATA_GD_PHONE_NUMBER_WORK) == 0) { + phone_number->type = RM_PHONE_NUMBER_TYPE_WORK; + } else if (strcmp(type, GDATA_GD_PHONE_NUMBER_HOME) == 0) { + phone_number->type = RM_PHONE_NUMBER_TYPE_HOME; + } else if (strcmp(type, GDATA_GD_PHONE_NUMBER_MOBILE) == 0) { + phone_number->type = RM_PHONE_NUMBER_TYPE_MOBILE; + } else if (strcmp(type, GDATA_GD_PHONE_NUMBER_HOME_FAX) == 0) { + phone_number->type = RM_PHONE_NUMBER_TYPE_FAX_HOME; + } else if (strcmp(type, GDATA_GD_PHONE_NUMBER_WORK_FAX) == 0) { + phone_number->type = RM_PHONE_NUMBER_TYPE_FAX_WORK; + } + phone_number->number = rm_number_full(num, FALSE); + contact->numbers = g_slist_prepend(contact->numbers, phone_number); + + number_list = number_list->next; + } + + address_list = gdata_contacts_contact_get_postal_addresses(gcontact); + while (address_list != NULL && address_list->data != NULL) { + GDataGDPostalAddress *gaddress = address_list->data; + const gchar *type = gdata_gd_postal_address_get_relation_type(gaddress); + RmContactAddress *address; + + if (type == NULL) { + g_warning("type == NULL"); + break; + } + + address = g_slice_new0(RmContactAddress); + if (!strcmp(type, GDATA_GD_POSTAL_ADDRESS_WORK)) { + address->type = 1; + } else { + address->type = 0; + } + + const gchar *tmp = gdata_gd_postal_address_get_street(gaddress); + address->street = g_strdup(tmp ? tmp : ""); + tmp = gdata_gd_postal_address_get_city(gaddress); + address->city = g_strdup(tmp ? tmp : ""); + //address->country = g_strdup(gdata_gd_postal_address_get_country(gaddress)); + tmp = gdata_gd_postal_address_get_postcode(gaddress); + address->zip = g_strdup(tmp ? tmp : ""); + + contact->addresses = g_slist_prepend(contact->addresses, address); + + address_list = address_list->next; + } + + photo = gdata_contacts_contact_get_photo(gcontact, service, &photo_len, &photo_type, NULL, NULL); + if (photo != NULL) { + GdkPixbufLoader *loader; + + loader = gdk_pixbuf_loader_new(); + if (gdk_pixbuf_loader_write(loader, photo, photo_len, NULL)) { + contact->image = gdk_pixbuf_loader_get_pixbuf(loader); + } + gdk_pixbuf_loader_close(loader, NULL); + } + + contacts = g_slist_insert_sorted(contacts, contact, rm_contact_name_compare); + } + + gdata_query_next_page(GDATA_QUERY(query)); + } while (result == chunk_size); + + g_debug("done"); + return 0; +} + +#if 0 +void google_set_image(GDataContactsContact *gcontact, struct sPerson *contact) +{ + if (contact->pnNewImage != NULL) { + gchar *pnData; + gsize nLength; + + if (g_file_get_contents(contact->pnNewImage, &pnData, &nLength, NULL)) { + gdata_contacts_contact_set_photo(gcontact, service, (guint8*)pnData, nLength, "image/jpeg", NULL, NULL); + } + } else if (contact->psImage == NULL) { + gdata_contacts_contact_set_photo(gcontact, service, NULL, 0, NULL, NULL, NULL); + } +} + +/** + * \brief Save address book + * \return error code + */ +int googleSaveBook(void) +{ + GList *list; + GError *error = NULL; + RmProfile *profile = rm_profile_get_active(); + + g_debug("started"); + if (google_init()) { + g_debug("google_init() failed!"); + return -1; + } + + for (list = contactsList; list != NULL && list->data != NULL; list = list->next) { + struct sPerson *contact = list->data; + + if (contact->nFlags == PERSON_FLAG_UNCHANGED) { + continue; + } + + if (contact->nFlags & PERSON_FLAG_NEW) { + GDataGDName *name; + GDataGDPhoneNumber *psPhone; + GDataContactsContact *contact; + GDataGDPostalAddress *psAddress; + GDataGDOrganization *organization; + gchar *idUrl = NULL; + + g_debug("Adding new person"); + + /* Create new contact */ + contact = gdata_contacts_contact_new(NULL); + g_assert(GDATA_IS_CONTACTS_CONTACT(contact)); + + /* Add group id */ + idUrl = g_strdup_printf("http://www.google.com/m8/feeds/groups/%s/base/6", googleGetUser(profile)); + gdata_contacts_contact_add_group(contact, idUrl); + g_free(idUrl); + + /* Set display name */ + gdata_entry_set_title(GDATA_ENTRY(contact), contact->pnDisplayName); + + /* Set name */ + name = gdata_gd_name_new(contact->pnFirstName, contact->pnLastName); + if (contact->pnTitle != NULL && strlen(contact->pnTitle) > 0) { + gdata_gd_name_set_prefix(name, contact->pnTitle); + } + gdata_contacts_contact_set_name(contact, name); + g_object_unref(name); + + /* Set company */ + if (contact->pnCompany != NULL) { + organization = gdata_gd_organization_new(contact->pnCompany, NULL, NULL, NULL, TRUE); + + gdata_contacts_contact_add_organization(contact, organization); + + g_object_unref(organization); + } + + /* Add private phone */ + if (contact->pnPrivatePhone != NULL && strlen(contact->pnPrivatePhone) > 0) { + psPhone = gdata_gd_phone_number_new(contact->pnPrivatePhone, GDATA_GD_PHONE_NUMBER_HOME, NULL, NULL, TRUE); + gdata_contacts_contact_add_phone_number(contact, psPhone); + g_object_unref(psPhone); + } + + /* Add business phone */ + if (contact->pnBusinessPhone != NULL && strlen(contact->pnBusinessPhone) > 0) { + psPhone = gdata_gd_phone_number_new(contact->pnBusinessPhone, GDATA_GD_PHONE_NUMBER_WORK, NULL, NULL, TRUE); + gdata_contacts_contact_add_phone_number(contact, psPhone); + g_object_unref(psPhone); + } + + /* Add private mobile */ + if (contact->pnPrivateMobile != NULL && strlen(contact->pnPrivateMobile) > 0) { + psPhone = gdata_gd_phone_number_new(contact->pnPrivateMobile, GDATA_GD_PHONE_NUMBER_MOBILE, NULL, NULL, TRUE); + gdata_contacts_contact_add_phone_number(contact, psPhone); + g_object_unref(psPhone); + } + + /* Add private fax */ + if (contact->pnPrivateFax != NULL && strlen(contact->pnPrivateFax) > 0) { + psPhone = gdata_gd_phone_number_new(contact->pnPrivateFax, GDATA_GD_PHONE_NUMBER_HOME_FAX, NULL, NULL, TRUE); + gdata_contacts_contact_add_phone_number(contact, psPhone); + g_object_unref(psPhone); + } + + /* Add business fax */ + if (contact->pnBusinessFax != NULL && strlen(contact->pnBusinessFax) > 0) { + psPhone = gdata_gd_phone_number_new(contact->pnBusinessFax, GDATA_GD_PHONE_NUMBER_WORK_FAX, NULL, NULL, TRUE); + gdata_contacts_contact_add_phone_number(contact, psPhone); + g_object_unref(psPhone); + } + + /* Add business address */ + psAddress = gdata_gd_postal_address_new(GDATA_GD_POSTAL_ADDRESS_WORK, NULL, TRUE); + if (psAddress != NULL) { + if (contact->pnBusinessStreet != NULL && strlen(contact->pnBusinessStreet) > 0) { + gdata_gd_postal_address_set_street(psAddress, contact->pnBusinessStreet); + } + if (contact->pnBusinessCity != NULL && strlen(contact->pnBusinessCity) > 0) { + gdata_gd_postal_address_set_city(psAddress, contact->pnBusinessCity); + } + if (contact->pnBusinessCountry != NULL && strlen(contact->pnBusinessCountry) > 0) { + gdata_gd_postal_address_set_country(psAddress, contact->pnBusinessCountry, NULL); + } + if (contact->pnBusinessZipCode != NULL && strlen(contact->pnBusinessZipCode) > 0) { + gdata_gd_postal_address_set_postcode(psAddress, contact->pnBusinessZipCode); + } + + gdata_contacts_contact_add_postal_address(contact, psAddress); + + g_object_unref(psAddress); + } + + /* Add private address */ + psAddress = gdata_gd_postal_address_new(GDATA_GD_POSTAL_ADDRESS_HOME, NULL, TRUE); + if (psAddress != NULL) { + if (contact->pnPrivateStreet != NULL && strlen(contact->pnPrivateStreet) > 0) { + gdata_gd_postal_address_set_street(psAddress, contact->pnPrivateStreet); + } + if (contact->pnPrivateCity != NULL && strlen(contact->pnPrivateCity) > 0) { + gdata_gd_postal_address_set_city(psAddress, contact->pnPrivateCity); + } + if (contact->pnPrivateCountry != NULL && strlen(contact->pnPrivateCountry) > 0) { + gdata_gd_postal_address_set_country(psAddress, contact->pnPrivateCountry, NULL); + } + if (contact->pnPrivateZipCode != NULL && strlen(contact->pnPrivateZipCode) > 0) { + gdata_gd_postal_address_set_postcode(psAddress, contact->pnPrivateZipCode); + } + + gdata_contacts_contact_add_postal_address(contact, psAddress); + + g_object_unref(psAddress); + } + + /* Insert contact */ + contact = gdata_contacts_service_insert_contact(GDATA_CONTACTS_SERVICE(service), contact, NULL, &error); + + /* Now add image */ + google_set_image(contact, contact); + + /* Update person id */ + contact->id = (gchar*)gdata_entry_get_id(GDATA_ENTRY(contact)); + } + + if (contact->nFlags & PERSON_FLAG_DELETED) { + GDataEntry *psEntry; + + /* Query contact */ + psEntry = gdata_service_query_single_entry(GDATA_SERVICE(service), gdata_contacts_service_get_primary_authorization_domain(), contact->id, NULL, GDATA_TYPE_CONTACTS_CONTACT, NULL, NULL); + if (psEntry != NULL) { + /* Delete valid entry */ + gdata_service_delete_entry(GDATA_SERVICE(service), gdata_contacts_service_get_primary_authorization_domain(), psEntry, NULL, NULL); + + g_object_unref(psEntry); + } + } + + if (contact->nFlags & PERSON_FLAG_CHANGED) { + GDataEntry *psEntry; + GDataContactsContact *psNewContact; + GDataContactsContact *contact; + GDataGDName *name; + GDataGDPostalAddress *psAddress; + GDataGDOrganization *organization; + GList *number_list; + GError *error = NULL; + gboolean bBusinessPhone = FALSE; + gboolean bBusinessFax = FALSE; + gboolean bPrivateFax = FALSE; + gboolean bPrivatePhone = FALSE; + gboolean bPrivateMobile = FALSE; + + g_debug("Changed entry"); + + /* Query contact */ + psEntry = gdata_service_query_single_entry(GDATA_SERVICE(service), gdata_contacts_service_get_primary_authorization_domain(), contact->id, NULL, GDATA_TYPE_CONTACTS_CONTACT, NULL, NULL); + if (psEntry == NULL) { + g_debug("psEntry is NULL"); + continue; + } + g_assert(GDATA_IS_CONTACTS_CONTACT(psEntry)); + + /* Convert to contact */ + contact = GDATA_CONTACTS_CONTACT(psEntry); + + /* Update title */ + gchar *pnDisplayName = g_strdup_printf("%s %s", contact->pnFirstName, contact->pnLastName); + gdata_entry_set_title(GDATA_ENTRY(contact), pnDisplayName); + + /* Get name information and update name information */ + name = gdata_contacts_contact_get_name(contact); + if (name != NULL) { + if (contact->pnFirstName != NULL && strlen(contact->pnFirstName) > 0) { + gdata_gd_name_set_given_name(name, contact->pnFirstName); + } else { + } + + if (contact->pnLastName != NULL && strlen(contact->pnLastName) > 0) { + gdata_gd_name_set_family_name(name, contact->pnLastName); + } + if (pnDisplayName != NULL && strlen(contact->pnDisplayName) > 0) { + gdata_gd_name_set_full_name(name, pnDisplayName); + } + if (contact->pnTitle != NULL && strlen(contact->pnTitle) > 0) { + gdata_gd_name_set_prefix(name, contact->pnTitle); + } + g_debug("Set names done"); + //g_object_unref(name); + } + + /* Update company */ + if (contact->pnCompany != NULL && strlen(contact->pnCompany) > 0) { + organization = gdata_contacts_contact_get_primary_organization(contact); + + if (organization == NULL) { + organization = gdata_gd_organization_new(contact->pnCompany, NULL, NULL, NULL, TRUE); + + gdata_contacts_contact_add_organization(contact, organization); + } else { + gdata_gd_organization_set_name(organization, contact->pnCompany); + } + + //g_object_unref(organization); + } + + /* Set numbers */ + number_list = gdata_contacts_contact_get_phone_numbers(contact); + while (number_list != NULL && number_list->data != NULL) { + GDataGDPhoneNumber *psNumber = number_list->data; + + if (!strcmp(gdata_gd_phone_number_get_relation_type(psNumber), GDATA_GD_PHONE_NUMBER_WORK)) { + bBusinessPhone = TRUE; + if (strlen(contact->pnBusinessPhone) <= 0) { + number_list = g_list_remove(number_list, psNumber); + continue; + } else { + gdata_gd_phone_number_set_number(psNumber, contact->pnBusinessPhone); + } + } else if (!strcmp(gdata_gd_phone_number_get_relation_type(psNumber), GDATA_GD_PHONE_NUMBER_HOME)) { + bPrivatePhone = TRUE; + if (strlen(contact->pnPrivatePhone) <= 0) { + number_list = g_list_remove(number_list, psNumber); + continue; + } else { + gdata_gd_phone_number_set_number(psNumber, contact->pnPrivatePhone); + } + } else if (!strcmp(gdata_gd_phone_number_get_relation_type(psNumber), GDATA_GD_PHONE_NUMBER_MOBILE)) { + bPrivateMobile = TRUE; + if (strlen(contact->pnPrivateMobile) <= 0) { + number_list = g_list_remove(number_list, psNumber); + continue; + } else { + gdata_gd_phone_number_set_number(psNumber, contact->pnPrivateMobile); + } + } else if (!strcmp(gdata_gd_phone_number_get_relation_type(psNumber), GDATA_GD_PHONE_NUMBER_HOME_FAX)) { + bPrivateFax = TRUE; + if (strlen(contact->pnPrivateFax) <= 0) { + number_list = g_list_remove(number_list, psNumber); + continue; + } else { + gdata_gd_phone_number_set_number(psNumber, contact->pnPrivateFax); + } + } else if (!strcmp(gdata_gd_phone_number_get_relation_type(psNumber), GDATA_GD_PHONE_NUMBER_WORK_FAX)) { + bBusinessFax = TRUE; + if (strlen(contact->pnBusinessFax) <= 0) { + number_list = g_list_remove(number_list, psNumber); + continue; + } else { + gdata_gd_phone_number_set_number(psNumber, contact->pnBusinessFax); + } + } + //g_object_unref(psNumber); + + if (number_list != NULL) { + number_list = number_list->next; + } + } + if (bBusinessPhone == FALSE && strlen(contact->pnBusinessPhone) > 0) { + GDataGDPhoneNumber *psNumber = gdata_gd_phone_number_new(contact->pnBusinessPhone, GDATA_GD_PHONE_NUMBER_WORK, NULL, NULL, FALSE); + + gdata_contacts_contact_add_phone_number(contact, psNumber); + } + + if (bBusinessFax == FALSE && strlen(contact->pnBusinessFax) > 0) { + GDataGDPhoneNumber *psNumber = gdata_gd_phone_number_new(contact->pnBusinessFax, GDATA_GD_PHONE_NUMBER_WORK_FAX, NULL, NULL, FALSE); + + gdata_contacts_contact_add_phone_number(contact, psNumber); + } + + if (bPrivatePhone == FALSE && strlen(contact->pnPrivatePhone) > 0) { + GDataGDPhoneNumber *psNumber = gdata_gd_phone_number_new(contact->pnPrivatePhone, GDATA_GD_PHONE_NUMBER_HOME, NULL, NULL, FALSE); + + gdata_contacts_contact_add_phone_number(contact, psNumber); + } + + if (bPrivateFax == FALSE && strlen(contact->pnPrivateFax) > 0) { + GDataGDPhoneNumber *psNumber = gdata_gd_phone_number_new(contact->pnPrivateFax, GDATA_GD_PHONE_NUMBER_HOME_FAX, NULL, NULL, FALSE); + + gdata_contacts_contact_add_phone_number(contact, psNumber); + } + + if (bPrivateMobile == FALSE && strlen(contact->pnPrivateMobile) > 0) { + GDataGDPhoneNumber *psNumber = gdata_gd_phone_number_new(contact->pnPrivateMobile, GDATA_GD_PHONE_NUMBER_MOBILE, NULL, NULL, FALSE); + + gdata_contacts_contact_add_phone_number(contact, psNumber); + } + + g_debug("Set numbers done"); + + psAddress = gdata_gd_postal_address_new(GDATA_GD_POSTAL_ADDRESS_WORK, NULL, TRUE); + if (contact->pnBusinessStreet != NULL && strlen(contact->pnBusinessStreet) > 0) { + gdata_gd_postal_address_set_street(psAddress, contact->pnBusinessStreet); + } + if (contact->pnBusinessCity != NULL && strlen(contact->pnBusinessCity) > 0) { + gdata_gd_postal_address_set_city(psAddress, contact->pnBusinessCity); + } + if (contact->pnBusinessCountry != NULL && strlen(contact->pnBusinessCountry) > 0) { + gdata_gd_postal_address_set_country(psAddress, contact->pnBusinessCountry, NULL); + } + if (contact->pnBusinessZipCode != NULL && strlen(contact->pnBusinessZipCode) > 0) { + gdata_gd_postal_address_set_postcode(psAddress, contact->pnBusinessZipCode); + } + + psAddress = gdata_gd_postal_address_new(GDATA_GD_POSTAL_ADDRESS_HOME, NULL, TRUE); + if (contact->pnPrivateStreet != NULL && strlen(contact->pnPrivateStreet) > 0) { + gdata_gd_postal_address_set_street(psAddress, contact->pnPrivateStreet); + } + if (contact->pnPrivateCity != NULL && strlen(contact->pnPrivateCity) > 0) { + gdata_gd_postal_address_set_city(psAddress, contact->pnPrivateCity); + } + if (contact->pnPrivateCountry != NULL && strlen(contact->pnPrivateCountry) > 0) { + gdata_gd_postal_address_set_country(psAddress, contact->pnPrivateCountry, NULL); + } + if (contact->pnPrivateZipCode != NULL && strlen(contact->pnPrivateZipCode) > 0) { + gdata_gd_postal_address_set_postcode(psAddress, contact->pnPrivateZipCode); + } + + google_set_image(contact, contact); + + g_debug("Update entry"); + psNewContact = GDATA_CONTACTS_CONTACT(gdata_service_update_entry(GDATA_SERVICE(service), gdata_contacts_service_get_primary_authorization_domain(), GDATA_ENTRY(contact), NULL, &error)); + if (error != NULL) { + g_warning("Could not update contact entry: %s", error->message); + g_error_free(error); + error = NULL; + } else { + g_debug("Update entry done"); + if (psNewContact) { + g_debug("Unref"); + g_object_unref(psNewContact); + } + } + } + + contact->nFlags = PERSON_FLAG_UNCHANGED; + } + return 0; +} +#endif + +GSList *google_get_contacts(void) +{ + GSList *list = contacts; + + return list; +} + +gchar *google_get_active_book_name(void) +{ + return g_strdup("Google"); +} + +RmAddressBook google_book = { + "Google", + google_get_active_book_name, + google_get_contacts, + NULL,//google_reload_contacts, + NULL,//google_remove_contact, + NULL//google_save_contact +}; + +gboolean google_plugin_init(RmPlugin *plugin) +{ + RmGooglePlugin *google_plugin = g_slice_alloc0(sizeof(RmGooglePlugin)); + + plugin->priv = google_plugin; + google_settings = rm_settings_new("org.tabos.roger.plugins.google"); + + table = g_hash_table_new(g_str_hash, g_str_equal); + + google_read_book(); + + //google_plugin->signal_id = g_signal_connect(G_OBJECT(rm_object), "contact-process", G_CALLBACK(google_contact_process_cb), NULL); + + rm_addressbook_register(&google_book); + + return TRUE; +} + +gboolean google_plugin_shutdown(RmPlugin *plugin) +{ + RmGooglePlugin *google_plugin = plugin->priv; + + rm_addressbook_unregister(&google_book); + + if (google_plugin && g_signal_handler_is_connected(G_OBJECT(rm_object), google_plugin->signal_id)) { + g_signal_handler_disconnect(G_OBJECT(rm_object), google_plugin->signal_id); + } + + google_shutdown(); + + g_clear_object(&google_settings); + + if (table) { + g_hash_table_destroy(table); + } + + return TRUE; +} + +gpointer google_plugin_configure(RmPlugin *config) +{ + GtkWidget *user_entry; + GtkWidget *password_entry; + GtkWidget *label; + GtkWidget *grid; + GtkWidget *group; + + grid = gtk_grid_new(); + gtk_widget_set_margin(grid, 18, 18, 18, 18); + + gtk_grid_set_row_spacing(GTK_GRID(grid), 6); + gtk_grid_set_column_spacing(GTK_GRID(grid), 12); + + label = gtk_label_new(_("User")); + gtk_widget_set_sensitive(label, FALSE); + gtk_grid_attach(GTK_GRID(grid), label, 0, 0, 1, 1); + + user_entry = gtk_entry_new(); + gtk_grid_attach(GTK_GRID(grid), user_entry, 1, 0, 1, 1); + g_settings_bind(google_settings, "user", user_entry, "text", G_SETTINGS_BIND_DEFAULT); + + label = gtk_label_new(_("Password")); + gtk_widget_set_sensitive(label, FALSE); + gtk_grid_attach(GTK_GRID(grid), label, 0, 1, 1, 1); + + password_entry = gtk_entry_new(); + gtk_entry_set_visibility(GTK_ENTRY(password_entry), FALSE); + gtk_grid_attach(GTK_GRID(grid), password_entry, 1, 1, 1, 1); + g_settings_bind(google_settings, "password", password_entry, "text", G_SETTINGS_BIND_DEFAULT); + + group = ui_group_create(grid, _("Access data"), TRUE, FALSE); + + return group; +} + +RM_PLUGIN_CONFIG(google); diff -Nru roger-router-1.8.14/plugins/google/google.desktop.in roger-router-2.1.6/plugins/google/google.desktop.in --- roger-router-1.8.14/plugins/google/google.desktop.in 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/google/google.desktop.in 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,8 @@ +[Plugin] +Module=google +Name=Google +Comment=Google address book support +Authors=Jan-Michael Brummer +Copyright=Copyright © 2013 Jan-Michael Brummer +Website=http://www.tabos.org/ +Help=http://www.tabos.org/forum/ diff -Nru roger-router-1.8.14/plugins/google/meson.build roger-router-2.1.6/plugins/google/meson.build --- roger-router-1.8.14/plugins/google/meson.build 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/google/meson.build 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,26 @@ +gdata = dependency('libgdata', required: false) + +if gdata.found() +google_sources = [] +google_sources += 'google.c' + +google_dep = [] +google_dep += plugins_dep +google_dep += gdata + +libgoogle = shared_module('google', + google_sources, + include_directories : roger_inc, + dependencies : google_dep, + install : true, + install_dir : get_option('prefix') + '/' + get_option('libdir') + '/roger/google/') + +custom_target('google.plugin', + output : 'google.plugin', + input : 'google.desktop.in', + command : [msgfmt, '--desktop', '--template', '@INPUT@', '-d', podir, '-o', '@OUTPUT@'], + install : true, + install_dir : get_option('prefix') + '/' + get_option('libdir') + '/roger/google/') + +install_data('org.tabos.roger.plugins.google.gschema.xml', install_dir : 'share/glib-2.0/schemas') +endif diff -Nru roger-router-1.8.14/plugins/google/org.tabos.roger.plugins.google.gschema.xml roger-router-2.1.6/plugins/google/org.tabos.roger.plugins.google.gschema.xml --- roger-router-1.8.14/plugins/google/org.tabos.roger.plugins.google.gschema.xml 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/google/org.tabos.roger.plugins.google.gschema.xml 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,13 @@ + + + + '' + + + '' + + + '' + + + diff -Nru roger-router-1.8.14/plugins/google/roger-plugins-google.metainfo.xml.in roger-router-2.1.6/plugins/google/roger-plugins-google.metainfo.xml.in --- roger-router-1.8.14/plugins/google/roger-plugins-google.metainfo.xml.in 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/google/roger-plugins-google.metainfo.xml.in 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,11 @@ + + + roger-plugins-google + org.tabos.roger.desktop + <_name>Google + <_summary>Support for Google address book + https://www.tabos.org + GPL-2.0 + GPL-2.0 + jan.brummer_AT_tabos.org + diff -Nru roger-router-1.8.14/plugins/gtknotify/gtknotify.c roger-router-2.1.6/plugins/gtknotify/gtknotify.c --- roger-router-1.8.14/plugins/gtknotify/gtknotify.c 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/gtknotify/gtknotify.c 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,236 @@ +/* + * Roger Router + * Copyright (c) 2012-2017 Jan-Michael Brummer + * + * This file is part of Roger Router. + * + * 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; version 2 only. + * + * 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 . + */ + +#include + +#include + +#include + +#include +#include + +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + +static guint uid = 0; +static GHashTable *hash_table = NULL; + +typedef struct { + RmConnection *connection; + RmContact *contact; + guint uid; +} GtkNotifyData; + +/** + * gtknotify_close: + * @priv: pointer to notification data + * + * Close notification window + */ +void gtknotify_close(gpointer priv) +{ + GtkNotifyData *data = priv; + GtkWidget *window = g_hash_table_lookup (hash_table, data); + + if (window != NULL) { + gtk_widget_destroy (window); + g_hash_table_remove (hash_table, data); + } +} + +/** + * gtknotify_timeout_close_cb: + * @user_data: gtk notifcation data pointer + * + * Closes given window identified by @uid + * + * Returns: %G_SOURCE_REMOVE + */ +static gboolean gtknotify_timeout_close_cb(gpointer user_data) +{ + GtkNotifyData *data = user_data; + + gtknotify_close(data); + + return G_SOURCE_REMOVE; +} + +static gboolean gtknotify_show_idle (gpointer user_data) +{ + GtkNotifyData *data = (GtkNotifyData *) user_data; + RmConnection *connection = data->connection; + RmContact *contact = data->contact; + GtkWidget *window; + GtkWidget *headerbar; + GtkWidget *contact_company_label; + GtkWidget *contact_number_label; + GtkWidget *contact_name_label; + GtkWidget *contact_street_label; + GtkWidget *contact_city_label; + GtkWidget *image; + g_autofree gchar *tmp = NULL; + GtkBuilder *builder; + GtkApplication *app = GTK_APPLICATION(g_application_get_default()); + + builder = gtk_builder_new_from_resource("/org/tabos/roger/plugins/gtknotify/gtknotify.glade"); + if (!builder) { + g_warning("Could not load gtknotify ui"); + g_free (data); + return G_SOURCE_REMOVE; + } + + window = GTK_WIDGET(gtk_builder_get_object(builder, "window")); + + headerbar = GTK_WIDGET(gtk_builder_get_object(builder, "headerbar")); + contact_name_label = GTK_WIDGET(gtk_builder_get_object(builder, "name_label")); + contact_number_label = GTK_WIDGET(gtk_builder_get_object(builder, "number_label")); + contact_company_label = GTK_WIDGET(gtk_builder_get_object(builder, "company_label")); + contact_street_label = GTK_WIDGET(gtk_builder_get_object(builder, "street_label")); + contact_city_label = GTK_WIDGET(gtk_builder_get_object(builder, "city_label")); + image = GTK_WIDGET(gtk_builder_get_object(builder, "image")); + + tmp = connection->local_number ? g_strdup_printf(_("(on %s)"), connection->local_number) : g_strdup(_("(on ?)")); + gtk_header_bar_set_subtitle(GTK_HEADER_BAR(headerbar), tmp); + + gtk_label_set_text(GTK_LABEL(contact_name_label), contact->name ? contact->name : ""); + gtk_label_set_text(GTK_LABEL(contact_number_label), contact->number ? contact->number : ""); + gtk_label_set_text(GTK_LABEL(contact_company_label), contact->company ? contact->company : ""); + gtk_label_set_text(GTK_LABEL(contact_street_label), contact->street ? contact->street : ""); + tmp = g_strdup_printf("%s%s%s", contact->zip ? contact->zip : "", contact->zip ? " " : "", contact->city ? contact->city : ""); + gtk_label_set_text(GTK_LABEL(contact_city_label), tmp); + + if (contact->image) { + GdkPixbuf *buf = rm_image_scale(contact->image, 96); + gtk_image_set_from_pixbuf(GTK_IMAGE(image), buf); + } + + if (connection->type & RM_CONNECTION_TYPE_INCOMING) { + gtk_header_bar_set_title(GTK_HEADER_BAR(headerbar), _("Incoming call")); + + if (connection->type & RM_CONNECTION_TYPE_SOFTPHONE) { + GtkWidget *accept_button; + GtkWidget *decline_button; + GtkWidget *separator; + + separator = GTK_WIDGET(gtk_builder_get_object(builder, "separator")); + gtk_widget_set_visible(separator, TRUE); + + accept_button = GTK_WIDGET(gtk_builder_get_object(builder, "pickup_button")); + gtk_actionable_set_action_name(GTK_ACTIONABLE(accept_button), "app.pickup"); + gtk_actionable_set_action_target(GTK_ACTIONABLE(accept_button), "i", connection->id); + gtk_widget_set_visible(accept_button, TRUE); + + decline_button = GTK_WIDGET(gtk_builder_get_object(builder, "hangup_button")); + gtk_actionable_set_action_name(GTK_ACTIONABLE(decline_button), "app.hangup"); + gtk_actionable_set_action_target(GTK_ACTIONABLE(decline_button), "i", connection->id); + gtk_widget_set_visible(decline_button, TRUE); + } + } else if (connection->type & RM_CONNECTION_TYPE_OUTGOING) { + gint duration = 5; + + gtk_header_bar_set_title(GTK_HEADER_BAR(headerbar), _("Outgoing call")); + + g_timeout_add_seconds(duration, gtknotify_timeout_close_cb, data); + } + + gtk_window_set_gravity (GTK_WINDOW(window), GDK_GRAVITY_SOUTH_EAST); + gtk_window_move(GTK_WINDOW(window), gdk_screen_width(), gdk_screen_height()); + gtk_widget_show(window); + + gtk_application_add_window (app, GTK_WINDOW (window)); + + g_hash_table_insert (hash_table, data, window); + + return G_SOURCE_REMOVE; +} + +/** + * gtknotify_show: + * @connection: a #RmConnection + * @contact: a #RmContact + * + * Shows a native gtk window with call details of @connection and @contact + * Returns: %NULL + */ +gpointer gtknotify_show(RmConnection *connection, RmContact *contact) +{ + GtkNotifyData *data = g_new (GtkNotifyData, 1); + + data->connection = connection; + data->contact = contact; + data->uid = ++uid; + + g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, gtknotify_show_idle, data, NULL); + + return data; +} + +/** + * gtknotify_update: + * @connection: a #RmConnection + * @contact: a #RmContact + * + * Updates notification (currently does nothing) + */ +void gtknotify_update(RmConnection *connection, RmContact *contact) +{ +} + +/** RmNotification declaration */ +RmNotification gtknotify = { + "GTK Notify", + gtknotify_show, + gtknotify_update, + gtknotify_close, +}; + +/** + * gtknotify_plugin_init: + * @plugin: a #RmPlugin + * + * Activate plugin + * + * Returns: %TRUE + */ +gboolean gtknotify_plugin_init(RmPlugin *plugin) +{ + rm_notification_register(>knotify); + hash_table = g_hash_table_new (NULL, NULL); + return TRUE; +} + +/** + * gtknotify_plugin_shutdown: + * @plugin: a #RmPlugin + * + * Deactivate plugin + * + * Returns: %TRUE + */ +gboolean gtknotify_plugin_shutdown(RmPlugin *plugin) +{ + g_hash_table_unref (hash_table); + rm_notification_unregister(>knotify); + + return TRUE; +} + +G_GNUC_END_IGNORE_DEPRECATIONS + +RM_PLUGIN(gtknotify) diff -Nru roger-router-1.8.14/plugins/gtknotify/gtknotify.desktop.in roger-router-2.1.6/plugins/gtknotify/gtknotify.desktop.in --- roger-router-1.8.14/plugins/gtknotify/gtknotify.desktop.in 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/gtknotify/gtknotify.desktop.in 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,8 @@ +[Plugin] +Module=gtknotify +Name=Notifications (using GTK) +Comment=Display notification about incoming/outgoing/missed calls using GTK +Authors=Jan-Michael Brummer +Copyright=Copyright © 2013 Jan-Michael Brummer +Website=http://www.tabos.org/ +Help=http://www.tabos.org/forum/ diff -Nru roger-router-1.8.14/plugins/gtknotify/gtknotify.glade roger-router-2.1.6/plugins/gtknotify/gtknotify.glade --- roger-router-1.8.14/plugins/gtknotify/gtknotify.glade 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/gtknotify/gtknotify.glade 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,241 @@ + + + + + + 450 + False + False + + + True + False + 18 + 18 + 18 + 18 + 6 + 12 + + + True + False + 96 + avatar-default-symbolic + 6 + + + 0 + 0 + 5 + + + + + True + False + False + end + 6 + Name + + + 1 + 0 + + + + + True + False + start + 6 + True + Max Mustermann + end + + + 2 + 0 + + + + + True + False + False + end + Number + + + 1 + 1 + + + + + True + False + False + end + Company + + + 1 + 2 + + + + + True + False + False + end + Street + + + 1 + 3 + + + + + True + False + False + end + City + + + 1 + 4 + + + + + True + False + start + 0123456789 + end + + + 2 + 1 + + + + + True + False + start + Muster AG + end + + + 2 + 2 + + + + + True + False + start + Musterstraße 1 + end + + + 2 + 3 + + + + + True + False + start + 12345 Musterhausen + end + + + 2 + 4 + + + + + True + False + 12 + 12 + 6 + True + 12 + True + + + Pickup + True + True + True + + + + False + True + 0 + + + + + Hangup + True + True + True + + + + False + True + 1 + + + + + 0 + 6 + 3 + + + + + False + True + + + 0 + 5 + 3 + + + + + + + True + False + Incoming call + (on 12345) + True + + + + + + + diff -Nru roger-router-1.8.14/plugins/gtknotify/gtknotify.gresource.xml roger-router-2.1.6/plugins/gtknotify/gtknotify.gresource.xml --- roger-router-1.8.14/plugins/gtknotify/gtknotify.gresource.xml 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/gtknotify/gtknotify.gresource.xml 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,6 @@ + + + + gtknotify.glade + + diff -Nru roger-router-1.8.14/plugins/gtknotify/meson.build roger-router-2.1.6/plugins/gtknotify/meson.build --- roger-router-1.8.14/plugins/gtknotify/meson.build 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/gtknotify/meson.build 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,30 @@ +gtknotify_gresources = gnome.compile_resources( + 'gtknotify-gresources', 'gtknotify.gresource.xml', + source_dir : '.', + c_name : '') + + +gtknotify_sources = [] +gtknotify_sources += 'gtknotify.c' +gtknotify_sources += gtknotify_gresources + +gtknotify_dep = [] +gtknotify_dep += plugins_dep + +gtknotify_inc = [roger_inc] + +libgtknotify = shared_module('gtknotify', + gtknotify_sources, + include_directories : gtknotify_inc, + dependencies : gtknotify_dep, + install : true, + install_dir : get_option('prefix') + '/' + get_option('libdir') + '/roger/gtknotify/') + +custom_target('gtknotify.plugin', + output : 'gtknotify.plugin', + input : 'gtknotify.desktop.in', + command : [msgfmt, '--desktop', '--template', '@INPUT@', '-d', podir, '-o', '@OUTPUT@'], + install : true, + install_dir : get_option('prefix') + '/' + get_option('libdir') + '/roger/gtknotify/') + +install_data('org.tabos.roger.plugins.gtknotify.gschema.xml', install_dir : 'share/glib-2.0/schemas') diff -Nru roger-router-1.8.14/plugins/gtknotify/org.tabos.roger.plugins.gtknotify.gschema.xml roger-router-2.1.6/plugins/gtknotify/org.tabos.roger.plugins.gtknotify.gschema.xml --- roger-router-1.8.14/plugins/gtknotify/org.tabos.roger.plugins.gtknotify.gschema.xml 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/gtknotify/org.tabos.roger.plugins.gtknotify.gschema.xml 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,19 @@ + + + + [] + + + [] + + + true + + + 3 + + + 5 + + + diff -Nru roger-router-1.8.14/plugins/gtknotify/roger-plugins-gtknotify.metainfo.xml.in roger-router-2.1.6/plugins/gtknotify/roger-plugins-gtknotify.metainfo.xml.in --- roger-router-1.8.14/plugins/gtknotify/roger-plugins-gtknotify.metainfo.xml.in 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/gtknotify/roger-plugins-gtknotify.metainfo.xml.in 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,11 @@ + + + roger-plugins-gtknotify + org.tabos.roger.desktop + <_name>GTK Notifications + <_summary>Support for notifications using GTK + https://www.tabos.org + GPL-2.0 + GPL-2.0 + jan.brummer_AT_tabos.org + diff -Nru roger-router-1.8.14/plugins/indicator/images/scalable/org.tabos.roger.default.svg roger-router-2.1.6/plugins/indicator/images/scalable/org.tabos.roger.default.svg --- roger-router-1.8.14/plugins/indicator/images/scalable/org.tabos.roger.default.svg 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/indicator/images/scalable/org.tabos.roger.default.svg 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,339 @@ + + + + + + + + image/svg+xml + + + + + + + + + diff -Nru roger-router-1.8.14/plugins/indicator/images/scalable/org.tabos.roger.mono-dark.svg roger-router-2.1.6/plugins/indicator/images/scalable/org.tabos.roger.mono-dark.svg --- roger-router-1.8.14/plugins/indicator/images/scalable/org.tabos.roger.mono-dark.svg 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/indicator/images/scalable/org.tabos.roger.mono-dark.svg 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,75 @@ + + + + + + + + image/svg+xml + + + + + + + + + + diff -Nru roger-router-1.8.14/plugins/indicator/images/scalable/org.tabos.roger.mono-lite.svg roger-router-2.1.6/plugins/indicator/images/scalable/org.tabos.roger.mono-lite.svg --- roger-router-1.8.14/plugins/indicator/images/scalable/org.tabos.roger.mono-lite.svg 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/indicator/images/scalable/org.tabos.roger.mono-lite.svg 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,75 @@ + + + + + + + + image/svg+xml + + + + + + + + + + diff -Nru roger-router-1.8.14/plugins/indicator/images/scalable/org.tabos.roger.notify.svg roger-router-2.1.6/plugins/indicator/images/scalable/org.tabos.roger.notify.svg --- roger-router-1.8.14/plugins/indicator/images/scalable/org.tabos.roger.notify.svg 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/indicator/images/scalable/org.tabos.roger.notify.svg 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,528 @@ + + + + + + + + image/svg+xml + + + + + + + + diff -Nru roger-router-1.8.14/plugins/indicator/indicator.c roger-router-2.1.6/plugins/indicator/indicator.c --- roger-router-1.8.14/plugins/indicator/indicator.c 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/indicator/indicator.c 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,412 @@ +/* + * Roger Router - Plugin Application Indicator + * Copyright (c) 2013-2017 Dieter Schärf, Jan-Michael Brummer + * + * Roger Router + * Copyright (c) 2012-2015 Jan-Michael Brummer + * + * This file is part of Roger Router. + * + * 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; version 2 only. + * + * 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 . + */ + +#include + +#include + +#include + +#include + +#include + +#include +#include +#include +#include +#include +#include +#include + +typedef struct { + AppIndicator *indicator; + GSettings *settings; + guint signal_id; + GAction *preferences; + GAction *contacts; + GAction *about; + GAction *phone; + GAction *plugins; + GAction *quit; + GAction *copy_ip; + GAction *reconnect; + GAction *journal; + GAction *hideonquit; + GAction *hideonstart; +} RmIndicatorPlugin; + +void indicator_copy_ip(GtkWidget *widget, + gpointer user_data) +{ + RmIndicatorPlugin *indicator_plugin = user_data; + + g_action_activate(indicator_plugin->copy_ip, NULL); +} + +void indicator_reconnect(GtkWidget *widget, + gpointer user_data) +{ + RmIndicatorPlugin *indicator_plugin = user_data; + + g_action_activate(indicator_plugin->reconnect, NULL); +} +/** + * indicator_menu_functions: + * + * Create "Functions" submenu items + * + * Returns: new menu widget + */ +static GtkWidget *indicator_menu_functions(RmIndicatorPlugin *indicator_plugin) +{ + GtkWidget *menu; + GtkWidget *item; + + menu = gtk_menu_new(); + + /* Functions - Copy IP adress */ + item = gtk_menu_item_new_with_label(_("Copy IP address")); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(indicator_copy_ip), indicator_plugin); + + /* Functions - Reconnect */ + item = gtk_menu_item_new_with_label(_("Reconnect")); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(indicator_reconnect), indicator_plugin); + + return menu; +} + +/** + * \brief "journal" callback function + * \param none + */ +void indicator_journal_cb(GtkWidget *widget, gpointer user_data) +{ + RmIndicatorPlugin *indicator_plugin = user_data; + + app_indicator_set_status(indicator_plugin->indicator, APP_INDICATOR_STATUS_ACTIVE); + g_action_activate(indicator_plugin->journal, NULL); +} + +void indicator_phone_cb(GtkWidget *widget, gpointer user_data) +{ + RmIndicatorPlugin *indicator_plugin = user_data; + + g_action_activate(indicator_plugin->phone, NULL); +} + +void indicator_show_contacts(GtkWidget *widget, + gpointer user_data) +{ + RmIndicatorPlugin *indicator_plugin = user_data; + + g_action_activate(indicator_plugin->contacts, NULL); +} + +void indicator_show_plugins(GtkWidget *widget, + gpointer user_data) +{ + RmIndicatorPlugin *indicator_plugin = user_data; + + g_action_activate(indicator_plugin->plugins, NULL); +} + +void indicator_show_about(GtkWidget *widget, + gpointer user_data) +{ + RmIndicatorPlugin *indicator_plugin = user_data; + + g_action_activate(indicator_plugin->about, NULL); +} + +void indicator_quit(GtkWidget *widget, + gpointer user_data) +{ + RmIndicatorPlugin *indicator_plugin = user_data; + + g_action_activate(indicator_plugin->quit, NULL); +} + +void indicator_show_preferences(GtkWidget *widget, + gpointer user_data) +{ + RmIndicatorPlugin *indicator_plugin = user_data; + + g_action_activate(indicator_plugin->preferences, NULL); +} +/** + * \brief create menu + * \param none + * \return new menu widget + */ +GtkWidget *indicator_menu(RmIndicatorPlugin *indicator_plugin) +{ + GtkWidget *menu; + GtkWidget *item; + GtkWidget *submenu; + + menu = gtk_menu_new(); + + /* Journal */ + item = gtk_menu_item_new_with_label(_("Journal")); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(indicator_journal_cb), indicator_plugin); + + /* Contacts */ + item = gtk_menu_item_new_with_label(_("Contacts")); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(indicator_show_contacts), indicator_plugin); + + /* Phone */ + item = gtk_menu_item_new_with_label(_("Phone")); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(indicator_phone_cb), indicator_plugin); + + /* Functions */ + item = gtk_menu_item_new_with_label(_("Functions")); + submenu = indicator_menu_functions(indicator_plugin); + gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), submenu); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + + /* Separator */ + item = gtk_separator_menu_item_new(); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + + /* Plugins */ + item = gtk_menu_item_new_with_label(_("Plugins")); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(indicator_show_plugins), indicator_plugin); + + /* Preferences */ + item = gtk_menu_item_new_with_label(_("Preferences")); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(indicator_show_preferences), indicator_plugin); + + /* Separator */ + item = gtk_separator_menu_item_new(); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + + /* About */ + item = gtk_menu_item_new_with_label(_("About")); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(indicator_show_about), indicator_plugin); + + /* Quit */ + item = gtk_menu_item_new_with_label(_("Quit")); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(indicator_quit), indicator_plugin); + + gtk_widget_show_all(menu); + + return menu; +} + +/** + * \brief "connection-changed" callback function + * \param object app object + * \param event event type + * \param connection connection structure + * \param unused_pointer unused user pointer + */ +void indicator_connection_changed_cb(RmObject *object, gint event, RmConnection *connection, gpointer user_data) +{ + RmIndicatorPlugin *indicator_plugin = user_data; + + if ((connection->type & ~RM_CONNECTION_TYPE_SOFTPHONE) == RM_CONNECTION_TYPE_MISSED) { + app_indicator_set_status(indicator_plugin->indicator, APP_INDICATOR_STATUS_ATTENTION); + } +} + +/** + * \brief "connection-default-icon" callback function + * \param widget gtk combo box + * \param unused_pointer unused user pointer + */ +void indicator_combobox_default_changed_cb(GtkComboBox *widget, gpointer user_data) +{ + /* GSettings has not written the changed value to its container, so we explicit set it here */ + RmIndicatorPlugin *indicator_plugin = user_data; + + g_settings_set_string(indicator_plugin->settings, "default-icon", gtk_combo_box_get_active_id(GTK_COMBO_BOX(widget))); + + /* Update indicator icon */ + gchar *iconname = g_strconcat("org.tabos.roger.", g_settings_get_string(indicator_plugin->settings, "default-icon"), NULL); + app_indicator_set_icon_full(indicator_plugin->indicator, iconname, "default-icon"); + g_free(iconname); +} + +/** + * \brief "connection-notify-icon" callback function + * \param widget gtk combo box + * \param unused_pointer unused user pointer + */ +void indicator_combobox_notify_changed_cb(GtkComboBox *widget, gpointer user_data) +{ + RmIndicatorPlugin *indicator_plugin = user_data; + /* GSettings has not written the changed value to its container, so we explicit set it here */ + + g_settings_set_string(indicator_plugin->settings, "notify-icon", gtk_combo_box_get_active_id(GTK_COMBO_BOX(widget))); + + /* Update indicator attention icon */ + gchar *iconname = g_strconcat("org.tabos.roger.", g_settings_get_string(indicator_plugin->settings, "notify-icon"), NULL); + app_indicator_set_attention_icon_full(indicator_plugin->indicator, iconname, "notify-icon"); + g_free(iconname); +} + +static void indicator_set_hide_on_quit(RmIndicatorPlugin *indicator_plugin, + gboolean state) +{ + g_action_activate(indicator_plugin->hideonquit, g_variant_new_boolean(state)); +} + +static void indicator_set_hide_on_start(RmIndicatorPlugin *indicator_plugin, + gboolean state) +{ + g_action_activate(indicator_plugin->hideonstart, g_variant_new_boolean(state)); +} + +gboolean indicator_plugin_init(RmPlugin *plugin) +{ + RmIndicatorPlugin *indicator_plugin = g_slice_alloc0(sizeof(RmIndicatorPlugin)); + GApplication *app = g_application_get_default(); + GtkWidget *menu; + + indicator_plugin->preferences = g_action_map_lookup_action(G_ACTION_MAP(app), "preferences"); + indicator_plugin->contacts = g_action_map_lookup_action(G_ACTION_MAP(app), "addressbook"); + indicator_plugin->quit = g_action_map_lookup_action(G_ACTION_MAP(app), "quit"); + indicator_plugin->phone = g_action_map_lookup_action(G_ACTION_MAP(app), "phone"); + indicator_plugin->about = g_action_map_lookup_action(G_ACTION_MAP(app), "about"); + indicator_plugin->plugins = g_action_map_lookup_action(G_ACTION_MAP(app), "plugins"); + indicator_plugin->copy_ip = g_action_map_lookup_action(G_ACTION_MAP(app), "copy_ip"); + indicator_plugin->reconnect = g_action_map_lookup_action(G_ACTION_MAP(app), "reconnect"); + indicator_plugin->journal = g_action_map_lookup_action(G_ACTION_MAP(app), "journal"); + indicator_plugin->hideonquit = g_action_map_lookup_action(G_ACTION_MAP(app), "hideonquit"); + indicator_plugin->hideonstart = g_action_map_lookup_action(G_ACTION_MAP(app), "hideonstart"); + + plugin->priv = indicator_plugin; + indicator_set_hide_on_quit(indicator_plugin, TRUE); + + indicator_plugin->settings = rm_settings_new("org.tabos.roger.plugins.indicator"); + + /* Create Application Indicator */ + gchar *iconname = g_strconcat("org.tabos.roger.", g_settings_get_string(indicator_plugin->settings, "default-icon"), NULL); + indicator_plugin->indicator = app_indicator_new("org.tabos.roger", iconname, APP_INDICATOR_CATEGORY_APPLICATION_STATUS); + + iconname = g_strconcat("org.tabos.roger.", g_settings_get_string(indicator_plugin->settings, "notify-icon"), NULL); + app_indicator_set_attention_icon_full(indicator_plugin->indicator, iconname, "notify-icon"); + g_free(iconname); + + menu = indicator_menu(indicator_plugin); + app_indicator_set_menu(indicator_plugin->indicator, GTK_MENU(menu)); + + app_indicator_set_status(indicator_plugin->indicator, APP_INDICATOR_STATUS_ACTIVE); + + /* Connect to "connection-changed" signal */ + indicator_plugin->signal_id = g_signal_connect(G_OBJECT(rm_object), "connection-changed", G_CALLBACK(indicator_connection_changed_cb), indicator_plugin); + + if (g_settings_get_boolean(indicator_plugin->settings, "hide-journal-on-startup")) { + indicator_set_hide_on_start(indicator_plugin, TRUE); + } + + return TRUE; +} + +gboolean indicator_plugin_shutdown(RmPlugin *plugin) +{ + RmIndicatorPlugin *indicator_plugin = plugin->priv; + + /* Unregister delete handler */ + indicator_set_hide_on_quit(indicator_plugin, FALSE); + + /* If signal handler is connected: disconnect */ + if (g_signal_handler_is_connected(G_OBJECT(rm_object), indicator_plugin->signal_id)) { + g_signal_handler_disconnect(G_OBJECT(rm_object), indicator_plugin->signal_id); + } + + app_indicator_set_status(indicator_plugin->indicator, APP_INDICATOR_STATUS_PASSIVE); + g_clear_object(&indicator_plugin->indicator); + + plugin->priv = NULL; + + return TRUE; +} + +gpointer indicator_plugin_configure(RmPlugin *plugin) +{ + GtkWidget *settings_grid; + GtkWidget *label; + GtkWidget *switch_journal; + GtkWidget *combo_box_default; + GtkWidget *combo_box_notify; + GtkWidget *group; + RmIndicatorPlugin *indicator_plugin = plugin->priv; + + /* Settings grid */ + settings_grid = gtk_grid_new(); + gtk_grid_set_row_spacing(GTK_GRID(settings_grid), 5); + gtk_grid_set_column_spacing(GTK_GRID(settings_grid), 15); + + /* Create label and switch for "Hide Journal on startup" and add to grid */ + label = ui_label_new(_("Hide Journal on startup")); + gtk_grid_attach(GTK_GRID(settings_grid), label, 0, 0, 1, 1); + + switch_journal = gtk_switch_new(); + gtk_switch_set_active(GTK_SWITCH(switch_journal), g_settings_get_boolean(indicator_plugin->settings, "hide-journal-on-startup")); + gtk_widget_set_halign(switch_journal, GTK_ALIGN_START); + gtk_grid_attach(GTK_GRID(settings_grid), switch_journal, 1, 0, 1, 1); + + /* Create label and combo_box for "Default Icon" and add to grid */ + label = ui_label_new(_("Default Icon")); + gtk_grid_attach(GTK_GRID(settings_grid), label, 0, 1, 1, 1); + + combo_box_default = gtk_combo_box_text_new(); + gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(combo_box_default), "default", _("default")); + gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(combo_box_default), "mono-dark", _("mono-dark")); + gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(combo_box_default), "mono-lite", _("mono-lite")); + gtk_grid_attach(GTK_GRID(settings_grid), combo_box_default, 1, 1, 1, 1); + + /* Create label and combo_box for "Notify Icon" and add to grid */ + label = ui_label_new(_("Notify Icon")); + gtk_grid_attach(GTK_GRID(settings_grid), label, 0, 2, 1, 1); + + combo_box_notify = gtk_combo_box_text_new(); + gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(combo_box_notify), "notify", _("default")); + gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(combo_box_notify), "mono-dark", _("mono-dark")); + gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(combo_box_notify), "mono-lite", _("mono-lite")); + gtk_grid_attach(GTK_GRID(settings_grid), combo_box_notify, 1, 2, 1, 1); + + /* Set signals */ + g_settings_bind(indicator_plugin->settings, "hide-journal-on-startup", switch_journal, "active", G_SETTINGS_BIND_DEFAULT); + g_settings_bind(indicator_plugin->settings, "default-icon", combo_box_default, "active-id", G_SETTINGS_BIND_DEFAULT); + g_settings_bind(indicator_plugin->settings, "notify-icon", combo_box_notify, "active-id", G_SETTINGS_BIND_DEFAULT); + + g_signal_connect(combo_box_default, "changed", G_CALLBACK(indicator_combobox_default_changed_cb), indicator_plugin); + g_signal_connect(combo_box_notify, "changed", G_CALLBACK(indicator_combobox_notify_changed_cb), indicator_plugin); + + group = ui_group_create(settings_grid, _("Settings for Application Indicator"), TRUE, TRUE); + + return group; +} + +RM_PLUGIN_CONFIG(indicator); diff -Nru roger-router-1.8.14/plugins/indicator/indicator.desktop.in roger-router-2.1.6/plugins/indicator/indicator.desktop.in --- roger-router-1.8.14/plugins/indicator/indicator.desktop.in 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/indicator/indicator.desktop.in 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,9 @@ +[Plugin] +Module=indicator +Name=Application Indicator +Comment=Status icon plugin using AppIndicator support +Authors=Dieter Schärf +Copyright=Copyright © 2013-2015 Dieter Schärf +Website=http://ffgtk.dschaerf.de/plugins/applicationindicator/ +Help=http://ffgtk.dschaerf.de/plugins/applicationindicator/ + diff -Nru roger-router-1.8.14/plugins/indicator/meson.build roger-router-2.1.6/plugins/indicator/meson.build --- roger-router-1.8.14/plugins/indicator/meson.build 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/indicator/meson.build 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,35 @@ +indicator = dependency('appindicator3-0.1', required: false) + +if indicator.found() +indicator_sources = [] +indicator_sources += 'indicator.c' + +indicator_dep = [] +indicator_dep += plugins_dep +indicator_dep += indicator + +libindicator = shared_module('indicator', + indicator_sources, + include_directories : roger_inc, + dependencies : indicator_dep, + install : true, + install_dir : get_option('prefix') + '/' + get_option('libdir') + '/roger/indicator/') + +custom_target('indicator.plugin', + output : 'indicator.plugin', + input : 'indicator.desktop.in', + command : [msgfmt, '--desktop', '--template', '@INPUT@', '-d', podir, '-o', '@OUTPUT@'], + install : true, + install_dir : get_option('prefix') + '/' + get_option('libdir') + '/roger/indicator/') + +install_data('org.tabos.roger.plugins.indicator.gschema.xml', install_dir : 'share/glib-2.0/schemas') + +images = [] +images += 'images/scalable/org.tabos.roger.default.svg' +images += 'images/scalable/org.tabos.roger.mono-dark.svg' +images += 'images/scalable/org.tabos.roger.mono-lite.svg' +images += 'images/scalable/org.tabos.roger.notify.svg' + +install_data(images, install_dir : get_option('datadir') + '/icons/hicolor/scalable/status/') + +endif diff -Nru roger-router-1.8.14/plugins/indicator/org.tabos.roger.plugins.indicator.gschema.xml roger-router-2.1.6/plugins/indicator/org.tabos.roger.plugins.indicator.gschema.xml --- roger-router-1.8.14/plugins/indicator/org.tabos.roger.plugins.indicator.gschema.xml 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/indicator/org.tabos.roger.plugins.indicator.gschema.xml 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + true + Hide Journal on startup + If true, the Journal is hide on startup off Roger Router. + + + 'default' + Select default icon + Select the default icon for display in Application Indicator. + + + 'notify' + Select notification icon + Select the notification icon for display in Application Indicator. + + + diff -Nru roger-router-1.8.14/plugins/indicator/roger-plugins-indicator.metainfo.xml.in roger-router-2.1.6/plugins/indicator/roger-plugins-indicator.metainfo.xml.in --- roger-router-1.8.14/plugins/indicator/roger-plugins-indicator.metainfo.xml.in 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/indicator/roger-plugins-indicator.metainfo.xml.in 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,11 @@ + + + roger-plugins-indicator + org.tabos.roger.desktop + <_name>Indicator + <_summary>Support for AppIndicator + https://www.tabos.org + GPL-2.0 + GPL-2.0 + ds_AT_dschaerf.de + diff -Nru roger-router-1.8.14/plugins/keychain/keychain.c roger-router-2.1.6/plugins/keychain/keychain.c --- roger-router-1.8.14/plugins/keychain/keychain.c 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/keychain/keychain.c 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,217 @@ +/** + * Roger Router + * Copyright (c) 2012-2014 Jan-Michael Brummer + * + * This file is part of Roger Router. + * + * 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; version 2 only. + * + * 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 . + */ + +/** + * TODO + * Instead of removing password during update, use SecKeychainItemModifyContent() instead + */ + +#include +#include +#include + +#include + +#define RM_TYPE_KEYCHAIN_PLUGIN (rm_keychain_plugin_get_type()) +#define RM_KEYCHAIN_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST((o), RM_TYPE_KEYCHAIN_PLUGIN, RmKeyChainPlugin)) + +typedef struct { + guint signal_id; +} RmKeyChainPluginPrivate; + +RM_PLUGIN_REGISTER(RM_TYPE_KEYCHAIN_PLUGIN, RmKeyChainPlugin, rm_keychain_plugin) + +#define SERVICE_NAME "roger" + +static gboolean keychain_remove_password(RmProfile *profile, const gchar *type); + +OSStatus keychain_get(gchar *pwd_name, void **password, UInt32 *pwd_len, SecKeychainItemRef *item_ref) +{ + OSStatus status; + + status = SecKeychainFindGenericPassword( + NULL, + strlen(SERVICE_NAME), + SERVICE_NAME, + strlen(pwd_name), + pwd_name, + pwd_len, + password, + item_ref); + + return status; +} + +/** + * \brief Get password of secure chain + * \param profile profile structure pointer + * \param type password type + * \return password or NULL on error + */ +static gchar *keychain_get_password(RmProfile *profile, const gchar *type) +{ + OSStatus status; + UInt32 pwd_length; + void *password = NULL; + gchar *pwd_name; + gchar *secret_password = NULL; + SecKeychainItemRef ref; + + if (profile == NULL || profile->name == NULL || type == NULL) { + return NULL; + } + + /* Find password */ + pwd_name = g_strdup_printf("%s/%s", profile->name, type); + status = keychain_get(pwd_name, &password, &pwd_length, &ref); + g_free(pwd_name); + + /* Check return value, if no error occurred: return password */ + if (status == noErr) { + secret_password = g_strndup((char*)password, pwd_length); + SecKeychainItemFreeContent(NULL, password); + return secret_password; + } + + g_warning("Couldn't find password: %d", status); + + return NULL; +} + +/** + * \brief Store a new password in secure chain + * \param profile profile structure pointer + * \param type password type + * \param password password text + */ +static void keychain_store_password(RmProfile *profile, const gchar *type, const gchar *password) +{ + OSStatus status; + SecKeychainItemRef item_ref = NULL; + gchar *pwd_name; + UInt32 pwd_len = 0; + void *pwd_data = NULL; + + if (profile == NULL || profile->name == NULL || type == NULL) { + return; + } + + /* store password */ + pwd_name = g_strdup_printf("%s/%s", profile->name, type); + + status = keychain_get(pwd_name, &pwd_data, &pwd_len, &item_ref); + g_free(pwd_name); + + if (status == errSecItemNotFound) { + status = SecKeychainAddGenericPassword(NULL, strlen(SERVICE_NAME), SERVICE_NAME, strlen(pwd_name), pwd_name, strlen(password), password, NULL); + return; + } + + if (status == noErr) { + status = SecKeychainItemFreeContent(NULL, pwd_data); + } + + if (status) { + g_warning("Couldn't gete password: %d", status); + CFRelease(item_ref); + return; + } + + /* insert new keychain entry */ + status = SecKeychainItemModifyAttributesAndData(item_ref, NULL, (UInt32)strlen(password), password); + + /* Check return value, if error occurred: show reason */ + if (status != noErr) { + g_warning("Couldn't modify password: %d", status); + } + + if (item_ref) { + CFRelease(item_ref); + } +} + +/** + * \brief Remove password of secure chain + * \param profile profile structure pointer + * \param type type indicating which password to remove + * \return TRUE on success, otherwise FALSE on error + */ +static gboolean keychain_remove_password(RmProfile *profile, const gchar *type) +{ + OSStatus status; + SecKeychainItemRef item_ref = NULL; + gchar *pwd_name; + gboolean ret = TRUE; + + if (profile == NULL || profile->name == NULL) { + return FALSE; + } + + pwd_name = g_strdup_printf("%s/%s", profile->name, type); + status = SecKeychainFindGenericPassword( + NULL, + strlen(SERVICE_NAME), + SERVICE_NAME, + strlen(profile->name), + profile->name, + NULL, + NULL, + &item_ref); + + if (status == noErr) { + g_assert(item_ref != NULL); + status = SecKeychainItemDelete(item_ref); + } + + /* Check return value, if error occurred: show reason */ + if (status != noErr) { + g_warning("Couldn't remove password: %d", status); + ret = FALSE; + } + + g_free(pwd_name); + + return ret; +} + +/** Keychain password manager structure */ +struct password_manager keychain = { + "OS X Keychain", + keychain_store_password, + keychain_get_password, + keychain_remove_password, +}; + +/** + * \brief Activate plugin + * \param plugin peas plugin structure + */ +void impl_activate(PeasActivatable *plugin) +{ + g_debug("Register keychain password manager plugin"); + rm_password_register(&keychain); +} + +/** + * \brief Deactivate plugin + * \param plugin peas plugin structure + */ +void impl_deactivate(PeasActivatable *plugin) +{ +} diff -Nru roger-router-1.8.14/plugins/keychain/keychain.desktop.in roger-router-2.1.6/plugins/keychain/keychain.desktop.in --- roger-router-1.8.14/plugins/keychain/keychain.desktop.in 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/keychain/keychain.desktop.in 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,9 @@ +[Plugin] +Module=keychain +Name=KeyChain +Comment=OS X KeyChain support +Authors=Jan-Michael Brummer +Copyright=Copyright © 2014 Jan-Michael Brummer +Website=http://www.tabos.org/ +Help=http://www.tabos.org/forum/ +Builtin=true diff -Nru roger-router-1.8.14/plugins/keychain/meson.build roger-router-2.1.6/plugins/keychain/meson.build --- roger-router-1.8.14/plugins/keychain/meson.build 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/keychain/meson.build 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,5 @@ +if host_machine.system() == 'osx' + +# TODO + +endif diff -Nru roger-router-1.8.14/plugins/meson.build roger-router-2.1.6/plugins/meson.build --- roger-router-1.8.14/plugins/meson.build 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/meson.build 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,22 @@ +plugins_dep=[] +plugins_dep += dependency('gtk+-3.0') +plugins_dep += dependency('libsoup-2.4') +plugins_dep += librm_dep + +subdir('google') + +if host_machine.system().contains('linux') +subdir('indicator') +subdir('evolution') +else +subdir('statusicon') +endif +subdir('gtknotify') + +subdir('keychain') +subdir('osxab') + + +subdir('thunderbird') +subdir('vcard') +subdir('webjournal') diff -Nru roger-router-1.8.14/plugins/osxab/meson.build roger-router-2.1.6/plugins/osxab/meson.build --- roger-router-1.8.14/plugins/osxab/meson.build 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/osxab/meson.build 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,5 @@ +if host_machine.system() == 'osx' + +# TODO + +endif diff -Nru roger-router-1.8.14/plugins/osxab/osxab.c roger-router-2.1.6/plugins/osxab/osxab.c --- roger-router-1.8.14/plugins/osxab/osxab.c 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/osxab/osxab.c 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,351 @@ +/** + * Roger Router + * Copyright (c) 2015 Jan-Michael Brummer + * + * This file is part of Roger Router. + * + * 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; version 2 only. + * + * 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 . + */ + +#include +#include + +#include + +#include +#include +#include + +#include + +#define RM_TYPE_OSXAB_PLUGIN (rm_osxab_plugin_get_type()) +#define RM_OSXAB_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST((o), RM_TYPE_OSXAB_PLUGIN, RmOSXAbPlugin)) + +typedef struct { + guint signal_id; +} RmOSXAbPluginPrivate; + +RM_PLUGIN_REGISTER(RM_TYPE_OSXAB_PLUGIN, RmOSXAbPlugin, rm_osxab_plugin) + +static GSList * contacts = NULL; + +static char *cstring(CFStringRef s) +{ + if (!s) { + return NULL; + } + + CFIndex length = CFStringGetLength(s); + CFIndex max_size = CFStringGetMaximumSizeForEncoding(length, kCFStringEncodingUTF8); + char *buffer = (char*)malloc(max_size); + + if (CFStringGetCString(s, buffer, max_size, kCFStringEncodingUTF8)) { + return buffer; + } + + free(buffer); + + return NULL; +} + +/** + * \brief Read osxab book + * \return error code + */ +static int osxab_read_book(void) +{ + ABAddressBookRef ab = ABGetSharedAddressBook(); + CFArrayRef entries; + CFIndex len; + + if (!ab) { + return -1; + } + + entries = ABCopyArrayOfAllPeople(ab); + if (!entries) { + return -1; + } + + len = CFArrayGetCount(entries); + + for (int i = 0; i < len; i++) { + ABPersonRef person = (ABPersonRef)CFArrayGetValueAtIndex(entries, i); + CFTypeRef firstName = ABRecordCopyValue(person, kABFirstNameProperty); + CFTypeRef lastName = ABRecordCopyValue(person, kABLastNameProperty); + CFTypeRef company = ABRecordCopyValue(person, kABOrganizationProperty); + CFTypeRef addresses = ABRecordCopyValue(person, kABAddressProperty); + CFTypeRef phones = ABRecordCopyValue(person, kABPhoneProperty); + CFTypeRef uid = ABRecordCopyUniqueId(person); + gchar *lastname_cstr; + RmContact *contact; + + if (!firstName && !lastName) { + /* Company... */ + if (!company) { + continue; + } + firstName = company; + } + + contact = g_slice_new0(RmContact); + contact->priv = (gpointer)uid; + g_debug("Uid: %s", cstring(contact->priv)); + + lastname_cstr = cstring(lastName); + contact->name = g_strdup_printf("%s%s%s", + firstName ? cstring(firstName) : "", + lastname_cstr ? " " : "", + lastname_cstr ? lastname_cstr : ""); + + if (addresses) { + for (int j = 0; j < ABMultiValueCount((ABMultiValueRef)addresses); j++) { + CFDictionaryRef an_address = ABMultiValueCopyValueAtIndex(addresses, j); + CFStringRef label = ABMultiValueCopyLabelAtIndex(addresses, j); + CFStringRef street = CFDictionaryGetValue(an_address, kABAddressStreetKey); + CFStringRef city = CFDictionaryGetValue(an_address, kABAddressCityKey); + CFStringRef zip = CFDictionaryGetValue(an_address, kABAddressZIPKey); + RmContactAddress *address = g_slice_new0(RmContactAddress); + gchar *tmp; + + address->type = CFStringCompare(label, kABHomeLabel, 0); + + tmp = cstring(street); + address->street = tmp ? tmp : g_strdup(""); + tmp = cstring(city); + address->city = tmp ? tmp : g_strdup(""); + tmp = cstring(zip); + address->zip = tmp ? tmp : g_strdup(""); + contact->addresses = g_slist_prepend(contact->addresses, address); + } + } + + if (phones) { + for (int j = 0; j < ABMultiValueCount((ABMultiValueRef)phones); j++) { + CFStringRef an_phone = ABMultiValueCopyValueAtIndex(phones, j); + CFStringRef label = ABMultiValueCopyLabelAtIndex(phones, j); + RmPhoneNumber *number = g_slice_new0(RmPhoneNumber); + + if (!CFStringCompare(label, kABPhoneHomeLabel, 0)) { + number->type = PHONE_NUMBER_HOME; + } else if (!CFStringCompare(label, kABPhoneWorkLabel, 0)) { + number->type = PHONE_NUMBER_WORK; + } else if (!CFStringCompare(label, kABPhoneMobileLabel, 0)) { + number->type = PHONE_NUMBER_MOBILE; + } else if (!CFStringCompare(label, kABPhoneHomeFAXLabel, 0)) { + number->type = PHONE_NUMBER_FAX_HOME; + } else if (!CFStringCompare(label, kABPhoneWorkFAXLabel, 0)) { + number->type = PHONE_NUMBER_FAX_WORK; + } else { + number->type = PHONE_NUMBER_HOME; + } + number->number = cstring(an_phone); + contact->numbers = g_slist_prepend(contact->numbers, number); + } + } + + CFDataRef image = ABPersonCopyImageData(person); + if (image) { + GdkPixbufLoader *loader; + gint image_len = CFDataGetLength(image); + + loader = gdk_pixbuf_loader_new(); + if (gdk_pixbuf_loader_write(loader, CFDataGetBytePtr(image), image_len, NULL)) { + printf("Image loaded (%d)\n", image_len); + contact->image = gdk_pixbuf_loader_get_pixbuf(loader); + contact->image_len = image_len; + } else { + printf("Image NOT loaded\n"); + } + gdk_pixbuf_loader_close(loader, NULL); + } + + contacts = g_slist_insert_sorted(contacts, contact, rm_contact_name_compare); + } + + return 0; +} + +GSList *osxab_get_contacts(void) +{ + GSList *list = contacts; + + return list; +} + +gboolean osxab_reload_contacts(void) +{ + contacts = NULL; + + osxab_read_book(); + + return TRUE; +} + +static gboolean osxab_remove_contact(RmContact *contact) +{ + ABAddressBookRef ab = ABGetSharedAddressBook(); + ABPersonRef ref; + gboolean ret = FALSE; + + g_debug("Uid: %s", cstring(contact->priv)); + ref = ABCopyRecordForUniqueId(ab, contact->priv); + + if (ref) { + ABRemoveRecord(ab, ref); + ABSave(ab); + osxab_reload_contacts(); + ret = TRUE; + } + + return ret; +} + +static gboolean osxab_save_contact(RmContact *contact) +{ + ABAddressBookRef ab = ABGetSharedAddressBook(); + ABPersonRef ref; + CFStringRef cfstring; + gchar *first_name = NULL; + gchar *last_name = NULL; + gchar **split; + + if (!contact->priv) { + ref = ABPersonCreate(); + contact->priv = (gpointer)ABRecordCopyUniqueId(ref); + ABAddRecord(ab, ref); + } else { + ref = ABCopyRecordForUniqueId(ab, contact->priv); + } + + split = g_strsplit(contact->name, " ", 2); + first_name = split[0]; + last_name = split[1]; + + cfstring = CFStringCreateWithCString(NULL, first_name ? first_name : "", kCFStringEncodingUTF8); + ABRecordSetValue(ref, kABFirstNameProperty, cfstring); + + cfstring = CFStringCreateWithCString(NULL, last_name ? last_name : "", kCFStringEncodingUTF8); + ABRecordSetValue(ref, kABLastNameProperty, cfstring); + + g_strfreev(split); + + if (contact->numbers) { + ABMutableMultiValueRef multi_phone = ABMultiValueCreateMutable(); + GSList *list; + + for (list = contact->numbers; list != NULL; list = list->next) { + RmPhoneNumber *number = list->data; + CFTypeRef type; + + switch (number->type) { + case PHONE_NUMBER_HOME: + type = kABPhoneHomeLabel; + break; + case PHONE_NUMBER_WORK: + type = kABPhoneWorkLabel; + break; + case PHONE_NUMBER_MOBILE: + type = kABPhoneMobileLabel; + break; + case PHONE_NUMBER_FAX_HOME: + type = kABPhoneHomeFAXLabel; + break; + case PHONE_NUMBER_FAX_WORK: + type = kABPhoneWorkFAXLabel; + break; + default: + continue; + } + + cfstring = CFStringCreateWithCString(NULL, number->number, kCFStringEncodingUTF8); + ABMultiValueAdd(multi_phone, cfstring, type, NULL); + } + + ABRecordSetValue(ref, kABPhoneProperty, multi_phone); + } + + if (contact->addresses) { + ABMutableMultiValueRef multi_addresses = ABMultiValueCreateMutable(); + GSList *list; + + for (list = contact->addresses; list != NULL; list = list->next) { + CFMutableDictionaryRef dic; + CFTypeRef type; + RmContactAddress *address = list->data; + + switch (address->type) { + case 0: + type = kABHomeLabel; + break; + case 1: + type = kABWorkLabel; + break; + default: + continue; + } + + dic = CFDictionaryCreateMutable(NULL, 0, NULL, NULL); + + cfstring = CFStringCreateWithCString(NULL, address->street, kCFStringEncodingUTF8); + CFDictionaryAddValue(dic, kABAddressStreetKey, cfstring); + + cfstring = CFStringCreateWithCString(NULL, address->city, kCFStringEncodingUTF8); + CFDictionaryAddValue(dic, kABAddressCityKey, cfstring); + + cfstring = CFStringCreateWithCString(NULL, address->zip, kCFStringEncodingUTF8); + CFDictionaryAddValue(dic, kABAddressZIPKey, cfstring); + + ABMultiValueAdd(multi_addresses, dic, type, NULL); + } + + ABRecordSetValue(ref, kABAddressProperty, multi_addresses); + } + + ABSave(ab); + osxab_reload_contacts(); + + return TRUE; +} + +gchar *osxab_get_active_book_name(void) +{ + return g_strdup("osxab"); +} + +RmAddressBook osxab_book = { + "OS X AB", + osxab_get_active_book_name, + osxab_get_contacts, + osxab_reload_contacts, + osxab_remove_contact, + osxab_save_contact +}; + +void impl_activate(PeasActivatable *plugin) +{ + osxab_read_book(); + + rm_addressbook_register(&osxab_book); +} + +void impl_deactivate(PeasActivatable *plugin) +{ + RmOSXAbPlugin *osxab_plugin = RM_OSXAB_PLUGIN(plugin); + + rm_addressbook_unregister(&osxab_book); + + if (g_signal_handler_is_connected(G_OBJECT(rm_object), osxab_plugin->priv->signal_id)) { + g_signal_handler_disconnect(G_OBJECT(rm_object), osxab_plugin->priv->signal_id); + } +} diff -Nru roger-router-1.8.14/plugins/osxab/osxab.desktop.in roger-router-2.1.6/plugins/osxab/osxab.desktop.in --- roger-router-1.8.14/plugins/osxab/osxab.desktop.in 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/osxab/osxab.desktop.in 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,9 @@ +[Plugin] +Module=osxab +Name=OSX Address book +Comment=OS X Address book +Authors=Jan-Michael Brummer +Copyright=Copyright © 2015 Jan-Michael Brummer +Website=http://www.tabos.org/ +Help=http://www.tabos.org/forum/ +Builtin=false Binary files /tmp/tmpr2Ljb8/8cpAYtGLyW/roger-router-1.8.14/plugins/statusicon/images/16x16/roger-default.png and /tmp/tmpr2Ljb8/fMQMI8vGTv/roger-router-2.1.6/plugins/statusicon/images/16x16/roger-default.png differ Binary files /tmp/tmpr2Ljb8/8cpAYtGLyW/roger-router-1.8.14/plugins/statusicon/images/16x16/roger-mono-dark.png and /tmp/tmpr2Ljb8/fMQMI8vGTv/roger-router-2.1.6/plugins/statusicon/images/16x16/roger-mono-dark.png differ Binary files /tmp/tmpr2Ljb8/8cpAYtGLyW/roger-router-1.8.14/plugins/statusicon/images/16x16/roger-mono-lite.png and /tmp/tmpr2Ljb8/fMQMI8vGTv/roger-router-2.1.6/plugins/statusicon/images/16x16/roger-mono-lite.png differ Binary files /tmp/tmpr2Ljb8/8cpAYtGLyW/roger-router-1.8.14/plugins/statusicon/images/16x16/roger-notify.png and /tmp/tmpr2Ljb8/fMQMI8vGTv/roger-router-2.1.6/plugins/statusicon/images/16x16/roger-notify.png differ Binary files /tmp/tmpr2Ljb8/8cpAYtGLyW/roger-router-1.8.14/plugins/statusicon/images/22x22/roger-default.png and /tmp/tmpr2Ljb8/fMQMI8vGTv/roger-router-2.1.6/plugins/statusicon/images/22x22/roger-default.png differ Binary files /tmp/tmpr2Ljb8/8cpAYtGLyW/roger-router-1.8.14/plugins/statusicon/images/22x22/roger-mono-dark.png and /tmp/tmpr2Ljb8/fMQMI8vGTv/roger-router-2.1.6/plugins/statusicon/images/22x22/roger-mono-dark.png differ Binary files /tmp/tmpr2Ljb8/8cpAYtGLyW/roger-router-1.8.14/plugins/statusicon/images/22x22/roger-mono-lite.png and /tmp/tmpr2Ljb8/fMQMI8vGTv/roger-router-2.1.6/plugins/statusicon/images/22x22/roger-mono-lite.png differ Binary files /tmp/tmpr2Ljb8/8cpAYtGLyW/roger-router-1.8.14/plugins/statusicon/images/22x22/roger-notify.png and /tmp/tmpr2Ljb8/fMQMI8vGTv/roger-router-2.1.6/plugins/statusicon/images/22x22/roger-notify.png differ Binary files /tmp/tmpr2Ljb8/8cpAYtGLyW/roger-router-1.8.14/plugins/statusicon/images/24x24/roger-default.png and /tmp/tmpr2Ljb8/fMQMI8vGTv/roger-router-2.1.6/plugins/statusicon/images/24x24/roger-default.png differ Binary files /tmp/tmpr2Ljb8/8cpAYtGLyW/roger-router-1.8.14/plugins/statusicon/images/24x24/roger-mono-dark.png and /tmp/tmpr2Ljb8/fMQMI8vGTv/roger-router-2.1.6/plugins/statusicon/images/24x24/roger-mono-dark.png differ Binary files /tmp/tmpr2Ljb8/8cpAYtGLyW/roger-router-1.8.14/plugins/statusicon/images/24x24/roger-mono-lite.png and /tmp/tmpr2Ljb8/fMQMI8vGTv/roger-router-2.1.6/plugins/statusicon/images/24x24/roger-mono-lite.png differ Binary files /tmp/tmpr2Ljb8/8cpAYtGLyW/roger-router-1.8.14/plugins/statusicon/images/24x24/roger-notify.png and /tmp/tmpr2Ljb8/fMQMI8vGTv/roger-router-2.1.6/plugins/statusicon/images/24x24/roger-notify.png differ Binary files /tmp/tmpr2Ljb8/8cpAYtGLyW/roger-router-1.8.14/plugins/statusicon/images/32x32/roger-default.png and /tmp/tmpr2Ljb8/fMQMI8vGTv/roger-router-2.1.6/plugins/statusicon/images/32x32/roger-default.png differ Binary files /tmp/tmpr2Ljb8/8cpAYtGLyW/roger-router-1.8.14/plugins/statusicon/images/32x32/roger-mono-dark.png and /tmp/tmpr2Ljb8/fMQMI8vGTv/roger-router-2.1.6/plugins/statusicon/images/32x32/roger-mono-dark.png differ Binary files /tmp/tmpr2Ljb8/8cpAYtGLyW/roger-router-1.8.14/plugins/statusicon/images/32x32/roger-mono-lite.png and /tmp/tmpr2Ljb8/fMQMI8vGTv/roger-router-2.1.6/plugins/statusicon/images/32x32/roger-mono-lite.png differ Binary files /tmp/tmpr2Ljb8/8cpAYtGLyW/roger-router-1.8.14/plugins/statusicon/images/32x32/roger-notify.png and /tmp/tmpr2Ljb8/fMQMI8vGTv/roger-router-2.1.6/plugins/statusicon/images/32x32/roger-notify.png differ Binary files /tmp/tmpr2Ljb8/8cpAYtGLyW/roger-router-1.8.14/plugins/statusicon/images/48x48/roger-default.png and /tmp/tmpr2Ljb8/fMQMI8vGTv/roger-router-2.1.6/plugins/statusicon/images/48x48/roger-default.png differ Binary files /tmp/tmpr2Ljb8/8cpAYtGLyW/roger-router-1.8.14/plugins/statusicon/images/48x48/roger-mono-dark.png and /tmp/tmpr2Ljb8/fMQMI8vGTv/roger-router-2.1.6/plugins/statusicon/images/48x48/roger-mono-dark.png differ Binary files /tmp/tmpr2Ljb8/8cpAYtGLyW/roger-router-1.8.14/plugins/statusicon/images/48x48/roger-mono-lite.png and /tmp/tmpr2Ljb8/fMQMI8vGTv/roger-router-2.1.6/plugins/statusicon/images/48x48/roger-mono-lite.png differ Binary files /tmp/tmpr2Ljb8/8cpAYtGLyW/roger-router-1.8.14/plugins/statusicon/images/48x48/roger-notify.png and /tmp/tmpr2Ljb8/fMQMI8vGTv/roger-router-2.1.6/plugins/statusicon/images/48x48/roger-notify.png differ diff -Nru roger-router-1.8.14/plugins/statusicon/images/scalable/roger-default.svg roger-router-2.1.6/plugins/statusicon/images/scalable/roger-default.svg --- roger-router-1.8.14/plugins/statusicon/images/scalable/roger-default.svg 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/statusicon/images/scalable/roger-default.svg 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,339 @@ + + + + + + + + image/svg+xml + + + + + + + + + diff -Nru roger-router-1.8.14/plugins/statusicon/images/scalable/roger-mono-dark.svg roger-router-2.1.6/plugins/statusicon/images/scalable/roger-mono-dark.svg --- roger-router-1.8.14/plugins/statusicon/images/scalable/roger-mono-dark.svg 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/statusicon/images/scalable/roger-mono-dark.svg 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,75 @@ + + + + + + + + image/svg+xml + + + + + + + + + + diff -Nru roger-router-1.8.14/plugins/statusicon/images/scalable/roger-mono-lite.svg roger-router-2.1.6/plugins/statusicon/images/scalable/roger-mono-lite.svg --- roger-router-1.8.14/plugins/statusicon/images/scalable/roger-mono-lite.svg 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/statusicon/images/scalable/roger-mono-lite.svg 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,75 @@ + + + + + + + + image/svg+xml + + + + + + + + + + diff -Nru roger-router-1.8.14/plugins/statusicon/images/scalable/roger-notify.svg roger-router-2.1.6/plugins/statusicon/images/scalable/roger-notify.svg --- roger-router-1.8.14/plugins/statusicon/images/scalable/roger-notify.svg 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/statusicon/images/scalable/roger-notify.svg 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,528 @@ + + + + + + + + image/svg+xml + + + + + + + + diff -Nru roger-router-1.8.14/plugins/statusicon/meson.build roger-router-2.1.6/plugins/statusicon/meson.build --- roger-router-1.8.14/plugins/statusicon/meson.build 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/statusicon/meson.build 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,38 @@ +statusicon_sources = [] +statusicon_sources += 'statusicon.c' + +libstatusicon = shared_module('statusicon', + statusicon_sources, + include_directories : roger_inc, + dependencies : plugins_dep, + install : true, + install_dir : get_option('prefix') + '/' + get_option('libdir') + '/roger/statusicon/') + +custom_target('statusicon.plugin', + output : 'statusicon.plugin', + input : 'statusicon.desktop.in', + command : [msgfmt, '--desktop', '--template', '@INPUT@', '-d', podir, '-o', '@OUTPUT@'], + install : true, + install_dir : get_option('prefix') + '/' + get_option('libdir') + '/roger/statusicon/') + +install_data('org.tabos.roger.plugins.statusicon.gschema.xml', install_dir : 'share/glib-2.0/schemas') + +icon_sizes = ['16x16', '22x22', '24x24', '32x32', '48x48'] + +# install bitmap icons +foreach size : icon_sizes + install_data('images/' + size + '/roger-default.png', + install_dir: 'share/icons/hicolor/' + size + '/status/') + install_data('images/' + size + '/roger-notify.png', + install_dir: 'share/icons/hicolor/' + size + '/status/') + install_data('images/' + size + '/roger-mono-dark.png', + install_dir: 'share/icons/hicolor/' + size + '/status/') + install_data('images/' + size + '/roger-mono-lite.png', + install_dir: 'share/icons/hicolor/' + size + '/status/') +endforeach + +images = [] +images += 'images/scalable/roger-default.svg' +images += 'images/scalable/roger-notify.svg' + +install_data(images, install_dir : get_option('datadir') + '/icons/hicolor/scalable/status') diff -Nru roger-router-1.8.14/plugins/statusicon/org.tabos.roger.plugins.statusicon.gschema.xml roger-router-2.1.6/plugins/statusicon/org.tabos.roger.plugins.statusicon.gschema.xml --- roger-router-1.8.14/plugins/statusicon/org.tabos.roger.plugins.statusicon.gschema.xml 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/statusicon/org.tabos.roger.plugins.statusicon.gschema.xml 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + false + Hide Journal on startup + If true, the Journal is hide on startup off Roger Router. + + + 'default' + Select default icon + Select the default icon for display in Status icon GTK. + + + 'notify' + Select notification icon + Select the notification icon for display in Status icon GTK. + + + diff -Nru roger-router-1.8.14/plugins/statusicon/roger-plugins-statusicon.metainfo.xml.in roger-router-2.1.6/plugins/statusicon/roger-plugins-statusicon.metainfo.xml.in --- roger-router-1.8.14/plugins/statusicon/roger-plugins-statusicon.metainfo.xml.in 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/statusicon/roger-plugins-statusicon.metainfo.xml.in 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,11 @@ + + + roger-plugins-statusicon + org.tabos.roger.desktop + <_name>Statusicon + <_summary>Support for status icon + https://www.tabos.org + GPL-2.0 + GPL-2.0 + jan.brummer_AT_tabos.org + diff -Nru roger-router-1.8.14/plugins/statusicon/statusicon.c roger-router-2.1.6/plugins/statusicon/statusicon.c --- roger-router-1.8.14/plugins/statusicon/statusicon.c 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/statusicon/statusicon.c 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,524 @@ +/* + * Roger Router + * Copyright (c) 2012-2017 Jan-Michael Brummer + * + * This file is part of Roger Router. + * + * 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; version 2 only. + * + * 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 . + */ + +#include + +#include + +#include + +#include +#include +#include +#include +#include +#include +#include + +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + +typedef struct { + /*< private >*/ + GtkStatusIcon *statusicon; + GSettings *settings; + guint signal_id; + GAction *preferences; + GAction *contacts; + GAction *about; + GAction *phone; + GAction *plugins; + GAction *quit; + GAction *copy_ip; + GAction *reconnect; + GAction *journal; + GAction *hideonquit; + GAction *hideonstart; +} RmStatusIconPlugin; + +/** + * statusicon_copy_ip_activate_cb: + * @widget: a #GtkWidget + * @user_data: a #RmStatusIconPlugin + * + * Activates action "copy_ip" + */ +void statusicon_copy_ip_activate_cb(GtkWidget *widget, gpointer user_data) +{ + RmStatusIconPlugin *statusicon_plugin = user_data; + + g_action_activate(statusicon_plugin->copy_ip, NULL); +} + +/** + * statusicon_reconnect_activate_cb: + * @widget: a #GtkWidget + * @user_data: a #RmStatusIconPlugin + * + * Activates action "reconnect" + */ +void statusicon_reconnect_activate_cb(GtkWidget *widget, gpointer user_data) +{ + RmStatusIconPlugin *statusicon_plugin = user_data; + + g_action_activate(statusicon_plugin->reconnect, NULL); +} + +/** + * statusicon_menu_functions: + * @statusicon_plugin: a #RmStatusIconPlugin + * + * Create "Functions" submenu items + * + * Returns: a new #GtkWidget menu + */ +GtkWidget *statusicon_menu_functions(RmStatusIconPlugin *statusicon_plugin) +{ + GtkWidget *menu; + GtkWidget *item; + + menu = gtk_menu_new(); + + /* Functions - Copy IP adress */ + item = gtk_menu_item_new_with_label(_("Copy IP address")); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(statusicon_copy_ip_activate_cb), statusicon_plugin); + + /* Functions - Reconnect */ + item = gtk_menu_item_new_with_label(_("Reconnect")); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(statusicon_reconnect_activate_cb), statusicon_plugin); + + return menu; +} + +/** + * statusicon_journal_activate_cb: + * @widget: a #GtkWidget + * @user_data: a #RmStatusIconPlugin + * + * Acticates action "journal" + */ +void statusicon_journal_activate_cb(GtkWidget *widget, gpointer user_data) +{ + RmStatusIconPlugin *statusicon_plugin = user_data; + + gchar *iconname = g_strconcat("roger-", g_settings_get_string(statusicon_plugin->settings, "default-icon"), NULL); + gtk_status_icon_set_from_icon_name(statusicon_plugin->statusicon, iconname); + g_free(iconname); + + g_action_activate(statusicon_plugin->journal, NULL); +} + +/** + * statusicon_phone_activate_cb: + * @widget: a #GtkWidget + * @user_data: a #RmStatusIconPlugin + * + * Acticates action "phone" + */ +void statusicon_phone_activate_cb(GtkWidget *widget, gpointer user_data) +{ + RmStatusIconPlugin *statusicon_plugin = user_data; + + g_action_activate(statusicon_plugin->phone, NULL); +} + +/** + * statusicon_contacts_activate_cb: + * @widget: a #GtkWidget + * @user_data: a #RmStatusIconPlugin + * + * Acticates action "contacts" + */ +void statusicon_contacts_activate_cb(GtkWidget *widget, + gpointer user_data) +{ + RmStatusIconPlugin *statusicon_plugin = user_data; + + g_action_activate(statusicon_plugin->contacts, NULL); +} + +/** + * statusicon_plugins_activate_cb: + * @widget: a #GtkWidget + * @user_data: a #RmStatusIconPlugin + * + * Acticates action "plugins" + */ +void statusicon_plugins_activate_cb(GtkWidget *widget, + gpointer user_data) +{ + RmStatusIconPlugin *statusicon_plugin = user_data; + + g_action_activate(statusicon_plugin->plugins, NULL); +} + +/** + * statusicon_about_activate_cb: + * @widget: a #GtkWidget + * @user_data: a #RmStatusIconPlugin + * + * Acticates action "about" + */ +void statusicon_about_activate_cb(GtkWidget *widget, gpointer user_data) +{ + RmStatusIconPlugin *statusicon_plugin = user_data; + + g_action_activate(statusicon_plugin->about, NULL); +} + +/** + * statusicon_quit_activate_cb: + * @widget: a #GtkWidget + * @user_data: a #RmStatusIconPlugin + * + * Acticates action "quit" + */ +void statusicon_quit_activate_cb(GtkWidget *widget, gpointer user_data) +{ + RmStatusIconPlugin *statusicon_plugin = user_data; + + g_action_activate(statusicon_plugin->quit, NULL); +} + +/** + * statusicon_preferences_activate_cb: + * @widget: a #GtkWidget + * @user_data: a #RmStatusIconPlugin + * + * Acticates action "preferences" + */ +void statusicon_preferences_activate_cb(GtkWidget *widget, gpointer user_data) +{ + RmStatusIconPlugin *statusicon_plugin = user_data; + + g_action_activate(statusicon_plugin->preferences, NULL); +} + +/** + * statusicon_popup_menu_cb: + * @statusicon: a #GtkStatusIcon + * @button: button number + * @activate_time: activation time + * @user_data: a #RmStatusIconPlugin + * + * Create and show popup menu + */ +void statusicon_popup_menu_cb(GtkStatusIcon *statusicon, guint button, guint activate_time, gpointer user_data) +{ + GtkWidget *menu; + GtkWidget *item; + GtkWidget *submenu; + RmStatusIconPlugin *statusicon_plugin = user_data; + + menu = gtk_menu_new(); + + /* Journal */ + item = gtk_menu_item_new_with_label(_("Journal")); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(statusicon_journal_activate_cb), statusicon_plugin); + + /* Contacts */ + item = gtk_menu_item_new_with_label(_("Contacts")); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(statusicon_contacts_activate_cb), statusicon_plugin); + + /* Phone */ + item = gtk_menu_item_new_with_label(_("Phone")); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(statusicon_phone_activate_cb), statusicon_plugin); + + /* Functions */ + item = gtk_menu_item_new_with_label(_("Functions")); + submenu = statusicon_menu_functions(statusicon_plugin); + gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), submenu); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + + /* Separator */ + item = gtk_separator_menu_item_new(); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + + /* Plugins */ + item = gtk_menu_item_new_with_label(_("Plugins")); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(statusicon_plugins_activate_cb), statusicon_plugin); + + /* Preferences */ + item = gtk_menu_item_new_with_label(_("Preferences")); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(statusicon_preferences_activate_cb), statusicon_plugin); + + /* Separator */ + item = gtk_separator_menu_item_new(); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + + /* About */ + item = gtk_menu_item_new_with_label(_("About")); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(statusicon_about_activate_cb), statusicon_plugin); + + /* Quit */ + item = gtk_menu_item_new_with_label(_("Quit")); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(statusicon_quit_activate_cb), statusicon_plugin); + + gtk_widget_show_all(menu); + + gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, statusicon_plugin->statusicon, button, activate_time); +} + +/** + * statusicon_connection_changed_cb: + * @object: a #RmObject + * @event: event id + * @connection: a #RmConnection + * @user_data: a #RmStatusIconPlugin + * + * "connection-changed" callback function. Set icon to notify in case of missed calls. + */ +void statusicon_connection_changed_cb(RmObject *object, gint event, RmConnection *connection, gpointer user_data) +{ + RmStatusIconPlugin *statusicon_plugin = user_data; + + if ((connection->type & ~RM_CONNECTION_TYPE_SOFTPHONE) == RM_CONNECTION_TYPE_MISSED) { + gchar *iconname = g_strconcat("roger-", g_settings_get_string(statusicon_plugin->settings, "notify-icon"), NULL); + gtk_status_icon_set_from_icon_name(statusicon_plugin->statusicon, iconname); + g_free(iconname); + } +} + +/** + * statusicon_combobox_default_changed_cb: + * @widget: a #GtkWidget + * @user_data: a #RmStatusIconPlugin + * + * "connection-default-icon" callback function. Changes default icon type. + */ +void statusicon_combobox_default_changed_cb(GtkComboBox *widget, gpointer user_data) +{ + /* GSettings has not written the changed value to its container, so we explicit set it here */ + RmStatusIconPlugin *statusicon_plugin = user_data; + + g_settings_set_string(statusicon_plugin->settings, "default-icon", gtk_combo_box_get_active_id(GTK_COMBO_BOX(widget))); + + /* Update statusicon icon */ + gchar *iconname = g_strconcat("roger-", g_settings_get_string(statusicon_plugin->settings, "default-icon"), NULL); + gtk_status_icon_set_from_icon_name(statusicon_plugin->statusicon, iconname); + g_free(iconname); +} + +/** + * statusicon_combobox_notify_changed_cb: + * @widget: a #GtkWidget + * @user_data: a #RmStatusIconPlugin + * + * "connection-notify-icon" callback function. + */ +void statusicon_combobox_notify_changed_cb(GtkComboBox *widget, gpointer user_data) +{ + /* GSettings has not written the changed value to its container, so we explicit set it here */ + RmStatusIconPlugin *statusicon_plugin = user_data; + + g_settings_set_string(statusicon_plugin->settings, "notify-icon", gtk_combo_box_get_active_id(GTK_COMBO_BOX(widget))); +} + +/** + * add_statusicon: + * @user_data: a #RmStatusIconPlugin + * + * Create and add new statusicon plugin + * + * Returns: %FALSE + */ +static gboolean add_statusicon(gpointer user_data) +{ + RmStatusIconPlugin *statusicon_plugin = user_data; + + gchar *iconname = g_strconcat("roger-", g_settings_get_string(statusicon_plugin->settings, "default-icon"), NULL); + statusicon_plugin->statusicon = gtk_status_icon_new_from_icon_name(iconname); + g_free(iconname); + + g_signal_connect(G_OBJECT(statusicon_plugin->statusicon), "popup-menu", G_CALLBACK(statusicon_popup_menu_cb), statusicon_plugin); + g_signal_connect(G_OBJECT(statusicon_plugin->statusicon), "activate", G_CALLBACK(statusicon_journal_activate_cb), statusicon_plugin); + + gtk_status_icon_set_tooltip_text(statusicon_plugin->statusicon, _("Roger Router")); + gtk_status_icon_set_visible(statusicon_plugin->statusicon, TRUE); + + return FALSE; +} + +/** + * statusicon_set_hide_on_quit: + * @statusicon_plugin: a #RmStatusIconPlugin + * @state: hide state + */ +static void statusicon_set_hide_on_quit(RmStatusIconPlugin *statusicon_plugin, gboolean state) +{ + g_action_activate(statusicon_plugin->hideonquit, g_variant_new_boolean(state)); +} + +/** + * statusicon_set_hide_on_start: + * @statusicon_plugin: a #RmStatusIconPlugin + * @state: start state + */ +static void statusicon_set_hide_on_start(RmStatusIconPlugin *statusicon_plugin, gboolean state) +{ + g_action_activate(statusicon_plugin->hideonstart, g_variant_new_boolean(state)); +} + +/** + * statusicon_plugin_init: + * @plugin: a #RmPlugin + * + * Initialize statusicon plugin + * + * Returns: %TRUE + */ +gboolean statusicon_plugin_init(RmPlugin *plugin) +{ + RmStatusIconPlugin *statusicon_plugin = g_slice_new0(RmStatusIconPlugin); + GApplication *app = g_application_get_default(); + + statusicon_plugin->preferences = g_action_map_lookup_action(G_ACTION_MAP(app), "preferences"); + statusicon_plugin->contacts = g_action_map_lookup_action(G_ACTION_MAP(app), "addressbook"); + statusicon_plugin->quit = g_action_map_lookup_action(G_ACTION_MAP(app), "quit"); + statusicon_plugin->phone = g_action_map_lookup_action(G_ACTION_MAP(app), "phone"); + statusicon_plugin->about = g_action_map_lookup_action(G_ACTION_MAP(app), "about"); + statusicon_plugin->plugins = g_action_map_lookup_action(G_ACTION_MAP(app), "plugins"); + statusicon_plugin->copy_ip = g_action_map_lookup_action(G_ACTION_MAP(app), "copy_ip"); + statusicon_plugin->reconnect = g_action_map_lookup_action(G_ACTION_MAP(app), "reconnect"); + statusicon_plugin->journal = g_action_map_lookup_action(G_ACTION_MAP(app), "journal"); + statusicon_plugin->hideonquit = g_action_map_lookup_action(G_ACTION_MAP(app), "hideonquit"); + statusicon_plugin->hideonstart = g_action_map_lookup_action(G_ACTION_MAP(app), "hideonstart"); + + statusicon_set_hide_on_quit(statusicon_plugin, TRUE); + + statusicon_plugin->settings = rm_settings_new("org.tabos.roger.plugins.statusicon"); + + /* Connect to "connection-changed" signal */ + plugin->priv = statusicon_plugin; + statusicon_plugin->signal_id = g_signal_connect(G_OBJECT(rm_object), "connection-changed", G_CALLBACK(statusicon_connection_changed_cb), statusicon_plugin); + + if (g_settings_get_boolean(statusicon_plugin->settings, "hide-journal-on-startup")) { + statusicon_set_hide_on_start(statusicon_plugin, TRUE); + } + + g_idle_add(add_statusicon, statusicon_plugin); + + return TRUE; +} + +/** + * statusicon_plugin_shutdown: + * @plugin: a #RmPlugin + * + * Shutdown statusicon plugin + * + * Returns: %TRUE + */ +gboolean statusicon_plugin_shutdown(RmPlugin *plugin) +{ + RmStatusIconPlugin *statusicon_plugin = plugin->priv; + + /* Unregister delete handler */ + statusicon_set_hide_on_quit(statusicon_plugin, FALSE); + + /* If signal handler is connected: disconnect */ + if (g_signal_handler_is_connected(G_OBJECT(rm_object), statusicon_plugin->signal_id)) { + g_signal_handler_disconnect(G_OBJECT(rm_object), statusicon_plugin->signal_id); + } + + gtk_status_icon_set_visible(statusicon_plugin->statusicon, FALSE); + g_clear_object(&statusicon_plugin->statusicon); + + statusicon_plugin->statusicon = NULL; + plugin->priv = NULL; + + return TRUE; +} + +/** + * statusicon_plugin_configure: + * @plugin: a #RmPlugin + * + * Configure plugin + * + * Returns: Configuration widget + */ +gpointer statusicon_plugin_configure(RmPlugin *plugin) +{ + GtkWidget *settings_grid; + GtkWidget *label; + GtkWidget *switch_journal; + GtkWidget *combo_box_default; + GtkWidget *combo_box_notify; + GtkWidget *group; + RmStatusIconPlugin *statusicon_plugin = plugin->priv; + + /* Settings grid */ + settings_grid = gtk_grid_new(); + gtk_grid_set_row_spacing(GTK_GRID(settings_grid), 5); + gtk_grid_set_column_spacing(GTK_GRID(settings_grid), 15); + + /* Create label and switch for "Hide Journal on startup" and add to grid */ + label = ui_label_new(_("Hide Journal on startup")); + gtk_grid_attach(GTK_GRID(settings_grid), label, 0, 0, 1, 1); + + switch_journal = gtk_switch_new(); + gtk_switch_set_active(GTK_SWITCH(switch_journal), g_settings_get_boolean(statusicon_plugin->settings, "hide-journal-on-startup")); + gtk_widget_set_halign(switch_journal, GTK_ALIGN_START); + gtk_grid_attach(GTK_GRID(settings_grid), switch_journal, 1, 0, 1, 1); + + /* Create label and combo_box for "Default Icon" and add to grid */ + label = ui_label_new(_("Default Icon")); + gtk_grid_attach(GTK_GRID(settings_grid), label, 0, 1, 1, 1); + + combo_box_default = gtk_combo_box_text_new(); + gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(combo_box_default), "default", _("default")); + gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(combo_box_default), "mono-dark", _("mono-dark")); + gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(combo_box_default), "mono-lite", _("mono-lite")); + gtk_grid_attach(GTK_GRID(settings_grid), combo_box_default, 1, 1, 1, 1); + + /* Create label and combo_box for "Notify Icon" and add to grid */ + label = ui_label_new(_("Notify Icon")); + gtk_grid_attach(GTK_GRID(settings_grid), label, 0, 2, 1, 1); + + combo_box_notify = gtk_combo_box_text_new(); + gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(combo_box_notify), "notify", _("default")); + gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(combo_box_notify), "mono-dark", _("mono-dark")); + gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(combo_box_notify), "mono-lite", _("mono-lite")); + gtk_grid_attach(GTK_GRID(settings_grid), combo_box_notify, 1, 2, 1, 1); + + /* Set signals */ + g_settings_bind(statusicon_plugin->settings, "hide-journal-on-startup", switch_journal, "active", G_SETTINGS_BIND_DEFAULT); + g_settings_bind(statusicon_plugin->settings, "default-icon", combo_box_default, "active-id", G_SETTINGS_BIND_DEFAULT); + g_settings_bind(statusicon_plugin->settings, "notify-icon", combo_box_notify, "active-id", G_SETTINGS_BIND_DEFAULT); + + g_signal_connect(combo_box_default, "changed", G_CALLBACK(statusicon_combobox_default_changed_cb), statusicon_plugin); + g_signal_connect(combo_box_notify, "changed", G_CALLBACK(statusicon_combobox_notify_changed_cb), statusicon_plugin); + + group = ui_group_create(settings_grid, _("Settings for Status icon GTK"), TRUE, TRUE); + + return group; +} + +G_GNUC_END_IGNORE_DEPRECATIONS + +RM_PLUGIN_CONFIG(statusicon) diff -Nru roger-router-1.8.14/plugins/statusicon/statusicon.desktop.in roger-router-2.1.6/plugins/statusicon/statusicon.desktop.in --- roger-router-1.8.14/plugins/statusicon/statusicon.desktop.in 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/statusicon/statusicon.desktop.in 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,9 @@ +[Plugin] +Module=statusicon +Name=Status icon GTK +Comment=Status icon plugin using GTK following FreeDesktop standard +Authors=Jan-Michael Brummer +Copyright=Copyright © 2012 Jan-Michael Brummer +Website=http://www.tabos.org/ +Help=http://www.tabos.org/forum/ + diff -Nru roger-router-1.8.14/plugins/thunderbird/meson.build roger-router-2.1.6/plugins/thunderbird/meson.build --- roger-router-1.8.14/plugins/thunderbird/meson.build 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/thunderbird/meson.build 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,23 @@ +thunderbird_sources = [] +thunderbird_sources += 'thunderbird.c' + +thunderbird_dep = [] +thunderbird_dep += plugins_dep + +thunderbird_inc = [roger_inc] + +libthunderbird = shared_module('thunderbird', + thunderbird_sources, + include_directories : thunderbird_inc, + dependencies : thunderbird_dep, + install : true, + install_dir : get_option('prefix') + '/' + get_option('libdir') + '/roger/thunderbird/') + +custom_target('thunderbird.plugin', + output : 'thunderbird.plugin', + input : 'thunderbird.desktop.in', + command : [msgfmt, '--desktop', '--template', '@INPUT@', '-d', podir, '-o', '@OUTPUT@'], + install : true, + install_dir : get_option('prefix') + '/' + get_option('libdir') + '/roger/thunderbird/') + +install_data('org.tabos.roger.plugins.thunderbird.gschema.xml', install_dir : 'share/glib-2.0/schemas') diff -Nru roger-router-1.8.14/plugins/thunderbird/org.tabos.roger.plugins.thunderbird.gschema.xml roger-router-2.1.6/plugins/thunderbird/org.tabos.roger.plugins.thunderbird.gschema.xml --- roger-router-1.8.14/plugins/thunderbird/org.tabos.roger.plugins.thunderbird.gschema.xml 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/thunderbird/org.tabos.roger.plugins.thunderbird.gschema.xml 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,7 @@ + + + + '' + + + diff -Nru roger-router-1.8.14/plugins/thunderbird/roger-plugins-thunderbird.metainfo.xml.in roger-router-2.1.6/plugins/thunderbird/roger-plugins-thunderbird.metainfo.xml.in --- roger-router-1.8.14/plugins/thunderbird/roger-plugins-thunderbird.metainfo.xml.in 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/thunderbird/roger-plugins-thunderbird.metainfo.xml.in 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,11 @@ + + + roger-plugins-thunderbird + org.tabos.roger.desktop + <_name>Thunderbird + <_summary>Support for Thunderbird address book + https://www.tabos.org + GPL-2.0 + GPL-2.0 + jan.brummer_AT_tabos.org + diff -Nru roger-router-1.8.14/plugins/thunderbird/thunderbird.c roger-router-2.1.6/plugins/thunderbird/thunderbird.c --- roger-router-1.8.14/plugins/thunderbird/thunderbird.c 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/thunderbird/thunderbird.c 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,1120 @@ +/* + * Roger Router + * Copyright (c) 2012-2014 Jan-Michael Brummer + * + * This file is part of Roger Router. + * + * 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; version 2 only. + * + * 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 . + */ + +#include + +#include +#include +#include + +#include + +#include + +#include +#include +#include + +void pref_notebook_add_page(GtkWidget *notebook, GtkWidget *page, gchar *title); +GtkWidget *pref_group_create(GtkWidget *box, gchar *title_str, gboolean hexpand, gboolean vexpand); + +static GSList *contacts = NULL; +static GSettings *thunderbird_settings = NULL; +static GHashTable *table = NULL; + +#define MORK_COLUMN_META "<(a=c)>" +#define DEFAULT_SCOPE 0x80 + +#define MAX_VAL 0x7FFFFFFF + +enum { + PARSE_VALUES, + PARSE_ROWS, + PARSE_COLUMNS +}; + +static gchar *mork_data = NULL; +static gint mork_pos = 0; +static gint mork_now_parsing = PARSE_VALUES; +static gint mork_next_add_value_id = MAX_VAL; +static GHashTable *mork_values = NULL; +static GHashTable *mork_columns = NULL; +static GHashTable *current_cells = NULL; + +static GHashTable *table_scope_map = NULL; +static gint num_possible = 0; +static gint num_persons = 0; +static off_t mork_size = 0; +static gint default_table_id = 1; + +/** + * \brief Get selected thunderbird addressbook + * \return thunderbird addressbook + */ +static const gchar *thunderbird_get_selected_book(void) +{ + return g_settings_get_string(thunderbird_settings, "filename"); +} + +/** + * \brief Set selected thunderbird addressbook + * \param uri thunderbird addressbook + */ +void thunderbird_set_selected_book(gchar *uri) +{ + g_settings_set_string(thunderbird_settings, "filename", uri); +} + +/** + * \brief Destroy hashtable + * \param data hashtable widget + */ +void hash_destroy(void *data) +{ + g_hash_table_destroy(data); +} + +/** + * \brief Create map structure + * \param FreeData free data function + * \return new hash table + */ +static GHashTable *create_map(GDestroyNotify notify) +{ + GHashTable *table; + + table = g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL, notify); + + return table; +} + +/** + * \brief Insert key and value into map structure, check for double entries + * \param table pointer to hash table + * \param key key value + * \param value value pointer + */ +static inline void insert_map(GHashTable *table, long key, void *value) +{ + g_hash_table_insert(table, GINT_TO_POINTER(key), value); +} + +/** + * \brief Find map entry by key + * \param table pointer to hash table + * \param key key id + * \return value of key or NULL on error + */ +static inline void *find_map_entry(GHashTable *table, int key) +{ + return g_hash_table_lookup(table, GINT_TO_POINTER(key)); +} + +/** + * \brief Find thunderbird directory + * \return string to directory + */ +static gchar *find_thunderbird_dir(void) +{ + gchar *buffer; + gchar file[256]; + gchar *path; + gchar *relative; + GString *result; + gboolean version3 = FALSE; + gboolean is_relative = TRUE; + + result = g_string_new(NULL); + snprintf(file, sizeof(file), "%s/.mozilla-thunderbird/profiles.ini", g_get_home_dir()); + + buffer = (gchar*)rm_file_load(file, NULL); + if (buffer == NULL) { + snprintf(file, sizeof(file), "%s/.thunderbird/profiles.ini", g_get_home_dir()); + buffer = (gchar*)rm_file_load(file, NULL); + version3 = TRUE; + } + + if (buffer != NULL) { + relative = strstr(buffer, "IsRelative="); + if (relative != NULL) { + is_relative = relative[11] == '1'; + } + + path = strstr(buffer, "Path"); + if (path != NULL) { + path += 5; + + if (is_relative == TRUE) { + result = g_string_append(result, g_get_home_dir()); + if (version3 == FALSE) { + result = g_string_append(result, "/.mozilla-thunderbird/"); + } else { + result = g_string_append(result, "/.thunderbird/"); + } + } + + while (path != NULL && *path != '\n') { + result = g_string_append_c(result, (gchar) * path++); + } + + while (result->str[strlen(result->str) - 1] == '\n') { + result->str[strlen(result->str) - 1] = '\0'; + } + result->str[strlen(result->str)] = '\0'; + } + g_free(buffer); + } + + return g_string_free(result, FALSE); +} + +/** + * \brief Get next gchar of buffer + * \return next gchar + */ +static inline gchar next_char(void) +{ + gchar cur = 0; + + if (mork_pos < mork_size) { + cur = mork_data[mork_pos]; + mork_pos++; + } + + return cur; +} + +/** + * \brief Check if gchar is whitespace + * \param character gchar to check + * \return 1 or 0 + */ +static gboolean is_whitespace(gchar character) +{ + switch (character) { + case ' ': + case '\t': + case '\r': + case '\n': + case '\f': + return TRUE; + default: + return FALSE; + } +} + +/** + * \brief Parse comment section + * \return 1 on success, else error + */ +static inline gboolean parse_comment(void) +{ + gchar cur = next_char(); + + if (cur != '/') { + return FALSE; + } + + while (cur != '\r' && cur != '\n' && cur) { + cur = next_char(); + } + + return TRUE; +} + +/** + * \brief Parse cell section + * \return 1 on success, else error + */ +static gboolean parse_cell(void) +{ + gboolean result = TRUE; + gboolean is_column = TRUE; + gboolean is_value_oid = FALSE; + GString *column = g_string_new_len(NULL, 4); + GString *text = g_string_new_len(NULL, 32); + int corners = 0; + gchar cur = next_char(); + + while (result && cur != ')' && cur) { + switch (cur) { + case '=': + /* From column to value */ + if (is_column) { + is_column = FALSE; + } else { + text = g_string_append_c(text, cur); + } + break; + case '$': { + gchar hex_chr[3]; + int x; + + hex_chr[0] = next_char(); + hex_chr[1] = next_char(); + hex_chr[2] = '\0'; + x = strtoul(hex_chr, 0, 16); + g_string_append_printf(text, "%c", x); + break; + } + case '\\': { + gchar next_chr = next_char(); + if (next_chr != '\r' && next_chr != '\n') { + text = g_string_append_c(text, next_chr); + } else { + /* Ignored */ + cur = next_char(); + } + break; + } + case '^': + corners++; + if (corners == 1) { + } else if (corners == 2) { + is_column = FALSE; + is_value_oid = TRUE; + } else { + text = g_string_append_c(text, cur); + } + break; + default: + if (is_column) { + column = g_string_append_c(column, cur); + } else { + text = g_string_append_c(text, cur); + } + break; + } + + cur = next_char(); + } + + int column_id = strtoul(column->str, 0, 16); + + if (mork_now_parsing != PARSE_ROWS) { + /* Dicts */ + if (text && strlen(text->str)) { + //g_debug("Text: %s, %lx, %d", text->str, column_id, mork_now_parsing == PARSE_COLUMNS); + if (mork_now_parsing == PARSE_COLUMNS) { + insert_map(mork_columns, column_id, g_strdup(text->str)); + } else { + insert_map(mork_values, column_id, g_strdup(text->str)); + } + } + } else { + if (text && strlen(text->str)) { + gint value_id = strtoul(text->str, 0, 16); + + //g_debug("is_value_oid: %d", is_value_oid); + /* Rows */ + if (is_value_oid) { + insert_map(current_cells, column_id, GINT_TO_POINTER(value_id)); + } else { + mork_next_add_value_id--; + insert_map(mork_values, mork_next_add_value_id, g_strdup(text->str)); + insert_map(current_cells, column_id, GINT_TO_POINTER(mork_next_add_value_id)); + //g_debug("text: %s", text->str); + } + } + } + + g_string_free(column, TRUE); + g_string_free(text, TRUE); + + return result; +} + +/** + * \brief Parse dictionary section + * \return 1 on success, else error + */ +static gboolean parse_dict(void) +{ + gchar cur = next_char(); + gboolean result = TRUE; + + mork_now_parsing = PARSE_VALUES; + + while (result && cur != '>' && cur) { + if (!is_whitespace(cur)) { + switch (cur) { + case '<': + if (!strncmp(mork_data + mork_pos - 1, MORK_COLUMN_META, strlen(MORK_COLUMN_META))) { + mork_now_parsing = PARSE_COLUMNS; + mork_pos += strlen(MORK_COLUMN_META) - 1; + } + break; + case '/': + result = parse_comment(); + break; + case '(': + result = parse_cell(); + break; + default: + g_warning("[%s]: error '%c'", __FUNCTION__, cur); + result = FALSE; + break; + } + } + cur = next_char(); + } + + return result; +} + +/** + * \brief Parse scope id + * \param pnText while text + * \param pid pointer to save id + * \param scope pointer to save scope + */ +static void parse_scope_id(GString *text, gint *id, gint *scope) +{ + gchar *pos; + + if ((pos = strchr(text->str, ':')) != NULL) { + gint size = pos - text->str; + gchar *id_str = NULL; + gchar *sc_str = NULL; + gint pos = size; + + id_str = g_malloc(size + 1); + strncpy(id_str, text->str, pos); + id_str[size] = '\0'; + + size = strlen(text->str) - pos; + sc_str = g_malloc(size); + strncpy(sc_str, text->str + pos + 1, size); + sc_str[size] = '\0'; + + if (size > 1 && sc_str[0] == '^') { + /*gchar *tmp = g_malloc(strlen(sc_str)); + strncpy(tmp, sc_str + 1, strlen(sc_str)); + g_free(sc_str); + sc_str = tmp;*/ + memmove(sc_str, sc_str + 1, size - 1); + } + + *id = strtoul(id_str, 0, 16); + g_free(id_str); + *scope = strtoul(sc_str, 0, 16); + g_free(sc_str); + } else { + *id = strtoul(text->str, 0, 16); + *scope = 0; + } +} + +/** + * \brief Parse meta section + * \param character current gchar + * \return 1 on success, else error + */ +static gchar parse_meta(gchar character) +{ + gchar cur = next_char(); + + while (cur != character && cur) { + cur = next_char(); + } + + return 1; +} + +/** + * \brief Set current row + * \param table_scope table scope id + * \param table_id table id + * \param row_scope row scope id + * \param row_id row id + */ +static inline void set_current_row(int table_scope, int table_id, int row_scope, int row_id) +{ + GHashTable *map; + GHashTable *tmp; + + if (!row_scope) { + row_scope = DEFAULT_SCOPE; + } + + if (!table_scope) { + table_scope = DEFAULT_SCOPE; + } + + if (table_id) { + default_table_id = table_id; + } + + if (!table_id) { + table_id = default_table_id; + } + + //g_debug("Set to %lx/%lx/%lx/%lx", table_scope, table_id, row_scope, row_id); + + /* First: Get table scope map */ + tmp = find_map_entry(table_scope_map, abs(table_scope)); + if (tmp == NULL) { + insert_map(table_scope_map, abs(table_scope), create_map(hash_destroy)); + tmp = find_map_entry(table_scope_map, abs(table_scope)); + if (tmp == NULL) { + g_warning("Could not create table scope map!!"); + return; + } + } + map = tmp; + + /* Second: Get table id map */ + tmp = find_map_entry(map, abs(table_id)); + if (tmp == NULL) { + insert_map(map, abs(table_id), create_map(hash_destroy)); + tmp = find_map_entry(map, abs(table_id)); + if (tmp == NULL) { + g_warning("Could not create table id map!!"); + return; + } + } + map = tmp; + + /* Third: Get row scope map */ + tmp = find_map_entry(map, abs(row_scope)); + if (tmp == NULL) { + insert_map(map, abs(row_scope), create_map(hash_destroy)); + tmp = find_map_entry(map, abs(row_scope)); + if (tmp == NULL) { + g_warning("Could not create row scope map!!"); + return; + } + } + map = tmp; + + /* Fourth: Get row id map */ + tmp = find_map_entry(map, abs(row_id)); + if (tmp == NULL) { + insert_map(map, abs(row_id), create_map(NULL)); + tmp = find_map_entry(map, abs(row_id)); + if (tmp == NULL) { + g_warning("Could not create row id map!!"); + return; + } + } + map = tmp; + + current_cells = map; +} + +/** + * \brief Parse row + * \param table_id table id + * \param table_scope table scope id + * \return 1 on success, else error + */ +static gchar parse_row(int table_id, int table_scope) +{ + gchar result = 1; + gchar cur = next_char(); + GString *text = g_string_new(NULL); + int id, scope; + + mork_now_parsing = PARSE_ROWS; + + while (cur != '(' && cur != ']' && cur != '[' && cur) { + if (!is_whitespace(cur)) { + text = g_string_append_c(text, cur); + } + cur = next_char(); + } + + parse_scope_id(text, &id, &scope); + set_current_row(table_scope, table_id, scope, id); + + while (result && cur != ']' && cur) { + if (!is_whitespace(cur)) { + switch (cur) { + case '(': + result = parse_cell(); + break; + case '[': + result = parse_meta(']'); + break; + default: + result = 0; + break; + } + } + cur = next_char(); + } + + g_string_free(text, TRUE); + + return result; +} + +/** + * \brief Parse table section + * \return 1 on success, else error + */ +static gboolean parse_table(void) +{ + gboolean result = TRUE; + GString *text_id = g_string_new(NULL); + gint id = 0, scope = 0; + gchar cur = next_char(); + + while (cur != '{' && cur != '[' && cur != '}' && cur) { + if (!is_whitespace(cur)) { + text_id = g_string_append_c(text_id, cur); + } + cur = next_char(); + } + + parse_scope_id(text_id, &id, &scope); + + while (result && cur != '}' && cur) { + if (!is_whitespace(cur)) { + switch (cur) { + case '{': + result = parse_meta('}'); + break; + case '[': + result = parse_row(id, scope); + break; + case '-': + case '+': + break; + default: { + GString *just_id = g_string_new(NULL); + + while (!is_whitespace(cur) && cur) { + just_id = g_string_append_c(just_id, cur); + cur = next_char(); + + if (cur == '}') { + g_string_free(just_id, TRUE); + g_string_free(text_id, TRUE); + return result; + } + } + + int just_id_num = 0, just_scope_num = 0; + parse_scope_id(just_id, &just_id_num, &just_scope_num); + set_current_row(scope, id, just_scope_num, just_id_num); + g_string_free(just_id, TRUE); + break; + } + } + } + cur = next_char(); + } + + g_string_free(text_id, TRUE); + + return result; +} + +/** + * \brief Parse group section + * \return 1 on success, else error + */ +static gchar parse_group(void) +{ + return parse_meta('@'); +} + +/** + * \brief Parse mork code + * \return 1 on success, else error + */ +static gboolean parse_mork(void) +{ + gboolean result = TRUE; + gchar cur = 0; + + cur = next_char(); + + while (result && cur) { + if (!is_whitespace(cur)) { + switch (cur) { + case '/': + /* Comment */ + result = parse_comment(); + break; + case '<': + /* Dict */ + result = parse_dict(); + break; + case '{': + /* Table */ + result = parse_table(); + break; + case '@': + /* Group */ + result = parse_group(); + break; + case '[': + /* Row */ + result = parse_row(0, 0); + break; + default: + g_warning("Error: %c", cur); + result = FALSE; + break; + } + } + cur = next_char(); + } + + g_free(mork_data); + mork_data = NULL; + + return result; +} + +/** + * \brief Get column entry by key + * \param key key id + * \return column entry + */ +static inline gchar *get_column(int key) +{ + return g_hash_table_lookup(mork_columns, GINT_TO_POINTER(key)); +} + +/** + * \brief Get value entry by key + * \param key key id + * \return value entry + */ +static inline gchar *get_value(int key) +{ + return g_hash_table_lookup(mork_values, GINT_TO_POINTER(key)); +} + +/** + * \brief Parse person data + * \param map pointer to map structure holding person informations + * \param pId id + */ +static void parse_person(GHashTable *map, gpointer pId) +{ + //const gchar *check = NULL; + //GdkPixbuf *image = NULL; + const gchar *home_street = NULL; + const gchar *home_city = NULL; + const gchar *home_zip = NULL; + const gchar *business_street = NULL; + const gchar *business_city = NULL; + const gchar *business_zip = NULL; + GHashTableIter iter5; + gpointer key5, value5; + RmContact *contact = NULL; + RmPhoneNumber *number; + const gchar *thunderbird_dir = thunderbird_get_selected_book(); + + if (thunderbird_dir) { + thunderbird_dir = g_path_get_dirname(thunderbird_dir); + } + + num_possible++; + +#ifdef THUNDERBIRD_DEBUG + g_debug("***** possible: %d", num_possible); +#endif + + contact = g_slice_new0(RmContact); + + g_hash_table_iter_init(&iter5, map); + while (g_hash_table_iter_next(&iter5, &key5, &value5)) { + if (GPOINTER_TO_INT(key5) == 0) { + continue; + } + const gchar *column = get_column(GPOINTER_TO_INT(key5)); + const gchar *value = get_value(GPOINTER_TO_INT(value5)); +#ifdef THUNDERBIRD_DEBUG + g_debug("'%s' = '%s'", column, value); +#endif + + if (!strcmp(column, "HomePhone")) { + number = g_slice_new(RmPhoneNumber); + number->number = rm_number_full(value, FALSE); + number->type = RM_PHONE_NUMBER_TYPE_HOME; + contact->numbers = g_slist_prepend(contact->numbers, number); + } else if (!strcmp(column, "WorkPhone")) { + number = g_slice_new(RmPhoneNumber); + number->number = rm_number_full(value, FALSE); + number->type = RM_PHONE_NUMBER_TYPE_WORK; + contact->numbers = g_slist_prepend(contact->numbers, number); + } else if (!strcmp(column, "FaxNumber")) { + number = g_slice_new(RmPhoneNumber); + number->number = rm_number_full(value, FALSE); + number->type = RM_PHONE_NUMBER_TYPE_FAX_HOME; + contact->numbers = g_slist_prepend(contact->numbers, number); + } else if (!strcmp(column, "CellularNumber")) { + number = g_slice_new(RmPhoneNumber); + number->number = rm_number_full(value, FALSE); + number->type = RM_PHONE_NUMBER_TYPE_MOBILE; + contact->numbers = g_slist_prepend(contact->numbers, number); + } else if (!strcmp(column, "DisplayName")) { + contact->name = g_strdup(value); + } else if (!strcmp(column, "HomeAddress")) { + home_street = value; + } else if (!strcmp(column, "HomeCity")) { + home_city = value; + } else if (!strcmp(column, "HomeZipCode")) { + home_zip = value; + } else if (!strcmp(column, "WorkAddress")) { + business_street = value; + } else if (!strcmp(column, "WorkCity")) { + business_city = value; + } else if (!strcmp(column, "WorkZipCode")) { + business_zip = value; + } else if (!strcmp(column, "PhotoName")) { + gchar *file_name = g_build_filename(thunderbird_dir, "Photos", value, NULL); + + contact->image = gdk_pixbuf_new_from_file(file_name, NULL); + g_free(file_name); + } + } + + /* Do not add entries without name */ + if (RM_EMPTY_STRING(contact->name)) { + return; + } + + if (home_city || home_zip || home_street) { + RmContactAddress *address = g_slice_new0(RmContactAddress); + + address->city = g_strdup(home_city ? home_city : ""); + address->zip = g_strdup(home_zip ? home_zip : ""); + address->street = g_strdup(home_street ? home_street : ""); + address->type = 0; + + contact->addresses = g_slist_prepend(contact->addresses, address); + } + + if (business_city || business_zip || business_street) { + RmContactAddress *address = g_slice_new0(RmContactAddress); + + address->city = g_strdup(business_city ? business_city : ""); + address->zip = g_strdup(business_zip ? business_zip : ""); + address->street = g_strdup(business_street ? business_street : ""); + address->type = 1; + + contact->addresses = g_slist_prepend(contact->addresses, address); + } + + contacts = g_slist_insert_sorted(contacts, contact, rm_contact_name_compare); + num_persons++; +} + +/** + * \brief Parse tables for important informations + */ +static void parse_tables(void) +{ + GHashTable *tables = table_scope_map; + + if (tables != NULL) { + GHashTableIter iter1; + gpointer key1, value1; + + g_hash_table_iter_init(&iter1, tables); + while (g_hash_table_iter_next(&iter1, &key1, &value1)) { + if (GPOINTER_TO_INT(key1) == 0) { + //continue; + } + + GHashTable *rows = value1; + if (rows != NULL) { + GHashTableIter iter2; + gpointer key2, value2; + + g_hash_table_iter_init(&iter2, rows); + while (g_hash_table_iter_next(&iter2, &key2, &value2)) { + if (GPOINTER_TO_INT(key2) == 0) { + //continue; + } + + GHashTable *rows2 = value2; + if (rows2 != NULL) { + GHashTableIter iter3; + gpointer key3, value3; + + g_hash_table_iter_init(&iter3, rows2); + while (g_hash_table_iter_next(&iter3, &key3, &value3)) { + if (GPOINTER_TO_INT(key3) == 0) { + //continue; + } + + GHashTable *rows3 = value3; + if (rows3 != NULL) { + GHashTableIter iter4; + gpointer key4, value4; + + g_hash_table_iter_init(&iter4, rows3); + while (g_hash_table_iter_next(&iter4, &key4, &value4)) { + if (GPOINTER_TO_INT(key4) == 0) { + //continue; + } + + GHashTable *rows4 = value4; + if (rows4 != NULL) { + parse_person(rows4, key4); + } + } + } + } + } + } + } + } + } +} + +/** + * \brief Open thunderbird address book + * \param book address book file name + */ +static void thunderbird_open_book(gchar *book) +{ + int file; + off_t size; + + file = open(book, O_RDONLY); + if (file == -1) { + return; + } + + size = lseek(file, 0, SEEK_END); + if (size == -1) { + close(file); + return; + } + + lseek(file, 0, SEEK_SET); + + mork_data = g_malloc(size); + if (mork_data != NULL) { + mork_size = size; + if (read(file, mork_data, size) == size) { +#ifdef THUNDERBIRD_DEBUG + g_debug("Parsing mork"); +#endif + parse_mork(); +#ifdef THUNDERBIRD_DEBUG + g_debug("Parsing tables"); +#endif + parse_tables(); +#ifdef THUNDERBIRD_DEBUG + g_debug("Done"); +#endif + } + } + + close(file); +} + +/** + * \brief Read thunderbird book + * \return error code + */ +static int thunderbird_read_book(void) +{ + const gchar *book; + gchar file[256]; + + num_persons = 0; + num_possible = 0; + + mork_data = NULL; + mork_pos = 0; + mork_now_parsing = PARSE_VALUES; + mork_next_add_value_id = MAX_VAL; + mork_values = NULL; + mork_columns = NULL; + current_cells = NULL; + table_scope_map = NULL; + default_table_id = 1; + + mork_values = create_map(free); + mork_columns = create_map(free); + table_scope_map = create_map(hash_destroy); + + book = thunderbird_get_selected_book(); + memset(file, 0, sizeof(file)); + strncpy(file, book, sizeof(file) - 1); + +#ifdef THUNDERBIRD_DEBUG + g_debug("Thunderbird book (%s)", file); +#endif + thunderbird_open_book(file); + + g_hash_table_destroy(table_scope_map); + g_hash_table_destroy(mork_columns); + g_hash_table_destroy(mork_values); + +#ifdef THUNDERBIRD_DEBUG + g_debug("%d entries!", num_possible); + g_debug("%d persons imported!", num_persons); +#endif + + return 0; +} + +GSList *thunderbird_get_contacts(void) +{ + GSList *list = contacts; + + return list; +} + +gboolean thunderbird_reload_contacts(void) +{ + contacts = NULL; + thunderbird_read_book(); + + return TRUE; +} + +gchar *thunderbird_get_active_book_name(void) +{ + return g_strdup("Thunderbird"); +} + + +gchar **thunderbird_get_sub_books(void) +{ + gchar **ret = NULL; + const gchar *name = thunderbird_get_selected_book(); + + if (name) { + ret = rm_strv_add(ret, name); + } + + return ret; +} + +gboolean thunderbird_set_sub_book(gchar *name) +{ + return TRUE; +} + +RmAddressBook thunderbird_book = { + "Thunderbird", + thunderbird_get_active_book_name, + thunderbird_get_contacts, + NULL,//thunderbird_remove_contact, + NULL,//thunderbird_save_contact, + thunderbird_get_sub_books, + thunderbird_set_sub_book +}; + +gboolean thunderbird_plugin_init(RmPlugin *plugin) +{ + thunderbird_settings = rm_settings_new("org.tabos.roger.plugins.thunderbird"); + + table = g_hash_table_new(g_str_hash, g_str_equal); + + thunderbird_read_book(); + + rm_addressbook_register(&thunderbird_book); + + return TRUE; +} + +gboolean thunderbird_plugin_shutdown(RmPlugin *plugin) +{ + rm_addressbook_unregister(&thunderbird_book); + g_clear_object(&thunderbird_settings); + + if (table) { + g_hash_table_destroy(table); + } + + return TRUE; +} + +static void thunderbird_filename_button_clicked_cb(GtkButton *button, gpointer user_data) +{ + GtkFileChooserNative *dialog = gtk_file_chooser_native_new(_("Select mab file"), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, NULL, NULL); + GtkFileFilter *filter; + const gchar *book; + gchar *dir; + gchar file[256]; + + filter = gtk_file_filter_new(); + gtk_file_filter_add_pattern(filter, "*.mab"); + + gtk_file_chooser_set_filter(GTK_FILE_CHOOSER(dialog), filter); + + book = thunderbird_get_selected_book(); + if (book != NULL && strlen(book) > 0) { + gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dialog), book); + } else { + dir = find_thunderbird_dir(); + snprintf(file, sizeof(file), "%s/abook.mab", dir); + + gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dialog), file); + g_free(dir); + } + + if (gtk_native_dialog_run(GTK_NATIVE_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) { + gchar *folder = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)); + + gtk_entry_set_text(GTK_ENTRY(user_data), folder); + contacts = NULL; + thunderbird_set_selected_book(folder); + + thunderbird_read_book(); + + g_free(folder); + } + + g_object_unref(dialog); +} + +gpointer thunderbird_plugin_configure(RmPlugin *plugin) +{ + GtkWidget *grid = gtk_grid_new(); + GtkWidget *group; + GtkWidget *report_dir_label; + + /* Set standard spacing to 5 */ + gtk_grid_set_row_spacing(GTK_GRID(grid), 5); + gtk_grid_set_column_spacing(GTK_GRID(grid), 15); + + report_dir_label = ui_label_new(_("Thunderbird file")); + gtk_grid_attach(GTK_GRID(grid), report_dir_label, 0, 1, 1, 1); + + GtkWidget *report_dir_entry = gtk_entry_new(); + GtkWidget *report_dir_button = gtk_button_new_with_label(_("Select")); + + gtk_widget_set_hexpand(report_dir_entry, TRUE); + g_settings_bind(thunderbird_settings, "filename", report_dir_entry, "text", G_SETTINGS_BIND_DEFAULT); + + g_signal_connect(report_dir_button, "clicked", G_CALLBACK(thunderbird_filename_button_clicked_cb), report_dir_entry); + + gtk_grid_attach(GTK_GRID(grid), report_dir_entry, 1, 1, 1, 1); + gtk_grid_attach(GTK_GRID(grid), report_dir_button, 2, 1, 1, 1); + + group = ui_group_create(grid, _("Contact book"), TRUE, FALSE); + + return group; +} + +RM_PLUGIN_CONFIG(thunderbird) diff -Nru roger-router-1.8.14/plugins/thunderbird/thunderbird.desktop.in roger-router-2.1.6/plugins/thunderbird/thunderbird.desktop.in --- roger-router-1.8.14/plugins/thunderbird/thunderbird.desktop.in 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/thunderbird/thunderbird.desktop.in 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,8 @@ +[Plugin] +Module=thunderbird +Name=Thunderbird +Comment=Thunderbird address book support +Authors=Jan-Michael Brummer +Copyright=Copyright © 2013 Jan-Michael Brummer +Website=http://www.tabos.org/ +Help=http://www.tabos.org/forum/ diff -Nru roger-router-1.8.14/plugins/vcard/Example2.1.vcf roger-router-2.1.6/plugins/vcard/Example2.1.vcf --- roger-router-1.8.14/plugins/vcard/Example2.1.vcf 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/vcard/Example2.1.vcf 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,15 @@ +BEGIN:VCARD +VERSION:2.1 +N:Gump;Forrest +FN:Forrest Gump +ORG:Bubba Gump Shrimp Co. +TITLE:Shrimp Man +TEL;WORK;VOICE:(111) 555-1212 +TEL;HOME;VOICE:(404) 555-1212 +ADR;WORK:;;100 Waters Edge;Baytown;LA;30314;United States of America +LABEL;WORK;ENCODING=QUOTED-PRINTABLE:100 Waters Edge=0D=0ABaytown, LA 30314=0D=0AUnited States of America +ADR;HOME:;;42 Plantation St.;Baytown;LA;30314;United States of America +LABEL;HOME;ENCODING=QUOTED-PRINTABLE:42 Plantation St.=0D=0ABaytown, LA 30314=0D=0AUnited States of America +EMAIL;PREF;INTERNET;HOME:forrestgump@example.com +REV:20080424T195243Z +END:VCARD \ No newline at end of file diff -Nru roger-router-1.8.14/plugins/vcard/Example3.0.vcf roger-router-2.1.6/plugins/vcard/Example3.0.vcf --- roger-router-1.8.14/plugins/vcard/Example3.0.vcf 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/vcard/Example3.0.vcf 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,36 @@ +BEGIN:VCARD +VERSION:3.0 +N:Gump;Forrest +FN:Forrest Gump +ORG:Bubba Gump Shrimp Co. +TITLE:Shrimp Man +PHOTO;VALUE=URL;TYPE=GIF:http://upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Example_svg.svg/200px-Example_svg.svg.png +TEL;TYPE=WORK,VOICE:(111) 555-1212 +TEL;TYPE=HOME,VOICE:(404) 555-1212 +TEL;TYPE=HOME,TYPE=VOICE:(404) 555-1213 +ADR;TYPE=WORK:;;100 Waters Edge;Baytown;LA;30314;United States of America +LABEL;TYPE=WORK:100 Waters Edge\nBaytown, LA 30314\nUnited States of America +ADR;TYPE=HOME:;;42 Plantation St.;Baytown;LA;30314;United States of America +LABEL;TYPE=HOME:42 Plantation St.\nBaytown, LA 30314\nUnited States of America +EMAIL;TYPE=PREF,INTERNET:forrestgump@example.com +AGENT;VALUE=uri: + CID:JQPUBLIC.part3.960129T083020.xyzMail@host3.com +AGENT:BEGIN:VCARD + VERSION:3.0 + N:Gump;Forrest + FN:Forrest Gump + ORG:Bubba Gump Shrimp Co. + TITLE:Shrimp Man + PHOTO;VALUE=URL;TYPE=GIF:http://upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Example_svg.svg/200px-Example_svg.svg.png + TEL;TYPE=WORK,VOICE:(111) 555-1212 + TEL;TYPE=HOME,VOICE:(404) 555-1212 + TEL;TYPE=HOME,TYPE=VOICE:(404) 555-1213 + ADR;TYPE=WORK:;;100 Waters Edge;Baytown;LA;30314;United States of America + LABEL;TYPE=WORK:100 Waters Edge\nBaytown, LA 30314\nUnited States of America + ADR;TYPE=HOME:;;42 Plantation St.;Baytown;LA;30314;United States of America + LABEL;TYPE=HOME:42 Plantation St.\nBaytown, LA 30314\nUnited States of America + EMAIL;TYPE=PREF,INTERNET:forrestgump@example.com + REV:20080424T195243Z + END:VCARD +REV:20080424T195243Z +END:VCARD \ No newline at end of file diff -Nru roger-router-1.8.14/plugins/vcard/Example.vcf roger-router-2.1.6/plugins/vcard/Example.vcf --- roger-router-1.8.14/plugins/vcard/Example.vcf 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/vcard/Example.vcf 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,24 @@ +BEGIN:VCARD +VERSION:3.0 +N:Doe;John;Q.,Public +FN;CHARSET=UTF-8:John Doe +TEL;TYPE=WORK,VOICE:(111) 555-1212 +TEL;TYPE=HOME,VOICE:(404) 555-1212 +TEL;TYPE=HOME,TYPE=VOICE:(404) 555-1213 +EMAIL;TYPE=PREF,INTERNET:forrestgump@example.com +EMAIL;TYPE=INTERNET:example@example.com +ADR;TYPE=HOME:;;42 Plantation St.;Baytown;LA;30314;United States of America +URL:https://www.google.com/ +PHOTO;VALUE=URL;TYPE=PNG:http://upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Example_svg.svg/200px-Example_svg.svg.png +AGENT:BEGIN:VCARD + VERSION:3.0 + N:Doe;John;Q.,Public + FN:John Doe + TEL;TYPE=WORK,VOICE:(111) 555-1212 + TEL;TYPE=HOME,VOICE:(404) 555-1212 + TEL;TYPE=HOME,TYPE=VOICE:(404) 555-1213 + EMAIL;TYPE=PREF,INTERNET:forrestgump@example.com + EMAIL;TYPE=INTERNET:example@example.com + PHOTO;VALUE=URL;TYPE=PNG:http://upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Example_svg.svg/200px-Example_svg.svg.png + END:VCARD +END:VCARD \ No newline at end of file diff -Nru roger-router-1.8.14/plugins/vcard/meson.build roger-router-2.1.6/plugins/vcard/meson.build --- roger-router-1.8.14/plugins/vcard/meson.build 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/vcard/meson.build 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,23 @@ +vcard_sources = [] +vcard_sources += 'vcard.c' + +vcard_dep = [] +vcard_dep += plugins_dep + +vcard_inc = [roger_inc] + +libvcard = shared_module('vcard', + vcard_sources, + include_directories : vcard_inc, + dependencies : vcard_dep, + install : true, + install_dir : get_option('prefix') + '/' + get_option('libdir') + '/roger/vcard/') + +custom_target('vcard.plugin', + output : 'vcard.plugin', + input : 'vcard.desktop.in', + command : [msgfmt, '--desktop', '--template', '@INPUT@', '-d', podir, '-o', '@OUTPUT@'], + install : true, + install_dir : get_option('prefix') + '/' + get_option('libdir') + '/roger/vcard/') + +install_data('org.tabos.roger.plugins.vcard.gschema.xml', install_dir : 'share/glib-2.0/schemas') diff -Nru roger-router-1.8.14/plugins/vcard/org.tabos.roger.plugins.vcard.gschema.xml roger-router-2.1.6/plugins/vcard/org.tabos.roger.plugins.vcard.gschema.xml --- roger-router-1.8.14/plugins/vcard/org.tabos.roger.plugins.vcard.gschema.xml 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/vcard/org.tabos.roger.plugins.vcard.gschema.xml 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,7 @@ + + + + '' + + + diff -Nru roger-router-1.8.14/plugins/vcard/roger-plugins-vcard.metainfo.xml.in roger-router-2.1.6/plugins/vcard/roger-plugins-vcard.metainfo.xml.in --- roger-router-1.8.14/plugins/vcard/roger-plugins-vcard.metainfo.xml.in 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/vcard/roger-plugins-vcard.metainfo.xml.in 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,11 @@ + + + roger-plugins-vcard + org.tabos.roger.desktop + <_name>VCard + <_summary>Support for VCard address books + https://www.tabos.org + GPL-2.0 + GPL-2.0 + jan.brummer_AT_tabos.org + diff -Nru roger-router-1.8.14/plugins/vcard/vcard.c roger-router-2.1.6/plugins/vcard/vcard.c --- roger-router-1.8.14/plugins/vcard/vcard.c 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/vcard/vcard.c 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,1265 @@ +/** + * Roger Router + * Copyright (c) 2012-2014 Jan-Michael Brummer + * + * This file is part of Roger Router. + * + * 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; version 2 only. + * + * 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 . + */ + +#include + +#include +#include +#include +#include + +#include +#include +#include + +#include + +#include +#include +#include + +#include + +static GSList *contacts = NULL; + +static GSettings *vcard_settings = NULL; + +static GList *vcard_list = NULL; +static GList *vcard = NULL; +static struct vcard_data *current_card_data = NULL; +static GString *current_string = NULL; +static gint state = STATE_NEW; +static gint current_position = 0; +static GString *first_name = NULL; +static GString *last_name = NULL; +static GString *company = NULL; +static GString *title = NULL; +static GFileMonitor *file_monitor = NULL; + +gboolean vcard_reload_contacts(void); + +/** + * \brief Free header, options and entry line + * \param psCard pointer to card structure + */ +static void vcard_free_data(struct vcard_data *card_data) +{ + /* if header is present, free it and set to NULL */ + if (card_data->header != NULL) { + g_free(card_data->header); + card_data->header = NULL; + } + + /* if options is present, free it and set to NULL */ + if (card_data->options != NULL) { + g_free(card_data->options); + card_data->options = NULL; + } + + /* if entry is present, free it and set to NULL */ + if (card_data->entry != NULL) { + g_free(card_data->entry); + card_data->entry = NULL; + } + + g_free(card_data); +} + +/** + * \brief Process first/last name structure + * \param psCard pointer to card structure + */ +static void process_first_last_name(struct vcard_data *card_data) +{ + gint len = 0; + gint index = 0; + + if (card_data == NULL || card_data->entry == NULL) { + return; + } + + len = strlen(card_data->entry); + + /* Create last name string */ + last_name = g_string_new(""); + while (index < len) { + if ( + (card_data->entry[index] != 0x00) && + (card_data->entry[index] != ';') && + (card_data->entry[index] != 0x0A) && + (card_data->entry[index] != 0x0D)) { + g_string_append_c(last_name, card_data->entry[index++]); + } else { + break; + } + } + + /* Skip ';' */ + index++; + + /* Create first name string */ + first_name = g_string_new(""); + while (index < len) { + if ( + (card_data->entry[index] != 0x00) && + (card_data->entry[index] != ';') && + (card_data->entry[index] != 0x0A) && + (card_data->entry[index] != 0x0D)) { + g_string_append_c(first_name, card_data->entry[index++]); + } else { + break; + } + } +} + +/** + * \brief Process formatted name structure + * \param card_data pointer to card structure + */ +static void process_formatted_name(struct vcard_data *card_data, RmContact *contact) +{ + GString *str; + gint len = 0; + gint index = 0; + + g_assert(card_data != NULL); + g_assert(card_data->entry != NULL); + + len = strlen(card_data->entry); + + /* Create formattedname string */ + str = g_string_new(""); + for (index = 0; index < len; index++) { + if ( + (card_data->entry[index] != 0x00) && + (card_data->entry[index] != ';') && + (card_data->entry[index] != 0x0A) && + (card_data->entry[index] != 0x0D)) { + g_string_append_c(str, card_data->entry[index]); + } else { + break; + } + } + + contact->name = g_string_free(str, FALSE); +} + +/** + * \brief Process organization structure + * \param psCard pointer to card structure + */ +static void process_organization(struct vcard_data *card_data) +{ + gint len = 0; + gint index = 0; + + if (card_data == NULL || card_data->entry == NULL) { + return; + } + + len = strlen(card_data->entry); + + /* Create company string */ + company = g_string_new(""); + while (index < len) { + if ( + (card_data->entry[index] != 0x00) && + (card_data->entry[index] != ';') && + (card_data->entry[index] != 0x0A) && + (card_data->entry[index] != 0x0D)) { + g_string_append_c(company, card_data->entry[index++]); + } else { + break; + } + } +} + +/** + * \brief Process title structure + * \param psCard pointer to card structure + */ +static void process_title(struct vcard_data *card_data) +{ + gint len = 0; + gint index = 0; + + if (card_data == NULL || card_data->entry == NULL) { + return; + } + + len = strlen(card_data->entry); + + /* Create title string */ + title = g_string_new(""); + while (index < len) { + if ( + (card_data->entry[index] != 0x00) && + (card_data->entry[index] != ';') && + (card_data->entry[index] != 0x0A) && + (card_data->entry[index] != 0x0D)) { + g_string_append_c(title, card_data->entry[index++]); + } else { + break; + } + } +} + +/** + * \brief Process uid structure + * \param card_data pointer to card structure + * \param contact contact structure + */ +static void process_uid(struct vcard_data *card_data, RmContact *contact) +{ + gint len = 0; + gint index = 0; + GString *uid; + + if (card_data == NULL || card_data->entry == NULL) { + return; + } + + len = strlen(card_data->entry); + + /* Create uid string */ + uid = g_string_new(""); + while (index < len) { + if ( + (card_data->entry[index] != 0x00) && + (card_data->entry[index] != ';') && + (card_data->entry[index] != 0x0A) && + (card_data->entry[index] != 0x0D)) { + g_string_append_c(uid, card_data->entry[index++]); + } else { + break; + } + } + + contact->priv = g_string_free(uid, FALSE); +} + +/** + * \brief Process address structure + * \param card_data pointer to card structure + */ +static void process_address(struct vcard_data *card_data, RmContact *contact) +{ + RmContactAddress *address; + GString *tmp_str; + gchar *tmp = NULL; + + if (card_data == NULL || card_data->entry == NULL) { + return; + } + + if (card_data->options == NULL) { + g_debug("No options for address, skipping.."); + return; + } + + address = g_slice_new0(RmContactAddress); + + tmp = card_data->entry; + + /* Create address string */ + if (rm_strcasestr(card_data->options, "HOME") != NULL) { + address->type = 0; + } else { + address->type = 1; + } + + /* skip pobox */ + while (*tmp != ';') { + tmp++; + } + tmp++; + + /* skip extended address */ + while (*tmp != ';') { + tmp++; + } + tmp++; + + /* read street */ + tmp_str = g_string_new(""); + while (*tmp != ';') { + g_string_append_c(tmp_str, *tmp); + tmp++; + } + address->street = tmp_str->str; + g_string_free(tmp_str, FALSE); + tmp++; + + /* read locality */ + tmp_str = g_string_new(""); + while (*tmp != ';') { + g_string_append_c(tmp_str, *tmp); + tmp++; + } + address->city = tmp_str->str; + g_string_free(tmp_str, FALSE); + tmp++; + + /* skip region */ + while (*tmp != ';') { + tmp++; + } + tmp++; + + /* read zip code */ + tmp_str = g_string_new(""); + while (*tmp != ';') { + g_string_append_c(tmp_str, *tmp); + tmp++; + } + address->zip = tmp_str->str; + g_string_free(tmp_str, FALSE); + tmp++; + + contact->addresses = g_slist_prepend(contact->addresses, address); + + /* read country */ + /*private_country = g_string_new(""); + while (*tmp != 0x00 && *tmp != 0x0A && *tmp != 0x0D) { + g_string_append_c(private_country, *tmp); + tmp++; + }*/ +} + +/** + * \brief Process telephone structure + * \param card_data pointer to card structure + */ +static void process_telephone(struct vcard_data *card_data, RmContact *contact) +{ + gchar *tmp = card_data->entry; + RmPhoneNumber *number; + + if (card_data->options == NULL) { + g_warning("No option field in telephone entry"); + return; + } + + number = g_slice_new(RmPhoneNumber); + + if (rm_strcasestr(card_data->options, "FAX") != NULL) { + /*if (rm_strcasestr(card_data->options, "WORK") != NULL) { + if (business_fax == NULL) { + business_fax = g_string_new(""); + while (*tmp != 0x00 && *tmp != 0x0A && *tmp != 0x0D) { + g_string_append_c(business_fax, *tmp); + tmp++; + } + } + } else*/{ + number->type = RM_PHONE_NUMBER_TYPE_FAX_HOME; + } + } else { + /* Check for cell phone number, and create string if needed */ + if (rm_strcasestr(card_data->options, "CELL") != NULL) { + number->type = RM_PHONE_NUMBER_TYPE_MOBILE; + } + + /* Check for home phone number, and create string if needed */ + if (rm_strcasestr(card_data->options, "HOME") != NULL) { + number->type = RM_PHONE_NUMBER_TYPE_HOME; + } + + /* Check for work phone number, and create string if needed */ + if (rm_strcasestr(card_data->options, "WORK") != NULL) { + number->type = RM_PHONE_NUMBER_TYPE_WORK; + } + } + + GString *number_str = g_string_new(""); + while (*tmp != 0x00 && *tmp != 0x0A && *tmp != 0x0D) { + g_string_append_c(number_str, *tmp); + tmp++; + } + + number->number = rm_number_full(number_str->str, FALSE); + g_string_free(number_str, FALSE); + + contact->numbers = g_slist_prepend(contact->numbers, number); +} + +/** + * \brief Process photo structure + * \param card_data pointer to card structure + * \param contact contact structure + */ +static void process_photo(struct vcard_data *card_data, RmContact *contact) +{ + GdkPixbufLoader *loader; + guchar *image_ptr; + gsize len; + GError *error = NULL; + + if (!contact) { + return; + } + + if (card_data->options) { + if (rm_strcasestr(card_data->options, "VALUE=URL") != NULL) { + return; + } + } + + image_ptr = g_base64_decode(card_data->entry, &len); + loader = gdk_pixbuf_loader_new(); + if (gdk_pixbuf_loader_write(loader, image_ptr, len, &error)) { + contact->image = gdk_pixbuf_loader_get_pixbuf(loader); + } else { + g_debug("Error!! (%s)", error->message); + g_free(image_ptr); + } +} + +/** + * \brief Create new uid + */ +GString *vcard_create_uid(void) +{ + GString *id = g_string_new(""); + gint index = 0; + + for (index = 0; index < 10; index++) { + int random = g_random_int() % 62; + random += 48; + if (random > 57) { + random += 7; + } + + if (random > 90) { + random += 6; + } + + id = g_string_append_c(id, (char)random); + } + + return id; +} + +/** + * \brief Parse end of vcard, check for valid entry and add person + */ +static void process_card_end(RmContact *contact) +{ + if (!contact) { + return; + } + if (!contact->priv) { + struct vcard_data *card_data = g_malloc0(sizeof(struct vcard_data)); + card_data->header = g_strdup("UID"); + GString *uid = vcard_create_uid(); + contact->priv = g_string_free(uid, FALSE); + card_data->entry = g_strdup(contact->priv); + + vcard = g_list_append(vcard, card_data); + } + + if (company != NULL) { + contact->company = g_strdup(company->str); + } + + /* + if (title != NULL) { + AddInfo(table, PERSON_TITLE, title->str); + } + }*/ + + if (!contact->name && first_name != NULL && last_name != NULL) { + contact->name = g_strdup_printf("%s %s", first_name->str, last_name->str); + } else if (!contact->name) { + contact->name = g_strdup(""); + } + + contacts = g_slist_insert_sorted(contacts, contact, rm_contact_name_compare); + + /* Free firstname */ + if (first_name != NULL) { + g_string_free(first_name, TRUE); + first_name = NULL; + } + + /* Free lastname */ + if (last_name != NULL) { + g_string_free(last_name, TRUE); + last_name = NULL; + } + + /* Free company */ + if (company != NULL) { + g_string_free(company, TRUE); + company = NULL; + } + + /* Free title */ + if (title != NULL) { + g_string_free(title, TRUE); + title = NULL; + } +} + +/** + * \brief Process new data structure (header/options/entry) + * \param card_data pointer to card data structure + * \param contact contact data + */ +static void process_data(struct vcard_data *card_data) +{ + static RmContact *contact; + + if (!card_data->header || !card_data->entry) { + return; + } + + if (strcasecmp(card_data->header, "BEGIN") == 0) { + /* Begin of vcard */ + vcard = g_list_append(NULL, card_data); + vcard_list = g_list_append(vcard_list, vcard); + contact = g_slice_new0(RmContact); + + return; + } else { + vcard = g_list_append(vcard, card_data); + } + + if (strcasecmp(card_data->header, "FN") == 0) { + /* Full name */ + process_formatted_name(card_data, contact); + } else if (strcasecmp(card_data->header, "END") == 0) { + /* End of vcard */ + process_card_end(contact); + } else if (strcasecmp(card_data->header, "N") == 0) { + /* First and Last name */ + process_first_last_name(card_data); + } else if (strcasecmp(card_data->header, "TEL") == 0) { + /* Telephone */ + process_telephone(card_data, contact); + } else if (strcasecmp(card_data->header, "ORG") == 0) { + /* Organization */ + process_organization(card_data); + } else if (strcasecmp(card_data->header, "TITLE") == 0) { + /* Title */ + process_title(card_data); + } else if (strcasecmp(card_data->header, "ADR") == 0) { + /* Address */ + process_address(card_data, contact); + } else if (strcasecmp(card_data->header, "PHOTO") == 0) { + /* Photo */ + process_photo(card_data, contact); + } else if (strcasecmp(card_data->header, "UID") == 0) { + /* UID */ + process_uid(card_data, contact); + } +} + +/** + * \brief Parse one char and add it to internal card structure + * \param chr current char + */ +void parse_char(int chr) +{ + switch (state) { + case STATE_NEW: + current_card_data = g_malloc0(sizeof(struct vcard_data)); + state = STATE_TAG; + /* fall-through */ + case STATE_TAG: + switch (chr) { + case '\r': + break; + case '\n': + if (current_string != NULL) { + g_string_free(current_string, TRUE); + } + current_string = NULL; + vcard_free_data(current_card_data); + state = STATE_NEW; + break; + case ':': + current_card_data->header = g_string_free(current_string, FALSE); + current_string = NULL; + state = STATE_ENTRY; + break; + case ';': + current_card_data->header = g_string_free(current_string, FALSE); + current_string = NULL; + state = STATE_OPTIONS; + break; + default: + if (current_string == NULL) { + current_string = g_string_new(""); + } + g_string_append_c(current_string, chr); + break; + } + break; + case STATE_OPTIONS: + switch (chr) { + case '\r': + break; + case '\n': + g_string_free(current_string, TRUE); + current_string = NULL; + vcard_free_data(current_card_data); + state = STATE_NEW; + break; + case ':': + current_card_data->options = g_string_free(current_string, FALSE); + current_string = NULL; + state = STATE_ENTRY; + break; + default: + if (current_string == NULL) { + current_string = g_string_new(""); + } + g_string_append_c(current_string, chr); + break; + } + break; + case STATE_ENTRY: + switch (chr) { + case '\r': + break; + case '\n': + if (current_string != NULL) { + current_card_data->entry = g_string_free(current_string, FALSE); + process_data(current_card_data); + } + current_string = NULL; + state = STATE_NEW; + break; + default: + if (current_string == NULL) { + current_string = g_string_new(""); + } + g_string_append_c(current_string, chr); + break; + } + break; + } +} + +/** + * \brief VCard file change callback + * \param monitor file monitor + * \param file file structure + * \param other_file unused file structure + * \param event_type file monitor event + * \param user_data unused pointer + */ +static void vcard_file_changed_cb(GFileMonitor *monitor, GFile *file, GFile *other_file, GFileMonitorEvent event_type, gpointer user_data) +{ + if (event_type != G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT) { + return; + } + + g_debug("%s(): %d", __FUNCTION__, event_type); + + /* Reload contacts */ + vcard_reload_contacts(); + + /* Send signal to redraw journal and update contacts view */ + rm_object_emit_contacts_changed(); +} + +/** + * \brief Load card file information + * \param file_name file name to read + */ +void vcard_load_file(char *file_name) +{ + GFile *file; + GFileInfo *file_info; + goffset file_size; + GFileInputStream *input_stream; + GError *error = NULL; + gchar *data; + gint chr; + gboolean start_of_line = TRUE; + gboolean fold = FALSE; + gint index; + + if (!g_file_test(file_name, G_FILE_TEST_EXISTS)) { + g_debug("%s(): file does not exists, abort: %s", __FUNCTION__, file_name); + return; + } + + /* Open file */ + file = g_file_new_for_path(file_name); + if (!file) { + g_warning("%s(): could not open file %s", __FUNCTION__, file_name); + return; + } + + file_info = g_file_query_info(file, G_FILE_ATTRIBUTE_STANDARD_SIZE, G_FILE_QUERY_INFO_NONE, NULL, NULL); + file_size = g_file_info_get_size(file_info); + + data = g_malloc0(file_size); + input_stream = g_file_read(file, NULL, NULL); + g_input_stream_read_all(G_INPUT_STREAM(input_stream), data, file_size, NULL, NULL, NULL); + + state = STATE_NEW; + + for (index = 0; index < file_size; index++) { + chr = data[index]; + if (start_of_line == TRUE) { + if (chr == '\r' || chr == '\n') { + /* simple empty line */ + continue; + } + + if (fold == FALSE && isspace(chr)) { + /* Ok, we have a fold case, mark it and continue */ + fold = TRUE; + continue; + } + + start_of_line = FALSE; + if (fold == TRUE) { + fold = FALSE; + } else { + parse_char('\n'); + } + } + + if (chr == '\n') { + start_of_line = TRUE; + } else { + parse_char(chr); + } + } + + /* Ensure we get a '\n' */ + parse_char('\n'); + + g_input_stream_close(G_INPUT_STREAM(input_stream), NULL, NULL); + + if (file_monitor) { + g_file_monitor_cancel(G_FILE_MONITOR(file_monitor)); + } + + file_monitor = g_file_monitor_file(file, 0, NULL, &error); + if (file_monitor) { + g_signal_connect(file_monitor, "changed", G_CALLBACK(vcard_file_changed_cb), NULL); + } else { + g_warning("%s(): could not connect file monitor. Error: %s", __FUNCTION__, error ? error->message : "?"); + } +} + +/** + * \brief Put char to vcard structure + * \param data data string + * \param chr put char + */ +static void vcard_put_char(GString *data, gint chr) +{ + if (current_position == 74 && chr != '\r') { + g_string_append(data, "\n "); + current_position = 1; + } else if (chr == '\n') { + current_position = 0; + } + + data = g_string_append_c(data, chr); + current_position++; +} + +/** + * \brief printf to data structure + * \param data data string + * \param format format string + */ +void vcard_print(GString *data, gchar *format, ...) +{ + va_list args; + int len; + int size = 100; + gchar *ptr = NULL; + + if ((ptr = g_malloc(size)) == NULL) { + return; + } + + while (1) { + va_start(args, format); + + len = vsnprintf(ptr, size, format, args); + + va_end(args); + + if (len > -1 && len < size) { + int index; + + for (index = 0; index < len; index++) { + vcard_put_char(data, ptr[index]); + } + + break; + } + + if (len > -1) { + size = len + 1; + } else { + size *= 2; + } + + if ((ptr = g_realloc(ptr, size)) == NULL) { + break; + } + } + + if (ptr != NULL) { + g_free(ptr); + } +} + +/** + * \brief Find vcard entry via uid + * \param uid uid + * \param vcard entry list pointer or NULL + */ +GList *vcard_find_entry(const gchar *uid) +{ + GList *list1 = NULL; + GList *list2 = NULL; + GList *card = NULL; + struct vcard_data *data; + gchar *current_uid; + + for (list1 = vcard_list; list1 != NULL && list1->data != NULL; list1 = list1->next) { + card = list1->data; + + for (list2 = card; list2 != NULL && list2->data != NULL; list2 = list2->next) { + data = list2->data; + + if (data->header && strcmp(data->header, "UID") == 0) { + current_uid = data->entry; + if (current_uid != NULL && !strcmp(current_uid, uid)) { + return card; + } + } + } + } + + return NULL; +} + +/** + * \brief Find card data via header and option + * \param list vcard list structure + * \param header header string + * \param option optional option string + * \return card data structure or NULL + */ +struct vcard_data *find_card_data(GList *list, gchar *header, gchar *option) +{ + GList *tmp = NULL; + struct vcard_data *data = NULL; + + for (tmp = list; tmp != NULL && tmp->data != NULL; tmp = tmp->next) { + data = tmp->data; + + if (data->header && strcmp(data->header, header) == 0) { + if (!option || (data->options != NULL && strstr(data->options, option))) { + return data; + } + } + } + + return NULL; +} + +gboolean vcard_modify_data(GList *list, gchar *header, gchar *entry) +{ + struct vcard_data *card_data; + + card_data = find_card_data(list, header, NULL); + + if (card_data == NULL) { + card_data = g_malloc0(sizeof(struct vcard_data)); + card_data->header = g_strdup(header); + list = g_list_append(list, card_data); + } else { + g_free(card_data->entry); + } + + if (entry) { + card_data->entry = g_strdup(entry); + } else { + card_data->entry = g_strdup(""); + } + + return TRUE; +} + +GList *vcard_remove_data(GList *list, gchar *header) +{ + GList *tmp = NULL; + struct vcard_data *data = NULL; + + again: + for (tmp = list; tmp != NULL && tmp->data != NULL; tmp = tmp->next) { + data = tmp->data; + + if (data->header && !strcmp(data->header, header)) { + list = g_list_remove(list, data); + goto again; + } + } + + return list; +} + +/** + * \brief Write card file information + * \param file_name file name to read + */ +void vcard_write_file(char *file_name) +{ + GString *data = NULL; + GSList *list = NULL; + RmContact *contact = NULL; + GList *entry = NULL; + GList *list2 = NULL; + GSList *numbers; + GSList *addresses; + + data = g_string_new(""); + + current_position = 0; + + for (list = contacts; list != NULL && list->data != NULL; list = list->next) { + contact = list->data; + + if (!contact->priv) { + struct vcard_data *card_data = g_malloc0(sizeof(struct vcard_data)); + card_data->header = g_strdup("UID"); + GString *uid = vcard_create_uid(); + contact->priv = g_string_free(uid, FALSE); + uid = NULL; + card_data->entry = g_strdup(contact->priv); + vcard = g_list_append(NULL, card_data); + vcard_list = g_list_append(vcard_list, vcard); + } + + entry = vcard_find_entry(contact->priv); + if (entry == NULL) { + continue; + } + + vcard_print(data, "BEGIN:VCARD\n"); + + /* Set version to 4.0 and remove obsolete entries */ + vcard_print(data, "VERSION:4.0\n"); + + entry = vcard_remove_data(entry, "BEGIN"); + entry = vcard_remove_data(entry, "END"); + entry = vcard_remove_data(entry, "VERSION"); + entry = vcard_remove_data(entry, "N"); + entry = vcard_remove_data(entry, "LABEL"); + entry = vcard_remove_data(entry, "AGENT"); + + /* formatted name */ + vcard_modify_data(entry, "FN", contact->name); + + /* telephone */ + entry = vcard_remove_data(entry, "TEL"); + for (numbers = contact->numbers; numbers != NULL; numbers = numbers->next) { + RmPhoneNumber *number = numbers->data; + struct vcard_data *card_data; + + card_data = g_malloc0(sizeof(struct vcard_data)); + card_data->header = g_strdup("TEL"); + + switch (number->type) { + case RM_PHONE_NUMBER_TYPE_HOME: + card_data->options = g_strdup("TYPE=HOME,VOICE"); + break; + case RM_PHONE_NUMBER_TYPE_WORK: + card_data->options = g_strdup("TYPE=WORK,VOICE"); + break; + case RM_PHONE_NUMBER_TYPE_MOBILE: + card_data->options = g_strdup("TYPE=CELL"); + break; + case RM_PHONE_NUMBER_TYPE_FAX_HOME: + card_data->options = g_strdup("TYPE=HOME,FAX"); + break; + default: + continue; + } + + card_data->entry = g_strdup(number->number); + entry = g_list_append(entry, card_data); + } + + /* address */ + entry = vcard_remove_data(entry, "ADR"); + for (addresses = contact->addresses; addresses != NULL; addresses = addresses->next) { + RmContactAddress *address = addresses->data; + struct vcard_data *card_data; + + card_data = g_malloc0(sizeof(struct vcard_data)); + card_data->header = g_strdup("ADR"); + + switch (address->type) { + case 0: + card_data->options = g_strdup("TYPE=HOME"); + break; + case 1: + card_data->options = g_strdup("TYPE=WORK"); + break; + default: + continue; + } + + card_data->entry = g_strdup_printf(";;%s;%s;;%s;%s", + address->street, + address->city, + address->zip, + /*address->country*/ ""); + + entry = g_list_append(entry, card_data); + } + + /* Handle photos with care, in case the type is url skip it */ +#if 0 + if (contact->image_uri != NULL) { + /* Ok, new image set */ + gchar *data = NULL; + gsize len = 0; + struct vcard_data *card_data; + + card_data = find_card_data(entry, "PHOTO", NULL); + if (card_data && card_data->options && strstr(card_data->options, "VALUE=URL")) { + /* Sorry, we cannot handled URL photos yet */ + } else { + if (!card_data) { + card_data = g_malloc0(sizeof(struct vcard_data)); + card_data->header = g_strdup("PHOTO"); + entry = g_list_append(entry, card_data); + } else { + g_free(card_data->entry); + } + + if (g_file_get_contents(contact->image_uri, &data, &len, NULL)) { + gchar *base64 = g_base64_encode((const guchar*)data, len); + if (card_data->options != NULL) { + g_free(card_data->options); + } + card_data->options = g_strdup("ENCODING=b"); + card_data->entry = g_strdup(base64); + g_free(base64); + } + } + } else +#endif + if (contact->image == NULL) { + /* No image available, check if contact had an image */ + struct vcard_data *card_data = find_card_data(entry, "PHOTO", NULL); + + if (card_data && card_data->options && !strstr(card_data->options, "VALUE=URL")) { + /* Only remove previous image if it is non URL based */ + entry = vcard_remove_data(entry, "PHOTO"); + } + } + + /* Lets add the additional data */ + for (list2 = entry; list2 != NULL && list2->data != NULL; list2 = list2->next) { + struct vcard_data *card_data = list2->data; + + if (card_data->options != NULL) { + vcard_print(data, "%s;%s:%s\n", card_data->header, card_data->options, card_data->entry); + } else { + vcard_print(data, "%s:%s\n", card_data->header, card_data->entry); + } + } + + vcard_print(data, "END:VCARD\n\n"); + } + + rm_file_save(file_name, data->str, data->len); + + g_string_free(data, TRUE); +} + +GSList *vcard_get_contacts(void) +{ + return contacts; +} + +gboolean vcard_reload_contacts(void) +{ + gchar *name; + + contacts = NULL; + + name = g_settings_get_string(vcard_settings, "filename"); + vcard_load_file(name); + + return TRUE; +} + +gboolean vcard_remove_contact(RmContact *contact) +{ + gchar *name; + + contacts = g_slist_remove(contacts, contact); + + name = g_settings_get_string(vcard_settings, "filename"); + vcard_write_file(name); + + return TRUE; +} + +gboolean vcard_save_contact(RmContact *contact) +{ + gchar *name; + + if (!contact->priv) { + contacts = g_slist_insert_sorted(contacts, contact, rm_contact_name_compare); + } + + name = g_settings_get_string(vcard_settings, "filename"); + vcard_write_file(name); + + return TRUE; +} + +gchar *vcard_get_active_book_name(void) +{ + return g_strdup("VCard"); +} + +gchar **vcard_get_sub_books(void) +{ + gchar **ret = NULL; + gchar *name = g_settings_get_string(vcard_settings, "filename"); + + if (name) { + ret = rm_strv_add(ret, name); + } + + return ret; +} + +gboolean vcard_set_sub_book(gchar *name) +{ + return TRUE; +} + +RmAddressBook vcard_book = { + "VCard", + vcard_get_active_book_name, + vcard_get_contacts, + vcard_remove_contact, + vcard_save_contact, + vcard_get_sub_books, + vcard_set_sub_book +}; + +gboolean vcard_plugin_init(RmPlugin *plugin) +{ + gchar *name; + + vcard_settings = rm_settings_new("org.tabos.roger.plugins.vcard"); + + name = g_settings_get_string(vcard_settings, "filename"); + if (RM_EMPTY_STRING(name)) { + name = g_build_filename(g_get_user_data_dir(), "roger", "ab.vcf", NULL); + g_settings_set_string(vcard_settings, "filename", name); + } + + vcard_load_file(name); + + rm_addressbook_register(&vcard_book); + + return TRUE; +} + +gboolean vcard_plugin_shutdown(RmPlugin *plugin) +{ + rm_addressbook_unregister(&vcard_book); + g_clear_object(&vcard_settings); + + return TRUE; +} + +void filename_button_clicked_cb(GtkButton *button, gpointer user_data) +{ + GtkFileChooserNative *dialog = gtk_file_chooser_native_new(_("Select vcard file"), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, NULL, NULL); + GtkFileFilter *filter; + + filter = gtk_file_filter_new(); + + gtk_file_filter_add_mime_type(filter, "text/vcard"); + gtk_file_chooser_set_filter(GTK_FILE_CHOOSER(dialog), filter); + + if (gtk_native_dialog_run(GTK_NATIVE_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) { + gchar *folder = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)); + + gtk_entry_set_text(GTK_ENTRY(user_data), folder); + contacts = NULL; + vcard_load_file(folder); + + g_free(folder); + } + + g_object_unref(dialog); +} + +void vcard_file_chooser_button_file_set_cb(GtkWidget *button, gpointer user_data) +{ + gchar *file = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(button)); + + g_debug("%s(): Setting '%s'", __FUNCTION__, file); + g_settings_set_string(vcard_settings, "filename", file); +} + +gpointer vcard_plugin_configure(RmPlugin *plugin) +{ + GtkWidget *grid = gtk_grid_new(); + GtkWidget *group; + GtkWidget *vcard_label; + + /* Set standard spacing to 5 */ + gtk_grid_set_row_spacing(GTK_GRID(grid), 5); + gtk_grid_set_column_spacing(GTK_GRID(grid), 15); + + vcard_label = ui_label_new(_("VCard file")); + gtk_grid_attach(GTK_GRID(grid), vcard_label, 0, 1, 1, 1); + + GtkFileFilter *filter = gtk_file_filter_new (); + gtk_file_filter_add_pattern (filter, "*.vcf"); + GtkWidget *vcard_button = gtk_file_chooser_button_new(_("Select vcard"), GTK_FILE_CHOOSER_ACTION_OPEN); + gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(vcard_button), filter); + //g_settings_bind(vcard_settings, "filename", vcard_button, "file-set", G_SETTINGS_BIND_DEFAULT); + gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(vcard_button), g_settings_get_string(vcard_settings, "filename")); + g_signal_connect(vcard_button, "file-set", G_CALLBACK(vcard_file_chooser_button_file_set_cb), NULL); + + gtk_grid_attach(GTK_GRID(grid), vcard_button, 1, 1, 1, 1); + + group = ui_group_create(grid, _("Contact book"), TRUE, FALSE); + + return group; +} + +RM_PLUGIN_CONFIG(vcard) diff -Nru roger-router-1.8.14/plugins/vcard/vcard.desktop.in roger-router-2.1.6/plugins/vcard/vcard.desktop.in --- roger-router-1.8.14/plugins/vcard/vcard.desktop.in 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/vcard/vcard.desktop.in 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,8 @@ +[Plugin] +Module=vcard +Name=VCard +Comment=VCard address book support +Authors=Jan-Michael Brummer +Copyright=Copyright © 2013 Jan-Michael Brummer +Website=http://www.tabos.org/ +Help=http://www.tabos.org/forum/ diff -Nru roger-router-1.8.14/plugins/vcard/vcard.h roger-router-2.1.6/plugins/vcard/vcard.h --- roger-router-1.8.14/plugins/vcard/vcard.h 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/vcard/vcard.h 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,50 @@ +/** + * The rm project + * Copyright (c) 2012-2014 Jan-Michael Brummer + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef VCARD_H +#define VCARD_H + +G_BEGIN_DECLS + +/** States in parser */ +enum { + STATE_NEW = 0, + STATE_TAG, + STATE_OPTIONS, + STATE_ENTRY +}; + +struct vcard_data { + gint state; + gchar *header; + gchar *options; + gchar *entry; +}; + +struct vcard { + GSList *data; +}; + +GString *vcard_create_uid(void); +void vcard_load_file(gchar *file_name); +void vcard_write_file(gchar *file_name); + +G_END_DECLS + +#endif diff -Nru roger-router-1.8.14/plugins/webjournal/meson.build roger-router-2.1.6/plugins/webjournal/meson.build --- roger-router-1.8.14/plugins/webjournal/meson.build 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/webjournal/meson.build 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,31 @@ +webjournal_gresources = gnome.compile_resources( + 'webjournal-gresources', 'webjournal.gresource.xml', + source_dir : '.', + c_name : '') + +webjournal_sources = [] +webjournal_sources += 'webjournal.c' +webjournal_sources += webjournal_gresources + +webjournal_dep = [] +webjournal_dep += plugins_dep + +webjournal_inc = [roger_inc] + +libwebjournal = shared_module('webjournal', + webjournal_sources, + include_directories : webjournal_inc, + dependencies : webjournal_dep, + install : true, + install_dir : get_option('prefix') + '/' + get_option('libdir') + '/roger/webjournal/') + +custom_target('webjournal.plugin', + output : 'webjournal.plugin', + input : 'webjournal.desktop.in', + command : [msgfmt, '--desktop', '--template', '@INPUT@', '-d', podir, '-o', '@OUTPUT@'], + install : true, + install_dir : get_option('prefix') + '/' + get_option('libdir') + '/roger/webjournal/') + +install_data('org.tabos.roger.plugins.webjournal.gschema.xml', install_dir : 'share/glib-2.0/schemas') + + diff -Nru roger-router-1.8.14/plugins/webjournal/org.tabos.roger.plugins.webjournal.gschema.xml roger-router-2.1.6/plugins/webjournal/org.tabos.roger.plugins.webjournal.gschema.xml --- roger-router-1.8.14/plugins/webjournal/org.tabos.roger.plugins.webjournal.gschema.xml 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/webjournal/org.tabos.roger.plugins.webjournal.gschema.xml 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,7 @@ + + + + '' + + + diff -Nru roger-router-1.8.14/plugins/webjournal/roger-plugins-webjournal.metainfo.xml.in roger-router-2.1.6/plugins/webjournal/roger-plugins-webjournal.metainfo.xml.in --- roger-router-1.8.14/plugins/webjournal/roger-plugins-webjournal.metainfo.xml.in 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/webjournal/roger-plugins-webjournal.metainfo.xml.in 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,11 @@ + + + roger-plugins-webjournal + org.tabos.roger.desktop + <_name>Web Journal + <_summary>Support for exporting journal as HTML file + https://www.tabos.org + GPL-2.0 + GPL-2.0 + jan.brummer_AT_tabos.org + diff -Nru roger-router-1.8.14/plugins/webjournal/share/dragtable.js roger-router-2.1.6/plugins/webjournal/share/dragtable.js --- roger-router-1.8.14/plugins/webjournal/share/dragtable.js 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/webjournal/share/dragtable.js 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,538 @@ +/* + dragtable v1.0 + June 26, 2008 + Dan Vanderkam, http://danvk.org/dragtable/ + http://code.google.com/p/dragtable/ + + Instructions: + - Download this file + - Add to your HTML. + - Add class="draggable" to any table you might like to reorder. + - Drag the headers around to reorder them. + + This is code was based on: + - Stuart Langridge's SortTable (kryogenix.org/code/browser/sorttable) + - Mike Hall's draggable class (http://www.brainjar.com/dhtml/drag/) + - A discussion of permuting table columns on comp.lang.javascript + + Licensed under the MIT license. + */ + +// Here's the notice from Mike Hall's draggable script: +//***************************************************************************** +// Do not remove this notice. +// +// Copyright 2001 by Mike Hall. +// See http://www.brainjar.com for terms of use. +//***************************************************************************** +dragtable = { + // How far should the mouse move before it's considered a drag, not a click? + dragRadius2: 100, + setMinDragDistance: function(x) { + dragtable.dragRadius2 = x * x; + }, + + // How long should cookies persist? (in days) + cookieDays: 365, + setCookieDays: function(x) { + dragtable.cookieDays = x; + }, + + // Determine browser and version. + // TODO: eliminate browser sniffing except where it's really necessary. + Browser: function() { + var ua, s, i; + + this.isIE = false; + this.isNS = false; + this.version = null; + ua = navigator.userAgent; + + s = "MSIE"; + if ((i = ua.indexOf(s)) >= 0) { + this.isIE = true; + this.version = parseFloat(ua.substr(i + s.length)); + return; + } + + s = "Netscape6/"; + if ((i = ua.indexOf(s)) >= 0) { + this.isNS = true; + this.version = parseFloat(ua.substr(i + s.length)); + return; + } + + // Treat any other "Gecko" browser as NS 6.1. + s = "Gecko"; + if ((i = ua.indexOf(s)) >= 0) { + this.isNS = true; + this.version = 6.1; + return; + } + }, + browser: null, + + // Detect all draggable tables and attach handlers to their headers. + init: function() { + // Don't initialize twice + if (arguments.callee.done) return; + arguments.callee.done = true; + if (_dgtimer) clearInterval(_dgtimer); + if (!document.createElement || !document.getElementsByTagName) return; + + dragtable.dragObj.zIndex = 0; + dragtable.browser = new dragtable.Browser(); + forEach(document.getElementsByTagName('table'), function(table) { + if (table.className.search(/\bdraggable\b/) != -1) { + dragtable.makeDraggable(table); + } + }); + }, + + // The thead business is taken straight from sorttable. + makeDraggable: function(table) { + if (table.getElementsByTagName('thead').length == 0) { + the = document.createElement('thead'); + the.appendChild(table.rows[0]); + table.insertBefore(the,table.firstChild); + } + + // Safari doesn't support table.tHead, sigh + if (table.tHead == null) { + table.tHead = table.getElementsByTagName('thead')[0]; + } + + var headers = table.tHead.rows[0].cells; + for (var i = 0; i < headers.length; i++) { + headers[i].onmousedown = dragtable.dragStart; + } + + // Replay reorderings from cookies if there are any. + if (dragtable.cookiesEnabled() && table.id && + table.className.search(/\bforget-ordering\b/) == -1) { + dragtable.replayDrags(table); + } + }, + + // Global object to hold drag information. + dragObj: new Object(), + + // Climb up the DOM until there's a tag that matches. + findUp: function(elt, tag) { + do { + if (elt.nodeName && elt.nodeName.search(tag) != -1) + return elt; + } while (elt = elt.parentNode); + return null; + }, + + // clone an element, copying its style and class. + fullCopy: function(elt, deep) { + var new_elt = elt.cloneNode(deep); + new_elt.className = elt.className; + forEach(elt.style, + function(value, key, object) { + if (value == null) return; + if (typeof(value) == "string" && value.length == 0) return; + + new_elt.style[key] = elt.style[key]; + }); + return new_elt; + }, + + eventPosition: function(event) { + var x, y; + if (dragtable.browser.isIE) { + x = window.event.clientX + document.documentElement.scrollLeft + + document.body.scrollLeft; + y = window.event.clientY + document.documentElement.scrollTop + + document.body.scrollTop; + return {x: x, y: y}; + } + return {x: event.pageX, y: event.pageY}; + }, + + // Determine the position of this element on the page. Many thanks to Magnus + // Kristiansen for help making this work with "position: fixed" elements. + absolutePosition: function(elt, stopAtRelative) { + var ex = 0, ey = 0; + do { + var curStyle = dragtable.browser.isIE ? elt.currentStyle + : window.getComputedStyle(elt, ''); + var supportFixed = !(dragtable.browser.isIE && + dragtable.browser.version < 7); + if (stopAtRelative && curStyle.position == 'relative') { + break; + } else if (supportFixed && curStyle.position == 'fixed') { + // Get the fixed el's offset + ex += parseInt(curStyle.left, 10); + ey += parseInt(curStyle.top, 10); + // Compensate for scrolling + ex += document.body.scrollLeft; + ey += document.body.scrollTop; + // End the loop + break; + } else { + ex += elt.offsetLeft; + ey += elt.offsetTop; + } + } while (elt = elt.offsetParent); + return {x: ex, y: ey}; + }, + + // MouseDown handler -- sets up the appropriate mousemove/mouseup handlers + // and fills in the global dragtable.dragObj object. + dragStart: function(event, id) { + var el; + var x, y; + var dragObj = dragtable.dragObj; + + var browser = dragtable.browser; + if (browser.isIE) + dragObj.origNode = window.event.srcElement; + else + dragObj.origNode = event.target; + var pos = dragtable.eventPosition(event); + + // Drag the entire table cell, not just the element that was clicked. + dragObj.origNode = dragtable.findUp(dragObj.origNode, /T[DH]/); + + // Since a column header can't be dragged directly, duplicate its contents + // in a div and drag that instead. + // TODO: I can assume a tHead... + var table = dragtable.findUp(dragObj.origNode, "TABLE"); + dragObj.table = table; + dragObj.startCol = dragtable.findColumn(table, pos.x); + if (dragObj.startCol == -1) return; + + var new_elt = dragtable.fullCopy(table, false); + new_elt.style.margin = '0'; + + // Copy the entire column + var copySectionColumn = function(sec, col) { + var new_sec = dragtable.fullCopy(sec, false); + forEach(sec.rows, function(row) { + var cell = row.cells[col]; + var new_tr = dragtable.fullCopy(row, false); + if (row.offsetHeight) new_tr.style.height = row.offsetHeight + "px"; + var new_td = dragtable.fullCopy(cell, true); + if (cell.offsetWidth) new_td.style.width = cell.offsetWidth + "px"; + new_tr.appendChild(new_td); + new_sec.appendChild(new_tr); + }); + return new_sec; + }; + + // First the heading + if (table.tHead) { + new_elt.appendChild(copySectionColumn(table.tHead, dragObj.startCol)); + } + forEach(table.tBodies, function(tb) { + new_elt.appendChild(copySectionColumn(tb, dragObj.startCol)); + }); + if (table.tFoot) { + new_elt.appendChild(copySectionColumn(table.tFoot, dragObj.startCol)); + } + + var obj_pos = dragtable.absolutePosition(dragObj.origNode, true); + new_elt.style.position = "absolute"; + new_elt.style.left = obj_pos.x + "px"; + new_elt.style.top = obj_pos.y + "px"; + new_elt.style.width = dragObj.origNode.offsetWidth + "px"; + new_elt.style.height = dragObj.origNode.offsetHeight + "px"; + new_elt.style.opacity = 0.7; + + // Hold off adding the element until this is clearly a drag. + dragObj.addedNode = false; + dragObj.tableContainer = dragObj.table.parentNode || document.body; + dragObj.elNode = new_elt; + + // Save starting positions of cursor and element. + dragObj.cursorStartX = pos.x; + dragObj.cursorStartY = pos.y; + dragObj.elStartLeft = parseInt(dragObj.elNode.style.left, 10); + dragObj.elStartTop = parseInt(dragObj.elNode.style.top, 10); + + if (isNaN(dragObj.elStartLeft)) dragObj.elStartLeft = 0; + if (isNaN(dragObj.elStartTop)) dragObj.elStartTop = 0; + + // Update element's z-index. + dragObj.elNode.style.zIndex = ++dragObj.zIndex; + + // Capture mousemove and mouseup events on the page. + if (browser.isIE) { + document.attachEvent("onmousemove", dragtable.dragMove); + document.attachEvent("onmouseup", dragtable.dragEnd); + window.event.cancelBubble = true; + window.event.returnValue = false; + } else { + document.addEventListener("mousemove", dragtable.dragMove, true); + document.addEventListener("mouseup", dragtable.dragEnd, true); + event.preventDefault(); + } + }, + + // Move the floating column header with the mouse + // TODO: Reorder columns as the mouse moves for a more interactive feel. + dragMove: function(event) { + var x, y; + var dragObj = dragtable.dragObj; + + // Get cursor position with respect to the page. + var pos = dragtable.eventPosition(event); + + var dx = dragObj.cursorStartX - pos.x; + var dy = dragObj.cursorStartY - pos.y; + if (!dragObj.addedNode && dx * dx + dy * dy > dragtable.dragRadius2) { + dragObj.tableContainer.insertBefore(dragObj.elNode, dragObj.table); + dragObj.addedNode = true; + } + + // Move drag element by the same amount the cursor has moved. + var style = dragObj.elNode.style; + style.left = (dragObj.elStartLeft + pos.x - dragObj.cursorStartX) + "px"; + style.top = (dragObj.elStartTop + pos.y - dragObj.cursorStartY) + "px"; + + if (dragtable.browser.isIE) { + window.event.cancelBubble = true; + window.event.returnValue = false; + } else { + event.preventDefault(); + } + }, + + // Stop capturing mousemove and mouseup events. + // Determine which (if any) column we're over and shuffle the table. + dragEnd: function(event) { + if (dragtable.browser.isIE) { + document.detachEvent("onmousemove", dragtable.dragMove); + document.detachEvent("onmouseup", dragtable.dragEnd); + } else { + document.removeEventListener("mousemove", dragtable.dragMove, true); + document.removeEventListener("mouseup", dragtable.dragEnd, true); + } + + // If the floating header wasn't added, the mouse didn't move far enough. + var dragObj = dragtable.dragObj; + if (!dragObj.addedNode) { + return; + } + dragObj.tableContainer.removeChild(dragObj.elNode); + + // Determine whether the drag ended over the table, and over which column. + var pos = dragtable.eventPosition(event); + var table_pos = dragtable.absolutePosition(dragObj.table); + if (pos.y < table_pos.y || + pos.y > table_pos.y + dragObj.table.offsetHeight) { + return; + } + var targetCol = dragtable.findColumn(dragObj.table, pos.x); + if (targetCol != -1 && targetCol != dragObj.startCol) { + dragtable.moveColumn(dragObj.table, dragObj.startCol, targetCol); + if (dragObj.table.id && dragtable.cookiesEnabled() && + dragObj.table.className.search(/\bforget-ordering\b/) == -1) { + dragtable.rememberDrag(dragObj.table.id, dragObj.startCol, targetCol); + } + } + }, + + // Which column does the x value fall inside of? x should include scrollLeft. + findColumn: function(table, x) { + var header = table.tHead.rows[0].cells; + for (var i = 0; i < header.length; i++) { + //var left = header[i].offsetLeft; + var pos = dragtable.absolutePosition(header[i]); + //if (left <= x && x <= left + header[i].offsetWidth) { + if (pos.x <= x && x <= pos.x + header[i].offsetWidth) { + return i; + } + } + return -1; + }, + + // Move a column of table from start index to finish index. + // Based on the "Swapping table columns" discussion on comp.lang.javascript. + // Assumes there are columns at sIdx and fIdx + moveColumn: function(table, sIdx, fIdx) { + var row, cA; + var i=table.rows.length; + while (i--){ + row = table.rows[i] + var x = row.removeChild(row.cells[sIdx]); + if (fIdx < row.cells.length) { + row.insertBefore(x, row.cells[fIdx]); + } else { + row.appendChild(x); + } + } + + // For whatever reason, sorttable tracks column indices this way. + // Without a manual update, clicking one column will sort on another. + var headrow = table.tHead.rows[0].cells; + for (var i=0; i<\/script>"); + var script = document.getElementById("__dt_onload"); + script.onreadystatechange = function() { + if (this.readyState == "complete") { + dragtable.init(); // call the onload handler + } + }; +/*@end @*/ + +/* for Safari */ +if (/WebKit/i.test(navigator.userAgent)) { // sniff + dgListenOnLoad = true; + var _dgtimer = setInterval(function() { + if (/loaded|complete/.test(document.readyState)) { + dragtable.init(); // call the onload handler + } + }, 10); +} + +/* for other browsers */ +/* Avoid this unless it's absolutely necessary (it breaks sorttable) */ +if (!dgListenOnLoad) { + window.onload = dragtable.init; +} + +// Dean's forEach: http://dean.edwards.name/base/forEach.js +/* + forEach, version 1.0 + Copyright 2006, Dean Edwards + License: http://www.opensource.org/licenses/mit-license.php +*/ + +// array-like enumeration +if (!Array.forEach) { // mozilla already supports this + Array.forEach = function(array, block, context) { + for (var i = 0; i < array.length; i++) { + block.call(context, array[i], i, array); + } + }; +} + +// generic enumeration +Function.prototype.forEach = function(object, block, context) { + for (var key in object) { + if (typeof this.prototype[key] == "undefined") { + block.call(context, object[key], key, object); + } + } +}; + +// character enumeration +String.forEach = function(string, block, context) { + Array.forEach(string.split(""), function(chr, index) { + block.call(context, chr, index, string); + }); +}; + +// globally resolve forEach enumeration +var forEach = function(object, block, context) { + if (object) { + var resolve = Object; // default + if (object instanceof Function) { + // functions have a "length" property + resolve = Function; + } else if (object.forEach instanceof Function) { + // the object implements a custom forEach method so use that + object.forEach(block, context); + return; + } else if (typeof object == "string") { + // the object is a string + resolve = String; + } else if (typeof object.length == "number") { + // the object is array-like + resolve = Array; + } + resolve.forEach(object, block, context); + } +}; diff -Nru roger-router-1.8.14/plugins/webjournal/share/entry.html roger-router-2.1.6/plugins/webjournal/share/entry.html --- roger-router-1.8.14/plugins/webjournal/share/entry.html 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/webjournal/share/entry.html 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,9 @@ +
+ + + + + + + + diff -Nru roger-router-1.8.14/plugins/webjournal/share/footer.html roger-router-2.1.6/plugins/webjournal/share/footer.html --- roger-router-1.8.14/plugins/webjournal/share/footer.html 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/webjournal/share/footer.html 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,4 @@ + +
TypDatum/ZeitNameFirmaNummerStadtNebenstelleLeitungDauer
%DATETIME%%NAME%%COMPANY%%NUMBER%%CITY%%EXTENSION%%LINE%%DURATION%
+ + diff -Nru roger-router-1.8.14/plugins/webjournal/share/header.html roger-router-2.1.6/plugins/webjournal/share/header.html --- roger-router-1.8.14/plugins/webjournal/share/header.html 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/webjournal/share/header.html 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,24 @@ + + + + Roger Router - Journal + + + + + + +

Roger Router - Journal

+ + + + + + + + + + + + + diff -Nru roger-router-1.8.14/plugins/webjournal/share/sortable.js roger-router-2.1.6/plugins/webjournal/share/sortable.js --- roger-router-1.8.14/plugins/webjournal/share/sortable.js 1970-01-01 00:00:00.000000000 +0000 +++ roger-router-2.1.6/plugins/webjournal/share/sortable.js 2020-01-19 16:32:41.000000000 +0000 @@ -0,0 +1,495 @@ +/* + SortTable + version 2 + 7th April 2007 + Stuart Langridge, http://www.kryogenix.org/code/browser/sorttable/ + + Instructions: + Download this file + Add to your HTML + Add class="sortable" to any table you'd like to make sortable + Click on the headers to sort + + Thanks to many, many people for contributions and suggestions. + Licenced as X11: http://www.kryogenix.org/code/browser/licence.html + This basically means: do what you want with it. +*/ + + +var stIsIE = /*@cc_on!@*/false; + +sorttable = { + init: function() { + // quit if this function has already been called + if (arguments.callee.done) return; + // flag this function so we don't do the same thing twice + arguments.callee.done = true; + // kill the timer + if (_timer) clearInterval(_timer); + + if (!document.createElement || !document.getElementsByTagName) return; + + sorttable.DATE_RE = /^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/; + + forEach(document.getElementsByTagName('table'), function(table) { + if (table.className.search(/\bsortable\b/) != -1) { + sorttable.makeSortable(table); + } + }); + + }, + + makeSortable: function(table) { + if (table.getElementsByTagName('thead').length == 0) { + // table doesn't have a tHead. Since it should have, create one and + // put the first table row in it. + the = document.createElement('thead'); + the.appendChild(table.rows[0]); + table.insertBefore(the,table.firstChild); + } + // Safari doesn't support table.tHead, sigh + if (table.tHead == null) table.tHead = table.getElementsByTagName('thead')[0]; + + if (table.tHead.rows.length != 1) return; // can't cope with two header rows + + // Sorttable v1 put rows with a class of "sortbottom" at the bottom (as + // "total" rows, for example). This is B&R, since what you're supposed + // to do is put them in a tfoot. So, if there are sortbottom rows, + // for backwards compatibility, move them to tfoot (creating it if needed). + sortbottomrows = []; + for (var i=0; i5' : ' ▴'; + this.appendChild(sortrevind); + return; + } + if (this.className.search(/\bsorttable_sorted_reverse\b/) != -1) { + // if we're already sorted by this column in reverse, just + // re-reverse the table, which is quicker + sorttable.reverse(this.sorttable_tbody); + this.className = this.className.replace('sorttable_sorted_reverse', + 'sorttable_sorted'); + this.removeChild(document.getElementById('sorttable_sortrevind')); + sortfwdind = document.createElement('span'); + sortfwdind.id = "sorttable_sortfwdind"; + sortfwdind.innerHTML = stIsIE ? ' 6' : ' ▾'; + this.appendChild(sortfwdind); + return; + } + + // remove sorttable_sorted classes + theadrow = this.parentNode; + forEach(theadrow.childNodes, function(cell) { + if (cell.nodeType == 1) { // an element + cell.className = cell.className.replace('sorttable_sorted_reverse',''); + cell.className = cell.className.replace('sorttable_sorted',''); + } + }); + sortfwdind = document.getElementById('sorttable_sortfwdind'); + if (sortfwdind) { sortfwdind.parentNode.removeChild(sortfwdind); } + sortrevind = document.getElementById('sorttable_sortrevind'); + if (sortrevind) { sortrevind.parentNode.removeChild(sortrevind); } + + this.className += ' sorttable_sorted'; + sortfwdind = document.createElement('span'); + sortfwdind.id = "sorttable_sortfwdind"; + sortfwdind.innerHTML = stIsIE ? ' 6' : ' ▾'; + this.appendChild(sortfwdind); + + // build an array to sort. This is a Schwartzian transform thing, + // i.e., we "decorate" each row with the actual sort key, + // sort based on the sort keys, and then put the rows back in order + // which is a lot faster because you only do getInnerText once per row + row_array = []; + col = this.sorttable_columnindex; + rows = this.sorttable_tbody.rows; + for (var j=0; j 12) { + // definitely dd/mm + return sorttable.sort_ddmm; + } else if (second > 12) { + return sorttable.sort_mmdd; + } else { + // looks like a date, but we can't tell which, so assume + // that it's dd/mm (English imperialism!) and keep looking + sortfn = sorttable.sort_ddmm; + } + } + } + } + return sortfn; + }, + + getInnerText: function(node) { + // gets the text we want to use for sorting for a cell. + // strips leading and trailing whitespace. + // this is *not* a generic getInnerText function; it's special to sorttable. + // for example, you can override the cell text with a customkey attribute. + // it also gets .value for fields. + + if (!node) return ""; + + hasInputs = (typeof node.getElementsByTagName == 'function') && + node.getElementsByTagName('input').length; + + if (node.getAttribute("sorttable_customkey") != null) { + return node.getAttribute("sorttable_customkey"); + } + else if (typeof node.textContent != 'undefined' && !hasInputs) { + return node.textContent.replace(/^\s+|\s+$/g, ''); + } + else if (typeof node.innerText != 'undefined' && !hasInputs) { + return node.innerText.replace(/^\s+|\s+$/g, ''); + } + else if (typeof node.text != 'undefined' && !hasInputs) { + return node.text.replace(/^\s+|\s+$/g, ''); + } + else { + switch (node.nodeType) { + case 3: + if (node.nodeName.toLowerCase() == 'input') { + return node.value.replace(/^\s+|\s+$/g, ''); + } + case 4: + return node.nodeValue.replace(/^\s+|\s+$/g, ''); + break; + case 1: + case 11: + var innerText = ''; + for (var i = 0; i < node.childNodes.length; i++) { + innerText += sorttable.getInnerText(node.childNodes[i]); + } + return innerText.replace(/^\s+|\s+$/g, ''); + break; + default: + return ''; + } + } + }, + + reverse: function(tbody) { + // reverse the rows in a tbody + newrows = []; + for (var i=0; i=0; i--) { + tbody.appendChild(newrows[i]); + } + delete newrows; + }, + + /* sort functions + each sort function takes two parameters, a and b + you are comparing a[0] and b[0] */ + sort_numeric: function(a,b) { + aa = parseFloat(a[0].replace(/[^0-9.-]/g,'')); + if (isNaN(aa)) aa = 0; + bb = parseFloat(b[0].replace(/[^0-9.-]/g,'')); + if (isNaN(bb)) bb = 0; + return aa-bb; + }, + sort_alpha: function(a,b) { + if (a[0]==b[0]) return 0; + if (a[0] 0 ) { + var q = list[i]; list[i] = list[i+1]; list[i+1] = q; + swap = true; + } + } // for + t--; + + if (!swap) break; + + for(var i = t; i > b; --i) { + if ( comp_func(list[i], list[i-1]) < 0 ) { + var q = list[i]; list[i] = list[i-1]; list[i-1] = q; + swap = true; + } + } // for + b++; + + } // while(swap) + } +} + +/* ****************************************************************** + Supporting functions: bundled here to avoid depending on a library + ****************************************************************** */ + +// Dean Edwards/Matthias Miller/John Resig + +/* for Mozilla/Opera9 */ +if (document.addEventListener) { + document.addEventListener("DOMContentLoaded", sorttable.init, false); +} + +/* for Internet Explorer */ +/*@cc_on @*/ +/*@if (@_win32) + document.write("
TypDatum/ZeitNameFirmaNummerStadtNebenstelleLeitungDauer