davfs2-1.5.5/0000755000175000017500000000000013422373177007721 500000000000000davfs2-1.5.5/configure.ac0000644000175000017500000000523513422371250012122 00000000000000# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. # Copyright (C) 2006, 2007, 2008, 2009, 2010, 2014 Werner Baumann # # This file is part of davfs2. # # davfs2 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. # # davfs2 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 davfs2; if not, write to the Free Software Foundation, # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ AC_PREREQ(2.59) AC_INIT(davfs2, 1.5.5, http://savannah.nongnu.org/projects/davfs2) AC_CONFIG_SRCDIR([src/cache.c]) AC_CONFIG_AUX_DIR([config]) AM_INIT_AUTOMAKE AC_CONFIG_HEADER([config.h]) # Checks for programs. AC_PROG_CC AC_PROG_INSTALL AC_PROG_LN_S # Checks for libraries. AM_GNU_GETTEXT_VERSION(0.18.1) AM_GNU_GETTEXT([external]) NE_REQUIRE_VERSIONS([0], [27 28 29 30]) DAV_CHECK_NEON # Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC AC_CHECK_HEADERS([fcntl.h libintl.h langinfo.h limits.h locale.h mntent.h stddef.h stdint.h stdlib.h string.h sys/file.h sys/mount.h sys/time.h syslog.h termios.h unistd.h utime.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_UID_T AC_C_INLINE AC_TYPE_INT16_T AC_TYPE_INT32_T AC_TYPE_INT8_T AC_TYPE_MODE_T AC_TYPE_OFF_T AC_TYPE_PID_T AC_TYPE_SIZE_T AC_TYPE_SSIZE_T AC_CHECK_MEMBERS([struct stat.st_blksize]) AC_HEADER_TIME AC_STRUCT_TM AC_TYPE_UINT32_T AC_TYPE_UINT64_T AC_C_VOLATILE AC_CHECK_SIZEOF([void *]) # Checks for library functions. AC_FUNC_CHOWN AC_FUNC_CLOSEDIR_VOID AC_FUNC_ERROR_AT_LINE AC_FUNC_FORK AC_FUNC_GETGROUPS AC_FUNC_GETMNTENT AC_PROG_GCC_TRADITIONAL AC_HEADER_MAJOR AC_FUNC_MALLOC AC_FUNC_SELECT_ARGTYPES AC_FUNC_STRFTIME AC_FUNC_STAT AC_FUNC_UTIME_NULL AC_CHECK_FUNCS([endpwent ftruncate getmntent memset mkdir nl_langinfo rpmatch select setlocale strcasecmp strchr strdup strerror strpbrk strrchr strstr strtol strtoull utime]) # Misc. DAV_DEFAULTS DAV_LFS DAV_LINGUAS([de]) AC_DEFINE([_GNU_SOURCE], 1, [Define to enable GNU extensions]) AC_CONFIG_FILES([Makefile po/Makefile.in etc/Makefile man/Makefile man/de/Makefile man/es/Makefile src/Makefile]) AC_OUTPUT DAV_MESSAGE davfs2-1.5.5/AUTHORS0000644000175000017500000001017412460776605010720 00000000000000davfs2 AUTHORS 2014-04-21 ------------------------- This package is based on davfs2 0.2.3 by Sun Kim and Robert Spier . This version is a complete rewrite by Werner Baumann. The kernel interface definitions are copyright by Miklos Szeredi and Carnegie Mellon University, respectively. Copyright: ========== Copyright (c) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Werner Baumann davfs2 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. davfs2 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 davfs2; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. The complete text of the GNU General Public License can be found in `COPYING'. Copyright for the interface to the Fuse kernel module (fuse_kernel.h): ====================================================================== Copyright (C) 2001-2007 Miklos Szeredi. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Copyright for the interface to the Coda kernel module (coda.h): =============================================================== Coda: an Experimental Distributed File System Release 4.0 Copyright (c) 1987-1999 Carnegie Mellon University All Rights Reserved Permission to use, copy, modify and distribute this software and its documentation is hereby granted, provided that both the copyright notice and this permission notice appear in all copies of the software, derivative works or modified versions, and any portions thereof, and that both notices appear in supporting documentation, and that credit is given to Carnegie Mellon University in all documents and publicity pertaining to direct or indirect use of this code or its derivatives. CODA IS AN EXPERIMENTAL SOFTWARE SYSTEM AND IS KNOWN TO HAVE BUGS, SOME OF WHICH MAY HAVE SERIOUS CONSEQUENCES. CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING DIRECTLY OR INDIRECTLY FROM THE USE OF THIS SOFTWARE OR OF ANY DERIVATIVE WORK. Carnegie Mellon encourages users of this software to return any improvements or extensions that they make, and to grant Carnegie Mellon the rights to redistribute these changes without encumbrance. davfs2-1.5.5/INSTALL0000644000175000017500000001156512460776605010706 000000000000002014-08-23 ---------- # Copyright (C) 2006, 2007, 2008, 2009, 2010. 2012, 2013, 2014 Werner Baumann # Copying and distribution of this file, with or without modification, are # permitted in any medium without royalty. DAVFS2 1.5.2 INSTALLATION ========================= 1 UPDATING FROM PREVIOUS VERSION 2 INSTALLATION 2.1 PREREQUISITE 2.2 INSTALLATION FROM CVS SOURCES 2.3 INSTALLATION FROM SOURCE PACKAGE 3 UNINSTALL 1 UPDATING FROM PREVIOUS VERSION ================================ 'make install' copies new versions of davfs2.conf and secrets into /usr/local/etc/davfs2 or /etc/davfs2 and creates a backup of the existing files. You will have to merge your changes from the backup into the new files. When a user invokes the new version of mount.davfs the first time, it will only copy new versions of davfs2.conf and secrets into ~/.davfs2, if this files do not exist. The user should rename this files before invoking mount.davfs. After the new configuration files have been installed the user may merge the changes form the old files into the new versions. 2 INSTALLATION ============== 2.1 PREREQUISITE ---------------- davfs2 uses the neon libraries for communication with the server. libneon (2.7, 2.8, 2.9 or 3.0) must be installed. Your distribution will most likely provide a package. You will also need the neon header files. Distributions usually provide development packages for this. If your distribution don't come with libneon or it does not support TLS and large files, you may build your own neon library. You can get it from http://www.webdav.org/neon/ Your kernel must include either the coda file system or the fuse file system or both. They may be loadable modules. Almost all Linux kernels support at least one of them. 2.2 INSTALLATION FROM CVS SOURCES --------------------------------- To build davfs2 from the CVS sources you need recent versions of the some build tools: - GNU Autoconf 2.69 or newer - GNU Automake 1.11.6 or newer - GNU gettext-tools 0.18.1 or newer - po4a 0.42 or newer Change into the top level source directory and run $ ./bootstrap This will add some necessary files, create the configure script and the Makefile.in's, and build the translated man pages from the po-files. Proceed with Installation from Source Package. 2.3 INSTALLATION FROM SOURCE PACKAGE ------------------------------------ From within the top level source directory: - Run the configure script. $ ./configure [options] This will test your system and finally create the appropriate Makefiles. You may add some options or set some variables, but hopefully will not have to. Options and variables: ---------------------- --prefix= Defines the directory where davfs2 will be installed. It defaults to '/usr/local'. If your sources came with your distribution it may be '/usr'. --with-neon= Directory where to find the neon library and the neon headers. Default is to first try /usr/local and then /usr. If you just have neon libraries in /usr/lib and headers in /usr/include, you don't need this. --disable-nls Disable the support for national languages. LINGUAS="ll ll ll" A list of two-letter language codes. This will select which of the available translations of messages and documentation will be installed. ll must be in lower case. dav_user= A system user without shell. mount.davfs will run with this id when invoked by root. Default dav_user is "davfs2". dav_group= A system group. mount.davfs will be member of this group. Normal users must be member of this group in order to mount. Default dav_group is "davfs2". ./configure --help will show all available options. - Run make. $ make This will compile the program. - Gain root permissions and run make install. # make install This will copy all the files in the appropriate directory. Note: 'mount.davfs' will be setuid root! - Create the system user 'davfs2' and group 'davfs2' if they not yet exist. The system user should not have a shell. Proposed home directory is '/var/cache/davfs2'. - Get rid of the root permissions. 3 UNINSTALL =========== To uninstall davfs2 the sources have to be configured just the same way they were configured for installation. From within the top level source directory run with root permissions # make uninstall This will remove all the installed files. Note: The directories will not be removed. Files and directories created by mount.davfs at run-time will *not* be removed too. This are: pid-files (in /var/run/mount.davfs), cache files and directories (in /var/cache/davfs2) and all the files in the users home directories in .davfs2. This files have to be removed manually. davfs2-1.5.5/configure0000755000175000017500000115542713422373152011560 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for davfs2 1.5.5. # # 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 \$(( 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://savannah.nongnu.org/projects/davfs2 about your $0: system, including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script 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'" 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='davfs2' PACKAGE_TARNAME='davfs2' PACKAGE_VERSION='1.5.5' PACKAGE_STRING='davfs2 1.5.5' PACKAGE_BUGREPORT='http://savannah.nongnu.org/projects/davfs2' PACKAGE_URL='' ac_unique_file="src/cache.c" gt_needs= # 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_header_list= ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS dav_linguas LINGUAS dav_syscachedir dav_localstatedir ssbindir dav_group dav_user LIBOBJS NEON_LIBS NE_FLAG_TS_SSL NE_FLAG_SOCKS NE_FLAG_LFS NE_FLAG_IPV6 NE_FLAG_ZLIB NE_FLAG_SSL NEON_CONFIG POSUB LTLIBINTL LIBINTL INTLLIBS LTLIBICONV LIBICONV INTL_MACOSX_LIBS EGREP GREP CPP host_os host_vendor host_cpu host build_os build_vendor build_cpu build XGETTEXT_EXTRA_OPTIONS MSGMERGE XGETTEXT_015 XGETTEXT GMSGFMT_015 MSGFMT_015 GMSGFMT MSGFMT GETTEXT_MACRO_VERSION USE_NLS LN_S 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_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V 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 target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir runstatedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_dependency_tracking enable_nls with_gnu_ld enable_rpath with_libiconv_prefix with_libintl_prefix with_neon enable_largefile ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP dav_user dav_group ssbindir dav_localstatedir dav_syscachedir LINGUAS' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # 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 ;; -runstatedir | --runstatedir | --runstatedi | --runstated \ | --runstate | --runstat | --runsta | --runst | --runs \ | --run | --ru | --r) ac_prev=runstatedir ;; -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | --run=* | --ru=* | --r=*) runstatedir=$ac_optarg ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$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 runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $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 davfs2 1.5.5 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/davfs2] --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 davfs2 1.5.5:";; 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 --disable-nls do not use Native Language Support --disable-rpath do not hardcode runtime library paths --disable-largefile omit support for large files Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-gnu-ld assume the C compiler uses GNU ld default=no --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib --without-libiconv-prefix don't search for libiconv in includedir and libdir --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib --without-libintl-prefix don't search for libintl in includedir and libdir --with-neon[=DIR] specify location of neon library 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 CPP C preprocessor dav_user if invoked by root, mount.davfs runs as this user [davfs2] dav_group the group, the mount.davfs daemon belongs to [davfs2] ssbindir where mount will search for mount-helpers [/sbin] dav_localstatedir directory to store pid-files in [/var/run] dav_syscachedir cache directory [/var/cache] LINGUAS select languages for messages and documentation 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 davfs2 configure 1.5.5 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_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_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_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_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://savannah.nongnu.org/projects/davfs2 ## ## --------------------------------------------------------- ##" ) | 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 # 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_find_intX_t LINENO BITS VAR # ----------------------------------- # Finds a signed integer type with width BITS, setting cache variable VAR # accordingly. ac_fn_c_find_intX_t () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 $as_echo_n "checking for int$2_t... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=no" # Order is important - never check a type that is potentially smaller # than half of the expected target width. for ac_type in int$2_t 'int' 'long int' \ 'long long int' 'short int' 'signed char'; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default enum { N = $2 / 2 - 1 }; int main () { static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default enum { N = $2 / 2 - 1 }; int main () { static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else case $ac_type in #( int$2_t) : eval "$3=yes" ;; #( *) : eval "$3=\$ac_type" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if eval test \"x\$"$3"\" = x"no"; then : else break fi done 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_find_intX_t # ac_fn_c_check_type LINENO TYPE VAR INCLUDES # ------------------------------------------- # Tests whether TYPE exists after having included INCLUDES, setting cache # variable VAR accordingly. ac_fn_c_check_type () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $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=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof ($2)) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof (($2))) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else eval "$3=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 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_type # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES # ---------------------------------------------------- # Tries to find if the field MEMBER exists in type AGGR, after including # INCLUDES, setting cache variable VAR accordingly. ac_fn_c_check_member () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 $as_echo_n "checking for $2.$3... " >&6; } if eval \${$4+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int main () { static $2 ac_aggr; if (ac_aggr.$3) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$4=yes" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int main () { static $2 ac_aggr; if (sizeof ac_aggr.$3) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$4=yes" else eval "$4=no" 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 eval ac_res=\$$4 { $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_member # ac_fn_c_find_uintX_t LINENO BITS VAR # ------------------------------------ # Finds an unsigned integer type with width BITS, setting cache variable VAR # accordingly. ac_fn_c_find_uintX_t () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 $as_echo_n "checking for uint$2_t... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=no" # Order is important - never check a type that is potentially smaller # than half of the expected target width. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 'unsigned long long int' 'unsigned short int' 'unsigned char'; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : case $ac_type in #( uint$2_t) : eval "$3=yes" ;; #( *) : eval "$3=\$ac_type" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if eval test \"x\$"$3"\" = x"no"; then : else break fi done 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_find_uintX_t # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES # -------------------------------------------- # Tries to find the compile-time value of EXPR in a program that includes # INCLUDES, setting VAR accordingly. Returns whether the value could be # computed ac_fn_c_compute_int () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) >= 0)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_lo=0 ac_mid=0 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_hi=$ac_mid; break else as_fn_arith $ac_mid + 1 && ac_lo=$as_val if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) < 0)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_hi=-1 ac_mid=-1 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) >= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_lo=$ac_mid; break else as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_hi=$ac_mid else as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in #(( ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; '') ac_retval=1 ;; esac else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 static long int longval () { return $2; } static unsigned long int ulongval () { return $2; } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (($2) < 0) { long int i = longval (); if (i != ($2)) return 1; fprintf (f, "%ld", i); } else { unsigned long int i = ulongval (); if (i != ($2)) return 1; fprintf (f, "%lu", i); } /* Do not output a trailing newline, as this causes \r\n confusion on some platforms. */ return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : echo >>conftest.val; read $3 &5 $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 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 davfs2 $as_me 1.5.5, 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 gt_needs="$gt_needs " as_fn_append ac_header_list " utime.h" # 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 ac_aux_dir= for ac_dir in config "$srcdir"/config; 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 config \"$srcdir\"/config" "$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. am__api_version='1.15' # 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 # 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=1;; 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='\' 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='davfs2' VERSION='1.5.5' 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" # Checks for programs. 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 { $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 # Checks for libraries. mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac { $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; } GETTEXT_MACRO_VERSION=0.18 # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # 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. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test "$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 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; *) MSGFMT_015=$MSGFMT ;; esac case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; *) GMSGFMT_015=$GMSGFMT ;; esac # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # 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. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done 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 rm -f messages.po case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; *) XGETTEXT_015=$XGETTEXT ;; esac # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # 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. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" ;; esac fi MSGMERGE="$ac_cv_path_MSGMERGE" if test "$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 test -n "$localedir" || localedir='${datadir}/locale' test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= ac_config_commands="$ac_config_commands po-directories" if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" # 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 # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 $as_echo_n "checking for ld used by GCC... " >&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. [\\/]* | [A-Za-z]:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the path 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 "$with_gnu_ld" = yes; 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 ${acl_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$ac_save_ifs" else acl_cv_path_LD="$LD" # Let the user override the test with a path. fi fi LD="$acl_cv_path_LD" if test -n "$LD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&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 ${acl_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 &5 $as_echo "$acl_cv_prog_gnu_ld" >&6; } with_gnu_ld=$acl_cv_prog_gnu_ld { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 $as_echo_n "checking for shared library run path origin... " >&6; } if ${acl_cv_rpath+:} false; then : $as_echo_n "(cached) " >&6 else CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 $as_echo "$acl_cv_rpath" >&6; } wl="$acl_cv_wl" acl_libext="$acl_cv_libext" acl_shlibext="$acl_cv_shlibext" acl_libname_spec="$acl_cv_libname_spec" acl_library_names_spec="$acl_cv_library_names_spec" acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" acl_hardcode_direct="$acl_cv_hardcode_direct" acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" # Check whether --enable-rpath was given. if test "${enable_rpath+set}" = set; then : enableval=$enable_rpath; : else enable_rpath=yes 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 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 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" acl_libdirstem=lib acl_libdirstem2= case "$host_os" in solaris*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 $as_echo_n "checking for 64-bit host... " >&6; } if ${gl_cv_solaris_64bit+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef _LP64 sixtyfour bits #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "sixtyfour bits" >/dev/null 2>&1; then : gl_cv_solaris_64bit=yes else gl_cv_solaris_64bit=no fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 $as_echo "$gl_cv_solaris_64bit" >&6; } if test $gl_cv_solaris_64bit = yes; then acl_libdirstem=lib/64 case "$host_cpu" in sparc*) acl_libdirstem2=lib/sparcv9 ;; i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; esac fi ;; *) searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` if test -n "$searchpath"; then acl_save_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; */../ | */.. ) # Better ignore directories of this form. They are misleading. ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib64 ) acl_libdirstem=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" fi ;; esac test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libiconv-prefix was given. if test "${with_libiconv_prefix+set}" = set; then : withval=$with_libiconv_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" if test "$acl_libdirstem2" != "$acl_libdirstem" \ && ! test -d "$withval/$acl_libdirstem"; then additional_libdir="$withval/$acl_libdirstem2" fi fi fi fi LIBICONV= LTLIBICONV= INCICONV= LIBICONV_PREFIX= HAVE_LIBICONV= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='iconv ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" else : fi else found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then dir="$additional_libdir" if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" else LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = 'iconv'; then LIBICONV_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = 'iconv'; then LIBICONV_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" ;; esac done fi else LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : $as_echo_n "(cached) " >&6 else gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { CFPreferencesCopyAppValue(NULL, NULL) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_CFPreferencesCopyAppValue=yes else gt_cv_func_CFPreferencesCopyAppValue=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : $as_echo_n "(cached) " >&6 else gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { CFLocaleCopyCurrent(); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_CFLocaleCopyCurrent=yes else gt_cv_func_CFLocaleCopyCurrent=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } if test $gt_cv_func_CFLocaleCopyCurrent = yes; then $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi LIBINTL= LTLIBINTL= POSUB= case " $gt_needs " in *" need-formatstring-macros "*) gt_api_version=3 ;; *" need-ngettext "*) gt_api_version=2 ;; *) gt_api_version=1 ;; esac gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no if test $gt_api_version -ge 3; then gt_revision_test_code=' #ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; ' else gt_revision_test_code= fi if test $gt_api_version -ge 2; then gt_expression_test_code=' + * ngettext ("", "", 0)' else gt_expression_test_code= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 $as_echo_n "checking for GNU gettext in libc... " >&6; } if eval \${$gt_func_gnugettext_libc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings; int main () { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$gt_func_gnugettext_libc=yes" else eval "$gt_func_gnugettext_libc=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$gt_func_gnugettext_libc { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then am_save_CPPFLAGS="$CPPFLAGS" for element in $INCICONV; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 $as_echo_n "checking for iconv... " >&6; } if ${am_cv_func_iconv+:} false; then : $as_echo_n "(cached) " >&6 else am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : am_cv_func_iconv=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : am_cv_lib_iconv=yes am_cv_func_iconv=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$am_save_LIBS" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 $as_echo "$am_cv_func_iconv" >&6; } if test "$am_cv_func_iconv" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 $as_echo_n "checking for working iconv... " >&6; } if ${am_cv_func_iconv_works+:} false; then : $as_echo_n "(cached) " >&6 else am_save_LIBS="$LIBS" if test $am_cv_lib_iconv = yes; then LIBS="$LIBS $LIBICONV" fi if test "$cross_compiling" = yes; then : case "$host_os" in aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; *) am_cv_func_iconv_works="guessing yes" ;; esac else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { /* Test against AIX 5.1 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); if (cd_utf8_to_88591 != (iconv_t)(-1)) { static const char input[] = "\342\202\254"; /* EURO SIGN */ char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_utf8_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) return 1; } } /* Test against Solaris 10 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); if (cd_ascii_to_88591 != (iconv_t)(-1)) { static const char input[] = "\263"; char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_ascii_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) return 1; } } #if 0 /* This bug could be worked around by the caller. */ /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ { iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; char buf[50]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_88591_to_utf8, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if ((int)res > 0) return 1; } } #endif /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is provided. */ if (/* Try standardized names. */ iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) /* Try IRIX, OSF/1 names. */ && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) /* Try AIX names. */ && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) /* Try HP-UX names. */ && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) return 1; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : am_cv_func_iconv_works=yes else am_cv_func_iconv_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi LIBS="$am_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 $as_echo "$am_cv_func_iconv_works" >&6; } case "$am_cv_func_iconv_works" in *no) am_func_iconv=no am_cv_lib_iconv=no ;; *) am_func_iconv=yes ;; esac else am_func_iconv=no am_cv_lib_iconv=no fi if test "$am_func_iconv" = yes; then $as_echo "#define HAVE_ICONV 1" >>confdefs.h fi if test "$am_cv_lib_iconv" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 $as_echo_n "checking how to link with libiconv... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 $as_echo "$LIBICONV" >&6; } else CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libintl-prefix was given. if test "${with_libintl_prefix+set}" = set; then : withval=$with_libintl_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" if test "$acl_libdirstem2" != "$acl_libdirstem" \ && ! test -d "$withval/$acl_libdirstem"; then additional_libdir="$withval/$acl_libdirstem2" fi fi fi fi LIBINTL= LTLIBINTL= INCINTL= LIBINTL_PREFIX= HAVE_LIBINTL= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='intl ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" else : fi else found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then dir="$additional_libdir" if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" else LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = 'intl'; then LIBINTL_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = 'intl'; then LIBINTL_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" ;; esac done fi else LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 $as_echo_n "checking for GNU gettext in libintl... " >&6; } if eval \${$gt_func_gnugettext_libintl+:} false; then : $as_echo_n "(cached) " >&6 else gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); int main () { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$gt_func_gnugettext_libintl=yes" else eval "$gt_func_gnugettext_libintl=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); int main () { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" eval "$gt_func_gnugettext_libintl=yes" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS" fi eval ac_res=\$$gt_func_gnugettext_libintl { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else LIBINTL= LTLIBINTL= INCINTL= fi if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then $as_echo "#define ENABLE_NLS 1" >>confdefs.h else USE_NLS=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 $as_echo_n "checking whether to use NLS... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 $as_echo "$USE_NLS" >&6; } if test "$USE_NLS" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 $as_echo_n "checking where the gettext function comes from... " >&6; } if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 $as_echo "$gt_source" >&6; } fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 $as_echo_n "checking how to link with libintl... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 $as_echo "$LIBINTL" >&6; } for element in $INCINTL; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done fi $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h fi POSUB=po fi INTLLIBS="$LIBINTL" # Check whether --with-neon was given. if test "${with_neon+set}" = set; then : withval=$with_neon; case $withval in yes|no) neon_ext_path= ;; *) neon_ext_path=$withval ;; esac; else neon_ext_path= fi neon_got_library=no if test "x$neon_ext_path" = "x"; then # Extract the first word of "neon-config", so it can be a program name with args. set dummy neon-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_NEON_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $NEON_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_NEON_CONFIG="$NEON_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_NEON_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 test -z "$ac_cv_path_NEON_CONFIG" && ac_cv_path_NEON_CONFIG="none" ;; esac fi NEON_CONFIG=$ac_cv_path_NEON_CONFIG if test -n "$NEON_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NEON_CONFIG" >&5 $as_echo "$NEON_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x${NEON_CONFIG}" = "xnone"; then { $as_echo "$as_me:${as_lineno-$LINENO}: no external neon library found" >&5 $as_echo "$as_me: no external neon library found" >&6;} elif test -x "${NEON_CONFIG}"; then # Configure to use an external neon, given a neon-config script # found at $NEON_CONFIG. neon_prefix=`$NEON_CONFIG --prefix` # Check whether the library is of required version ne_save_LIBS="$LIBS" ne_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS `$NEON_CONFIG --cflags`" LIBS="$LIBS `$NEON_CONFIG --libs`" ne_libver=`$NEON_CONFIG --version | sed -e "s/neon //g"` # Check whether it's possible to link against neon { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking against neon" >&5 $as_echo_n "checking linking against neon... " >&6; } if ${ne_cv_lib_neon+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ne_version_match(0, 0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ne_cv_lib_neon=yes else ne_cv_lib_neon=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: $ne_cv_lib_neon" >&5 $as_echo "$ne_cv_lib_neon" >&6; } if test "$ne_cv_lib_neon" = "yes"; then ne_cv_lib_neonver=no for v in 27 28 29 30; do case $ne_libver in 0.$v.*) ne_cv_lib_neonver=yes ;; esac done fi ne_goodver=$ne_cv_lib_neonver LIBS=$ne_save_LIBS CFLAGS=$ne_save_CFLAGS if test "$ne_goodver" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: using neon library $ne_libver" >&5 $as_echo "$as_me: using neon library $ne_libver" >&6;} # Pick up CFLAGS and LIBS needed CFLAGS="$CFLAGS `$NEON_CONFIG --cflags`" NEON_LIBS="$NEON_LIBS `$NEON_CONFIG --libs`" # Pick up library version set dummy `$NEON_CONFIG --version | sed 's/\./ /g'` NE_VERSION_MAJOR=$3; NE_VERSION_MINOR=$4; NE_VERSION_PATCH=$5 NEON_VERSION="${NE_VERSION_MAJOR}.${NE_VERSION_MINOR}.${NE_VERSION_PATCH}${NE_VERSION_TAG}" cat >>confdefs.h <<_ACEOF #define NEON_VERSION "${NEON_VERSION}" _ACEOF cat >>confdefs.h <<_ACEOF #define NE_VERSION_MAJOR (${NE_VERSION_MAJOR}) _ACEOF cat >>confdefs.h <<_ACEOF #define NE_VERSION_MINOR (${NE_VERSION_MINOR}) _ACEOF cat >>confdefs.h <<_ACEOF #define NE_VERSION_PATCH (${NE_VERSION_PATCH}) _ACEOF neon_library_message="library in ${neon_prefix} (${NEON_VERSION})" neon_xml_parser_message="using whatever neon uses" if $NEON_CONFIG --support ssl >/dev/null; then NE_FLAG_SSL=yes $as_echo "#define NE_HAVE_SSL 1" >>confdefs.h ne_SSL_message="SSL is supported by neon" { $as_echo "$as_me:${as_lineno-$LINENO}: SSL is supported by neon" >&5 $as_echo "$as_me: SSL is supported by neon" >&6;} else NE_FLAG_SSL=no ne_SSL_message="SSL is not supported by neon" { $as_echo "$as_me:${as_lineno-$LINENO}: SSL is not supported by neon" >&5 $as_echo "$as_me: SSL is not supported by neon" >&6;} fi if $NEON_CONFIG --support zlib >/dev/null; then NE_FLAG_ZLIB=yes $as_echo "#define NE_HAVE_ZLIB 1" >>confdefs.h ne_ZLIB_message="zlib is supported by neon" { $as_echo "$as_me:${as_lineno-$LINENO}: zlib is supported by neon" >&5 $as_echo "$as_me: zlib is supported by neon" >&6;} else NE_FLAG_ZLIB=no ne_ZLIB_message="zlib is not supported by neon" { $as_echo "$as_me:${as_lineno-$LINENO}: zlib is not supported by neon" >&5 $as_echo "$as_me: zlib is not supported by neon" >&6;} fi if $NEON_CONFIG --support ipv6 >/dev/null; then NE_FLAG_IPV6=yes $as_echo "#define NE_HAVE_IPV6 1" >>confdefs.h ne_IPV6_message="IPv6 is supported by neon" { $as_echo "$as_me:${as_lineno-$LINENO}: IPv6 is supported by neon" >&5 $as_echo "$as_me: IPv6 is supported by neon" >&6;} else NE_FLAG_IPV6=no ne_IPV6_message="IPv6 is not supported by neon" { $as_echo "$as_me:${as_lineno-$LINENO}: IPv6 is not supported by neon" >&5 $as_echo "$as_me: IPv6 is not supported by neon" >&6;} fi if $NEON_CONFIG --support lfs >/dev/null; then NE_FLAG_LFS=yes $as_echo "#define NE_HAVE_LFS 1" >>confdefs.h ne_LFS_message="LFS is supported by neon" { $as_echo "$as_me:${as_lineno-$LINENO}: LFS is supported by neon" >&5 $as_echo "$as_me: LFS is supported by neon" >&6;} else NE_FLAG_LFS=no ne_LFS_message="LFS is not supported by neon" { $as_echo "$as_me:${as_lineno-$LINENO}: LFS is not supported by neon" >&5 $as_echo "$as_me: LFS is not supported by neon" >&6;} fi if $NEON_CONFIG --support socks >/dev/null; then NE_FLAG_SOCKS=yes $as_echo "#define NE_HAVE_SOCKS 1" >>confdefs.h ne_SOCKS_message="SOCKSv5 is supported by neon" { $as_echo "$as_me:${as_lineno-$LINENO}: SOCKSv5 is supported by neon" >&5 $as_echo "$as_me: SOCKSv5 is supported by neon" >&6;} else NE_FLAG_SOCKS=no ne_SOCKS_message="SOCKSv5 is not supported by neon" { $as_echo "$as_me:${as_lineno-$LINENO}: SOCKSv5 is not supported by neon" >&5 $as_echo "$as_me: SOCKSv5 is not supported by neon" >&6;} fi if $NEON_CONFIG --support ts_ssl >/dev/null; then NE_FLAG_TS_SSL=yes $as_echo "#define NE_HAVE_TS_SSL 1" >>confdefs.h ne_TS_SSL_message="thread-safe SSL is supported by neon" { $as_echo "$as_me:${as_lineno-$LINENO}: thread-safe SSL is supported by neon" >&5 $as_echo "$as_me: thread-safe SSL is supported by neon" >&6;} else NE_FLAG_TS_SSL=no ne_TS_SSL_message="thread-safe SSL is not supported by neon" { $as_echo "$as_me:${as_lineno-$LINENO}: thread-safe SSL is not supported by neon" >&5 $as_echo "$as_me: thread-safe SSL is not supported by neon" >&6;} fi neon_got_library=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: incompatible neon library version $ne_libver: wanted 0.27 28 29 30" >&5 $as_echo "$as_me: incompatible neon library version $ne_libver: wanted 0.27 28 29 30" >&6;} neon_got_library=no fi else { $as_echo "$as_me:${as_lineno-$LINENO}: ignoring non-executable ${NEON_CONFIG}" >&5 $as_echo "$as_me: ignoring non-executable ${NEON_CONFIG}" >&6;} fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for neon library in $neon_ext_path" >&5 $as_echo_n "checking for neon library in $neon_ext_path... " >&6; } NEON_CONFIG="$neon_ext_path/bin/neon-config" if test -x ${NEON_CONFIG}; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 $as_echo "found" >&6; } # Configure to use an external neon, given a neon-config script # found at $NEON_CONFIG. neon_prefix=`$NEON_CONFIG --prefix` # Check whether the library is of required version ne_save_LIBS="$LIBS" ne_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS `$NEON_CONFIG --cflags`" LIBS="$LIBS `$NEON_CONFIG --libs`" ne_libver=`$NEON_CONFIG --version | sed -e "s/neon //g"` # Check whether it's possible to link against neon { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking against neon" >&5 $as_echo_n "checking linking against neon... " >&6; } if ${ne_cv_lib_neon+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ne_version_match(0, 0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ne_cv_lib_neon=yes else ne_cv_lib_neon=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: $ne_cv_lib_neon" >&5 $as_echo "$ne_cv_lib_neon" >&6; } if test "$ne_cv_lib_neon" = "yes"; then ne_cv_lib_neonver=no for v in 27 28 29 30; do case $ne_libver in 0.$v.*) ne_cv_lib_neonver=yes ;; esac done fi ne_goodver=$ne_cv_lib_neonver LIBS=$ne_save_LIBS CFLAGS=$ne_save_CFLAGS if test "$ne_goodver" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: using neon library $ne_libver" >&5 $as_echo "$as_me: using neon library $ne_libver" >&6;} # Pick up CFLAGS and LIBS needed CFLAGS="$CFLAGS `$NEON_CONFIG --cflags`" NEON_LIBS="$NEON_LIBS `$NEON_CONFIG --libs`" # Pick up library version set dummy `$NEON_CONFIG --version | sed 's/\./ /g'` NE_VERSION_MAJOR=$3; NE_VERSION_MINOR=$4; NE_VERSION_PATCH=$5 NEON_VERSION="${NE_VERSION_MAJOR}.${NE_VERSION_MINOR}.${NE_VERSION_PATCH}${NE_VERSION_TAG}" cat >>confdefs.h <<_ACEOF #define NEON_VERSION "${NEON_VERSION}" _ACEOF cat >>confdefs.h <<_ACEOF #define NE_VERSION_MAJOR (${NE_VERSION_MAJOR}) _ACEOF cat >>confdefs.h <<_ACEOF #define NE_VERSION_MINOR (${NE_VERSION_MINOR}) _ACEOF cat >>confdefs.h <<_ACEOF #define NE_VERSION_PATCH (${NE_VERSION_PATCH}) _ACEOF neon_library_message="library in ${neon_prefix} (${NEON_VERSION})" neon_xml_parser_message="using whatever neon uses" if $NEON_CONFIG --support ssl >/dev/null; then NE_FLAG_SSL=yes $as_echo "#define NE_HAVE_SSL 1" >>confdefs.h ne_SSL_message="SSL is supported by neon" { $as_echo "$as_me:${as_lineno-$LINENO}: SSL is supported by neon" >&5 $as_echo "$as_me: SSL is supported by neon" >&6;} else NE_FLAG_SSL=no ne_SSL_message="SSL is not supported by neon" { $as_echo "$as_me:${as_lineno-$LINENO}: SSL is not supported by neon" >&5 $as_echo "$as_me: SSL is not supported by neon" >&6;} fi if $NEON_CONFIG --support zlib >/dev/null; then NE_FLAG_ZLIB=yes $as_echo "#define NE_HAVE_ZLIB 1" >>confdefs.h ne_ZLIB_message="zlib is supported by neon" { $as_echo "$as_me:${as_lineno-$LINENO}: zlib is supported by neon" >&5 $as_echo "$as_me: zlib is supported by neon" >&6;} else NE_FLAG_ZLIB=no ne_ZLIB_message="zlib is not supported by neon" { $as_echo "$as_me:${as_lineno-$LINENO}: zlib is not supported by neon" >&5 $as_echo "$as_me: zlib is not supported by neon" >&6;} fi if $NEON_CONFIG --support ipv6 >/dev/null; then NE_FLAG_IPV6=yes $as_echo "#define NE_HAVE_IPV6 1" >>confdefs.h ne_IPV6_message="IPv6 is supported by neon" { $as_echo "$as_me:${as_lineno-$LINENO}: IPv6 is supported by neon" >&5 $as_echo "$as_me: IPv6 is supported by neon" >&6;} else NE_FLAG_IPV6=no ne_IPV6_message="IPv6 is not supported by neon" { $as_echo "$as_me:${as_lineno-$LINENO}: IPv6 is not supported by neon" >&5 $as_echo "$as_me: IPv6 is not supported by neon" >&6;} fi if $NEON_CONFIG --support lfs >/dev/null; then NE_FLAG_LFS=yes $as_echo "#define NE_HAVE_LFS 1" >>confdefs.h ne_LFS_message="LFS is supported by neon" { $as_echo "$as_me:${as_lineno-$LINENO}: LFS is supported by neon" >&5 $as_echo "$as_me: LFS is supported by neon" >&6;} else NE_FLAG_LFS=no ne_LFS_message="LFS is not supported by neon" { $as_echo "$as_me:${as_lineno-$LINENO}: LFS is not supported by neon" >&5 $as_echo "$as_me: LFS is not supported by neon" >&6;} fi if $NEON_CONFIG --support socks >/dev/null; then NE_FLAG_SOCKS=yes $as_echo "#define NE_HAVE_SOCKS 1" >>confdefs.h ne_SOCKS_message="SOCKSv5 is supported by neon" { $as_echo "$as_me:${as_lineno-$LINENO}: SOCKSv5 is supported by neon" >&5 $as_echo "$as_me: SOCKSv5 is supported by neon" >&6;} else NE_FLAG_SOCKS=no ne_SOCKS_message="SOCKSv5 is not supported by neon" { $as_echo "$as_me:${as_lineno-$LINENO}: SOCKSv5 is not supported by neon" >&5 $as_echo "$as_me: SOCKSv5 is not supported by neon" >&6;} fi if $NEON_CONFIG --support ts_ssl >/dev/null; then NE_FLAG_TS_SSL=yes $as_echo "#define NE_HAVE_TS_SSL 1" >>confdefs.h ne_TS_SSL_message="thread-safe SSL is supported by neon" { $as_echo "$as_me:${as_lineno-$LINENO}: thread-safe SSL is supported by neon" >&5 $as_echo "$as_me: thread-safe SSL is supported by neon" >&6;} else NE_FLAG_TS_SSL=no ne_TS_SSL_message="thread-safe SSL is not supported by neon" { $as_echo "$as_me:${as_lineno-$LINENO}: thread-safe SSL is not supported by neon" >&5 $as_echo "$as_me: thread-safe SSL is not supported by neon" >&6;} fi neon_got_library=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: incompatible neon library version $ne_libver: wanted 0.27 28 29 30" >&5 $as_echo "$as_me: incompatible neon library version $ne_libver: wanted 0.27 28 29 30" >&6;} neon_got_library=no fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } fi fi if test "$neon_got_library" = "no"; then as_fn_error $? "could not find neon" "$LINENO" 5 fi # Checks for header files. ac_header_dirent=no for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } if eval \${$as_ac_Header+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include <$ac_hdr> int main () { if ((DIR *) 0) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$as_ac_Header=yes" else eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$as_ac_Header { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 _ACEOF ac_header_dirent=$ac_hdr; break fi done # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. if test $ac_header_dirent = dirent.h; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 $as_echo_n "checking for library containing opendir... " >&6; } if ${ac_cv_search_opendir+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char opendir (); int main () { return opendir (); ; return 0; } _ACEOF for ac_lib in '' dir; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_opendir=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_opendir+:} false; then : break fi done if ${ac_cv_search_opendir+:} false; then : else ac_cv_search_opendir=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 $as_echo "$ac_cv_search_opendir" >&6; } ac_res=$ac_cv_search_opendir if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 $as_echo_n "checking for library containing opendir... " >&6; } if ${ac_cv_search_opendir+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char opendir (); int main () { return opendir (); ; return 0; } _ACEOF for ac_lib in '' x; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_opendir=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_opendir+:} false; then : break fi done if ${ac_cv_search_opendir+:} false; then : else ac_cv_search_opendir=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 $as_echo "$ac_cv_search_opendir" >&6; } ac_res=$ac_cv_search_opendir if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi fi { $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 fcntl.h libintl.h langinfo.h limits.h locale.h mntent.h stddef.h stdint.h stdlib.h string.h sys/file.h sys/mount.h sys/time.h syslog.h termios.h unistd.h utime.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$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 # Checks for typedefs, structures, and compiler characteristics. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } if ${ac_cv_c_const+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __cplusplus /* Ultrix mips cc rejects this sort of thing. */ typedef int charset[2]; const charset cs = { 0, 0 }; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this sort of thing. */ char tx; char *t = &tx; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; } bx; struct s *b = &bx; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_const=yes else ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 $as_echo "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then $as_echo "#define const /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 $as_echo_n "checking for uid_t in sys/types.h... " >&6; } if ${ac_cv_type_uid_t+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "uid_t" >/dev/null 2>&1; then : ac_cv_type_uid_t=yes else ac_cv_type_uid_t=no fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 $as_echo "$ac_cv_type_uid_t" >&6; } if test $ac_cv_type_uid_t = no; then $as_echo "#define uid_t int" >>confdefs.h $as_echo "#define gid_t int" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 $as_echo_n "checking for inline... " >&6; } if ${ac_cv_c_inline+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; static $ac_kw foo_t static_foo () {return 0; } $ac_kw foo_t foo () {return 0; } #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_inline=$ac_kw fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext test "$ac_cv_c_inline" != no && break done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 $as_echo "$ac_cv_c_inline" >&6; } case $ac_cv_c_inline in inline | yes) ;; *) case $ac_cv_c_inline in no) ac_val=;; *) ac_val=$ac_cv_c_inline;; esac cat >>confdefs.h <<_ACEOF #ifndef __cplusplus #define inline $ac_val #endif _ACEOF ;; esac ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" case $ac_cv_c_int16_t in #( no|yes) ;; #( *) cat >>confdefs.h <<_ACEOF #define int16_t $ac_cv_c_int16_t _ACEOF ;; esac ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" case $ac_cv_c_int32_t in #( no|yes) ;; #( *) cat >>confdefs.h <<_ACEOF #define int32_t $ac_cv_c_int32_t _ACEOF ;; esac ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" case $ac_cv_c_int8_t in #( no|yes) ;; #( *) cat >>confdefs.h <<_ACEOF #define int8_t $ac_cv_c_int8_t _ACEOF ;; esac ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" if test "x$ac_cv_type_mode_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define mode_t int _ACEOF fi ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" if test "x$ac_cv_type_off_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define off_t long int _ACEOF fi ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" if test "x$ac_cv_type_pid_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define pid_t int _ACEOF fi ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" if test "x$ac_cv_type_size_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define size_t unsigned int _ACEOF fi ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" if test "x$ac_cv_type_ssize_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define ssize_t int _ACEOF fi ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 _ACEOF fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } if ${ac_cv_header_time+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { if ((struct tm *) 0) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_time=yes else ac_cv_header_time=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 $as_echo "$ac_cv_header_time" >&6; } if test $ac_cv_header_time = yes; then $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } if ${ac_cv_struct_tm+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { struct tm tm; int *p = &tm.tm_sec; return !p; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_struct_tm=time.h else ac_cv_struct_tm=sys/time.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 $as_echo "$ac_cv_struct_tm" >&6; } if test $ac_cv_struct_tm = sys/time.h; then $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h fi ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" case $ac_cv_c_uint32_t in #( no|yes) ;; #( *) $as_echo "#define _UINT32_T 1" >>confdefs.h cat >>confdefs.h <<_ACEOF #define uint32_t $ac_cv_c_uint32_t _ACEOF ;; esac ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" case $ac_cv_c_uint64_t in #( no|yes) ;; #( *) $as_echo "#define _UINT64_T 1" >>confdefs.h cat >>confdefs.h <<_ACEOF #define uint64_t $ac_cv_c_uint64_t _ACEOF ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 $as_echo_n "checking for working volatile... " >&6; } if ${ac_cv_c_volatile+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { volatile int x; int * volatile y = (int *) 0; return !x && !y; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_volatile=yes else ac_cv_c_volatile=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 $as_echo "$ac_cv_c_volatile" >&6; } if test $ac_cv_c_volatile = no; then $as_echo "#define volatile /**/" >>confdefs.h fi # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 $as_echo_n "checking size of void *... " >&6; } if ${ac_cv_sizeof_void_p+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : else if test "$ac_cv_type_void_p" = yes; then { { $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 "cannot compute sizeof (void *) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_void_p=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 $as_echo "$ac_cv_sizeof_void_p" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_VOID_P $ac_cv_sizeof_void_p _ACEOF # Checks for library functions. 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 $as_echo_n "checking for working chown... " >&6; } if ${ac_cv_func_chown_works+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_chown_works=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default #include int main () { char *f = "conftest.chown"; struct stat before, after; if (creat (f, 0600) < 0) return 1; if (stat (f, &before) < 0) return 1; if (chown (f, (uid_t) -1, (gid_t) -1) == -1) return 1; if (stat (f, &after) < 0) return 1; return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_chown_works=yes else ac_cv_func_chown_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.chown fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 $as_echo "$ac_cv_func_chown_works" >&6; } if test $ac_cv_func_chown_works = yes; then $as_echo "#define HAVE_CHOWN 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 $as_echo_n "checking whether closedir returns void... " >&6; } if ${ac_cv_func_closedir_void+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_closedir_void=yes else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default #include <$ac_header_dirent> #ifndef __cplusplus int closedir (); #endif int main () { return closedir (opendir (".")) != 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_closedir_void=no else ac_cv_func_closedir_void=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 $as_echo "$ac_cv_func_closedir_void" >&6; } if test $ac_cv_func_closedir_void = yes; then $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 $as_echo_n "checking for error_at_line... " >&6; } if ${ac_cv_lib_error_at_line+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { error_at_line (0, 0, "", 0, "an error occurred"); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_error_at_line=yes else ac_cv_lib_error_at_line=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: $ac_cv_lib_error_at_line" >&5 $as_echo "$ac_cv_lib_error_at_line" >&6; } if test $ac_cv_lib_error_at_line = no; then case " $LIBOBJS " in *" error.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS error.$ac_objext" ;; esac fi for ac_header in vfork.h do : ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" if test "x$ac_cv_header_vfork_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_VFORK_H 1 _ACEOF fi done for ac_func in fork vfork do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done if test "x$ac_cv_func_fork" = xyes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 $as_echo_n "checking for working fork... " >&6; } if ${ac_cv_func_fork_works+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_fork_works=cross else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { /* By Ruediger Kuhlmann. */ return fork () < 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_fork_works=yes else ac_cv_func_fork_works=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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 $as_echo "$ac_cv_func_fork_works" >&6; } else ac_cv_func_fork_works=$ac_cv_func_fork fi if test "x$ac_cv_func_fork_works" = xcross; then case $host in *-*-amigaos* | *-*-msdosdjgpp*) # Override, as these systems have only a dummy fork() stub ac_cv_func_fork_works=no ;; *) ac_cv_func_fork_works=yes ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} fi ac_cv_func_vfork_works=$ac_cv_func_vfork if test "x$ac_cv_func_vfork" = xyes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 $as_echo_n "checking for working vfork... " >&6; } if ${ac_cv_func_vfork_works+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_vfork_works=cross else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Thanks to Paul Eggert for this test. */ $ac_includes_default #include #ifdef HAVE_VFORK_H # include #endif /* On some sparc systems, changes by the child to local and incoming argument registers are propagated back to the parent. The compiler is told about this with #include , but some compilers (e.g. gcc -O) don't grok . Test for this by using a static variable whose address is put into a register that is clobbered by the vfork. */ static void #ifdef __cplusplus sparc_address_test (int arg) # else sparc_address_test (arg) int arg; #endif { static pid_t child; if (!child) { child = vfork (); if (child < 0) { perror ("vfork"); _exit(2); } if (!child) { arg = getpid(); write(-1, "", 0); _exit (arg); } } } int main () { pid_t parent = getpid (); pid_t child; sparc_address_test (0); child = vfork (); if (child == 0) { /* Here is another test for sparc vfork register problems. This test uses lots of local variables, at least as many local variables as main has allocated so far including compiler temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should reuse the register of parent for one of the local variables, since it will think that parent can't possibly be used any more in this routine. Assigning to the local variable will thus munge parent in the parent process. */ pid_t p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); /* Convince the compiler that p..p7 are live; otherwise, it might use the same hardware register for all 8 local variables. */ if (p != p1 || p != p2 || p != p3 || p != p4 || p != p5 || p != p6 || p != p7) _exit(1); /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent from child file descriptors. If the child closes a descriptor before it execs or exits, this munges the parent's descriptor as well. Test for this by closing stdout in the child. */ _exit(close(fileno(stdout)) != 0); } else { int status; struct stat st; while (wait(&status) != child) ; return ( /* Was there some problem with vforking? */ child < 0 /* Did the child fail? (This shouldn't happen.) */ || status /* Did the vfork/compiler bug occur? */ || parent != getpid() /* Did the file descriptor bug occur? */ || fstat(fileno(stdout), &st) != 0 ); } } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_vfork_works=yes else ac_cv_func_vfork_works=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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 $as_echo "$ac_cv_func_vfork_works" >&6; } fi; if test "x$ac_cv_func_fork_works" = xcross; then ac_cv_func_vfork_works=$ac_cv_func_vfork { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} fi if test "x$ac_cv_func_vfork_works" = xyes; then $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h else $as_echo "#define vfork fork" >>confdefs.h fi if test "x$ac_cv_func_fork_works" = xyes; then $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5 $as_echo_n "checking type of array argument to getgroups... " >&6; } if ${ac_cv_type_getgroups+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_type_getgroups=cross else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Thanks to Mike Rendell for this test. */ $ac_includes_default #define NGID 256 #undef MAX #define MAX(x, y) ((x) > (y) ? (x) : (y)) int main () { gid_t gidset[NGID]; int i, n; union { gid_t gval; long int lval; } val; val.lval = -1; for (i = 0; i < NGID; i++) gidset[i] = val.gval; n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, gidset); /* Exit non-zero if getgroups seems to require an array of ints. This happens when gid_t is short int but getgroups modifies an array of ints. */ return n > 0 && gidset[n] != val.gval; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_type_getgroups=gid_t else ac_cv_type_getgroups=int fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test $ac_cv_type_getgroups = cross; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then : ac_cv_type_getgroups=gid_t else ac_cv_type_getgroups=int fi rm -f conftest* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5 $as_echo "$ac_cv_type_getgroups" >&6; } cat >>confdefs.h <<_ACEOF #define GETGROUPS_T $ac_cv_type_getgroups _ACEOF ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups" if test "x$ac_cv_func_getgroups" = xyes; then : fi # If we don't yet have getgroups, see if it's in -lbsd. # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1. ac_save_LIBS=$LIBS if test $ac_cv_func_getgroups = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5 $as_echo_n "checking for getgroups in -lbsd... " >&6; } if ${ac_cv_lib_bsd_getgroups+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbsd $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 getgroups (); int main () { return getgroups (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bsd_getgroups=yes else ac_cv_lib_bsd_getgroups=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_bsd_getgroups" >&5 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; } if test "x$ac_cv_lib_bsd_getgroups" = xyes; then : GETGROUPS_LIB=-lbsd fi fi # Run the program to test the functionality of the system-supplied # getgroups function only if there is such a function. if test $ac_cv_func_getgroups = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5 $as_echo_n "checking for working getgroups... " >&6; } if ${ac_cv_func_getgroups_works+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_getgroups_works=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { /* On Ultrix 4.3, getgroups (0, 0) always fails. */ return getgroups (0, 0) == -1; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_getgroups_works=yes else ac_cv_func_getgroups_works=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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5 $as_echo "$ac_cv_func_getgroups_works" >&6; } else ac_cv_func_getgroups_works=no fi if test $ac_cv_func_getgroups_works = yes; then $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h fi LIBS=$ac_save_LIBS # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, # -lseq on Dynix/PTX, -lgen on Unixware. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5 $as_echo_n "checking for library containing getmntent... " >&6; } if ${ac_cv_search_getmntent+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char getmntent (); int main () { return getmntent (); ; return 0; } _ACEOF for ac_lib in '' sun seq gen; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_getmntent=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_getmntent+:} false; then : break fi done if ${ac_cv_search_getmntent+:} false; then : else ac_cv_search_getmntent=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5 $as_echo "$ac_cv_search_getmntent" >&6; } ac_res=$ac_cv_search_getmntent if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" ac_cv_func_getmntent=yes $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h else ac_cv_func_getmntent=no fi if test $ac_cv_c_compiler_gnu = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 $as_echo_n "checking whether $CC needs -traditional... " >&6; } if ${ac_cv_prog_gcc_traditional+:} false; then : $as_echo_n "(cached) " >&6 else ac_pattern="Autoconf.*'x'" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include Autoconf TIOCGETP _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : ac_cv_prog_gcc_traditional=yes else ac_cv_prog_gcc_traditional=no fi rm -f conftest* if test $ac_cv_prog_gcc_traditional = no; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include Autoconf TCGETA _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : ac_cv_prog_gcc_traditional=yes fi rm -f conftest* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 $as_echo "$ac_cv_prog_gcc_traditional" >&6; } if test $ac_cv_prog_gcc_traditional = yes; then CC="$CC -traditional" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } if ${ac_cv_header_sys_types_h_makedev+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return makedev(0, 0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_header_sys_types_h_makedev=yes else ac_cv_header_sys_types_h_makedev=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: $ac_cv_header_sys_types_h_makedev" >&5 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } if test $ac_cv_header_sys_types_h_makedev = no; then ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h fi if test $ac_cv_header_sys_mkdev_h = no; then ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h fi fi fi for ac_header in stdlib.h do : ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" if test "x$ac_cv_header_stdlib_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STDLIB_H 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 $as_echo_n "checking for GNU libc compatible malloc... " >&6; } if ${ac_cv_func_malloc_0_nonnull+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_malloc_0_nonnull=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined STDC_HEADERS || defined HAVE_STDLIB_H # include #else char *malloc (); #endif int main () { return ! malloc (0); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_malloc_0_nonnull=yes else ac_cv_func_malloc_0_nonnull=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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } if test $ac_cv_func_malloc_0_nonnull = yes; then : $as_echo "#define HAVE_MALLOC 1" >>confdefs.h else $as_echo "#define HAVE_MALLOC 0" >>confdefs.h case " $LIBOBJS " in *" malloc.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; esac $as_echo "#define malloc rpl_malloc" >>confdefs.h fi for ac_header in sys/select.h sys/socket.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 $as_echo_n "checking types of arguments for select... " >&6; } if ${ac_cv_func_select_args+:} false; then : $as_echo_n "(cached) " >&6 else for ac_arg234 in 'fd_set *' 'int *' 'void *'; do for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default #ifdef HAVE_SYS_SELECT_H # include #endif #ifdef HAVE_SYS_SOCKET_H # include #endif int main () { extern int select ($ac_arg1, $ac_arg234, $ac_arg234, $ac_arg234, $ac_arg5); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done done done # Provide a safe default value. : "${ac_cv_func_select_args=int,int *,struct timeval *}" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 $as_echo "$ac_cv_func_select_args" >&6; } ac_save_IFS=$IFS; IFS=',' set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` IFS=$ac_save_IFS shift cat >>confdefs.h <<_ACEOF #define SELECT_TYPE_ARG1 $1 _ACEOF cat >>confdefs.h <<_ACEOF #define SELECT_TYPE_ARG234 ($2) _ACEOF cat >>confdefs.h <<_ACEOF #define SELECT_TYPE_ARG5 ($3) _ACEOF rm -f conftest* for ac_func in strftime do : ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" if test "x$ac_cv_func_strftime" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRFTIME 1 _ACEOF else # strftime is in -lintl on SCO UNIX. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 $as_echo_n "checking for strftime in -lintl... " >&6; } if ${ac_cv_lib_intl_strftime+:} 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 strftime (); int main () { return strftime (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_intl_strftime=yes else ac_cv_lib_intl_strftime=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_strftime" >&5 $as_echo "$ac_cv_lib_intl_strftime" >&6; } if test "x$ac_cv_lib_intl_strftime" = xyes; then : $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h LIBS="-lintl $LIBS" fi fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : $as_echo_n "(cached) " >&6 else rm -f conftest.sym conftest.file echo >conftest.file if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then if test "$cross_compiling" = yes; then : ac_cv_func_lstat_dereferences_slashed_symlink=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { struct stat sbuf; /* Linux will dereference the symlink and fail, as required by POSIX. That is better in the sense that it means we will not have to compile and use the lstat wrapper. */ return lstat ("conftest.sym/", &sbuf) == 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_lstat_dereferences_slashed_symlink=yes else ac_cv_func_lstat_dereferences_slashed_symlink=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi else # If the `ln -s' command failed, then we probably don't even # have an lstat function. ac_cv_func_lstat_dereferences_slashed_symlink=no fi rm -f conftest.sym conftest.file fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && cat >>confdefs.h <<_ACEOF #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 _ACEOF if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then case " $LIBOBJS " in *" lstat.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 $as_echo_n "checking whether stat accepts an empty string... " >&6; } if ${ac_cv_func_stat_empty_string_bug+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_stat_empty_string_bug=yes else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { struct stat sbuf; return stat ("", &sbuf) == 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_stat_empty_string_bug=no else ac_cv_func_stat_empty_string_bug=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } if test $ac_cv_func_stat_empty_string_bug = yes; then case " $LIBOBJS " in *" stat.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;; esac cat >>confdefs.h <<_ACEOF #define HAVE_STAT_EMPTY_STRING_BUG 1 _ACEOF fi for ac_header in $ac_header_list 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5 $as_echo_n "checking whether utime accepts a null argument... " >&6; } if ${ac_cv_func_utime_null+:} false; then : $as_echo_n "(cached) " >&6 else rm -f conftest.data; >conftest.data # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. if test "$cross_compiling" = yes; then : ac_cv_func_utime_null='guessing yes' else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default #ifdef HAVE_UTIME_H # include #endif int main () { struct stat s, t; return ! (stat ("conftest.data", &s) == 0 && utime ("conftest.data", 0) == 0 && stat ("conftest.data", &t) == 0 && t.st_mtime >= s.st_mtime && t.st_mtime - s.st_mtime < 120); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_utime_null=yes else ac_cv_func_utime_null=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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5 $as_echo "$ac_cv_func_utime_null" >&6; } if test "x$ac_cv_func_utime_null" != xno; then ac_cv_func_utime_null=yes $as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h fi rm -f conftest.data for ac_func in endpwent ftruncate getmntent memset mkdir nl_langinfo rpmatch select setlocale strcasecmp strchr strdup strerror strpbrk strrchr strstr strtol strtoull utime do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done # Misc. if test -z "$dav_user"; then dav_user="davfs2"; fi if test -z "$dav_group"; then dav_group="davfs2"; fi if test -z "$ssbindir"; then ssbindir="/sbin"; fi if test -z "$dav_localstatedir"; then dav_localstatedir="/var/run"; fi if test -z "$dav_syscachedir"; then dav_syscachedir="/var/cache"; fi if test "$ne_LFS_message" = "LFS is supported by neon"; then # Check whether --enable-largefile was given. if test "${enable_largefile+set}" = set; then : enableval=$enable_largefile; fi if test "$enable_largefile" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } if ${ac_cv_sys_largefile_CC+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_sys_largefile_CC=no if test "$GCC" != yes; then ac_save_CC=$CC while :; do # IRIX 6.2 and later do not support large files by default, # so use the C compiler's -n32 option if that helps. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : break fi rm -f core conftest.err conftest.$ac_objext CC="$CC -n32" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_largefile_CC=' -n32'; break fi rm -f core conftest.err conftest.$ac_objext break done CC=$ac_save_CC rm -f conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 $as_echo "$ac_cv_sys_largefile_CC" >&6; } if test "$ac_cv_sys_largefile_CC" != no; then CC=$CC$ac_cv_sys_largefile_CC fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } if ${ac_cv_sys_file_offset_bits+:} false; then : $as_echo_n "(cached) " >&6 else while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_file_offset_bits=no; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _FILE_OFFSET_BITS 64 #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_file_offset_bits=64; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_sys_file_offset_bits=unknown break done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } case $ac_cv_sys_file_offset_bits in #( no | unknown) ;; *) cat >>confdefs.h <<_ACEOF #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits _ACEOF ;; esac rm -rf conftest* if test $ac_cv_sys_file_offset_bits = unknown; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } if ${ac_cv_sys_large_files+:} false; then : $as_echo_n "(cached) " >&6 else while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_large_files=no; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _LARGE_FILES 1 #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_large_files=1; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_sys_large_files=unknown break done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 $as_echo "$ac_cv_sys_large_files" >&6; } case $ac_cv_sys_large_files in #( no | unknown) ;; *) cat >>confdefs.h <<_ACEOF #define _LARGE_FILES $ac_cv_sys_large_files _ACEOF ;; esac rm -rf conftest* fi fi fi if test "$ac_cv_sys_file_offset_bits" = "64"; then dav_lfs=yes else dav_lfs=no fi dav_desired_linguas="${LINGUAS-%UNSET%}" dav_all_linguas= if test -f "man/po4a.conf"; then dav_all_linguas="`cat 'man/po4a.conf' | grep 'po4a_langs' | sed 's/.po4a_langs.//'`" fi dav_linguas= if test "$dav_desired_linguas" == "%UNSET%"; then dav_linguas="$dav_all_linguas" else for dav_lingua in $dav_desired_linguas; do case "$dav_all_linguas" in *"$dav_lingua"*) dav_linguas="$dav_linguas $dav_lingua";; esac done fi $as_echo "#define _GNU_SOURCE 1" >>confdefs.h ac_config_files="$ac_config_files Makefile po/Makefile.in etc/Makefile man/Makefile man/de/Makefile man/es/Makefile src/Makefile" 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 : "${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 davfs2 $as_me 1.5.5, 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="\\ davfs2 config.status 1.5.5 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" # Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it # from automake < 1.5. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" _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" ;; "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;; "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; "man/de/Makefile") CONFIG_FILES="$CONFIG_FILES man/de/Makefile" ;; "man/es/Makefile") CONFIG_FILES="$CONFIG_FILES man/es/Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; *) 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 } ;; "po-directories":C) for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) # Compute DUMMYPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) case "$ac_given_srcdir" in .) srcdirpre= ;; *) srcdirpre='$(srcdir)/' ;; esac POFILES= UPDATEPOFILES= DUMMYPOFILES= GMOFILES= for lang in $ALL_LINGUAS; do POFILES="$POFILES $srcdirpre$lang.po" UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" done # CATALOGS depends on both $ac_dir and the user's LINGUAS # environment variable. INST_LINGUAS= if test -n "$ALL_LINGUAS"; then for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "$LINGUAS"; 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 INST_LINGUAS="$INST_LINGUAS $presentlang" fi done fi CATALOGS= if test -n "$INST_LINGUAS"; then for lang in $INST_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" done fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in *.orig | *.bak | *~) ;; *) cat "$f" >> "$ac_dir/Makefile" ;; esac fi done fi ;; esac done ;; 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 if test "$USE_NLS" = "yes"; then dav_nls=${gt_source} else dav_nls=no fi cat<HTTP-headers->MIME-types->new - Edit '*' as extension and 'application/octet-stream' as MIME-type. - Apply the changes. - Select your IIS (the server as a whole, not just the WebDAV folder). - From the menu choose actions->all tasks->save configuration on disk - Restart IIS. Please Note: I had to retranslate the names of menu items from Microsoft's German. So the exact naming in English might be different. davfs2-1.5.5/config.h.in0000644000175000017500000002463413422373162011667 00000000000000/* config.h.in. Generated from configure.ac by autoheader. */ /* Define to 1 if the `closedir' function returns void instead of `int'. */ #undef CLOSEDIR_VOID /* Define to 1 if translation of program messages to the user's native language is requested. */ #undef ENABLE_NLS /* Define to the type of elements in the array set by `getgroups'. Usually this is either `int' or `gid_t'. */ #undef GETGROUPS_T /* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework. */ #undef HAVE_CFLOCALECOPYCURRENT /* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework. */ #undef HAVE_CFPREFERENCESCOPYAPPVALUE /* Define to 1 if your system has a working `chown' function. */ #undef HAVE_CHOWN /* Define if the GNU dcgettext() function is already present or preinstalled. */ #undef HAVE_DCGETTEXT /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_DIRENT_H /* Define to 1 if you have the `endpwent' function. */ #undef HAVE_ENDPWENT /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H /* Define to 1 if you have the `fork' function. */ #undef HAVE_FORK /* Define to 1 if you have the `ftruncate' function. */ #undef HAVE_FTRUNCATE /* Define to 1 if your system has a working `getgroups' function. */ #undef HAVE_GETGROUPS /* Define to 1 if you have the `getmntent' function. */ #undef HAVE_GETMNTENT /* Define if the GNU gettext() function is already present or preinstalled. */ #undef HAVE_GETTEXT /* Define if you have the iconv() function and it works. */ #undef HAVE_ICONV /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_LANGINFO_H /* Define to 1 if you have the header file. */ #undef HAVE_LIBINTL_H /* Define to 1 if you have the header file. */ #undef HAVE_LIMITS_H /* Define to 1 if you have the header file. */ #undef HAVE_LOCALE_H /* Define to 1 if your system has a GNU libc compatible `malloc' function, and to 0 otherwise. */ #undef HAVE_MALLOC /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the `memset' function. */ #undef HAVE_MEMSET /* Define to 1 if you have the `mkdir' function. */ #undef HAVE_MKDIR /* Define to 1 if you have the header file. */ #undef HAVE_MNTENT_H /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_NDIR_H /* Define to 1 if you have the `nl_langinfo' function. */ #undef HAVE_NL_LANGINFO /* Define to 1 if you have the `rpmatch' function. */ #undef HAVE_RPMATCH /* Define to 1 if you have the `select' function. */ #undef HAVE_SELECT /* Define to 1 if you have the `setlocale' function. */ #undef HAVE_SETLOCALE /* Define to 1 if `stat' has the bug that it succeeds when given the zero-length file name argument. */ #undef HAVE_STAT_EMPTY_STRING_BUG /* Define to 1 if you have the header file. */ #undef HAVE_STDDEF_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the `strcasecmp' function. */ #undef HAVE_STRCASECMP /* Define to 1 if you have the `strchr' function. */ #undef HAVE_STRCHR /* Define to 1 if you have the `strdup' function. */ #undef HAVE_STRDUP /* Define to 1 if you have the `strerror' function. */ #undef HAVE_STRERROR /* Define to 1 if you have the `strftime' function. */ #undef HAVE_STRFTIME /* 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 `strpbrk' function. */ #undef HAVE_STRPBRK /* Define to 1 if you have the `strrchr' function. */ #undef HAVE_STRRCHR /* Define to 1 if you have the `strstr' function. */ #undef HAVE_STRSTR /* Define to 1 if you have the `strtol' function. */ #undef HAVE_STRTOL /* Define to 1 if you have the `strtoull' function. */ #undef HAVE_STRTOULL /* Define to 1 if `st_blksize' is a member of `struct stat'. */ #undef HAVE_STRUCT_STAT_ST_BLKSIZE /* Define to 1 if you have the header file. */ #undef HAVE_SYSLOG_H /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_SYS_DIR_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_FILE_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_MOUNT_H /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_SYS_NDIR_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SELECT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SOCKET_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_TIME_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_TERMIOS_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if you have the `utime' function. */ #undef HAVE_UTIME /* Define to 1 if you have the header file. */ #undef HAVE_UTIME_H /* Define to 1 if `utime(file, NULL)' sets file's timestamp to the present. */ #undef HAVE_UTIME_NULL /* Define to 1 if you have the `vfork' function. */ #undef HAVE_VFORK /* Define to 1 if you have the header file. */ #undef HAVE_VFORK_H /* Define to 1 if `fork' works. */ #undef HAVE_WORKING_FORK /* Define to 1 if `vfork' works. */ #undef HAVE_WORKING_VFORK /* Define to 1 if `lstat' dereferences a symlink specified with a trailing slash. */ #undef LSTAT_FOLLOWS_SLASHED_SYMLINK /* Define to 1 if `major', `minor', and `makedev' are declared in . */ #undef MAJOR_IN_MKDEV /* Define to 1 if `major', `minor', and `makedev' are declared in . */ #undef MAJOR_IN_SYSMACROS /* Define to be the neon version string */ #undef NEON_VERSION /* Defined if IPV6 is supported */ #undef NE_HAVE_IPV6 /* Defined if LFS is supported */ #undef NE_HAVE_LFS /* Defined if SOCKS is supported */ #undef NE_HAVE_SOCKS /* Defined if SSL is supported */ #undef NE_HAVE_SSL /* Defined if TS_SSL is supported */ #undef NE_HAVE_TS_SSL /* Defined if ZLIB is supported */ #undef NE_HAVE_ZLIB /* Define to be neon library major version */ #undef NE_VERSION_MAJOR /* Define to be neon library minor version */ #undef NE_VERSION_MINOR /* Define to be neon library patch version */ #undef NE_VERSION_PATCH /* 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 the type of arg 1 for `select'. */ #undef SELECT_TYPE_ARG1 /* Define to the type of args 2, 3 and 4 for `select'. */ #undef SELECT_TYPE_ARG234 /* Define to the type of arg 5 for `select'. */ #undef SELECT_TYPE_ARG5 /* The size of `void *', as computed by sizeof. */ #undef SIZEOF_VOID_P /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define to 1 if you can safely include both and . */ #undef TIME_WITH_SYS_TIME /* Define to 1 if your declares `struct tm'. */ #undef TM_IN_SYS_TIME /* Version number of package */ #undef VERSION /* Enable large inode numbers on Mac OS X 10.5. */ #ifndef _DARWIN_USE_64_BIT_INODE # define _DARWIN_USE_64_BIT_INODE 1 #endif /* Number of bits in a file offset, on hosts where this is settable. */ #undef _FILE_OFFSET_BITS /* Define to enable GNU extensions */ #undef _GNU_SOURCE /* Define for large files, on AIX-style hosts. */ #undef _LARGE_FILES /* Define for Solaris 2.5.1 so the uint32_t typedef from , , or is not used. If the typedef were allowed, the #define below would cause a syntax error. */ #undef _UINT32_T /* Define for Solaris 2.5.1 so the uint64_t typedef from , , or is not used. If the typedef were allowed, the #define below would cause a syntax error. */ #undef _UINT64_T /* Define to empty if `const' does not conform to ANSI C. */ #undef const /* Define to `int' if doesn't define. */ #undef gid_t /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ #ifndef __cplusplus #undef inline #endif /* Define to the type of a signed integer type of width exactly 16 bits if such a type exists and the standard includes do not define it. */ #undef int16_t /* Define to the type of a signed integer type of width exactly 32 bits if such a type exists and the standard includes do not define it. */ #undef int32_t /* Define to the type of a signed integer type of width exactly 8 bits if such a type exists and the standard includes do not define it. */ #undef int8_t /* Define to rpl_malloc if the replacement function should be used. */ #undef malloc /* Define to `int' if does not define. */ #undef mode_t /* Define to `long int' if does not define. */ #undef off_t /* Define to `int' if does not define. */ #undef pid_t /* Define to `unsigned int' if does not define. */ #undef size_t /* Define to `int' if does not define. */ #undef ssize_t /* Define to `int' if doesn't define. */ #undef uid_t /* Define to the type of an unsigned integer type of width exactly 32 bits if such a type exists and the standard includes do not define it. */ #undef uint32_t /* Define to the type of an unsigned integer type of width exactly 64 bits if such a type exists and the standard includes do not define it. */ #undef uint64_t /* Define as `fork' if `vfork' does not work. */ #undef vfork /* Define to empty if the keyword `volatile' does not work. Warning: valid code using `volatile' can become incorrect without. Disable with care. */ #undef volatile davfs2-1.5.5/ABOUT-NLS0000644000175000017500000026713312460776604011107 000000000000001 Notes on the Free Translation Project *************************************** Free software is going international! The Free Translation Project is a way to get maintainers of free software, translators, and users all together, so that free software will gradually become able to speak many languages. A few packages already provide translations for their messages. If you found this `ABOUT-NLS' file inside a distribution, you may assume that the distributed package does use GNU `gettext' internally, itself available at your nearest GNU archive site. But you do _not_ need to install GNU `gettext' prior to configuring, installing or using this package with messages translated. Installers will find here some useful hints. These notes also explain how users should proceed for getting the programs to use the available translations. They tell how people wanting to contribute and work on translations can contact the appropriate team. 1.1 INSTALL Matters =================== Some packages are "localizable" when properly installed; the programs they contain can be made to speak your own native language. Most such packages use GNU `gettext'. Other packages have their own ways to internationalization, predating GNU `gettext'. By default, this package will be installed to allow translation of messages. It will automatically detect whether the system already provides the GNU `gettext' functions. Installers may use special options at configuration time for changing the default behaviour. The command: ./configure --disable-nls will _totally_ disable translation of messages. When you already have GNU `gettext' installed on your system and run configure without an option for your new package, `configure' will probably detect the previously built and installed `libintl' library and will decide to use it. If not, you may have to to use the `--with-libintl-prefix' option to tell `configure' where to look for it. Internationalized packages usually have many `po/LL.po' files, where LL gives an ISO 639 two-letter code identifying the language. Unless translations have been forbidden at `configure' time by using the `--disable-nls' switch, all available translations are installed together with the package. However, the environment variable `LINGUAS' may be set, prior to configuration, to limit the installed set. `LINGUAS' should then contain a space separated list of two-letter codes, stating which languages are allowed. 1.2 Using This Package ====================== As a user, if your language has been installed for this package, you only have to set the `LANG' environment variable to the appropriate `LL_CC' combination. If you happen to have the `LC_ALL' or some other `LC_xxx' environment variables set, you should unset them before setting `LANG', otherwise the setting of `LANG' will not have the desired effect. Here `LL' is an ISO 639 two-letter language code, and `CC' is an ISO 3166 two-letter country code. For example, let's suppose that you speak German and live in Germany. At the shell prompt, merely execute `setenv LANG de_DE' (in `csh'), `export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash'). This can be done from your `.login' or `.profile' file, once and for all. You might think that the country code specification is redundant. But in fact, some languages have dialects in different countries. For example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The country code serves to distinguish the dialects. The locale naming convention of `LL_CC', with `LL' denoting the language and `CC' denoting the country, is the one use on systems based on GNU libc. On other systems, some variations of this scheme are used, such as `LL' or `LL_CC.ENCODING'. You can get the list of locales supported by your system for your language by running the command `locale -a | grep '^LL''. Not all programs have translations for all languages. By default, an English message is shown in place of a nonexistent translation. If you understand other languages, you can set up a priority list of languages. This is done through a different environment variable, called `LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG' for the purpose of message handling, but you still need to have `LANG' set to the primary language; this is required by other parts of the system libraries. For example, some Swedish users who would rather read translations in German than English for when Swedish is not available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'. Special advice for Norwegian users: The language code for Norwegian bokma*l changed from `no' to `nb' recently (in 2003). During the transition period, while some message catalogs for this language are installed under `nb' and some older ones under `no', it's recommended for Norwegian users to set `LANGUAGE' to `nb:no' so that both newer and older translations are used. In the `LANGUAGE' environment variable, but not in the `LANG' environment variable, `LL_CC' combinations can be abbreviated as `LL' to denote the language's main dialect. For example, `de' is equivalent to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT' (Portuguese as spoken in Portugal) in this context. 1.3 Translating Teams ===================== For the Free Translation Project to be a success, we need interested people who like their own language and write it well, and who are also able to synergize with other translators speaking the same language. Each translation team has its own mailing list. The up-to-date list of teams can be found at the Free Translation Project's homepage, `http://translationproject.org/', in the "Teams" area. If you'd like to volunteer to _work_ at translating messages, you should become a member of the translating team for your own language. The subscribing address is _not_ the same as the list itself, it has `-request' appended. For example, speakers of Swedish can send a message to `sv-request@li.org', having this message body: subscribe Keep in mind that team members are expected to participate _actively_ in translations, or at solving translational difficulties, rather than merely lurking around. If your team does not exist yet and you want to start one, or if you are unsure about what to do or how to get started, please write to `coordinator@translationproject.org' to reach the coordinator for all translator teams. The English team is special. It works at improving and uniformizing the terminology in use. Proven linguistic skills are praised more than programming skills, here. 1.4 Available Packages ====================== Languages are not equally supported in all packages. The following matrix shows the current state of internationalization, as of June 2010. The matrix shows, in regard of each package, for which languages PO files have been submitted to translation coordination, with a translation percentage of at least 50%. Ready PO files af am an ar as ast az be be@latin bg bn_IN bs ca +--------------------------------------------------+ a2ps | [] [] | aegis | | ant-phone | | anubis | | aspell | [] [] | bash | | bfd | | bibshelf | [] | binutils | | bison | | bison-runtime | [] | bluez-pin | [] [] | bombono-dvd | | buzztard | | cflow | | clisp | | coreutils | [] [] | cpio | | cppi | | cpplib | [] | cryptsetup | | dfarc | | dialog | [] [] | dico | | diffutils | [] | dink | | doodle | | e2fsprogs | [] | enscript | [] | exif | | fetchmail | [] | findutils | [] | flex | [] | freedink | | gas | | gawk | [] [] | gcal | [] | gcc | | gettext-examples | [] [] [] [] | gettext-runtime | [] [] | gettext-tools | [] [] | gip | [] | gjay | | gliv | [] | glunarclock | [] [] | gnubiff | | gnucash | [] | gnuedu | | gnulib | | gnunet | | gnunet-gtk | | gnutls | | gold | | gpe-aerial | | gpe-beam | | gpe-bluetooth | | gpe-calendar | | gpe-clock | [] | gpe-conf | | gpe-contacts | | gpe-edit | | gpe-filemanager | | gpe-go | | gpe-login | | gpe-ownerinfo | [] | gpe-package | | gpe-sketchbook | | gpe-su | [] | gpe-taskmanager | [] | gpe-timesheet | [] | gpe-today | [] | gpe-todo | | gphoto2 | | gprof | [] | gpsdrive | | gramadoir | | grep | | grub | [] [] | gsasl | | gss | | gst-plugins-bad | [] | gst-plugins-base | [] | gst-plugins-good | [] | gst-plugins-ugly | [] | gstreamer | [] [] [] | gtick | | gtkam | [] | gtkorphan | [] | gtkspell | [] [] [] | gutenprint | | hello | [] | help2man | | hylafax | | idutils | | indent | [] [] | iso_15924 | | iso_3166 | [] [] [] [] [] [] [] | iso_3166_2 | | iso_4217 | | iso_639 | [] [] [] [] | iso_639_3 | | jwhois | | kbd | | keytouch | [] | keytouch-editor | | keytouch-keyboa... | [] | klavaro | [] | latrine | | ld | [] | leafpad | [] [] | libc | [] [] | libexif | () | libextractor | | libgnutls | | libgpewidget | | libgpg-error | | libgphoto2 | | libgphoto2_port | | libgsasl | | libiconv | [] | libidn | | lifelines | | liferea | [] [] | lilypond | | linkdr | [] | lordsawar | | lprng | | lynx | [] | m4 | | mailfromd | | mailutils | | make | | man-db | | man-db-manpages | | minicom | | mkisofs | | myserver | | nano | [] [] | opcodes | | parted | | pies | | popt | | psmisc | | pspp | [] | pwdutils | | radius | [] | recode | [] [] | rosegarden | | rpm | | rush | | sarg | | screem | | scrollkeeper | [] [] [] | sed | [] [] | sharutils | [] [] | shishi | | skencil | | solfege | | solfege-manual | | soundtracker | | sp | | sysstat | | tar | [] | texinfo | | tin | | unicode-han-tra... | | unicode-transla... | | util-linux-ng | [] | vice | | vmm | | vorbis-tools | | wastesedge | | wdiff | | wget | [] [] | wyslij-po | | xchat | [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] | +--------------------------------------------------+ af am an ar as ast az be be@latin bg bn_IN bs ca 6 0 1 2 3 19 1 10 3 28 3 1 38 crh cs da de el en en_GB en_ZA eo es et eu fa +-------------------------------------------------+ a2ps | [] [] [] [] [] [] [] | aegis | [] [] [] | ant-phone | [] () | anubis | [] [] | aspell | [] [] [] [] [] | bash | [] [] [] | bfd | [] | bibshelf | [] [] [] | binutils | [] | bison | [] [] | bison-runtime | [] [] [] [] | bluez-pin | [] [] [] [] [] [] | bombono-dvd | [] | buzztard | [] [] [] | cflow | [] [] | clisp | [] [] [] [] | coreutils | [] [] [] [] | cpio | | cppi | | cpplib | [] [] [] | cryptsetup | [] | dfarc | [] [] [] | dialog | [] [] [] [] [] | dico | | diffutils | [] [] [] [] [] [] | dink | [] [] [] | doodle | [] | e2fsprogs | [] [] [] | enscript | [] [] [] | exif | () [] [] | fetchmail | [] [] () [] [] [] | findutils | [] [] [] | flex | [] [] | freedink | [] [] [] | gas | [] | gawk | [] [] [] | gcal | [] | gcc | [] [] | gettext-examples | [] [] [] [] | gettext-runtime | [] [] [] [] | gettext-tools | [] [] [] | gip | [] [] [] [] | gjay | [] | gliv | [] [] [] | glunarclock | [] [] | gnubiff | () | gnucash | [] () () () () | gnuedu | [] [] | gnulib | [] [] | gnunet | | gnunet-gtk | [] | gnutls | [] [] | gold | [] | gpe-aerial | [] [] [] [] | gpe-beam | [] [] [] [] | gpe-bluetooth | [] [] | gpe-calendar | [] | gpe-clock | [] [] [] [] | gpe-conf | [] [] [] | gpe-contacts | [] [] [] | gpe-edit | [] [] | gpe-filemanager | [] [] [] | gpe-go | [] [] [] [] | gpe-login | [] [] | gpe-ownerinfo | [] [] [] [] | gpe-package | [] [] [] | gpe-sketchbook | [] [] [] [] | gpe-su | [] [] [] [] | gpe-taskmanager | [] [] [] [] | gpe-timesheet | [] [] [] [] | gpe-today | [] [] [] [] | gpe-todo | [] [] [] | gphoto2 | [] [] () [] [] [] | gprof | [] [] [] | gpsdrive | [] [] [] | gramadoir | [] [] [] | grep | [] | grub | [] [] | gsasl | [] | gss | | gst-plugins-bad | [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] () [] | gtkam | [] [] () [] [] | gtkorphan | [] [] [] [] | gtkspell | [] [] [] [] [] [] [] | gutenprint | [] [] [] | hello | [] [] [] [] | help2man | [] | hylafax | [] [] | idutils | [] [] | indent | [] [] [] [] [] [] [] | iso_15924 | [] () [] [] | iso_3166 | [] [] [] [] () [] [] [] () | iso_3166_2 | () | iso_4217 | [] [] [] () [] [] | iso_639 | [] [] [] [] () [] [] | iso_639_3 | [] | jwhois | [] | kbd | [] [] [] [] [] | keytouch | [] [] | keytouch-editor | [] [] | keytouch-keyboa... | [] | klavaro | [] [] [] [] | latrine | [] () | ld | [] [] | leafpad | [] [] [] [] [] [] | libc | [] [] [] [] | libexif | [] [] () | libextractor | | libgnutls | [] | libgpewidget | [] [] | libgpg-error | [] [] | libgphoto2 | [] () | libgphoto2_port | [] () [] | libgsasl | | libiconv | [] [] [] [] [] | libidn | [] [] [] | lifelines | [] () | liferea | [] [] [] [] [] | lilypond | [] [] [] | linkdr | [] [] [] | lordsawar | [] | lprng | | lynx | [] [] [] [] | m4 | [] [] [] [] | mailfromd | | mailutils | [] | make | [] [] [] | man-db | | man-db-manpages | | minicom | [] [] [] [] | mkisofs | | myserver | | nano | [] [] [] | opcodes | [] [] | parted | [] [] | pies | | popt | [] [] [] [] [] | psmisc | [] [] [] | pspp | [] | pwdutils | [] | radius | [] | recode | [] [] [] [] [] [] | rosegarden | () () () | rpm | [] [] [] | rush | | sarg | | screem | | scrollkeeper | [] [] [] [] [] | sed | [] [] [] [] [] [] | sharutils | [] [] [] [] | shishi | | skencil | [] () [] | solfege | [] [] [] | solfege-manual | [] [] | soundtracker | [] [] [] | sp | [] | sysstat | [] [] [] | tar | [] [] [] [] | texinfo | [] [] [] | tin | [] [] | unicode-han-tra... | | unicode-transla... | | util-linux-ng | [] [] [] [] | vice | () () | vmm | [] | vorbis-tools | [] [] | wastesedge | [] | wdiff | [] [] | wget | [] [] [] | wyslij-po | | xchat | [] [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] [] [] | +-------------------------------------------------+ crh cs da de el en en_GB en_ZA eo es et eu fa 5 64 105 117 18 1 8 0 28 89 18 19 0 fi fr ga gl gu he hi hr hu hy id is it ja ka kn +----------------------------------------------------+ a2ps | [] [] [] [] | aegis | [] [] | ant-phone | [] [] | anubis | [] [] [] [] | aspell | [] [] [] [] | bash | [] [] [] [] | bfd | [] [] [] | bibshelf | [] [] [] [] [] | binutils | [] [] [] | bison | [] [] [] [] | bison-runtime | [] [] [] [] [] [] | bluez-pin | [] [] [] [] [] [] [] [] | bombono-dvd | [] | buzztard | [] | cflow | [] [] [] | clisp | [] | coreutils | [] [] [] [] [] | cpio | [] [] [] [] | cppi | [] [] | cpplib | [] [] [] | cryptsetup | [] [] [] | dfarc | [] [] [] | dialog | [] [] [] [] [] [] [] | dico | | diffutils | [] [] [] [] [] [] [] [] [] | dink | [] | doodle | [] [] | e2fsprogs | [] [] | enscript | [] [] [] [] | exif | [] [] [] [] [] [] | fetchmail | [] [] [] [] | findutils | [] [] [] [] [] [] | flex | [] [] [] | freedink | [] [] [] | gas | [] [] | gawk | [] [] [] [] () [] | gcal | [] | gcc | [] | gettext-examples | [] [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] | gettext-tools | [] [] [] [] | gip | [] [] [] [] [] [] | gjay | [] | gliv | [] () | glunarclock | [] [] [] [] | gnubiff | () [] () | gnucash | () () () () () [] | gnuedu | [] [] | gnulib | [] [] [] [] [] [] | gnunet | | gnunet-gtk | [] | gnutls | [] [] | gold | [] [] | gpe-aerial | [] [] [] | gpe-beam | [] [] [] [] | gpe-bluetooth | [] [] [] [] | gpe-calendar | [] [] | gpe-clock | [] [] [] [] [] | gpe-conf | [] [] [] [] | gpe-contacts | [] [] [] [] | gpe-edit | [] [] [] | gpe-filemanager | [] [] [] [] | gpe-go | [] [] [] [] [] | gpe-login | [] [] [] | gpe-ownerinfo | [] [] [] [] [] | gpe-package | [] [] [] | gpe-sketchbook | [] [] [] [] | gpe-su | [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] | gpe-timesheet | [] [] [] [] [] | gpe-today | [] [] [] [] [] [] [] | gpe-todo | [] [] [] | gphoto2 | [] [] [] [] [] [] | gprof | [] [] [] [] | gpsdrive | [] [] [] | gramadoir | [] [] [] | grep | [] [] | grub | [] [] [] [] | gsasl | [] [] [] [] [] | gss | [] [] [] [] [] | gst-plugins-bad | [] [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] [] [] [] [] | gtkam | [] [] [] [] [] | gtkorphan | [] [] [] | gtkspell | [] [] [] [] [] [] [] [] [] | gutenprint | [] [] [] [] | hello | [] [] [] | help2man | [] [] | hylafax | [] | idutils | [] [] [] [] [] [] | indent | [] [] [] [] [] [] [] [] | iso_15924 | [] () [] [] | iso_3166 | [] () [] [] [] [] [] [] [] [] [] [] | iso_3166_2 | () [] [] [] | iso_4217 | [] () [] [] [] [] | iso_639 | [] () [] [] [] [] [] [] [] | iso_639_3 | () [] [] | jwhois | [] [] [] [] [] | kbd | [] [] | keytouch | [] [] [] [] [] [] | keytouch-editor | [] [] [] [] [] | keytouch-keyboa... | [] [] [] [] [] | klavaro | [] [] | latrine | [] [] [] | ld | [] [] [] [] | leafpad | [] [] [] [] [] [] [] () | libc | [] [] [] [] [] | libexif | [] | libextractor | | libgnutls | [] [] | libgpewidget | [] [] [] [] | libgpg-error | [] [] | libgphoto2 | [] [] [] | libgphoto2_port | [] [] [] | libgsasl | [] [] [] [] [] | libiconv | [] [] [] [] [] [] | libidn | [] [] [] [] | lifelines | () | liferea | [] [] [] [] | lilypond | [] [] | linkdr | [] [] [] [] [] | lordsawar | | lprng | [] | lynx | [] [] [] [] [] | m4 | [] [] [] [] [] [] | mailfromd | | mailutils | [] [] | make | [] [] [] [] [] [] [] [] [] | man-db | [] [] | man-db-manpages | [] | minicom | [] [] [] [] [] | mkisofs | [] [] [] [] | myserver | | nano | [] [] [] [] [] [] | opcodes | [] [] [] [] | parted | [] [] [] [] | pies | | popt | [] [] [] [] [] [] [] [] [] | psmisc | [] [] [] | pspp | | pwdutils | [] [] | radius | [] [] | recode | [] [] [] [] [] [] [] [] | rosegarden | () () () () () | rpm | [] [] | rush | | sarg | [] | screem | [] [] | scrollkeeper | [] [] [] [] | sed | [] [] [] [] [] [] [] [] | sharutils | [] [] [] [] [] [] [] | shishi | [] | skencil | [] | solfege | [] [] [] [] | solfege-manual | [] [] | soundtracker | [] [] | sp | [] () | sysstat | [] [] [] [] [] | tar | [] [] [] [] [] [] [] | texinfo | [] [] [] [] | tin | [] | unicode-han-tra... | | unicode-transla... | [] [] | util-linux-ng | [] [] [] [] [] [] | vice | () () () | vmm | [] | vorbis-tools | [] | wastesedge | () () | wdiff | [] | wget | [] [] [] [] [] [] [] [] | wyslij-po | [] [] [] | xchat | [] [] [] [] [] [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] [] | +----------------------------------------------------+ fi fr ga gl gu he hi hr hu hy id is it ja ka kn 105 121 53 20 4 8 3 5 53 2 120 5 84 67 0 4 ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne +-----------------------------------------------+ a2ps | [] | aegis | | ant-phone | | anubis | [] [] | aspell | [] | bash | | bfd | | bibshelf | [] [] | binutils | | bison | [] | bison-runtime | [] [] [] [] [] | bluez-pin | [] [] [] [] [] | bombono-dvd | | buzztard | | cflow | | clisp | | coreutils | [] | cpio | | cppi | | cpplib | | cryptsetup | | dfarc | [] | dialog | [] [] [] [] [] | dico | | diffutils | [] [] | dink | | doodle | | e2fsprogs | | enscript | | exif | [] | fetchmail | | findutils | | flex | | freedink | [] | gas | | gawk | | gcal | | gcc | | gettext-examples | [] [] [] [] | gettext-runtime | [] | gettext-tools | [] | gip | [] [] | gjay | | gliv | | glunarclock | [] | gnubiff | | gnucash | () () () () | gnuedu | | gnulib | | gnunet | | gnunet-gtk | | gnutls | [] | gold | | gpe-aerial | [] | gpe-beam | [] | gpe-bluetooth | [] [] | gpe-calendar | [] | gpe-clock | [] [] [] [] [] | gpe-conf | [] [] | gpe-contacts | [] [] | gpe-edit | [] | gpe-filemanager | [] [] | gpe-go | [] [] [] | gpe-login | [] | gpe-ownerinfo | [] [] | gpe-package | [] [] | gpe-sketchbook | [] [] | gpe-su | [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] [] | gpe-timesheet | [] [] | gpe-today | [] [] [] [] | gpe-todo | [] [] | gphoto2 | | gprof | [] | gpsdrive | | gramadoir | | grep | | grub | | gsasl | | gss | | gst-plugins-bad | [] [] [] [] | gst-plugins-base | [] [] | gst-plugins-good | [] [] | gst-plugins-ugly | [] [] [] [] [] | gstreamer | | gtick | | gtkam | [] | gtkorphan | [] [] | gtkspell | [] [] [] [] [] [] [] | gutenprint | | hello | [] [] [] | help2man | | hylafax | | idutils | | indent | | iso_15924 | [] [] | iso_3166 | [] [] () [] [] [] [] [] | iso_3166_2 | | iso_4217 | [] [] | iso_639 | [] [] | iso_639_3 | [] | jwhois | [] | kbd | | keytouch | [] | keytouch-editor | [] | keytouch-keyboa... | [] | klavaro | [] | latrine | [] | ld | | leafpad | [] [] [] | libc | [] | libexif | | libextractor | | libgnutls | [] | libgpewidget | [] [] | libgpg-error | | libgphoto2 | | libgphoto2_port | | libgsasl | | libiconv | | libidn | | lifelines | | liferea | | lilypond | | linkdr | | lordsawar | | lprng | | lynx | | m4 | | mailfromd | | mailutils | | make | [] | man-db | | man-db-manpages | | minicom | [] | mkisofs | | myserver | | nano | [] [] | opcodes | | parted | | pies | | popt | [] [] [] | psmisc | | pspp | | pwdutils | | radius | | recode | | rosegarden | | rpm | | rush | | sarg | | screem | | scrollkeeper | [] [] | sed | | sharutils | | shishi | | skencil | | solfege | [] | solfege-manual | | soundtracker | | sp | | sysstat | [] | tar | [] | texinfo | [] | tin | | unicode-han-tra... | | unicode-transla... | | util-linux-ng | | vice | | vmm | | vorbis-tools | | wastesedge | | wdiff | | wget | [] | wyslij-po | | xchat | [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] | +-----------------------------------------------+ ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne 20 5 10 1 13 48 4 2 2 4 24 10 20 3 1 nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr +---------------------------------------------------+ a2ps | [] [] [] [] [] [] [] [] | aegis | [] [] [] | ant-phone | [] [] | anubis | [] [] [] | aspell | [] [] [] [] [] | bash | [] [] | bfd | [] | bibshelf | [] [] | binutils | [] [] | bison | [] [] [] | bison-runtime | [] [] [] [] [] [] [] | bluez-pin | [] [] [] [] [] [] [] [] | bombono-dvd | [] () | buzztard | [] [] | cflow | [] | clisp | [] [] | coreutils | [] [] [] [] [] [] | cpio | [] [] [] | cppi | [] | cpplib | [] | cryptsetup | [] | dfarc | [] | dialog | [] [] [] [] | dico | [] | diffutils | [] [] [] [] [] [] | dink | () | doodle | [] [] | e2fsprogs | [] [] | enscript | [] [] [] [] [] | exif | [] [] [] () [] | fetchmail | [] [] [] [] | findutils | [] [] [] [] [] | flex | [] [] [] [] [] | freedink | [] [] | gas | | gawk | [] [] [] [] | gcal | | gcc | [] | gettext-examples | [] [] [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] [] [] [] | gettext-tools | [] [] [] [] [] [] | gip | [] [] [] [] [] | gjay | | gliv | [] [] [] [] [] [] | glunarclock | [] [] [] [] [] | gnubiff | [] () | gnucash | [] () () () | gnuedu | [] | gnulib | [] [] [] [] | gnunet | | gnunet-gtk | | gnutls | [] [] | gold | | gpe-aerial | [] [] [] [] [] [] [] | gpe-beam | [] [] [] [] [] [] [] | gpe-bluetooth | [] [] | gpe-calendar | [] [] [] [] | gpe-clock | [] [] [] [] [] [] [] [] | gpe-conf | [] [] [] [] [] [] [] | gpe-contacts | [] [] [] [] [] | gpe-edit | [] [] [] | gpe-filemanager | [] [] [] | gpe-go | [] [] [] [] [] [] [] [] | gpe-login | [] [] | gpe-ownerinfo | [] [] [] [] [] [] [] [] | gpe-package | [] [] | gpe-sketchbook | [] [] [] [] [] [] [] | gpe-su | [] [] [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] [] [] [] | gpe-timesheet | [] [] [] [] [] [] [] [] | gpe-today | [] [] [] [] [] [] [] [] | gpe-todo | [] [] [] [] [] | gphoto2 | [] [] [] [] [] [] [] [] | gprof | [] [] [] | gpsdrive | [] [] | gramadoir | [] [] | grep | [] [] [] [] | grub | [] [] [] | gsasl | [] [] [] [] | gss | [] [] [] | gst-plugins-bad | [] [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] [] [] | gtkam | [] [] [] [] [] [] | gtkorphan | [] | gtkspell | [] [] [] [] [] [] [] [] [] [] | gutenprint | [] [] | hello | [] [] [] [] | help2man | [] [] | hylafax | [] | idutils | [] [] [] [] [] | indent | [] [] [] [] [] [] [] | iso_15924 | [] [] [] [] | iso_3166 | [] [] [] [] [] () [] [] [] [] [] [] [] [] | iso_3166_2 | [] [] [] | iso_4217 | [] [] [] [] [] [] [] [] | iso_639 | [] [] [] [] [] [] [] [] [] | iso_639_3 | [] [] | jwhois | [] [] [] [] | kbd | [] [] [] | keytouch | [] [] [] | keytouch-editor | [] [] [] | keytouch-keyboa... | [] [] [] | klavaro | [] [] | latrine | [] [] | ld | | leafpad | [] [] [] [] [] [] [] [] [] | libc | [] [] [] [] | libexif | [] [] () [] | libextractor | | libgnutls | [] [] | libgpewidget | [] [] [] | libgpg-error | [] [] | libgphoto2 | [] [] | libgphoto2_port | [] [] [] [] [] | libgsasl | [] [] [] [] [] | libiconv | [] [] [] [] [] | libidn | [] [] | lifelines | [] [] | liferea | [] [] [] [] [] () () [] | lilypond | [] | linkdr | [] [] [] | lordsawar | | lprng | [] | lynx | [] [] [] | m4 | [] [] [] [] [] | mailfromd | [] | mailutils | [] | make | [] [] [] [] | man-db | [] [] [] | man-db-manpages | [] [] [] | minicom | [] [] [] [] | mkisofs | [] [] [] | myserver | | nano | [] [] [] [] | opcodes | [] [] | parted | [] [] [] [] | pies | [] | popt | [] [] [] [] | psmisc | [] [] [] | pspp | [] [] | pwdutils | [] | radius | [] [] [] | recode | [] [] [] [] [] [] [] [] | rosegarden | () () | rpm | [] [] [] | rush | [] [] | sarg | | screem | | scrollkeeper | [] [] [] [] [] [] [] [] | sed | [] [] [] [] [] [] [] [] [] | sharutils | [] [] [] [] | shishi | [] | skencil | [] [] | solfege | [] [] [] [] | solfege-manual | [] [] [] | soundtracker | [] | sp | | sysstat | [] [] [] [] | tar | [] [] [] [] | texinfo | [] [] [] [] | tin | [] | unicode-han-tra... | | unicode-transla... | | util-linux-ng | [] [] [] [] [] | vice | [] | vmm | [] | vorbis-tools | [] [] | wastesedge | [] | wdiff | [] [] | wget | [] [] [] [] [] [] [] | wyslij-po | [] [] [] | xchat | [] [] [] [] [] [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] | +---------------------------------------------------+ nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr 135 10 4 7 105 1 29 62 47 91 3 54 46 9 37 sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW +---------------------------------------------------+ a2ps | [] [] [] [] [] | 27 aegis | [] | 9 ant-phone | [] [] [] [] | 9 anubis | [] [] [] [] | 15 aspell | [] [] [] | 20 bash | [] [] [] | 12 bfd | [] | 6 bibshelf | [] [] [] | 16 binutils | [] [] | 8 bison | [] [] | 12 bison-runtime | [] [] [] [] [] [] | 29 bluez-pin | [] [] [] [] [] [] [] [] | 37 bombono-dvd | [] | 4 buzztard | [] | 7 cflow | [] [] [] | 9 clisp | | 10 coreutils | [] [] [] [] | 22 cpio | [] [] [] [] [] [] | 13 cppi | [] [] | 5 cpplib | [] [] [] [] [] [] | 14 cryptsetup | [] [] | 7 dfarc | [] | 9 dialog | [] [] [] [] [] [] [] | 30 dico | [] | 2 diffutils | [] [] [] [] [] [] | 30 dink | | 4 doodle | [] [] | 7 e2fsprogs | [] [] [] | 11 enscript | [] [] [] [] | 17 exif | [] [] [] | 16 fetchmail | [] [] [] | 17 findutils | [] [] [] [] [] | 20 flex | [] [] [] [] | 15 freedink | [] | 10 gas | [] | 4 gawk | [] [] [] [] | 18 gcal | [] [] | 5 gcc | [] [] [] | 7 gettext-examples | [] [] [] [] [] [] [] | 34 gettext-runtime | [] [] [] [] [] [] [] | 29 gettext-tools | [] [] [] [] [] [] | 22 gip | [] [] [] [] | 22 gjay | [] | 3 gliv | [] [] [] | 14 glunarclock | [] [] [] [] [] | 19 gnubiff | [] [] | 4 gnucash | () [] () [] () | 10 gnuedu | [] [] | 7 gnulib | [] [] [] [] | 16 gnunet | [] | 1 gnunet-gtk | [] [] [] | 5 gnutls | [] [] [] | 10 gold | [] | 4 gpe-aerial | [] [] [] | 18 gpe-beam | [] [] [] | 19 gpe-bluetooth | [] [] [] | 13 gpe-calendar | [] [] [] [] | 12 gpe-clock | [] [] [] [] [] | 28 gpe-conf | [] [] [] [] | 20 gpe-contacts | [] [] [] | 17 gpe-edit | [] [] [] | 12 gpe-filemanager | [] [] [] [] | 16 gpe-go | [] [] [] [] [] | 25 gpe-login | [] [] [] | 11 gpe-ownerinfo | [] [] [] [] [] | 25 gpe-package | [] [] [] | 13 gpe-sketchbook | [] [] [] | 20 gpe-su | [] [] [] [] [] | 30 gpe-taskmanager | [] [] [] [] [] | 29 gpe-timesheet | [] [] [] [] [] | 25 gpe-today | [] [] [] [] [] [] | 30 gpe-todo | [] [] [] [] | 17 gphoto2 | [] [] [] [] [] | 24 gprof | [] [] [] | 15 gpsdrive | [] [] [] | 11 gramadoir | [] [] [] | 11 grep | [] [] [] | 10 grub | [] [] [] | 14 gsasl | [] [] [] [] | 14 gss | [] [] [] | 11 gst-plugins-bad | [] [] [] [] | 26 gst-plugins-base | [] [] [] [] [] | 24 gst-plugins-good | [] [] [] [] | 24 gst-plugins-ugly | [] [] [] [] [] | 29 gstreamer | [] [] [] [] | 22 gtick | [] [] [] | 13 gtkam | [] [] [] | 20 gtkorphan | [] [] [] | 14 gtkspell | [] [] [] [] [] [] [] [] [] | 45 gutenprint | [] | 10 hello | [] [] [] [] [] [] | 21 help2man | [] [] | 7 hylafax | [] | 5 idutils | [] [] [] [] | 17 indent | [] [] [] [] [] [] | 30 iso_15924 | () [] () [] [] | 16 iso_3166 | [] [] () [] [] () [] [] [] () | 53 iso_3166_2 | () [] () [] | 9 iso_4217 | [] () [] [] () [] [] | 26 iso_639 | [] [] [] () [] () [] [] [] [] | 38 iso_639_3 | [] () | 8 jwhois | [] [] [] [] [] | 16 kbd | [] [] [] [] [] | 15 keytouch | [] [] [] | 16 keytouch-editor | [] [] [] | 14 keytouch-keyboa... | [] [] [] | 14 klavaro | [] | 11 latrine | [] [] [] | 10 ld | [] [] [] [] | 11 leafpad | [] [] [] [] [] [] | 33 libc | [] [] [] [] [] | 21 libexif | [] () | 7 libextractor | [] | 1 libgnutls | [] [] [] | 9 libgpewidget | [] [] [] | 14 libgpg-error | [] [] [] | 9 libgphoto2 | [] [] | 8 libgphoto2_port | [] [] [] [] | 14 libgsasl | [] [] [] | 13 libiconv | [] [] [] [] | 21 libidn | () [] [] | 11 lifelines | [] | 4 liferea | [] [] [] | 21 lilypond | [] | 7 linkdr | [] [] [] [] [] | 17 lordsawar | | 1 lprng | [] | 3 lynx | [] [] [] [] | 17 m4 | [] [] [] [] | 19 mailfromd | [] [] | 3 mailutils | [] | 5 make | [] [] [] [] | 21 man-db | [] [] [] | 8 man-db-manpages | | 4 minicom | [] [] | 16 mkisofs | [] [] | 9 myserver | | 0 nano | [] [] [] [] | 21 opcodes | [] [] [] | 11 parted | [] [] [] [] [] | 15 pies | [] [] | 3 popt | [] [] [] [] [] [] | 27 psmisc | [] [] | 11 pspp | | 4 pwdutils | [] [] | 6 radius | [] [] | 9 recode | [] [] [] [] | 28 rosegarden | () | 0 rpm | [] [] [] | 11 rush | [] [] | 4 sarg | | 1 screem | [] | 3 scrollkeeper | [] [] [] [] [] | 27 sed | [] [] [] [] [] | 30 sharutils | [] [] [] [] [] | 22 shishi | [] | 3 skencil | [] [] | 7 solfege | [] [] [] [] | 16 solfege-manual | [] | 8 soundtracker | [] [] [] | 9 sp | [] | 3 sysstat | [] [] | 15 tar | [] [] [] [] [] [] | 23 texinfo | [] [] [] [] [] | 17 tin | | 4 unicode-han-tra... | | 0 unicode-transla... | | 2 util-linux-ng | [] [] [] [] | 20 vice | () () | 1 vmm | [] | 4 vorbis-tools | [] | 6 wastesedge | | 2 wdiff | [] [] | 7 wget | [] [] [] [] [] | 26 wyslij-po | [] [] | 8 xchat | [] [] [] [] [] [] | 36 xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] | 63 xkeyboard-config | [] [] [] | 22 +---------------------------------------------------+ 85 teams sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW 178 domains 119 1 3 3 0 10 65 51 155 17 98 7 41 2618 Some counters in the preceding matrix are higher than the number of visible blocks let us expect. This is because a few extra PO files are used for implementing regional variants of languages, or language dialects. For a PO file in the matrix above to be effective, the package to which it applies should also have been internationalized and distributed as such by its maintainer. There might be an observable lag between the mere existence a PO file and its wide availability in a distribution. If June 2010 seems to be old, you may fetch a more recent copy of this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date matrix with full percentage details can be found at `http://translationproject.org/extra/matrix.html'. 1.5 Using `gettext' in new packages =================================== If you are writing a freely available program and want to internationalize it you are welcome to use GNU `gettext' in your package. Of course you have to respect the GNU Library General Public License which covers the use of the GNU `gettext' library. This means in particular that even non-free programs can use `libintl' as a shared library, whereas only free software can use `libintl' as a static library or use modified versions of `libintl'. Once the sources are changed appropriately and the setup can handle the use of `gettext' the only thing missing are the translations. The Free Translation Project is also available for packages which are not developed inside the GNU project. Therefore the information given above applies also for every other Free Software Project. Contact `coordinator@translationproject.org' to make the `.pot' files available to the translation teams. davfs2-1.5.5/TODO0000644000175000017500000000030012460776605010326 00000000000000davfs2 TODO 2014-04-21 ---------------------- - write a GNU-style manual - multithreading for HTTP-requests and cache maintainance - restructure file name extraction and href construction davfs2-1.5.5/bootstrap0000755000175000017500000000071412460776604011611 00000000000000#!/bin/sh # Copyright (C) 2006, 2007, 2008, 2009 Werner Baumann # Copying and distribution of this file, with or without modification, are # permitted in any medium without royalty provided the copyright notice # and this notice are preserved. set -ex autopoint --force cd man; po4a po4a.conf; cd .. aclocal -I config autoheader automake --add-missing --force-missing --copy autoconf cp -p config/COPYING.davfs2 COPYING cp -p config/INSTALL.davfs2 INSTALL davfs2-1.5.5/aclocal.m40000644000175000017500000012535613422373150011504 00000000000000# 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) 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 ]) # 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. # AM_PROG_MKDIR_P # --------------- # Check for 'mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl FIXME we are no longer going to remove this! adjust warning dnl FIXME message accordingly. AC_DIAGNOSE([obsolete], [$0: this macro is deprecated, and will soon be removed. You should use the Autoconf-provided 'AC][_PROG_MKDIR_P' macro instead, and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.]) dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # 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([config/davfs2.m4]) m4_include([config/gettext.m4]) m4_include([config/iconv.m4]) m4_include([config/intlmacosx.m4]) m4_include([config/lib-ld.m4]) m4_include([config/lib-link.m4]) m4_include([config/lib-prefix.m4]) m4_include([config/neon.m4]) m4_include([config/nls.m4]) m4_include([config/po.m4]) m4_include([config/progtest.m4]) davfs2-1.5.5/THANKS0000644000175000017500000000111312460776604010553 00000000000000davfs2 THANKS 2014-04-21 ------------------------ This file used to contain a list of contributers. But this list never was complete and I am not able to keep track of contributions. So I wand to thank all the people who helped in one or another way: - By sending reports about problems. - By running debug sessions. - By sending patches for bug fixes or new teatures. - By providing all the libraries that davfs2 uses directly or indirectly. - By providing all the tools used to create this program. - By providing the free GNU/Linux operating system. Werner Baumann davfs2-1.5.5/src/0000755000175000017500000000000013422373177010510 500000000000000davfs2-1.5.5/src/cache.h0000644000175000017500000004140312460776603011650 00000000000000/* cache.h: directory and file cache. Copyright (C) 2006, 2007, 2008, 2009, 2014 Werner Baumann This file is part of davfs2. davfs2 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. davfs2 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 davfs2; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef DAV_CACHE_H #define DAV_CACHE_H /* Constants */ /*===========*/ /* A mask to separate access bits from mode. */ #define DAV_A_MASK (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX) /* Data Types */ /*============*/ /* File descriptors for open files are stored within a dav_node in a linked list. As coda does not return the file descriptor when closing a file, this data structure contains additional information to identify the appropriate file descriptor. */ typedef struct dav_handle dav_handle; struct dav_handle { dav_handle *next; /* Next in the list. */ int fd; /* File descriptor of the open file. */ int flags; /* Access mode flags only. */ pid_t pid; /* id of requesting process. */ pid_t pgid; /* Group id of requesting process. */ uid_t uid; /* User id of requesting process. */ }; /* A node in the cache. It represents a directory or a regular file. Nodes that are direct childs of the same directory-node are linked together by the next-pointer to a linked list. The hierarchical directory structure is formed by pointers to the parent direcotry and to the first member in the linked list of direct childs. Nodes are also stored in a hash table. The hash is derived from the nodes address. Nodes with the same hash value are linked together by table_next. */ typedef struct dav_node dav_node; struct dav_node { /* The parent directory. */ dav_node *parent; /* The first node in the linked list of childs. Will be NULL for files.*/ dav_node *childs; /* The next node in the linked list of childs. */ dav_node *next; /* The next node in the linked list of nodes with the same hash value. */ dav_node *table_next; /* The unescaped absolute path of the resource on the server. This must conform to RFC 2518. For collections it must have a trailing slash, for non-collections it must not have one. */ char *path; /* The name of the node (not path) without leading or trailing slash. The name of the root node is the empty string. Name may be different from the last component of path if the servers uses display-names. */ char *name; /* Path of the file where the contents of the node is cached. These files are only created when needed, and they are deleted when there is information that the contents is no langer valid. So cache_path may be NULL. For directories: A file containing the directory entries. For regular files: A local copy of the file. File times are set according the values from the server when the file is downloaded. As long as the file is cached only dav_set_attr() may changed file attributes directly, but they may be changed by open, read, write and close. */ char *cache_path; /* Etag from the server. Set when the resource is downloaded. Used for conditional GET requests and to detect whether a resource has been changed remotely. If present it overrides information from the Last-Modified time (smtime). */ char *etag; /* The media-type as in HTTP-header Content-Type. */ dav_handle *handles; /* Size of the contents of the node. Files: Initially set to the value of the content-lenght header. When the file is open it is updated to the size of the cached file. Directories: Size of the file containing the directory entries. */ off_t size; /* Initially set to the value of mtime. Updated by some upcalls Files: When a local copy exists its atime is also used for update. */ time_t atime; /* Initially set to the last-modified time from the server, or the system time if created locally. Files: When a local cache file exists updated to mtime of this cache file. Used to evaluate whether a file is dirty. */ time_t mtime; /* Initially set to the value of mtime. Updated by dav_setattr(). */ time_t ctime; /* Files: Last-modified time from the server. Like etag frozen when the file is opened for writing. Used to check whether the file has been changed remotely. */ time_t smtime; /* Time when the node has last been updated from the server. */ time_t utime; /* Files: Time when the lock expires. 0 if not locked. -1 locked infinitely. */ time_t lock_expire; /* Directories: Number of subdirectories, including "." and "..". Files: Allways 1. */ int nref; /* Files: File exists on the server. For locally created files that have not been put to the server it will be 0. Note: Some server create an empty file when locking. Maybe the RFC will be changed this way. */ int remote_exists; /* Files: Dirty flag. Must be set, when a file is opened for writing, and reset, when the file is saved back. */ int dirty; /* mode, uid and gid are initially set to the default values, but may be changed by dav_setattr(). */ mode_t mode; uid_t uid; gid_t gid; }; /* An item in a linked list. Each item holds a pointer to a dav_node.*/ typedef struct dav_node_item dav_node_list_item; struct dav_node_item { dav_node_list_item *next; dav_node *node; int attempts; time_t save_at; }; /* Returned by dav_statfs(). */ typedef struct dav_stat dav_stat; struct dav_stat { uint64_t blocks; uint64_t bavail; uint64_t files; uint64_t ffree; uint64_t n_nodes; off_t bsize; off_t namelen; time_t utime; }; /* Call back function that writes a directory entry to file descriptor fd. fd : An open file descriptor to write to. off : The current file size. node : The pointer to node is taken as inode/file number (shrinked to fit if necessary). name : File name; if NULL, the last, empty entry is written (if the kernel file system wants one). return value : New size of the file. -1 in case of an error. */ typedef off_t (*dav_write_dir_entry_fn)(int fd, off_t off, const dav_node *node, const char *name); /* Function prototypes */ /*=====================*/ /* Initializing and closing the cache. */ /* Sets a lot of private global variables that govern the behaviour of the cache, taking the values from parameters. It registers dummy functions for the callbacks from kernel interface. Creates the root node and restores the nodes from the permanent cache. Finally it retrieves the root directory entries from the server. If the connection to the server fails because of authentication failure it prints an error message and terminates the programm. If the connection fails due to other reasons, it will nevertheless return with success, as the filesystem can be mounted, but will only get useable when the connection comes up. paramters: if not self explaining, please see mount_davfs.c, struct args. */ void dav_init_cache(const dav_args *args, const char *mpoint); /* Tries to write back to the server all open files that have been changed or newly created. If a file from cache can not be stored back to the server, a local backup file is created. All local copies of files and the necessary directories are stored in the permanent cache. A new index file of the permanent cache is created. If *got_sigterm is 1, dirty files will not be stored back to the server. Finally it frees all nodes. */ void dav_close_cache(volatile int *got_sigterm); /* Registers the kernel_interface. Sets pointers to the write_dir_entry_fn flush_flag. If blksize is not NULL, the preferred bloksize for IO is asigned. It returns the value of alignment. */ size_t dav_register_kernel_interface(dav_write_dir_entry_fn write_fn, int *flush_flag, unsigned int *blksize); /* Scans the hash table for file nodes to be saved them back on the server, locks to be refreshed and locks to be released. If maximum cache size is reached, it removes the file with the lowest access time from the cache. It must be called regularly. The return value indicates whether another run would be useful. return value: 0 there is nothing left to do. 1 another call of dav_tidy_cache would be useful. */ int dav_tidy_cache(void); /* Upcalls from the kernel, via the interface module. */ /* All these functions will first check if the node addressed in the parameters exists. Common parameters (not all of this must be present in one function): dav_node **nodep : Used to return a pointer to a node. dav_node *node : A pointer to the node that shall be acted on. dav_node *parent : A pointer to the parent directory of the node in question. const char *name : Name of the node in question. It's is just one name, not a path, and without any trailing or leading slashes. uid_t uid : ID of the user that requested the operation. Common return values: 0 Success. EACCES Access is denied to user uid according to the acces bits. EAGAIN A temporary failure in the connection to the WebDAV server. EBUSY The action on the node can not be performed, as somebody else uses it allready in a way that would collide with the requested action. EEXIST Cration of a new node is requested with flag O_EXCL, but it exists. EINVAL One of the parameters has an invalid value. EIO Error performing I/O-operation. Usually there are problems in the communication with the WebDAV server. EISDIR The node is a directory but should not be. ENOENT The file or directory does not exist. ENOSPC There is not enough space on the server. ENOTDIR The node is not a directory but the requested action needs it to be. EPERM The reuested action is not allowed to user uid. */ /* Tests whether user uid has access described by how to node. int how : A bit mask describing the kind of acces. It may be any combination of R_OK, W_OK, X_OK and F_OK. */ int dav_access(dav_node *node, uid_t uid, int how); /* Closed file descriptor fd of node. Permissions are not checked, but flags are compared to the ones used for opening. If fd is 0 (coda), flags, pid and pgid are used to find the best matching file descriptor. Only access mode bits must be set in flags.*/ int dav_close(dav_node *node, int fd, int flags, pid_t pid, pid_t pgid); /* Creates a new file node with name name in directory parent. The file is locked on the server. The new node is returned in nodep. There must no node with name name allready exist in parent. The new node is owned by uid; group is the primary group of uid. Mode is set to mode, but with the bits from file_umask removed. Permissions: uid must have execute permission for parent and all of its ancestors, as well as write permission for parent. */ int dav_create(dav_node **nodep, dav_node *parent, const char *name, uid_t uid, mode_t mode); /* Checks whether node exists and uid has permissions. The kernel interface may then translate attributes from node. Permissions: uid must have execute permission for parent and all of its ancestors, as well as read permission for parent. */ int dav_getattr(dav_node *node, uid_t uid); /* Searches for a node with name name in the directory parent and returns the node in nodep. Permissions: uid must have execute permission for parent and all of its ancestors, as well as read permission for parent. */ int dav_lookup(dav_node **nodep, dav_node *parent, const char *name, uid_t uid); /* Creates a new directory named name in direcotry parent. The directory must not yet exist. The new node is returned in nodep. Owner will be uid, group the primary group of uid. Mode will be mode with the bits from dir_umask removed. Permissions: uid must have execute permission for parent and all of its ancestors, as well as write permission for parent. */ int dav_mkdir(dav_node **nodep, dav_node *parent, const char *name, uid_t uid, mode_t mode); /* Opens file or directory node according to flags and returns file descriptor fd. fd, together with pid, pgid and uid, is stored in node for read, write and close operations. Only the O_ACCESSMOE, O_APPEND and O_TRUNC bits in flags will be honoured. O_CREATE and O_EXCL are not allowed. Permissions: uid must have execute permission for parent and all of its ancestors, as as well as read and/or write permission for node, according to the accessmode. If open_create is set to 1, permissions will not be checked. This flag must only be set when the call to dav_open is part of an open-call with flag O_CREATE. It allows dav_open to succeed if when the file mode would not allow this. */ int dav_open(int *fd, dav_node *node, int flags, pid_t pid, pid_t pgid, uid_t uid, int open_create); /* Reads size bytes from file descriptor fd, starting at position offset and copies them into buf. The number of bytes read is returned in len. The file must be opened readonly or readwrite. */ int dav_read(ssize_t *len, dav_node * node, int fd, char *buf, size_t size, off_t offset); /* Removes file node name in directory parent from the cache and on the server. The file must not be locked by another WebDAV client. Permissions: uid must have execute permission for parent and all of its ancestors, as well as write permission for parent. */ int dav_remove(dav_node *parent, const char *name, uid_t uid); /* Moves file or directory src_name from directory src_parent to directory dst_parent and renames it to dst_name. If dst_name allready exists in dst_parent and is a directory, there must be no files opened for writing in it. Moves into the backup directory are not allowed. Permissions: uid must have execute permission for src_parent and dst_parent and all of their ancestors, as well as write permission for src_parent and dst_parent. */ int dav_rename(dav_node *src_parent, const char *src_name, dav_node *dst_parent, const char *dst_name, uid_t uid); /* Removes direcotry name in directory parent. The directory must be empty and not the local backup directory. uid must have execute permission for parent and all of its ancestors, as well as write permission for parent. */ int dav_rmdir(dav_node *parent, const char *name, uid_t uid); /* Returns a pointer to the root node in nodep. Permissions: uid must be root, as this function is only called when the file system is mounted. */ int dav_root(dav_node **nodep, uid_t uid); /* Changes attributes of the node. sm, so, ... are flags. A value of 1 indicates that the respective attribute is to be changed. Permissions: uid must have execute permission for parent directory of node and all of its ancestors. To change mode, owner, or gid, uid must be owner of the node or root. To change atime, mtime or size, uid must have write permission for node. To change gid, uid must be member of the new group or root. Note: This attributes, except size and the execute bit of mode, are only changed locally and not on the server. */ int dav_setattr(dav_node *node, uid_t uid, int sm, mode_t mode, int so, uid_t owner, int sg, gid_t gid, int sat, time_t atime, int smt, time_t mtime, int ssz, off_t size); /* Returns struct dav_stat. If the server does not provide theinformation it will contain fake data. No permissions necessary. */ dav_stat * dav_statfs(void); /* Calls fsync() for all filedescriptors of node, that are not read only. No permissions are checked. */ int dav_sync(dav_node *node); /* Writes size bytes from buf to file descriptor fd, starting at position offset. The number of bytes written is returned in len. The file must be opened writeonly or readwrite. */ int dav_write(size_t *written, dav_node * node, int fd, char *buf, size_t size, off_t offset); #endif /* DAV_CACHE_H */ davfs2-1.5.5/src/webdav.c0000644000175000017500000016410613370102570012041 00000000000000/* webdav.c: send requests to the WebDAV server. Copyright (C) 2006, 2007, 2008, 2009, 2014 Werner Baumann This file is part of davfs2. davfs2 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. davfs2 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 davfs2; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "config.h" #include #include #ifdef HAVE_FCNTL_H #include #endif #ifdef HAVE_ICONV_H #include #endif #ifdef HAVE_LANGINFO_H #include #endif #ifdef HAVE_LIBINTL_H #include #endif #ifdef HAVE_LIMITS_H #include #endif #ifdef HAVE_STDINT_H #include #endif #include #ifdef HAVE_STDLIB_H #include #endif #include #ifdef HAVE_SYSLOG_H #include #endif #include #ifdef HAVE_UNISTD_H #include #endif #ifdef HAVE_SYS_STAT_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "defaults.h" #include "mount_davfs.h" #include "webdav.h" #ifdef ENABLE_NLS #define _(String) gettext(String) #else #define _(String) String #endif /* Data Types */ /*============*/ /* Data structures used as userdata in neon callback functions. */ typedef struct { const char *path; /* The *not* url-encoded path. */ dav_props *results; /* Start of the linked list of dav_props. */ } propfind_context; typedef struct { int error; /* An error occured while reading/writing. */ const char *file; /* cache_file to store the data in. */ int fd; /* file descriptor of the open cache file. */ } get_context; typedef struct { int error; uint64_t available; /* Amount of available bytes (quota - used). */ uint64_t used; /* Used bytes. */ } quota_context; /* Private constants */ /*===================*/ /* Properties to be retrieved from the server. This constants are used by dav_get_collection(). */ enum { TYPE = 0, LENGTH, ETAG, MODIFIED, EXECUTE }; static const ne_propname full_prop_names[] = { [TYPE] = {"DAV:", "resourcetype"}, [LENGTH] = {"DAV:", "getcontentlength"}, [ETAG] = {"DAV:", "getetag"}, [MODIFIED] = {"DAV:", "getlastmodified"}, [EXECUTE] = {"http://apache.org/dav/props/", "executable"}, {NULL, NULL} }; static const ne_propname full_anonymous_prop_names[] = { [TYPE] = {NULL, "resourcetype"}, [LENGTH] = {NULL, "getcontentlength"}, [ETAG] = {NULL, "getetag"}, [MODIFIED] = {NULL, "getlastmodified"}, [EXECUTE] = {NULL, "executable"}, {NULL, NULL} }; static const ne_propname min_prop_names[] = { [TYPE] = {"DAV:", "resourcetype"}, [LENGTH] = {"DAV:", "getcontentlength"}, {NULL, NULL} }; static const ne_propname min_anonymous_prop_names[] = { [TYPE] = {NULL, "resourcetype"}, [LENGTH] = {NULL, "getcontentlength"}, {NULL, NULL} }; /* Properties to be retrieved from the server. This constants are used by dav_quota(). */ enum { AVAILABLE = 0, USED }; static const ne_propname quota_names[] = { [AVAILABLE] = {"DAV:", "quota-available-bytes"}, [USED] = {"DAV:", "quota-used-bytes"}, {NULL, NULL} }; static size_t log_bufsize = 512; static char *none_match_header = "If-None-Match: *\r\n"; /* Private global variables */ /*==========================*/ /* The neon session. Will be set by dav_init_webdav(). */ static ne_session *session; /* Timeout for requests. Set by dav_init_webdav(). */ static int read_timeout; /* Timeout for creating a connection. Set by dav_init_webdav(). */ static int connect_timeout; /* Lock store, lock owner and lock timeout for session. Will be set by dav_init_webdav(). */ static ne_lock_store *locks; static char *owner; static time_t lock_timeout; /* Credentials for this session. Will be set by dav_init_webdav(). */ static char *username; static char *password; static char *p_username; static char *p_password; /* If this is not NULL the server must present exactly this certificate. */ static ne_ssl_certificate *server_cert; /* Whether to send expect 100-continue header in PUT requests. */ static int use_expect100; /* Whether to use HEAD for prechecking instead of If-Match and If-None-Match on PTU and LOCK. */ static int has_if_match_bug; /* Some servers sends a weak invalid etag that turns into a valid strong etag after one second. With this flag set weak etags are not used at all, otherwise the weakness indicator is removed. */ static int drop_weak_etags; /* Check with HEAD for existence or modification of a file, before locking or uploading a new file. */ static int precheck; /* Ignore the information in the DAV-header because it is wrong. */ static int ignore_dav_header; /* Use "Content-Encoding: gzip" for GET requests. */ static int use_compression; /* Only request a minimal set of properties. */ static int min_propset; static const ne_propname *prop_names; static const ne_propname *anonymous_prop_names; /* Will be set to 1 when dav_init_connection() succeeded. */ static int initialized; /* Whether a terminal is available to communicate with the user. Should be reset with set_no_terminal() when forking into daemon mode. Needed by ssl_verify() which may be called at any time. */ static int have_terminal; #ifdef HAVE_ICONV_H /* Handle to convert character encoding from utf-8 to LC_CTYPE. If NULL no conversion is done. */ static iconv_t from_utf_8; /* Handle to convert character encoding from LC_CTYPE to utf-8. If NULL no conversion is done. */ static iconv_t to_utf_8; /* Handle to convert character encing of path names to LC_CTYPE. If NULL no conversion is done. */ static iconv_t from_server_enc; /* Handle to convert from LC_CTYPE to character encoding of path names. If NULL no conversion is done. */ static iconv_t to_server_enc; #endif /* A GNU custom stream, used to redirect neon debug messages to syslog. */ static FILE *log_stream; /* A user defined header that is added to all requests. */ char *custom_header; /* Array of max. n_cookies cookie strings. NULL if configuration option allow_cookies is 0. The array must be allocated by dav_init_webdav. */ static int n_cookies; static char **cookie_list; /* Private function prototypes and inline functions */ /*==================================================*/ #ifdef HAVE_ICONV_H static void convert(char **s, iconv_t conv); #endif static ne_session * create_rd_session(const ne_uri *uri); static int get_error(int ret, const char *method, ne_session *sess); static int get_ne_error(const char *method, ne_session *sess); int get_redirect(const ne_uri *uri, const char *cache_path, off_t *size, char **etag, time_t *mtime, int *modified); static struct ne_lock * lock_by_path(const char *path); static int lock_discover(const char *path, time_t *expire); static void lock_refresh(struct ne_lock *lock, time_t *expire); static ssize_t log_writer(void *cookie, const char *buffer, size_t size); static char * normalize_etag(const char *etag); static void replace_slashes(char **name); /* Call-back functions for neon. */ static void add_header(ne_request *req, void *userdata, ne_buffer *header); static int auth(void *userdata, const char *realm, int attempt, char *user, char *pwd); static int file_reader(void *userdata, const char *block, size_t length); static void get_cookies(ne_request *req, void *userdata, const ne_status *status); static void lock_result(void *userdata, const struct ne_lock *lock, const ne_uri *uri, const ne_status *status); static void prop_result(void *userdata, const ne_uri *uri, const ne_prop_result_set *set); static void quota_result(void *userdata, const ne_uri *uri, const ne_prop_result_set *set); static int ssl_verify(void *userdata, int failures, const ne_ssl_certificate *cert); /* Public functions */ /*==================*/ void dav_init_webdav(const dav_args *args) { if (args->neon_debug & ~NE_DBG_HTTPPLAIN) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Initializing webdav"); #ifdef HAVE_ICONV_H char *lc_charset = nl_langinfo(CODESET); if (lc_charset && strcasecmp(lc_charset, "UTF-8") != 0) { from_utf_8 = iconv_open(lc_charset, "UTF-8"); if (from_utf_8 == (iconv_t) -1) from_utf_8 = 0; to_utf_8 = iconv_open("UTF-8", lc_charset); if (to_utf_8 == (iconv_t) -1) to_utf_8 = 0; } if (lc_charset && args->s_charset && strcasecmp(args->s_charset, lc_charset) != 0) { if (strcasecmp(args->s_charset, "UTF-8") == 0) { from_server_enc = from_utf_8; to_server_enc = to_utf_8; } else { from_server_enc = iconv_open(lc_charset, args->s_charset); if (from_server_enc == (iconv_t) -1) from_server_enc = 0; to_server_enc = iconv_open(args->s_charset, lc_charset); if (to_server_enc == (iconv_t) -1) to_server_enc = 0; } } #endif /* HAVE_ICONV */ if (ne_sock_init() != 0) error(EXIT_FAILURE, errno, _("socket library initialization failed")); if (args->neon_debug & ~NE_DBG_HTTPPLAIN) { char *buf = malloc(log_bufsize); cookie_io_functions_t *log_func = malloc(sizeof(cookie_io_functions_t)); if (!log_func) abort(); log_func->read = NULL; log_func->write = log_writer; log_func->seek = NULL; log_func->close = NULL; log_stream = fopencookie(buf, "w", *log_func); if (!log_stream) error(EXIT_FAILURE, errno, _("can't open stream to log neon-messages")); ne_debug_init(log_stream, args->neon_debug); } session = ne_session_create(args->scheme, args->host, args->port); read_timeout = args->read_timeout; ne_set_read_timeout(session, read_timeout); connect_timeout = args->connect_timeout; ne_set_connect_timeout(session, connect_timeout); char *useragent = ne_concat(PACKAGE_TARNAME, "/", PACKAGE_VERSION, NULL); ne_set_useragent(session, useragent); free(useragent); if (args->follow_redirect) ne_redirect_register(session); if (args->username) username = ne_strdup(args->username); if (args->password) password = ne_strdup(args->password); ne_add_server_auth(session, NE_AUTH_ALL, auth, "server"); if (args->useproxy && args->p_host) { ne_session_proxy(session, args->p_host, args->p_port); if (args->p_user) p_username = ne_strdup(args->p_user); if (args->p_passwd) p_password = ne_strdup(args->p_passwd); ne_add_proxy_auth(session, NE_AUTH_ALL, auth, "proxy"); } if (strcmp(args->scheme, "https") == 0) { if (!ne_has_support(NE_FEATURE_SSL)) error(EXIT_FAILURE, 0, _("neon library does not support TLS/SSL")); ne_ssl_set_verify(session, ssl_verify, NULL); if (args->trust_server_cert) { server_cert = ne_ssl_cert_read(args->trust_server_cert); if (!server_cert) error(EXIT_FAILURE, 0, _("can't read server certificate %s"), args->trust_server_cert); } else if (args->trust_ca_cert) { ne_ssl_certificate *ca_cert = ne_ssl_cert_read(args->trust_ca_cert); if (!ca_cert) error(EXIT_FAILURE, 0, _("can't read server certificate %s"), args->trust_ca_cert); ne_ssl_trust_cert(session, ca_cert); } else { ne_ssl_trust_default_ca(session); } if (args->clicert) { ne_ssl_client_cert *client_cert = ne_ssl_clicert_read(args->clicert); if (!client_cert) { uid_t orig = geteuid(); if (seteuid(0) != 0) error(EXIT_FAILURE, errno, _("can't change effective user id")); client_cert = ne_ssl_clicert_read(args->clicert); if (seteuid(orig) != 0) error(EXIT_FAILURE, errno, _("can't change effective user id")); } if (!client_cert) error(EXIT_FAILURE, 0, _("can't read client certificate %s"), args->clicert); if (client_cert && ne_ssl_clicert_encrypted(client_cert)) { char *pw = NULL; if (!args->clicert_pw && args->askauth) { printf(_("Please enter the password to decrypt client\n" "certificate %s.\n"), args->clicert); pw = dav_user_input_hidden(_("Password: ")); } else { pw = ne_strdup(args->clicert_pw); } int ret = 1; if (pw) { ret = ne_ssl_clicert_decrypt(client_cert, pw); memset(pw, '\0', strlen(pw)); free(pw); } if (ret) error(EXIT_FAILURE, 0, _("can't decrypt client certificate %s"), args->clicert); } ne_ssl_set_clicert(session, client_cert); ne_ssl_clicert_free(client_cert); } } have_terminal = args->askauth; if (args->locks) { locks = ne_lockstore_create(); if (!args->lock_owner) { if (!args->username) { owner = ne_strdup(PACKAGE_STRING); } else { owner = ne_strdup(args->username); } } else { owner = ne_strdup(args->lock_owner); } lock_timeout = args->lock_timeout; } if (args->header) { custom_header = ne_strdup(args->header); } if (args->n_cookies) { n_cookies = args->n_cookies; cookie_list = (char **) ne_calloc(n_cookies * sizeof(char *)); ne_hook_post_headers(session, get_cookies, NULL); } if (custom_header || cookie_list) ne_hook_pre_send(session, add_header, NULL); use_expect100 = args->expect100; has_if_match_bug = args->if_match_bug; drop_weak_etags = args->drop_weak_etags; precheck = args->precheck; ignore_dav_header = args->ignore_dav_header; use_compression = args->use_compression & ne_has_support(NE_FEATURE_ZLIB); min_propset = args->min_propset; if (min_propset) { prop_names = min_prop_names; anonymous_prop_names = min_anonymous_prop_names; } else { prop_names = full_prop_names; anonymous_prop_names = full_anonymous_prop_names; } } int dav_init_connection(const char *path) { char *spath = ne_path_escape(path); ne_server_capabilities caps = {0, 0, 0}; int ret = ne_options(session, spath, &caps); if (!ret) { initialized = 1; if (!caps.dav_class1 && !ignore_dav_header) { if (have_terminal) { error(EXIT_FAILURE, 0, _("mounting failed; the server does not support WebDAV")); } else { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("mounting failed; the server does not support WebDAV")); ret = EINVAL; } } if ((caps.dav_class2 || ignore_dav_header) && locks) { ne_lockstore_register(locks, session); } else if (locks) { if (have_terminal) error(0, 0, _("warning: the server does not support locks")); ne_lockstore_destroy(locks); locks = NULL; } } else { ret = get_error(ret, "OPTIONS", session); } free(spath); return ret; } void dav_close_webdav(void) { if(session && log_stream) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Closing connection to %s", ne_get_server_hostport(session)); if (locks) { struct ne_lock *lock = ne_lockstore_first(locks); while (lock) { if (session) { int ret = ne_unlock(session, lock); get_error(ret, "UNLOCK", session); } lock = ne_lockstore_next(locks); } } if (session) ne_session_destroy(session); ne_sock_exit(); } char * dav_conv_from_utf_8(const char *s) { char *new = ne_strdup(s); #ifdef HAVE_ICONV if (from_utf_8) convert(&new, from_utf_8); #endif return new; } char * dav_conv_to_utf_8(const char *s) { char *new = ne_strdup(s); #ifdef HAVE_ICONV if (to_utf_8) convert(&new, to_utf_8); #endif return new; } char * dav_conv_from_server_enc(const char *s) { char *new = ne_strdup(s); #ifdef HAVE_ICONV if (from_server_enc) convert(&new, from_server_enc); #endif return new; } char * dav_conv_to_server_enc(const char *s) { char *new = ne_strdup(s); #ifdef HAVE_ICONV if (to_server_enc) convert(&new, to_server_enc); #endif return new; } int dav_delete(const char *path, time_t *expire) { int ret; if (!initialized) { ret = dav_init_connection(path); if (ret) return ret; } struct ne_lock *lock = NULL; char *spath = ne_path_escape(path); ret = ne_delete(session, spath); ret = get_error(ret, "DELETE", session); if ((ret == EACCES || ret == ENOENT) && locks) { lock_discover(spath, expire); lock = lock_by_path(spath); if (lock && ret == EACCES) { ret = ne_delete(session, spath); ret = get_error(ret, "DELETE", session); } else if (lock) { ne_unlock(session, lock); ret = 0; } } if (!ret && locks) { lock = lock_by_path(spath); if (lock) { ne_lockstore_remove(locks, lock); ne_lock_destroy(lock); } } free(spath); return ret; } int dav_delete_dir(const char *path) { int ret; if (!initialized) { ret = dav_init_connection(path); if (ret) return ret; } char *spath = ne_path_escape(path); ret = ne_delete(session, spath); ret = get_error(ret, "DELETE", session); free(spath); return ret; } void dav_delete_props(dav_props *props) { if (props->path) free(props->path); if (props->name) free(props->name); if (props->etag) free(props->etag); free(props); } int dav_get_collection(const char *path, dav_props **props) { int ret; if (!initialized) { ret = dav_init_connection(path); if (ret) return ret; } propfind_context ctx; ctx.path = path; ctx.results = NULL; char *spath = ne_path_escape(path); ne_propfind_handler *ph = ne_propfind_create(session, spath, NE_DEPTH_ONE); ret = ne_propfind_named(ph, prop_names, prop_result, &ctx); ret = get_error(ret, "PROPFIND", session); ne_propfind_destroy(ph); free(spath); if (ret) { while(ctx.results) { dav_props *tofree = ctx.results; ctx.results = ctx.results->next; dav_delete_props(tofree); } } *props = ctx.results; return ret; } const char * dav_get_webdav_error() { return ne_get_error(session); } int dav_get_file(const char *path, const char *cache_path, off_t *size, char **etag, time_t *mtime, int *modified) { int ret; if (!initialized) { ret = dav_init_connection(path); if (ret) return ret; } get_context ctx; ctx.error = 0; ctx.file = cache_path; ctx.fd = 0; char *spath = ne_path_escape(path); ne_request *req = ne_request_create(session, "GET", spath); if (etag && *etag) ne_add_request_header(req, "If-None-Match", *etag); char *mod_time = NULL; if (mtime && *mtime) { mod_time = ne_rfc1123_date(*mtime); ne_add_request_header(req, "If-Modified-Since", mod_time); } ne_decompress *dc_state = NULL; if (use_compression) { dc_state = ne_decompress_reader(req, ne_accept_2xx, file_reader, &ctx); } else { ne_add_response_body_reader(req, ne_accept_2xx, file_reader, &ctx); } ret = ne_request_dispatch(req); if (use_compression) ne_decompress_destroy(dc_state); ne_session *rd_sess = NULL; const ne_uri *rd_uri = NULL; if (ret == NE_REDIRECT) rd_uri = ne_redirect_location(session); if (rd_uri) { rd_sess = create_rd_session(rd_uri); char *rd_path = NULL; if (rd_uri->query) { rd_path = ne_concat(rd_uri->path, "?", rd_uri->query, NULL); } else { rd_path = ne_strdup(rd_uri->path); } ne_request_destroy(req); req = ne_request_create(rd_sess, "GET", rd_path); if (etag && *etag) ne_add_request_header(req, "If-None-Match", *etag); if (use_compression) { dc_state = ne_decompress_reader(req, ne_accept_2xx, file_reader, &ctx); } else { ne_add_response_body_reader(req, ne_accept_2xx, file_reader, &ctx); } ret = ne_request_dispatch(req); if (use_compression) ne_decompress_destroy(dc_state); ret = get_error(ret, "GET", rd_sess); free(rd_path); } else { ret = get_error(ret, "GET", session); } if (ctx.error) ret = ctx.error; const ne_status *status = ne_get_status(req); if (!ret && status->code == 200) { if (modified) *modified = 1; const char *value = ne_get_response_header(req, "Content-Length"); if (value) #if _FILE_OFFSET_BITS == 64 *size = strtoll(value, NULL, 10); #else /* _FILE_OFFSET_BITS != 64 */ *size = strtol(value, NULL, 10); #endif /* _FILE_OFFSET_BITS != 64 */ value = ne_get_response_header(req, "Last-Modified"); if (mtime && value) *mtime = ne_httpdate_parse(value); if (etag) { if (*etag) free(*etag); *etag = normalize_etag(ne_get_response_header(req, "ETag")); } } ne_request_destroy(req); if (rd_sess) ne_session_destroy(rd_sess); if (ctx.fd > 0) close(ctx.fd); if (mod_time) free(mod_time); free(spath); return ret; } int dav_head(const char *path, char **etag, time_t *mtime, off_t *length) { int ret; if (!initialized) { ret = dav_init_connection(path); if (ret) return ret; } char *spath = ne_path_escape(path); ne_request *req = ne_request_create(session, "HEAD", spath); ret = ne_request_dispatch(req); ret = get_error(ret, "HEAD", session); const char *value = ne_get_response_header(req, "ETag"); if (!ret && etag && value) { if (*etag) free(*etag); *etag = normalize_etag(value); } value = ne_get_response_header(req, "Last-Modified"); if (!ret && mtime && value) { time_t lm = ne_httpdate_parse(value); if (lm) *mtime = lm; } value = ne_get_response_header(req, "Content-Length"); if (!ret && length && value) *length = strtol(value, NULL, 10); ne_request_destroy(req); free(spath); return ret; } int dav_lock(const char *path, time_t *expire, int *exists) { int ret; if (!initialized) { ret = dav_init_connection(path); if (ret) return ret; } if (!locks) { *expire = 0; return 0; } if (precheck && has_if_match_bug && !*exists) { if (dav_head(path, NULL, NULL, NULL) == 0) { return EEXIST; } } char *spath = ne_path_escape(path); struct ne_lock *lock = lock_by_path(spath); if (lock) { free(spath); *expire = -1; lock_refresh(lock, expire); return 0; } lock = ne_lock_create(); ne_fill_server_uri(session, &lock->uri); lock->uri.path = spath; lock->owner = ne_strdup(owner); lock->timeout = lock_timeout; if (!has_if_match_bug && !*exists) ne_hook_pre_send(session, add_header, none_match_header); ret = ne_lock(session, lock); ret = get_error(ret, "LOCK", session); if (!has_if_match_bug && !*exists) { ne_unhook_pre_send(session, add_header, none_match_header); if (ret && strtol(ne_get_error(session), NULL, 10) == 412) ret = EEXIST; } if (!ret) { ne_lockstore_add(locks, lock); if (strtol(ne_get_error(session), NULL, 10) == 201) *exists = 1; if (lock->timeout <= 0) { *expire = LONG_MAX; } else { *expire = lock->timeout + time(NULL); } } else { if (ret == EACCES && lock_discover(spath, expire) == 0) ret = 0; ne_lock_destroy(lock); } return ret; } void dav_lock_refresh(const char *path, time_t *expire) { if (!initialized && dav_init_connection(path) != 0) return; if (!locks) { *expire = 0; return; } char *spath = ne_path_escape(path); struct ne_lock *lock = lock_by_path(spath); if (!lock) { lock_discover(spath, expire); } else { lock_refresh(lock, expire); } free(spath); } int dav_make_collection(const char *path) { int ret; if (!initialized) { ret = dav_init_connection(path); if (ret) return ret; } char *spath = ne_path_escape(path); ret = ne_mkcol(session, spath); ret = get_error(ret, "MKCOL", session); free(spath); return ret; } int dav_move(const char *src, const char *dst) { int ret; if (!initialized) { ret = dav_init_connection(src); if (ret) return ret; } char *spath = ne_path_escape(src); char *dst_path = ne_path_escape(dst); ret = ne_move(session, 1, spath, dst_path); ret = get_error(ret, "MOVE", session); if (!ret && locks) { struct ne_lock *lock = lock_by_path(spath); if (lock) { ne_lockstore_remove(locks, lock); ne_lock_destroy(lock); } } free(spath); free(dst_path); return ret; } int dav_put(const char *path, const char *cache_path, int *exists, time_t *expire, char **etag, time_t *mtime, int execute) { int ret = 0; if (!initialized) { ret = dav_init_connection(path); if (ret) return ret; } if (precheck && (has_if_match_bug || (*exists && (!etag || !*etag))) && (!*exists || (etag && *etag) || (mtime && *mtime))) { char *r_etag = NULL; time_t r_mtime = 0; off_t r_length = 0; ret = dav_head(path, &r_etag, &r_mtime, &r_length); if (!ret) { if (!*exists && r_length) { ret = EEXIST; } else if (etag && *etag && r_etag) { if (strcmp(*etag, r_etag) != 0) ret = EINVAL; } else if (mtime && *mtime && r_mtime) { if (*mtime < r_mtime) ret = EINVAL; } } else if (ret == ENOENT) { if (!*exists) { ret = 0; } else { ret = dav_unlock(path, expire); } } if (r_etag) free(r_etag); if (ret) return ret; } int fd = open(cache_path, O_RDONLY); if (fd <= 0) return EIO; struct stat st; if (fstat(fd, &st) != 0) return EIO; char *spath = ne_path_escape(path); ne_request *req = ne_request_create(session, "PUT", spath); if (!has_if_match_bug) { if (!*exists) { ne_add_request_header(req, "If-None-Match", "*"); } else { if (etag && *etag) ne_add_request_header(req, "If-Match", *etag); } } if (use_expect100) ne_set_request_flag(req, NE_REQFLAG_EXPECT100, 1); ne_lock_using_resource(req, spath, 0); ne_set_request_body_fd(req, fd, 0, st.st_size); ret = ne_request_dispatch(req); ret = get_error(ret, "PUT", session); if (ret == EACCES && lock_discover(spath, expire) == 0) { ne_request_destroy(req); req = ne_request_create(session, "PUT", spath); if (!has_if_match_bug) { if (!*exists) { ne_add_request_header(req, "If-None-Match", "*"); } else { if (etag && *etag) ne_add_request_header(req, "If-Match", *etag); } } if (use_expect100) ne_set_request_flag(req, NE_REQFLAG_EXPECT100, 1); ne_lock_using_resource(req, spath, 0); ne_set_request_body_fd(req, fd, 0, st.st_size); ret = ne_request_dispatch(req); ret = get_error(ret, "PUT", session); } int need_head = 0; if (!ret) { *exists = 1; const char *value; if (etag) { if (*etag) free(*etag); *etag = normalize_etag(ne_get_response_header(req, "ETag")); if (!*etag) need_head = 1; } if (mtime) { value = ne_get_response_header(req, "Last-Modified"); if (!value) value = ne_get_response_header(req, "Date"); if (value) { *mtime = ne_httpdate_parse(value); } else { need_head = 1; } } } ne_request_destroy(req); free(spath); close(fd); if (!ret) { if (execute == 1) dav_set_execute(path, execute); if (need_head) dav_head(path, etag, mtime, NULL); } return ret; } int dav_quota(const char *path, uint64_t *available, uint64_t *used) { int ret; if (!initialized) { ret = dav_init_connection(path); if (ret) return ret; } static int use_rfc = 1; quota_context ctx; ctx.error = 0; ctx.available = 0; ctx.used = 0; ret = EIO; char *spath = ne_path_escape(path); if (use_rfc) { ne_propfind_handler *ph = ne_propfind_create(session, spath, NE_DEPTH_ZERO); ret = ne_propfind_named(ph, quota_names, quota_result, &ctx); ret = get_error(ret, "PROPFIND", session); ne_propfind_destroy(ph); if (!ret && ctx.error) { ret = EIO; if (ctx.error == 2) use_rfc = 0; } } if (!ret) { *available = ctx.available; *used = ctx.used; } free(spath); return ret; } int dav_set_execute(const char *path, int set) { int ret; if (!initialized) { ret = dav_init_connection(path); if (ret) return ret; } ne_proppatch_operation op[2]; op[0].name = &prop_names[EXECUTE]; op[0].type = ne_propset; if (set) { op[0].value = "T"; } else { op[0].value = "F"; } op[1].name = NULL; char *spath = ne_path_escape(path); ret = ne_proppatch(session, spath, &op[0]); ret = get_error(ret, "PROPPATCH", session); free(spath); return ret; } void dav_set_no_terminal(void) { have_terminal = 0; } int dav_unlock(const char *path, time_t *expire) { int ret; if (!initialized) { ret = dav_init_connection(path); if (ret) return ret; } if (!locks) { *expire = 0; return 0; } char *spath = ne_path_escape(path); struct ne_lock *lock = lock_by_path(spath); free(spath); if (!lock) { *expire = 0; return 0; } ret = ne_unlock(session, lock); ret = get_error(ret, "UNLOCK", session); if (!ret || ret == ENOENT || ret == EINVAL) { ne_lockstore_remove(locks, lock); ne_lock_destroy(lock); *expire = 0; return 0; } return ret; } /* Private functions */ /*===================*/ #ifdef HAVE_ICONV static void convert(char **s, iconv_t conv) { size_t insize = strlen(*s); char *in = *s; size_t outsize = MB_LEN_MAX * (insize + 1); char *buf = calloc(outsize, 1); if (!buf) abort(); char *out = buf; iconv(conv, NULL, NULL, &out, &outsize); if (iconv(conv, &in, &insize, &out, &outsize) >= 0 && insize == 0 && outsize >= MB_LEN_MAX) { memset(out, 0, MB_LEN_MAX); free(*s); *s = ne_strndup(buf, out - buf + MB_LEN_MAX); } free(buf); } #endif /* HAVE_ICONV */ /* Creates a new session. Scheme, host and port are taken from uri. read_timout, connect_timeout, useragent and proxy are the same as for the main sessions. The values are taken from the main session or from global variables. The same call back functions for auth and custom headers as for the main session are registered, using the same credentials as the main session. If the scheme is https the ssl_verify function is registered. It is set up to trust in the default CAs. A server certificate or client certificate configured by the user are not used because it may be a different server. TODO: usage of certificates and credentials should depend on uri->host. Return value : the newly created session. It must be destroyed by the caller. */ static ne_session * create_rd_session(const ne_uri *uri) { if (!uri->scheme || !uri->host || !uri->path) return NULL; if (strcmp(uri->scheme, "https") == 0 && !ne_has_support(NE_FEATURE_SSL)) return NULL; int port = uri->port; if (port == 0) port = ne_uri_defaultport(uri->scheme); ne_session *rd_sess = ne_session_create(uri->scheme, uri->host, port); ne_set_read_timeout(rd_sess, read_timeout); ne_set_connect_timeout(rd_sess, connect_timeout); char *useragent = ne_concat(PACKAGE_TARNAME, "/", PACKAGE_VERSION, NULL); ne_set_useragent(session, useragent); free(useragent); ne_add_server_auth(rd_sess, NE_AUTH_ALL, auth, "server"); ne_uri *proxy = (ne_uri *) ne_calloc(sizeof(ne_uri)); ne_fill_proxy_uri(rd_sess, proxy); if (proxy->host) { ne_session_proxy(rd_sess, proxy->host, proxy->port); ne_add_proxy_auth(rd_sess, NE_AUTH_ALL, auth, "proxy"); } if (strcmp(uri->scheme, "https") == 0) { ne_ssl_set_verify(rd_sess, ssl_verify, NULL); ne_ssl_trust_default_ca(rd_sess); } if (custom_header) ne_hook_pre_send(rd_sess, add_header, custom_header); return rd_sess; } /* Returns a file error code according to ret from the last WebDAV method call. If ret has value NE_ERROR the error code from the session is fetched and translated. ret : the error code returned from NEON. method : name of the WebDAV method, used for debug messages. sess : the session to get the HTTP status code from. return value : a file error code according to errno.h. */ static int get_error(int ret, const char *method, ne_session *sess) { int err; switch (ret) { case NE_OK: case NE_ERROR: err = get_ne_error(method, sess); break; case NE_LOOKUP: err = EIO; break; case NE_AUTH: err = EPERM; break; case NE_PROXYAUTH: err = EPERM; break; case NE_CONNECT: err = EAGAIN; break; case NE_TIMEOUT: err = EAGAIN; break; case NE_FAILED: err = EINVAL; break; case NE_RETRY: err = EAGAIN; break; case NE_REDIRECT: err = ENOENT; break; default: err = EIO; break; } return err; } /* Get the error from the session and translates it into a file error code. method : name of the WebDAV method, used for debug messages. sess : the session to get the HTTP status code from. return value : a file error code according to errno.h. */ static int get_ne_error(const char *method, ne_session *sess) { const char *text = ne_get_error(sess); char *tail; int err = strtol(text, &tail, 10); if (tail == text) return EIO; switch (err) { case 200: /* OK */ case 201: /* Created */ case 202: /* Accepted */ case 203: /* Non-Authoritative Information */ case 204: /* No Content */ case 205: /* Reset Content */ case 207: /* Multi-Status */ case 304: /* Not Modified */ return 0; case 401: /* Unauthorized */ case 402: /* Payment Required */ case 407: /* Proxy Authentication Required */ return EPERM; case 301: /* Moved Permanently */ case 303: /* See Other */ case 404: /* Not Found */ case 405: /* Method Not Allowed */ case 410: /* Gone */ return ENOENT; case 408: /* Request Timeout */ case 504: /* Gateway Timeout */ return EAGAIN; case 423: /* Locked */ return EACCES; case 400: /* Bad Request */ case 403: /* Forbidden */ case 409: /* Conflict */ case 411: /* Length Required */ case 412: /* Precondition Failed */ case 414: /* Request-URI Too Long */ case 415: /* Unsupported Media Type */ case 424: /* Failed Dependency */ case 501: /* Not Implemented */ return EINVAL; case 413: /* Request Entity Too Large */ case 507: /* Insufficient Storage */ return ENOSPC; case 206: /* Partial Content */ case 300: /* Multiple Choices */ case 302: /* Found */ case 305: /* Use Proxy */ case 306: /* (Unused) */ case 307: /* Temporary Redirect */ case 406: /* Not Acceptable */ case 416: /* Requested Range Not Satisfiable */ case 417: /* Expectation Failed */ case 422: /* Unprocessable Entity */ case 500: /* Internal Server Error */ case 502: /* Bad Gateway */ case 503: /* Service Unavailable */ case 505: /* HTTP Version Not Supported */ return EIO; default: return EIO; } } /* Searches for a lock for resource at path and returns this lock if successfull, NULL otherwise. */ static struct ne_lock * lock_by_path(const char *path) { struct ne_lock *lock = ne_lockstore_first(locks); while (lock) { if (strcmp(path, lock->uri.path) == 0) return lock; lock = ne_lockstore_next(locks); } return NULL; } /* Checks if there is already a lock for file path that is owned by owner. If successful it stores the lock in the global lock store, refreshes the lock and updates expire. If no matching lock is found or the session is initialized with the nolocks option, it sets expire to 0 and returns -1. If a matching lock is found, but it can not be refreshed, expire is set to -1 (= locked, expire time unknown). If an error occurs it leaves expire unchanged and returns -1: path : URL-escaped path of the file on the server. expire : The time when the lock expires, will be updated. return value : 0 if a matching lock is found, -1 otherwise. */ static int lock_discover(const char *path, time_t *expire) { if (!locks) { *expire = 0; return -1; } struct ne_lock *lock = NULL; int ret = ne_lock_discover(session, path, lock_result, &lock); ret = get_error(ret, "LOCKDISCOVER", session); if (!ret && lock) { *expire = -1; lock_refresh(lock, expire); return 0; } else { if (!ret) *expire = 0; return -1; } } /* Refreshes lock and updates expire. If an error occurs it does nothing. lock : The lock, will be updated on success. expire : The time when the lock expires, updated on success. */ static void lock_refresh(struct ne_lock *lock, time_t *expire) { int ret = ne_lock_refresh(session, lock); ret = get_error(ret, "LOCKREFRESH", session); if (!ret) { if (lock->timeout <= 0) { *expire = LONG_MAX; } else { *expire = lock->timeout + time(NULL); } } } static ssize_t log_writer(void *cookie, const char *buffer, size_t size) { if (size <= 0) return 0; size_t written = 0; const char *bpos = buffer; while (written < size) { size_t n = 2; char *cpos = (char *) cookie; while (n < log_bufsize && written < size) { if (*bpos == '%') { *cpos++ = '%'; n++; } *cpos++ = *bpos++; n++; written++; } *cpos = '\0'; syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "%s", (char *) cookie); } return written; } /* Checks etag for weakness indicator and quotation marks. The reurn value is either a strong etag with quotation marks or NULL. Depending on global variable drop_weak_etags weak etags are either dropped or convertet into strong ones. */ static char * normalize_etag(const char *etag) { if (!etag) return NULL; const char * e = etag; if (*e == 'W') { if (drop_weak_etags) { return NULL; } else { e++; if (*e == '/') { e++; } else { return NULL; } } } if (!*e) return NULL; char *ne = NULL; if (*e == '\"') { ne = strdup(e); } else { if (asprintf(&ne, "\"%s\"", e) < 0) ne = NULL;; } return ne; } /* Replaces slashes in name by "slash-", "-slash-" or "-slash", depending on the position of the slash within name. */ static void replace_slashes(char **name) { char *slash = strchr(*name, '/'); while (slash) { char *end = *name + strlen(*name) - 1; char *nn; *slash = '\0'; if (slash == *name) { nn = ne_concat("slash-", slash + 1, NULL); } else if (slash == end) { nn = ne_concat(*name, "-slash", NULL); } else { nn = ne_concat(*name, "-slash-", slash + 1, NULL); } free(*name); *name = nn; slash = strchr(*name, '/'); } } /* Call-back functions for neon. */ static void add_header(ne_request *req, void *userdata, ne_buffer *header) { if (custom_header) ne_buffer_zappend(header, custom_header); if (cookie_list && cookie_list[0]) { ne_buffer_zappend(header, "Cookie: "); ne_buffer_zappend(header, cookie_list[0]); int i = 1; while (i < n_cookies && cookie_list[i]) { ne_buffer_zappend(header, ", "); ne_buffer_zappend(header, cookie_list[i]); i++; } ne_buffer_zappend(header, "\r\n"); } } /* Copies credentials from global variables into user and pwd. userdata must be a string with value "server" or "proxy", to decide what the creditentials are needed for. The creditentials are taken form global variables username/password or p_username/p_password. If attempt > 0, this is logged as an error and the value of attempt is returned, so neon will not try again. userdata : What the credentials are needed for ("server" or "proxy"). realm : Used for error log. attempt : Number of attempts to get credentials. If not 0 an error occured. user : A buffer of size NE_ABUFSIZ to return the username. pwd : A buffer of size NE_ABUFSIZ to return the password. return value : value if attempt. neon will not call this function again if it is greater than 0. */ static int auth(void *userdata, const char *realm, int attempt, char *user, char *pwd) { if (attempt) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("authentication failure:")); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), " %s", realm); return attempt; } if (strcmp((char *) userdata, "server") == 0) { if (username) strncpy(user, username, NE_ABUFSIZ - 1); if (password) strncpy(pwd, password, NE_ABUFSIZ - 1); } else if (strcmp((char *) userdata, "proxy") == 0) { if (p_username) strncpy(user, p_username, NE_ABUFSIZ - 1); if (p_password) strncpy(pwd, p_password, NE_ABUFSIZ - 1); } return 0; } /* Reads HTTP-data from blockand writes them to a local file. userdata must be a get_context structure that holds at least the name of the local file. If it does not contain a file descriptor, the file is opened for writing and the file descriptor is stored in the get_context structure. In case of an error a error flag is set. userdata : A get_context structure, containing the name of the local file, the file descriptor (if the file is open), and an error flag. block : Buffer containing the data. length : Number of bytes in the buffer. return value : 0 on success, EIO otherwise. */ static int file_reader(void *userdata, const char *block, size_t length) { get_context *ctx = (get_context *) userdata; if (!ctx->fd) ctx->fd = open(ctx->file, O_WRONLY | O_TRUNC, S_IRUSR | S_IWUSR); if (ctx->fd <= 0) { ne_set_error(session, _("%i can't open cache file"), 0); ctx->error = EIO; } while (!ctx->error && length > 0) { ssize_t ret = write(ctx->fd, block, length); if (ret < 0) { ctx->error = EIO; ne_set_error(session, _("%i error writing to cache file"), 0); } else { length -= ret; block += ret; } } return ctx->error; } /* A ne_post_header_fn to read cookies from the Set-Cookie header and store them in the global arrray of strings cookie_list. The cookies will be send in the Cookie header of subsequent requests. Only the "name=value" part of the cookie is stored. All attributes are completely ignored. When a cookie with the same name as an already stored cookie, but with a different value is received, it's value is updated if necessary. Only n_cookies cookies will be stored. If the server sends more different cookies these will be ignored. */ static void get_cookies(ne_request *req, void *userdata, const ne_status *status) { const char *cookie_hdr = ne_get_response_header(req, "Set-Cookie"); if (!cookie_hdr) return; const char *next = cookie_hdr; while (next) { const char *start = next; next = strchr(start, ','); const char *end = strchr(start, ';'); if (next) { if (!end || end > next) end = next; next++; } else if (!end) { end = start + strlen(start); } while (start < end && *start == ' ') start++; while (end > start && *(end - 1) == ' ') end--; char *es = strchr(start, '='); if (!es) continue; size_t nl = es - start; size_t vl = end - es - 1; if (nl == 0 || vl == 0) continue; int i = 0; for (i = 0; i < n_cookies; i++) { if (!cookie_list[i]) { cookie_list[i] = ne_strndup(start, end - start); break; } if (strncmp(cookie_list[i], start, nl) == 0) { if (strncmp(cookie_list[i] + nl + 1, es + 1, vl) != 0) { free(cookie_list[i]); cookie_list[i] = ne_strndup(start, end - start); } break; } } } } /* If the owner of this lock is the same as global variable owner, lock is stored in the global lock store locks and a pointer to the lock is returned in userdata. Otherwise it does nothing. userdata : *userdata will be set to lock, if lock is ownded ba owner. lock : a lock found by ne_lock_discover() on the server. uri : not used. status : not used. */ static void lock_result(void *userdata, const struct ne_lock *lock, const ne_uri *uri, const ne_status *status) { if (!locks || !owner || !userdata || !lock || !lock->owner) return; if (strcmp(lock->owner, owner) == 0) { struct ne_lock *l = ne_lock_copy(lock); ne_lockstore_add(locks, l); l->timeout = lock_timeout; *((struct ne_lock **) userdata) = l; } } /* Called by ne_propfind_named(). Evaluates a dav_props structure from href/uri and set and stores it in userdata. userdata must be a pointer to a propfind_context structure. Its member path holds the unescaped path of the collection. Its member results is a linked list of the dav_props structures. The unescaped version of href/uri->path must must be equal to the path of the collection or a descendent of it. It is stored as member path of the dav_props structure. It will be normalized (collections have a trailing slash, non-collections do not have one). The name is derived from path. The name of the collection itself will be the empty string. If name contains a '/'-character it is replaced by the ugly string "-slash-". There must not be two dav_props structure with the same path or the same name. in this case one of them is removed from the list, preferable the one that is not a directory or that is less specific. userdata : A pointer to a propfind_context structure containing the path of the collection and the linked list of properties. uri : ne_uri of the resource as returned from the server. set : Points to the set of properties returned from the server.*/ static void prop_result(void *userdata, const ne_uri *uri, const ne_prop_result_set *set) { propfind_context *ctx = (propfind_context *) userdata; if (!ctx || !uri || !uri->path || !set) return; char *tmp_path = (char *) ne_malloc(strlen(uri->path) + 1); const char *from = uri->path; char *to = tmp_path; while (*from) { while (*from == '/' && *(from + 1) == '/') from++; *to++ = *from++; } *to = 0; dav_props *result = ne_calloc(sizeof(dav_props)); result->path = ne_path_unescape(tmp_path); free (tmp_path); if (!result->path || strlen(result->path) < 1) { dav_delete_props(result); return; } const char *data; data = ne_propset_value(set, &prop_names[TYPE]); if (!data) data = ne_propset_value(set, &anonymous_prop_names[TYPE]); if (data && strstr(data, "collection")) result->is_dir = 1; if (*(result->path + strlen(result->path) - 1) == '/') { if (!result->is_dir) *(result->path + strlen(result->path) - 1) = '\0'; } else { if (result->is_dir) { char *tmp = ne_concat(result->path, "/", NULL); free(result->path); result->path = tmp; } } if (strcasestr(result->path, ctx->path) != result->path) { dav_delete_props(result); return; } if (strcasecmp(result->path, ctx->path) == 0) { result->name = ne_strdup(""); } else { if (strlen(result->path) < (strlen(ctx->path) + result->is_dir + 1)) { dav_delete_props(result); return; } result->name = ne_strndup(result->path + strlen(ctx->path), strlen(result->path) - strlen(ctx->path) - result->is_dir); replace_slashes(&result->name); #ifdef HAVE_ICONV if (from_server_enc) convert(&result->name, from_server_enc); #endif } data = ne_propset_value(set, &prop_names[LENGTH]); if (!data) data = ne_propset_value(set, &anonymous_prop_names[LENGTH]); if (data) #if _FILE_OFFSET_BITS == 64 result->size = strtoll(data, NULL, 10); #else /* _FILE_OFFSET_BITS != 64 */ result->size = strtol(data, NULL, 10); #endif /* _FILE_OFFSET_BITS != 64 */ if (!min_propset) { data = ne_propset_value(set, &prop_names[ETAG]); if (!data) data = ne_propset_value(set, &anonymous_prop_names[ETAG]); result->etag = normalize_etag(data); data = ne_propset_value(set, &prop_names[MODIFIED]); if (!data) data = ne_propset_value(set, &anonymous_prop_names[MODIFIED]); if (data) { result->mtime = ne_httpdate_parse(data); if (result->mtime == (time_t) -1) result->mtime = ne_iso8601_parse(data); if (result->mtime == (time_t) -1) result->mtime = 0; } data = ne_propset_value(set, &prop_names[EXECUTE]); if (!data) data = ne_propset_value(set, &anonymous_prop_names[EXECUTE]); if (!data) { result->is_exec = -1; } else if (*data == 'T') { result->is_exec = 1; } } result->next = ctx->results; ctx->results = result; } /* Reads available and used bytes from set and stores them in userdata. */ static void quota_result(void *userdata, const ne_uri *uri, const ne_prop_result_set *set) { quota_context *ctx = (quota_context *) userdata; if (!ctx || !uri || !uri->path || !set) return; const char *data = ne_propset_value(set, "a_names[AVAILABLE]); if (data) { ctx->available = strtoull(data, NULL, 10); } else { const ne_status *st = ne_propset_status(set, "a_names[AVAILABLE]); if (st && st->klass == 4) { ctx->error = 2; } else { ctx->error = 1; } return; } data = ne_propset_value(set, "a_names[USED]); if (data) ctx->used = strtoull(data, NULL, 10); } /* Displays information about cert and asks the user whether to accept the certificate or not. If no terminal is available (according to global variable Have_terminal) it returns an error. Else it displays an error message and certificate date and ask whether to accept the certificate. If the user accepts it returns 0, otherwise an error. In any case the event is logged. userdata : not used. failures : a constant indicating the kind of error. cert : the server certificate that could not be verified by neon. return value : 0 accept the certificate for this session. -1 don't accept the certificate. */ static int ssl_verify(void *userdata, int failures, const ne_ssl_certificate *cert) { if (server_cert) { if (ne_ssl_cert_cmp(cert, server_cert) == 0) return 0; if (have_terminal) error(0, 0, _("the server certificate is not trusted")); return -1; } char *issuer = ne_ssl_readable_dname(ne_ssl_cert_issuer(cert)); char *subject = ne_ssl_readable_dname(ne_ssl_cert_subject(cert)); char *digest = ne_calloc(NE_SSL_DIGESTLEN); if (!issuer || !subject || ne_ssl_cert_digest(cert, digest) != 0) { if (have_terminal) { error(0, 0, _("error processing server certificate")); } else { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("error processing server certificate")); } if (issuer) free(issuer); if (subject) free(subject); if (digest) free(digest); return -1; } int ret = -1; if (have_terminal) { if (failures & NE_SSL_NOTYETVALID) error(0, 0, _("the server certificate is not yet valid")); if (failures & NE_SSL_EXPIRED) error(0, 0, _("the server certificate has expired")); if (failures & NE_SSL_IDMISMATCH) error(0, 0, _("the server certificate does not match the server name")); if (failures & NE_SSL_UNTRUSTED) error(0, 0, _("the server certificate is not trusted")); if (failures & ~NE_SSL_FAILMASK) error(0, 0, _("unknown certificate error")); printf(_(" issuer: %s"), issuer); printf("\n"); printf(_(" subject: %s"), subject); printf("\n"); printf(_(" identity: %s"), ne_ssl_cert_identity(cert)); printf("\n"); printf(_(" fingerprint: %s"), digest); printf("\n"); printf(_("You only should accept this certificate, if you can\n" "verify the fingerprint! The server might be faked\n" "or there might be a man-in-the-middle-attack.\n")); printf(_("Accept certificate for this session? [y,N] ")); char *s = NULL; size_t n = 0; ssize_t len = 0; len = getline(&s, &n, stdin); if (len < 0) abort(); if (rpmatch(s) > 0) ret = 0; free(s); } if (failures & NE_SSL_NOTYETVALID) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("the server certificate is not yet valid")); if (failures & NE_SSL_EXPIRED) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("the server certificate has expired")); if (failures & NE_SSL_IDMISMATCH) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("the server certificate does not match the server name")); if (failures & NE_SSL_UNTRUSTED) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("the server certificate is not trusted")); if (failures & ~NE_SSL_FAILMASK) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("unknown certificate error")); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _(" issuer: %s"), issuer); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _(" subject: %s"), subject); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _(" identity: %s"), ne_ssl_cert_identity(cert)); if (!ret) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _(" accepted by user")); } if (issuer) free(issuer); if (subject) free(subject); if (digest) free(digest); return ret; } davfs2-1.5.5/src/defaults.h0000644000175000017500000002026212460776604012415 00000000000000/* defauls.h: default values of configuration options and constants. Copyright (C) 2006, 2007, 2008, 2009, 2014 Werner Baumann This file is part of davfs2. davfs2 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. davfs2 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 davfs2; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef DAV_DEFAULTS_H #define DAV_DEFAULTS_H /* Misc. */ /*=======*/ /* File system type to be used with 'mount -t' and fstab. */ #define DAV_FS_TYPE "davfs" /* Mount options set by mount program in case of mounting by an ordinary user. */ #define DAV_USER_MOPTS (MS_MGC_VAL | MS_NOSUID | MS_NOEXEC | MS_NODEV) /* This mount options will allways be set by davfs2. Different values from command line and even fstab will be silently ignored. */ #define DAV_MOPTS (MS_MGC_VAL | MS_NOSUID | MS_NODEV) /* Mode of directories. May be overridden by command line or fstab. */ #define DAV_DIR_MODE (S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH) /* Mode of regular files. May be overridden by command line or fstab. */ #define DAV_FILE_MODE (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) /* XML namespace for the cache index file. */ #define DAV_XML_NS "http://dav.sf.net/" /* Directories and Files */ /*=======================*/ /* If _PATH_MOUNTED (the mtab file) is a symbolic link (to /proc/mounts) some information required for umount is missing (e.g. the option user= #ifdef HAVE_FCNTL_H #include #endif #ifdef HAVE_LIBINTL_H #include #endif #ifdef HAVE_STDDEF_H #include #endif #ifdef HAVE_STDINT_H #include #endif #include #ifdef HAVE_STDLIB_H #include #endif #include #ifdef HAVE_SYSLOG_H #include #endif #ifdef HAVE_UNISTD_H #include #endif #ifdef HAVE_SYS_MOUNT_H #include #endif #ifdef HAVE_SYS_STAT_H #include #endif #include #include "defaults.h" #include "mount_davfs.h" #include "cache.h" #include "coda.h" #include "fuse_kernel.h" #include "kernel_interface.h" #ifdef ENABLE_NLS #define _(String) gettext(String) #else #define _(String) String #endif /* Private constants */ /*===================*/ /* Name, major number and minor number of the devices to communicate with the kernel file system. */ #define FUSE_DEV_NAME "fuse" #define CODA_DEV_NAME "cfs" #define CODA_MAJOR 67 #define MAX_CODADEVS 5 /* Coda minor number may be from 0 to 4. */ /* Private function prototypes */ /*=============================*/ static int init_coda(int *dev, dav_run_msgloop_fn *msg_loop, void **mdata); static int init_fuse(int *dev, dav_run_msgloop_fn *msg_loop, void **mdata, size_t *buf_size, const char *url, const char *mpoint, unsigned long int mopts, uid_t owner, gid_t group, mode_t mode); /* Public functions */ /*==================*/ int dav_init_kernel_interface(int *dev, dav_run_msgloop_fn *msg_loop, void **mdata, char **kernel_fs, size_t *buf_size, const char *url, const char *mpoint, const dav_args *args) { uid_t orig = geteuid(); if (seteuid(0) != 0) error(EXIT_FAILURE, 0, _("can't change effective user id")); if (!*kernel_fs) *kernel_fs = strdup("fuse"); if (!*kernel_fs) abort(); int mounted = 0; if (strcmp(*kernel_fs, "coda") == 0) { if (init_coda(dev, msg_loop, mdata) != 0) { error(0, 0, _("trying fuse kernel file system")); if (init_fuse(dev, msg_loop, mdata, buf_size, url, mpoint, args->mopts, args->uid, args->gid, args->dir_mode) == 0) { free(*kernel_fs); *kernel_fs = strdup("fuse"); if (!*kernel_fs) abort(); mounted = 1; error(0, 0, _("fuse device opened successfully")); } else { exit(EXIT_FAILURE); } } } else if (strcmp(*kernel_fs, "fuse") == 0) { if (init_fuse(dev, msg_loop, mdata, buf_size, url, mpoint, args->mopts, args->uid, args->gid, args->dir_mode) == 0) { mounted = 1; } else { error(0, 0, _("trying coda kernel file system")); if (init_coda(dev, msg_loop, mdata) == 0) { free(*kernel_fs); *kernel_fs = strdup("coda"); if (*kernel_fs == NULL) abort(); error(0, 0, _("coda device opened successfully")); } else { exit(EXIT_FAILURE); } } } else { error(EXIT_FAILURE, 0, _("unknown kernel file system %s"), *kernel_fs); } if (seteuid(orig) != 0) error(EXIT_FAILURE, 0, _("can't change effective user id")); return mounted; } /* Private functions */ /*===================*/ static int init_coda(int *dev, dav_run_msgloop_fn *msg_loop, void **mdata) { *dev = 0; int minor = 0; while (*dev <= 0 && minor < MAX_CODADEVS) { char *path; if (asprintf(&path, "%s/%s%i", DAV_DEV_DIR, CODA_DEV_NAME, minor) < 0) abort(); *dev = open(path, O_RDWR | O_NONBLOCK); free(path); ++minor; } if (*dev <= 0) { error(0, 0, _("no free coda device to mount")); return -1; } int version = 0; ioctl(*dev, CIOC_KERNEL_VERSION, &version); if (version == 3) { *msg_loop = dav_coda_loop; } else { error(0, 0, _("CODA_KERNEL_VERSION %u not supported"), version); close(*dev); return -1; } struct coda_mount_data *md = malloc(sizeof(struct coda_mount_data)); if (!md) abort(); md->version = CODA_MOUNT_VERSION; md->fd = *dev; *mdata = md; return 0; } static int init_fuse(int *dev, dav_run_msgloop_fn *msg_loop, void **mdata, size_t *buf_size, const char *url, const char *mpoint, unsigned long int mopts, uid_t owner, gid_t group, mode_t mode) { char *path; if (asprintf(&path, "%s/%s", DAV_DEV_DIR, FUSE_DEV_NAME) < 0) abort(); *dev = open(path, O_RDWR | O_NONBLOCK); if (*dev <= 0) { error(0, 0, _("loading kernel module fuse")); int ret; pid_t pid = fork(); if (pid == 0) { execl("/sbin/modprobe", "modprobe", "fuse", NULL); _exit(EXIT_FAILURE); } else if (pid < 0) { ret = -1; } else { if (waitpid(pid, &ret, 0) != pid) ret = -1; } if (ret) { error(0, 0, _("loading kernel module fuse failed")); } else { *dev = open(path, O_RDWR | O_NONBLOCK); } if (*dev <= 0) { error(0, 0, _("waiting for /dev/fuse to be created")); sleep(2); *dev = open(path, O_RDWR | O_NONBLOCK); } } free(path); if (*dev <= 0) { error(0, 0, _("can't open fuse device")); return -1; } if (*buf_size < (FUSE_MIN_READ_BUFFER + 4096)) { *buf_size = FUSE_MIN_READ_BUFFER + 4096; } #if SIZEOF_VOID_P == 8 if (asprintf((char **) mdata, "fd=%i,rootmode=%o,user_id=%i,group_id=%i," "allow_other,max_read=%lu", *dev, mode, owner, group, (unsigned long int) (*buf_size - 4096)) < 0) abort(); #else if (asprintf((char **) mdata, "fd=%i,rootmode=%o,user_id=%i,group_id=%i," "allow_other,max_read=%u", *dev, mode, owner, group, (unsigned int) (*buf_size - 4096)) < 0) abort(); #endif if (mount(url, mpoint, "fuse", mopts, *mdata) == 0) { *msg_loop = dav_fuse_loop; return 0; } free(*mdata); close(*dev); error(0, 0, _("can't mount using fuse kernel file system")); return -1; } davfs2-1.5.5/src/Makefile.in0000644000175000017500000005165113422373151012475 00000000000000# 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@ sbin_PROGRAMS = mount.davfs$(EXEEXT) umount.davfs$(EXEEXT) subdir = src ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/config/davfs2.m4 \ $(top_srcdir)/config/gettext.m4 $(top_srcdir)/config/iconv.m4 \ $(top_srcdir)/config/intlmacosx.m4 \ $(top_srcdir)/config/lib-ld.m4 \ $(top_srcdir)/config/lib-link.m4 \ $(top_srcdir)/config/lib-prefix.m4 \ $(top_srcdir)/config/neon.m4 $(top_srcdir)/config/nls.m4 \ $(top_srcdir)/config/po.m4 $(top_srcdir)/config/progtest.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 = $(SHELL) $(top_srcdir)/config/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(sbindir)" PROGRAMS = $(sbin_PROGRAMS) am_mount_davfs_OBJECTS = cache.$(OBJEXT) dav_coda.$(OBJEXT) \ dav_fuse.$(OBJEXT) kernel_interface.$(OBJEXT) \ mount_davfs.$(OBJEXT) webdav.$(OBJEXT) mount_davfs_OBJECTS = $(am_mount_davfs_OBJECTS) mount_davfs_LDADD = $(LDADD) am_umount_davfs_OBJECTS = umount_davfs.$(OBJEXT) umount_davfs_OBJECTS = $(am_umount_davfs_OBJECTS) umount_davfs_LDADD = $(LDADD) 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)/config/depcomp am__depfiles_maybe = depfiles am__mv = mv -f 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 = $(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 = $(mount_davfs_SOURCES) $(umount_davfs_SOURCES) DIST_SOURCES = $(mount_davfs_SOURCES) $(umount_davfs_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) # 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.in $(top_srcdir)/config/depcomp \ $(top_srcdir)/config/mkinstalldirs DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = -DPROGRAM_NAME=\"mount.davfs\" \ -DDAV_SYS_CONF_DIR=\"$(pkgsysconfdir)\" \ -DDAV_LOCALSTATE_DIR=\"$(dav_localstatedir)\" \ -DDAV_SYS_RUN=\"$(pkglocalstatedir)\" \ -DDAV_SYS_CACHE=\"$(pkgsyscachedir)\" \ -DDAV_SECRETS=\"secrets\" \ -DDAV_CONFIG=\"$(PACKAGE).conf\" \ -DDAV_CERTS_DIR=\"certs\" \ -DDAV_CLICERTS_DIR=\"private\" \ -DDAV_DATA_DIR=\"$(pkgdatadir)\" \ -DLOCALEDIR=\"$(localedir)\" \ -DDAV_USER=\"$(dav_user)\" \ -DDAV_GROUP=\"$(dav_group)\" \ -D_FORTIFY_SOURCE=2 @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = $(NEON_LIBS) @LIBS@ LINGUAS = @LINGUAS@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NEON_CONFIG = @NEON_CONFIG@ NEON_LIBS = @NEON_LIBS@ NE_FLAG_IPV6 = @NE_FLAG_IPV6@ NE_FLAG_LFS = @NE_FLAG_LFS@ NE_FLAG_SOCKS = @NE_FLAG_SOCKS@ NE_FLAG_SSL = @NE_FLAG_SSL@ NE_FLAG_TS_SSL = @NE_FLAG_TS_SSL@ NE_FLAG_ZLIB = @NE_FLAG_ZLIB@ OBJEXT = @OBJEXT@ 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@ POSUB = @POSUB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ 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@ dav_group = @dav_group@ dav_linguas = @dav_linguas@ dav_localstatedir = @dav_localstatedir@ dav_syscachedir = @dav_syscachedir@ dav_user = @dav_user@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = $(datadir)/locale localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ ssbindir = @ssbindir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ pkgsysconfdir = $(sysconfdir)/@PACKAGE@ pkglocalstatedir = $(dav_localstatedir)/mount.davfs pkgsyscachedir = $(dav_syscachedir)/@PACKAGE@ mount_davfs_SOURCES = cache.c dav_coda.c \ dav_fuse.c kernel_interface.c mount_davfs.c webdav.c \ cache.h coda.h defaults.h fuse_kernel.h \ kernel_interface.h mount_davfs.h webdav.h umount_davfs_SOURCES = umount_davfs.c defaults.h AM_CFLAGS = -Wall -Werror=format-security \ -fstack-protector-strong --param=ssp-buffer-size=4 all: all-am .SUFFIXES: .SUFFIXES: .c .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) --gnu src/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/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): install-sbinPROGRAMS: $(sbin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(sbindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(sbindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(sbindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(sbindir)$$dir" || exit $$?; \ } \ ; done uninstall-sbinPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(sbindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(sbindir)" && rm -f $$files clean-sbinPROGRAMS: -test -z "$(sbin_PROGRAMS)" || rm -f $(sbin_PROGRAMS) mount.davfs$(EXEEXT): $(mount_davfs_OBJECTS) $(mount_davfs_DEPENDENCIES) $(EXTRA_mount_davfs_DEPENDENCIES) @rm -f mount.davfs$(EXEEXT) $(AM_V_CCLD)$(LINK) $(mount_davfs_OBJECTS) $(mount_davfs_LDADD) $(LIBS) umount.davfs$(EXEEXT): $(umount_davfs_OBJECTS) $(umount_davfs_DEPENDENCIES) $(EXTRA_umount_davfs_DEPENDENCIES) @rm -f umount.davfs$(EXEEXT) $(AM_V_CCLD)$(LINK) $(umount_davfs_OBJECTS) $(umount_davfs_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cache.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dav_coda.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dav_fuse.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kernel_interface.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mount_davfs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/umount_davfs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/webdav.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.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)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.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) '$<'` 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 $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(sbindir)"; 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-sbinPROGRAMS 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-dvi: install-dvi-am install-dvi-am: install-exec-am: install-sbinPROGRAMS @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-exec-hook 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 pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-sbinPROGRAMS @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) uninstall-hook .MAKE: install-am install-exec-am install-strip uninstall-am .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-sbinPROGRAMS cscopelist-am ctags ctags-am distclean \ distclean-compile distclean-generic 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-exec-hook install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-sbinPROGRAMS install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am uninstall-hook uninstall-sbinPROGRAMS .PRECIOUS: Makefile install-exec-hook: chmod u+s $(DESTDIR)$(sbindir)/mount.davfs; \ if test "$(sbindir)" != "$(ssbindir)"; then \ $(mkinstalldirs) $(DESTDIR)$(ssbindir); \ $(LN_S) -f $(sbindir)/mount.davfs $(DESTDIR)$(ssbindir)/mount.davfs; \ $(LN_S) -f $(sbindir)/umount.davfs $(DESTDIR)$(ssbindir)/umount.davfs; \ fi uninstall-hook: if test "$(sbindir)" != "$(ssbindir)"; then \ rm -f $(DESTDIR)$(ssbindir)/mount.davfs; \ rm -f $(DESTDIR)$(ssbindir)/umount.davfs; \ fi # 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: davfs2-1.5.5/src/fuse_kernel.h0000644000175000017500000001454412460776604013116 00000000000000/* This file is taken from FUSE 2.5.3. From the two alternative licences the BSD licence has been chosen. #include and #ifdef directives have been removed. Modifications by Werner Baumann, 2009-04-14. */ /* This file defines the kernel interface of FUSE */ /* Copyright (C) 2001-2006 Miklos Szeredi. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #define __u64 uint64_t #define __u32 uint32_t #define __s32 int32_t /** Version number of this interface */ #define FUSE_KERNEL_VERSION 7 /** Minor version number of this interface */ #define FUSE_KERNEL_MINOR_VERSION 5 /** The node ID of the root inode */ #define FUSE_ROOT_ID 1 /** The major number of the fuse character device */ #define FUSE_MAJOR 10 /** The minor number of the fuse character device */ #define FUSE_MINOR 229 /* Make sure all structures are padded to 64bit boundary, so 32bit userspace works under 64bit kernels */ struct fuse_attr { __u64 ino; __u64 size; __u64 blocks; __u64 atime; __u64 mtime; __u64 ctime; __u32 atimensec; __u32 mtimensec; __u32 ctimensec; __u32 mode; __u32 nlink; __u32 uid; __u32 gid; __u32 rdev; }; struct fuse_kstatfs { __u64 blocks; __u64 bfree; __u64 bavail; __u64 files; __u64 ffree; __u32 bsize; __u32 namelen; __u32 frsize; __u32 padding; __u32 spare[6]; }; #define FATTR_MODE (1 << 0) #define FATTR_UID (1 << 1) #define FATTR_GID (1 << 2) #define FATTR_SIZE (1 << 3) #define FATTR_ATIME (1 << 4) #define FATTR_MTIME (1 << 5) #define FATTR_FH (1 << 6) /** * Flags returned by the OPEN request * * FOPEN_DIRECT_IO: bypass page cache for this open file * FOPEN_KEEP_CACHE: don't invalidate the data cache on open */ #define FOPEN_DIRECT_IO (1 << 0) #define FOPEN_KEEP_CACHE (1 << 1) enum fuse_opcode { FUSE_LOOKUP = 1, FUSE_FORGET = 2, /* no reply */ FUSE_GETATTR = 3, FUSE_SETATTR = 4, FUSE_READLINK = 5, FUSE_SYMLINK = 6, FUSE_MKNOD = 8, FUSE_MKDIR = 9, FUSE_UNLINK = 10, FUSE_RMDIR = 11, FUSE_RENAME = 12, FUSE_LINK = 13, FUSE_OPEN = 14, FUSE_READ = 15, FUSE_WRITE = 16, FUSE_STATFS = 17, FUSE_RELEASE = 18, FUSE_FSYNC = 20, FUSE_SETXATTR = 21, FUSE_GETXATTR = 22, FUSE_LISTXATTR = 23, FUSE_REMOVEXATTR = 24, FUSE_FLUSH = 25, FUSE_INIT = 26, FUSE_OPENDIR = 27, FUSE_READDIR = 28, FUSE_RELEASEDIR = 29, FUSE_FSYNCDIR = 30, FUSE_ACCESS = 34, FUSE_CREATE = 35 }; /* The read buffer is required to be at least 8k, but may be much larger */ /* 2009-04-14, increased size of FUSE_MIN_READ_BUFFER, Werner Baumann */ #define FUSE_MIN_READ_BUFFER 16384 struct fuse_entry_out { __u64 nodeid; /* Inode ID */ __u64 generation; /* Inode generation: nodeid:gen must be unique for the fs's lifetime */ __u64 entry_valid; /* Cache timeout for the name */ __u64 attr_valid; /* Cache timeout for the attributes */ __u32 entry_valid_nsec; __u32 attr_valid_nsec; struct fuse_attr attr; }; struct fuse_forget_in { __u64 nlookup; }; struct fuse_attr_out { __u64 attr_valid; /* Cache timeout for the attributes */ __u32 attr_valid_nsec; __u32 dummy; struct fuse_attr attr; }; struct fuse_mknod_in { __u32 mode; __u32 rdev; }; struct fuse_mkdir_in { __u32 mode; __u32 padding; }; struct fuse_rename_in { __u64 newdir; }; struct fuse_link_in { __u64 oldnodeid; }; struct fuse_setattr_in { __u32 valid; __u32 padding; __u64 fh; __u64 size; __u64 unused1; __u64 atime; __u64 mtime; __u64 unused2; __u32 atimensec; __u32 mtimensec; __u32 unused3; __u32 mode; __u32 unused4; __u32 uid; __u32 gid; __u32 unused5; }; struct fuse_open_in { __u32 flags; __u32 mode; }; struct fuse_open_out { __u64 fh; __u32 open_flags; __u32 padding; }; struct fuse_release_in { __u64 fh; __u32 flags; __u32 padding; }; struct fuse_flush_in { __u64 fh; __u32 flush_flags; __u32 padding; }; struct fuse_read_in { __u64 fh; __u64 offset; __u32 size; __u32 padding; }; struct fuse_write_in { __u64 fh; __u64 offset; __u32 size; __u32 write_flags; }; struct fuse_write_out { __u32 size; __u32 padding; }; #define FUSE_COMPAT_STATFS_SIZE 48 struct fuse_statfs_out { struct fuse_kstatfs st; }; struct fuse_fsync_in { __u64 fh; __u32 fsync_flags; __u32 padding; }; struct fuse_setxattr_in { __u32 size; __u32 flags; }; struct fuse_getxattr_in { __u32 size; __u32 padding; }; struct fuse_getxattr_out { __u32 size; __u32 padding; }; struct fuse_access_in { __u32 mask; __u32 padding; }; struct fuse_init_in { __u32 major; __u32 minor; }; struct fuse_init_out { __u32 major; __u32 minor; __u32 unused[3]; __u32 max_write; }; struct fuse_in_header { __u32 len; __u32 opcode; __u64 unique; __u64 nodeid; __u32 uid; __u32 gid; __u32 pid; __u32 padding; }; struct fuse_out_header { __u32 len; __s32 error; __u64 unique; }; struct fuse_dirent { __u64 ino; __u64 off; __u32 namelen; __u32 type; char name[0]; }; #define FUSE_NAME_OFFSET ((unsigned) ((struct fuse_dirent *) 0)->name) #define FUSE_DIRENT_ALIGN(x) (((x) + sizeof(__u64) - 1) & ~(sizeof(__u64) - 1)) #define FUSE_DIRENT_SIZE(d) \ FUSE_DIRENT_ALIGN(FUSE_NAME_OFFSET + (d)->namelen) davfs2-1.5.5/src/mount_davfs.c0000644000175000017500000025610513134713613013123 00000000000000/* mount_davfs.c: mount the davfs file system. Copyright (C) 2006, 2007, 2008, 2009, 2014 Werner Baumann This file is part of davfs2. davfs2 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. davfs2 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 davfs2; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "config.h" #include #include #include #ifdef HAVE_FCNTL_H #include #endif #include #include #ifdef HAVE_LIBINTL_H #include #endif #ifdef HAVE_LIMITS_H #include #endif #ifdef HAVE_LOCALE_H #include #endif #ifdef HAVE_MNTENT_H #include #endif #include #include #ifdef HAVE_STDINT_H #include #endif #include #ifdef HAVE_STDLIB_H #include #endif #include #ifdef HAVE_SYSLOG_H #include #endif #ifdef HAVE_TERMIOS_H #include #endif #ifdef HAVE_UNISTD_H #include #endif #ifdef HAVE_SYS_FILE_H #include #endif #ifdef HAVE_SYS_MOUNT_H #include #endif #ifdef HAVE_SYS_STAT_H #include #endif #ifdef HAVE_SYS_TYPES_H #include #endif #include #include #include #include "defaults.h" #include "mount_davfs.h" #include "kernel_interface.h" #include "cache.h" #include "webdav.h" #ifdef ENABLE_NLS #define _(String) gettext(String) #else #define _(String) String #define textdomain(Domainname) #define bindtextdomain(Domainname, Dirname) #endif /* Private global variables */ /*==========================*/ /* The URL of the WebDAV server as taken from commandline. */ static char *url; /* The canonicalized mointpoint. */ static char *mpoint; /* The type of the kernel file system used. */ static char *kernel_fs; /* The file that holds information about mounted filesystems (/proc/mounts or /etc/mtab) */ static char *mounts; /* The PID file */ static char *pidfile; /* This flags signals the message loop of the kernel interface whether it shall do what it says or just stop. Will be reset by termination_handler. */ static volatile int keep_on_running = 1; /* This flag signals that SIGTERM was received. mount.davfs will then terminate without uploading dirty files. */ static volatile int got_sigterm; /* Private function prototypes */ /*=============================*/ /* Parsing, checking and mounting. */ static void change_persona(dav_args *args); static void check_dirs(dav_args *args); static char * check_double_mounts(dav_args *args); static void check_fstab(const dav_args *args); static void check_permissions(dav_args *args); static int do_mount(unsigned long int mopts, void *mdata); static int is_mounted(void); static dav_args * parse_commandline(int argc, char *argv[]); static void parse_config(dav_args *args); static void parse_secrets(dav_args *args); static int save_pid(void); static void termination_handler(int signo); static void write_mtab_entry(const dav_args *args); /* Helper functions. */ static int arg_to_int(const char *arg, int base, const char *opt); static void cp_file(const char *src, const char *dest); static int debug_opts(const char *s); static int debug_opts_neon(const char *s); static void delete_args(dav_args *args); static void get_options(dav_args *args, char *option); static dav_args * new_args(void); static void log_dbg_config(dav_args *args); static int parse_line(char *line, int parmc, char *parmv[]); static void proxy_from_env(dav_args *args); static void read_config(dav_args *args, const char * filename, int system); static void read_no_proxy_list(dav_args *args); static void read_secrets(dav_args *args, const char *filename); static int split_uri(char **scheme, char **host, int *port,char **path, const char *uri); static void usage(void); static char * user_input(const char *prompt); /* Public functions */ /*==================*/ int main(int argc, char *argv[]) { setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), PACKAGE_STRING); dav_args *args = parse_commandline(argc, argv); if (geteuid() != 0) error(EXIT_FAILURE, errno, _("program is not setuid root")); if (seteuid(getuid()) != 0) error(EXIT_FAILURE, errno, _("can't change effective user id")); if (getuid() != 0) check_fstab(args); parse_config(args); check_dirs(args); check_permissions(args); parse_secrets(args); pidfile = check_double_mounts(args); change_persona(args); dav_init_webdav(args); dav_init_cache(args, mpoint); int dev = 0; dav_run_msgloop_fn run_msgloop = NULL; void *mdata = NULL; if (args->kernel_fs) kernel_fs = ne_strdup(args->kernel_fs); size_t buf_size = args->buf_size * 1024; int mounted = dav_init_kernel_interface(&dev, &run_msgloop, &mdata, &kernel_fs, &buf_size, url, mpoint, args); if (args->debug & DAV_DBG_CONFIG) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "kernel_fs: %s", kernel_fs); if (args->debug & DAV_DBG_CONFIG) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Fork into daemon mode"); pid_t childpid = fork(); if (childpid > 0) { if (args->debug & DAV_DBG_CONFIG) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Parent: parent pid: %i, child pid: %i", getpid(), childpid); if (!mounted) { if (args->debug & DAV_DBG_CONFIG) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Parent: mounting filesystem"); if (do_mount(args->mopts, mdata) != 0) { kill(childpid, SIGTERM); delete_args(args); exit(EXIT_FAILURE); } } if (args->debug & DAV_DBG_CONFIG) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Parent: writing mtab entry"); write_mtab_entry(args); if (args->debug & DAV_DBG_CONFIG) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Parent: leaving now"); delete_args(args); exit(EXIT_SUCCESS); } else if (childpid < 0) { delete_args(args); error(EXIT_FAILURE, errno, _("can't start daemon process")); } if (args->debug & DAV_DBG_CONFIG) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Set signal handler"); struct sigaction action; action.sa_handler = termination_handler; sigemptyset(&action.sa_mask); sigaddset(&action.sa_mask, SIGTERM); sigaddset(&action.sa_mask, SIGHUP); action.sa_flags = 0; sigaction(SIGTERM, &action, NULL); sigaction(SIGHUP, &action, NULL); int ret = 0; if (args->debug & DAV_DBG_CONFIG) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Releasing root privileges"); uid_t daemon_id = geteuid(); if (seteuid(0) != 0) error(EXIT_FAILURE, errno, _("can't change effective user id")); ret = setuid(daemon_id); if (ret) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("can't release root privileges")); kill(getppid(), SIGHUP); } time_t idle_time = args->delay_upload; if (!idle_time) idle_time = DAV_DELAY_UPLOAD; if (idle_time > args->lock_refresh / 2) idle_time = args->lock_refresh / 2; int debug = args->debug; delete_args(args); setsid(); if (!ret) { if (debug & DAV_DBG_CONFIG) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Releasing terminal"); close(STDIN_FILENO); close(STDOUT_FILENO); close(STDERR_FILENO); if (open("/dev/null", O_RDONLY) != 0 || open("/dev/null", O_WRONLY) != 1 || open("/dev/null", O_WRONLY) != 2) { ret = -1; syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("failed to release tty properly")); kill(getppid(), SIGHUP); } dav_set_no_terminal(); } if (!ret) { if (debug & DAV_DBG_CONFIG) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Writing pid file"); ret = save_pid(); if (ret) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("can't write pid file %s"), pidfile); kill(getppid(), SIGHUP); } } if (!ret) { if (debug & DAV_DBG_CONFIG) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Starting message loop"); run_msgloop(dev, mpoint, buf_size, idle_time, is_mounted, &keep_on_running, debug & DAV_DBG_KERNEL); } if (debug & DAV_DBG_CONFIG) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Closing"); dav_close_cache(&got_sigterm); dav_close_webdav(); if (is_mounted() && strcmp(kernel_fs, "coda") == 0) { char *prog = ne_concat("/bin/umount -il ", mpoint, NULL); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("unmounting %s"), mpoint); if (system(prog) != 0 && is_mounted()) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("unmounting failed")); } if (debug & DAV_DBG_CONFIG) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Removing %s", pidfile); remove(pidfile); if (debug & DAV_DBG_CONFIG) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Done."); return 0; } char * dav_user_input_hidden(const char *prompt) { printf(" %s ", prompt); struct termios old; if (tcgetattr(fileno(stdin), &old) != 0) return NULL; struct termios new = old; new.c_lflag &= ~ECHO; if (tcsetattr(fileno(stdin), TCSAFLUSH, &new) != 0) return NULL; char *line = NULL; size_t n = 0; ssize_t len = getline(&line, &n, stdin); if (tcsetattr(fileno(stdin), TCSAFLUSH, &old) != 0) return NULL; printf("\n"); if (len < 0) abort(); if (len > 0 && *(line + len - 1) == '\n') *(line + len - 1) = '\0'; return line; } /* Private functions */ /*===================*/ /* Changes the group id of the process permanently to dav_group. The effective user id of the process will be changed too, but the real user id still has to be changed permanently. */ static void change_persona(dav_args *args) { struct group *grp = getgrnam(args->dav_group); if (!grp) error(EXIT_FAILURE, errno, _("group %s does not exist"), args->dav_group); if (seteuid(0) != 0) error(EXIT_FAILURE, errno, _("can't change effective user id")); if (setgid(grp->gr_gid) != 0) error(EXIT_FAILURE, errno, _("can't change group id")); if (getuid() == 0) { struct passwd *pw = getpwnam(args->dav_user); if (!pw) error(EXIT_FAILURE, errno, _("user %s does not exist"), args->dav_user); if (seteuid(pw->pw_uid) != 0) error(EXIT_FAILURE, errno, _("can't change effective user id")); } else { if (seteuid(getuid()) != 0) error(EXIT_FAILURE, errno, _("can't change effective user id")); } if (args->debug & DAV_DBG_CONFIG) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "changing persona: euid %i, gid %i", geteuid(), getgid()); } /* Checks for the existence of necessary and usefull directories and files. - checks whether it can use the proc file system for information about mounted file systems, or has to use mtab - whether the directory to save pid files exists and has correct owner and permissions; if not it tries to create it and/or set owner and permissions - when invoked by non-root user: checks for configuration directory in the users homepage and creates missing directories and files - checks wether args->cache_dir is accessible. */ static void check_dirs(dav_args *args) { struct stat st; if (lstat(_PATH_MOUNTED, &st) != 0) error(EXIT_FAILURE, errno, _("can't access file %s"), _PATH_MOUNTED); int mtab_is_link = S_ISLNK(st.st_mode); if (stat(DAV_MOUNTS, &st) == 0) { mounts = DAV_MOUNTS; args->use_utab = mtab_is_link; } else { mounts = _PATH_MOUNTED; } if (args->debug & DAV_DBG_CONFIG) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "mounts in: %s", mounts); if (args->use_utab) { char *utab_dir = NULL; if (asprintf(&utab_dir,"%s/%s", DAV_LOCALSTATE_DIR, DAV_UTAB_DIR) < 0) abort(); if (stat(utab_dir, &st) != 0) { if (seteuid(0) != 0) error(EXIT_FAILURE, errno, _("can't change effective user id")); if (mkdir(utab_dir, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH) == 0) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " and %s/%s", utab_dir, DAV_UTAB); } else { error(0, errno, _("can't create directory %s"), utab_dir); } if (seteuid(getuid()) != 0) error(EXIT_FAILURE, errno, _("can't change effective user id")); } free(utab_dir); } if (seteuid(0) != 0) error(EXIT_FAILURE, errno, _("can't change effective user id")); if (stat(DAV_SYS_RUN, &st) != 0) { if (mkdir(DAV_SYS_RUN, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH | S_ISVTX) != 0) error(EXIT_FAILURE, errno, _("can't create directory %s"), DAV_SYS_RUN); } if (stat(DAV_SYS_RUN, &st) != 0) error(EXIT_FAILURE, errno, _("can't access directory %s"), DAV_SYS_RUN); if ((st.st_mode & (S_IRWXG | S_ISVTX)) != (S_IRWXG | S_ISVTX)) { if (chmod(DAV_SYS_RUN, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH | S_ISVTX) != 0) error(EXIT_FAILURE, errno, _("can't change mode of directory %s"), DAV_SYS_RUN); } struct group *grp = getgrnam(args->dav_group); if (!grp) error(EXIT_FAILURE, errno, _("group %s does not exist"), args->dav_group); if (st.st_gid != grp->gr_gid) { if (chown(DAV_SYS_RUN, 0, grp->gr_gid) != 0) error(EXIT_FAILURE, errno, _("can't change group of directory %s"), DAV_SYS_RUN); } if (seteuid(getuid()) != 0) error(EXIT_FAILURE, errno, _("can't change effective user id")); if (getuid() != 0) { char *path = NULL; struct passwd *pw = getpwuid(getuid()); if (pw && pw->pw_dir) path = ne_concat(pw->pw_dir, "/.", PACKAGE, NULL); if (path && stat(path, &st) != 0) mkdir(path, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); if (path && stat(path, &st) == 0) { char *dir = ne_concat(path, "/", DAV_CACHE, NULL); if (stat(dir, &st) != 0) mkdir(dir, S_IRWXU); free(dir); dir = ne_concat(path, "/", DAV_CERTS_DIR, NULL); if (stat(dir, &st) != 0) mkdir(dir, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); free(dir); dir = ne_concat(path, "/", DAV_CERTS_DIR, "/", DAV_CLICERTS_DIR, NULL); if (stat(dir, &st) != 0) mkdir(dir, S_IRWXU); free(dir); char *file_name = ne_concat(path, "/", DAV_CONFIG, NULL); if (stat(file_name, &st) != 0) { char *template = ne_concat(DAV_DATA_DIR, "/", DAV_CONFIG, NULL); cp_file(template, file_name); free(template); } free(file_name); file_name = ne_concat(path, "/", DAV_SECRETS, NULL); if (stat(file_name, &st) != 0) { char *template = ne_concat(DAV_DATA_DIR, "/", DAV_SECRETS, NULL); cp_file(template, file_name); chmod(file_name, S_IRUSR | S_IWUSR); free(template); } free(file_name); } free(path); } if (strcmp(args->cache_dir, args->sys_cache) == 0) { if (seteuid(0) != 0) error(EXIT_FAILURE, errno, _("can't change effective user id")); if (stat(args->sys_cache, &st) != 0) { if (mkdir(args->sys_cache, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) != 0) error(EXIT_FAILURE, errno, _("can't create directory %s"), args->sys_cache); } if (stat(args->sys_cache, &st) != 0) error(EXIT_FAILURE, errno, _("can't access directory %s"), args->sys_cache); if ((st.st_mode & S_IRWXG) != S_IRWXG) { if (chmod(args->sys_cache, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) != 0) error(EXIT_FAILURE, errno, _("can't change mode of directory %s"), args->sys_cache); } struct group *grp = getgrnam(args->dav_group); if (!grp) error(EXIT_FAILURE, errno, _("group %s does not exist"), args->dav_group); if (st.st_gid != grp->gr_gid) { if (chown(args->sys_cache, 0, grp->gr_gid) != 0) error(EXIT_FAILURE, errno, _("can't change group of directory %s"), args->sys_cache); } if (seteuid(getuid()) != 0) error(EXIT_FAILURE, errno, _("can't change effective user id")); } else { struct passwd *pw = getpwuid(getuid()); if (!pw) error(EXIT_FAILURE, errno, _("can't read user data base")); if (!pw->pw_name) error(EXIT_FAILURE, 0, _("can't read user data base")); if (stat(args->cache_dir, &st) != 0) { if (mkdir(args->cache_dir, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) != 0) error(EXIT_FAILURE, errno, _("can't create directory %s"), args->cache_dir); } if (stat(args->cache_dir, &st) != 0) error(EXIT_FAILURE, errno, _("can't access directory %s"), args->cache_dir); if ((st.st_uid != getuid() || (st.st_mode & S_IRWXU) != S_IRWXU) && (st.st_mode & S_IRWXO) != S_IRWXO) { if ((st.st_mode & S_IRWXG) != S_IRWXG) error(EXIT_FAILURE, errno, _("can't access directory %s"), args->cache_dir); struct group *grp = getgrgid(st.st_gid); if (!grp) error(EXIT_FAILURE, errno, _("can't read group data base")); char **members = grp->gr_mem; while (*members && strcmp(*members, pw->pw_name) != 0) members++; if (!*members) error(EXIT_FAILURE, 0, _("can't access directory %s"), args->cache_dir); } } } /* Checks whether url is already mounted on mpoint, creates the name of the pid file and checks whether it already exists. If one of these tests is positive, it prints an error message and terminates the program. Otherwise it returns the name of the pid file. return value : the name of the pid file. */ static char * check_double_mounts(dav_args *args) { FILE *mtab = setmntent(mounts, "r"); if (!mtab) error(EXIT_FAILURE, errno, _("can't open file %s"), mounts); struct mntent *mt = getmntent(mtab); while (mt) { if (strcmp(mpoint, mt->mnt_dir) == 0 && strcmp(url, mt->mnt_fsname) == 0) error(EXIT_FAILURE, 0, _("%s is already mounted on %s"), url, mpoint); mt = getmntent(mtab); } endmntent(mtab); char *m = mpoint; while (*m == '/') m++; char *mp = ne_strdup(m); m = strchr(mp, '/'); while (m) { *m = '-'; m = strchr(mp, '/'); } char *pidf = NULL; if (asprintf(&pidf, "%s/%s.pid", DAV_SYS_RUN, mp) < 0) abort(); free(mp); if (args->debug & DAV_DBG_CONFIG) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "PID file: %s", pidf); FILE *file = fopen(pidf, "r"); if (file) error(EXIT_FAILURE, 0, _("found PID file %s.\n" "Either %s is used by another process,\n" "or another mount process ended irregular"), pidf, mpoint); return pidf; } /* Checks fstab whether there is an entry for the mountpoint specified in args and compares the values in args with the values in fstab. If there is no such entry, or this entry does not allow user-mount, or the values differ, an error message is printed and the program terminates. */ static void check_fstab(const dav_args *args) { dav_args *n_args = new_args(); n_args->mopts = DAV_USER_MOPTS; FILE *fstab = setmntent(_PATH_MNTTAB, "r"); if (!fstab) error(EXIT_FAILURE, errno, _("can't open file %s"), _PATH_MNTTAB); struct mntent *ft = getmntent(fstab); while (ft) { if (ft->mnt_dir) { char *mp = canonicalize_file_name(ft->mnt_dir); if (mp) { if (strcmp(mp, mpoint) == 0) { free(mp); break; } free(mp); } } ft = getmntent(fstab); } if (!ft) error(EXIT_FAILURE, 0, _("no entry for %s found in %s"), mpoint, _PATH_MNTTAB); if (strcmp(url, ft->mnt_fsname) != 0) { error(EXIT_FAILURE, 0, _("different URL in %s"), _PATH_MNTTAB); } if (!ft->mnt_type || strcmp(DAV_FS_TYPE, ft->mnt_type) != 0) error(EXIT_FAILURE, 0, _("different file system type in %s"), _PATH_MNTTAB); if (ft->mnt_opts) get_options(n_args, ft->mnt_opts); endmntent(fstab); if (args->conf || n_args->conf) { if (!args->conf || !n_args->conf || strcmp(args->conf, n_args->conf) != 0) error(EXIT_FAILURE, 0, _("different config file in %s"), _PATH_MNTTAB); } if (args->cl_username || n_args->cl_username) { if (!args->cl_username || !n_args->cl_username || strcmp(args->cl_username, n_args->cl_username) != 0) error(EXIT_FAILURE, 0, _("different username in %s"), _PATH_MNTTAB); } if (!n_args->user && !n_args->users) error(EXIT_FAILURE, 0, _("neither option `user' nor option `users' set in %s"), _PATH_MNTTAB); if (args->mopts != n_args->mopts || args->grpid != n_args->grpid) error(EXIT_FAILURE, 0, _("different mount options in %s"), _PATH_MNTTAB); if (args->uid != n_args->uid) error(EXIT_FAILURE, 0, _("different uid in %s"), _PATH_MNTTAB); if (args->gid != n_args->gid) error(EXIT_FAILURE, 0, _("different gid in %s"), _PATH_MNTTAB); if (args->dir_mode != n_args->dir_mode) error(EXIT_FAILURE, 0, _("different dir_mode in %s"), _PATH_MNTTAB); if (args->file_mode != n_args->file_mode) error(EXIT_FAILURE, 0, _("different file_mode in %s"), _PATH_MNTTAB); delete_args(n_args); } /* The mounting user must be either root or meet the following conditions: - The uid must not differ from the option uid, if this option is used. - The user must belong to the group specified in option gid (if used). - The user must be member of group args->dav_group. If this conditions are not met or an error occurs, an error message is printed and exit(EXIT_FAILURE) is called. */ static void check_permissions(dav_args *args) { if (getuid() == 0) return; if (args->uid != getuid()) error(EXIT_FAILURE, 0, _("you can't set file owner different from your uid")); if (args->debug & DAV_DBG_CONFIG) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "uid ok"); if (getgid() != args->gid) { struct passwd *pw = getpwuid(getuid()); if (!pw) error(EXIT_FAILURE, errno, _("can't read user data base")); if (!pw->pw_name) error(EXIT_FAILURE, 0, _("can't read user data base")); struct group *grp = getgrgid(args->gid); if (!grp) error(EXIT_FAILURE, 0, _("can't read group data base")); char **members = grp->gr_mem; while (*members && strcmp(*members, pw->pw_name) != 0) members++; if (!*members) error(EXIT_FAILURE, 0, _("you must be member of the group of the file system")); } if (args->debug & DAV_DBG_CONFIG) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "gid ok"); struct passwd *pw; pw = getpwuid(getuid()); if (!pw) error(EXIT_FAILURE, errno, _("can't read user data base")); if (!pw->pw_name) error(EXIT_FAILURE, 0, _("can't read user data base")); struct group *grp = getgrnam(args->dav_group); if (!grp) error(EXIT_FAILURE, errno, _("group %s does not exist"), args->dav_group); if (pw->pw_gid != grp->gr_gid) { int ngroups = getgroups(0, NULL); gid_t *groups = NULL; if (ngroups > 0) { groups = (gid_t *) malloc(ngroups * sizeof(gid_t)); if (!groups) abort(); if (getgroups(ngroups, groups) < 0) error(EXIT_FAILURE, 0, _("can't read group data base")); } else { error(EXIT_FAILURE, 0, _("can't read group data base")); } int i; for (i = 0; i < ngroups; i++) { if (grp->gr_gid == groups[i]) break; } free(groups); if (i == ngroups) error(EXIT_FAILURE, 0, _("user %s must be member of group %s"), pw->pw_name, grp->gr_name); } if (args->debug & DAV_DBG_CONFIG) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "memeber of group %s", args->dav_group); } /* Calls the mount()-function to mount the file system. Uses private global variables url and mpoint as device and mount point, kernel_fs as file system type, mopts as mount options and mdata as mount data. return value : 0 on success, -1 if mount() fails. */ static int do_mount(unsigned long int mopts, void *mdata) { uid_t orig = geteuid(); if (seteuid(0) != 0) error(EXIT_FAILURE, errno, _("can't change effective user id")); int ret = mount(url, mpoint, kernel_fs, mopts, mdata); if (seteuid(orig) != 0) error(EXIT_FAILURE, errno, _("can't change effective user id")); if (ret) { error(0, errno, _("can't mount %s on %s"), url, mpoint); if (errno == ENODEV) error(0, 0, _("kernel does not know file system %s"), kernel_fs); if (errno == EBUSY) error(0, 0, _("mount point is busy")); return -1; } return 0; } /* Checks wether the file system is mounted. It uses information from the private global variables mounts (mtab-file), url (must be device in the mtab entry) and mpoint (mount point). return value : 0 - no matching entry in the mtab-file (not mounted) 1 - matching entry in the mtab-file (mounted) */ static int is_mounted(void) { int found = 0; FILE *mtab = setmntent(mounts, "r"); if (mtab) { struct mntent *mt = getmntent(mtab); while (mt && !found) { if (strcmp(mpoint, mt->mnt_dir) == 0 && strcmp(url, mt->mnt_fsname) == 0) found = 1; mt = getmntent(mtab); } } endmntent(mtab); return found; } /* Parses commandline arguments and options and stores them in args and the private global variables url and mpoint. For arguments and options please see the usage()-funktion. As soon as 'version' or 'help' is found, an appropriate message is printed and exit(EXIT_SUCCESS) is called. If it does not find exactly two non-option-arguments (url and mointpoint) it prints an error message and calls exit(EXIT_FAILURE). argc : the number of arguments. argv[] : array of argument strings. return value : args, containig the parsed options and arguments. The args structure and all strings are newly allocated. The calling function is responsible to free them. */ static dav_args * parse_commandline(int argc, char *argv[]) { dav_args *args = new_args(); size_t len = argc; int i; for (i = 0; i < argc; i++) len += strlen(argv[i]); args->cmdline = ne_malloc(len); char *p = args->cmdline; for (i = 0; i < argc - 1; i++) { strcpy(p, argv[i]); p += strlen(argv[i]); *p = ' '; p++; } strcpy(p, argv[argc - 1]); char *short_options = "vwVho:"; static const struct option options[] = { {"version", no_argument, NULL, 'V'}, {"help", no_argument, NULL, 'h'}, {"option", required_argument, NULL, 'o'}, {0, 0, 0, 0} }; int o; o = getopt_long(argc, argv, short_options, options, NULL); while (o != -1) { switch (o) { case 'V': printf("%s <%s>\n\n", PACKAGE_STRING, PACKAGE_BUGREPORT); printf(_("This is free software; see the source for copying " "conditions. There is NO\n" "warranty; not even for MERCHANTABILITY or FITNESS " "FOR A PARTICULAR PURPOSE.\n")); exit(EXIT_SUCCESS); case 'h': usage(); exit(EXIT_SUCCESS); case 'o': get_options(args, optarg); break; case 'v': case 'w': case '?': break; default: error(EXIT_FAILURE, 0, _("unknown error parsing arguments")); } o = getopt_long(argc, argv, short_options, options, NULL); } i = optind; switch (argc - i) { case 0: case 1: error(0, 0, _("missing argument")); usage(); exit(EXIT_FAILURE); case 2: if (*argv[i] == '\"' || *argv[i] == '\'') { url = ne_strndup(argv[i] + 1, strlen(argv[i]) -2); } else { url = ne_strdup(argv[i]); } i++; mpoint = canonicalize_file_name(argv[i]); if (!mpoint) error(EXIT_FAILURE, 0, _("can't evaluate path of mount point %s"), mpoint); break; default: error(0, 0, _("too many arguments")); usage(); exit(EXIT_FAILURE); } if (getuid() != 0 && *argv[i] != '/') { struct passwd *pw = getpwuid(getuid()); if (!pw || !pw->pw_dir) error(EXIT_FAILURE, 0, _("can't get home directory for uid %i"), getuid()); if (strstr(mpoint, pw->pw_dir) != mpoint) error(EXIT_FAILURE, 0, _("A relative mount point must lie " "within your home directory")); } if (!url) error(EXIT_FAILURE, 0, _("no WebDAV-server specified")); if (split_uri(&args->scheme, &args->host, &args->port, &args->path, url) != 0) error(EXIT_FAILURE, 0, _("invalid URL")); if (!args->port) args->port = ne_uri_defaultport(args->scheme); return args; } /* Reads and parses the configuration files and stores the values in args. The system wide configuration file is parsed first. If args->conf is given it will be parsed too and overwrites the values from the system wide configuration file. */ static void parse_config(dav_args *args) { read_config(args, DAV_SYS_CONF_DIR "/" DAV_CONFIG, 1); struct passwd *pw = getpwuid(getuid()); if (!pw || !pw->pw_dir) error(EXIT_FAILURE, 0, _("can't determine home directory")); if (args->conf) { if (*args->conf == '~') { int p = 1; if (*(args->conf + p) == '/') p++; char *f = ne_concat(pw->pw_dir, "/", args->conf + p, NULL); free(args->conf); args->conf = f; } read_config(args, args->conf, 0); } args->mopts |= DAV_MOPTS; args->dir_mode |= S_IFDIR; args->file_mode |= S_IFREG; struct stat st; if (args->trust_ca_cert && *args->trust_ca_cert == '~') { int p = 1; if (*(args->trust_ca_cert + p) == '/') p++; char *f = ne_concat(pw->pw_dir, "/", args->trust_ca_cert + p, NULL); free(args->trust_ca_cert); args->trust_ca_cert = f; } if (args->trust_ca_cert && *args->trust_ca_cert != '/' && getuid() != 0) { char *f = ne_concat(pw->pw_dir, "/.", PACKAGE, "/", DAV_CERTS_DIR, "/", args->trust_ca_cert, NULL); if (stat(f, &st) == 0) { free(args->trust_ca_cert); args->trust_ca_cert = f; } else { free(f); } } if (args->trust_ca_cert && *args->trust_ca_cert != '/') { char *f = ne_concat(DAV_SYS_CONF_DIR, "/", DAV_CERTS_DIR, "/", args->trust_ca_cert, NULL); free(args->trust_ca_cert); args->trust_ca_cert = f; } if (args->trust_server_cert && *args->trust_server_cert == '~') { int p = 1; if (*(args->trust_server_cert + p) == '/') p++; char *f = ne_concat(pw->pw_dir, "/", args->trust_server_cert + p, NULL); free(args->trust_server_cert); args->trust_server_cert = f; } if (args->trust_server_cert && *args->trust_server_cert != '/' && getuid() != 0) { char *f = ne_concat(pw->pw_dir, "/.", PACKAGE, "/", DAV_CERTS_DIR, "/", args->trust_server_cert, NULL); if (stat(f, &st) == 0) { free(args->trust_server_cert); args->trust_server_cert = f; } else { free(f); } } if (args->trust_server_cert && *args->trust_server_cert != '/') { char *f = ne_concat(DAV_SYS_CONF_DIR, "/", DAV_CERTS_DIR, "/", args->trust_server_cert, NULL); free(args->trust_server_cert); args->trust_server_cert = f; } if (args->secrets && *args->secrets == '~') { int p = 1; if (*(args->secrets + p) == '/') p++; char *f = ne_concat(pw->pw_dir, "/", args->secrets + p, NULL); free(args->secrets); args->secrets = f; } if (args->clicert && *args->clicert == '~') { int p = 1; if (*(args->clicert + p) == '/') p++; char *f = ne_concat(pw->pw_dir, "/", args->clicert + p, NULL); free(args->clicert); args->clicert = f; } if (args->clicert && *args->clicert != '/' && getuid() != 0) { char *f = ne_concat(pw->pw_dir, "/.", PACKAGE, "/", DAV_CERTS_DIR, "/", DAV_CLICERTS_DIR, "/", args->clicert, NULL); if (stat(f, &st) == 0) { free(args->clicert); args->clicert = f; } } if (args->clicert && *args->clicert != '/' && getuid() == 0) { char *f = ne_concat(DAV_SYS_CONF_DIR, "/", DAV_CERTS_DIR, "/", DAV_CLICERTS_DIR, "/", args->clicert, NULL); free(args->clicert); args->clicert = f; } if (args->clicert) { struct stat st; if (seteuid(0) != 0) error(EXIT_FAILURE, errno, _("can't change effective user id")); if (stat(args->clicert, &st) < 0) error(EXIT_FAILURE, 0, _("can't read client certificate %s"), args->clicert); if (seteuid(getuid()) != 0) error(EXIT_FAILURE, errno, _("can't change effective user id")); if (st.st_uid != getuid() && st.st_uid != 0) error(EXIT_FAILURE, 0, _("client certificate file %s has wrong owner"), args->clicert); if ((st.st_mode & (S_IXUSR | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX)) != 0) error(EXIT_FAILURE, 0, _("client certificate file %s has wrong permissions"), args->clicert); } if (getuid() == 0 && !args->p_host) { proxy_from_env(args); read_no_proxy_list(args); } if (!args->p_host) args->useproxy = 0; if (!args->cache_dir) { args->cache_dir = ne_strdup(args->sys_cache); } else if (*args->cache_dir == '~') { int p = 1; if (*(args->cache_dir + p) == '/') p++; char *f = ne_concat(pw->pw_dir, "/", args->cache_dir + p, NULL); free(args->cache_dir); args->cache_dir = f; } if (args->debug & DAV_DBG_CONFIG) log_dbg_config(args); } /* Reads the secrets file and asks the user interactivly for credentials if necessary. The user secrets file is parsed after the system wide secrets file, so it will have precedence. */ static void parse_secrets(dav_args *args) { if (seteuid(0) != 0) error(EXIT_FAILURE, errno, _("can't change effective user id")); read_secrets(args, DAV_SYS_CONF_DIR "/" DAV_SECRETS); if (seteuid(getuid()) != 0) error(EXIT_FAILURE, errno, _("can't change effective user id")); if (args->secrets) { read_secrets(args, args->secrets); } if (args->cl_username) { if (args->username) free(args->username); args->username = args->cl_username; args->cl_username = NULL; if (args->password) free(args->password); args->password = NULL; args->password = user_input(_("Password: ")); } if (args->askauth && args->useproxy && !args->p_user) { printf(_("Please enter the username to authenticate with proxy\n" "%s or hit enter for none.\n"), args->p_host); args->p_user = user_input(_("Username:")); } if (args->askauth && args->useproxy && args->p_user && !args->p_passwd) { printf(_("Please enter the password to authenticate user %s with proxy\n" "%s or hit enter for none.\n"), args->p_user, args->p_host); if (isatty(fileno(stdin))) { args->p_passwd = dav_user_input_hidden(_("Password: ")); } else { args->p_passwd = user_input(_("Password: ")); } if (args->p_passwd && strlen(args->p_passwd) == 0) { free(args->p_passwd); args->p_passwd = NULL; } } if (args->askauth && !args->username) { printf(_("Please enter the username to authenticate with server\n" "%s or hit enter for none.\n"), url); args->username = user_input(_("Username:")); } if (args->askauth && args->username && !args->password) { printf(_("Please enter the password to authenticate user %s with " "server\n%s or hit enter for none.\n"), args->username, url); if (isatty(fileno(stdin))) { args->password = dav_user_input_hidden(_("Password: ")); } else { args->password = user_input(_("Password: ")); } if (args->password && strlen(args->password) == 0) { free(args->password); args->password = NULL; } } if (args->debug & DAV_DBG_SECRETS) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Secrets:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " username: %s", args->username); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " cl_username: %s", args->cl_username); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " password: %s", args->password); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " p_user: %s", args->p_user); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " p_passwd: %s", args->p_passwd); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " clicert_pw: %s", args->clicert_pw); } } /* Saves the pid of the mount.davfs daemon in the pid-file. The name of the pid-file is taken from the private global variable pidfile. If an error occurs during opening of the pid-file, the function returns with -1. */ static int save_pid(void) { FILE *file = fopen(pidfile, "w"); if (!file) return -1; int ret = 0; if (fprintf(file, "%i\n", getpid()) <= 0) ret = -1; fclose(file); chmod(pidfile, S_IRWXU | S_IRGRP | S_IROTH); return ret; } /* Signal handler for the daemon process. Sets global variable keep_on_running to 0, so the message loop will stop and the daemon will terminate gracefully. */ static void termination_handler(int signo) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("pid %i, got signal %i"), getpid(), signo); keep_on_running = 0; got_sigterm = 1; } /* Adds an entry to _PATH_MOUNTED for the mounted file system. If _PATH_MOUNTED is a symbolic link to /proc/mounts it will write an entry into /var/run/mount/utab instead. If this fails a warning will be printed, but this will not stop mounting. */ static void write_mtab_entry(const dav_args *args) { struct mntent mntent; mntent.mnt_opts = NULL; char *utab_line = NULL; char *tab_file = NULL; char *lock_file = NULL; int privileged = (getuid() == 0); struct passwd *pw = getpwuid(getuid()); if (!pw && !privileged) { error(0, errno, _("Warning: can't read user data base. Mounting " "anyway, but there is no entry in mtab.")); return; } char *uid_name = pw->pw_name; if (args->use_utab) { if (asprintf(&utab_line, "SRC=%s TARGET=%s ROOT=/ " "OPTS=uid=%i,gid=%i%s%s%s,helper=%s\n", url, mpoint, args->uid, args->gid, (args->grpid) ? ",grpid" : "", (!privileged) ? ",user=" : "", (!privileged) ? uid_name : "", DAV_FS_TYPE) < 0) abort(); if (asprintf(&tab_file, "%s/%s/%s", DAV_LOCALSTATE_DIR, DAV_UTAB_DIR, DAV_UTAB) < 0) abort(); if (asprintf(&lock_file, "%s,lock", tab_file) < 0) abort(); } else { mntent.mnt_fsname = url; mntent.mnt_dir = mpoint; mntent.mnt_type = DAV_FS_TYPE; if (asprintf(&mntent.mnt_opts, "%s%s%s%s%s%s,uid=%i,gid=%i%s%s", (args->mopts & MS_RDONLY) ? "ro" : "rw", (args->mopts & MS_NOSUID) ? ",nosuid" : "", (args->mopts & MS_NOEXEC) ? ",noexec" : "", (args->mopts & MS_NODEV) ? ",nodev" : "", (args->grpid) ? ",grpid" : "", (args->netdev) ? ",_netdev" : "", args->uid, args->gid, (!privileged) ? ",user=" : "", (!privileged) ? uid_name : "") < 0) abort(); mntent. mnt_freq = 0; mntent. mnt_passno = 0; tab_file = ne_strdup(_PATH_MOUNTED); if (asprintf(&lock_file, "%s~", tab_file) < 0) abort(); } sigset_t oldset; sigemptyset(&oldset); sigset_t newset; sigfillset(&newset); sigprocmask(SIG_BLOCK, &newset, &oldset); uid_t orig = geteuid(); if (seteuid(0) != 0) error(EXIT_FAILURE, errno, _("can't change effective user id")); int ld = open(lock_file, O_RDONLY | O_CREAT, S_IWUSR | S_IRUSR | S_IRGRP | S_IROTH); if (!ld) error(EXIT_FAILURE, errno, _("can't create file %s"), lock_file); while (flock(ld, LOCK_EX) != 0) { if (errno == EAGAIN || errno == EINTR) continue; error(EXIT_FAILURE, errno, _("can't lock file %s"), lock_file); } FILE *tab = NULL; if (args->use_utab) { tab = fopen(tab_file, "a"); } else { tab = setmntent(tab_file, "a"); } int err = 0; if (tab) { if (args->use_utab) { if (fputs(utab_line, tab) == EOF) err = 1; fclose(tab); } else { if (addmntent(tab, &mntent) != 0) err = 1; endmntent(tab); } } if (!tab || err) error(0, 0, _("Warning: can't write entry into %s, but will mount " "the file system anyway"), tab_file); close(ld); remove(lock_file); if (seteuid(orig) != 0) error(EXIT_FAILURE, errno, _("can't change effective user id")); sigprocmask(SIG_SETMASK, &oldset, NULL); if (lock_file) free(lock_file); if (tab_file) free(tab_file); if (utab_line) free(utab_line); if (mntent.mnt_opts) free(mntent.mnt_opts); } /* Helper functions. */ /* Searches arg from the beginning for digits, valid in base, and converts them to an integer. If arg does not start with valid digits an error message is printed and exit(EXIT_FAILURE) is called. Otherwise the integer is returned. arg : string to be converted base : radix of the number; value between 2 and 36 opt : name of the option, arg belongs to. Used in the error message. return value: the value of the integer number in arg */ static int arg_to_int(const char *arg, int base, const char *opt) { char *tail = NULL; int n = strtol(arg, &tail, base); if (n < 0 || !tail) { if (base == 10) { error(EXIT_FAILURE, 0, _("option %s has invalid argument;" "it must be a decimal number"), opt); } else if (base == 8) { error(EXIT_FAILURE, 0, _("option %s has invalid argument;" "it must be an octal number"), opt); } else { error(EXIT_FAILURE, 0, _("option %s has invalid argument;" "it must be a number"), opt); } } return n; } /* Creates a copy of src with name dest. */ static void cp_file(const char *src, const char *dest) { FILE *in = fopen(src, "r"); if (!in) error(EXIT_FAILURE, errno, _("can't open file %s"), src); FILE *out = fopen(dest, "w"); if (!out) error(EXIT_FAILURE, errno, _("can't open file %s"), dest); size_t n = 0; char *line = NULL; int length = getline(&line, &n, in); while (length > 0) { if (fputs(line, out) == EOF) error(EXIT_FAILURE, errno, _("error writing to file %s"), dest); length = getline(&line, &n, in); } if (line) free(line); fclose(out); fclose(in); } /* Converts a debug option string s into numerical value. If s is not a valid debug option, it returns 0. */ static int debug_opts(const char *s) { if (strcmp(s, "config") == 0) return DAV_DBG_CONFIG; if (strcmp(s, "kernel") == 0) return DAV_DBG_KERNEL; if (strcmp(s, "cache") == 0) return DAV_DBG_CACHE; if (strcmp(s, "secrets") == 0) return DAV_DBG_SECRETS; if (strcmp(s, "most") == 0) return DAV_DBG_CONFIG | DAV_DBG_KERNEL | DAV_DBG_CACHE; return 0; } /* Converts a debug option string s into numerical value. If s is not a valid neon debug option, it returns 0. */ static int debug_opts_neon(const char *s) { if (strcmp(s, "http") == 0) return NE_DBG_HTTP | NE_DBG_SOCKET; if (strcmp(s, "xml") == 0) return NE_DBG_XML; if (strcmp(s, "httpauth") == 0) return NE_DBG_HTTPAUTH; if (strcmp(s, "locks") == 0) return NE_DBG_LOCKS; if (strcmp(s, "httpbody") == 0) return NE_DBG_HTTPBODY; if (strcmp(s, "ssl") == 0) return NE_DBG_SSL; if (strcmp(s, "secrets") == 0) return NE_DBG_HTTPPLAIN; if (strcmp(s, "most") == 0) return NE_DBG_SOCKET | NE_DBG_HTTP; return 0; } /* Frees all strings held by args and finally frees args. */ static void delete_args(dav_args *args) { if (args->cmdline) free(args->cmdline); if (args->dav_user) free(args->dav_user); if (args->dav_group) free(args->dav_group); if (args->conf) free(args->conf); if (args->kernel_fs) free(args->kernel_fs); if (args->scheme) free(args->scheme); if (args->host) free(args->host); if (args->path) free(args->path); if (args->trust_ca_cert) free(args->trust_ca_cert); if (args->trust_server_cert) free(args->trust_server_cert); if (args->secrets) free(args->secrets); if (args->username) { memset(args->username, '\0', strlen(args->username)); free(args->username); } if (args->cl_username) free(args->cl_username); if (args->password) { memset(args->password, '\0', strlen(args->password)); free(args->password); } if (args->clicert) free(args->clicert); if (args->clicert_pw) { memset(args->clicert_pw, '\0', strlen(args->clicert_pw)); free(args->clicert_pw); } if (args->p_host) free(args->p_host); if (args->p_user) { memset(args->p_user, '\0', strlen(args->p_user)); free(args->p_user); } if (args->p_passwd) { memset(args->p_passwd, '\0', strlen(args->p_passwd)); free(args->p_passwd); } if (args->lock_owner) free(args->lock_owner); if (args->s_charset) free(args->s_charset); if (args->header) free(args->header); if (args->sys_cache) free(args->sys_cache); if (args->cache_dir) free(args->cache_dir); if (args->backup_dir) free(args->backup_dir); free(args); } /* Parses the string option and stores the values in the appropriate fields of args. If an unknown option is found exit(EXIT_FAILURE) is called. All strings returned in args are newly allocated, and the calling function is responsible to free them. option : a comma separated list of options (like the options in fstab and in the -o option of the mount-programm). For known options see the declaration at the beginning of the the function definition. */ static void get_options(dav_args *args, char *option) { enum { CONF = 0, USERNAME, UID, GID, FILE_MODE, DIR_MODE, USER, NOUSER, USERS, NETDEV, NONETDEV, GRPID, NOGRPID, RW, RO, SUID, NOSUID, EXEC, NOEXEC, DEV, NODEV, ASYNC, AUTO, NOAUTO, COMMENT, NOFAIL, DEFAULTS, END }; char *suboptions[] = { [CONF] = "conf", [USERNAME] = "username", [UID] = "uid", [GID] = "gid", [FILE_MODE] = "file_mode", [DIR_MODE] = "dir_mode", [USER] = "user", [NOUSER] = "nouser", [USERS] = "users", [NETDEV] = "_netdev", [NONETDEV] = "no_netdev", [GRPID] = "grpid", [NOGRPID] = "nogrpid", [RW] = "rw", [RO] = "ro", [SUID] = "suid", [NOSUID] = "nosuid", [EXEC] = "exec", [NOEXEC] = "noexec", [DEV] = "dev", [NODEV] = "nodev", [ASYNC] = "async", [AUTO] = "auto", [NOAUTO] = "noauto", [COMMENT] = "comment", [NOFAIL] = "nofail", [DEFAULTS] = "defaults", [END] = NULL }; int so; char *argument = NULL; struct passwd *pwd; struct group *grp; while (*option != 0) { so = getsubopt(&option, suboptions, &argument); if ((!argument) && (so < USER)) error(EXIT_FAILURE, 0, _("option %s requires argument"), suboptions[so]); switch (so) { case CONF: if (args->conf) free(args->conf); args->conf = ne_strdup(argument); break; case USERNAME: if (args->cl_username) free(args->cl_username); args->cl_username = ne_strdup(argument); break; case UID: pwd = getpwnam(argument); if (!pwd) { args->uid = arg_to_int(argument, 10, suboptions[so]); } else { args->uid = pwd->pw_uid; } break; case GID: grp = getgrnam(argument); if (!grp) { args->gid = arg_to_int(argument, 10, suboptions[so]); } else { args->gid = grp->gr_gid; } break; case FILE_MODE: args->file_mode = arg_to_int(argument, 8, suboptions[so]); break; case DIR_MODE: args->dir_mode = arg_to_int(argument, 8, suboptions[so]); break; case USER: args->user = 1; break; case NOUSER: args->user = 0; break; case USERS: args->users = 1; break; case NETDEV: args->netdev = 1; break; case NONETDEV: args->netdev = 0; break; case GRPID: args->grpid = 1; break; case NOGRPID: args->grpid = 0; break; case RW: args->mopts &= ~MS_RDONLY; break; case RO: args->mopts |= MS_RDONLY; break; case SUID: args->mopts &= ~MS_NOSUID; break; case NOSUID: args->mopts |= MS_NOSUID; break; case EXEC: args->mopts &= ~MS_NOEXEC; break; case NOEXEC: args->mopts |= MS_NOEXEC; break; case DEV: args->mopts &= ~MS_NODEV; break; case NODEV: args->mopts |= MS_NODEV; break; case ASYNC: case AUTO: case NOAUTO: case COMMENT: case NOFAIL: case DEFAULTS: break; default: if (so == -1) { printf(_("Unknown option %s.\n"), argument); usage(); exit(EXIT_FAILURE); } } } } /* Allocates a new dav_args-structure and initializes it. All members are set to reasonable defaults. */ static dav_args * new_args(void) { char *user_dir = NULL; if (getuid() != 0) { struct passwd *pw = getpwuid(getuid()); if (!pw) error(EXIT_FAILURE, errno, _("can't read user data base")); if (!pw->pw_dir) error(EXIT_FAILURE, 0, _("can't read user data base")); user_dir = ne_concat(pw->pw_dir, "/.", PACKAGE, NULL); } dav_args *args = ne_malloc(sizeof(*args)); args->cmdline = NULL; args->dav_user = ne_strdup(DAV_USER); args->dav_group = ne_strdup(DAV_GROUP); if (getuid() != 0) { args->conf = ne_concat(user_dir, "/", DAV_CONFIG, NULL); } else { args->conf = NULL; } args->user = 0; args->users = 0; args->netdev = 1; args->grpid = 0; args->mopts = DAV_MOPTS; args->kernel_fs = NULL; args->buf_size = 0; args->uid = getuid(); args->gid = getgid(); args->dir_mode = DAV_DIR_MODE; args->file_mode = DAV_FILE_MODE; args->scheme = NULL; args->host = NULL; args->port = 0; args->path = NULL; args->trust_ca_cert = NULL; args->trust_server_cert = NULL; if (getuid() != 0) { args->secrets = ne_concat(user_dir, "/", DAV_SECRETS, NULL); } else { args->secrets = NULL; } args->username = NULL; args->cl_username = NULL; args->password = NULL; args->clicert = NULL; args->clicert_pw = NULL; args->p_host = NULL; args->p_port = DAV_DEFAULT_PROXY_PORT; args->p_user = NULL; args->p_passwd = NULL; args->useproxy = DAV_USE_PROXY; args->lock_owner = NULL; args->lock_timeout = DAV_LOCK_TIMEOUT; args->lock_refresh = DAV_LOCK_REFRESH; args->askauth = DAV_ASKAUTH; args->locks = DAV_LOCKS; args->expect100 = DAV_EXPECT100; args->if_match_bug = DAV_IF_MATCH_BUG; args->drop_weak_etags = DAV_DROP_WEAK_ETAGS; args->n_cookies = DAV_N_COOKIES; args->precheck = DAV_PRECHECK; args->ignore_dav_header = DAV_IGNORE_DAV_HEADER; args->use_compression = DAV_USE_COMPRESSION; args->min_propset = DAV_MIN_PROPSET; args->follow_redirect = DAV_FOLLOW_REDIRECT; args->connect_timeout = DAV_CONNECT_TIMEOUT; args->read_timeout = DAV_READ_TIMEOUT; args->retry = DAV_RETRY; args->max_retry = DAV_MAX_RETRY; args->max_upload_attempts = DAV_MAX_UPLOAD_ATTEMPTS; args->s_charset = NULL; args->header = NULL; args->sys_cache = ne_strdup(DAV_SYS_CACHE); if (getuid() != 0) { args->cache_dir = ne_concat(user_dir, "/", DAV_CACHE, NULL); } else { args->cache_dir = NULL; } args->backup_dir = ne_strdup(DAV_BACKUP_DIR); args->cache_size = DAV_CACHE_SIZE; args->table_size = DAV_TABLE_SIZE; args->dir_refresh = DAV_DIR_REFRESH; args->file_refresh = DAV_FILE_REFRESH; args->delay_upload = DAV_DELAY_UPLOAD; args->gui_optimize = DAV_GUI_OPTIMIZE; args->minimize_mem = DAV_MINIMIZE_MEM; args->debug = 0; args->neon_debug = 0; if (user_dir) free(user_dir); return args; } static void log_dbg_config(dav_args *args) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "%s", args->cmdline); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Configuration:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " url: %s", url); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " mount point: %s", mpoint); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " dav_user: %s", args->dav_user); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " dav_group: %s", args->dav_group); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " conf: %s", args->conf); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " user: %i", args->user); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " netdev: %i", args->netdev); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " grpid: %i", args->grpid); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " mopts: %#lx", args->mopts); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " kernel_fs: %s", args->kernel_fs); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " buf_size: %llu KiB", (unsigned long long) args->buf_size); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " uid: %i", args->uid); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " gid: %i", args->gid); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " dir_mode: %#o", args->dir_mode); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " file_mode: %#o", args->file_mode); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " scheme: %s", args->scheme); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " host: %s", args->host); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " port: %i", args->port); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " path: %s", args->path); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " trust_ca_cert: %s", args->trust_ca_cert); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " trust_server_cert: %s", args->trust_server_cert); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " secrets: %s", args->secrets); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " clicert: %s", args->clicert); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " p_host: %s", args->p_host); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " p_port: %i", args->p_port); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " useproxy: %i", args->useproxy); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " askauth: %i", args->askauth); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " locks: %i", args->locks); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " lock_owner: %s", args->lock_owner); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " lock_timeout: %li s", args->lock_timeout); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " lock_refresh: %li s", args->lock_refresh); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " expect100: %i", args->expect100); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " if_match_bug: %i", args->if_match_bug); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " drop_weak_etags: %i", args->drop_weak_etags); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " n_cookies: %i", args->n_cookies); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " precheck: %i", args->precheck); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " ignore_dav_header: %i", args->ignore_dav_header); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " use_compression: %i", args->use_compression); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " follow_redirect: %i", args->follow_redirect); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " connect_timeout: %li s", args->connect_timeout); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " read_timeout: %li s", args->read_timeout); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " retry: %li s", args->retry); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " max_retry: %li s", args->max_retry); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " s_charset: %s", args->s_charset); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " header: %s", args->header); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " sys_cache: %s", args->sys_cache); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " cache_dir: %s", args->cache_dir); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " backup_dir: %s", args->backup_dir); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " cache_size: %llu MiB", (unsigned long long) args->cache_size); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " table_size: %llu", (unsigned long long) args->table_size); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " dir_refresh: %li s", args->dir_refresh); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " file_refresh: %li s", args->file_refresh); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " delay_upload: %i", args->delay_upload); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " gui_optimize: %i", args->gui_optimize); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " minimize_mem: %i", args->minimize_mem); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " debug: %#x", args->debug); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " neon_debug: %#x", args->neon_debug); } /* Parses line for max. parmc white-space separated parameter tokens and returns them in parmv[]. The '#' character marks the beginning of a comment and the rest of the line is ignored. Parameters containing one of the characters ' ' (space), '\t' (tab), '\', '"' or '#' must be enclosed in double quotes '"' *or* this character has to be escaped by preceeding a '\'-character. Inside double quotes the '"'-character must be escaped. '\' may be escaped; it must be escaped if there is more than on '\'-character in succession. Whitespace characters other than ' ' and tab must only occur at the end of the line. line : the line to be parsed. It will be changed by this function. parmc : the max. number of parameters. It is an error, if more than parmc parameters are found parmv[] : the parameters found are returned in this array. It contains pointers into the rearranged line parameter. reurn value : the numer of parameters or -1 if an error occurs. */ static int parse_line(char *line, int parmc, char *parmv[]) { enum { SPACE, SPACE_EXP, PARM, PARM_ESC, PARM_QUO, PARM_QUO_ESC, ERROR, END }; int state = SPACE; int parm_no = 0; char *pos = line; char *p = line; parmv[0] = line; while (state != END) { switch (state) { case SPACE: if (*p == '\0' || *p == '#' || *p == '\f' || *p == '\n' || *p == '\r' || *p == '\v') { state = END; } else if (*p == '\"') { if (parm_no < parmc) { parmv[parm_no] = pos; state = PARM_QUO; } else { return -1; } } else if (*p == '\\') { if (parm_no < parmc) { parmv[parm_no] = pos; state = PARM_ESC; } else { return -1; } state = PARM_ESC; } else if (isspace(*p)) { ; } else { if (parm_no < parmc) { parmv[parm_no] = pos; *pos++ = *p; state = PARM; } else { return -1; } } break; case SPACE_EXP: if (*p == ' ' || *p == '\t') { state = SPACE; } else if (*p == '\0' || *p == '#' || *p == '\f' || *p == '\n' || *p == '\r' || *p == '\v') { state = END; } else { return -1; } break; case PARM: if (*p == '\"') { return -1; } else if (*p == '\\') { state = PARM_ESC; } else if (*p == ' ' || *p == '\t') { *pos++ = '\0'; parm_no++; state = SPACE; } else if (isspace(*p) || *p == '\0' || *p == '#') { *pos = '\0'; parm_no++; state = END; } else { *pos++ = *p; } break; case PARM_ESC: if (*p == '\"' || *p == '\\' || *p == '#' || *p == ' ' || *p == '\t') { *pos++ = *p; state = PARM; } else { return -1; } break; case PARM_QUO: if (*p == '\\') { state = PARM_QUO_ESC; } else if (*p == '\"') { *pos++ = '\0'; parm_no++; state = SPACE_EXP; } else if (*p == '\0' || *p == '\f' || *p == '\n' || *p == '\r' || *p == '\v') { return -1; } else { *pos++ = *p; } break; case PARM_QUO_ESC: if (*p == '\"' || *p == '\\') { *pos++ = *p; state = PARM_QUO; } else if (*p == '\0' || *p == '\f' || *p == '\n' || *p == '\r' || *p == '\v') { return -1; } else { *pos++ = '\\'; *pos++ = *p; state = PARM_QUO; } break; } p++; } int i; for (i = parm_no; i < parmc; i++) parmv[i] = NULL; return parm_no; } /* Checks for a matching xxx_proxy environment variable, and if found stores values in args->p_host and ars->p_port. */ static void proxy_from_env(dav_args *args) { const char *env = NULL; if (args->scheme && strcmp(args->scheme, "https") == 0) env = getenv("https_proxy"); if (!env) env = getenv("http_proxy"); if (!env) env = getenv("all_proxy"); if (!env) return; char *scheme = NULL; char *host = NULL; int port = 0; split_uri(&scheme, &host, &port, NULL, env); if (scheme && strcmp(scheme, "http") == 0 && host) { if (args->p_host) free(args->p_host); args->p_host = host; host = NULL; if (port) args->p_port = port; } if (scheme) free(scheme); if (host) free(host); } /* Reads the configuration file filename and stores the values in args. filename : name of the configuration file. system : boolean value. 1 means it is the system wide configuration file. Some parameters are allowed only in the system wide configuration file, some only in the user configuration file. */ static void read_config(dav_args *args, const char * filename, int system) { FILE *file = fopen(filename, "r"); if (!file) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("opening %s failed"), filename); return; } size_t n = 0; char *line = NULL; int length = getline(&line, &n, file); int lineno = 1; int applies = 1; while (length > 0) { int parmc = 3; char *parmv[parmc]; int count; count = parse_line(line, parmc, parmv); if (count == 1) { if (*parmv[0] != '[' || *(parmv[0] + strlen(parmv[0]) - 1) != ']') error_at_line(EXIT_FAILURE, 0, filename, lineno, _("malformed line")); *(parmv[0] + strlen(parmv[0]) - 1) = '\0'; char *mp = canonicalize_file_name(parmv[0] + 1); if (mp) { applies = (strcmp(mp, mpoint) == 0); free(mp); } } else if (applies && count == 2) { if (system && strcmp(parmv[0], "dav_user") == 0) { if (args->dav_user) free(args->dav_user); args->dav_user = ne_strdup(parmv[1]); } else if (system && strcmp(parmv[0], "dav_group") == 0) { if (args->dav_group) free(args->dav_group); args->dav_group = ne_strdup(parmv[1]); } else if (strcmp(parmv[0], "kernel_fs") == 0) { if (args->kernel_fs) free(args->kernel_fs); args->kernel_fs = ne_strdup(parmv[1]); } else if (strcmp(parmv[0], "buf_size") == 0) { args->buf_size = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "trust_ca_cert") == 0 || strcmp(parmv[0], "servercert") == 0) { if (args->trust_ca_cert) free(args->trust_ca_cert); args->trust_ca_cert = ne_strdup(parmv[1]); } else if (strcmp(parmv[0], "trust_server_cert") == 0) { if (args->trust_server_cert) free(args->trust_server_cert); args->trust_server_cert = ne_strdup(parmv[1]); } else if (!system && strcmp(parmv[0], "secrets") == 0) { if (args->secrets) free(args->secrets); args->secrets = ne_strdup(parmv[1]); } else if (strcmp(parmv[0], "clientcert") == 0) { if (args->clicert) free(args->clicert); args->clicert = ne_strdup(parmv[1]); } else if (system && strcmp(parmv[0], "proxy") == 0) { if (split_uri(NULL, &args->p_host, &args->p_port, NULL, parmv[1]) != 0) error_at_line(EXIT_FAILURE, 0, filename, lineno, _("malformed line")); } else if (system && strcmp(parmv[0], "use_proxy") == 0) { args->useproxy = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "ask_auth") == 0) { args->askauth = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "use_locks") == 0) { args->locks = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "lock_owner") == 0) { if (args->lock_owner) free(args->lock_owner); args->lock_owner = ne_strdup(parmv[1]); } else if (strcmp(parmv[0], "lock_timeout") == 0) { args->lock_timeout = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "lock_refresh") == 0) { args->lock_refresh = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "use_expect100") == 0) { args->expect100 = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "if_match_bug") == 0) { args->if_match_bug = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "drop_weak_etags") == 0) { args->drop_weak_etags = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "n_cookies") == 0) { args->n_cookies = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "precheck") == 0) { args->precheck = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "ignore_dav_header") == 0) { args->ignore_dav_header = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "use_compression") == 0) { args->use_compression = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "min_propset") == 0) { args->min_propset = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "follow_redirect") == 0) { args->follow_redirect = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "connect_timeout") == 0) { args->connect_timeout = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "read_timeout") == 0) { args->read_timeout = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "retry") == 0) { args->retry = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "max_retry") == 0) { args->max_retry = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "max_upload_attempts") == 0) { args->max_upload_attempts = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "server_charset") == 0) { if (args->s_charset) free(args->s_charset); args->s_charset = ne_strdup(parmv[1]); } else if (system && strcmp(parmv[0], "cache_dir") == 0) { if (args->sys_cache) free(args->sys_cache); args->sys_cache = ne_strdup(parmv[1]); } else if (!system && strcmp(parmv[0], "cache_dir") == 0) { if (args->cache_dir != NULL) free(args->cache_dir); args->cache_dir = ne_strdup(parmv[1]); } else if (strcmp(parmv[0], "backup_dir") == 0) { if (args->backup_dir) free(args->backup_dir); args->backup_dir = ne_strdup(parmv[1]); } else if (strcmp(parmv[0], "cache_size") == 0) { args->cache_size = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "table_size") == 0) { args->table_size = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "dir_refresh") == 0) { args->dir_refresh = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "file_refresh") == 0) { args->file_refresh = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "delay_upload") == 0) { args->delay_upload = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "gui_optimize") == 0) { args->gui_optimize = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "minimize_mem") == 0) { args->minimize_mem = arg_to_int(parmv[1], 10, parmv[0]); } else if (strcmp(parmv[0], "debug") == 0) { args->debug |= debug_opts(parmv[1]); args->neon_debug |= debug_opts_neon(parmv[1]); } else { error_at_line(EXIT_FAILURE, 0, filename, lineno, _("unknown option")); } } else if (applies && count == 3) { if (strcmp(parmv[0], "add_header") == 0) { char *tmp = args->header; args->header = ne_concat(parmv[1], ": ", parmv[2], "\r\n", tmp, NULL); if (tmp) free(tmp); } else { error_at_line(EXIT_FAILURE, 0, filename, lineno, _("unknown option")); } } else if (count < 0 || count > 3) { error_at_line(EXIT_FAILURE, 0, filename, lineno, _("malformed line")); } length = getline(&line, &n, file); lineno++; } if (line) free(line); fclose(file); } /* Reads environment variable no_proxy. no_proxy must be a comma separated list of domain names. If no_proxy is "*" or args->p_host matches any of the entries in the no_proxy-list, args->p_host is removed. */ static void read_no_proxy_list(dav_args *args) { if (!args->p_host || !args->host) return; const char *env = getenv("no_proxy"); if (!env) return; if (strcmp(env,"*") == 0) { free(args->p_host); args->p_host = NULL; return; } char *noproxy_list = ne_strdup(env); char *np = strtok(noproxy_list, ", "); while (np && args->p_host) { char *host = NULL; if (strchr(np, ':')) { if (asprintf(&host, "%s:%d", args->host, args->port) < 0) abort(); } else { host = strdup(args->host); } if (*np == '.') { char *substr = strcasestr(host, np); if (substr && *(substr + strlen(np)) == '\0') { free(args->p_host); args->p_host = NULL; } } else { if (strcasecmp(host, np) == 0) { free(args->p_host); args->p_host = NULL; } } free(host); np = strtok(NULL, ", "); } free(noproxy_list); } /* Searches the file filename for credentials for server url and for the proxy args->p_host and stores them in args. */ static void read_secrets(dav_args *args, const char *filename) { struct stat st; if (stat(filename, &st) < 0) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("opening %s failed"), filename); return; } if (st.st_uid != geteuid()) error(EXIT_FAILURE, 0, _("file %s has wrong owner"), filename); if ((st.st_mode & (S_IXUSR | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX)) != 0) error(EXIT_FAILURE, 0, _("file %s has wrong permissions"), filename); FILE *file = fopen(filename, "r"); if (!file) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("opening %s failed"), filename); return; } size_t n = 0; char *line = NULL; int length = getline(&line, &n, file); int lineno = 1; while (length > 0) { int parmc = 3; char *parmv[parmc]; int count; count = parse_line(line, parmc, parmv); if (count != 0 && count != 3 && count != 2) error_at_line(EXIT_FAILURE, 0, filename, lineno, _("malformed line")); if (count == 2 || count == 3) { char *scheme = NULL; char *host = NULL; int port = 0; char *path = 0; split_uri(&scheme, &host, &port, &path, parmv[0]); int p_port = port; if (scheme && !port) port = ne_uri_defaultport(scheme); char *mp = canonicalize_file_name(parmv[0]); char *ccert = NULL; if (args->clicert) { ccert = strrchr(args->clicert, '/'); if (ccert && *(ccert + 1) == '\0') ccert = NULL; if (ccert) ccert++; } if ((mp && strcmp(mp, mpoint) == 0) || (scheme && args->scheme && strcmp(scheme, args->scheme) == 0 && host && args->host && strcmp(host, args->host) == 0 && port == args->port && path && args->path && strcmp(path, args->path) == 0)) { if (args->username) { memset(args->username, '\0', strlen(args->username)); free(args->username); } if (args->password) { memset(args->password, '\0', strlen(args->password)); free(args->password); } args->username = ne_strdup(parmv[1]); if (count == 3) args->password = ne_strdup(parmv[2]); } else if (strcmp(parmv[0], "proxy") == 0 || (host && args->p_host && strcmp(host, args->p_host) == 0 && (!p_port || p_port == args->p_port))) { if (args->p_user) { memset(args->p_user, '\0', strlen(args->p_user)); free(args->p_user); } if (args->p_passwd) { memset(args->p_passwd, '\0', strlen(args->p_passwd)); free(args->p_passwd); } args->p_user = ne_strdup(parmv[1]); if (count == 3) args->p_passwd = ne_strdup(parmv[2]); } else if (args->clicert && (strcmp(parmv[0], args->clicert) == 0 || strcmp(parmv[0], ccert) == 0)) { if (count != 2) error_at_line(EXIT_FAILURE, 0, filename, lineno, _("malformed line")); if (args->clicert_pw) { memset(args->clicert_pw, '\0', strlen(args->clicert_pw)); free(args->clicert_pw); } args->clicert_pw = ne_strdup(parmv[1]); } if (scheme) free(scheme); if (host) free(host); if (path) free(path); if (mp) free(mp); } memset(line, '\0', strlen(line)); length = getline(&line, &n, file); lineno++; } if (line) { memset(line, '\0', strlen(line)); free(line); } fclose(file); } /* Splits an uri and returns the components. The uri must contain a host, the other components are optional. It must not contain userinfo. It shall not contain a query or fragment component; they would be treated as part of path. The path component must *not* be %-encoded. scheme, if present in uri, must be either http or https. If host is a IPv6 address, it must be enclosed in square brackets. The pointers to the components may be NULL. If they point to a non-NULL string, it is freed and then replaced by a newly allocated string. If no scheme is foud the default sheme "http" is returned. If no path is found "/" is returned as path. path will always end with "/". There is *no* default value returned for port. return value : 0 on success, -1 otherwise. */ static int split_uri(char **scheme, char **host, int *port,char **path, const char *uri) { if (!uri || !*uri) return -1; const char *sch = NULL; int po = 0; const char *ho = strstr(uri, "://"); if (ho) { if ((ho - uri) == 4 && strcasestr(uri, "http") == uri) { sch = "http"; } else if ((ho - uri) == 5 && strcasestr(uri, "https") == uri) { sch = "https"; } else { return -1; } ho += 3; } else { ho = uri; } if (!*ho) return -1; const char *pa = strchrnul(ho, '/'); if (pa == ho) return -1; const char *end = strchr(ho, '@'); if (end && end < pa) return -1; if (*ho == '[') { end = strchr(ho, ']'); if (!end || end >= pa) return -1; end++; } else { end = strchr(ho, ':'); if (!end) end = pa; } if (end < pa) { if (end == ho || end == (pa - 1) || *end != ':') return -1; char *tail = NULL; po = strtol(end + 1, &tail, 10); if (po <= 0 || tail != pa) return -1; } if (scheme) { if (*scheme) free(*scheme); if (sch) { *scheme = strdup(sch); } else { *scheme = strdup("http"); } if (!*scheme) abort(); } if (port && po) *port = po; if (host) { if (*host) free(*host); *host = malloc(end - ho + 1); if (!*host) abort(); int i; for (i = 0; i < (end - ho); i++) { if (*ho == '[') { *(*host + i) = islower(*(ho + i)) ? toupper(*(ho + i)) : *(ho + i); } else { *(*host + i) = isupper(*(ho + i)) ? tolower(*(ho + i)) : *(ho + i); } } *(*host + i) = '\0'; } if (path) { if (*path) free(*path); if (!*pa) { *path = strdup("/"); } else if (*(pa + strlen(pa) - 1) == '/') { *path = strdup(pa); } else { if (asprintf(path, "%s/", pa) < 1) abort(); } if (!*path) abort(); } return 0; } /* Prints version und help text. */ static void usage(void) { printf(_("Usage:\n" " %s -V,--version : print version string\n" " %s -h,--help : print this message\n\n"), PROGRAM_NAME, PROGRAM_NAME); printf(_("To mount a WebDAV-resource don't call %s directly, but use\n" "`mount' instead.\n"), PROGRAM_NAME); printf(_(" mount : or\n" " mount : mount the WebDAV-resource as specified in\n" " /etc/fstab.\n")); printf(_(" mount -t davfs [-o options]\n" " : mount the WebDAV-resource \n" " on mountpoint . Only root\n" " is allowed to do this. options is a\n" " comma separated list of options.\n\n")); printf(_("Recognised options:\n" " conf= : absolute path of user configuration file\n" " uid= : owner of the filesystem (username or numeric id)\n" " gid= : group of the filesystem (group name or numeric id)\n" " file_mode= : default file mode (octal)\n" " dir_mode= : default directory mode (octal)\n")); printf(_(" ro : mount read-only\n" " rw : mount read-write\n" " [no]exec : (don't) allow execution of binaries\n" " [no]suid : (don't) allow suid and sgid bits to take effect\n" " [no]grpid : new files (don't) get the group id of the directory\n" " in which they are created.\n" " [no]_netdev : (no) network connection needed\n")); } /* Prints prompt to stdout and reads a line from stdin. A trailing newline is removed. return value : the user input. */ static char * user_input(const char *prompt) { printf(" %s ", prompt); char *line = NULL; size_t n = 0; ssize_t len = getline(&line, &n, stdin); if (len < 0) abort(); if (len > 0 && *(line + len - 1) == '\n') *(line + len - 1) = '\0'; return line; } davfs2-1.5.5/src/webdav.h0000644000175000017500000002655212460776603012065 00000000000000/* webdav.h: send requests to the WebDAV server. Copyright (C) 2006, 2007, 2008, 2009 Werner Baumann This file is part of davfs2. davfs2 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. davfs2 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 davfs2; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef DAV_WEBDAV_H #define DAV_WEBDAV_H /* Data Types */ /*============*/ /* This structure holds the properties retrieved from the server. Usually a linked list of these is returned by dav_get_collection(). Unused pointers should be set to NULL, integer types to 0. */ typedef struct dav_props dav_props; struct dav_props { char *path; /* The unescaped path of the resource. */ char *name; /* The name of the file or directory. Only the last component (no path), no slashes. */ char *etag; /* The etag string, including quotation characters, but without the mark for weak etags. */ off_t size; /* File size in bytes (regular files only). */ time_t mtime; /* Date of last modification. */ int is_dir; /* Boolean; 1 if a directory. */ int is_exec; /* -1 if not specified; 1 is executeable; 0 not executeable. */ dav_props *next; /* Next in the list. */ }; /* Function prototypes */ /*=====================*/ /* Creates and initializes a neon_session, using configuration information given as parameters, and checks the WebDAV class of the server. If the server does not support class 2, locking is disabled. It must only be initialized once, as it depends on global variables. If an error occurs, the program is terminated. paramters: if not self explaining, please see mount_davfs.h, struct args. */ void dav_init_webdav(const dav_args* args); /* Does an OPTIONS request to check the server capabilities. In case of success it will set the global variable initialized. If the server does not support locks, it will remove the lockstore and set locks to NULL. path : Path to the root collection. return value : 0 on success or an apropriate error code. */ int dav_init_connection(const char *path); /* Releases all locks (if possible) and closes the session. Does not free memory held by the session. */ void dav_close_webdav(void); /* Converts the character encoding of s from and to the local encoding. Converter handles are taken from global variables from_utf_8, to_utf_8, from_server_enc and to_server_enc. If no conversion is necessary, it just returns a copy of s. name : string to be converted. return value : the converted string, newly allocated. */ char * dav_conv_from_utf_8(const char *s); char * dav_conv_to_utf_8(const char *s); char * dav_conv_from_server_enc(const char *s); char * dav_conv_to_server_enc(const char *s); /* Deletes file path on the server. On success locks for this file are removed from the lock store. path : Absolute path of the file. expire : If not 0, the resource is assumed to be locked and the lock will be removed after successful delete. return value : 0 on success; an appropriate file error code otherwise. */ int dav_delete(const char *path, time_t *expire); /* Deletes collection path on the server. path : Absolute path of the collection. return value : 0 on success; an appropriate file error code otherwise. */ int dav_delete_dir(const char *path); /* Frees any resources held by props and finally frees props. */ void dav_delete_props(dav_props *props); /* Retrieves properties for the directory named by path and its direct childs (depth 1) from the server. The properties are returned as a linked list of dav_props. If successfull, this list contains at least one entry (the directory itself; its name is the empty string). The calling function is responsible for freeing the list and all the strings included. path : The absolute path of the directory with trailing slash. *props : Will point to the list of properties on return. NULL in case of an error. return value : 0 on success; an appropriate file error code otherwise. */ int dav_get_collection(const char *path, dav_props **props); /* Fetches file path from the server, stores it in cache_path and updates size, etag and mtime. If etag and/or mtime are supplied, a conditional GET will be performed. If the file has not been modified on the server, size, etag, mtime and mime will not be changed. If the GET request fails none of size, etag and mtime are changed. cache_path : Name of the cache file to store the file in. path : Absolute path of the file on the server. size : Points to the size of the cached file and will be updated if a new version of the file is retrieved. etag : Points to the ETag string of the cached version. If a new version of the file is retrieved this will be replaced by the new ETag value. May be NULL or point to NULL. mtime : Points to the Last-Modified value of the cached version. Will be updated if a new version of the file is retrieved. May be NULL. modified : Points to a flag that will be set 1 if the file cache_path has been replaced by a new version. May be NULL. return value : 0 on success; an appropriate file error code otherwise. Not-Modified counts as success. */ int dav_get_file(const char *path, const char *cache_path, off_t *size, char **etag, time_t *mtime, int *modified); /* Returns the error string from the last WebDAV request. Note: This will not be usefull in any case, because the last function called may have done more then one request (e.g. an additional lock discover. But it is usefull for dav_get_collection(). */ const char * dav_get_webdav_error(void); /* Tests for the existence of file path and uptdates etag, mtime and length. In case of an error etag and mtime are not changed. If the server does not send ETag or Last-Modified the corresponding value will not be changed. path : absolute path of the file on the server. etag : Points to the Etag; will be updated on success. May be NULL. length: Points to length; will be updated on success. May be NULL. mime : Points to mime_type; will be updated on success. May be NULL. return value : 0 if the file exists; an appropriate file error code otherwise. */ int dav_head(const char *path, char **etag, time_t *mtime, off_t *length); /* Locks the file path on the server with an excluse write lock and updates expire and exists. If a lock for path allready exists it will be refreshed. On success expire will be updated to the time when the lock expires. If the file does not yet exist and server creates a new file (as opposed to creating a locked-null-resource) exists will be set to 1. If the file is already locked, but not by this instance of davfs2, it will try if the lock is from the same user using davfs2, and if so, to use this lock. If it can't get a lock it will return an appropriate error code and set expire to 0. If the session is initialized with the nolocks option, it does nothing, but allways returns success and sets expire to 0. path : absolute path of the file on the server. expire : Points to the time when the lock expires. 0 if not locked. Will be updated. exists : Indicates whether the file exists on the server. If the server responds with "201 CREATED", it will be set to 1. return value : 0 on success; an appropriate file error code otherwise. */ int dav_lock(const char *path, time_t *expire, int *exists); /* Refreshes the lock for file path and updates expire. If no lock can be found for path expire is set to 0. If it can't refresh the lock it will do nothing. path : Absolute path of the file on the server. expire : The time when the lock expires, will be updated. */ void dav_lock_refresh(const char *path, time_t *expire); /* Creates a new collection on the server. path : Absolute path of the new collection on the server. return value : 0 on success; an appropriate file error code otherwise. */ int dav_make_collection(const char *path); /* Moves resource src to the new name/location dst. src : Absolute path of the resource on the server. dst : New absolute path of the resource on the server. return value : 0 on success; an appropriate file error code otherwise. */ int dav_move(const char *src, const char *dst); /* Stores the contents of file cache_path on the server location path and updates the value of exists, etag and mtime. Before uploading the file it tests whether the file on the server has been changed (compared to the values of exists, etag and mtime). If it has been changed the file will *not* be uploaded and an error returned instead. Sometimes a lock may be discovered during dav_put(). In this case expire will be updated. path : Absolute path of the file on the server. cache_path : Name of the local file to be stored on the server. exists : Indicates whether the file exists on the server. Used to check for changes on the server. If the upload is successful it will be set to 1. etag : The value of ETag used to check for changes on the server. Updated on success. May be NULL. mime : The value of mime_type. Updated on successMay be NULL. If a mime_type is set, the Content-Type header will be sent. execute : if 1 set execute property, else no change of execute property. return value : 0 on success; an appropriate file error code otherwise. */ int dav_put(const char *path, const char *cache_path, int *exists, time_t *expire, char **etag, time_t *mtime, int execute); /* Makes a PROPFIND request for path to get quota information (RFC 4331) and places them in available and used. If quota information is not available, an error is returned and available and used are not changed. */ int dav_quota(const char *path, uint64_t *available, uint64_t *used); /* Sets or resets the execute property of file path. path : Absolute path of the file on the server. set : boolean value; 0 reset execute property; 1 set execute property. */ int dav_set_execute(const char *path, int set); /* Tells webdav that no more terminal is available, so errors can only * be logged. Before this function is invoced webdav tries to * communicate with the user when problems occur. */ void dav_set_no_terminal(void); /* Releases the lock on file path on the serverand sets expire to 0. path : Absolute path of the file on the server. return value : 0 if no error occured; an appropriate file error code otherwise. */ int dav_unlock(const char *path, time_t *expire); #endif /* DAV_WEBDAV_H */ davfs2-1.5.5/src/cache.c0000644000175000017500000031677313420134100011633 00000000000000/* cache.c: directory and file cache. Copyright (C) 2006, 2007, 2008, 2009, 2014 Werner Baumann This file is part of davfs2. davfs2 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. davfs2 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 davfs2; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "config.h" #ifdef HAVE_DIRENT_H #include #endif #include #include #ifdef HAVE_FCNTL_H #include #endif #include #ifdef HAVE_LIBINTL_H #include #endif #include #ifdef HAVE_STDINT_H #include #endif #include #ifdef HAVE_STDLIB_H #include #endif #include #ifdef HAVE_SYSLOG_H #include #endif #include #ifdef HAVE_UNISTD_H #include #endif #ifdef HAVE_UTIME_H #include #endif #ifdef HAVE_SYS_STAT_H #include #endif #ifdef HAVE_SYS_TYPES_H #include #endif #include #include #include #include #include "defaults.h" #include "mount_davfs.h" #include "webdav.h" #include "cache.h" #ifdef ENABLE_NLS #define _(String) gettext(String) #else #define _(String) String #endif /* Private constants */ /*===================*/ /* Constants describing different types of XML elements and attributes in cache index file. */ enum { ROOT = 1, BACKUP, DDIR, REG, PATH, NAME, CACHE_PATH, SIZE, MODE, UID, GID, ATIME, MTIME, CTIME, SMTIME, ETAG, LOCK_EXPIRE, DIRTY, REMOTE_EXISTS, END }; static const char* const type[] = { [ROOT] = "root", [BACKUP] = "backup", [DDIR] = "dir", [REG] = "reg", [PATH] = "path", [NAME] = "name", [CACHE_PATH] = "cache_path", [SIZE] = "size", [MODE] = "mode", [UID] = "uid", [GID] = "gid", [ATIME] = "atime", [MTIME] = "mtime", [CTIME] = "ctime", [SMTIME] = "smtime", [ETAG] = "etag", [LOCK_EXPIRE] = "lock_expire", [DIRTY] = "dirty", [REMOTE_EXISTS] = "remote_exists", [END] = NULL }; /* Private global variables */ /*==========================*/ /* File system statistics. */ static dav_stat *fs_stat; /* Root node of the directory cache. */ static dav_node *root; /* Directory for local buckups. */ static dav_node *backup; /* A hash table to store the nodes. The hash is computed from the pointer to the node, which is also the node number. */ static dav_node **table; /* Size of the hash table. */ static size_t table_size; /* Number of files in list changed. */ static int nchanged; /* List of nodes, that have been changed and the changes must be saved back to the server. */ static dav_node_list_item *changed; /* How long results of PROPFIND for directories are considered valid. */ static time_t dir_refresh; /* Wait that many seconds from last file access before doing a new GET If-Modiefied request. */ static time_t file_refresh; /* Upload file that many seconds after closing. */ static time_t delay_upload; /* Optimize file updates for graphical user interfaces = use PROPFIND to get the Last-Modified-dates for the whole directory instead of GET If-Modified-Since for single files. */ static int gui_optimize; /* Remove nodes that are currently not needed to minimize memory usage. */ static int minimize_mem; /* When to next run minimize_tree. 0 means to not run minimize_tree. Must be updated when a node is created. */ static time_t next_minimize; /* Time interval to wait, before a directory is updated. Usually equal to dir_refresh, but will be varied in case the connection timed out.*/ static time_t retry; /* Minimum retry time. */ static time_t min_retry; /* Maximum retry time. */ static time_t max_retry; /* Maximum number of upload attempts. */ static int max_upload_attempts; /* Refresh locks this much seconds before they time out. */ static time_t lock_refresh; /* Defaults for file ownership and mode. */ static uid_t default_uid; static gid_t default_gid; static mode_t default_file_mode; static mode_t default_dir_mode; /* New files get the group id of the directory in which they are created if this variable is set to 1. */ static int grpid; /* Directory for cached files and directories. */ static char *cache_dir; /* Maximum cache size. If open files require more space, this will be ignored. */ static unsigned long long max_cache_size; /* Actual cache size. */ static unsigned long long cache_size; /* Alignment boundary of dav_node in byte. Used to compute a hash value and file numbers from node pointers. */ static size_t alignment; /* Pointers that will be set by dav_register_kernel_interface(), which must be called by the kernel-interface. Initialized to point to dummies as long as dav_register_kernel_interface() has not been called. */ /* A call back functions, that writes one direntry. The dummy returns EIO. Registering a working function is essential for mount.davfs. */ static off_t write_dir_entry_dummy(int fd, off_t off, const dav_node *node, const char *name) { return -1; } static dav_write_dir_entry_fn write_dir_entry = write_dir_entry_dummy; /* Points to a flag in the kernel interface module. If set to 1, at the end of the upcall the kernel dentries will be flushed. */ static int flush_dummy; static int *flush = &flush_dummy; /* Whether to create debug messages. */ static int debug; /* Buffer for xml_cdata callback. */ static char *xml_data = NULL; /* Private function prototypes and inline functions */ /*==================================================*/ /* Node operations. */ static void add_node(dav_node *parent, dav_props *props); static void add_to_changed(dav_node *node); static inline void attr_from_cache_file(dav_node *node) { struct stat st; if (!node->cache_path || stat(node->cache_path, &st) != 0) return; off_t old_size = node->size; node->size = st.st_size; cache_size += node->size - old_size; node->atime = (st.st_atime > node->atime) ? st.st_atime : node->atime; node->mtime = (st.st_mtime > node->mtime) ? st.st_mtime : node->mtime; } static void backup_node(dav_node *orig); static void clean_tree(dav_node *node, volatile int *got_sigterm); static void delete_node(dav_node *node); static void delete_tree(dav_node *node); static inline time_t get_upload_time(dav_node *node) { dav_node_list_item *item = changed; while (item && item->node != node) item = item->next; if (!item) return 0; return item->save_at; } static void minimize_tree(dav_node *node); static int move_dir(dav_node *src, dav_node *dst, dav_node *dst_parent, const char *dst_name); static int move_no_remote(dav_node *src, dav_node *dst, dav_node *dst_parent, const char *dst_name); static int move_reg(dav_node *src, dav_node *dst, dav_node *dst_parent, const char *dst_name); static dav_node * new_node(dav_node *parent, mode_t mode); static void remove_from_changed(dav_node *node); static void remove_from_table(dav_node *node); static void remove_from_tree(dav_node *node); static void remove_node(dav_node *node); static inline int set_next_upload_attempt(dav_node *node) { dav_node_list_item *item = changed; while (item && item->node != node) item = item->next; if (!item) return 0; item->attempts++; if (item->attempts > max_upload_attempts) return -1; time_t delay = item->attempts * min_retry; item->save_at += (delay > max_retry) ? max_retry : delay; return 0; } static inline void set_upload_time(dav_node *node) { dav_node_list_item *item = changed; while (item && item->node != node) item = item->next; if (item) item->save_at = time(NULL) + delay_upload; } static int update_directory(dav_node *dir, time_t refresh); static int update_node(dav_node *node, dav_props *props); static void update_path(dav_node *node, const char *src_path, const char *dst_path); /* Get information about node. */ static int exists(const dav_node *node); static inline dav_node * get_child(const dav_node *parent, const char *name) { dav_node *node = parent->childs; while (node && strcmp(name, node->name) != 0) node = node->next; return node; } static dav_handle * get_file_handle(dav_node * node, int fd, int accmode, pid_t pid, pid_t pgid); static int has_permission(const dav_node *node, uid_t uid, int how); static inline int is_backup(const dav_node *node) { return (node == backup || node->parent == backup); } static int is_busy(const dav_node *node); static inline int is_cached(dav_node *node) { return (S_ISREG(node->mode) && node->cache_path); } static inline int is_created(const dav_node *node) { return (S_ISREG(node->mode) && node->cache_path && !node->remote_exists && node->parent && node->parent != backup); } static inline int is_dir(const dav_node *node) { return S_ISDIR(node->mode); } static inline int is_dirty(const dav_node *node) { return (S_ISREG(node->mode) && node->dirty); } static inline int is_locked(const dav_node *node) { return (S_ISREG(node->mode) && node->lock_expire); } static inline int is_open(const dav_node *node) { return (node->handles != NULL); } static inline int is_open_write(const dav_node *node) { dav_handle *fh = node->handles; while (fh) { if (fh->flags == O_RDWR || fh->flags == O_WRONLY) return 1; fh = fh->next; } return 0; } static inline int is_reg(const dav_node *node) { return S_ISREG(node->mode); } static int is_valid(const dav_node *node); /* Cache file functions. */ static void close_fh(dav_node *node, dav_handle *fh); static int create_cache_file(dav_node *node); static int create_dir_cache_file(dav_node *node); static inline void delete_cache_file(dav_node *node) { if (node->cache_path) { remove(node->cache_path); free(node->cache_path); node->cache_path = NULL; node->dirty = 0; if (is_reg(node)) cache_size -= node->size; } } static inline void set_cache_file_times(dav_node *node) { if (!node->cache_path) return; struct utimbuf t; t.actime = node->atime; t.modtime = node->mtime; utime(node->cache_path, &t); } static int open_file(int *fd, dav_node *node, int flags, pid_t pid, pid_t pgid, uid_t uid); static int update_cache_file(dav_node *node); static off_t write_dir(dav_node *dir, int fd); /* Permanent cache maintenance. */ static void check_cache_dir(const char *dir, const char *host, const char *path, const char *mpoint); static void clean_cache(void); static void parse_index(void); static void resize_cache(void); static int write_node(dav_node *node, FILE *file, const char *indent); static int xml_cdata(void *userdata, int state, const char *cdata, size_t len); static int xml_end_backup(void *userdata, int state, const char *nspace, const char *name); static int xml_end_date(void *userdata, int state, const char *nspace, const char *name); static int xml_end_decimal(void *userdata, int state, const char *nspace, const char *name); static int xml_end_dir(void *userdata, int state, const char *nspace, const char *name); static int xml_end_mode(void *userdata, int state, const char *nspace, const char *name); static int xml_end_reg(void *userdata, int state, const char *nspace, const char *name); static int xml_end_root(void *userdata, int state, const char *nspace, const char *name); static int xml_end_size(void *userdata, int state, const char *nspace, const char *name); static int xml_end_string(void *userdata, int state, const char *nspace, const char *name); static int xml_end_string_old(void *userdata, int state, const char *nspace, const char *name); static int xml_start_backup(void *userdata, int parent, const char *nspace, const char *name, const char **atts); static int xml_start_date(void *userdata, int parent, const char *nspace, const char *name, const char **atts); static int xml_start_decimal(void *userdata, int parent, const char *nspace, const char *name, const char **atts); static int xml_start_dir(void *userdata, int parent, const char *nspace, const char *name, const char **atts); static int xml_start_mode(void *userdata, int parent, const char *nspace, const char *name, const char **atts); static int xml_start_reg(void *userdata, int parent, const char *nspace, const char *name, const char **atts); static int xml_start_root(void *userdata, int parent, const char *nspace, const char *name, const char **atts); static int xml_start_size(void *userdata, int parent, const char *nspace, const char *name, const char **atts); static int xml_start_string(void *userdata, int parent, const char *nspace, const char *name, const char **atts); /* Auxiliary. */ static size_t test_alignment(); /* Public functions */ /*==================*/ void dav_init_cache(const dav_args *args, const char *mpoint) { debug = args->debug & DAV_DBG_CACHE; if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Initializing cache"); alignment = test_alignment(); if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Alignment of dav_node: %i", (int) alignment); default_uid = args->uid; default_gid = args->gid; default_file_mode = args->file_mode; default_dir_mode = args->dir_mode; grpid = args->grpid; table_size = args->table_size; table = ne_calloc(sizeof(*table) * table_size); dir_refresh = args->dir_refresh; file_refresh = args->file_refresh; delay_upload = args->delay_upload; gui_optimize = args->gui_optimize; minimize_mem = args->minimize_mem; retry = dir_refresh; min_retry = args->retry; max_retry = args->max_retry; max_upload_attempts = args->max_upload_attempts; lock_refresh = args->lock_refresh; fs_stat = (dav_stat *) malloc(sizeof(dav_stat)); if (!fs_stat) abort(); fs_stat->blocks = 333333333; fs_stat->bavail = 133333333; fs_stat->n_nodes = 0; fs_stat->ffree = fs_stat->bavail / 4; fs_stat->bsize = 4096; fs_stat->namelen = 256; fs_stat->utime = 0; if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Checking cache directory"); max_cache_size = (unsigned long long) args->cache_size * 0x100000; check_cache_dir(args->cache_dir, args->host, args->path, mpoint); if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " %s", cache_dir); root = new_node(NULL, default_dir_mode); if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Reading stored cache data"); parse_index(); root->name = ne_strdup(""); root->path = dav_conv_to_server_enc(args->path); root->mode = default_dir_mode; if (!backup) backup = new_node(root, S_IFDIR | S_IRWXU); backup->name = ne_strdup(args->backup_dir); backup->mode = S_IFDIR | S_IRWXU; clean_cache(); next_minimize = 0; int ret = update_directory(root, 0); if (ret == EAGAIN) { root->utime = 0; ret = update_directory(root, 0); } if (ret == EAGAIN) { error(0, 0, _("connection timed out two times;\n" "trying one last time")); root->utime = 0; ret = update_directory(root, 0); if (!ret) printf(_("Last try succeeded.\n")); } if (ret == EAGAIN) { error(0, 0, _("server temporarily unreachable;\n" "mounting anyway")); } else if (ret) { error(EXIT_FAILURE, 0, _("Mounting failed.\n%s"), dav_get_webdav_error()); } else { dav_statfs(); } } void dav_close_cache(volatile int *got_sigterm) { if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Closing cache"); write_dir_entry = &write_dir_entry_dummy; flush = &flush_dummy; clean_tree(root, got_sigterm); char *new_index = ne_concat(cache_dir, "/", DAV_INDEX, ".new", NULL); if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Creating index %s.", new_index); FILE *new_file = fopen(new_index, "w"); if (new_file) { int ret = fprintf(new_file, "\n"); if (ret >= 0) ret = write_node(root, new_file, ""); fclose(new_file); if (ret >= 0) { if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Replacing old index"); char *old_index = ne_concat(cache_dir, "/", DAV_INDEX, NULL); if (rename(new_index, old_index) != 0) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("can't replace %s with %s"), old_index, new_index); free(old_index); } else { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("error writing new index file %s"), new_index); } } else { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("can't create new index file for %s"), cache_dir); } free(new_index); } size_t dav_register_kernel_interface(dav_write_dir_entry_fn write_fn, int *flush_flag, unsigned int *blksize) { if (write_fn) write_dir_entry = write_fn; if (flush_flag) flush = flush_flag; if (blksize) *blksize = fs_stat->bsize; return alignment; } int dav_tidy_cache(void) { if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "tidy: %i of %llu nodes changed", nchanged, (long long int) fs_stat->n_nodes); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "cache-size: %llu MiBytes.", (unsigned long long) ((cache_size + 0x80000) / 0x100000)); } static dav_node_list_item *item = NULL; dav_node_list_item *next_item = changed; dav_node *node = NULL; int found = 0; while (next_item) { node = next_item->node; if (is_locked(node) && node->lock_expire < time(NULL) + lock_refresh) dav_lock_refresh(node->path, &node->lock_expire); if (next_item == item) found = 1; next_item = next_item->next; } if (!found) item = changed; time_t save_at = 0; if (item) { node = item->node; save_at = item->save_at; item = item->next; } else { node = NULL; } if (node && (is_dirty(node) || is_created(node)) && !is_open_write(node) && !is_backup(node) && save_at && save_at <= time(NULL)) { if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "tidy: %s", node->path); int set_execute = -1; if (is_created(node) && node->mode & (S_IXUSR | S_IXGRP | S_IXOTH)) set_execute = 1; int ret = dav_put(node->path, node->cache_path, &node->remote_exists, &node->lock_expire, &node->etag, &node->smtime, set_execute); if (!ret) { node->utime = time(NULL); node->dirty = 0; if (dav_unlock(node->path, &node->lock_expire) == 0) remove_from_changed(node); } else { if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "tidy: neon error"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " %s", dav_get_webdav_error()); } if (ret == EACCES || ret == EINVAL || ret == ENOENT || ret == EPERM || ret == ENOSPC || ret == EEXIST || set_next_upload_attempt(node) < 0) { dav_unlock(node->path, &node->lock_expire); delete_cache_file(node->parent); node->parent->utime = 0; remove_node(node); *flush = 1; } } } else if (node && is_locked(node) && !is_dirty(node) && !is_created(node) && !is_open_write(node)) { if (dav_unlock(node->path, &node->lock_expire) == 0) remove_from_changed(node); } if (cache_size > max_cache_size) resize_cache(); if (minimize_mem && next_minimize && time(NULL) > next_minimize) { if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "minimize_tree"); next_minimize = 0; minimize_tree(root); if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "minimize_tree: %llu nodes remaining", (unsigned long long) fs_stat->n_nodes); } if (item) return 1; return 0; } /* Upcalls from the kernel. */ int dav_access(dav_node *node, uid_t uid, int how) { if (!is_valid(node)) return ENOENT; if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "access %s", node->path); if (!has_permission(node, uid, how)) return EACCES; return 0; } int dav_close(dav_node *node, int fd, int flags, pid_t pid, pid_t pgid) { if (!exists(node)) return ENOENT; if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " close %s", node->path); dav_handle *fh = get_file_handle(node, fd, is_dir(node) ? O_RDWR : flags & O_ACCMODE, pid, pgid); if (!fh) return EBADF; close_fh(node, fh); if (!node->parent && node != root && !is_open(node)) { remove_from_table(node); delete_node(node); *flush = 1; return 0; } if (is_dir(node)) { node->atime = time(NULL); delete_cache_file(node); return 0; } attr_from_cache_file(node); set_upload_time(node); fs_stat->utime = 0; if (delay_upload == 0 && (is_dirty(node) || is_created(node)) && !is_open_write(node) && !is_backup(node)) { int set_execute = -1; if (is_created(node) && node->mode & (S_IXUSR | S_IXGRP | S_IXOTH)) set_execute = 1; int ret = dav_put(node->path, node->cache_path, &node->remote_exists, &node->lock_expire, &node->etag, &node->smtime, set_execute); if (!ret) { node->utime = time(NULL); node->dirty = 0; if (dav_unlock(node->path, &node->lock_expire) == 0) remove_from_changed(node); } else { if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "close: neon error"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " %s", dav_get_webdav_error()); } if (ret == EACCES || ret == EINVAL || ret == ENOENT || ret == EPERM || ret == ENOSPC || ret == EEXIST || set_next_upload_attempt(node) < 0) { dav_unlock(node->path, &node->lock_expire); delete_cache_file(node->parent); node->parent->utime = 0; remove_node(node); *flush = 1; } } return ret; } return 0; } int dav_create(dav_node **nodep, dav_node *parent, const char *name, uid_t uid, mode_t mode) { if (!is_valid(parent)) return ENOENT; if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "create %s%s", parent->path, name); if (!is_dir(parent)) return ENOTDIR; if ((parent == root && strcmp(name, backup->name) == 0) || parent == backup) return EINVAL; if (!has_permission(parent, uid, X_OK | W_OK)) return EACCES; if (get_child(parent, name)) return EEXIST; struct passwd *pw = getpwuid(uid); if (!pw) return EINVAL; char *name_conv = dav_conv_to_server_enc(name); char *path = ne_concat(parent->path, name_conv, NULL); free(name_conv); *nodep = new_node(parent, mode | S_IFREG); (*nodep)->path = path; (*nodep)->name = ne_strdup(name); (*nodep)->uid = uid; if (grpid && parent->gid != 0) { (*nodep)->gid = parent->gid; } else { (*nodep)->gid = pw->pw_gid; } int ret = create_cache_file(*nodep); if (!ret) ret = dav_lock(path, &(*nodep)->lock_expire, &(*nodep)->remote_exists); if (ret == EEXIST) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("File %s exists on the server but should not. " "Maybe it is an error in the server's LOCK implementation. " "You may try option 'use_locks 0' in davfs2.conf."), (*nodep)->path); if (!ret) { (*nodep)->smtime = (*nodep)->mtime; if (!is_created(*nodep)) dav_head((*nodep)->path, &(*nodep)->etag, &(*nodep)->smtime, NULL); (*nodep)->utime = (*nodep)->smtime; delete_cache_file(parent); *flush = 1; parent->mtime = (*nodep)->mtime; parent->ctime = (*nodep)->mtime; add_to_changed(*nodep); } else { remove_from_tree(*nodep); remove_from_table(*nodep); delete_node(*nodep); } return ret; } int dav_getattr(dav_node *node, uid_t uid) { if (!is_valid(node)) return ENOENT; if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "getattr %s", node->path); if (node->parent && !has_permission(node->parent, uid, X_OK | R_OK)) return EACCES; if (is_dir(node)) { if (!node->utime) update_directory(node, retry); if (!node->cache_path) { if (create_dir_cache_file(node) != 0) return EIO; delete_cache_file(node); } } else if (is_open(node)) { attr_from_cache_file(node); } return 0; } int dav_lookup(dav_node **nodep, dav_node *parent, const char *name, uid_t uid) { if (!is_valid(parent)) return ENOENT; if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "lookup %s%s", parent->path, name); if (!is_dir(parent)) return ENOTDIR; if (!has_permission(parent, uid, X_OK | R_OK)) return EACCES; update_directory(parent, retry); *nodep = get_child(parent, name); if (!*nodep) { update_directory(parent, file_refresh); *nodep = get_child(parent, name); } if (!*nodep) return ENOENT; if (is_dir(*nodep)) { if (!(*nodep)->utime) update_directory(*nodep, retry); } else if (is_open(*nodep)) { attr_from_cache_file(*nodep); } return 0; } int dav_mkdir(dav_node **nodep, dav_node *parent, const char *name, uid_t uid, mode_t mode) { if (!is_valid(parent)) return ENOENT; if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "mkdir %s%s", parent->path, name); if (!is_dir(parent)) return ENOTDIR; if (parent == backup) return EINVAL; if (!has_permission(parent, uid, X_OK | W_OK)) return EACCES; update_directory(parent, retry); if (get_child(parent, name)) return EEXIST; struct passwd *pw = getpwuid(uid); if (!pw) return EINVAL; char *name_conv = dav_conv_to_server_enc(name); char *path = ne_concat(parent->path, name_conv, "/", NULL); free(name_conv); int ret = dav_make_collection(path); if (!ret) { *nodep = new_node(parent, mode | S_IFDIR); (*nodep)->path = path; (*nodep)->name = ne_strdup(name); (*nodep)->uid = uid; if (grpid && parent->gid != 0) { (*nodep)->gid = parent->gid; } else { (*nodep)->gid = pw->pw_gid; } (*nodep)->smtime = (*nodep)->mtime; (*nodep)->utime = (*nodep)->mtime; delete_cache_file(parent); *flush = 1; parent->mtime = (*nodep)->mtime; parent->ctime = (*nodep)->mtime; } else { free(path); } return ret; } int dav_open(int *fd, dav_node *node, int flags, pid_t pid, pid_t pgid, uid_t uid, int open_create) { if (!is_valid(node)) return ENOENT; if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "open %s", node->path); if (flags & (O_EXCL | O_CREAT)) return EINVAL; int how; if ((O_ACCMODE & flags) == O_WRONLY) { how = W_OK; } else if ((O_ACCMODE & flags) == O_RDONLY) { how = R_OK; } else { how = R_OK | W_OK; } if (!open_create && !has_permission(node, uid, how)) return EACCES; if (is_dir(node)) { if ((how & W_OK) || (flags & O_TRUNC)) return EINVAL; update_directory(node, file_refresh); if (create_dir_cache_file(node) != 0) return EIO; node->atime = time(NULL); return open_file(fd, node, O_RDWR, pid, pgid, uid); } int ret = 0; if ((O_ACCMODE & flags) == O_RDONLY) { ret = update_cache_file(node); if (!ret) ret = open_file(fd, node, flags & O_ACCMODE, pid, pgid, uid); } else { if (!is_locked(node) && !is_backup(node)) ret = dav_lock(node->path, &node->lock_expire, &node->remote_exists); if (!ret && (flags & O_TRUNC)) { ret = create_cache_file(node); if (!ret) { ret = open_file(fd, node, flags & (O_ACCMODE | O_TRUNC | O_APPEND), pid, pgid, uid); } } else if (!ret) { ret = update_cache_file(node); if (!ret) ret = open_file(fd, node, flags & (O_ACCMODE | O_APPEND), pid, pgid, uid); } if (!ret) add_to_changed(node); } return ret; } int dav_read(ssize_t *len, dav_node * node, int fd, char *buf, size_t size, off_t offset) { if (!exists(node)) return ENOENT; dav_handle *fh = get_file_handle(node, fd, 0, 0, 0); if (!fh) return EBADF; if (fh->flags == O_WRONLY) return EINVAL; if (offset == 0 && is_dir(node) && !node->cache_path) { if (ftruncate(fh->fd, 0) != 0) return EIO; off_t sz = write_dir(node, fh->fd); if (sz <= 0) return EIO; node->size = sz; } *len = pread(fd, buf, size, offset); if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "read %lli", (long long int) *len); if (*len < 0) return errno; if (*len < size) memset(buf + *len, '\0', size - *len); return 0; } int dav_remove(dav_node *parent, const char *name, uid_t uid) { if (!is_valid(parent)) return ENOENT; if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "remove %s%s", parent->path, name); if (!is_dir(parent)) return ENOTDIR; if (!has_permission(parent, uid, X_OK | W_OK)) return EACCES; update_directory(parent, retry); dav_node *node = get_child(parent, name); if (!node) { delete_cache_file(parent); parent->utime = 0; *flush = 1; return ENOENT; } if (is_dir(node)) return EISDIR; int ret = 0; if (is_created(node)) { if (is_locked(node)) ret = dav_unlock(node->path, &node->lock_expire); } else if (!is_backup(node)) { ret = dav_delete(node->path, &node->lock_expire); if (ret == ENOENT) ret = 0; } if (ret) return ret; fs_stat->utime = 0; remove_from_tree(node); remove_from_changed(node); if (is_open(node)) { node->parent = NULL; } else { remove_from_table(node); delete_node(node); } delete_cache_file(parent); parent->mtime = time(NULL); parent->ctime = parent->mtime; *flush = 1; return 0; } int dav_rename(dav_node *src_parent, const char *src_name, dav_node *dst_parent, const char *dst_name, uid_t uid) { if (!is_valid(src_parent) || !is_valid(dst_parent)) return ENOENT; if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "rename %s%s", src_parent->path, src_name); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " into %s%s", dst_parent->path, dst_name); } if (!is_dir(src_parent) || !is_dir(dst_parent)) return ENOTDIR; if (is_backup(dst_parent)) return EINVAL; if (!has_permission(src_parent, uid, X_OK | W_OK) || !has_permission(dst_parent, uid, X_OK | W_OK)) return EACCES; update_directory(src_parent, retry); dav_node *src = get_child(src_parent, src_name); dav_node *dst = get_child(dst_parent, dst_name); if (!src) { delete_cache_file(src_parent); src_parent->utime = 0; *flush = 1; return ENOENT; } if (src == backup || (dst && is_backup(dst))) return EINVAL; int ret; if (is_dir(src)) { ret = move_dir(src, dst, dst_parent, dst_name); } else { if (is_created(src) || is_backup(src)) { ret = move_no_remote(src, dst, dst_parent, dst_name); } else { ret = move_reg(src, dst, dst_parent, dst_name); } } if (!ret) { if (src_parent != dst_parent) { remove_from_tree(src); delete_cache_file(src_parent); src_parent->mtime = time(NULL); src_parent->ctime = src_parent->mtime; src->parent = dst_parent; src->next = dst_parent->childs; dst_parent->childs = src; if (is_dir(src)) ++src->parent->nref; } delete_cache_file(dst_parent); dst_parent->mtime = time(NULL); dst_parent->ctime = dst_parent->mtime; *flush = 1; } return ret; } int dav_rmdir(dav_node *parent, const char *name, uid_t uid) { if (!is_valid(parent)) return ENOENT; if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "rmdir %s%s", parent->path, name); if (!is_dir(parent)) return ENOTDIR; if (!has_permission(parent, uid, X_OK | W_OK)) return EACCES; update_directory(parent, retry); dav_node *node = get_child(parent, name); if (!node) { delete_cache_file(parent); parent->utime = 0; *flush = 1; return ENOENT; } if (node == backup) return EINVAL; if (!is_dir(node)) return ENOTDIR; if (node->childs) return ENOTEMPTY; int ret = dav_delete_dir(node->path); if (!ret) { remove_node(node); delete_cache_file(parent); parent->mtime = time(NULL); parent->ctime = parent->mtime; *flush = 1; } return ret; } int dav_root(dav_node **nodep, uid_t uid) { if (uid != 0) return EPERM; *nodep = root; return 0; } int dav_setattr(dav_node *node, uid_t uid, int sm, mode_t mode, int so, uid_t owner, int sg, gid_t gid, int sat, time_t atime, int smt, time_t mtime, int ssz, off_t size) { if (!is_valid(node)) return ENOENT; if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "setattr %s", node->path); if (node->parent != NULL && !has_permission(node->parent, uid, X_OK)) return EACCES; if (so) { if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " set owner to %i", owner); if (node == backup) return EINVAL; if (uid != 0 && (uid != owner || uid != node->uid)) return EPERM; if (!getpwuid(owner)) return EINVAL; } if (sg) { if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " set group to %i", gid); if (node == backup) return EINVAL; if (uid != node->uid && uid != 0) return EPERM; if (uid != 0) { struct passwd *pw = getpwuid(uid); if (!pw) return EPERM; if (pw->pw_gid != gid) { struct group *gr = getgrgid(gid); if (!gr) return EPERM; char **member = gr->gr_mem; while (*member != NULL && strcmp(*member, pw->pw_name) != 0) ++member; if (*member == NULL) return EPERM; } } if (!getgrgid(gid)) return EINVAL; } if (sm) { if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " set mode to %o", mode); if (node == backup) return EINVAL; if (uid != node->uid && uid != 0) return EPERM; } if (sat || smt) { if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " set times"); if (uid != node->uid && uid != 0 && !has_permission(node, uid, W_OK)) return EPERM; } if (ssz) { if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " set size"); if (is_dir(node)) return EINVAL; if (uid != node->uid && uid != 0 && !has_permission(node, uid, W_OK)) return EPERM; int ret = 0; if (!is_locked(node) && !is_backup(node)) ret = dav_lock(node->path, &node->lock_expire, &node->remote_exists); if (!ret && size == 0) { ret = create_cache_file(node); } else if (!ret) { ret = update_cache_file(node); } if (!ret) ret = truncate(node->cache_path, size); if (ret) return ret; attr_from_cache_file(node); node->dirty = 1; add_to_changed(node); set_upload_time(node); } if (so) node->uid = owner; if (sg) node->gid = gid; if (sm) { if (!is_backup(node) && !is_created(node)) { int set_execute = -1; if ((node->mode & (S_IXUSR | S_IXGRP | S_IXOTH)) && !(mode & (S_IXUSR | S_IXGRP | S_IXOTH))) set_execute = 0; if (!(node->mode & (S_IXUSR | S_IXGRP | S_IXOTH)) && (mode & (S_IXUSR | S_IXGRP | S_IXOTH))) set_execute = 1; if (set_execute != -1) { if (is_dirty(node) && !is_locked(node)) { int err = 0; time_t smtime = 0; char *etag = NULL; dav_head(node->path, &etag, &smtime, NULL); if (etag && node->etag && strcmp(etag, node->etag) != 0) err = EIO; if (smtime && smtime > node->smtime) err = EIO; if (etag) free(etag); if (err) return EIO; } dav_set_execute(node->path, set_execute); if (is_dirty(node)) dav_head(node->path, &node->etag, &node->smtime, NULL); } } node->mode = (node->mode & ~DAV_A_MASK) | mode; } if (sat) node->atime = atime; if (smt) node->mtime = mtime; if (sat || smt) set_cache_file_times(node); node->ctime = time(NULL); return 0; } dav_stat * dav_statfs(void) { if (time(NULL) > (fs_stat->utime + retry)) { uint64_t available = 0; uint64_t used = 0; if (dav_quota(root->path, &available, &used) == 0) { fs_stat->bavail = available / fs_stat->bsize; fs_stat->ffree = fs_stat->bavail / 4; if (used > 0) { fs_stat->blocks = fs_stat->bavail + (used / fs_stat->bsize); } else { fs_stat->blocks = fs_stat->bavail + (fs_stat->n_nodes * 4); } fs_stat->utime = time(NULL); } } fs_stat->files = fs_stat->ffree + fs_stat->n_nodes; return fs_stat; } int dav_sync(dav_node *node) { if (!exists(node)) return ENOENT; dav_handle *fh = node->handles; while (fh) { if (fh->flags != O_RDONLY) fsync(fh->fd); fh = fh->next; } return 0; } int dav_write(size_t *written, dav_node * node, int fd, char *buf, size_t size, off_t offset) { if (!exists(node)) return ENOENT; if (is_dir(node)) return EBADF; dav_handle *fh = get_file_handle(node, fd, 0, 0, 0); if (!fh) return EBADF; if (fh->flags == O_RDONLY) return EINVAL; *written = 0; ssize_t n = 0; while (*written < size && n >= 0) { n = pwrite(fd, buf + *written, size - *written, offset + *written); if (n < 0) return errno; *written += n; } if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " written %lli", (unsigned long long) *written); return 0; } /* Private functions */ /*===================*/ /* Node maintenance. */ /* Creates a new node taking properties from props and adds it to the child list of parent and to the hash table. If props references directory backup, no node will be created. parent : The parent directory node for the new node. props : Properties retrieved from the server. Will be freed. */ static void add_node(dav_node *parent, dav_props *props) { if (parent == root && strcmp(props->name, backup->name) == 0) { dav_delete_props(props); return; } dav_node *node; if (props->is_dir) { node = new_node(parent, default_dir_mode); } else { node = new_node(parent, default_file_mode); node->size = props->size; node->remote_exists = 1; if (props->is_exec == 1) { node->mode |= (node->mode & S_IRUSR) ? S_IXUSR : 0; node->mode |= (node->mode & S_IRGRP) ? S_IXGRP : 0; node->mode |= (node->mode & S_IROTH) ? S_IXOTH : 0; } else if (props->is_exec == 0) { node->mode &= ~(S_IXUSR | S_IXGRP | S_IXOTH); } } if (grpid && parent->gid != 0) node->gid = parent->gid; node->path = props->path; node->name = props->name; node->etag = props->etag; node->smtime = props->mtime; if (node->smtime > 0) node->mtime = node->smtime; node->ctime = node->mtime; free(props); if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "added %s", node->path); } /* Checks whether node is allready in the list of changed nodes. If not it will be appended at the end of the list. */ static void add_to_changed(dav_node *node) { dav_node_list_item **chp = &changed; while (*chp) { if ((*chp)->node == node) return; chp = &(*chp)->next; } *chp = (dav_node_list_item *) malloc(sizeof(dav_node_list_item)); if (!*chp) abort(); (*chp)->node = node; (*chp)->next = NULL; (*chp)->attempts = 0; (*chp)->save_at = 0; nchanged++; } /* Creates a new file in directory backup. The name will be the name of the cache file of orig and attributes will be taken from orig. The cache file will be moved from orig to the new node. Open file descriptors will stay with orig. orig : the node to be backed up. */ static void backup_node(dav_node *orig) { if (!orig->cache_path) return; dav_node *node = new_node(backup, orig->mode); node->name = ne_strdup(orig->cache_path + strlen(cache_dir) +1); node->cache_path = orig->cache_path; orig->cache_path = NULL; orig->dirty = 0; node->size = orig->size; node->uid = default_uid; node->gid = default_gid; if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "created backup of %p", orig); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " %s", orig->path); } delete_cache_file(backup); backup->mtime = time(NULL); backup->ctime = backup->mtime; *flush = 1; } /* Scans the directory tree starting from node and - if *got_sigterm == 1: saves dirty files to the server and unlocks them. If it can not be safed, a local backup is created and the node is deleted. - removes any file nodes without cached file - removes all dir nodes that have not at least one file node below. Short: removes everthing that is not necessary to correctly reference the cached files. Node node itself will be removed and deleted if possible. Directory backup and root will never be removed. Kernel will *not* be notified about changes. Member nref of directories will be adjusted. */ static void clean_tree(dav_node *node, volatile int *got_sigterm) { if (node == backup) { delete_cache_file(backup); return; } if (is_dir(node)) { dav_node *child = node->childs; while (child) { dav_node *next = child->next; clean_tree(child, got_sigterm); child = next; } if (!node->childs && node != root && node != backup) { remove_from_tree(node); remove_from_table(node); delete_node(node); } else { delete_cache_file(node); } } else if (!is_cached(node) || access(node->cache_path, F_OK) != 0) { if (is_locked(node) && !*got_sigterm) dav_unlock(node->path, &node->lock_expire); remove_from_tree(node); remove_from_table(node); delete_node(node); } else if ((is_dirty(node) || is_created(node)) && !*got_sigterm) { int set_execute = -1; if (is_created(node) && node->mode & (S_IXUSR | S_IXGRP | S_IXOTH)) set_execute = 1; int ret = dav_put(node->path, node->cache_path, &node->remote_exists, &node->lock_expire, &node->etag, &node->smtime, set_execute); if (is_locked(node)) dav_unlock(node->path, &node->lock_expire); if (!ret) { node->mtime = node->smtime; if (node->mtime > node->atime) node->atime = node->mtime; set_cache_file_times(node); node->dirty = 0; } else if (ret == EACCES || ret == EINVAL || ret == ENOENT || ret == EPERM || ret == ENOSPC || ret == EEXIST) { backup_node(node); remove_from_tree(node); remove_from_table(node); delete_node(node); } } else { node->mtime = node->smtime; if (node->mtime > node->atime) node->atime = node->mtime; set_cache_file_times(node); } } /* Frees any resources held by node and finally frees node. If there are open file descriptors, this will be closed. */ static void delete_node(dav_node *node) { if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "deleting node %p", node); if (node->path) free(node->path); if (node->name) free(node->name); delete_cache_file(node); if (node->etag) free(node->etag); while (node->handles) { dav_handle *tofree = node->handles; node->handles = node->handles->next; close(tofree->fd); free(tofree); } free(node); fs_stat->n_nodes--; } /* Deletes the tree starting at and including node. The tree is freed uncontionally, no checks for lost update problem and the like are done, also backup will be deleted if in tree. Exeption: the root node will not be deleted. */ static void delete_tree(dav_node *node) { while (node->childs) delete_tree(node->childs); if (node != root) { remove_from_tree(node); remove_from_table(node); delete_node(node); if (node == backup) backup = NULL; } } /* Removes file nodes that are currently not needed to minimize memory usage. */ static void minimize_tree(dav_node *node) { if (node == backup) return; if (is_dir(node)) { int rm = !is_open(node) && (time(NULL) > (node->utime + 2 * file_refresh)) && (time(NULL) > (node->atime + 2 * file_refresh)); dav_node *child = node->childs; while (child) { dav_node *next = child->next; if (rm || is_dir(child)) { minimize_tree(child); } else if (next_minimize == 0) { next_minimize = time(NULL) + 2 * file_refresh; } child = next; } } else if (!is_cached(node) && !is_locked(node) && !is_created(node)) { remove_from_tree(node); remove_from_table(node); delete_node(node); *flush = 1; } else if (next_minimize == 0) { next_minimize = time(NULL) + file_refresh; } } /* Moves directory src to dst using WebDAV method MOVE. */ static int move_dir(dav_node *src, dav_node *dst, dav_node *dst_parent, const char *dst_name) { if (dst && !is_dir(dst)) return ENOTDIR; if (dst && is_busy(dst)) return EBUSY; char *dst_path; if (!dst) { char *dst_conv = dav_conv_to_server_enc(dst_name); dst_path = ne_concat(dst_parent->path, dst_conv, "/", NULL); free(dst_conv); } else { dst_path = ne_strdup(dst->path); } if (dav_move(src->path, dst_path) != 0) { free(dst_path); return EIO; } if (dst) remove_node(dst); free(src->name); src->name = ne_strdup(dst_name); update_path(src, src->path, dst_path); free(dst_path); return 0; } /* src does not exist on the server, but there may be a locked null-resource. - if dst exists it will be removed, local and remote - if src is locked, it is unlocked - the path of src is changed according dst_name - dst is locked on the server - src is moved to its new position in the tree. */ static int move_no_remote(dav_node *src, dav_node *dst, dav_node *dst_parent, const char *dst_name) { if (dst && is_dir(dst)) return EISDIR; char *dst_path; if (!dst) { char *dst_conv = dav_conv_to_server_enc(dst_name); dst_path = ne_concat(dst_parent->path, dst_conv, NULL); free(dst_conv); } else { dst_path = ne_strdup(dst->path); } if (dst) { int ret = 0; if (is_created(dst)) { if (is_locked(dst)) ret = dav_unlock(dst_path, &dst->lock_expire); } else { ret = dav_delete(dst_path, &dst->lock_expire); } if (ret == ENOENT) ret = 0; if (ret) { free(dst_path); return EIO; } remove_from_tree(dst); remove_from_changed(dst); if (is_open(dst)) { if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "invalidating node %p", dst); dst->parent = NULL; } else { remove_from_table(dst); delete_node(dst); } } if (is_created(src) && is_locked(src)) dav_unlock(src->path, &src->lock_expire); src->remote_exists = 0; dav_lock(dst_path, &src->lock_expire, &src->remote_exists); if (!is_created(src) && (src->mode & (S_IXUSR | S_IXGRP | S_IXOTH))) dav_set_execute(dst_path, 1); free(src->name); src->name = ne_strdup(dst_name); free(src->path); src->path = dst_path; if (src->etag) { free(src->etag); src->etag = NULL; } src->smtime = time(NULL); if (!is_created(src)) dav_head(src->path, &src->etag, &src->smtime, NULL); src->utime = time(NULL); return 0; } /* Moves file src to dst using WebDAV method MOVE. */ static int move_reg(dav_node *src, dav_node *dst, dav_node *dst_parent, const char *dst_name) { if (dst && is_dir(dst)) return EISDIR; char *dst_path; if (!dst) { char *dst_conv = dav_conv_to_server_enc(dst_name); dst_path = ne_concat(dst_parent->path, dst_conv, NULL); free(dst_conv); } else { dst_path = ne_strdup(dst->path); } if (dav_move(src->path, dst_path) != 0) { free(dst_path); return EIO; } if (is_locked(src)) { src->lock_expire = 0; if (is_dirty(src)) dav_lock(dst_path, &src->lock_expire, &src->remote_exists); } if (is_cached(src)) dav_head(dst_path, &src->etag, &src->smtime, NULL); if (dst) { remove_from_tree(dst); remove_from_changed(dst); if (is_open(dst)) { if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "invalidating node %p", dst); dst->parent = NULL; } else { remove_from_table(dst); delete_node(dst); } } free(src->name); src->name = ne_strdup(dst_name); free(src->path); src->path = dst_path; src->utime = time(NULL); return 0; } /* Creates a new node. mode must have the I_ISDIR or I_ISREG bit set. node->mode is set to mode. All other members are set to reasonable defaults. The new node will be inserted into the child list of parent and the hash table. Member nref of the parent will be updated. parent : The parent of the new node, may be NULL. mode : Tthe mode of the new node. return value : A pointer to the new node. */ static dav_node * new_node(dav_node *parent, mode_t mode) { dav_node *node = (dav_node *) ne_malloc(sizeof(dav_node)); node->parent = parent; node->childs = NULL; if (parent) { if (S_ISDIR(mode)) ++parent->nref; node->next = parent->childs; parent->childs = node; } else { node->next = NULL; } size_t i = ((size_t) node / alignment) % table_size; node->table_next = table[i]; table[i] = node; node->path = NULL; node->name = NULL; node->cache_path = NULL; node->etag = NULL; node->handles = NULL; node->size = 0; node->atime = time(NULL); node->mtime = node->atime; node->ctime = node->atime; node->utime = 0; node->smtime = 0; node->lock_expire = 0; if (S_ISDIR(mode)) { node->nref = 2; } else { node->nref = 1; } node->remote_exists = 0; node->dirty = 0; node->uid = default_uid; node->gid = default_gid; node->mode = mode; if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "new node: %p->%p", node->parent, node); fs_stat->n_nodes++; if (next_minimize == 0) next_minimize = node->atime + file_refresh; return node; } /* Removes a node from the list of changed nodes. */ static void remove_from_changed(dav_node *node) { dav_node_list_item **chp = &changed; while (*chp && (*chp)->node != node) chp = &(*chp)->next; if (*chp) { dav_node_list_item *tofree = *chp; *chp = (*chp)->next; free(tofree); nchanged--; } } /* Removes a node from the hash table. The root node can not be removed. */ static void remove_from_table(dav_node *node) { if (node == root) return; size_t i = ((size_t) node / alignment) % table_size; dav_node **np = &table[i]; while (*np && *np != node) np = &(*np)->table_next; if (*np) *np = (*np)->table_next; } /* Removes a node from the directory tree. The root node can not be removed. If node is a directory, member nref of the parent will be decremented. But no other attributes of the parent directory will be changed. */ static void remove_from_tree(dav_node *node) { if (node == root) return; dav_node **np = &node->parent->childs; while (*np && *np != node) np = &(*np)->next; if (*np) { *np = node->next; if (is_dir(node)) --node->parent->nref; } } /* Frees locks, removes the node from the tree and from the hash table, and deletes it. Depending on the kind of node and its state additional action will be taken: - For directories the complete tree below is removed too. - If a regular file is dirty, open for writing or created, a backup in driectory backup will be created, that holds the cached local copy of the file. - If a file is open, it will not be removed from the hash table to allow proper closing of open file descriptors. */ static void remove_node(dav_node *node) { remove_from_tree(node); if (is_dir(node)) { while (node->childs != NULL) remove_node(node->childs); remove_from_table(node); delete_node(node); } else { remove_from_changed(node); if (is_locked(node)) dav_unlock(node->path, &node->lock_expire); if (is_dirty(node) || is_open_write(node) || is_created(node)) backup_node(node); if (is_open(node)) { if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "invalidating node %p", node); node->parent = NULL; node->dirty = 0; node->remote_exists = 0; } else { remove_from_table(node); delete_node(node); } } } /* Gets a property list from the server and updates node dir and its childs accordingly. If there are inconsistencies between the information from the server and the locally stored state, the local information is updated. Backups are created if necessary. This will only be done if the utime of dear is reached, otherwise this function will do nothing. utime and retry will be updated. If the contents or the mtime of the dir has changed, the dir-cache-file will be deleted and the flush flag will be set to force new lookups by the kernel. */ static int update_directory(dav_node *dir, time_t refresh) { if (dir == backup || time(NULL) <= (dir->utime + refresh)) return 0; dav_props *props = NULL; int ret = dav_get_collection(dir->path, &props); dir->utime = time(NULL); if (ret) { if (retry == dir_refresh) { retry = min_retry; } else { retry *= 2; retry = (retry > max_retry) ? max_retry : retry; retry = (retry == dir_refresh) ? (retry + 1) : retry; } return ret; } else { retry = dir_refresh; } int changed = 0; dav_node *child = dir->childs; while (child) { dav_node *next = child->next; if (!is_backup(child)) { dav_props **pp = &props; while (*pp && strcmp((*pp)->path, child->path) != 0) pp = &(*pp)->next; if (*pp) { dav_props *p = *pp; *pp = p->next; changed |= update_node(child, p); } else if (!is_created(child)) { remove_node(child); changed = 1; } } child = next; } while (props) { dav_props *next = props->next; if (strlen(props->name) > 0) { add_node(dir, props); changed = 1; } else { if (props->mtime > dir->smtime) { dir->smtime = props->mtime; dir->mtime = props->mtime; } if (dir->mtime > dir->ctime) dir->ctime = dir->mtime; if (dir->etag) free(dir->etag); dir->etag = props->etag; props->etag = NULL; dav_delete_props(props); } props = next; } if (changed) { delete_cache_file(dir); *flush = 1; } if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "directory updated: %p->%p", dir->parent, dir); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " %s", dir->path); } return 0; } /* Updates the properties of node according to props and frees props. If props is incompatibel with node or indicates a lost update problem, a new node is created from props and the old node is deleted, creating a local back up if necessary. If nodes are removed or created, flag flush is set, to force new lookups by the kernel. node : The node to be updated. It must not be the root node and have a valid parent. props : The properties retrieved from the server. They will be freed. return value: Value 1 indicates that the contents of the parent directory has changed and therefore the parents dir-cache-file has to be updated; 0 otherwise. NOTE: node may be removed and the pointer node may become invalid. */ static int update_node(dav_node *node, dav_props *props) { if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "updating node: %p->%p", node->parent, node); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " %s", node->path); } if (!node->parent) return 0; int ret = 0; if ((is_dir(node) && !props->is_dir) || (!is_dir(node) && props->is_dir)) { add_node(node->parent, props); remove_node(node); *flush = 1; return 1; } if (strcmp(node->name, props->name) != 0) { free(node->name); node->name = ne_strdup(props->name); ret = 1; *flush = 1; } if (is_created(node)) { if (!is_open(node) && (props->size > 0)) { add_node(node->parent, props); remove_node(node); *flush = 1; return 1; } else { dav_delete_props(props); return ret; } } if (is_cached(node)) { if ((!node->etag && props->mtime > node->smtime) || (node->etag && props->etag && strcmp(node->etag, props->etag) != 0)) { if (is_open(node)) { node->utime = 0; dav_delete_props(props); return ret; } else if (is_dirty(node)) { add_node(node->parent, props); remove_node(node); *flush = 1; return 1; } else { delete_cache_file(node); *flush = 1; } } else { node->utime = time(NULL); dav_delete_props(props); return ret; } } if (props->mtime > node->atime) node->atime = props->mtime; if (props->mtime > node->smtime) { node->mtime = props->mtime; node->smtime = props->mtime; node->utime = 0; delete_cache_file(node); *flush = 1; } if (node->etag) free(node->etag); node->etag = props->etag; props->etag = NULL; if (is_reg(node)) { if (props->is_exec == 1 && !(node->mode & (S_IXUSR | S_IXGRP | S_IXOTH))) { node->mode |= (node->mode & S_IWUSR) ? S_IXUSR : 0; node->mode |= (node->mode & S_IWGRP) ? S_IXGRP : 0; node->mode |= (node->mode & S_IWOTH) ? S_IXOTH : 0; *flush = 1; } else if (props->is_exec == 0 && (node->mode & (S_IXUSR | S_IXGRP | S_IXOTH))) { node->mode &= ~(S_IXUSR | S_IXGRP | S_IXOTH); *flush = 1; } if (props->size && props->size != node->size) { node->size = props->size; *flush = 1; } } dav_delete_props(props); return ret; } /* For node and all nodes in the tree below nodethe compinent src_path in its path will be replaced by dst_path. If the path of a node does not start with src_path the node will *not* be removed, but its parent directory will be invalidated, so an update is forced. */ static void update_path(dav_node *node, const char *src_path, const char *dst_path) { dav_node *n = node->childs; while (n) { update_path(n, src_path, dst_path); n = n->next; } if (!node->path || strstr(node->path, src_path) != node->path) { delete_cache_file(node->parent); node->parent->utime = 0; *flush = 1; return; } char *path = ne_concat(dst_path, node->path + strlen(src_path), NULL); free(node->path); node->path = path; } /* Get information about node. */ static int exists(const dav_node *node) { size_t i = ((size_t) node / alignment) % table_size; dav_node *n = table[i]; while (n && n != node) n = n->table_next; if (n) { return 1; } else { *flush = 1; return 0; } } static dav_handle * get_file_handle(dav_node * node, int fd, int accmode, pid_t pid, pid_t pgid) { dav_handle *fh = node->handles; if (fd) { while (fh && fh->fd != fd) fh = fh->next; } else { while (fh && (fh->flags != accmode || fh->pid != pid)) fh = fh->next; if (!fh) { fh = node->handles; while (fh && (fh->flags != accmode || fh->pgid != pgid)) fh = fh->next; } } return fh; } /* Checks whether user uid has access to node according to how. In any case the user must have execute permission for the parent of node and all of its parents up to the root node. int how : How to acces the node. May be any combination of R_OK, W_OK, X_OK and F_OK. return value: 1 access is allowed. 0 access is denied. */ static int has_permission(const dav_node *node, uid_t uid, int how) { if (uid == 0) return 1; if (node->parent && !has_permission(node->parent, uid, X_OK)) return 0; mode_t a_mode = (how & R_OK) ? (S_IRUSR | S_IRGRP | S_IROTH) : 0; a_mode |= (how & W_OK) ? (S_IWUSR | S_IWGRP | S_IWOTH) : 0; a_mode |= (how & X_OK) ? (S_IXUSR | S_IXGRP | S_IXOTH) : 0; if (node->uid == uid) { if (~node->mode & S_IRWXU & a_mode) return 0; return 1; } struct passwd *pw = getpwuid(uid); if (!pw) return 0; if (pw->pw_gid == node->gid) { if (~node->mode & S_IRWXG & a_mode) return 0; return 1; } struct group *grp = getgrgid(node->gid); if (!grp) return 0; char **members = grp->gr_mem; while (*members && strcmp(*members, pw->pw_name) != 0) members++; if (*members) { if (~node->mode & S_IRWXG & a_mode) return 0; return 1; } if (!(~node->mode & S_IRWXO & a_mode)) return 1; return 0; } /* A node is considered busy if it is open for writing or, in case of a directory, if in the tree below the node there is any file open for write. return value : 1 if busy, 0 if not. */ static int is_busy(const dav_node *node) { dav_node *child = node->childs; while (child) { if (is_busy(child)) return 1; child = child->next; } return (is_reg(node) && is_open_write(node)); } /* Checks whether node exists and is valid. The parent directory is updated if necessary. */ static int is_valid(const dav_node *node) { if (!exists(node) || (!node->parent && node != root)) return 0; if (node == root || node == backup) return 1; update_directory(node->parent, retry); if (!exists(node) || (!node->parent && node != root)) return 0; return 1; } /* Cache file functions. */ static void close_fh(dav_node *node, dav_handle *fh) { close(fh->fd); dav_handle **fhp = &node->handles; while (*fhp && *fhp != fh) fhp = &(*fhp)->next; if (*fhp) *fhp = (*fhp)->next; free(fh); } /* It creates a new empty cache file for node. If a cache file already exists, it does nothing. return value : 0 on success, EIO if no cache file could be created. */ static int create_cache_file(dav_node *node) { if (node->cache_path) { if (access(node->cache_path, F_OK) == 0) { return 0; } else { free(node->cache_path); } } node->cache_path = ne_concat(cache_dir, "/", node->name, "-XXXXXX", NULL); int fd = mkstemp(node->cache_path); if (fd <= 0) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("can't create cache file %s"), node->cache_path); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), "%s", strerror(errno)); free(node->cache_path); node->cache_path = NULL; return EIO; } close(fd); return 0; } /* Creates a file in the cache that holds dir-entries of directory dir. dir will be updated if necessary. If this file already exists, it does nothing. To write the dir-entries it calls the write_dir_entry function of the kernel interface. return value : 0 on success, EIO if no cache file could be created. */ static int create_dir_cache_file(dav_node *dir) { if (dir->cache_path) { if (access(dir->cache_path, F_OK) == 0) { return 0; } else { free(dir->cache_path); } } dir->cache_path = ne_concat(cache_dir, "/dir-", dir->name, "-XXXXXX", NULL); int fd = mkstemp(dir->cache_path); if (fd <= 0) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("can't create cache file %s"), dir->cache_path); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), "%s", strerror(errno)); free(dir->cache_path); dir->cache_path = NULL; return EIO; } off_t size = write_dir(dir, fd); close(fd); if (size > 0) { dir->size = size; return 0; } else { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("error writing directory %s"), dir->cache_path); remove(dir->cache_path); free(dir->cache_path); dir->cache_path = NULL; return EIO; } } /* Opens the cache file of node using flags and stores the file descriptor in fd. A new structure dav_handle is created and added to the list of handles. return value : 0 on success, EIO if the file could not be opend. */ static int open_file(int *fd, dav_node *node, int flags, pid_t pid, pid_t pgid, uid_t uid) { *fd = open(node->cache_path, flags, node->mode); if (*fd <= 0) return EIO; dav_handle *fh = (dav_handle *) ne_malloc(sizeof(dav_handle)); fh->fd = *fd; fh->flags = O_ACCMODE & flags; fh->pid = pid; fh->pgid = pgid; fh->uid = uid; fh->next = node->handles; node->handles = fh; if ((O_ACCMODE & flags) == O_WRONLY || (O_ACCMODE & flags) == O_RDWR) node->dirty = 1; return 0; } /* Updates the cached file from the server if necessary and possible, or retrieves one from the server if no cache file exists. It is not necessary or possible if - node is in directory backup - node is created (does not yet exist on the server) - node is open for writing - it has been updated within the last second - node is dirty. If the node is dirty but not open for write, it will be stored back on the server. */ static int update_cache_file(dav_node *node) { if (is_backup(node) || is_created(node) || is_open_write(node) || (is_dirty(node) && is_locked(node))) { if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " no update"); return 0; } int ret = 0; if (is_dirty(node)) { if (get_upload_time(node) >= time(NULL)) return 0; ret = dav_put(node->path, node->cache_path, &node->remote_exists, &node->lock_expire, &node->etag, &node->smtime, -1); if (!ret) { node->utime = time(NULL); node->dirty = 0; remove_from_changed(node); } else if (ret == EACCES || ret == EINVAL || ret == ENOENT || ret == EPERM || ret == ENOSPC) { delete_cache_file(node->parent); node->parent->utime = 0; *flush = 1; remove_node(node); ret = EIO; } return ret; } if (gui_optimize && is_cached(node) && time(NULL) > (node->utime +file_refresh)) { update_directory(node->parent, file_refresh); if (!exists(node) || node->parent == NULL) return ENOENT; } if (is_cached(node) && access(node->cache_path, F_OK) == 0) { if (time(NULL) <= (node->utime + file_refresh)) return 0; int modified = 0; off_t old_size = node->size; ret = dav_get_file(node->path, node->cache_path, &node->size, &node->etag, &node->smtime, &modified); if (!ret) { if (modified) { node->mtime = node->smtime; node->atime = node->smtime; set_cache_file_times(node); } node->utime = time(NULL); cache_size += node->size - old_size; } } else { if (create_cache_file(node) != 0) return EIO; time_t smtime = 0; char *etag = NULL; ret = dav_get_file(node->path, node->cache_path, &node->size, &etag, &smtime, NULL); if (!ret) { if (node->etag) free(node->etag); node->etag = etag; if (smtime) { node->atime = smtime; node->mtime = smtime; node->smtime = smtime; } node->utime = time(NULL); set_cache_file_times(node); cache_size += node->size; } else { if (ret == ENOENT) { delete_cache_file(node->parent); node->parent->utime = 0; *flush = 1; remove_node(node); } delete_cache_file(node); if (etag) free(etag); } } return ret; } static off_t write_dir(dav_node *dir, int fd) { off_t size = write_dir_entry(fd, 0, dir, "."); if (size > 0 && dir->parent != NULL) size = write_dir_entry(fd, size, dir->parent, ".."); dav_node *node = dir->childs; while (size > 0 && node) { size = write_dir_entry(fd, size, node, node->name); node = node->next; } if (size > 0) size = write_dir_entry(fd, size, NULL, NULL); return size; } /* Permanent cache maintenance. */ /* Checks whether there is an cache directory for the server host, path path, mountpoint mpoint and the default_user in the top level cache directory dir. If not it will create one. In case of an error it will print an error message and terminate the program. dir : The top level cache directory. host : Domain name of the server. path : Path of the resource onthe server. mpoint : Mount point. */ static void check_cache_dir(const char *dir, const char *host, const char *path, const char *mpoint) { struct passwd *pw = getpwuid(default_uid); if (!pw || !pw->pw_name) error(EXIT_FAILURE, 0, _("can't read user data base")); char *dir_name = ne_concat(host, path, mpoint + 1, "+", pw->pw_name, NULL); *(dir_name + strlen(host) + strlen(path) - 1) = '+'; char *pos = strchr(dir_name, '/'); while (pos) { *pos = '-'; pos = strchr(pos, '/'); } DIR *tl_dir = opendir(dir); if (!tl_dir) error(EXIT_FAILURE, 0, _("can't open cache directory %s"), dir); struct dirent *de = readdir(tl_dir); while (de && !cache_dir) { if (strcmp(de->d_name, dir_name) == 0) { cache_dir = ne_concat(dir, "/", de->d_name, NULL); } de = readdir(tl_dir); } closedir(tl_dir); if (!cache_dir) { cache_dir = ne_concat(dir, "/", dir_name, NULL); if (mkdir(cache_dir, S_IRWXU) != 0) error(EXIT_FAILURE, 0, _("can't create cache directory %s"), cache_dir); } free(dir_name); struct stat st; if (stat(cache_dir, &st) != 0) error(EXIT_FAILURE, 0, _("can't access cache directory %s"), cache_dir); if (st.st_uid != geteuid()) error(EXIT_FAILURE, 0, _("wrong owner of cache directory %s"), cache_dir); if ((DAV_A_MASK & st.st_mode) != S_IRWXU) error(EXIT_FAILURE, 0, _("wrong permissions set for cache directory %s"), cache_dir); } /* Searches cache for orphaned files and puts them into backup. */ static void clean_cache(void) { DIR *dir = opendir(cache_dir); if (!dir) return; struct dirent *de = readdir(dir); while (de) { if (strcmp(de->d_name, ".") != 0 && strcmp(de->d_name, "..") != 0 && strcmp(de->d_name, DAV_INDEX) != 0) { char *path = ne_concat(cache_dir, "/", de->d_name, NULL); int i = 0; dav_node *node = NULL; while (!node && i < table_size) { node = table[i]; while (node && (!is_reg(node) || !node->cache_path || strcmp(path, node->cache_path) != 0)) { node = node->table_next; } i++; } if (!node) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("found orphaned file in cache:")); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), " %s", path); dav_node *found = new_node(backup, default_file_mode); found->mode &= ~(S_IRWXG | S_IRWXO); found->cache_path = path; found->name = ne_strdup(de->d_name); attr_from_cache_file(found); backup->mtime = time(NULL); backup->ctime = backup->mtime; } else { free(path); } } de = readdir(dir); } closedir(dir); } /* Reads the index file of the cache and creates a tree of nodes from the XML data in the index file. Will be called when the cache module is initialized. The root node must already exist. If an error occurs all nodes created up to this will be deleted. */ static void parse_index(void) { char *index = ne_concat(cache_dir, "/", DAV_INDEX, NULL); FILE *idx = fopen(index, "r"); if (!idx) { free(index); return; } char *buf = ne_malloc(DAV_XML_BUF_SIZE); size_t len = fread(buf, 1, DAV_XML_BUF_SIZE, idx); if (len <= 0) { free(buf); fclose(idx); free(index); return; } dav_node *node = root; ne_xml_parser *parser = ne_xml_create(); ne_xml_push_handler(parser, xml_start_root, NULL, xml_end_root, &node); ne_xml_push_handler(parser, xml_start_backup, NULL, xml_end_backup, &node); ne_xml_push_handler(parser, xml_start_dir, NULL, xml_end_dir, &node); ne_xml_push_handler(parser, xml_start_reg, NULL, xml_end_reg, &node); ne_xml_push_handler(parser, xml_start_date, xml_cdata, xml_end_date, &node); ne_xml_push_handler(parser, xml_start_decimal, xml_cdata, xml_end_decimal, &node); ne_xml_push_handler(parser, xml_start_mode, xml_cdata, xml_end_mode, &node); ne_xml_push_handler(parser, xml_start_size, xml_cdata, xml_end_size, &node); if (strstr(buf, "") == buf) { ne_xml_push_handler(parser, xml_start_string, xml_cdata, xml_end_string, &node); } else { ne_xml_push_handler(parser, xml_start_string, xml_cdata, xml_end_string_old, &node); } int ret = 0; while (len > 0 && !ret) { ret = ne_xml_parse(parser, buf, len); len = fread(buf, 1, DAV_XML_BUF_SIZE, idx); } ret = ne_xml_parse(parser, buf, 0); free(buf); if (ret) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("error parsing %s"), index); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _(" at line %i"), ne_xml_currentline(parser)); delete_tree(root); } ne_xml_destroy(parser); fclose(idx); free(index); } /* Removes the files with lowest access time from cache until the cache size is smaller than max_cache_size or there are no more files that may be removed. */ static void resize_cache(void) { if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "resize cache: %llu of %llu MiBytes used.", (cache_size + 0x80000) / 0x100000, (max_cache_size + 0x80000) / 0x100000); while (1) { dav_node *least_recent = NULL; cache_size = 0; size_t i; for (i = 0; i < table_size; i++) { dav_node *node = table[i]; while (node) { if (is_cached(node)) { if (!is_open(node) && !is_dirty(node) && !is_created(node) && !is_backup(node) && (!least_recent || node->atime < least_recent->atime)) least_recent = node; cache_size += node->size; } node = node->table_next; } } if (cache_size < max_cache_size) break; if (!least_recent) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("open files exceed max cache size by %llu MiBytes"), (cache_size - max_cache_size + 0x80000) / 0x100000); break; } delete_cache_file(least_recent); cache_size -= least_recent->size; } if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " %llu of %llu MiBytes used.", (cache_size + 0x80000) / 0x100000, (max_cache_size + 0x80000) / 0x100000); return; } /* Creates an entry for node in the index file file, removes the node from the tree and the hash table and deletes the node. The entry will be indented by indent to get proper alignment of nested entries. node : the node. file : the index file for this cache directory. indent : a string of spaces to indent the entry. return value : 0 on success, -1 if an error occurs. */ static int write_node(dav_node *node, FILE *file, const char *indent) { if (node == root) { if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "writing root %p", node); if (fprintf(file, "\n", type[ROOT], DAV_XML_NS) < 0) return -1; } else if (node == backup) { if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "writing backup %p", node); if (fprintf(file, "%s\n", indent, type[BACKUP]) < 0) return -1; } else if (is_dir(node)) { if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "writing directory %p", node); if (fprintf(file, "%s\n", indent, type[DDIR]) < 0) return -1; } else { if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "writing file %p", node); if (fprintf(file, "%s\n", indent, type[REG]) < 0) return -1; } char *ind = ne_concat(indent, " ", NULL); if (node != root && !is_backup(node)) { if (fprintf(file, "%s\n", ind, type[PATH], node->path, type[PATH]) < 0) return -1; } if (node != root && node != backup) { char *name = dav_conv_to_utf_8(node->name); int ret = fprintf(file, "%s\n", ind, type[NAME], name, type[NAME]); free(name); if (ret < 0) return -1; } if (is_reg(node) && node->cache_path != NULL) { char *path = dav_conv_to_utf_8(node->cache_path); int ret = fprintf(file, "%s\n", ind, type[CACHE_PATH], path, type[CACHE_PATH]); free(path); if (ret < 0) return -1; } if (is_reg(node) && !is_backup(node) && node->etag != NULL) { if (fprintf(file, "%s\n", ind, type[ETAG], node->etag, type[ETAG]) < 0) return -1; } if (is_reg(node)) { if (fprintf(file, "%s%lli\n", ind, type[SIZE], (long long int) node->size, type[SIZE]) < 0) return -1; } char t[64]; struct tm *lt = localtime(&node->atime); strftime(t, 64, "(%FT%T%z)", lt); if (fprintf(file, "%s%li%s\n", ind, type[ATIME], node->atime, t, type[ATIME]) < 0) return -1; lt = localtime(&node->mtime); strftime(t, 64, "(%FT%T%z)", lt); if (fprintf(file, "%s%li%s\n", ind, type[MTIME], node->mtime, t, type[MTIME]) < 0) return -1; lt = localtime(&node->ctime); strftime(t, 64, "(%FT%T%z)", lt); if (fprintf(file, "%s%li%s\n", ind, type[CTIME], node->ctime, t, type[CTIME]) < 0) return -1; if (is_reg(node) && !is_backup(node)) { lt = localtime(&node->smtime); strftime(t, 64, "(%FT%T%z)", lt); if (fprintf(file, "%s%li%s\n", ind, type[SMTIME], node->smtime, t, type[SMTIME]) < 0) return -1; } if (is_reg(node) && !is_backup(node) && (is_dirty(node) || is_created(node))) { lt = localtime(&node->lock_expire); strftime(t, 64, "(%FT%T%z)", lt); if (fprintf(file, "%s%li%s\n", ind, type[LOCK_EXPIRE], node->lock_expire, t, type[LOCK_EXPIRE]) < 0) return -1; if (fprintf(file, "%s%i\n", ind, type[REMOTE_EXISTS], node->remote_exists, type[REMOTE_EXISTS]) < 0) return -1; if (fprintf(file, "%s%i\n", ind, type[DIRTY], node->dirty, type[DIRTY]) < 0) return -1; } if (node != backup) { if (fprintf(file, "%s%o\n", ind, type[MODE], node->mode, type[MODE]) < 0) return -1; } if (node != root && node != backup) { if (fprintf(file, "%s%i\n", ind, type[UID], node->uid, type[UID]) < 0) return -1; if (fprintf(file, "%s%i\n", ind, type[GID], node->gid, type[GID]) < 0) return -1; } dav_node *child = node->childs; while (child != NULL) { if (write_node(child, file, ind) < 0) return -1; child = child->next; } if (node == root) { if (fprintf(file, "%s\n", indent, type[ROOT]) < 0) return -1; } else if (node == backup) { if (fprintf(file, "%s\n", indent, type[BACKUP]) < 0) return -1; } else if (is_dir(node)) { if (fprintf(file, "%s\n", indent, type[DDIR]) < 0) return -1; } else { if (fprintf(file, "%s\n", indent, type[REG]) < 0) return -1; } free(ind); return 0; } /* Concatenate data from subsequent callbacks into xml_data. */ static int xml_cdata(void *userdata, int state, const char *cdata, size_t len) { if (!xml_data) { xml_data = ne_strndup(cdata, len); } else { char *add = ne_strndup(cdata, len); char *new = ne_concat(xml_data, add, NULL); free(add); free(xml_data); xml_data = new; } return 0; } /* Finishes the creation of directory backup. userdata is set to the parent of backup. return value : allways 0. */ static int xml_end_backup(void *userdata, int state, const char *nspace, const char *name) { dav_node *dir = *((dav_node **) userdata); *((dav_node **) userdata) = dir->parent; if (dir->path) { free(dir->path); dir->path = NULL; } if (dir->name) { free(dir->name); dir->name = NULL; } delete_cache_file(dir); if (dir->etag) { free(dir->etag); dir->etag = NULL; } dir->smtime = 0; return 0; } /* xml_data must be a string representing a value as a decimal number. Its value is assigned to the appropriate member of node userdata. state indacates the member of node. return value : 0 on success, -1 if an error occurs. */ static int xml_end_date(void *userdata, int state, const char *nspace, const char *name) { if (!xml_data) return -1; char *tail; time_t t = strtol(xml_data, &tail, 10); if (*tail != '\0' && *tail != '(') { free(xml_data); xml_data = NULL; return -1; } free(xml_data); xml_data = NULL; switch (state) { case ATIME: (*((dav_node **) userdata))->atime = t; break; case MTIME: (*((dav_node **) userdata))->mtime = t; break; case CTIME: (*((dav_node **) userdata))->ctime = t; break; case SMTIME: (*((dav_node **) userdata))->smtime = t; break; case LOCK_EXPIRE: (*((dav_node **) userdata))->lock_expire = t; break; default: return -1; } return 0; } /* xml_dat must be a string representation of a decimal number. Its value is assigned to the appropriate member of node userdata. state indacates the member of node. return value : 0 on success, -1 if an error occurs. */ static int xml_end_decimal(void *userdata, int state, const char *nspace, const char *name) { if (!xml_data) return -1; char *tail; long int n = strtol(xml_data, &tail, 10); if (*tail != '\0') { free(xml_data); xml_data = NULL; return -1; } free(xml_data); xml_data = NULL; switch (state) { case UID: (*((dav_node **) userdata))->uid = n; break; case GID: (*((dav_node **) userdata))->gid = n; break; case DIRTY: (*((dav_node **) userdata))->dirty = n; break; case REMOTE_EXISTS: (*((dav_node **) userdata))->remote_exists = n; break; default: return -1; } return 0; } /* Finishes the creation of a directory. Members name and path of the not must not be NULL, or the direcotry tree will be deleted. userdata is set to the parent of the directory. return value : allways 0. */ static int xml_end_dir(void *userdata, int state, const char *nspace, const char *name) { dav_node *dir = *((dav_node **) userdata); *((dav_node **) userdata) = dir->parent; if (!dir->name || !dir->path) { delete_tree(dir); return 0; } delete_cache_file(dir); if (dir->etag) { free(dir->etag); dir->etag = NULL; } dir->size = 0; dir->smtime = 0; return 0; } /* xml_data must be a string representation of an octal number. Its value is assigned to member mode of node userdata. return value : 0 on success, -1 if an error occurs. */ static int xml_end_mode(void *userdata, int state, const char *nspace, const char *name) { if (!xml_data) return -1; char *tail; (*((dav_node **) userdata))->mode = strtol(xml_data, &tail, 8); if (*tail != '\0') { free(xml_data); xml_data = NULL; return -1; } free(xml_data); xml_data = NULL; return 0; } /* Finishes the creation of a node of a regular file. Members path, name and cach_path must not be NULL and the cache file must exist, or the node will be deleted. If the file is in directory backup, member path may be NULL. userdata is set to the parent of the file node. return value : allways 0. */ static int xml_end_reg(void *userdata, int state, const char *nspace, const char *name) { dav_node *reg = *((dav_node **) userdata); *((dav_node **) userdata) = reg->parent; struct stat st; if (!reg->name || !reg->cache_path || stat(reg->cache_path, &st) != 0 || reg->size != st.st_size || (!reg->path && !is_backup(reg))) { if (reg->cache_path) { free(reg->cache_path); reg->cache_path = NULL; } delete_tree(reg); return 0; } cache_size += reg->size; if (is_backup(reg)) { if (reg->path) { free(reg->path); reg->path = NULL; } if (reg->etag) { free(reg->etag); reg->etag = NULL; } reg->smtime = 0; } else if (is_dirty(reg) || is_created(reg)) { add_to_changed(reg); set_upload_time(reg); } return 0; } /* Finishes the creation of the root directory. userdata must be equal to root, or the complete tree will be deleted. Members path, name, cache_path and etag will be NULL. return value : allways 0. */ static int xml_end_root(void *userdata, int state, const char *nspace, const char *name) { dav_node *dir = *((dav_node **) userdata); if (dir != root) delete_tree(dir); if (dir->path) { free(dir->path); dir->path = NULL; } if (dir->name) { free(dir->name); dir->name = NULL; } delete_cache_file(dir); if (dir->etag) { free(dir->etag); dir->etag = NULL; } dir->size = 0; dir->smtime = 0; return 0; } /* xml_data must be a string representation of a decimal number representing a file size. Its value is assigned to member size of the node. return value : 0 on success, -1 if an error occurs. */ static int xml_end_size(void *userdata, int state, const char *nspace, const char *name) { if (!xml_data) return -1; char *tail; #if _FILE_OFFSET_BITS == 64 (*((dav_node **) userdata))->size = strtoll(xml_data, &tail, 10); #else (*((dav_node **) userdata))->size = strtol(xml_data, &tail, 10); #endif if (*tail != '\0') { free(xml_data); xml_data = NULL; return -1; } free(xml_data); xml_data = NULL; return 0; } /* Stores xml_data in the appropriate member of node userdata. state indicates the member of node. return value : 0 on success, -1 if an error occurs. */ static int xml_end_string(void *userdata, int state, const char *nspace, const char *name) { if (!xml_data) return -1; switch (state) { case PATH: (*((dav_node **) userdata))->path = xml_data; break; case NAME: (*((dav_node **) userdata))->name = dav_conv_from_utf_8(xml_data); free(xml_data); break; case CACHE_PATH: (*((dav_node **) userdata))->cache_path = dav_conv_from_utf_8(xml_data); free(xml_data); break; case ETAG: (*((dav_node **) userdata))->etag = xml_data; break; default: free(xml_data); xml_data = NULL; return -1; } xml_data = NULL; return 0; } /* Stores xml_data in the appropriate member of node userdata. state indicates the member of node. return value : 0 on success, -1 if an error occurs. */ static int xml_end_string_old(void *userdata, int state, const char *nspace, const char *name) { if (!xml_data) return -1; switch (state) { case PATH: (*((dav_node **) userdata))->path = xml_data; break; case NAME: (*((dav_node **) userdata))->name = xml_data; break; case CACHE_PATH: (*((dav_node **) userdata))->cache_path = xml_data; break; case ETAG: (*((dav_node **) userdata))->etag = xml_data; break; default: free(xml_data); xml_data = NULL; return -1; } xml_data = NULL; return 0; } /* Will be called when the start tag of a XML-element is found, and tests wheather it is a BACKUP elemt. In this case parent must be ROOT. userdata will be set to the newly created node backup and also the global variable backup will be set. return value : 0 not responsible for this kind of element. BACKUP if it is the backup element -1 XML error, parent is not root. */ static int xml_start_backup(void *userdata, int parent, const char *nspace, const char *name, const char **atts) { if (strcmp(name, type[BACKUP]) != 0) return 0; if (parent != ROOT) return -1; dav_node *dir = new_node(*((dav_node **) userdata), S_IFDIR | S_IRWXU); backup = dir; *((dav_node **) userdata) = dir; return BACKUP; } /* Will be called when the start tag of a XML-element is found, and tests whether it is an element that contains a date. In this case the parent must be either a directory (including root and backup) or a file node. return value : 0 not responsible for this kind of element. A value that indicates which member of a node the decimal value must be assigned to. -1 XML error, parent must not contain this property. */ static int xml_start_date(void *userdata, int parent, const char *nspace, const char *name, const char **atts) { int ret; if (strcmp(name, type[ATIME]) == 0) { ret = ATIME; } else if (strcmp(name, type[MTIME]) == 0) { ret = MTIME; } else if (strcmp(name, type[CTIME]) == 0) { ret = CTIME; } else if (strcmp(name, type[SMTIME]) == 0) { ret = SMTIME; } else if (strcmp(name, type[LOCK_EXPIRE]) == 0) { ret = LOCK_EXPIRE; } else { return 0; } if (parent != DDIR && parent != REG && parent != BACKUP && parent != ROOT) return -1; return ret; } /* Will be called when the start tag of a XML-element is found, and tests whether it is an element that contains a decimal value. In this case the parent must be either a directory (including root and backup) or a file node. If parent is ROOT or BACKUP the element type must not be UID or GID. DIRTY and REMOTE_EXISTS are only allowed for parent REG. return value : 0 not responsible for this kind of element. A value that indicates which member of a node the decimal value must be assigned to. -1 XML error, parent must not contain this property. */ static int xml_start_decimal(void *userdata, int parent, const char *nspace, const char *name, const char **atts) { int ret; if (strcmp(name, type[UID]) == 0) { ret = UID; } else if (strcmp(name, type[GID]) == 0) { ret = GID; } else if (strcmp(name, type[DIRTY]) == 0) { ret = DIRTY; } else if (strcmp(name, type[REMOTE_EXISTS]) == 0) { ret = REMOTE_EXISTS; } else { return 0; } if (parent != DDIR && parent != REG && parent != BACKUP && parent != ROOT) return -1; if ((parent == BACKUP || parent == ROOT) && (ret == UID || ret == GID)) return -1; if (parent != REG && (ret == DIRTY || ret == REMOTE_EXISTS)) return -1; return ret; } /* Will be called when the start tag of a XML-element is found, and tests whether it is an directory element. Inthis case parent must be a directory (including root but nur backup). userdata will be set to the newly created directory node. return value : 0 not responsible for this kind of element. DDIR if it is a directory element. -1 XML error, parent must not contain this property. */ static int xml_start_dir(void *userdata, int parent, const char *nspace, const char *name, const char **atts) { if (strcmp(name, type[DDIR]) != 0) return 0; if (parent != DDIR && parent != ROOT) return -1; dav_node *dir = new_node(*((dav_node **) userdata), default_dir_mode); *((dav_node **) userdata) = dir; return DDIR; } /* Will be called when the start tag of a XML-element is found, and tests whether it is an mode element. In this case parent must be a regular node or a directory (including root but not backup). return value : 0 not responsible for this kind of element. MODE if it is a mode element. -1 XML error, parent must not contain this property. */ static int xml_start_mode(void *userdata, int parent, const char *nspace, const char *name, const char **atts) { if (strcmp(name, type[MODE]) != 0) return 0; if (parent != DDIR && parent != REG && parent != ROOT) return -1; return MODE; } /* Will be called when the start tag of a XML-element is found, and tests whether it is an element that represents a file node. In this case parent must be a directory (including root and backup). userdata will be set to the newly created file node. return value : 0 not responsible for this kind of element. REG if the element represents a file node. -1 XML error, parent must not contain this property. */ static int xml_start_reg(void *userdata, int parent, const char *nspace, const char *name, const char **atts) { if (strcmp(name, type[REG]) != 0) return 0; if (parent != DDIR && parent != BACKUP && parent != ROOT) return -1; dav_node *reg = new_node(*((dav_node **) userdata), default_file_mode); *((dav_node **) userdata) = reg; if (parent != BACKUP) reg->remote_exists = 1; return REG; } /* Will be called when the start tag of a XML-element is found, and tests whether the element represents the root node. In this case parent must be 0. return value : 0 not responsible for this kind of element. ROOT if it is the root node element. -1 XML error, root property with parent not equal 0. */ static int xml_start_root(void *userdata, int parent, const char *nspace, const char *name, const char **atts) { if (strcmp(name, type[ROOT]) != 0) return 0; if (parent != 0) return -1; return ROOT; } /* Will be called when the start tag of a XML-element is found, and tests whether it is an element that contains the file size. In this case the parent must be a file node. return value : 0 not responsible for this kind of element. SIZE if the element represents the file size. value must be assigned to. -1 XML error, parent must not contain this property. */ static int xml_start_size(void *userdata, int parent, const char *nspace, const char *name, const char **atts) { if (strcmp(name, type[SIZE]) != 0) { return 0; } if (parent != REG) return -1; return SIZE; } /* Will be called when the start tag of a XML-element is found, and tests whether it is an element that rcontains a string. In this case parent must be a directory or a file node. return value : 0 not responsible for this kind of element. A value that indicates which member of a node the string must be assigned to. -1 XML error, parent must not contain this property. */ static int xml_start_string(void *userdata, int parent, const char *nspace, const char *name, const char **atts) { int ret; if (strcmp(name, type[PATH]) == 0) { ret = PATH; } else if (strcmp(name, type[NAME]) == 0) { ret = NAME; } else if (strcmp(name, type[CACHE_PATH]) == 0) { ret = CACHE_PATH; } else if (strcmp(name, type[ETAG]) == 0) { ret = ETAG; } else { return 0; } if (parent != DDIR && parent != REG) return -1; return ret; } /* Auxiliary. */ /* Tries to evaluate the alignment of structure dav_node. It allocates dav_node structures and random length strings alternatively and inspects the address. return value : the alignment (e.g. alignment = 4 means addresses are always multiples of 4 */ static size_t test_alignment() { srand(time(0)); size_t align = 64; size_t trials = 100; char *s[trials]; dav_node *n[trials]; size_t j = 0; while (align > 0 && j < trials) { s[j] = (char *) ne_malloc((rand() / (RAND_MAX / 1024)) % (4 *align)); n[j] = (dav_node *) ne_malloc(sizeof(dav_node)); while (align > 0 && ((size_t) n[j] % align) > 0) align /= 2; ++j; } for (j = 0; j < trials; j++) { if (n[j]) free(n[j]); if (s[j]) free(s[j]); } return align; } davfs2-1.5.5/src/kernel_interface.h0000644000175000017500000001055712701703722014101 00000000000000/* kernel_interface.h: interface to fuse and coda kernel mocule. Copyright (C) 2006, 2007, 2008, 2009 Werner Baumann This file is part of davfs2. davfs2 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. davfs2 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 davfs2; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef DAV_KERNEL_INTERFACE_H #define DAV_KERNEL_INTERFACE_H /* Function type definitions */ /*===========================*/ /* Call back function to be passed to dav_init_kernel_interface(). Will be called to see whether the file system is still mounted. return value : 1 is mounted, 0 is not mounted. */ typedef int (*dav_is_mounted_fn)(void); /* Typedef of the message loop of the specific kernel interfaces. The real function will be returned by dav_init_kernel_interface(). device : File descriptor of the open fuse device. mpoint : String with the name of the mount point. buf_size : Size of the buffer for communication with the kernel module. idle_t : Time to wait for upcalls before calling dav_tidy_cache(). is_mounted_fn : Call back function to check if still mounted. keep_on_running : Pointer to run flag. dbg : send debug messages to syslog if dbg != 0 */ typedef void (*dav_run_msgloop_fn)(int device, char *mpoint, size_t bufsize, time_t idle_time, dav_is_mounted_fn is_mounted, volatile int *keep_on_running, int dbg); /* Function prototypes */ /*=====================*/ /* Opens the device for communication with the kernel file system, if possible mounts the file system and updates the interface data (dev, dav_ran_msgloop_fn, mdata, kernel_fs and buf_size). In case of an error it prints an error message and terminates the program. dev : File descriptor of the open device for communication with the kernel file system. msg_loop : The specific message loop function that will process the kernel upcalls. mdata : That mount data that will be passed to the mount function. kernel_fs : Type of the kernel file system to us (fuse or coda). If this does not work, the other file system will be tried. The name of the file system that is really used is returned. If NULL, fuse is tried first. buf_size : Size of the buffer for communication with the kernel file system (fuse only). The size passed to this function is checked against the requirements of the kernel fs and updated if necessary. url : Server url. mpoint : Mount point. mopts : Mount options. owner : The owner of the file system (fuse only). group : Group the file system belongs to (fuse only). mode : Mode of the root node (fuse only). return value : 0: the file system has not yet been mounted 1: the file system has been mounted successfully. */ int dav_init_kernel_interface(int *dev, dav_run_msgloop_fn *msg_loop, void **mdata, char **kernel_fs, size_t *buf_size, const char *url, const char *mpoint, const dav_args *args); /* Message loop for coda kernel module CODA_KERNEL_VERSION 3. Parameters see dav_run_msgloop_fn(). */ void dav_coda_loop(int device, char *mpoint, size_t bufsize, time_t idle_time, dav_is_mounted_fn is_mounted, volatile int *keep_on_running, int dbg); /* Message loop for fuse kernel module with major number 7. Parameters see dav_run_msgloop_fn(). */ void dav_fuse_loop(int device, char *mpoint, size_t bufsize, time_t idle_time, dav_is_mounted_fn is_mounted, volatile int *keep_on_running, int dbg); #endif /* DAV_KERNEL_INTERFACE_H */ davfs2-1.5.5/src/dav_coda.c0000644000175000017500000006120012701706510012321 00000000000000/* dav_coda.c: interface to the Coda kernel module CODA_KERNEL_VERSION 3. Copyright (C) 2006, 2007, 2008, 2009 Werner Baumann This file is part of davfs2. davfs2 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. davfs2 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 davfs2; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "config.h" #include #ifdef HAVE_FCNTL_H #include #endif #ifdef HAVE_LIBINTL_H #include #endif #ifdef HAVE_LIMITS_H #include #endif #ifdef HAVE_STDDEF_H #include #endif #ifdef HAVE_STDINT_H #include #endif #include #include #include #ifdef HAVE_SYSLOG_H #include #endif #include #ifdef HAVE_UNISTD_H #include #endif #ifdef HAVE_SYS_STAT_H #include #endif #ifdef HAVE_SYS_TIME_H #include #endif #ifdef HAVE_SYS_TYPES_H #include #endif #include "defaults.h" #include "mount_davfs.h" #include "cache.h" #include "kernel_interface.h" #include "coda.h" #ifdef ENABLE_NLS #define _(String) gettext(String) #else #define _(String) String #endif /* Constants */ /*===========*/ /* Size of buffer for communication with the kernel module. */ #define BUF_SIZE 2048 /* This constants are used by davfs2 to fill fields of struct CodaFid that are not used by davfs2, but are expected by coda. */ #define DAV_VOL 0x01234567 #define DAV_VNODE 0xffffffff /* Private global variables */ /*==========================*/ /* Buffer used for communication with the kernel module (in and out). */ static char *buf; /* The preferred blocksize used by the local filesystem for cache files. Used by set_attr(). */ static unsigned int blocksize; /* Alignment boundary of dav_node in byte. Used to compute file numbers from node pointers. */ static size_t alignment; /* Send debug messages to syslog if != 0. */ int debug; /* Private function prototypes */ /*=============================*/ /* Functions to handle upcalls fromthe kernel module. */ static uint32_t coda_access(void); static uint32_t coda_close(void); static uint32_t coda_create(void); static uint32_t coda_getattr(void); static uint32_t coda_lookup(void); static uint32_t coda_mkdir(void); static uint32_t coda_open_by_fd(void); static uint32_t coda_root(void); static uint32_t coda_setattr(void); static uint32_t coda_statfs(void); /* Functions that will do a downcall to the kernel module. */ static void coda_flush(int device); /* Auxiliary functions. */ static off_t write_dir_entry(int fd, off_t off, const dav_node *node, const char *name); static void set_attr(struct coda_vattr *attr, const dav_node *node); /* Public functions */ /*==================*/ void dav_coda_loop(int device, char *mpoint, size_t bufsize, time_t idle_time, dav_is_mounted_fn is_mounted, volatile int *keep_on_running, int dbg) { debug = dbg; if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "coda kernel version 3"); buf = malloc(BUF_SIZE); if (!buf) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("can't allocate message buffer")); return; } static int flush = 0; alignment = dav_register_kernel_interface(&write_dir_entry, &flush, &blocksize); struct timeval tv; tv.tv_sec = idle_time; tv.tv_usec = 0; time_t last_tidy_cache = time(NULL); while (*keep_on_running) { fd_set fds; FD_ZERO(&fds); FD_SET(device, &fds); int ret = select(device + 1, &fds, NULL, NULL, &tv); if (ret > 0) { ssize_t bytes_read = read(device, buf, BUF_SIZE); if (bytes_read <= 0) { if (bytes_read == 0 || errno == EINTR || errno == EAGAIN) { if (time(NULL) < (last_tidy_cache + idle_time)) { tv.tv_sec = last_tidy_cache + idle_time - time(NULL); } else { tv.tv_sec = 0; } continue; } break; } } else if (ret == 0) { if (!is_mounted()) break; if (dav_tidy_cache() == 0) { tv.tv_sec = idle_time; last_tidy_cache = time(NULL); } else { tv.tv_sec = 0; } continue; } else { break; } struct coda_in_hdr *ih = (struct coda_in_hdr *) buf; struct coda_out_hdr *oh = (struct coda_out_hdr *) buf; uint32_t len; switch (ih->opcode) { case CODA_ROOT: len = coda_root(); break; case CODA_OPEN_BY_FD: len = coda_open_by_fd(); break; case CODA_OPEN: if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "CODA_OPEN:"); oh->result = ENOSYS; len = sizeof(struct coda_out_hdr); break; case CODA_CLOSE: len = coda_close(); last_tidy_cache = 0; break; case CODA_IOCTL: if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "CODA_IOCTL:"); oh->result = ENOSYS; len = sizeof(struct coda_out_hdr); break; case CODA_GETATTR: len = coda_getattr(); break; case CODA_SETATTR: len = coda_setattr(); break; case CODA_ACCESS: len = coda_access(); break; case CODA_LOOKUP: len = coda_lookup(); break; case CODA_CREATE: len = coda_create(); break; case CODA_REMOVE: { struct coda_remove_in *in = (struct coda_remove_in *) buf; dav_node *node = *((dav_node **) &(in->VFid.opaque[2])); if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "CODA_REMOVE:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " p %p, %s", node, buf + in->name); } oh->result = dav_remove(node, buf + in->name, ih->uid); len = sizeof(struct coda_out_hdr); break; } case CODA_LINK: if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "CODA_LINK:"); oh->result = ENOSYS; len = sizeof(struct coda_out_hdr); break; case CODA_RENAME: { struct coda_rename_in *in = (struct coda_rename_in *) buf; dav_node *src = *((dav_node **) &(in->sourceFid.opaque[2])); dav_node *dst = *((dav_node **) &(in->destFid.opaque[2])); if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "CODA_RENAME:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " sp %p, %s", src, buf + in->srcname); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " dp %p, %s", dst, buf + in->destname); } oh->result = dav_rename(src, buf + in->srcname, dst, buf + in->destname, ih->uid); len = sizeof(struct coda_out_hdr); break; } case CODA_MKDIR: len = coda_mkdir(); break; case CODA_RMDIR: { struct coda_rmdir_in *in = (struct coda_rmdir_in *) buf; dav_node *node = *((dav_node **) &(in->VFid.opaque[2])); if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "CODA_RMDIR:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " p %p, %s", node, buf + in->name); } oh->result = dav_rmdir(node, buf + in->name, ih->uid); len = sizeof(struct coda_out_hdr); break; } case CODA_SYMLINK: if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "CODA_SYMLINK:"); oh->result = ENOSYS; len = sizeof(struct coda_out_hdr); break; case CODA_READLINK: if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "CODA_READLINK:"); oh->result = ENOSYS; len = sizeof(struct coda_out_hdr); break; case CODA_FSYNC: { struct coda_fsync_in *in = (struct coda_fsync_in *) buf; dav_node *node = *((dav_node **) &(in->VFid.opaque[2])); if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "CODA_FSYNC:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " n %p", node); } oh->result = dav_sync(node); len = sizeof(struct coda_out_hdr); break; } case CODA_VGET: if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "CODA_VGET:"); oh->result = ENOSYS; len = sizeof(struct coda_out_hdr); break; case CODA_OPEN_BY_PATH: if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "CODA_OPEN_BY_PATH:"); oh->result = ENOSYS; len = sizeof(struct coda_out_hdr); break; case CODA_STATFS: len = coda_statfs(); break; case CODA_STORE: { struct coda_store_in *in = (struct coda_store_in *) buf; dav_node *node = *((dav_node **) &(in->VFid.opaque[2])); if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "CODA_STORE:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " n %p, f 0x%x", node, in->flags); } oh->result = dav_sync(node); len = sizeof(struct coda_out_hdr); break; } case CODA_RELEASE: len = coda_close(); last_tidy_cache = 0; break; default: if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "UNKNOWN CODA CALL %u", ih->opcode); oh->result = ENOSYS; len = sizeof(struct coda_out_hdr); break; } if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "RET: %s", strerror(oh->result)); ssize_t n = 0; ssize_t w = 0; while (n < len && w >= 0) { w = write(device, buf + n, len - n); n += w; } if (time(NULL) < (last_tidy_cache + idle_time)) { tv.tv_sec = last_tidy_cache + idle_time - time(NULL); } else { dav_tidy_cache(); tv.tv_sec = idle_time; last_tidy_cache = time(NULL); } if (flush) { coda_flush(device); flush = 0; } } } /* Private functions */ /*===================*/ /* Functions to handle upcalls fromthe kernel module. The cache module only uses data types from the C-library. For file access, mode and the like it only uses symbolic constants defined in the C-library. So the main porpose of this functions is to translate from kernel specific types and constants to types and constants from the C-library, and back. All of this functions return the amount of data in buf that is to be send to the kernel module. */ static uint32_t coda_access(void) { struct coda_in_hdr *ih = (struct coda_in_hdr *) buf; struct coda_access_in *in = (struct coda_access_in *) buf; dav_node *node = *((dav_node **) &(in->VFid.opaque[2])); struct coda_out_hdr *oh = (struct coda_out_hdr *) buf; if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "CODA_ACCESS:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " n %p, f %x", node, in->flags); } int how = (in->flags & C_A_R_OK) ? R_OK : 0; how |= (in->flags & C_A_W_OK) ? W_OK : 0; how |= (in->flags & C_A_X_OK) ? X_OK : 0; how |= (in->flags & C_A_F_OK) ? F_OK : 0; oh->result = dav_access(node, ih->uid, how); return sizeof(struct coda_out_hdr); } static uint32_t coda_close(void) { struct coda_in_hdr *ih = (struct coda_in_hdr *) buf; struct coda_close_in *in = (struct coda_close_in *) buf; dav_node *node = *((dav_node **) &(in->VFid.opaque[2])); struct coda_out_hdr *oh = (struct coda_out_hdr *) buf; if (debug) { if (ih->opcode == CODA_CLOSE) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "CODA_CLOSE:"); } else { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "CODA_RELEASE:"); } syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " n %p, f %x", node, in->flags); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " pid %i, pgid %i", ih->pid, ih->pgid); } int flags = 0; if ((in->flags & C_O_READ) && (in->flags & C_O_WRITE)) { flags = O_RDWR; } else if (in->flags & C_O_READ) { flags = O_RDONLY; } else if (in->flags & C_O_WRITE) { flags = O_WRONLY; } oh->result = dav_close(node, 0, flags, ih->pid, ih->pgid); return sizeof(struct coda_out_hdr); } static uint32_t coda_create(void) { struct coda_in_hdr *ih = (struct coda_in_hdr *) buf; struct coda_create_in *in = (struct coda_create_in *) buf; dav_node *parent = *((dav_node **) &(in->VFid.opaque[2])); struct coda_out_hdr *oh = (struct coda_out_hdr *) buf; struct coda_create_out *out = (struct coda_create_out *) buf; if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "CODA_CREATE:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " p %p, m %o", parent, in->mode); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " %s", buf + in->name); } dav_node *node = NULL; oh->result = dav_create(&node, parent, buf + in->name, ih->uid, in->mode & DAV_A_MASK); if (oh->result || !node) { if (!oh->result) oh->result = EIO; return sizeof(struct coda_out_hdr); } out->VFid.opaque[0] = DAV_VOL; out->VFid.opaque[1] = DAV_VNODE; out->VFid.opaque[3] = 0; *((dav_node **) &(out->VFid.opaque[2])) = node; set_attr(&out->attr, node); return sizeof(struct coda_create_out); } static uint32_t coda_getattr(void) { struct coda_in_hdr *ih = (struct coda_in_hdr *) buf; struct coda_getattr_in *in = (struct coda_getattr_in *) buf; dav_node *node = *((dav_node **) &(in->VFid.opaque[2])); struct coda_out_hdr *oh = (struct coda_out_hdr *) buf; struct coda_getattr_out *out = (struct coda_getattr_out *) buf; if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "CODA_GETATTR:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " n %p", node); } oh->result = dav_getattr(node, ih->uid); if (oh->result) return sizeof(struct coda_out_hdr); set_attr(&out->attr, node); return sizeof(struct coda_getattr_out); } static uint32_t coda_lookup(void) { struct coda_in_hdr *ih = (struct coda_in_hdr *) buf; struct coda_lookup_in *in = (struct coda_lookup_in *) buf; dav_node *parent = *((dav_node **) &(in->VFid.opaque[2])); struct coda_out_hdr *oh = (struct coda_out_hdr *) buf; struct coda_lookup_out *out = (struct coda_lookup_out *) buf; if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "CODA_LOOKUP:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " p %p, %s", parent, buf + in->name); } dav_node *node = NULL; oh->result = dav_lookup(&node, parent, buf + in->name, ih->uid); if (oh->result || !node) { if (!oh->result) oh->result = EIO; return sizeof(struct coda_out_hdr); } out->VFid.opaque[0] = DAV_VOL; out->VFid.opaque[1] = DAV_VNODE; out->VFid.opaque[3] = 0; *((dav_node **) &(out->VFid.opaque[2])) = node; out->vtype = (node->mode & S_IFDIR) ? CDT_DIR : CDT_REG; return sizeof(struct coda_lookup_out); } static uint32_t coda_mkdir(void) { struct coda_in_hdr *ih = (struct coda_in_hdr *) buf; struct coda_mkdir_in *in = (struct coda_mkdir_in *) buf; dav_node *parent = *((dav_node **) &(in->VFid.opaque[2])); struct coda_out_hdr *oh = (struct coda_out_hdr *) buf; struct coda_mkdir_out *out = (struct coda_mkdir_out *) buf; if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "CODA_MKDIR:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " p %p, %s", parent, buf + in->name); } dav_node *node = NULL; oh->result = dav_mkdir(&node, parent, buf + in->name, ih->uid, in->attr.va_mode & DAV_A_MASK); if (oh->result || !node) { if (!oh->result) oh->result = EIO; return sizeof(struct coda_out_hdr); } out->VFid.opaque[0] = DAV_VOL; out->VFid.opaque[1] = DAV_VNODE; out->VFid.opaque[3] = 0; *((dav_node **) &(out->VFid.opaque[2])) = node; set_attr(&out->attr, node); return sizeof(struct coda_mkdir_out); } static uint32_t coda_open_by_fd(void) { struct coda_in_hdr *ih = (struct coda_in_hdr *) buf; struct coda_open_by_fd_in *in = (struct coda_open_by_fd_in *) buf; dav_node *node = *((dav_node **) &(in->VFid.opaque[2])); struct coda_out_hdr *oh = (struct coda_out_hdr *) buf; struct coda_open_by_fd_out *out = (struct coda_open_by_fd_out *) buf; if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "CODA_OPEN_BY_FD:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " n %p, f %x", node, in->flags); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " pid %i, pgid %i", ih->pid, ih->pgid); } int flags = 0; if ((in->flags & C_O_READ) && (in->flags & C_O_WRITE)) { flags = O_RDWR; } else if (in->flags & C_O_READ) { flags = O_RDONLY; } else if (in->flags & C_O_WRITE) { flags = O_WRONLY; } flags |= (in->flags & C_O_TRUNC) ? O_TRUNC : 0; oh->result = dav_open(&out->fd, node, flags, ih->pid, ih->pgid, ih->uid, 0); if (oh->result || !out->fd) { if (!oh->result) oh->result = EIO; return sizeof(struct coda_out_hdr); } return sizeof(struct coda_open_by_fd_out); } static uint32_t coda_root(void) { struct coda_in_hdr *ih = (struct coda_in_hdr *) buf; struct coda_out_hdr *oh = (struct coda_out_hdr *) buf; struct coda_root_out *out = (struct coda_root_out *) buf; if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "CODA_ROOT:"); dav_node *node = NULL; oh->result = dav_root(&node, ih->uid); if (oh->result || !node) { if (!oh->result) oh->result = EIO; return sizeof(struct coda_out_hdr); } out->VFid.opaque[0] = DAV_VOL; out->VFid.opaque[1] = DAV_VNODE; out->VFid.opaque[3] = 0; *((dav_node **) &(out->VFid.opaque[2])) = node; return sizeof(struct coda_root_out); } static uint32_t coda_setattr(void) { struct coda_in_hdr *ih = (struct coda_in_hdr *) buf; struct coda_setattr_in *in = (struct coda_setattr_in *) buf; dav_node *node = *((dav_node **) &(in->VFid.opaque[2])); struct coda_out_hdr *oh = (struct coda_out_hdr *) buf; if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "CODA_SETATTR:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " n %p, m %o", node, in->attr.va_mode); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " uid: %i, gid: %i", in->attr.va_uid, in->attr.va_gid); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " at %li, mt %li", in->attr.va_atime.tv_sec, in->attr.va_mtime.tv_sec); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " ct %li, sz %llu", in->attr.va_ctime.tv_sec, in->attr.va_size); } oh->result = dav_setattr(node, ih->uid, in->attr.va_mode != USHRT_MAX, in->attr.va_mode & DAV_A_MASK, in->attr.va_uid != UINT32_MAX, in->attr.va_uid, in->attr.va_gid != UINT32_MAX, in->attr.va_gid, in->attr.va_atime.tv_sec != -1, in->attr.va_atime.tv_sec, in->attr.va_mtime.tv_sec != -1, in->attr.va_mtime.tv_sec, in->attr.va_size != UINT64_MAX, in->attr.va_size); return sizeof(struct coda_out_hdr); } static uint32_t coda_statfs(void) { struct coda_out_hdr *oh = (struct coda_out_hdr *) buf; struct coda_statfs_out *out = (struct coda_statfs_out *) buf; if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "CODA_STATFS:"); dav_stat *st = dav_statfs(); if (!st) { oh->result = EIO; return sizeof(struct coda_out_hdr); } out->stat.f_blocks = st->blocks; out->stat.f_bfree = st->bavail; out->stat.f_bavail = st->bavail; out->stat.f_files = st->files; out->stat.f_ffree = st->ffree; oh->result = 0; return sizeof(struct coda_statfs_out); } /* Functions that will do a downcall to the kernel module. */ /* Downcall to inform the kernel that nodes have been added or removed. */ static void coda_flush(int device) { struct coda_out_hdr *oh = (struct coda_out_hdr *) buf; if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " CODA_FLUSH:"); oh->opcode = CODA_FLUSH; oh->unique = 0; oh->result = 0; ssize_t n = 0; ssize_t w = 0; while (n < sizeof(struct coda_out_hdr) && w >= 0) { w = write(device, buf + n, sizeof(struct coda_out_hdr) - n); n += w; } } /* Auxiliary functions. */ /* Writes a struct venus_dirent to file with file descriptor fd. fd : An open file descriptor to write to. off : The current file size. name : File name; if NULL, the last, empty entry is written. return value : New size of the file. -1 in case of an error. */ static off_t write_dir_entry(int fd, off_t off, const dav_node *node, const char *name) { struct venus_dirent entry; size_t head = offsetof(struct venus_dirent, d_name); if (name) { entry.d_fileno = (size_t) node / alignment; entry.d_type = (S_ISDIR(node->mode)) ? CDT_DIR : CDT_REG; entry.d_namlen = (strlen(name) > CODA_MAXNAMLEN) ? CODA_MAXNAMLEN : strlen(name); entry.d_reclen = (head + entry.d_namlen +4) & ~3; } else { entry.d_fileno = 0; entry.d_type = 0; entry.d_namlen = 0; entry.d_reclen = (head + 4) & ~3; } size_t size = 0; ssize_t ret = 0; while (ret >= 0 && size < head) { ret = write(fd, (char *) &entry + size, head - size); size += ret; } if (size != head) return -1; ret = 0; while (ret >= 0 && size < (head + entry.d_namlen)) { ret = write(fd, name + size - head, entry.d_namlen - size + head); size += ret; } if (size != (head + entry.d_namlen)) return -1; ret = 0; while (ret >= 0 && size < entry.d_reclen) { ret = write(fd, "\0", 1); size += ret; } if (size != entry.d_reclen) return -1; return off + entry.d_reclen; } /* Translates attribute from node to attr. Note: Members va_fileid, v_gen, va_flags, va_rdev and va_filerev have no meaning for davfs. va_fileid is treated like d_fileno in struct venus_dirent, the other are set to zero. The meaning of va_type is not clear at all. Times are only set with 1 second precision, as this is the precision of the last-modified time in HTTP. */ static void set_attr(struct coda_vattr *attr, const dav_node *node) { attr->va_type = 0; attr->va_mode = node->mode; if (S_ISDIR(node->mode)) { attr->va_nlink = node->nref; } else { attr->va_nlink = 1; } attr->va_uid = node->uid; attr->va_gid = node->gid; attr->va_fileid = (size_t) node / alignment; attr->va_size = node->size; attr->va_blocksize = blocksize; attr->va_atime.tv_sec = node->atime; attr->va_atime.tv_nsec = 0; attr->va_mtime.tv_sec = node->mtime; attr->va_mtime.tv_nsec = 0; attr->va_ctime.tv_sec = node->ctime; attr->va_ctime.tv_nsec = 0; attr->va_gen = 0; attr->va_flags = 0; attr->va_rdev = 0; attr->va_bytes = node->size; attr->va_filerev = 0; } davfs2-1.5.5/src/mount_davfs.h0000644000175000017500000002040612460776604013133 00000000000000/* mount_davfs.h: structure to collect arguments and options. Copyright (C) 2006, 2007, 2008, 2009, 2014 Werner Baumann This file is part of davfs2. davfs2 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. davfs2 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 davfs2; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef DAV_MOUNT_DAVFS_H #define DAV_MOUNT_DAVFS_H /* Data Types */ /*============*/ /* This data structure holds almost everything davfs gathers while reading and checking command line and configuration files. (See comment for data origin; highest precedence first.) Some data will be copied into global or local variables to be available in daemon mode. The rest will be freed when forking into daemon mode. */ typedef struct { char *cmdline; char *dav_user; /* System config file */ char *dav_group; /* System config file */ char *conf; /* Command line */ /* Mount options */ int user; /* Command line */ int users; /* Command line */ int netdev; /* Command line */ int grpid; /* Command line */ unsigned long int mopts; /* Command line */ char *kernel_fs; /* User config file, system config file */ int use_utab; size_t buf_size; /* User config file, system config file */ /* File mode */ uid_t uid; /* Command line */ gid_t gid; /* Command line */ mode_t dir_mode; /* Command line */ mode_t file_mode; /* Command line */ /* WebDAV-resource */ char *scheme; /* Command line */ char *host; /* Command line */ int port; /* Command line */ char *path; /* Command line */ char *trust_ca_cert; /* User config file, system config file */ char *trust_server_cert; /* User config file, system config file */ char *secrets; /* User config file */ char *username; /* User secrets file, system secrets file */ char *cl_username; /* Command line */ char *password; /* User secrets file, system secrets file */ char *clicert; /* User config file, system config file */ char *clicert_pw; /* User secrets file, system secrets file */ char *p_host; /* User config file, sys conf f., environment */ int p_port; /* User config file, sys conf f., environment */ char *p_user; /* User secrets file, system secrets file */ char *p_passwd; /* User secrets file, system secrets file */ int useproxy; /* User config file, sys conf f., command line */ int askauth; /* User config file, sys conf f., command line */ int locks; /* User config file, sys conf f., command line */ char * lock_owner; /* User config file, system config file */ time_t lock_timeout; /* User config file, system config file */ time_t lock_refresh; /* User config file, system config file */ int expect100; /* User config file, system config file */ int if_match_bug; /* User config file, system config file */ int drop_weak_etags; /* User config file, system config file */ int n_cookies; /* User config file, system config file */ int precheck; /* User config file, system config file */ int ignore_dav_header; /* User config file, system config file */ int use_compression; /* User config file, system config file */ int min_propset; /* User config file, system config file */ int follow_redirect; /* User config file, system config file */ time_t connect_timeout; /* User config file, system config file */ time_t read_timeout; /* User config file, system config file */ time_t retry; /* User config file, system config file */ time_t max_retry; /* User config file, system config file */ int max_upload_attempts; /* User config file, system config file */ char * s_charset; /* User config file, system config file */ char * header; /* User config file, system config file */ /* Cache */ char *sys_cache; /* System config file */ char *cache_dir; /* User config file */ char *backup_dir; /* User config file, system config file */ size_t cache_size; /* User config file, system config file */ size_t table_size; /* User config file, system config file */ time_t dir_refresh; /* User config file, system config file */ time_t file_refresh; /* User config file, system config file */ int delay_upload; /* User config file, system config file */ int gui_optimize; /* User config file, system config file */ int minimize_mem; /* User config file, system config file */ /* Debugging */ int debug; /* User config file, system config file */ int neon_debug; /* User config file, system config file */ } dav_args; /* Public functions. */ /*===================*/ /* Main launches a daemon program that runs a directory and file cache and is connected to the WbDAV resource and the kernel file system module. It must run setuid root. After forking into daemon mode it releases root permissions permanently. The daemon runs with the uid of the user that owns the file system. (If invoked by root and the mounted file system is owned by root, the daemon runs as root. This should be avoided.) Launching the daemon (and stopping) is done in 5 steps. Step 1: - Gathering information from command line, configuration files and environment. - Checking this information for consistency and any errors that would prevent successful running of the daemon. - Checking whether the the user has permissions to mount. - Checking whether the neccessary files and directories for running the daemon are available. Step 2: - The modules for connecting to the kernel, connecting to the WebDAV resource and for caching are initialised. If an error accurs during step 1 or step 2 an error message is printed and the program dies immediately. Clean up is left to the operating system. Step 3: - Forking into daemon mode. - While the daemon (child) writes the pid file and starts reading upcalls from the kernel in an endless loop, the parent process tries to mount the file system and write an entry into mtab (_PROC_MOUNTS). - If an error occurs in one of the processes it sends SIGTERM to the other. While the parent just dies, the daemon will run its normal exit code (see step 5). In rare cases this might nevertheless leave stale pid files or entries in mtab that must be cleaned manually by the administrator. - If mounting is successful the parent process exits with success. Step 4: - Running as daemon. Step 5: - Terminating. - The daemon has set a signal handler for SIGTERM and SIGHUP. If it gets one of these signals it tries to unmount the file system and resets the global variable keep_on_running. This will terminate the message loop gracefully. - If the file system is unmounted (by the umount programm), the message loop will terminate gracefully. - The close functions of the modules are called, that will clean up the cache, save cached information if neccessary and close the connections. */ int main(int argc, char *argv[]); /* Prints prompt to stdout and reads a line from stdin. Echoing the user input to stdout is prohibited. A trailing newline is removed. return value : the user input. */ char * dav_user_input_hidden(const char *prompt); #endif /* DAV_MOUNT_DAVFS_H */ davfs2-1.5.5/src/Makefile.am0000644000175000017500000000501212704361564012461 00000000000000## Makefile for program src directory in davfs. ## Copyright (C) 2006, 2007, 2008, 2009 Werner Baumann ## ## This file is part of davfs2. ## ## davfs2 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. ## ## davfs2 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 davfs2; if not, write to the Free Software Foundation, ## Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ ## Process this file with automake to produce Makefile.in localedir = $(datadir)/locale pkgsysconfdir = $(sysconfdir)/@PACKAGE@ pkglocalstatedir = $(dav_localstatedir)/mount.davfs pkgsyscachedir = $(dav_syscachedir)/@PACKAGE@ ssbindir = @ssbindir@ sbin_PROGRAMS = mount.davfs umount.davfs mount_davfs_SOURCES = cache.c dav_coda.c \ dav_fuse.c kernel_interface.c mount_davfs.c webdav.c \ cache.h coda.h defaults.h fuse_kernel.h \ kernel_interface.h mount_davfs.h webdav.h umount_davfs_SOURCES = umount_davfs.c defaults.h AM_CFLAGS = -Wall -Werror=format-security \ -fstack-protector-strong --param=ssp-buffer-size=4 DEFS = -DPROGRAM_NAME=\"mount.davfs\" \ -DDAV_SYS_CONF_DIR=\"$(pkgsysconfdir)\" \ -DDAV_LOCALSTATE_DIR=\"$(dav_localstatedir)\" \ -DDAV_SYS_RUN=\"$(pkglocalstatedir)\" \ -DDAV_SYS_CACHE=\"$(pkgsyscachedir)\" \ -DDAV_SECRETS=\"secrets\" \ -DDAV_CONFIG=\"$(PACKAGE).conf\" \ -DDAV_CERTS_DIR=\"certs\" \ -DDAV_CLICERTS_DIR=\"private\" \ -DDAV_DATA_DIR=\"$(pkgdatadir)\" \ -DLOCALEDIR=\"$(localedir)\" \ -DDAV_USER=\"$(dav_user)\" \ -DDAV_GROUP=\"$(dav_group)\" \ -D_FORTIFY_SOURCE=2 @DEFS@ LIBS = $(NEON_LIBS) @LIBS@ install-exec-hook: chmod u+s $(DESTDIR)$(sbindir)/mount.davfs; \ if test "$(sbindir)" != "$(ssbindir)"; then \ $(mkinstalldirs) $(DESTDIR)$(ssbindir); \ $(LN_S) -f $(sbindir)/mount.davfs $(DESTDIR)$(ssbindir)/mount.davfs; \ $(LN_S) -f $(sbindir)/umount.davfs $(DESTDIR)$(ssbindir)/umount.davfs; \ fi uninstall-hook: if test "$(sbindir)" != "$(ssbindir)"; then \ rm -f $(DESTDIR)$(ssbindir)/mount.davfs; \ rm -f $(DESTDIR)$(ssbindir)/umount.davfs; \ fi davfs2-1.5.5/src/coda.h0000644000175000017500000003560212460776603011517 00000000000000/* This header file was taken from Linux kernel 2.6.18. From the two alternative licences the Carnegie Mellon University specific licence has been chosen. Definitions intended for use by the kernel and not for userspace, old API definitions and other parts unused by davfs2 have been removed. Modifications by Werner Baumann, 2009-04-14. */ /* Coda: an Experimental Distributed File System Release 4.0 Copyright (c) 1987-1999 Carnegie Mellon University All Rights Reserved Permission to use, copy, modify and distribute this software and its documentation is hereby granted, provided that both the copyright notice and this permission notice appear in all copies of the software, derivative works or modified versions, and any portions thereof, and that both notices appear in supporting documentation, and that credit is given to Carnegie Mellon University in all documents and publicity pertaining to direct or indirect use of this code or its derivatives. CODA IS AN EXPERIMENTAL SOFTWARE SYSTEM AND IS KNOWN TO HAVE BUGS, SOME OF WHICH MAY HAVE SERIOUS CONSEQUENCES. CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING DIRECTLY OR INDIRECTLY FROM THE USE OF THIS SOFTWARE OR OF ANY DERIVATIVE WORK. Carnegie Mellon encourages users of this software to return any improvements or extensions that they make, and to grant Carnegie Mellon the rights to redistribute these changes without encumbrance. */ /* * * Based on cfs.h from Mach, but revamped for increased simplicity. * Linux modifications by * Peter Braam, Aug 1996 */ #ifndef _CODA_HEADER_ #define _CODA_HEADER_ #define cdev_t dev_t #ifndef __BIT_TYPES_DEFINED__ #define __BIT_TYPES_DEFINED__ typedef signed char int8_t; typedef unsigned char u_int8_t; typedef short int16_t; typedef unsigned short u_int16_t; typedef int int32_t; typedef unsigned int u_int32_t; #endif /* * Cfs constants */ #define CODA_MAXNAMLEN 255 #define CODA_MAXPATHLEN 1024 #define CODA_MAXSYMLINK 10 /* these are Coda's version of O_RDONLY etc combinations * to deal with VFS open modes */ #define C_O_READ 0x001 #define C_O_WRITE 0x002 #define C_O_TRUNC 0x010 #define C_O_EXCL 0x100 #define C_O_CREAT 0x200 /* these are to find mode bits in Venus */ #define C_M_READ 00400 #define C_M_WRITE 00200 /* for access Venus will use */ #define C_A_C_OK 8 /* Test for writing upon create. */ #define C_A_R_OK 4 /* Test for read permission. */ #define C_A_W_OK 2 /* Test for write permission. */ #define C_A_X_OK 1 /* Test for execute permission. */ #define C_A_F_OK 0 /* Test for existence. */ #ifndef _VENUS_DIRENT_T_ #define _VENUS_DIRENT_T_ 1 struct venus_dirent { u_int32_t d_fileno; /* file number of entry */ u_int16_t d_reclen; /* length of this record */ u_int8_t d_type; /* file type, see below */ u_int8_t d_namlen; /* length of string in d_name */ char d_name[CODA_MAXNAMLEN + 1];/* name must be no longer than this */ }; #undef DIRSIZ #define DIRSIZ(dp) ((sizeof (struct venus_dirent) - (CODA_MAXNAMLEN+1)) + \ (((dp)->d_namlen+1 + 3) &~ 3)) /* * File types */ #define CDT_UNKNOWN 0 #define CDT_FIFO 1 #define CDT_CHR 2 #define CDT_DIR 4 #define CDT_BLK 6 #define CDT_REG 8 #define CDT_LNK 10 #define CDT_SOCK 12 #define CDT_WHT 14 /* * Convert between stat structure types and directory types. */ #define IFTOCDT(mode) (((mode) & 0170000) >> 12) #define CDTTOIF(dirtype) ((dirtype) << 12) #endif #ifndef _VUID_T_ #define _VUID_T_ typedef u_int32_t vuid_t; typedef u_int32_t vgid_t; #endif /*_VUID_T_ */ struct CodaFid { u_int32_t opaque[4]; }; #define coda_f2i(fid)\ (fid ? (fid->opaque[3] ^ (fid->opaque[2]<<10) ^ (fid->opaque[1]<<20) ^ fid->opaque[0]) : 0) #ifndef _VENUS_VATTR_T_ #define _VENUS_VATTR_T_ /* * Vnode types. VNON means no type. */ enum coda_vtype { C_VNON, C_VREG, C_VDIR, C_VBLK, C_VCHR, C_VLNK, C_VSOCK, C_VFIFO, C_VBAD }; struct coda_vattr { long va_type; /* vnode type (for create) */ u_short va_mode; /* files access mode and type */ short va_nlink; /* number of references to file */ vuid_t va_uid; /* owner user id */ vgid_t va_gid; /* owner group id */ long va_fileid; /* file id */ u_quad_t va_size; /* file size in bytes */ long va_blocksize; /* blocksize preferred for i/o */ struct timespec va_atime; /* time of last access */ struct timespec va_mtime; /* time of last modification */ struct timespec va_ctime; /* time file changed */ u_long va_gen; /* generation number of file */ u_long va_flags; /* flags defined for file */ cdev_t va_rdev; /* device special file represents */ u_quad_t va_bytes; /* bytes of disk space held by file */ u_quad_t va_filerev; /* file modification number */ }; #endif /* structure used by CODA_STATFS for getting cache information from venus */ struct coda_statfs { int32_t f_blocks; int32_t f_bfree; int32_t f_bavail; int32_t f_files; int32_t f_ffree; }; /* * Kernel <--> Venus communications. */ #define CODA_ROOT 2 #define CODA_OPEN_BY_FD 3 #define CODA_OPEN 4 #define CODA_CLOSE 5 #define CODA_IOCTL 6 #define CODA_GETATTR 7 #define CODA_SETATTR 8 #define CODA_ACCESS 9 #define CODA_LOOKUP 10 #define CODA_CREATE 11 #define CODA_REMOVE 12 #define CODA_LINK 13 #define CODA_RENAME 14 #define CODA_MKDIR 15 #define CODA_RMDIR 16 #define CODA_SYMLINK 18 #define CODA_READLINK 19 #define CODA_FSYNC 20 #define CODA_VGET 22 #define CODA_SIGNAL 23 #define CODA_REPLACE 24 /* DOWNCALL */ #define CODA_FLUSH 25 /* DOWNCALL */ #define CODA_PURGEUSER 26 /* DOWNCALL */ #define CODA_ZAPFILE 27 /* DOWNCALL */ #define CODA_ZAPDIR 28 /* DOWNCALL */ #define CODA_PURGEFID 30 /* DOWNCALL */ #define CODA_OPEN_BY_PATH 31 #define CODA_RESOLVE 32 #define CODA_REINTEGRATE 33 #define CODA_STATFS 34 #define CODA_STORE 35 #define CODA_RELEASE 36 #define CODA_NCALLS 37 #define DOWNCALL(opcode) (opcode >= CODA_REPLACE && opcode <= CODA_PURGEFID) #define VC_MAXDATASIZE 8192 #define VC_MAXMSGSIZE sizeof(union inputArgs)+sizeof(union outputArgs) +\ VC_MAXDATASIZE #define CIOC_KERNEL_VERSION _IOWR('c', 10, size_t) #define CODA_KERNEL_VERSION 3 /* 128-bit file identifiers */ /* * Venus <-> Coda RPC arguments */ struct coda_in_hdr { u_int32_t opcode; u_int32_t unique; /* Keep multiple outstanding msgs distinct */ pid_t pid; pid_t pgid; vuid_t uid; }; /* Really important that opcode and unique are 1st two fields! */ struct coda_out_hdr { u_int32_t opcode; u_int32_t unique; u_int32_t result; }; /* coda_root: NO_IN */ struct coda_root_out { struct coda_out_hdr oh; struct CodaFid VFid; }; struct coda_root_in { struct coda_in_hdr in; }; /* coda_open: */ struct coda_open_in { struct coda_in_hdr ih; struct CodaFid VFid; int flags; }; struct coda_open_out { struct coda_out_hdr oh; cdev_t dev; ino_t inode; }; /* coda_store: */ struct coda_store_in { struct coda_in_hdr ih; struct CodaFid VFid; int flags; }; struct coda_store_out { struct coda_out_hdr out; }; /* coda_release: */ struct coda_release_in { struct coda_in_hdr ih; struct CodaFid VFid; int flags; }; struct coda_release_out { struct coda_out_hdr out; }; /* coda_close: */ struct coda_close_in { struct coda_in_hdr ih; struct CodaFid VFid; int flags; }; struct coda_close_out { struct coda_out_hdr out; }; /* coda_ioctl: */ struct coda_ioctl_in { struct coda_in_hdr ih; struct CodaFid VFid; int cmd; int len; int rwflag; char *data; /* Place holder for data. */ }; struct coda_ioctl_out { struct coda_out_hdr oh; int len; caddr_t data; /* Place holder for data. */ }; /* coda_getattr: */ struct coda_getattr_in { struct coda_in_hdr ih; struct CodaFid VFid; }; struct coda_getattr_out { struct coda_out_hdr oh; struct coda_vattr attr; }; /* coda_setattr: NO_OUT */ struct coda_setattr_in { struct coda_in_hdr ih; struct CodaFid VFid; struct coda_vattr attr; }; struct coda_setattr_out { struct coda_out_hdr out; }; /* coda_access: NO_OUT */ struct coda_access_in { struct coda_in_hdr ih; struct CodaFid VFid; int flags; }; struct coda_access_out { struct coda_out_hdr out; }; /* lookup flags */ #define CLU_CASE_SENSITIVE 0x01 #define CLU_CASE_INSENSITIVE 0x02 /* coda_lookup: */ struct coda_lookup_in { struct coda_in_hdr ih; struct CodaFid VFid; int name; /* Place holder for data. */ int flags; }; struct coda_lookup_out { struct coda_out_hdr oh; struct CodaFid VFid; int vtype; }; /* coda_create: */ struct coda_create_in { struct coda_in_hdr ih; struct CodaFid VFid; struct coda_vattr attr; int excl; int mode; int name; /* Place holder for data. */ }; struct coda_create_out { struct coda_out_hdr oh; struct CodaFid VFid; struct coda_vattr attr; }; /* coda_remove: NO_OUT */ struct coda_remove_in { struct coda_in_hdr ih; struct CodaFid VFid; int name; /* Place holder for data. */ }; struct coda_remove_out { struct coda_out_hdr out; }; /* coda_link: NO_OUT */ struct coda_link_in { struct coda_in_hdr ih; struct CodaFid sourceFid; /* cnode to link *to* */ struct CodaFid destFid; /* Directory in which to place link */ int tname; /* Place holder for data. */ }; struct coda_link_out { struct coda_out_hdr out; }; /* coda_rename: NO_OUT */ struct coda_rename_in { struct coda_in_hdr ih; struct CodaFid sourceFid; int srcname; struct CodaFid destFid; int destname; }; struct coda_rename_out { struct coda_out_hdr out; }; /* coda_mkdir: */ struct coda_mkdir_in { struct coda_in_hdr ih; struct CodaFid VFid; struct coda_vattr attr; int name; /* Place holder for data. */ }; struct coda_mkdir_out { struct coda_out_hdr oh; struct CodaFid VFid; struct coda_vattr attr; }; /* coda_rmdir: NO_OUT */ struct coda_rmdir_in { struct coda_in_hdr ih; struct CodaFid VFid; int name; /* Place holder for data. */ }; struct coda_rmdir_out { struct coda_out_hdr out; }; /* coda_symlink: NO_OUT */ struct coda_symlink_in { struct coda_in_hdr ih; struct CodaFid VFid; /* Directory to put symlink in */ int srcname; struct coda_vattr attr; int tname; }; struct coda_symlink_out { struct coda_out_hdr out; }; /* coda_readlink: */ struct coda_readlink_in { struct coda_in_hdr ih; struct CodaFid VFid; }; struct coda_readlink_out { struct coda_out_hdr oh; int count; caddr_t data; /* Place holder for data. */ }; /* coda_fsync: NO_OUT */ struct coda_fsync_in { struct coda_in_hdr ih; struct CodaFid VFid; }; struct coda_fsync_out { struct coda_out_hdr out; }; /* coda_vget: */ struct coda_vget_in { struct coda_in_hdr ih; struct CodaFid VFid; }; struct coda_vget_out { struct coda_out_hdr oh; struct CodaFid VFid; int vtype; }; /* CODA_SIGNAL is out-of-band, doesn't need data. */ /* CODA_INVALIDATE is a venus->kernel call */ /* CODA_FLUSH is a venus->kernel call */ /* coda_purgeuser: */ /* CODA_PURGEUSER is a venus->kernel call */ struct coda_purgeuser_out { struct coda_out_hdr oh; vuid_t uid; }; /* coda_zapfile: */ /* CODA_ZAPFILE is a venus->kernel call */ struct coda_zapfile_out { struct coda_out_hdr oh; struct CodaFid CodaFid; }; /* coda_zapdir: */ /* CODA_ZAPDIR is a venus->kernel call */ struct coda_zapdir_out { struct coda_out_hdr oh; struct CodaFid CodaFid; }; /* coda_purgefid: */ /* CODA_PURGEFID is a venus->kernel call */ struct coda_purgefid_out { struct coda_out_hdr oh; struct CodaFid CodaFid; }; /* coda_replace: */ /* CODA_REPLACE is a venus->kernel call */ struct coda_replace_out { /* coda_replace is a venus->kernel call */ struct coda_out_hdr oh; struct CodaFid NewFid; struct CodaFid OldFid; }; /* coda_open_by_fd: */ struct coda_open_by_fd_in { struct coda_in_hdr ih; struct CodaFid VFid; int flags; }; struct coda_open_by_fd_out { struct coda_out_hdr oh; int fd; }; /* coda_open_by_path: */ struct coda_open_by_path_in { struct coda_in_hdr ih; struct CodaFid VFid; int flags; }; struct coda_open_by_path_out { struct coda_out_hdr oh; int path; }; /* coda_statfs: NO_IN */ struct coda_statfs_in { struct coda_in_hdr in; }; struct coda_statfs_out { struct coda_out_hdr oh; struct coda_statfs stat; }; union inputArgs { struct coda_in_hdr ih; /* NB: every struct below begins with an ih */ struct coda_open_in coda_open; struct coda_store_in coda_store; struct coda_release_in coda_release; struct coda_close_in coda_close; struct coda_ioctl_in coda_ioctl; struct coda_getattr_in coda_getattr; struct coda_setattr_in coda_setattr; struct coda_access_in coda_access; struct coda_lookup_in coda_lookup; struct coda_create_in coda_create; struct coda_remove_in coda_remove; struct coda_link_in coda_link; struct coda_rename_in coda_rename; struct coda_mkdir_in coda_mkdir; struct coda_rmdir_in coda_rmdir; struct coda_symlink_in coda_symlink; struct coda_readlink_in coda_readlink; struct coda_fsync_in coda_fsync; struct coda_vget_in coda_vget; struct coda_open_by_fd_in coda_open_by_fd; struct coda_open_by_path_in coda_open_by_path; struct coda_statfs_in coda_statfs; }; union outputArgs { struct coda_out_hdr oh; /* NB: every struct below begins with an oh */ struct coda_root_out coda_root; struct coda_open_out coda_open; struct coda_ioctl_out coda_ioctl; struct coda_getattr_out coda_getattr; struct coda_lookup_out coda_lookup; struct coda_create_out coda_create; struct coda_mkdir_out coda_mkdir; struct coda_readlink_out coda_readlink; struct coda_vget_out coda_vget; struct coda_purgeuser_out coda_purgeuser; struct coda_zapfile_out coda_zapfile; struct coda_zapdir_out coda_zapdir; struct coda_purgefid_out coda_purgefid; struct coda_replace_out coda_replace; struct coda_open_by_fd_out coda_open_by_fd; struct coda_open_by_path_out coda_open_by_path; struct coda_statfs_out coda_statfs; }; union coda_downcalls { /* CODA_INVALIDATE is a venus->kernel call */ /* CODA_FLUSH is a venus->kernel call */ struct coda_purgeuser_out purgeuser; struct coda_zapfile_out zapfile; struct coda_zapdir_out zapdir; struct coda_purgefid_out purgefid; struct coda_replace_out replace; }; /* Data passed to mount */ #define CODA_MOUNT_VERSION 1 struct coda_mount_data { int version; int fd; /* Opened device */ }; #endif davfs2-1.5.5/src/dav_fuse.c0000644000175000017500000010117412701706567012376 00000000000000/* dav_fuse.c: interface to the fuse kernel module FUSE_KERNEL_VERSION 7. Copyright (C) 2006, 2007, 2008. 2009, 2014 Werner Baumann This file is part of davfs2. davfs2 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. davfs2 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 davfs2; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "config.h" #include #ifdef HAVE_FCNTL_H #include #endif #ifdef HAVE_LIBINTL_H #include #endif #ifdef HAVE_STDDEF_H #include #endif #ifdef HAVE_STDINT_H #include #endif #include #include #include #ifdef HAVE_SYSLOG_H #include #endif #include #ifdef HAVE_UNISTD_H #include #endif #ifdef HAVE_SYS_STAT_H #include #endif #include "defaults.h" #include "mount_davfs.h" #include "cache.h" #include "kernel_interface.h" #include "fuse_kernel.h" #ifdef ENABLE_NLS #define _(String) gettext(String) #else #define _(String) String #endif /* Data Types */ /*============*/ /* There is no struct fuse_create_out in fuse_kernel.h. */ struct create_out { struct fuse_entry_out entry; struct fuse_open_out open; }; /* Private global variables */ /*==========================*/ /* Buffer used for communication with the kernel module (in and out). */ static size_t buf_size; static char *buf; /* fuse wants the nodeid of the root node to be 1, so we have to translate between the real nodeid and what fuse wants. */ static uint64_t root; /* Send debug messages to syslog if != 0. */ int debug; /* Private function prototypes */ /*=============================*/ /* Functions to handle upcalls fromthe kernel module. */ static uint32_t fuse_access(void); static uint32_t fuse_create(void); static uint32_t fuse_getattr(void); static uint32_t fuse_init(void); static uint32_t fuse_lookup(void); static uint32_t fuse_mkdir(void); static uint32_t fuse_mknod(void); static uint32_t fuse_open(void); static uint32_t fuse_read(void); static uint32_t fuse_release(void); static uint32_t fuse_rename(void); static uint32_t fuse_setattr(void); static uint32_t fuse_stat(void); static uint32_t fuse_write(void); /* Auxiliary functions. */ static off_t write_dir_entry(int fd, off_t off, const dav_node *node, const char *name); static void set_attr(struct fuse_attr *attr, const dav_node *node); /* Public functions */ /*==================*/ void dav_fuse_loop(int device, char *mpoint, size_t bufsize, time_t idle_time, dav_is_mounted_fn is_mounted, volatile int *keep_on_running, int dbg) { debug = dbg; char *mountpoint = mpoint; int unmounting = 0; if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "fuse kernel version 7"); buf_size = bufsize; buf = malloc(buf_size); if (!buf) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("can't allocate message buffer")); return; } dav_register_kernel_interface(&write_dir_entry, NULL, NULL); struct timeval tv; tv.tv_sec = idle_time; tv.tv_usec = 0; time_t last_tidy_cache = time(NULL); while (1) { fd_set fds; FD_ZERO(&fds); FD_SET(device, &fds); int ret = select(device + 1, &fds, NULL, NULL, &tv); if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "SELECT: %i", ret); if (!*keep_on_running && !unmounting) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("unmounting %s"), mountpoint); unmounting = 1; pid_t pid = fork(); if (pid == 0) { execl("/bin/umount", "umount", "-il", mountpoint, NULL); _exit(EXIT_FAILURE); } } if (ret > 0) { ssize_t bytes_read = read(device, buf, buf_size); if (bytes_read <= 0) { if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "READ: %s", strerror(errno)); if (bytes_read == 0 || errno == EINTR || errno == EAGAIN || errno == ENOENT) { if (time(NULL) < (last_tidy_cache + idle_time)) { tv.tv_sec = last_tidy_cache + idle_time - time(NULL); } else { tv.tv_sec = 0; } continue; } break; } } else if (ret == 0) { if (dav_tidy_cache() == 0) { tv.tv_sec = idle_time; last_tidy_cache = time(NULL); } else { tv.tv_sec = 0; } continue; } else { if (errno == EINTR) continue; break; } struct fuse_in_header *ih = (struct fuse_in_header *) buf; struct fuse_out_header *oh = (struct fuse_out_header *) buf; if (ih->nodeid == 1) ih->nodeid = root; switch (ih->opcode) { case FUSE_LOOKUP: oh->len = fuse_lookup(); break; case FUSE_FORGET: if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_FORGET: no reply"); oh->error = 0; oh->len = 0; break; case FUSE_GETATTR: oh->len = fuse_getattr(); break; case FUSE_SETATTR: oh->len = fuse_setattr(); break; case FUSE_READLINK: if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_READLINK:"); oh->error = -ENOSYS; oh->len = sizeof(struct fuse_out_header); break; case FUSE_SYMLINK: if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_SYMLINK:"); oh->error = -ENOSYS; oh->len = sizeof(struct fuse_out_header); break; case FUSE_MKNOD: oh->len = fuse_mknod(); break; case FUSE_MKDIR: oh->len = fuse_mkdir(); break; case FUSE_UNLINK: if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_UNLINK:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " p 0x%llx, %s", (unsigned long long) ih->nodeid, (char *) (buf + sizeof(struct fuse_in_header))); } oh->error = dav_remove((dav_node *) ((size_t) ih->nodeid), (char *) (buf + sizeof(struct fuse_in_header)), ih->uid); if (oh->error) oh->error *= -1; oh->len = sizeof(struct fuse_out_header); break; case FUSE_RMDIR: if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_RMDIR:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " p 0x%llx, %s", (unsigned long long) ih->nodeid, (char *) (buf + sizeof(struct fuse_in_header))); } oh->error = dav_rmdir((dav_node *) ((size_t) ih->nodeid), (char *) (buf + sizeof(struct fuse_in_header)), ih->uid); if (oh->error) oh->error *= -1; oh->len = sizeof(struct fuse_out_header); break; case FUSE_RENAME: oh->len = fuse_rename(); break; case FUSE_LINK: if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_LINK:"); oh->error = -ENOSYS; oh->len = sizeof(struct fuse_out_header); break; case FUSE_OPEN: oh->len = fuse_open(); break; case FUSE_READ: oh->len = fuse_read(); break; case FUSE_WRITE: oh->len = fuse_write(); break; case FUSE_STATFS: oh->len = fuse_stat(); break; case FUSE_RELEASE: oh->len = fuse_release(); last_tidy_cache = 0; break; case FUSE_FSYNC: if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_FSYNC:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " n 0x%llx", (unsigned long long) ih->nodeid); } oh->error = dav_sync((dav_node *) ((size_t) ih->nodeid)); if (oh->error) oh->error *= -1; oh->len = sizeof(struct fuse_out_header); break; case FUSE_SETXATTR: if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_SETXATTR:"); oh->error = -ENOSYS; oh->len = sizeof(struct fuse_out_header); break; case FUSE_GETXATTR: if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_GETXATTR:"); oh->error = -ENOSYS; oh->len = sizeof(struct fuse_out_header); break; case FUSE_LISTXATTR: if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_LISTXATTR:"); oh->error = -ENOSYS; oh->len = sizeof(struct fuse_out_header); break; case FUSE_REMOVEXATTR: if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_REMOVEXATTR:"); oh->error = -ENOSYS; oh->len = sizeof(struct fuse_out_header); break; case FUSE_FLUSH: if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_FLUSH: ignored"); oh->error = 0; oh->len = sizeof(struct fuse_out_header); break; case FUSE_INIT: oh->len = fuse_init(); break; case FUSE_OPENDIR: oh->len = fuse_open(); break; case FUSE_READDIR: oh->len = fuse_read(); break; case FUSE_RELEASEDIR: oh->len = fuse_release(); break; case FUSE_FSYNCDIR: if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_FSYNCDIR:"); oh->error = -ENOSYS; oh->len = sizeof(struct fuse_out_header); break; case FUSE_ACCESS: oh->len = fuse_access(); break; case FUSE_CREATE: oh->len = fuse_create(); break; default: if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "UNKNOWN FUSE CALL %i", ih->opcode); oh->error = -ENOSYS; oh->len = sizeof(struct fuse_out_header); break; } if (debug && oh->len) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "RET: %s", strerror(-oh->error)); ssize_t n = 0; ssize_t w = 0; while (n < oh->len && w >= 0) { w = write(device, buf + n, oh->len - n); n += w; } if (time(NULL) < (last_tidy_cache + idle_time)) { tv.tv_sec = last_tidy_cache + idle_time - time(NULL); } else { dav_tidy_cache(); tv.tv_sec = idle_time; last_tidy_cache = time(NULL); } } } /* Private functions */ /*===================*/ /* Functions to handle upcalls fromthe kernel module. The cache module only uses data types from the C-library. For file access, mode and the like it only uses symbolic constants defined in the C-library. So the main porpose of this functions is to translate from kernel specific types and constants to types and constants from the C-library, and back. All of this functions return the amount of data in buf that is to be send to the kernel module. */ static uint32_t fuse_access(void) { struct fuse_in_header *ih = (struct fuse_in_header *) buf; struct fuse_access_in *in = (struct fuse_access_in *) (buf + sizeof(struct fuse_in_header)); struct fuse_out_header *oh = (struct fuse_out_header *) buf; if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_ACCESS:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " n 0x%llx, f 0%o", (unsigned long long) ih->nodeid, in->mask); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " uid %i", ih->uid); } oh->error = dav_access((dav_node *) ((size_t) ih->nodeid), ih->uid, in->mask); if (oh->error) oh->error *= -1; return sizeof(struct fuse_out_header); } static uint32_t fuse_create(void) { struct fuse_in_header *ih= (struct fuse_in_header *) buf; struct fuse_open_in *in = (struct fuse_open_in *) (buf + sizeof(struct fuse_in_header)); char *name = buf + sizeof(struct fuse_in_header) + sizeof(struct fuse_open_in); struct fuse_out_header *oh = (struct fuse_out_header *) buf; struct create_out *out = (struct create_out *) (buf + sizeof(struct fuse_out_header)); if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_CREATE:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " n 0x%llx, f 0%o", (unsigned long long) ih->nodeid, in->flags); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " pid %i, mode 0%o", ih->pid, in->mode); } int created = 0; dav_node *node = NULL; oh->error = dav_lookup(&node, (dav_node *) ((size_t) ih->nodeid), name, ih->uid); if (!oh->error) { if (!node) { oh->error = -EIO; return sizeof(struct fuse_out_header); } else if (in->flags & O_EXCL) { oh->error = -EEXIST; return sizeof(struct fuse_out_header); } } else if (oh->error == ENOENT) { oh->error = dav_create(&node, (dav_node *) ((size_t) ih->nodeid), name, ih->uid, in->mode & DAV_A_MASK); if (oh->error || !node) { if (!oh->error) oh->error = EIO; oh->error *= -1; return sizeof(struct fuse_out_header); } created = 1; } else { oh->error *= -1; return sizeof(struct fuse_out_header); } int fd = 0; oh->error = dav_open(&fd, node, in->flags & ~(O_EXCL | O_CREAT), ih->pid, 0, ih->uid, 1); if (oh->error || !fd) { if (created) dav_remove((dav_node *) ((size_t) ih->nodeid), name, ih->uid); if (!oh->error) oh->error = EIO; oh->error *= -1; return sizeof(struct fuse_out_header); } out->entry.nodeid = (size_t) node; out->entry.generation = out->entry.nodeid; out->entry.entry_valid = 1; out->entry.attr_valid = 1; out->entry.entry_valid_nsec = 0; out->entry.attr_valid_nsec = 0; set_attr(&out->entry.attr, node); out->open.open_flags = in->flags & (O_ACCMODE | O_APPEND); out->open.fh = fd; out->open.padding = 0; if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " fd %i", fd); return sizeof(struct fuse_out_header) + sizeof(struct create_out); } static uint32_t fuse_getattr(void) { struct fuse_in_header *ih = (struct fuse_in_header *) buf; struct fuse_out_header *oh = (struct fuse_out_header *) buf; struct fuse_attr_out *out = (struct fuse_attr_out *) (buf + sizeof(struct fuse_out_header)); if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_GETATTR:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " n 0x%llx", (unsigned long long) ih->nodeid); } oh->error = dav_getattr((dav_node *) ((size_t) ih->nodeid), ih->uid); if (oh->error) { oh->error *= -1; return sizeof(struct fuse_out_header); } set_attr(&out->attr, (dav_node *) ((size_t) ih->nodeid)); out->attr_valid = 1; out->attr_valid_nsec = 0; out->dummy = 0; return sizeof(struct fuse_out_header) + sizeof(struct fuse_attr_out); } static uint32_t fuse_init(void) { struct fuse_in_header *ih = (struct fuse_in_header *) buf; struct fuse_init_in *in = (struct fuse_init_in *) (buf + sizeof(struct fuse_in_header)); struct fuse_out_header *oh = (struct fuse_out_header *) buf; struct fuse_init_out *out = (struct fuse_init_out *) (buf + sizeof(struct fuse_out_header)); if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_INIT:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " version %i.%i", in->major, in->minor); } dav_node *node; oh->error = dav_root(&node, ih->uid); if (oh->error || !node) { if (!oh->error) oh->error = EIO; oh->error *= -1; return sizeof(struct fuse_out_header); } root = (size_t) node; out->major = FUSE_KERNEL_VERSION; out->minor = FUSE_KERNEL_MINOR_VERSION; out->unused[0] = 0; out->unused[1] = 0; out->unused[2] = 0; out->max_write = buf_size - sizeof(struct fuse_in_header) - sizeof(struct fuse_write_in) - 4095; return sizeof(struct fuse_out_header) + sizeof(struct fuse_init_out); } static uint32_t fuse_lookup(void) { struct fuse_in_header *ih = (struct fuse_in_header *) buf; char * name = (char *) (buf + sizeof(struct fuse_in_header)); struct fuse_out_header *oh = (struct fuse_out_header *) buf; struct fuse_entry_out *out = (struct fuse_entry_out *) (buf + sizeof(struct fuse_out_header)); if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_LOOKUP:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " p 0x%llx, %s", (unsigned long long) ih->nodeid, name); } dav_node *node = NULL; oh->error = dav_lookup(&node, (dav_node *) ((size_t) ih->nodeid), name, ih->uid); if (oh->error || !node) { if (!oh->error) oh->error = EIO; oh->error *= -1; return sizeof(struct fuse_out_header); } out->nodeid = (size_t) node; out->generation = out->nodeid; out->entry_valid = 1; out->attr_valid = 1; out->entry_valid_nsec = 0; out->attr_valid_nsec = 0; set_attr(&out->attr, node); return sizeof(struct fuse_out_header) + sizeof(struct fuse_entry_out); } static uint32_t fuse_mkdir(void) { struct fuse_in_header *ih = (struct fuse_in_header *) buf; struct fuse_mkdir_in *in = (struct fuse_mkdir_in *) (buf + sizeof(struct fuse_in_header)); char *name = (char *) (buf + sizeof(struct fuse_in_header) + sizeof(struct fuse_mkdir_in)); struct fuse_out_header *oh = (struct fuse_out_header *) buf; struct fuse_entry_out *out = (struct fuse_entry_out *) (buf + sizeof(struct fuse_out_header)); if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_MKDIR:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " p 0x%llx, %s", (unsigned long long) ih->nodeid, name); } dav_node *node = NULL; oh->error = dav_mkdir(&node, (dav_node *) ((size_t) ih->nodeid), name, ih->uid, in->mode & DAV_A_MASK); if (oh->error || !node) { if (!oh->error) oh->error = EIO; oh->error *= -1; return sizeof(struct fuse_out_header); } out->nodeid = (size_t) node; out->generation = out->nodeid; out->entry_valid = 1; out->attr_valid = 1; out->entry_valid_nsec = 0; out->attr_valid_nsec = 0; set_attr(&out->attr, node); return sizeof(struct fuse_out_header) + sizeof(struct fuse_entry_out); } static uint32_t fuse_mknod(void) { struct fuse_in_header *ih = (struct fuse_in_header *) buf; struct fuse_mknod_in *in = (struct fuse_mknod_in *) (buf + sizeof(struct fuse_in_header)); char *name = (char *) (buf + sizeof(struct fuse_in_header) + sizeof(struct fuse_mknod_in)); struct fuse_out_header *oh = (struct fuse_out_header *) buf; struct fuse_entry_out *out = (struct fuse_entry_out *) (buf + sizeof(struct fuse_out_header)); if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_MKNOD:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " p 0x%llx, m 0%o", (unsigned long long) ih->nodeid, in->mode); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " %s", name); } if (!S_ISREG(in->mode)) { oh->error = -ENOTSUP; return sizeof(struct fuse_out_header); } dav_node *node = NULL; oh->error = dav_create(&node, (dav_node *) ((size_t) ih->nodeid), name, ih->uid, in->mode & DAV_A_MASK); if (oh->error || !node) { if (!oh->error) oh->error = EIO; oh->error *= -1; return sizeof(struct fuse_out_header); } out->nodeid = (size_t) node; out->generation = out->nodeid; out->entry_valid = 1; out->attr_valid = 1; out->entry_valid_nsec = 0; out->attr_valid_nsec = 0; set_attr(&out->attr, node); return sizeof(struct fuse_out_header) + sizeof(struct fuse_entry_out); } static uint32_t fuse_open(void) { struct fuse_in_header *ih= (struct fuse_in_header *) buf; struct fuse_open_in *in = (struct fuse_open_in *) (buf + sizeof(struct fuse_in_header)); struct fuse_out_header *oh = (struct fuse_out_header *) buf; struct fuse_open_out *out = (struct fuse_open_out *) (buf + sizeof(struct fuse_out_header)); if (debug) { if (ih->opcode == FUSE_OPENDIR) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_OPENDIR:"); } else { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_OPEN:"); } syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " n 0x%llx, f 0%o", (unsigned long long) ih->nodeid, in->flags); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " pid %i, mode 0%o", ih->pid, in->mode); } int fd = 0; oh->error = dav_open(&fd, (dav_node *) ((size_t) ih->nodeid), in->flags, ih->pid, 0, ih->uid, 0); if (oh->error || !fd) { if (!oh->error) oh->error = EIO; oh->error *= -1; return sizeof(struct fuse_out_header); } out->open_flags = in->flags & (O_ACCMODE | O_APPEND); out->fh = fd; out->padding = 0; if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " fd %i", fd); return sizeof(struct fuse_out_header) + sizeof(struct fuse_open_out); } static uint32_t fuse_read(void) { struct fuse_in_header *ih= (struct fuse_in_header *) buf; struct fuse_read_in *in = (struct fuse_read_in *) (buf + sizeof(struct fuse_in_header)); struct fuse_out_header *oh = (struct fuse_out_header *) buf; if (debug) { if (ih->opcode == FUSE_READDIR) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_READDIR:"); } else { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_READ:"); } syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " n 0x%llx, fd %llu", (unsigned long long) ih->nodeid, (unsigned long long) in->fh); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " pid %i", ih->pid); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " size %u, off %llu", in->size, (unsigned long long) in->offset); } if (in->size > (buf_size - sizeof(struct fuse_out_header))) { oh->error = -EINVAL; return sizeof(struct fuse_out_header); } ssize_t len; oh->error = dav_read(&len, (dav_node *) ((size_t) ih->nodeid), in->fh, buf + sizeof(struct fuse_out_header), in->size, in->offset); if (oh->error) oh->error *= -1; return len + sizeof(struct fuse_out_header); } static uint32_t fuse_release(void) { struct fuse_in_header *ih = (struct fuse_in_header *) buf; struct fuse_release_in *in = (struct fuse_release_in *) (buf + sizeof(struct fuse_in_header)); struct fuse_out_header *oh = (struct fuse_out_header *) buf; if (debug) { if (ih->opcode == FUSE_RELEASEDIR) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_RELEASEDIR:"); } else { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_RELEASE:"); } syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " n 0x%llx, f 0%o", (unsigned long long) ih->nodeid, in->flags); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " pid %i, fd %llu", ih->pid, (unsigned long long) in->fh); } oh->error = dav_close((dav_node *) ((size_t) ih->nodeid), in->fh, in->flags, ih->pid, 0); if (oh->error) oh->error *= -1; return sizeof(struct fuse_out_header); } static uint32_t fuse_rename(void) { struct fuse_in_header *ih = (struct fuse_in_header *) buf; struct fuse_rename_in *in = (struct fuse_rename_in *) (buf + sizeof(struct fuse_in_header)); char *old = (char *) (buf + sizeof(struct fuse_in_header) + sizeof(struct fuse_rename_in)); char *new = old + strlen(old) + 1; struct fuse_out_header *oh = (struct fuse_out_header *) buf; if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_RENAME:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " sp 0x%llx, %s", (unsigned long long) ih->nodeid, old); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " dp 0x%llx, %s", (unsigned long long) in->newdir, new); } if (in->newdir == 1) in->newdir = root; oh->error = dav_rename((dav_node *) ((size_t) ih->nodeid), old, (dav_node *) ((size_t) in->newdir), new, ih->uid); if (oh->error) oh->error *= -1; return sizeof(struct fuse_out_header); } static uint32_t fuse_setattr(void) { struct fuse_in_header *ih = (struct fuse_in_header *) buf; struct fuse_setattr_in *in = (struct fuse_setattr_in *) (buf + sizeof(struct fuse_in_header)); struct fuse_out_header *oh = (struct fuse_out_header *) buf; struct fuse_attr_out *out = (struct fuse_attr_out *) (buf + sizeof(struct fuse_out_header)); if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_SETATTR:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " n 0x%llx, m 0%o", (unsigned long long) ih->nodeid, in->mode); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " uid %i, gid %i", in->uid, in->gid); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " sz %llu, at %llu,", (unsigned long long) in->size, (unsigned long long) in->atime); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " mt %llu", (unsigned long long) in->mtime); } oh->error = dav_setattr((dav_node *) ((size_t) ih->nodeid), ih->uid, in->valid & FATTR_MODE, in->mode, in->valid & FATTR_UID, in->uid, in->valid & FATTR_GID, in->gid, in->valid & FATTR_ATIME, in->atime, in->valid & FATTR_MTIME, in->mtime, in->valid & FATTR_SIZE, in->size); if (oh->error) { oh->error *= -1; return sizeof(struct fuse_out_header); } set_attr(&out->attr, (dav_node *) ((size_t) ih->nodeid)); out->attr_valid = 1; out->attr_valid_nsec = 0; out->dummy = 0; return sizeof(struct fuse_out_header) + sizeof(struct fuse_attr_out); } static uint32_t fuse_stat(void) { struct fuse_out_header *oh = (struct fuse_out_header *) buf; struct fuse_statfs_out *out = (struct fuse_statfs_out *) (buf + sizeof(struct fuse_out_header)); if (debug) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_STATFS:"); dav_stat *st = dav_statfs(); if (!st) { oh->error = -ENOSYS; return sizeof(struct fuse_out_header); } out->st.blocks = st->blocks; out->st.bfree = st->bavail; out->st.bavail = st->bavail; out->st.bsize = st->bsize; out->st.files = st->files; out->st.ffree = st->ffree; out->st.namelen = st->namelen; out->st.frsize = 0; out->st.padding = 0; int i; for (i = 0; i < 6; i++) out->st.spare[i] = 0; oh->error = 0; return sizeof(struct fuse_out_header) + sizeof(struct fuse_statfs_out); } static uint32_t fuse_write(void) { struct fuse_in_header *ih= (struct fuse_in_header *) buf; struct fuse_write_in *in = (struct fuse_write_in *) (buf + sizeof(struct fuse_in_header)); struct fuse_out_header *oh = (struct fuse_out_header *) buf; struct fuse_write_out *out = (struct fuse_write_out *) (buf + sizeof(struct fuse_out_header)); if (debug) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "FUSE_WRITE:"); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " n 0x%llx, fd %llu", (unsigned long long) ih->nodeid, (unsigned long long) in->fh); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " pid %i, flags 0%o", ih->pid, in->write_flags); syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " size %u, off %llu", in->size, (unsigned long long) in->offset); } if (in->size > (buf_size - sizeof(struct fuse_in_header) - sizeof(struct fuse_write_in))) { oh->error = -EINVAL; return sizeof(struct fuse_out_header); } size_t size; oh->error = dav_write(&size, (dav_node *) ((size_t) ih->nodeid), in->fh, buf + sizeof(struct fuse_in_header) + sizeof(struct fuse_write_in), in->size, in->offset); if (oh->error) { oh->error *= -1; return sizeof(struct fuse_out_header); } out->size = size; out->padding = 0; return sizeof(struct fuse_out_header) + sizeof(struct fuse_write_out); } /* Auxiliary functions. */ /* Writes a struct fuse_dirent to file with file descriptor fd. fd : An open file descriptor to write to. off : The current file size. name : File name; if NULL, the last, empty entry is written. return value : New size of the file. -1 in case of an error. */ static off_t write_dir_entry(int fd, off_t off, const dav_node *node, const char *name) { if (!name) return off; struct fuse_dirent entry; size_t head = offsetof(struct fuse_dirent, name); size_t reclen = (head + strlen(name) + sizeof(uint64_t) -1) & ~(sizeof(uint64_t) - 1); entry.ino = (((size_t) node) == root) ? 1 : (size_t) node; entry.off = off + reclen; entry.namelen = strlen(name); entry.type = (node->mode & S_IFMT) >> 12; size_t size = 0; ssize_t ret = 0; while (ret >= 0 && size < head) { ret = write(fd, (char *) &entry + size, head - size); size += ret; } if (size != head) return -1; ret = 0; while (ret >= 0 && size < (head + entry.namelen)) { ret = write(fd, name + size - head, entry.namelen - size + head); size += ret; } if (size != (head + entry.namelen)) return -1; ret = 0; while (ret >= 0 && size < reclen) { ret = write(fd, "\0", 1); size += ret; } if (size != reclen) return -1; return off + reclen; } static void set_attr(struct fuse_attr *attr, const dav_node *node) { attr->ino = (((size_t) node) == root) ? 1 : (size_t) node; attr->size = node->size; attr->blocks = (node->size + 511) / 512; attr->atime = node->atime; attr->mtime = node->mtime; attr->ctime = node->ctime; attr->atimensec = 0; attr->mtimensec = 0; attr->ctimensec = 0; attr->mode = node->mode; if (S_ISDIR(node->mode)) { attr->nlink = node->nref; } else { attr->nlink = 1; } attr->uid = node->uid; attr->gid = node->gid; attr->rdev = 0; } davfs2-1.5.5/src/umount_davfs.c0000644000175000017500000001533612716304642013312 00000000000000/* umount_davfs.c: unmount the davfs file system. Copyright (C) 2006, 2007, 2008, 2009, 2014 Werner Baumann This file is part of davfs2. davfs2 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. davfs2 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 davfs2; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "config.h" #include #include #include #ifdef HAVE_LIBINTL_H #include #endif #ifdef HAVE_LOCALE_H #include #endif #include #ifdef HAVE_STDLIB_H #include #endif #include #ifdef HAVE_UNISTD_H #include #endif #include #include "defaults.h" #ifdef ENABLE_NLS #define _(String) gettext(String) #else #define _(String) String #define textdomain(Domainname) #define bindtextdomain(Domainname, Dirname) #endif /* This is lazy programming. All the dirty work is left to the real umount program, while we just sit and wait for mount.davfs to terminate. umount.davfs is a umount helper. It is usually called by umount and makes sure, that umount will not return until mount.davfs has synchronized all files. It first reads the pid-file and identifies the mount.davfs process. Then it calls mount again, with option -i (to not be called again), to do the real unmounting. In a loop it will watch the process list. When the mount.davfs process terminates, it will return. If it can't identify the mount.davfs process, it will call umount -i anyway, but warn the user. */ int main(int argc, char *argv[]) { setuid(getuid()); setgid(getgid()); setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); char *short_options = "Vhflnrt:v"; static const struct option options[] = { {"version", no_argument, NULL, 'V'}, {"help", no_argument, NULL, 'h'}, {0, 0, 0, 0} }; int o; o = getopt_long(argc, argv, short_options, options, NULL); while (o != -1) { switch (o) { case 'V': printf("%s <%s>\n\n", PACKAGE_STRING, PACKAGE_BUGREPORT); printf(_("This is free software; see the source for copying " "conditions. There is NO\n" "warranty; not even for MERCHANTABILITY or FITNESS " "FOR A PARTICULAR PURPOSE.\n")); exit(EXIT_SUCCESS); case 'h': printf(_("Usage:\n" " u%s -V,--version : print version string\n" " u%s -h,--help : print this message\n\n"), PROGRAM_NAME, PROGRAM_NAME); printf(_("To umount a WebDAV-resource don't call u%s directly, " "but use\n" "`umount' instead.\n"), PROGRAM_NAME); printf(_(" umount : umount the WebDAV-resource as " "specified in\n" " /etc/fstab.\n")); exit(EXIT_SUCCESS); case 'f': case 'l': case 'n': case 'r': case 'v': case 't': case '?': break; default: error(EXIT_FAILURE, 0, _("unknown error parsing arguments")); } o = getopt_long(argc, argv, short_options, options, NULL); } if (optind > (argc - 1)) error(EXIT_FAILURE, 0, _("missing argument")); if (optind < (argc - 1)) error(EXIT_FAILURE, 0, _("too many arguments")); char *mpoint = canonicalize_file_name(argv[optind]); char *umount_command = NULL; if (mpoint) { umount_command = ne_concat("umount -i '", mpoint, "'", NULL); } else { umount_command = ne_concat("umount -i '", argv[optind], "'", NULL); error(0, 0, _("\n" " can't evaluate PID file name;\n" " trying to unmount anyway;\n" " please wait for %s to terminate"), PROGRAM_NAME); return system(umount_command); } char *m = mpoint; while (*m == '/') m++; char *mp = ne_strdup(m); m = strchr(mp, '/'); while (m) { *m = '-'; m = strchr(mp, '/'); } char *pidfile = ne_concat(DAV_SYS_RUN, "/", mp, ".pid", NULL); free(mp); char *pid = NULL; FILE *file = fopen(pidfile, "r"); if (!file || fscanf(file, "%a[0-9]", &pid) != 1 || !pid) { error(0, 0, _("\n" " can't read PID from file %s;\n" " trying to unmount anyway;\n" " please wait for %s to terminate"), pidfile, PROGRAM_NAME); return system(umount_command); } fclose(file); char *ps_command = ne_concat("ps -p ", pid, NULL); FILE *ps_in = popen(ps_command, "r"); if (!ps_in) { error(0, 0, _("\n" " can't read process list;\n" " trying to unmount anyway;\n" " please wait for %s to terminate"), PROGRAM_NAME); return system(umount_command); } int found = 0; size_t n = 0; char *ps_line = NULL; while (!found && getline(&ps_line, &n, ps_in) > 0) found = (strstr(ps_line, pid) && strstr(ps_line, PROGRAM_NAME)); pclose(ps_in); if (!found) { error(0, 0, _("\n" " can't find %s-process with pid %s;\n" " trying to unmount anyway.\n" " you propably have to remove %s manually"), PROGRAM_NAME, pid, pidfile); return system(umount_command); } if (system(umount_command) != 0) exit(EXIT_FAILURE); printf(_("%s: waiting while %s (pid %s) synchronizes the cache ."), argv[0], PROGRAM_NAME, pid); fflush(stdout); while (found) { sleep(3); printf("."); fflush(stdout); ps_in = popen(ps_command, "r"); if (!ps_in) { printf("\n"); error(EXIT_FAILURE, 0, _("an error occurred while waiting; " "please wait for %s to terminate"), PROGRAM_NAME); } found = 0; while (!found && getline(&ps_line, &n, ps_in) > 0) found = (strstr(ps_line, pid) && strstr(ps_line, PROGRAM_NAME)); pclose(ps_in); } printf(" OK\n"); return 0; } davfs2-1.5.5/ChangeLog0000644000175000017500000014217513422371413011414 00000000000000ChangeLog for davfs2 -------------------- 2019-01-24 Werner Baumann (werner.baumann@onlinehome.de) Release version 1.5.5 2019-01-24 Werner Baumann (werner.baumann@onlinehome.de) * davfs2.conf.5: Warning about intermediary CAs (bug #54699). 2019-01-17 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, xml_end_reg: Don't remove cache-files because of inconsistent metadata (sr #109587). 2019-01-12 Werner Baumann (werner.baumann@onlinehome.de) * Fixed typo (sr #109588). 2018-11-05 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, dav_get_file: Add query-string to path on redirect (bug #54943). 2017-07-22 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, get_options: Ignore option "nofail" (fixes bug #51521). 2017-01-21 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, is_busy: Fix infinite loop (bug #50083). 2016-08-18 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, get_cookies: Fix cookie parsing error (Debian Bug#834615, Thanks to Harald Braumann). 2016-05-16 Werner Baumann (werner.baumann@onlinehome.de) * Fix some spelling errors. 2016-04-16 Werner Baumann (werner.baumann@onlinehome.de) Release version 1.5.4 2016-04-16 Werner Baumann (werner.baumann@onlinehome.de) * src/Makefile.am: Use --fstack-protector-strong. 2016-04-15 Werner Baumann (werner.baumann@onlinehome.de) * README, mount.davfs.8: Add information about required local cache space. 2016-04-08 Werner Baumann (werner.baumann@onlinehome.de) * dav_fuse.c, dac_coda.c, kernel_interface.h, mount_davfs.c: For kernel_fs fuse: when getting SIGTERM unmount while dav_fuse_loop still is running. 2016-04-08 Werner Baumann (werner.baumann@onlinehome.de) * dav_fuse.c, dav_fuse_loop: Remove useless call of is_mounted (sr #109009). 2016-04-05 Werner Baumann (werner.baumann@onlinehome.de) * Release version 1.5.3 2016-04-04 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, parse_line: Fix stack smashing error (Debian bug #812456). * mount_davfs.c, kernel_interface.c, webdav.c: Check result of seteuid. * cache.c, dav_tidy_cache: Fix format parameter. * src/Makefile.am: Use compiler flag -fstack-protector-all. 2014-08-23 Werner Baumann (werner.baumann@onlinehome.de) * Release version 1.5.2 2014-08-23 Werner Baumann (werner.baumann@onlinehome.de) * umount_davfs.c: Add (and ignore) option t (sr #108638). 2014-08-10 Werner Baumann (werner.baumann@onlinehome.de) * Release version 1.5.1 2014-08-10 Werner Baumann (werner.baumann@onlinehome.de) * cache.c: Return error on close (sr #108597). 2014-08-09 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, cache.c: High priority for lock refresh (sr #108607). 2014-08-09 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, dav_init_cache: Increase faked free space. 2014-07-16 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, webdav.h, dav_fuse.c, dav_coda.c, mount_davfs.c, cache.c, cache.h: Remove USERINFO, fix stat, remove update_stat. 2014-06-20 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, cache.h, mount_davfs.c: Pass parameter got_sigterm by reference. 2014-06-19 Werner Baumann (werner.baumann@onlinehome.de) * Mount_davfs.c, main: Only log error if still is mounted. 2014-06-09 Werner Baumann (werner.baumann@onlinehome.de) * defaults.h, mount_davfs.h, mount_davfs.c webdav.c: Add option min_propset. 2014-06-08 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, add_node, update_directory: Fix file times if LastModified is missing. 2014-05-24 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, prop_result: Case insensitive test of path (sr #108566). 2014-05-04 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, update_cache_file: Fixing memory leak (sr #108158). 2014-04-22 Werner Baumann (werner.baumann@onlinehome.de) * src/Makefile.am: Add some hardening flags for compilation. 2014-04-21 Werner Baumann (werner.baumann@onlinehome.de) * Release version 1.5.0. 2014-04-20 Werner Baumann (werner.baumann@onlinehome.de) * defaults.h, mount_davfs.h, mount_davfs.c, cache.c: Add option minimize_mem (sr #108158). 2014-04-20 Werner Baumann (werner.baumann@onlinehome.de) * kernel_interface.c: Try loading kernel module fuse. * mount_davfs.c, check_dirs: Set mode of secrets file. * webdav.c, quota_reader: Replace strndup with ne_strndup. 2014-04-18 Werner Baumann (werner.baumann@onlinehome.de) * defaults.h, mount_davfs.h, mount_davfs.c, webdav.c: Improve cookie support (sr #107907, bug #41438). 2014-04-13 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, mount_davfs.c, mount_davfs.h: Add mount option grpid (sr #108432, Thanks to Miguel Coca) 2014-04-09 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, mount_davfs.h: Replace args->add_mopts. 2014-04-05 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.h, mount_davfs.c, webdav.c: Add options trust_ca_cert and trust_server_cert. 2014-04-05 Werner Baumann (werner.baumann@onlinehome.de) * umount_davfs.c: Allways try 'umount -i'. 2014-04-05 Werner Baumann (werner.baumann@onlinehome.de) * configure.ac, src/Makefile.am, defaults.h, mount_davfs.h, mount_davfs.c: Use utab if mtab is a symbolic link. 2014-03-30 Werner Baumann (werner.baumann@onlinehome.de) * defaults.h, webdav.c: Set default of follow_redirect to 0. 2014-03-23 Werner Baumann (werner.baumann@onlinehome.de) * defaults.h, mount_davfs.h, mount_davfs.c, webdav.c: Support temporary redirects. 2014-03-22 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, webdav.c, webdav.h: Remove property creationdate. 2014-03-22 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, cache.h, dav_fuse.c, webdav.c, webdav.h: Remove support for extended attributes. Remove property creationdate. 2014-03-15 Werner Baumann (werner.baumann@onlinehome.de) * Document option "use_compression". 2014-03-12 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, new_node: Fix missing mode. * man/mount.davfs.8: Fix escape rules for fstab. 2014-03-11 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, configure.ac: Remove support for Neon versions < 0.27. * defaults.h, mount_davfs.h, mount_davfs.c, wedav.c: Support compression for GET responses (bug #41355, thanks Evili del Rio). 2014-03-09 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, get_options: Add option "comment=" (bug #41354) 2014-03-08 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, mount_davfs.c; Make default access modes 755 and 644. * cache.c: Fix has_permission (bug #33644). 2014-03-07 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, check_dirs, parse_config: Use stat instead of access. * cache.c, mount_davfs.c, mount_davfs.h: Remove file_umask and dir_umask (bug #34563). 2014-03-03 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, check_fstab: Remove unnecessary decode_octal. Remove double check for ft->mnt_dir. * cache.c: Missing 'static'. 2013-12-28 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, configure.ac: Remove #include * webdav.c: Make calls to iconv functions depend on HAVE_ICONV. * dav_fuse.c, fuse_stat: dav_coda.c, coda_statfs: Return ENOSYS if dav_statfs fails (this should never happen). 2013-12-26 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c: Always canonicalize mount point (sr #108377). * mount_davfs.h, mount_davfs.c: Replace log_dbg_cmdline. 2013-09-22 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, check_fstab: Replace xxfsent functions by xxmntent functions. Don't compare commandline and fstab for options 'user' and 'users', only check fstab for presence. 2013-09-21 Werner Baumann (werner.baumann@onlinehome.de) * configure.ac: Add neon version 0.30 (sr #108392). 2013-09-08 Werner Baumann (werner.baumann@onlinehome.de) * kernel_interface.c, mount_davfs.c: Don't create /dev/coda and /dev/fuse. Remove insecure calls of system(). 2012-11-01 Werner Baumann (werner.baumann@onlinehome.de) * man/Makefile.am, man/de/Makefile.am, man/es/Makefile.am: Honour configrue parameter --manfile (sr #108173) 2012-08-20 Werner Baumann (werner.baumann@onlinehome.de) * src/Makefile.am: Fix DESTDIR bug (sr #108104). 2012-08-06 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, write_mtab_entry: Remove unnecessary variable ret. 2012-08-06 Werner Baumann (werner.baumann@onlinehome.de) * dav_fuse.c: Fix integer format warnings. 2012-08-04 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c: Fix integer format warnings. 2012-07-19 Werner Baumann (werner.baumann@onlinehome.de) * Release version 1.4.7. 2012-07-19 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c: Get auxiliary groups with getgroups. 2012-07-19 Werner Baumann (werner.baumann@onlinehome.de) * umount_davfs.c: Quote mpoint in umount_command. 2012-07-19 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, init_webdav: Error reading client certificate. 2012-07-19 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, has_permission: Change strcmp() == 0 into strcmp() != 0 (bug #33644). 2012-07-19 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, get_ne_error: Translate HTTP 405 into ENOENT. (http://savannah.nongnu.org/support/?107869) 2012-07-19 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, dav_init_cache: Fix integer overflow. 2012-07-19 Werner Baumann (werner.baumann@onlinehome.de) * dav_coda.c, dav_fuse.c: Add missing #includes. 2012-07-19 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, dav_quota: Check for all but temporary errors on USERINFO. 2012-07-19 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, parse_line, read_config, read_secrets: Remove fixed length buffer, parse config line in place (bug #33412). 2012-07-19 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, kernel_interface.c: Check return values of system calls. 2012-07-19 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c: Added missing '\r' in constant none_match_header 2012-07-19 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, mount_davfs.h: Remove check for someone elses home directory (sr #107641). 2012-07-19 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, kernel_interface.c: Fix integer format warnings. 2012-07-19 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, mount_davfs.c, webdav.c: Fix format-security errors. 2012-07-19 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, check_fstab: Search fstab additionally for mount point with trailing slash (Debian Bug#580227). 2010-04-30 Werner Baumann (werner.baumann@onlinehome.de) * Released version 1.4.6 2010-02-16 Werner Baumann (werner.baumann@onlinehome.de) * dav_coda.c, dav_fuse.c, kernel_interface.c, webdav.c: Add missing "#include " (bug #28916). 2010-01-21 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, parse_secrets: Wrong assignment of password from pam_mount. (bug #28706); 2009-11-15 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, dav_create: Fix another error in the log message. 2009-11-15 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, dav_create: Fix log message. * Released version 1.4.5 2009-11-15 Werner Baumann (werner.baumann@onlinehome.de) * Released version 1.4.4 2009-11-14 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, dav_init_cache: Initialize fs_stat->files. * cache.c, dav_create: Log entry if dav_lock returns EEXIST. 2009-11-03 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, ssl_verify: Don't accept suspicious certificates if !have_terminal. 2009-10-18 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, webdav.c: Don't ask the user for unverified certificates if "askauth 0". * Released version 1.4.3 2009-10-18 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c: Add experimental support for command line option 'username' for use with pam_mount. * Released version 1.4.2 2009-10-17 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, parse_secrets: Check for tty before calling dav_user_input_hidden. 2009-10-14 Werner Baumann (werner.baumann@onlinehome.de) * configure.ac: Add support for neon 0.29. * webdav.c, dav_init_webdav: Support NTLM authentication. 2009-10-10 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, dav_head: Ignore Last-Modified header if the value is 0. 2009-08-30 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, update_cache_file: Don't change file times when Last-Modified-Header is missing. 2009-08-26 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, dav_close: In call to get_file_handle set parameter accmode to O_RDWR for directories (to avoid EBADF with coda). 2009-07-17 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, prop_result: Remove double slashes from path. 2009-06-30 Werner Baumann (werner.baumann@onlinehome.de) * dav_fuse.c, fuse_stat: Correct block counts according to block size. 2009-06-13 Werner Baumann (werner.baumann@onlinehome.de) * Released version 1.4.1. 2009-06-12 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, set_next_upload_attempt: Max. retry intervall for files must not exceed max_retry. * Add configuration option max_upload_attempts. 2009-06-08 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, write_node et al: Save member lock_expire to index file. 2009-06-07 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, prop_result: If property not found try property without namespace. (idea by Dirk Arend ) * cache.c, add_to_changed: Fixed: wrong size in malloc. * cache.c: When upload fails temporarily: retry with increasing delays. * webdav.c, dav_delete: If file is not found, try to unlock. * cache.c, update_node: Only remove created nodes when remote size > 0. * webdav.c, dav_put: Fix double free after second PUT attempt. 2009-06-06 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, dav_statfs: Use retry time instead of dir_refresh. * mount_davfs, read_secrets: Only call ne_uri_defaultport if scheme != NULL. 2009-06-05 Werner Baumann (werner.baumann@onlinehome.de) * wedav.c, dav_put: Do HEAD if no etag returned (regression in 1.4.0). * mount_davfs.c, read_secrets: For URLs only check port if present. * redo the above: set port to default if not present and check. 2009-05-31 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, cache.h, dav_coda.c, dav_fuse.c: Cache quota in global variable fs_stat. Update with dir_refresh when closing or deleting files. Function dav_stafs now returns a pointer. 2009-05-30 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, webdav.h, dav_quota: Return total webspace instead of available. Remember support for quota in static flag use_rfc. Add support for method USERINFO. * webdav.c: Rename block_writer into file_reader for consistency with neon naming conventions. * cache.c, dav_open, dav_write: Open directories O_RDWR again, but prevent writing by applications. 2009-05-29 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, check_double_mounts: Free temporary string mp. * cache.c, parse_index: Free index. * webdav.c, dav_init_webdav: Make custom_header a global variable to not disturb code test tools. * webdav.c, dav_quota: Initialize ctx to 0; add ctx.error, use strtoull. 2009-05-25 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, mount_davfs.c: Add missing includes. 2009-05-21 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, move_dirty, move_reg: Use converted file name for dst_path. * cache.c: Rename move_dirty to move_no_remote. * cache.c, move_reg: Set src->utime = time(NULL). 2009-05-15 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, dav_close: Always delete directory cache files on close. * cache.c, dav_open: Open dirs with O_RDONLY. * dav_coda.c, dav_fuse.c: Replace ENOTSUP by ENOSYS for unsupported upcalls. 2009-05-02 Werner Baumann (werner.baumann@onlinehome.de) * Released version 1.4.0. 2009-05-01 Werner Baumann (werner.baumann@onlinehome.de) * configure.ac; Add AC_CHECK_FUNCS([ftruncate]). 2009-05-01 Werner Baumann (werner.baumann@onlinehome.de) * bootstrap: Use --copy option with automake, remove rm commands. 2009-05-01 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c: Fix Etag normalization. 2009-05-01 Werner Baumann (werner.baumann@onlinehome.de) * cache.h, dav_open: Add parameter open_create to allow for open(..., O_CREATE, 444). 2009-04-30 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, dav_close: if delay_upload == 0 save to server immediately. 2009-04-29 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, mount_davfs.h: Add mount-option "users". 2009-04-26 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c: New function split_uri; allow arbitrary characters in path component, including spaces. 2009-04-14 Werner Baumann (werner.baumann@onlinehome.de) * Reverted to fuse_kernel.h from 2.5.3 because of different length of struct fuse_attr. 2009-04-13 Werner Baumann (werner.baumann@onlinehome.de) * Updated fuse_kernel.h * Removed unused licence documents. 2009-04-12 Werner Baumann (werner.baumann@onlinehome.de) * Removed support for coda kernel version 2 and fuse kernel version 5. * Simplify coda.h and select alternative license. 2009-04-12 Werner Baumann (werner.baumann@onlinehome.de) * bootstrap: Inserted force options again. Restore COPYING from COPYING.davfs2. 2009-04-06 Werner Baumann (werner.baumann@onlinehome.de) * bootstrap: Removed --force and --force-missing options. * COPYING: Added missing licenses. 2009-04-04 Werner Baumann (werner.baumann@onlinehome.de) * cahe.c, dav_lookup: If node not found update directory with file_refresh. 2009-03-29 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, mount.davfs.8: Remove deprecated mount options (askauth, locks, useproxy). * defaults.h, davfs2.conf, davfs2.conf.5: Option if_match_bug now defaults to 0. 2009-03-29 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, mount_davfs.h, webdav.c, defaults.h: Remove support for WebDAV-property displayname. 2009-03-29 Werner Baumann (werner.baumann@onlinehome.de) * cache.c: Changed handling of directory cache files to fix bug in handling "rm -r". 2009-03-28 Werner Baumann (werner.baumann@onlinehome.de) * Undo FUSE_ATOMIC_O_TRUNC. 2009-03-24 Werner Baumann (werner.baumann@onlinehome.de) * fuse7_kernel.h: New version from linux 2.6.26 * dav_fuse7.c, fuse_init: Use flag FUSE_ATOMIC_O_TRUNC. 2009-03-22 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, dav_setattr: Set upload-time if size is changed. * cache.c: Added function get_upload_time. * cache.c, update_cache_file: Only upload dirty files if upload-time is reached. (Fix empty PUTs on setattr before open.) 2009-03-15 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, split_proxy: Only set port if given in args. * mount_davfs.c, read_secrets: Only compare proxy-port if given in secrets file. * mount_davfs.c new_args: Fix getuid() (not getuid). 2009-01-27 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, delete_args: Remove double free of args->p_passwd (fixes bug 2351083, Debian bug #512625). 2009-01-02 Werner Baumann (werner.baumann@onlinehome.de) * Added copyright notices. * Updated to GPL version 3. * mount_davfs: replace petpass with user_input_hidden. 2008-11-23 Werner Baumann (werner.baumann@onlinehome.de) * Default for use_expect100 is now 0 2008-11-23 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c: Add function lock_by_path. Remove global variable suri. 2008-10-26 Werner Baumann (werner.baumann@onlinehome.de) * unifying coding style * webdav.c, dav_init_connection: Use %-encoded path. 2008-09-08 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, block_writer: Add mode parameter in call of open(); remove O_CREATE (thanks Marcin ZajÄ…czkowski) * cache.c, open_file: Add mode parameter in call of open(). 2008-08-08 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, dav_head: Fix bug 2042177 (*length, not *mtime). 2008-07-12 Werner Baumann (werner.baumann@onlinehome.de) * Released version 1.3.3 2008-06-30 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, get_options: Missing break in first case. 2008-06-24 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, dav_setattr: Set file times of the cache file too when they are changed by setattr. 2008-06-17 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, dav_put: Only use etag in conditional PUT, even in second try. 2008-06-12 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, dav_tidy_cache: Better debug messages, including neon-error. 2008-05-30 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, parse_index: Finish parsing, before checking for parse error (ne_xml_parse seems not allways to report errors otherwise) * cache.c, write_node: Put path, name, cache_path, etag and mime_type in CDATA-sections. 2008-05-23 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, mount_davfs.h, webdav.c, webdav.h: Add ne_set_connect_timeout. (Thanks Martin Higham) 2008-05-17 Werner Baumann (werner.baumann@onlinehome.de) * Released version 1.3.2 (really) 2008-05-16 Werner Baumann (werner.baumann@onlinehome.de) * Not yet released 1.3.2 * cache.c, resize_cache: Fixed another bug calculating cache_size. 2008-05-15 Werner Baumann (werner.baumann@onlinehome.de) * Released version 1.3.2 2008-05-13 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, xml_..: Concatenate subsequent cdata_callbacks. Fixes growing-cache-bug when using libexpat. * cache.c, clean_cache: Fixed error parsing table. * cache.c, update_cache_file: Fixed error calculating cache_size. 2008-05-04 Werner Baumann (werner.baumann@onlinehome.de) * Version 1.3.1 released. 2008-04-29 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, dav_get_file: Typo: If-Non-Match -> If-None-Match 2008-04-09 Werner Baumann (werner.baumann@onlinehome.de) * dav_fuse7.c, fuse_init: Reduce max_write according to bug in fuse. * dav_fuse7.c, fuse_stat: Increase bsize to as many pages as fit in max_write. 2008-04-05 Werner Baumann (werner.baumann@onlinehome.de) * Improved debug output 2008-04-02 Werner Baumann (werner.baumann@onlinehome.de) * configure.ac: Add neon 0.28 (no API-changes) 2008-03-24 Werner Baumann (werner.baumann@onlinehome.de) * man/davfs2.conf.5: Clarified option servercert. 2008-03-24 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, change_persona: Fixed bug in message: dav_user not dav_group * man/davfs2.conf.5: Options dav_user, dav_group: substitute USER and GROUP, not PACKAGE. 2008-02-07 Werner Baumann (werner.baumann@onlinehome.de) * Disable cookie support an conditional LOCK for Neon 0.25 2008-02-04 Werner Baumann (werner.baumann@onlinehome.de) * Version 1.3.0 released. 2008-02-04 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, clean_cache: Create backup-files for orphaned files in cache. 2008-02-04 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, cache.c: Quick termination on SIGTERM; store flags dirty and remote_exists of dirty files in index. 2008-02-03 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, termination_handler: Don't call umount in termination handler. 2008-02-02 Werner Baumann (werner.baumann@onlinehome.de) * dav_fuse7.c, dav_fuse5.c, dav_coda2.c, dav_coda3.c: Only call dav_tidy_cache once every DAV_DELAY_UPLOAD seconds as long as there are upcalls from kernel. 2008-02-02 Werner Baumann (werner.baumann@onlinehome.de) *webdav.c, update_cookie: Fixed bug: old cookie not removed. 2008-02-02 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, dav_put: No HEAD if !has_if_match_bug and !*exists. 2008-02-01 Werner Baumann (werner.baumann@onlinehome.de) * Removed option idle_time. Renamed option delay_uploads -> delay_upload. Set delayed upload-time for node on close. 2008-01-31 Werner Baumann (werner.baumann@onlinehome.de) *webdav.c, prop_result: Add double quotes on Etag if missing. 2008-01-11 Werner Baumann (werner.baumann@onlinehome.de) * umount_davfs.c: Remove option -C from ps-command (BSC-option). 2008-01-05 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, prop_result: ctime is in iso-8601 format (Bug 1863061). * webdav.c, prop_result, dav_put: Fixed bug in drop_weak_etags. * webdav.c, dav_put: Only use etag in conditional PUT. 2007-12-31 Werner Baumann (werner.baumann@onlinehome.de) * Renamed option: misused_weak_etag -> drop_weak_etags 2007-12-27 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, dav_get_file, dav_head, dav_put: Honour misused_weak_etag 2007-12-27 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, webdav.h, mount_davfs.c, mount_davfs.h, defaults.h; New option: misused_weak_etag 2007-12-26 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, dav_put: Don't even use "if-match" with etag when has_if_match_bug. 2007-12-26 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, read_secrets: Allow keyword "proxy" instead of DN in proxy line. Fix bugs in certificate path names. 2007-12-25 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, read_secrets: Allow mountpoint instead of url in secrets file. 2007-12-25 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, parse_line: Allow none-ascii characters in config files. * mount_davfs.h, mount_davfs.c, webdav.h, webdav.c, defaults.h: New options: precheck and ignore_dav_header 2007-12-23 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, mount_davfs.h, mount_davfs.c, defaults.h: Added very simple cookie support. 2007-12-15 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, webdav.h, cache.c, cache.h: Support dav-quota. Change members of dav_stat to off_t. 2007-12-15 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, xml_cdata_date, write_node: Use epoch and ISO-format for time. Human readable string for information only. 2007-12-13 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, webdav.h, cache.c: New functions for converting character encoding. * cache.c, update_node: Check for changed name before other checks. * webdav.c, dav_move: Remove prop displayname if used. 2007-12-11 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, prop_result, dav_init_webdav: ne_propset_value always is in utf-8; don't decode from utf-16. 2007-12-10 Werner Baumann (werner.baumann@onlinehome.de) * cache.c: Add list of changed nodes. New dav_tidy_cache function. Write times in readable format to index file. 2007-12-08 Werner Baumann (werner.baumann@onlinehome.de) * cache.c: Change cache_size whenever a file changes (do not calculate in dav_tidy_cache). 2007-12-01 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, dav_lock: create suri->path after HEAD-request 2007-11-30 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, cache.h, dav_fuse7.c: Support getxattr for user.mime_type. 2007-11-25 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, log_writer: Use Loglevel LOG_DEBUG. 2007-11-22 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.h, mount_davfs.c, webdab.h, webdav.c, davfs2.conf.5: Added option "add_header". 2007-11-22 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, webdav.c: Use conditional LOCK if possible. 2007-11-17 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, move_dirty: Don't try to delete none-existant file. 2007-11-17 Werner Baumann (werner.baumann@onlinehome.de) * davfs2.conf.5, mount_davfs.h, mount_davfs.c, webdav.c: Add option if_match_bug. Use conditional PUT if possible. 2007-11-11 Werner Baumann (werner.baumann@onlinehome.de) * configure.ac, cache.c, webdav.c: Remove support for neon 0.24 2007-11-06 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, debug_opts_neon: Remove NE_DBG_XML from debug most. 2007-11-05 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, put_file: Added support for Neon 0.27 2007-11-03 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, dav_tidy_cache: Don't check more than 100 nodes in one run. 2007-11-03 Werner Baumann (werner.baumann@onlinehome.de) * defaults.h, mount_davfs.h, mount_davfs.c: Added option delay_uploads * cache.h, cache.c, dav_init_cache, dav_close: Delay uploads only if !delay_uploads 2007-11-03 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, move_reg, dav_rename: Send MOVE request for dirty files. * webdav.c, dav_move: Remove locks on source file. * defaults.h: use_displayname defaults to no 2007-11-02 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, dav_head: Check header Content-Length. * webdav.c, dav_put: If a file should not exist, allow for file with length 0 (SVN-Bug 2896). 2007-08-31 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, get_error: Return EIO on NE_LOOKUP, so mounting will fail with appropriate error message. 2007-07-30 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, read_config: Disabled 'porxy' option in user configuration file. * mount_davfs.c, parse_config: Read proxy environment variables only if the mounting user is root. 2007-07-29 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, read_no_proxy_list: Allow for '*', portnumber and spaces in no_proxy. 2007-07-28 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c: Added function proxy_from_env to parse different kind of xxx_proxy environment variables. (Bug 1762423) Added function read_no_proxy_list. 2007-07-21 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, init_webdav, log_writer: Splitt messages into chunks < 512 char. Escape '%'-character in log-messages. 2007-07-07 Werner Baumann (werner.baumann@onlinehome.de) * Use GNU Autoconf 2.61, GNU Automake 1.10, GNU gettext-tools 0.16.1 * mount_davfs.c, parse_secrets: Accept lines without terminating newline for username and p_user. * Version 1.2.2 released 2007-06-29 Werner Baumann (werner.baumann@onlinehome.de) * cache.c: update_node If a node changed remotely, only create a new node when the existing node is dirty. * kernel_interface.c, kernel_interface.h: Make fuse the default kernel file system. 2007-06-10 Werner Baumann (werner.baumann@onlinehome.de) * davfs2.m4, src/Makefile.am: add variable ssbindir; create symbolic link only when sbindir not equal to ssbindir 2007-06-08 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, main: properly release tty (bug 1730992, patch by Tero Pelander) * man/Makefile.am, man/de/Makefile.am, man/es/Makefile.am: enable concurrent compilation (bug 1730979, patch by Tero Pelander) 2007-05-29 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c, dav_init_webdav, dav_init_connection: register lock_store *after* checking server capabilities 2007-05-28 Werner Baumann (werner.baumann@onlinehome.de) * Makefile.am: correct $(docdir) 2007-05-21 Werner Baumann (werner.baumann@onlinehome.de) * rename INSTALL to INSTALL.davfs2 to avoid name clash with generic INSTALL 2007-05-21 Werner Baumann (werner.baumann@onlinehome.de) * made debug a runtime option 2007-05-17 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c: add custom stream to redirect neon debug messages to syslog remove unnecessary code from dav_close_webdav 2007-04-26 Werner Baumann (werner.baumann@onlinehome.de) * released version 1.2.1 2007-04-15 Werner Baumann (werner.baumann@onlinehome.de) * corrected po4a.conf for partial translations * added Spanish davfs2.conf.5 from Luciano * webdav.c, prop_result: replacement for / in file names depends from position (slash-, -slash-, -slash) 2007-04-07 Werner Baumann (werner.baumann@onlinehome.de) * Released version 1.2.0 2007-04-06 Werner Baumann (werner.baumann@onlinehome.de) * etc/Makefile.am: create backup of davfs2.conf and secrets on install * src/Makefile.am: simplified 2007-04-03 Werner Baumann (werner.baumann@onlinehome.de) * cache.c: add_node don't reset x-bit if is_exec == -1 2007-04-01 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, webdav.c, cache.c: mount even when OPTIONS request times out 2007-03-25 Werner Baumann (werner.baumann@onlinehome.de) * use autopoint to add gettextize-files * use LINGUAS variable to decide which man pages to install 2007-03-10 Werner Baumann (werner.baumann@onlinehome.de) * use po4a for translated man pages 2007-03-05 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, parse_commandline: added dummy options -v and -w 2007-03-02 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c: make ssl error messages more clear * mount_davfs.c, read_config: clicert_pw not cliecert 2007-03-02 Werner Baumann (werner.baumann@onlinehome.de) * cache.c: cache_dir is owned by mount.davfs process backup_dir is owned by default_user 2007-03-02 Werner Baumann (werner.baumann@onlinehome.de) * added option ignore_home * added davfs2.conf man page 2007-02-28 Werner Baumann (werner.baumann@onlinehome.de) * Added support for client certificates * Added support for server certificates that are verified by the user and can't be verified the normal way * Added dav_user, when invoked by root change id to dav_user * Changed default dav_group to 'davfs2' 2007-02-25 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, write_mtab_entry: List options; no username if user is root. 2007-02-20 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, webdav.c: review charset conversion * mount-davfs.c: added option _netdev 2007-02-14 Werner Baumann (werner.baumann@onlinehome.de) * Added NLS. 2007-02-13 gettextize * gettext.m4: New file, from gettext-0.14.4. * iconv.m4: New file, from gettext-0.14.4. * lib-ld.m4: New file, from gettext-0.14.4. * lib-link.m4: New file, from gettext-0.14.4. * lib-prefix.m4: New file, from gettext-0.14.4. * progtest.m4: New file, from gettext-0.14.4. * Makefile.am (EXTRA_DIST): Add the new files. Add config/config.rpath. (SUBDIRS): Add po. * configure.ac (AC_CONFIG_FILES): Add po/Makefile.in. 2007-02-12 Werner Baumann (werner.baumann@onlinehome.de) * Use automake. Reorganize directory structure, trying to meet GNU standards. 2007-02-03 Werner Baumann (werner.baumann@onlinehome.de) * cache.c: dav_setattr Check return value of getpwuid and getgrgid. 2006-12-28 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c, mount_davfs.h, webdav.c, webdav.h, cache.c, davfs2.conf, davfs2.conf.template: Experimental character conversion for file and directory names. 2006-12-26 Werner Baumann (werner.baumann@onlinehome.de) * Released version 1.1.4 2006-12-17 Werner Baumann (werner.baumann@onlinehome.de) * cache.c: dav_tidy_cache Don't save backups. * cache.c: dav_getattr, dav_lookup Use dir_refresh (not file_refresh). * defaults.h: Reduce default dir_refresh to 60 seconds. 2006-11-30 Werner Baumann (werner.baumann@onlinehome.de) * kernel_interface: Try modprobe coda. Use full path of modprobe. Send messages from modprobe to /dev/null. 2006-11-29 Werner Baumann (werner.baumann@onlinehome.de) * cache.c: update_directory Make update interval depend from calling function. 2006-11-29 Werner Baumann (werner.baumann@onlinehome.de) * kernel_interface.c: init_fuse buf_size minimum is FUSE_MIN_READ_BUFFER + 4096 * dav_fuse5.c, dav_fuse7.c: dav_fuse7_loop, fuse_init, fuse_read, fuse_stat, fuse_write Adjust buffer size. *cache.c: move_dirty Unlock src if created, else delete. 2006-11-27 Werner Baumann (werner.baumann@onlinehome.de) * dav_fuse7.c: fuse_create Removed O_EXCL and O_CREAT flags in call to dav_open. * mount_davfs: main Use options -il in call of umount program. 2006-11-19 Werner Baumann (werner.baumann@onlinehome.de) * cache.c: Flush coda on create and mkdir. * cache.c: dav_init_cache Fixed name clash of parameters and global variables. * cache.c, cache.h, dav_coda2.c, dav_coda3.c, dav_fuse5.c, dav_fuse7.c: dav_setattr Ignore ctime. 2006-11-19 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c: dav_init_webdav Changed default lock owner to . * webdav.c, cache.c: dav_init_webdav, dav_init_cache Check server capabilities. If connection fails, print neon error. * cache.c: move_reg Do not change etag and smtime of source node. Do not lock or set execute. * Time stamps revisited. 2006-11-18 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c: dav_put Do not check mtime if etag is present. * cache.c: update_node For cached files (includes dirty and open_write) do not check mtime if etag is present. * cache.c: tidy_cache, update_cache_file Do not change mtime after PUT. * cache.c, webdav.c: update_cache_file, dav_get_file Only change mtime if a new version is retrieved. * cache.c: dav_getattr, dav_lookup Call attr_from_cache_file only if the file is open. 2006-11-12 Werner Baumann (werner.baumann@onlinehome.de) * umount_davfs: If canonicalize_file_name returns NULL, try argv[optind]. 2006-11-07 Werner Baumann (werner.baumann@onlinehome.de) * Makefile.in: Added missing entries for umount. * Released version 1.1.3 2006-11-02 Werner Baumann (werner.baumann@onlinehome.de) * cache.c: move_reg, move_dirty Do not backup destination. webdav.c: dav_head Destroy request *after* retrieving information. * cache.h, cache.c: dav_node Added dirty flag (mtime not always indicates changes). * cache.c, webdav.c, webdav.h: On PUT set Execute property before HEAD (IIS changes Etag on PROPPATCH). * Set utime on creation of files and directories. 2006-10-28 Werner Baumann (werner.baumann@onlinehome.de) * Added umount helper umount.davfs and man page. 2006-10-28 Werner Baumann (werner.baumann@onlinehome.de) * cache.c: is_cached, clean_tree, update_cache_file Removed access()-call. * mount_davfs.h, mount_davfs.c, cache.h, cache.c, davfs2.conf, davfs2.conf.template: Added option gui_optimize, adjusted names and semantics of cache times. 2006-10-28 Werner Baumann (werner.baumann@onlinehome.de) * cache.c: update_node, dav_tidy_cache, move_dirty Update node->utime for regular files. 2006-10-23 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, cache.h, dav_fuse5.c, dav_fuse7.c: Removed O_FSYNC (Debian Bug report logs - #394845). It is BSD feature and not necessary. 2006-10-18 Werner Baumann (werner.baumann@onlinehome.de) * cache.c: dav_init_cache If connections fails with EAGAIN, try a second time. * webdav.c, webdav.h, mount_davfs.c, mount_davfs.h, defaults.h, debug.h: Make 'Expect: 100-Continue' header a configuration option. 2006-10-16 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c: dav_init_webdav Initialize lock_timeout. 2006-10-08 Werner Baumann (werner.baumann@onlinehome.de) * Released version 1.1.2 2006-10-08 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c: prop_result Normalize result->path. 2006-10-07 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c: prop_result test length of href and log error if too short * mount_davfs.c: read_secrets Added patch to allow lines without password [ 1572771 ] 2006-10-07 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c: Fixed bug in treating missing trailing slash in collection urls. 2006-10-05 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.h, mount_davfs.c, webdav.h, webdav.c: Add configuration option use_displayname, use_proxy, ask_auth and locks to configuration file. useproxy, askauth and locks deprecated on command line and in fstab. They are no longer check in check_fstab. 2006-10-05 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c: dav_get_collection Check path for trailing slash; ctx.path must always have a trailing slash. 2006-10-05 Werner Baumann (werner.baumann@onlinehome.de) * cache.c: dav_write Check for write errors. * dav_coda2.c, kernel_interface.c: Disable coda2 interface if pointers are 64 bit. * dav_fuse5.c, dav_fuse7.c: fuse_write Properly cast size_t into 32-bit member out->size. 2006-10-04 Werner Baumann (werner.baumann@onlinehome.de) * coda2.h, coda3.h: Commented out include of linux/time.h 2006-10-03 Werner Baumann (werner.baumann@onlinehome.de) * Makefile.in, mount_davfs.c, README: Wrong directory for documentation fixed. (now: $prefix/share/doc/davfs2) * Fixed bug in uninstall target. 2006-10-03 Werner Baumann (werner.baumann@onlinehome.de) * Makefile.in: missing mount.davfs.8.in * Version 1.1.1 released 2006-10-03 Werner Baumann (werner.baumann@onlinehome.de) * Version 1.1.0 released. 2006-09-30 Werner Baumann (werner.baumann@onlinehome.de) * cache.c: is_created, is_dirty, backup_node Test for existence of cache_path. * cache.c, cache.h, dav_fuse5.c, dav_fuse7.c: dav_read, dav_write: removed parameter pid. 2006-09-28 Werner Baumann (werner.baumann@onlinehome.de) * kernel-interface.c, kernel-interface.h, dav_fuse5.c, dav_fuse7.c, mount_davfs.c, mount_davfs.h: Evaluate fuse version by trial mounts. Call specific kernel_interface msg_loop from main. * cache.c, cache.h, dav_coda2.c, dav_coda3.c, dav_fuse5.c, dav_fuse7.c: Added parameter off to dav_write_dir_entry_fn, to satisfy fuse7. * mount_davfs.h, mount_davfs.c, webdav.c: Added option lock_owner. Added sections to davfs2.conf to allow different settings for each mountable file system. * mount_davfs.c: No more URL encoding of urls. Use octal escapes in fstab, escapes or quoting on the shell and in the config files. 2006-09-24 Werner Baumann (werner.baumann@onlinehome.de) * Added support for fuse kernel fs. * Added large file support. * Added dav_fuse7.c, dav_fuse5.c, dav_coda2.c, dav_coda3.c, kernel_interface.c, fuse5_kernel.h, fuse7_kernel.h, coda2.h, coda3.h, kernel_interface.h. * Removed dav_coda.c, dav_coda.h. * Fixed some illegal pointer bugs. 2006-08-27 Werner Baumann (werner.baumann@onlinehome.de) * dav_coda.c, coda_setattr() Added atime. * cache.c, dav_rename() Adjust smtime after MOVE. * cache.c: Changed delete_cache() into clean_cache(). * dav_coda.c: coda_open_by_fd() Ignore O_CREATE and O_EXCL flags. * cache.c: update_cache_file() Only PUT if not locked. * cache.c, write_node(), clean_cache(): Fixed bugs in writing backup files and cleaning cache. 2006-08-25 Werner Baumann (werner.baumann@onlinehome.de) * dav_coda.h, dav_coda.c: Fixed 64-bit alignment bug in struct Coda3Fid. Clear padding before setting FID in response to upcalls. 2006-08-23 Werner Baumann (werner.baumann@onlinehome.de) * dav_coda.c: Fixed bug in run_messageloop(). * cache.c: update_node() Test for change in smtime and flush if changed. 2006-08-22 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, dav_coda.c: Replaced dav_coda_flush() call back by a pointer to flush flag. 2006-08-21 Werner Baumann (werner.baumann@onlinehome.de) * cache.c: Remove cache file of parent directory and set utime = 0, whenever a node is removed or added. Issue a flush() call when this changes are not initiated by the kernel. 2006-08-20 Werner Baumann (werner.baumann@onlinehome.de) * Added configuration options. Updated config files. 2006-08-20 Werner Baumann (werner.baumann@onlinehome.de) * Reviewed internal interfaces. Removed circular dependencies from header files. * Added support for neon-0.2.6. * Removed bug in handling "displayname". 2006-07-23 Werner Baumann (werner.baumann@onlinehome.de) * cache.c, cache.h: removed variable notify, cleaner code for calling flush_nodes() 2006-07-11 Werner Baumann (werner.baumann@onlinehome.de) * webdav.c: prop_result() Only http-unescape href once. 2006-07-09 Werner Baumann (werner.baumann@onlinehome.de) * Cleared up interfaces between dav_coda.c, cache.c and mount_davfs.c to reduce dependencies and prepare for integration of fuse module. * Fixed path in lock_discover. * Remove null resources from dav_props. * Use CODA_FLUSH for downcall (zap and purge do not seem to work as expected). 2006-06-17 Werner Baumann (werner.baumann@onlinehome.de) * mount_davfs.c: check_mountpoint() Fixed error when testing for foreign home directories. 2006-06-06 Werner Baumann (werner.baumann@onlinehome.de) * dav_coda.c: fixed potential security risk Ownership and mode of devices /dev/cfs0 to /dev/cfs4 will no longer be changed by mount.davfs if the devices already exist. If mount.davfs has to create them, they will be set "crw- --- --- root root". 2006-06-04 Werner Baumann (werner.baumann@onlinehome.de) * cache.c: check_cache_dir() Include host name in name of cache directory. 2006-06-03 Werner Baumann (werner.baumann@onlinehome.de) * configure.in: Clarified help string for option enable-debug. 2006-06-02 Werner Baumann (werner.baumann@onlinehome.de) * dav_coda.c, cache.c, cache.h, configure.in: Using size_t instead of int/uint as index into table and when casting from pointer. Removed AC_CHECK_SIZEOF([void *], [], []). (Should now work on 32- and 64-bit systems without compiler warnings.) 2006-05-31 Werner Baumann (werner.baumann@onlinehome.de) * cache.c: dav_idle() renamed dav_tidy_cache() New algorithm for writing back and resizing cache. * dav_coda.c: dav_run_messageloop() Call dav_tidy_cache() recurrently until there is nothing left to tidy or an upcall from coda. 2006-05-01 Werner Baumann (werner.baumann@onlinehome.de) * dav_coda.c: offset[UID][0] Use cr_euid for coda-kernel-version 2 instead of cr_uid. 2006-04-30 Werner Baumann (werner.baumann@onlinehome.de) * Removed Large File Support on 32-bit systems because of too many problems. There is probably not much need to transfer files bigger than 20 GB. * Fixed: Don't change node->size when 304 Not_modified. Unlock when no more open for write and file is unchanged. * Released version 1.0.2 (still beta) 2006-04-29 Werner Baumann (werner.baumann@onlinehome.de) * configure.in: Added AC_SYS_LARGEFILE 2006-04-29 Werner Baumann (werner.baumann@onlinehome.de) * fixed support for neon 0.25 * added dav_sync() 2006-04-01 Werner Baumann (werner.baumann@onlinehome.de) * released version 1.0.1 (beta) Copyright (C) 2006, 2007, 2008, 2009 Werner Baumann Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. davfs2-1.5.5/config/0000755000175000017500000000000013422373177011166 500000000000000davfs2-1.5.5/config/depcomp0000755000175000017500000005601613422371027012463 00000000000000#! /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: davfs2-1.5.5/config/config.sub0000755000175000017500000010676313422371026013075 00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright 1992-2016 Free Software Foundation, Inc. timestamp='2016-11-04' # 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 # 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 or 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-2016 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* | netbsd*-eabi* | \ kopensolaris*-gnu* | cloudabi*-eabi* | \ 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 \ | ba \ | be32 | be64 \ | bfin \ | c4x | c8051 | clipper \ | d10v | d30v | dlx | dsp16xx \ | e2k | 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 \ | pru \ | pyramid \ | riscv32 | riscv64 \ | rl78 | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]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-* \ | ba-* \ | be32-* | be64-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* \ | c8051-* | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | e2k-* | 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-* \ | pru-* \ | pyramid-* \ | riscv32-* | riscv64-* \ | 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 ;; asmjs) basic_machine=asmjs-unknown ;; 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 ;; e500v[12]) basic_machine=powerpc-unknown os=$os"spe" ;; e500v[12]-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` os=$os"spe" ;; 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) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little) 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* | -cloudabi* | -sortix* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ | -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* \ | -midipix* | -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* \ | -onefs* | -tirtos* | -phoenix* | -fuchsia*) # 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*) ;; -ios) ;; -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: davfs2-1.5.5/config/COPYING.davfs20000644000175000017500000010451412460776605013336 00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . davfs2-1.5.5/config/po.m40000644000175000017500000004461612460776605012005 00000000000000# po.m4 serial 17 (gettext-0.18) dnl Copyright (C) 1995-2010 Free Software Foundation, 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]) dnl Checks for all prerequisites of the po subdirectory. AC_DEFUN([AM_PO_SUBDIRS], [ AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake AC_REQUIRE([AM_NLS])dnl dnl Release version of the gettext macros. This is used to ensure that dnl the gettext macros and po/Makefile.in.in are in sync. AC_SUBST([GETTEXT_MACRO_VERSION], [0.18]) dnl Perform the following tests also if --disable-nls has been given, dnl because they are needed for "make dist" to work. dnl Search for GNU msgfmt in the PATH. dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. dnl The second test excludes FreeBSD msgfmt. AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT]) dnl Test whether it is GNU msgfmt >= 0.15. changequote(,)dnl case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; *) MSGFMT_015=$MSGFMT ;; esac changequote([,])dnl AC_SUBST([MSGFMT_015]) changequote(,)dnl case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; *) GMSGFMT_015=$GMSGFMT ;; esac changequote([,])dnl AC_SUBST([GMSGFMT_015]) dnl Search for GNU xgettext 0.12 or newer in the PATH. dnl The first test excludes Solaris xgettext and early GNU xgettext versions. dnl The second test excludes FreeBSD xgettext. AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) dnl Remove leftover from FreeBSD xgettext call. rm -f messages.po dnl Test whether it is GNU xgettext >= 0.15. changequote(,)dnl case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; *) XGETTEXT_015=$XGETTEXT ;; esac changequote([,])dnl AC_SUBST([XGETTEXT_015]) dnl Search for GNU msgmerge 0.11 or newer in the PATH. AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) dnl Installation directories. dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we dnl have to define it here, so that it can be used in po/Makefile. test -n "$localedir" || localedir='${datadir}/locale' AC_SUBST([localedir]) dnl Support for AM_XGETTEXT_OPTION. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= AC_SUBST([XGETTEXT_EXTRA_OPTIONS]) AC_CONFIG_COMMANDS([po-directories], [[ for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) # Compute DUMMYPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) case "$ac_given_srcdir" in .) srcdirpre= ;; *) srcdirpre='$(srcdir)/' ;; esac POFILES= UPDATEPOFILES= DUMMYPOFILES= GMOFILES= for lang in $ALL_LINGUAS; do POFILES="$POFILES $srcdirpre$lang.po" UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" done # CATALOGS depends on both $ac_dir and the user's LINGUAS # environment variable. INST_LINGUAS= if test -n "$ALL_LINGUAS"; then for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "$LINGUAS"; 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 INST_LINGUAS="$INST_LINGUAS $presentlang" fi done fi CATALOGS= if test -n "$INST_LINGUAS"; then for lang in $INST_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" done fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in *.orig | *.bak | *~) ;; *) cat "$f" >> "$ac_dir/Makefile" ;; esac fi done fi ;; esac done]], [# Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it # from automake < 1.5. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" ]) ]) dnl Postprocesses a Makefile in a directory containing PO files. AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], [ # When this code is run, in config.status, two variables have already been # set: # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, # - LINGUAS is the value of the environment variable LINGUAS at configure # time. changequote(,)dnl # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Find a way to echo strings without interpreting backslash. if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then gt_echo='echo' else if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then gt_echo='printf %s\n' else echo_func () { cat < "$ac_file.tmp" if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` cat >> "$ac_file.tmp" < /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` cat >> "$ac_file.tmp" <> "$ac_file.tmp" <&1 conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by GCC]) 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. [[\\/]* | [A-Za-z]:[\\/]*)] [re_direlt='/[^/][^/]*/\.\./'] # Canonicalize the path 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 "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL([acl_cv_path_LD], [if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$ac_save_ifs" else acl_cv_path_LD="$LD" # Let the user override the test with a path. fi]) LD="$acl_cv_path_LD" if test -n "$LD"; then AC_MSG_RESULT([$LD]) else AC_MSG_RESULT([no]) fi test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) AC_LIB_PROG_LD_GNU ]) davfs2-1.5.5/config/iconv.m40000644000175000017500000001653712460776605012506 00000000000000# iconv.m4 serial 11 (gettext-0.18.1) dnl Copyright (C) 2000-2002, 2007-2010 Free Software Foundation, 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 From Bruno Haible. AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], [ dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_LIB_LINKFLAGS_BODY([iconv]) ]) AC_DEFUN([AM_ICONV_LINK], [ dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and dnl those with the standalone portable GNU libiconv installed). AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) dnl Add $INCICONV to CPPFLAGS before performing the following checks, dnl because if the user has installed libiconv and not disabled its use dnl via --without-libiconv-prefix, he wants to use it. The first dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. am_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [ am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], [am_cv_func_iconv=yes]) if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], [am_cv_lib_iconv=yes] [am_cv_func_iconv=yes]) LIBS="$am_save_LIBS" fi ]) if test "$am_cv_func_iconv" = yes; then AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [ dnl This tests against bugs in AIX 5.1, HP-UX 11.11, Solaris 10. am_save_LIBS="$LIBS" if test $am_cv_lib_iconv = yes; then LIBS="$LIBS $LIBICONV" fi AC_TRY_RUN([ #include #include int main () { /* Test against AIX 5.1 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); if (cd_utf8_to_88591 != (iconv_t)(-1)) { static const char input[] = "\342\202\254"; /* EURO SIGN */ char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_utf8_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) return 1; } } /* Test against Solaris 10 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); if (cd_ascii_to_88591 != (iconv_t)(-1)) { static const char input[] = "\263"; char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_ascii_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) return 1; } } #if 0 /* This bug could be worked around by the caller. */ /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ { iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; char buf[50]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_88591_to_utf8, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if ((int)res > 0) return 1; } } #endif /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is provided. */ if (/* Try standardized names. */ iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) /* Try IRIX, OSF/1 names. */ && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) /* Try AIX names. */ && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) /* Try HP-UX names. */ && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) return 1; return 0; }], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no], [case "$host_os" in aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; *) am_cv_func_iconv_works="guessing yes" ;; esac]) LIBS="$am_save_LIBS" ]) case "$am_cv_func_iconv_works" in *no) am_func_iconv=no am_cv_lib_iconv=no ;; *) am_func_iconv=yes ;; esac else am_func_iconv=no am_cv_lib_iconv=no fi if test "$am_func_iconv" = yes; then AC_DEFINE([HAVE_ICONV], [1], [Define if you have the iconv() function and it works.]) fi if test "$am_cv_lib_iconv" = yes; then AC_MSG_CHECKING([how to link with libiconv]) AC_MSG_RESULT([$LIBICONV]) else dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV dnl either. CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi AC_SUBST([LIBICONV]) AC_SUBST([LTLIBICONV]) ]) dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to dnl avoid warnings like dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required". dnl This is tricky because of the way 'aclocal' is implemented: dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN. dnl Otherwise aclocal's initial scan pass would miss the macro definition. dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions. dnl Otherwise aclocal would emit many "Use of uninitialized value $1" dnl warnings. m4_define([gl_iconv_AC_DEFUN], m4_version_prereq([2.64], [[AC_DEFUN_ONCE( [$1], [$2])]], [[AC_DEFUN( [$1], [$2])]])) gl_iconv_AC_DEFUN([AM_ICONV], [ AM_ICONV_LINK if test "$am_cv_func_iconv" = yes; then AC_MSG_CHECKING([for iconv declaration]) AC_CACHE_VAL([am_cv_proto_iconv], [ AC_TRY_COMPILE([ #include #include extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif ], [], [am_cv_proto_iconv_arg1=""], [am_cv_proto_iconv_arg1="const"]) am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` AC_MSG_RESULT([ $am_cv_proto_iconv]) AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], [Define as const if the declaration of iconv() needs const.]) fi ]) davfs2-1.5.5/config/lib-link.m40000644000175000017500000010020212460776605013050 00000000000000# lib-link.m4 serial 21 (gettext-0.18) dnl Copyright (C) 2001-2010 Free Software Foundation, 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 From Bruno Haible. AC_PREREQ([2.54]) dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and dnl augments the CPPFLAGS variable. dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) pushdef([Name],[translit([$1],[./-], [___])]) pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ AC_LIB_LINKFLAGS_BODY([$1], [$2]) ac_cv_lib[]Name[]_libs="$LIB[]NAME" ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" ac_cv_lib[]Name[]_cppflags="$INC[]NAME" ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" ]) LIB[]NAME="$ac_cv_lib[]Name[]_libs" LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" INC[]NAME="$ac_cv_lib[]Name[]_cppflags" LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) AC_SUBST([LIB]NAME[_PREFIX]) dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the dnl results of this search when this library appears as a dependency. HAVE_LIB[]NAME=yes popdef([NAME]) popdef([Name]) ]) dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message]) dnl searches for libname and the libraries corresponding to explicit and dnl implicit dependencies, together with the specified include files and dnl the ability to compile and link the specified testcode. The missing-message dnl defaults to 'no' and may contain additional hints for the user. dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) pushdef([Name],[translit([$1],[./-], [___])]) pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME dnl accordingly. AC_LIB_LINKFLAGS_BODY([$1], [$2]) dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, dnl because if the user has installed lib[]Name and not disabled its use dnl via --without-lib[]Name-prefix, he wants to use it. ac_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ ac_save_LIBS="$LIBS" dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS, dnl because these -l options might require -L options that are present in dnl LIBS. -l options benefit only from the -L options listed before it. dnl Otherwise, add it to the front of LIBS, because it may be a static dnl library that depends on another static library that is present in LIBS. dnl Static libraries benefit only from the static libraries listed after dnl it. case " $LIB[]NAME" in *" -l"*) LIBS="$LIBS $LIB[]NAME" ;; *) LIBS="$LIB[]NAME $LIBS" ;; esac AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])']) LIBS="$ac_save_LIBS" ]) if test "$ac_cv_lib[]Name" = yes; then HAVE_LIB[]NAME=yes AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.]) AC_MSG_CHECKING([how to link with lib[]$1]) AC_MSG_RESULT([$LIB[]NAME]) else HAVE_LIB[]NAME=no dnl If $LIB[]NAME didn't lead to a usable library, we don't need dnl $INC[]NAME either. CPPFLAGS="$ac_save_CPPFLAGS" LIB[]NAME= LTLIB[]NAME= LIB[]NAME[]_PREFIX= fi AC_SUBST([HAVE_LIB]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) AC_SUBST([LIB]NAME[_PREFIX]) popdef([NAME]) popdef([Name]) ]) dnl Determine the platform dependent parameters needed to use rpath: dnl acl_libext, dnl acl_shlibext, dnl acl_hardcode_libdir_flag_spec, dnl acl_hardcode_libdir_separator, dnl acl_hardcode_direct, dnl acl_hardcode_minus_L. AC_DEFUN([AC_LIB_RPATH], [ dnl Tell automake >= 1.10 to complain if config.rpath is missing. m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done ]) wl="$acl_cv_wl" acl_libext="$acl_cv_libext" acl_shlibext="$acl_cv_shlibext" acl_libname_spec="$acl_cv_libname_spec" acl_library_names_spec="$acl_cv_library_names_spec" acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" acl_hardcode_direct="$acl_cv_hardcode_direct" acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" dnl Determine whether the user wants rpath handling at all. AC_ARG_ENABLE([rpath], [ --disable-rpath do not hardcode runtime library paths], :, enable_rpath=yes) ]) dnl AC_LIB_FROMPACKAGE(name, package) dnl declares that libname comes from the given package. The configure file dnl will then not have a --with-libname-prefix option but a dnl --with-package-prefix option. Several libraries can come from the same dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar dnl macro call that searches for libname. AC_DEFUN([AC_LIB_FROMPACKAGE], [ pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) define([acl_frompackage_]NAME, [$2]) popdef([NAME]) pushdef([PACK],[$2]) pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) define([acl_libsinpackage_]PACKUP, m4_ifdef([acl_libsinpackage_]PACKUP, [acl_libsinpackage_]PACKUP[[, ]],)[lib$1]) popdef([PACKUP]) popdef([PACK]) ]) dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_LINKFLAGS_BODY], [ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])]) pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])]) dnl Autoconf >= 2.61 supports dots in --with options. pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit(PACK,[.],[_])],PACK)]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_ARG_WITH(P_A_C_K[-prefix], [[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" if test "$acl_libdirstem2" != "$acl_libdirstem" \ && ! test -d "$withval/$acl_libdirstem"; then additional_libdir="$withval/$acl_libdirstem2" fi fi fi ]) dnl Search the library and its dependencies in $additional_libdir and dnl $LDFLAGS. Using breadth-first-seach. LIB[]NAME= LTLIB[]NAME= INC[]NAME= LIB[]NAME[]_PREFIX= dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been dnl computed. So it has to be reset here. HAVE_LIB[]NAME= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='$1 $2' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" dnl See if it was already located by an earlier AC_LIB_LINKFLAGS dnl or AC_LIB_HAVE_LINKFLAGS call. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" else dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined dnl that this library doesn't exist. So just drop it. : fi else dnl Search the library lib$name in $additional_libdir and $LDFLAGS dnl and the already constructed $LIBNAME/$LTLIBNAME. found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then dir="$additional_libdir" dnl The same code as in the loop below: dnl First look for a shared library. if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi dnl Then look for a static library. if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` dnl First look for a shared library. if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi dnl Then look for a static library. if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then dnl Found the library. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then dnl Linking with a shared library. We attempt to hardcode its dnl directory into the executable's runpath, unless it's the dnl standard /usr/lib. if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then dnl No hardcoding is needed. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl Use an explicit option to hardcode DIR into the resulting dnl binary. dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi dnl The hardcoding into $LIBNAME is system dependent. if test "$acl_hardcode_direct" = yes; then dnl Using DIR/libNAME.so during linking hardcodes DIR into the dnl resulting binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then dnl Use an explicit option to hardcode DIR into the resulting dnl binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else dnl Rely on "-L$found_dir". dnl But don't add it if it's already contained in the LDFLAGS dnl or the already constructed $LIBNAME haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH dnl here, because this doesn't fit in flags passed to the dnl compiler. So give up. No hardcoding. This affects only dnl very old systems. dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then dnl Linking with a static library. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" else dnl We shouldn't come here, but anyway it's good to have a dnl fallback. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" fi fi dnl Assume the include files are nearby. additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = '$1'; then LIB[]NAME[]_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = '$1'; then LIB[]NAME[]_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then dnl Potentially add $additional_includedir to $INCNAME. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's /usr/local/include and we are using GCC on Linux, dnl 3. if it's already present in $CPPFLAGS or the already dnl constructed $INCNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INC[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $INCNAME. INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" fi fi fi fi fi dnl Look for dependencies. if test -n "$found_la"; then dnl Read the .la file. It defines the variables dnl dlname, library_names, old_library, dependency_libs, current, dnl age, revision, installed, dlopen, dlpreopen, libdir. save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" dnl We use only dependency_libs. for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's /usr/local/lib and we are using GCC on Linux, dnl 3. if it's already present in $LDFLAGS or the already dnl constructed $LIBNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LIBNAME. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LTLIBNAME. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) dnl Handle this in the next round. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) dnl Handle this in the next round. Throw away the .la's dnl directory; it is already contained in a preceding -L dnl option. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) dnl Most likely an immediate library name. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" ;; esac done fi else dnl Didn't find the library; assume it is in the system directories dnl known to the linker and runtime loader. (All the system dnl directories known to the linker should also be known to the dnl runtime loader, otherwise the system is severely misconfigured.) LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user must dnl pass all path elements in one option. We can arrange that for a dnl single library, but not when more than one $LIBNAMEs are used. alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" else dnl The -rpath options are cumulative. for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then dnl When using libtool, the option that works for both libraries and dnl executables is -R. The -R options are cumulative. for found_dir in $ltrpathdirs; do LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" done fi popdef([P_A_C_K]) popdef([PACKLIBS]) popdef([PACKUP]) popdef([PACK]) popdef([NAME]) ]) dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, dnl unless already present in VAR. dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes dnl contains two or three consecutive elements that belong together. AC_DEFUN([AC_LIB_APPENDTOVAR], [ for element in [$2]; do haveit= for x in $[$1]; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then [$1]="${[$1]}${[$1]:+ }$element" fi done ]) dnl For those cases where a variable contains several -L and -l options dnl referring to unknown libraries and directories, this macro determines the dnl necessary additional linker options for the runtime path. dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) dnl sets LDADDVAR to linker options needed together with LIBSVALUE. dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, dnl otherwise linking without libtool is assumed. AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], [ AC_REQUIRE([AC_LIB_RPATH]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) $1= if test "$enable_rpath" != no; then if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then dnl Use an explicit option to hardcode directories into the resulting dnl binary. rpathdirs= next= for opt in $2; do if test -n "$next"; then dir="$next" dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem" \ && test "X$dir" != "X/usr/$acl_libdirstem2"; then rpathdirs="$rpathdirs $dir" fi next= else case $opt in -L) next=yes ;; -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem" \ && test "X$dir" != "X/usr/$acl_libdirstem2"; then rpathdirs="$rpathdirs $dir" fi next= ;; *) next= ;; esac fi done if test "X$rpathdirs" != "X"; then if test -n ""$3""; then dnl libtool is used for linking. Use -R options. for dir in $rpathdirs; do $1="${$1}${$1:+ }-R$dir" done else dnl The linker is used for linking directly. if test -n "$acl_hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user dnl must pass all path elements in one option. alldirs= for dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="$flag" else dnl The -rpath options are cumulative. for dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="${$1}${$1:+ }$flag" done fi fi fi fi fi AC_SUBST([$1]) ]) davfs2-1.5.5/config/gettext.m40000644000175000017500000003513212460776605013044 00000000000000# gettext.m4 serial 63 (gettext-0.18) dnl Copyright (C) 1995-2010 Free Software Foundation, 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-2006, 2008-2010. dnl Macro to add for using GNU gettext. dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The dnl default (if it is not specified or empty) is 'no-libtool'. dnl INTLSYMBOL should be 'external' for packages with no intl directory, dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. dnl If INTLSYMBOL is 'use-libtool', then a libtool library dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, dnl depending on --{enable,disable}-{shared,static} and on the presence of dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library dnl $(top_builddir)/intl/libintl.a will be created. dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext dnl implementations (in libc or libintl) without the ngettext() function dnl will be ignored. If NEEDSYMBOL is specified and is dnl 'need-formatstring-macros', then GNU gettext implementations that don't dnl support the ISO C 99 formatstring macros will be ignored. dnl INTLDIR is used to find the intl libraries. If empty, dnl the value `$(top_builddir)/intl/' is used. dnl dnl The result of the configuration is one of three cases: dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled dnl and used. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 2) GNU gettext has been found in the system's C library. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 3) No internationalization, always use English msgid. dnl Catalog format: none dnl Catalog extension: none dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. dnl The use of .gmo is historical (it was needed to avoid overwriting the dnl GNU format catalogs when building on a platform with an X/Open gettext), dnl but we keep it in order not to force irrelevant filename changes on the dnl maintainers. dnl AC_DEFUN([AM_GNU_GETTEXT], [ dnl Argument checking. ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT ])])])])]) ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old], [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])]) ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT ])])])]) define([gt_included_intl], ifelse([$1], [external], ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]), [yes])) define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) gt_NEEDS_INIT AM_GNU_GETTEXT_NEED([$2]) AC_REQUIRE([AM_PO_SUBDIRS])dnl ifelse(gt_included_intl, yes, [ AC_REQUIRE([AM_INTL_SUBDIR])dnl ]) dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Sometimes libintl requires libiconv, so first search for libiconv. dnl Ideally we would do this search only after the dnl if test "$USE_NLS" = "yes"; then dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT dnl the configure script would need to contain the same shell code dnl again, outside any 'if'. There are two solutions: dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not dnl documented, we avoid it. ifelse(gt_included_intl, yes, , [ AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) ]) dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. gt_INTL_MACOSX dnl Set USE_NLS. AC_REQUIRE([AM_NLS]) ifelse(gt_included_intl, yes, [ BUILD_INCLUDED_LIBINTL=no USE_INCLUDED_LIBINTL=no ]) LIBINTL= LTLIBINTL= POSUB= dnl Add a version number to the cache macros. case " $gt_needs " in *" need-formatstring-macros "*) gt_api_version=3 ;; *" need-ngettext "*) gt_api_version=2 ;; *) gt_api_version=1 ;; esac gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" dnl If we use NLS figure out what method if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no ifelse(gt_included_intl, yes, [ AC_MSG_CHECKING([whether included gettext is requested]) AC_ARG_WITH([included-gettext], [ --with-included-gettext use the GNU gettext library included here], nls_cv_force_use_gnu_gettext=$withval, nls_cv_force_use_gnu_gettext=no) AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext]) nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then ]) dnl User does not insist on using GNU NLS library. Figure out what dnl to use. If GNU gettext is available we use this. Else we have dnl to fall back to GNU NLS library. if test $gt_api_version -ge 3; then gt_revision_test_code=' #ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif changequote(,)dnl typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; changequote([,])dnl ' else gt_revision_test_code= fi if test $gt_api_version -ge 2; then gt_expression_test_code=' + * ngettext ("", "", 0)' else gt_expression_test_code= fi AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc], [AC_TRY_LINK([#include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings;], [bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings], [eval "$gt_func_gnugettext_libc=yes"], [eval "$gt_func_gnugettext_libc=no"])]) if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then dnl Sometimes libintl requires libiconv, so first search for libiconv. ifelse(gt_included_intl, yes, , [ AM_ICONV_LINK ]) dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) dnl because that would add "-liconv" to LIBINTL and LTLIBINTL dnl even if libiconv doesn't exist. AC_LIB_LINKFLAGS_BODY([intl]) AC_CACHE_CHECK([for GNU gettext in libintl], [$gt_func_gnugettext_libintl], [gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" dnl Now see whether libintl exists and does not depend on libiconv. AC_TRY_LINK([#include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *);], [bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], [eval "$gt_func_gnugettext_libintl=yes"], [eval "$gt_func_gnugettext_libintl=no"]) dnl Now see whether libintl exists and depends on libiconv. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" AC_TRY_LINK([#include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *);], [bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], [LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" eval "$gt_func_gnugettext_libintl=yes" ]) fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS"]) fi dnl If an already present or preinstalled GNU gettext() is found, dnl use it. But if this macro is used in GNU gettext, and GNU dnl gettext is already preinstalled in libintl, we update this dnl libintl. (Cf. the install rule in intl/Makefile.in.) if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else dnl Reset the values set by searching for libintl. LIBINTL= LTLIBINTL= INCINTL= fi ifelse(gt_included_intl, yes, [ if test "$gt_use_preinstalled_gnugettext" != "yes"; then dnl GNU gettext is not found in the C library. dnl Fall back on included GNU gettext library. nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions used to generate GNU NLS library. BUILD_INCLUDED_LIBINTL=yes USE_INCLUDED_LIBINTL=yes LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD" LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD" LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi CATOBJEXT= if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions to use GNU gettext tools. CATOBJEXT=.gmo fi ]) if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Some extra flags are needed during linking. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then AC_DEFINE([ENABLE_NLS], [1], [Define to 1 if translation of program messages to the user's native language is requested.]) else USE_NLS=no fi fi AC_MSG_CHECKING([whether to use NLS]) AC_MSG_RESULT([$USE_NLS]) if test "$USE_NLS" = "yes"; then AC_MSG_CHECKING([where the gettext function comes from]) if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi AC_MSG_RESULT([$gt_source]) fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then AC_MSG_CHECKING([how to link with libintl]) AC_MSG_RESULT([$LIBINTL]) AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) fi dnl For backward compatibility. Some packages may be using this. AC_DEFINE([HAVE_GETTEXT], [1], [Define if the GNU gettext() function is already present or preinstalled.]) AC_DEFINE([HAVE_DCGETTEXT], [1], [Define if the GNU dcgettext() function is already present or preinstalled.]) fi dnl We need to process the po/ directory. POSUB=po fi ifelse(gt_included_intl, yes, [ dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL dnl to 'yes' because some of the testsuite requires it. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then BUILD_INCLUDED_LIBINTL=yes fi dnl Make all variables we use known to autoconf. AC_SUBST([BUILD_INCLUDED_LIBINTL]) AC_SUBST([USE_INCLUDED_LIBINTL]) AC_SUBST([CATOBJEXT]) dnl For backward compatibility. Some configure.ins may be using this. nls_cv_header_intl= nls_cv_header_libgt= dnl For backward compatibility. Some Makefiles may be using this. DATADIRNAME=share AC_SUBST([DATADIRNAME]) dnl For backward compatibility. Some Makefiles may be using this. INSTOBJEXT=.mo AC_SUBST([INSTOBJEXT]) dnl For backward compatibility. Some Makefiles may be using this. GENCAT=gencat AC_SUBST([GENCAT]) dnl For backward compatibility. Some Makefiles may be using this. INTLOBJS= if test "$USE_INCLUDED_LIBINTL" = yes; then INTLOBJS="\$(GETTOBJS)" fi AC_SUBST([INTLOBJS]) dnl Enable libtool support if the surrounding package wishes it. INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX]) ]) dnl For backward compatibility. Some Makefiles may be using this. INTLLIBS="$LIBINTL" AC_SUBST([INTLLIBS]) dnl Make all documented variables known to autoconf. AC_SUBST([LIBINTL]) AC_SUBST([LTLIBINTL]) AC_SUBST([POSUB]) ]) dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. m4_define([gt_NEEDS_INIT], [ m4_divert_text([DEFAULTS], [gt_needs=]) m4_define([gt_NEEDS_INIT], []) ]) dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) AC_DEFUN([AM_GNU_GETTEXT_NEED], [ m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) ]) dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) davfs2-1.5.5/config/neon.m40000644000175000017500000010414712460776605012322 00000000000000# Copyright (C) 1998-2006 Joe Orton -*- autoconf -*- # Copyright (C) 2004 Aleix Conchillo Flaque # # This file is free software; you may copy and/or distribute it with # or without modifications, as long as this notice is preserved. # This software 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. # The above license applies to THIS FILE ONLY, the neon library code # itself may be copied and distributed under the terms of the GNU # LGPL, see COPYING.LIB for more details # This file is part of the neon HTTP/WebDAV client library. # See http://www.webdav.org/neon/ for the latest version. # Please send any feedback to # # Usage: # # NEON_LIBRARY # or NEON_BUNDLED(srcdir, [ACTIONS-IF-BUNDLED], [ACTIONS-IF-NOT_BUNDLED]) # or NEON_VPATH_BUNDLED(srcdir, builddir, # [ACTIONS-IF-BUNDLED], [ACTIONS-IF-NOT-BUNDLED]) # # where srcdir is the location of bundled neon 'src' directory. # If using a VPATH-enabled build, builddir is the location of the # build directory corresponding to srcdir. # # If a bundled build *is* being used, ACTIONS-IF-BUNDLED will be # evaluated. These actions should ensure that 'make' is run # in srcdir, and that one of NEON_NORMAL_BUILD or NEON_LIBTOOL_BUILD # is called. # # After calling one of the above macros, if the NEON_NEED_XML_PARSER # variable is set to "yes", then you must configure an XML parser # too. You can do this your own way, or do it easily using the # NEON_XML_PARSER() macro. Example usage for where we have bundled the # neon sources in a directory called libneon, and bundled expat # sources in a directory called 'expat'. # # NEON_BUNDLED(libneon, [ # NEON_XML_PARSER(expat) # NEON_NORMAL_BUILD # ]) # # Alternatively, for a simple standalone app with neon as a # dependancy, use just: # # NEON_LIBRARY # # and rely on the user installing neon correctly. # # You are free to configure an XML parser any other way you like, # but the end result must be, either expat or libxml will get linked # in, and HAVE_EXPAT or HAVE_LIBXML is defined appropriately. # # To set up the bundled build environment, call # # NEON_NORMAL_BUILD # or # NEON_LIBTOOL_BUILD # # depending on whether you are using libtool to build, or not. # Both these macros take an optional argument specifying the set # of object files you wish to build: if the argument is not given, # all of neon will be built. AC_DEFUN([NEON_BUNDLED],[ neon_bundled_srcdir=$1 neon_bundled_builddir=$1 NEON_COMMON_BUNDLED([$2], [$3]) ]) AC_DEFUN([NEON_VPATH_BUNDLED],[ neon_bundled_srcdir=$1 neon_bundled_builddir=$2 NEON_COMMON_BUNDLED([$3], [$4]) ]) AC_DEFUN([NEON_COMMON_BUNDLED],[ AC_PREREQ(2.50) AC_ARG_WITH(included-neon, AS_HELP_STRING([--with-included-neon], [force use of included neon library]), [neon_force_included="$withval"], [neon_force_included="no"]) NEON_COMMON # The colons are here so there is something to evaluate # in case the argument was not passed. if test "$neon_force_included" = "yes"; then : $1 else : $2 fi ]) dnl Not got any bundled sources: AC_DEFUN([NEON_LIBRARY],[ AC_PREREQ(2.50) neon_force_included=no neon_bundled_srcdir= neon_bundled_builddir= NEON_COMMON ]) AC_DEFUN([NE_DEFINE_VERSIONS], [ NEON_VERSION="${NE_VERSION_MAJOR}.${NE_VERSION_MINOR}.${NE_VERSION_PATCH}${NE_VERSION_TAG}" AC_DEFINE_UNQUOTED([NEON_VERSION], ["${NEON_VERSION}"], [Define to be the neon version string]) AC_DEFINE_UNQUOTED([NE_VERSION_MAJOR], [(${NE_VERSION_MAJOR})], [Define to be neon library major version]) AC_DEFINE_UNQUOTED([NE_VERSION_MINOR], [(${NE_VERSION_MINOR})], [Define to be neon library minor version]) AC_DEFINE_UNQUOTED([NE_VERSION_PATCH], [(${NE_VERSION_PATCH})], [Define to be neon library patch version]) ]) AC_DEFUN([NE_VERSIONS_BUNDLED], [ # Define the current versions. NE_VERSION_MAJOR=0 NE_VERSION_MINOR=26 NE_VERSION_PATCH=1 NE_VERSION_TAG= # libtool library interface versioning. Release policy dictates that # for neon 0.x.y, each x brings an incompatible interface change, and # each y brings no interface change, and since this policy has been # followed since 0.1, x == CURRENT, y == RELEASE, 0 == AGE. For # 1.x.y, this will become N + x == CURRENT, y == RELEASE, x == AGE, # where N is constant (and equal to CURRENT + 1 from the final 0.x # release) NEON_INTERFACE_VERSION="${NE_VERSION_MINOR}:${NE_VERSION_PATCH}:0" NE_DEFINE_VERSIONS ]) dnl Define the minimum required versions, usage: dnl NE_REQUIRE_VERSIONS([major-version], [minor-versions]) dnl e.g. dnl NE_REQUIRE_VERSIONS([0], [24 25]) dnl to require neon 0.24.x or neon 0.25.x. AC_DEFUN([NE_REQUIRE_VERSIONS], [ m4_define([ne_require_major], [$1]) m4_define([ne_require_minor], [$2]) ]) dnl Check that the external library found in a given location dnl matches the min. required version (if any). Requires that dnl NEON_CONFIG be set the the full path of a valid neon-config dnl script dnl dnl Usage: dnl NEON_CHECK_VERSION(ACTIONS-IF-OKAY, ACTIONS-IF-FAILURE) dnl AC_DEFUN([NEON_CHECK_VERSION], [ m4_ifdef([ne_require_major], [ # Check whether the library is of required version ne_save_LIBS="$LIBS" ne_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS `$NEON_CONFIG --cflags`" LIBS="$LIBS `$NEON_CONFIG --libs`" ne_libver=`$NEON_CONFIG --version | sed -e "s/neon //g"` # Check whether it's possible to link against neon AC_CACHE_CHECK([linking against neon], [ne_cv_lib_neon], [AC_LINK_IFELSE( [AC_LANG_PROGRAM([[#include ]], [[ne_version_match(0, 0);]])], [ne_cv_lib_neon=yes], [ne_cv_lib_neon=no])]) if test "$ne_cv_lib_neon" = "yes"; then ne_cv_lib_neonver=no for v in ne_require_minor; do case $ne_libver in ne_require_major.$v.*) ne_cv_lib_neonver=yes ;; esac done fi ne_goodver=$ne_cv_lib_neonver LIBS=$ne_save_LIBS CFLAGS=$ne_save_CFLAGS ], [ # NE_REQUIRE_VERSIONS not used; presume all versions OK! ne_goodver=yes ne_libver="(version unknown)" ]) if test "$ne_goodver" = "yes"; then AC_MSG_NOTICE([using neon library $ne_libver]) $1 else AC_MSG_NOTICE([incompatible neon library version $ne_libver: wanted ne_require_major.ne_require_minor]) $2 fi]) dnl NEON_CHECK_SUPPORT(feature, var, name) AC_DEFUN([NEON_CHECK_SUPPORT], [ if $NEON_CONFIG --support $1 >/dev/null; then NE_ENABLE_SUPPORT($2, [$3 is supported by neon]) else NE_DISABLE_SUPPORT($2, [$3 is not supported by neon]) fi ]) dnl enable support for feature $1 with define NE_HAVE_$1, message $2 AC_DEFUN([NE_ENABLE_SUPPORT], [ NE_FLAG_$1=yes AC_SUBST(NE_FLAG_$1) AC_DEFINE([NE_HAVE_]$1, 1, [Defined if $1 is supported]) m4_if([$2], [], [ne_$1_message="support enabled" AC_MSG_NOTICE([$1 support is enabled])], [ne_$1_message="$2" AC_MSG_NOTICE([$2])]) ]) dnl Disable support for feature $1, giving message $2 AC_DEFUN([NE_DISABLE_SUPPORT], [ NE_FLAG_$1=no AC_SUBST(NE_FLAG_$1) m4_if([$2], [], [ne_$1_message="not supported" AC_MSG_NOTICE([$1 support is not enabled])], [ne_$1_message="$2" AC_MSG_NOTICE([$2])]) ]) AC_DEFUN([NEON_USE_EXTERNAL], [ # Configure to use an external neon, given a neon-config script # found at $NEON_CONFIG. neon_prefix=`$NEON_CONFIG --prefix` NEON_CHECK_VERSION([ # Pick up CFLAGS and LIBS needed CFLAGS="$CFLAGS `$NEON_CONFIG --cflags`" NEON_LIBS="$NEON_LIBS `$NEON_CONFIG --libs`" # Pick up library version set dummy `$NEON_CONFIG --version | sed 's/\./ /g'` NE_VERSION_MAJOR=[$]3; NE_VERSION_MINOR=[$]4; NE_VERSION_PATCH=[$]5 NE_DEFINE_VERSIONS neon_library_message="library in ${neon_prefix} (${NEON_VERSION})" neon_xml_parser_message="using whatever neon uses" NEON_CHECK_SUPPORT([ssl], [SSL], [SSL]) NEON_CHECK_SUPPORT([zlib], [ZLIB], [zlib]) NEON_CHECK_SUPPORT([ipv6], [IPV6], [IPv6]) NEON_CHECK_SUPPORT([lfs], [LFS], [LFS]) NEON_CHECK_SUPPORT([socks], [SOCKS], [SOCKSv5]) NEON_CHECK_SUPPORT([ts_ssl], [TS_SSL], [thread-safe SSL]) neon_got_library=yes ], [neon_got_library=no]) ]) AC_DEFUN([NEON_COMMON],[ AC_REQUIRE([NEON_COMMON_CHECKS]) AC_ARG_WITH(neon, [ --with-neon[[=DIR]] specify location of neon library], [case $withval in yes|no) neon_force_external=$withval; neon_ext_path= ;; *) neon_force_external=yes; neon_ext_path=$withval ;; esac;], [ neon_force_external=no neon_ext_path= ]) if test "$neon_force_included" = "no"; then # There is no included neon source directory, or --with-included-neon # wasn't given (so we're not forced to use it). # Default to no external neon. neon_got_library=no if test "x$neon_ext_path" = "x"; then AC_PATH_PROG([NEON_CONFIG], neon-config, none) if test "x${NEON_CONFIG}" = "xnone"; then AC_MSG_NOTICE([no external neon library found]) elif test -x "${NEON_CONFIG}"; then NEON_USE_EXTERNAL else AC_MSG_NOTICE([ignoring non-executable ${NEON_CONFIG}]) fi else AC_MSG_CHECKING([for neon library in $neon_ext_path]) NEON_CONFIG="$neon_ext_path/bin/neon-config" if test -x ${NEON_CONFIG}; then AC_MSG_RESULT([found]) NEON_USE_EXTERNAL else AC_MSG_RESULT([not found]) # ...will fail since force_external=yes fi fi if test "$neon_got_library" = "no"; then if test $neon_force_external = yes; then AC_MSG_ERROR([could not use external neon library]) elif test -n "$neon_bundled_srcdir"; then # Couldn't find external neon, forced to use bundled sources neon_force_included="yes" else # Couldn't find neon, and don't have bundled sources AC_MSG_ERROR(could not find neon) fi fi fi if test "$neon_force_included" = "yes"; then NE_VERSIONS_BUNDLED AC_MSG_NOTICE([using bundled neon ($NEON_VERSION)]) NEON_BUILD_BUNDLED="yes" LIBNEON_SOURCE_CHECKS CFLAGS="$CFLAGS -I$neon_bundled_srcdir" NEON_LIBS="-L$neon_bundled_builddir -lneon $NEON_LIBS" NEON_NEED_XML_PARSER=yes neon_library_message="included libneon (${NEON_VERSION})" else # Don't need to configure an XML parser NEON_NEED_XML_PARSER=no NEON_BUILD_BUNDLED=no fi AC_SUBST(NEON_BUILD_BUNDLED) ]) dnl AC_SEARCH_LIBS done differently. Usage: dnl NE_SEARCH_LIBS(function, libnames, [extralibs], [actions-if-not-found], dnl [actions-if-found]) dnl Tries to find 'function' by linking againt `-lLIB $NEON_LIBS' for each dnl LIB in libnames. If link fails and 'extralibs' is given, will also dnl try linking against `-lLIB extralibs $NEON_LIBS`. dnl Once link succeeds, `-lLIB [extralibs]` is prepended to $NEON_LIBS, and dnl `actions-if-found' are executed, if given. dnl If link never succeeds, run `actions-if-not-found', if given, else dnl give an error and fail configure. AC_DEFUN([NE_SEARCH_LIBS], [ AC_CACHE_CHECK([for library containing $1], [ne_cv_libsfor_$1], [ AC_LINK_IFELSE( [AC_LANG_PROGRAM([], [[$1();]])], [ne_cv_libsfor_$1="none needed"], [ ne_sl_save_LIBS=$LIBS ne_cv_libsfor_$1="not found" for lib in $2; do LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS" AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[$1();]])], [ne_cv_libsfor_$1="-l$lib"; break]) m4_if($3, [], [], dnl If $3 is specified, then... [LIBS="$ne_sl_save_LIBS -l$lib $3 $NEON_LIBS" AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[$1();]])], [ne_cv_libsfor_$1="-l$lib $3"; break])]) done LIBS=$ne_sl_save_LIBS])]) if test "$ne_cv_libsfor_$1" = "not found"; then m4_if([$4], [], [AC_MSG_ERROR([could not find library containing $1])], [$4]) elif test "$ne_cv_libsfor_$1" = "none needed"; then m4_if([$5], [], [:], [$5]) else NEON_LIBS="$ne_cv_libsfor_$1 $NEON_LIBS" $5 fi]) dnl Check for presence and suitability of zlib library AC_DEFUN([NEON_ZLIB], [ AC_ARG_WITH(zlib, AS_HELP_STRING([--without-zlib], [disable zlib support]), ne_use_zlib=$withval, ne_use_zlib=yes) if test "$ne_use_zlib" = "yes"; then AC_CHECK_HEADER(zlib.h, [ AC_CHECK_LIB(z, inflate, [ NEON_LIBS="$NEON_LIBS -lz" NE_ENABLE_SUPPORT(ZLIB, [zlib support enabled, using -lz]) ], [NE_DISABLE_SUPPORT(ZLIB, [zlib library not found])]) ], [NE_DISABLE_SUPPORT(ZLIB, [zlib header not found])]) else NE_DISABLE_SUPPORT(ZLIB, [zlib not enabled]) fi ]) AC_DEFUN([NE_MACOSX], [ # Check for Darwin, which needs extra cpp and linker flags. AC_CACHE_CHECK([for Darwin], ne_cv_os_macosx, [ case `uname -s 2>/dev/null` in Darwin) ne_cv_os_macosx=yes ;; *) ne_cv_os_macosx=no ;; esac]) if test $ne_cv_os_macosx = yes; then CPPFLAGS="$CPPFLAGS -no-cpp-precomp" LDFLAGS="$LDFLAGS -flat_namespace" # poll has various issues in various Darwin releases if test x${ac_cv_func_poll+set} != xset; then ac_cv_func_poll=no fi fi ]) AC_DEFUN([NEON_COMMON_CHECKS], [ # These checks are done whether or not the bundled neon build # is used. AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_ISC_POSIX]) AC_REQUIRE([AC_C_INLINE]) AC_REQUIRE([AC_C_CONST]) AC_REQUIRE([AC_TYPE_SIZE_T]) AC_REQUIRE([AC_TYPE_OFF_T]) AC_REQUIRE([NE_MACOSX]) AC_REQUIRE([AC_PROG_MAKE_SET]) AC_REQUIRE([AC_HEADER_STDC]) AC_CHECK_HEADERS([errno.h stdarg.h string.h stdlib.h]) NEON_FORMAT(size_t,,u) dnl size_t is unsigned; use %u formats NEON_FORMAT(off_t) NEON_FORMAT(ssize_t) ]) AC_DEFUN([NEON_FORMAT_PREP], [ AC_CHECK_SIZEOF(int) AC_CHECK_SIZEOF(long) AC_CHECK_SIZEOF(long long) if test "$GCC" = "yes"; then AC_CACHE_CHECK([for gcc -Wformat -Werror sanity], ne_cv_cc_werror, [ # See whether a simple test program will compile without errors. ne_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS -Wformat -Werror" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include #include ]], [[int i = 42; printf("%d", i);]])], [ne_cv_cc_werror=yes], [ne_cv_cc_werror=no]) CPPFLAGS=$ne_save_CPPFLAGS]) ne_fmt_trycompile=$ne_cv_cc_werror else ne_fmt_trycompile=no fi ]) dnl Check for LFS support AC_DEFUN([NE_LARGEFILE], [ dnl Need the size of off_t AC_REQUIRE([NEON_COMMON_CHECKS]) if test -z "$ac_cv_sizeof_off_t"; then NE_DISABLE_SUPPORT(LFS, [LFS support omitted: off_t size unknown!]) elif test $ac_cv_sizeof_off_t != 4; then NE_DISABLE_SUPPORT(LFS, [LFS support unnecessary, off_t is not 32-bit]) AC_CHECK_FUNCS([strtoll strtoq], [break]) elif test -z "$ac_cv_sizeof_long_long"; then NE_DISABLE_SUPPORT(LFS, [LFS support omitted: long long size unknown]) elif test $ac_cv_sizeof_long_long != 8; then NE_DISABLE_SUPPORT(LFS, [LFS support omitted: long long not 64-bit]) else ne_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" AC_CHECK_TYPE(off64_t, [ NEON_FORMAT(off64_t) ne_lfsok=no AC_CHECK_FUNCS([strtoll strtoq], [ne_lfsok=yes; break]) AC_CHECK_FUNCS([lseek64 fstat64], [], [ne_lfsok=no; break]) if test x$ne_lfsok = xyes; then NE_ENABLE_SUPPORT(LFS, [LFS (large file) support enabled]) NEON_CFLAGS="$NEON_CFLAGS -D_LARGEFILE64_SOURCE -DNE_LFS" ne_save_CPPFLAGS="$CPPFLAGS -DNE_LFS" else NE_DISABLE_SUPPORT(LFS, [LFS support omitted: 64-bit support functions not found]) fi], [NE_DISABLE_SUPPORT(LFS, [LFS support omitted: off64_t type not found])]) CPPFLAGS=$ne_save_CPPFLAGS fi]) dnl NEON_FORMAT(TYPE[, HEADERS[, [SPECIFIER]]) dnl dnl This macro finds out which modifier is needed to create a dnl printf format string suitable for printing integer type TYPE (which dnl may be an int, long, or long long). dnl The default specifier is 'd', if SPECIFIER is not given. dnl TYPE may be defined in HEADERS; sys/types.h is always used first. AC_DEFUN([NEON_FORMAT], [ AC_REQUIRE([NEON_FORMAT_PREP]) AC_CHECK_SIZEOF($1, [$2]) dnl Work out which specifier character to use m4_ifdef([ne_spec], [m4_undefine([ne_spec])]) m4_if($#, 3, [m4_define(ne_spec,$3)], [m4_define(ne_spec,d)]) m4_ifdef([ne_cvar], [m4_undefine([ne_cvar])])dnl m4_define([ne_cvar], m4_translit(ne_cv_fmt_[$1], [ ], [_]))dnl AC_CACHE_CHECK([how to print $1], [ne_cvar], [ ne_cvar=none if test $ne_fmt_trycompile = yes; then oflags="$CPPFLAGS" # Consider format string mismatches as errors CPPFLAGS="$CPPFLAGS -Wformat -Werror" dnl obscured for m4 quoting: "for str in d ld lld; do" for str in ne_spec l]ne_spec[ ll]ne_spec[; do AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include $2 #include ]], [[$1 i = 1; printf("%$str", i);]])], [ne_cvar=$str; break]) done CPPFLAGS=$oflags else # Best guess. Don't have to be too precise since we probably won't # get a warning message anyway. case $ac_cv_sizeof_]m4_translit($1, [ ], [_])[ in $ac_cv_sizeof_int) ne_cvar="ne_spec" ;; $ac_cv_sizeof_long) ne_cvar="l]ne_spec[" ;; $ac_cv_sizeof_long_long) ne_cvar="ll]ne_spec[" ;; esac fi ]) if test "x$ne_cvar" = "xnone"; then AC_MSG_ERROR([format string for $1 not found]) fi AC_DEFINE_UNQUOTED([NE_FMT_]m4_translit($1, [a-z ], [A-Z_]), "$ne_cvar", [Define to be printf format string for $1]) ]) dnl Wrapper for AC_CHECK_FUNCS; uses libraries from $NEON_LIBS. AC_DEFUN([NE_CHECK_FUNCS], [ ne_cf_save_LIBS=$LIBS LIBS="$LIBS $NEON_LIBS" AC_CHECK_FUNCS($@) LIBS=$ne_cf_save_LIBS]) dnl Checks needed when compiling the neon source. AC_DEFUN([LIBNEON_SOURCE_CHECKS], [ dnl Run all the normal C language/compiler tests AC_REQUIRE([NEON_COMMON_CHECKS]) dnl Needed for building the MD5 code. AC_REQUIRE([AC_C_BIGENDIAN]) dnl Is strerror_r present; if so, which variant AC_REQUIRE([AC_FUNC_STRERROR_R]) AC_CHECK_HEADERS([sys/time.h limits.h sys/select.h arpa/inet.h libintl.h \ signal.h sys/socket.h netinet/in.h netinet/tcp.h netdb.h sys/poll.h \ sys/limits.h],,, [AC_INCLUDES_DEFAULT /* netinet/tcp.h requires netinet/in.h on some platforms. */ #ifdef HAVE_NETINET_IN_H #include #endif]) AC_REQUIRE([NE_SNPRINTF]) AC_CACHE_CHECK([for timezone global], ne_cv_cc_timezone, [ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include #include ]], [[time_t t = 0 - timezone;]])], ne_cv_cc_timezone=yes, ne_cv_cc_timezone=no)]) if test "$ne_cv_cc_timezone" = "yes"; then AC_DEFINE([HAVE_TIMEZONE], 1, [Define if the timezone global is available]) fi dnl Check for large file support NE_LARGEFILE AC_REPLACE_FUNCS(strcasecmp) AC_CHECK_FUNCS(signal setvbuf setsockopt stpcpy poll) if test "x${ac_cv_func_poll}${ac_cv_header_sys_poll_h}y" = "xyesyesy"; then AC_DEFINE([NE_USE_POLL], 1, [Define if poll() should be used]) fi if test "$ac_cv_func_stpcpy" = "yes"; then AC_CHECK_DECLS(stpcpy) fi # Modern AIXes with the "Linux-like" libc have an undeclared stpcpy AH_BOTTOM([#if defined(HAVE_STPCPY) && defined(HAVE_DECL_STPCPY) && !HAVE_DECL_STPCPY && !defined(stpcpy) char *stpcpy(char *, const char *); #endif]) # Unixware 7 can only link gethostbyname with -lnsl -lsocket # Pick up -lsocket first, then the gethostbyname check will work. NE_SEARCH_LIBS(socket, socket inet ws2_32) # Enable getaddrinfo support if it, gai_strerror and inet_ntop are # all available. NE_SEARCH_LIBS(getaddrinfo, nsl,, [ne_enable_gai=no], [# HP-UX boxes commonly get into a state where getaddrinfo is present # but borked: http://marc.theaimsgroup.com/?l=apr-dev&m=107730955207120&w=2 case x`uname -sr 2>/dev/null`y in xHP-UX*11.[[01]]*y) AC_MSG_NOTICE([getaddrinfo support disabled on HP-UX 11.0x/11.1x]) ;; *) ne_enable_gai=yes NE_CHECK_FUNCS(gai_strerror inet_ntop,,[ne_enable_gai=no; break]) ;; esac ]) if test $ne_enable_gai = yes; then NE_ENABLE_SUPPORT(IPV6, [IPv6 support is enabled]) AC_DEFINE(USE_GETADDRINFO, 1, [Define if getaddrinfo() should be used]) AC_CACHE_CHECK([for working AI_ADDRCONFIG], [ne_cv_gai_addrconfig], [ AC_RUN_IFELSE([AC_LANG_PROGRAM([#include ], [struct addrinfo hints = {0}, *result; hints.ai_flags = AI_ADDRCONFIG; if (getaddrinfo("localhost", NULL, &hints, &result) != 0) return 1;])], ne_cv_gai_addrconfig=yes, ne_cv_gai_addrconfig=no, ne_cv_gai_addrconfig=no)]) if test $ne_cv_gai_addrconfig = yes; then AC_DEFINE(USE_GAI_ADDRCONFIG, 1, [Define if getaddrinfo supports AI_ADDRCONFIG]) fi else # Checks for non-getaddrinfo() based resolver interfaces. # QNX has gethostbyname in -lsocket. BeOS only has it in -lbind. # CygWin/Winsock2 has it in -lws2_32, allegedly. NE_SEARCH_LIBS(gethostbyname, socket nsl bind) NE_SEARCH_LIBS(hstrerror, resolv,,[:]) NE_CHECK_FUNCS(hstrerror) # Older Unixes don't declare h_errno. AC_CHECK_DECLS(h_errno,,,[#define _XOPEN_SOURCE_EXTENDED 1 #include ]) AC_CHECK_TYPE(in_addr_t,,[ AC_DEFINE([in_addr_t], [unsigned int], [Define if in_addr_t is not availale])], [ #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_NETINET_IN_H # include #endif ]) fi AC_CHECK_MEMBERS([struct tm.tm_gmtoff, struct tm.__tm_gmtoff],,, [#include ]) if test $ac_cv_member_struct_tm_tm_gmtoff$ac_cv_member_struct_tm___tm_gmtoff = nono; then AC_MSG_WARN([no timezone handling in date parsing on this platform]) fi ifdef([neon_no_zlib], [NE_DISABLE_SUPPORT(ZLIB, [zlib not supported])], [NEON_ZLIB()]) # Conditionally enable ACL support AC_MSG_CHECKING([whether to enable ACL support in neon]) if test "x$neon_no_acl" = "xyes"; then AC_MSG_RESULT(no) else AC_MSG_RESULT(yes) NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_acl" fi NEON_SSL() NEON_SOCKS() NEON_GSSAPI() AC_SUBST(NEON_CFLAGS) AC_SUBST(NEON_LIBS) AC_SUBST(NEON_LTLIBS) ]) dnl Call to put lib/snprintf.o in LIBOBJS and define HAVE_SNPRINTF_H dnl if snprintf isn't in libc. AC_DEFUN([NEON_REPLACE_SNPRINTF], [ # Check for snprintf AC_CHECK_FUNC(snprintf,,[ AC_DEFINE(HAVE_SNPRINTF_H, 1, [Define if need to include snprintf.h]) AC_LIBOBJ(lib/snprintf)]) ]) dnl turn off webdav, boo hoo. AC_DEFUN([NEON_WITHOUT_WEBDAV], [ neon_no_webdav=yes neon_no_acl=yes NEON_NEED_XML_PARSER=no neon_xml_parser_message="none needed" ]) dnl Turn off zlib support AC_DEFUN([NEON_WITHOUT_ZLIB], [ define(neon_no_zlib, yes) ]) AC_DEFUN([NEON_WITHOUT_ACL], [ # Turn off ACL support neon_no_acl=yes ]) dnl Common macro to NEON_LIBTOOL_BUILD and NEON_NORMAL_BUILD dnl Sets NEONOBJS appropriately if it has not already been set. dnl dnl NOT FOR EXTERNAL USE: use LIBTOOL_BUILD or NORMAL_BUILD. dnl AC_DEFUN([NEON_COMMON_BUILD], [ # Using the default set of object files to build. # Add the extension to EXTRAOBJS ne="$NEON_EXTRAOBJS" NEON_EXTRAOBJS= for o in $ne; do NEON_EXTRAOBJS="$NEON_EXTRAOBJS $o.$NEON_OBJEXT" done # Was DAV support explicitly turned off? if test "x$neon_no_webdav" = "xyes"; then # No WebDAV support NEONOBJS="$NEONOBJS \$(NEON_BASEOBJS)" NE_DISABLE_SUPPORT(DAV, [WebDAV support is not enabled]) else # WebDAV support NEONOBJS="$NEONOBJS \$(NEON_DAVOBJS)" NE_ENABLE_SUPPORT(DAV, [WebDAV support is enabled]) fi AC_SUBST(NEON_TARGET) AC_SUBST(NEON_OBJEXT) AC_SUBST(NEONOBJS) AC_SUBST(NEON_EXTRAOBJS) AC_SUBST(NEON_LINK_FLAGS) ]) # The libtoolized build case: AC_DEFUN([NEON_LIBTOOL_BUILD], [ NEON_TARGET=libneon.la NEON_OBJEXT=lo NEON_COMMON_BUILD($#, $*) ]) dnl Find 'ar' and 'ranlib', fail if ar isn't found. AC_DEFUN([NE_FIND_AR], [ # Search in /usr/ccs/bin for Solaris ne_PATH=$PATH:/usr/ccs/bin AC_PATH_TOOL(AR, ar, notfound, $ne_PATH) if test "x$AR" = "xnotfound"; then AC_MSG_ERROR([could not find ar tool]) fi AC_PATH_TOOL(RANLIB, ranlib, :, $ne_PATH) ]) # The non-libtool build case: AC_DEFUN([NEON_NORMAL_BUILD], [ NEON_TARGET=libneon.a NEON_OBJEXT=o AC_REQUIRE([NE_FIND_AR]) NEON_COMMON_BUILD($#, $*) ]) AC_DEFUN([NE_SNPRINTF], [ AC_CHECK_FUNCS(snprintf vsnprintf,,[ ne_save_LIBS=$LIBS LIBS="$LIBS -lm" # Always need -lm AC_CHECK_LIB(trio, trio_vsnprintf, [AC_CHECK_HEADERS(trio.h,, AC_MSG_ERROR([trio installation problem? libtrio found but not trio.h])) AC_MSG_NOTICE(using trio printf replacement library) NEON_LIBS="$NEON_LIBS -ltrio -lm" AC_DEFINE(HAVE_TRIO, 1, [Use trio printf replacement library])], [AC_MSG_NOTICE([no vsnprintf/snprintf detected in C library]) AC_MSG_ERROR([Install the trio library from http://daniel.haxx.se/projects/trio/])]) LIBS=$ne_save_LIBS break ])]) dnl Usage: NE_CHECK_OPENSSLVER(variable, version-string, version-hex) dnl Define 'variable' to 'yes' if OpenSSL version is >= version-hex AC_DEFUN([NE_CHECK_OPENSSLVER], [ AC_CACHE_CHECK([OpenSSL version is >= $2], $1, [ AC_EGREP_CPP(good, [#include #if OPENSSL_VERSION_NUMBER >= $3 good #endif], [$1=yes], [$1=no])])]) dnl Less noisy replacement for PKG_CHECK_MODULES AC_DEFUN([NE_PKG_CONFIG], [ AC_PATH_PROG(PKG_CONFIG, pkg-config, no) if test "$PKG_CONFIG" = "no"; then : Not using pkg-config $4 else AC_CACHE_CHECK([for $2 pkg-config data], ne_cv_pkg_$2, [if $PKG_CONFIG $2; then ne_cv_pkg_$2=yes else ne_cv_pkg_$2=no fi]) if test "$ne_cv_pkg_$2" = "yes"; then $1_CFLAGS=`$PKG_CONFIG --cflags $2` $1_LIBS=`$PKG_CONFIG --libs $2` : Using provided pkg-config data $3 else : No pkg-config for $2 provided $4 fi fi]) dnl Check for an SSL library (GNU TLS or OpenSSL) AC_DEFUN([NEON_SSL], [ AC_ARG_WITH(ssl, AS_HELP_STRING([--with-ssl=openssl|gnutls], [enable SSL support (default OpenSSL)])) AC_ARG_WITH(egd, [[ --with-egd[=PATH] enable EGD support [using EGD socket at PATH]]]) case $with_ssl in /*) AC_MSG_NOTICE([to use SSL libraries in non-standard locations, try --with-ssl --with-libs=$with_ssl]) AC_MSG_ERROR([--with-ssl does not take a path argument]) ;; yes|openssl) NE_PKG_CONFIG(NE_SSL, openssl, [AC_MSG_NOTICE(using SSL library configuration from pkg-config) CPPFLAGS="$CPPFLAGS ${NE_SSL_CFLAGS}" NEON_LIBS="$NEON_LIBS ${NE_SSL_LIBS}"], [# Either OpenSSL library may require -ldl if built with dynamic engine support NE_SEARCH_LIBS(RSA_new, crypto, -ldl) NE_SEARCH_LIBS(SSL_library_init, ssl, -ldl)]) AC_CHECK_HEADERS(openssl/ssl.h openssl/opensslv.h,, [AC_MSG_ERROR([OpenSSL headers not found, cannot enable SSL support])]) # Enable EGD support if using 0.9.7 or newer NE_CHECK_OPENSSLVER(ne_cv_lib_ssl097, 0.9.7, 0x00907000L) if test "$ne_cv_lib_ssl097" = "yes"; then AC_MSG_NOTICE([OpenSSL >= 0.9.7; EGD support not needed in neon]) NE_ENABLE_SUPPORT(SSL, [SSL support enabled, using OpenSSL (0.9.7 or later)]) else # Fail if OpenSSL is older than 0.9.6 NE_CHECK_OPENSSLVER(ne_cv_lib_ssl096, 0.9.6, 0x00906000L) if test "$ne_cv_lib_ssl096" != "yes"; then AC_MSG_ERROR([OpenSSL 0.9.6 or later is required]) fi NE_ENABLE_SUPPORT(SSL, [SSL support enabled, using OpenSSL (0.9.6 or later)]) case "$with_egd" in yes|no) ne_cv_lib_sslegd=$with_egd ;; /*) ne_cv_lib_sslegd=yes AC_DEFINE_UNQUOTED([EGD_PATH], "$with_egd", [Define to specific EGD socket path]) ;; *) # Guess whether EGD support is needed AC_CACHE_CHECK([whether to enable EGD support], [ne_cv_lib_sslegd], [if test -r /dev/random || test -r /dev/urandom; then ne_cv_lib_sslegd=no else ne_cv_lib_sslegd=yes fi]) ;; esac if test "$ne_cv_lib_sslegd" = "yes"; then AC_MSG_NOTICE([EGD support enabled for seeding OpenSSL PRNG]) AC_DEFINE([ENABLE_EGD], 1, [Define if EGD should be supported]) fi fi AC_DEFINE([HAVE_OPENSSL], 1, [Define if OpenSSL support is enabled]) NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_openssl" ;; gnutls) AC_PATH_PROG(GNUTLS_CONFIG, libgnutls-config, no) if test "$GNUTLS_CONFIG" = "no"; then AC_MSG_ERROR([could not find libgnutls-config in \$PATH]) fi ne_gnutls_ver=`$GNUTLS_CONFIG --version` case $ne_gnutls_ver in 1.0.?|1.0.1?|1.0.20|1.0.21) AC_MSG_ERROR([GNU TLS version $ne_gnutls_ver is too old -- 1.0.22 or later required]) ;; 1.*) ;; *) AC_MSG_ERROR([GNU TLS version $ne_gnutls_ver is not supported]) ;; esac CPPFLAGS="$CPPFLAGS `$GNUTLS_CONFIG --cflags`" AC_CHECK_HEADER([gnutls/gnutls.h],, [AC_MSG_ERROR([could not find gnutls/gnutls.h in include path])]) NE_ENABLE_SUPPORT(SSL, [SSL support enabled, using GnuTLS $ne_gnutls_ver]) NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_gnutls" NEON_LIBS="$NEON_LIBS `$GNUTLS_CONFIG --libs`" AC_DEFINE([HAVE_GNUTLS], 1, [Define if GnuTLS support is enabled]) # Check for functions in later releases. NE_CHECK_FUNCS(gnutls_session_get_data2) ;; *) # Default to off; only create crypto-enabled binaries if requested. NE_DISABLE_SUPPORT(SSL, [SSL support is not enabled]) NE_DISABLE_SUPPORT(TS_SSL, [Thread-safe SSL support is not enabled]) NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_stubssl" ;; esac AC_SUBST(NEON_SUPPORTS_SSL) AC_ARG_WITH(ca-bundle, AS_HELP_STRING(--with-ca-bundle, specify filename of an SSL CA root bundle),, with_ca_bundle=no) case ${NE_FLAG_SSL}-${with_ca_bundle} in *-no) ;; yes-*) AC_DEFINE_UNQUOTED([NE_SSL_CA_BUNDLE], ["${with_ca_bundle}"], [Define to be filename of an SSL CA root bundle]) AC_MSG_NOTICE([Using ${with_ca_bundle} as default SSL CA bundle]) ;; esac AC_ARG_ENABLE(threadsafe-ssl, AS_HELP_STRING(--enable-threadsafe-ssl=posix, [enable SSL library thread-safety using POSIX threads: suitable CC/CFLAGS/LIBS must be used to make the POSIX library interfaces available]),, enable_threadsafe_ssl=no) case $enable_threadsafe_ssl in posix|yes) ne_pthr_ok=yes AC_CHECK_FUNCS([pthread_mutex_init pthread_mutex_lock],,[ne_pthr_ok=no]) if test "${ne_pthr_ok}" = "no"; then AC_MSG_ERROR([could not find POSIX mutex interfaces; (try CC="${CC} -pthread"?)]) fi NE_ENABLE_SUPPORT(TS_SSL, [Thread-safe SSL supported using POSIX threads]) ;; *) NE_DISABLE_SUPPORT(TS_SSL, [Thread-safe SSL not supported]) ;; esac ]) dnl Check for Kerberos installation AC_DEFUN([NEON_GSSAPI], [ AC_ARG_WITH(gssapi, AS_HELP_STRING(--without-gssapi, disable GSSAPI support)) if test "$with_gssapi" != "no"; then AC_PATH_PROG([KRB5_CONFIG], krb5-config, none, $PATH:/usr/kerberos/bin) else KRB5_CONFIG=none fi if test "x$KRB5_CONFIG" != "xnone"; then ne_save_CPPFLAGS=$CPPFLAGS ne_save_LIBS=$NEON_LIBS NEON_LIBS="$NEON_LIBS `${KRB5_CONFIG} --libs gssapi`" CPPFLAGS="$CPPFLAGS `${KRB5_CONFIG} --cflags gssapi`" # MIT and Heimdal put gssapi.h in different places AC_CHECK_HEADERS(gssapi/gssapi.h gssapi.h, [ NE_CHECK_FUNCS(gss_init_sec_context, [ ne_save_CPPFLAGS=$CPPFLAGS ne_save_LIBS=$NEON_LIBS AC_MSG_NOTICE([GSSAPI authentication support enabled]) AC_DEFINE(HAVE_GSSAPI, 1, [Define if GSSAPI support is enabled]) AC_CHECK_HEADERS(gssapi/gssapi_generic.h) # Older versions of MIT Kerberos lack GSS_C_NT_HOSTBASED_SERVICE AC_CHECK_DECL([GSS_C_NT_HOSTBASED_SERVICE],, [AC_DEFINE([GSS_C_NT_HOSTBASED_SERVICE], gss_nt_service_name, [Define if GSS_C_NT_HOSTBASED_SERVICE is not defined otherwise])], [#ifdef HAVE_GSSAPI_GSSAPI_H #include #else #include #endif])]) break ]) CPPFLAGS=$ne_save_CPPFLAGS NEON_LIBS=$ne_save_LIBS fi]) dnl Adds an --enable-warnings argument to configure to allow enabling dnl compiler warnings AC_DEFUN([NEON_WARNINGS],[ AC_REQUIRE([AC_PROG_CC]) dnl so that $GCC is set AC_ARG_ENABLE(warnings, AS_HELP_STRING(--enable-warnings, [enable compiler warnings])) if test "$enable_warnings" = "yes"; then case $GCC:`uname` in yes:*) CFLAGS="$CFLAGS -Wall -Wmissing-declarations -Wshadow -Wreturn-type -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wformat-security" if test -z "$with_ssl" -o "$with_ssl" = "no"; then # OpenSSL headers fail strict prototypes checks CFLAGS="$CFLAGS -Wstrict-prototypes" fi ;; no:OSF1) CFLAGS="$CFLAGS -check -msg_disable returnchecks -msg_disable alignment -msg_disable overflow" ;; no:IRIX) CFLAGS="$CFLAGS -fullwarn" ;; no:UnixWare) CFLAGS="$CFLAGS -v" ;; *) AC_MSG_WARN([warning flags unknown for compiler on this platform]) ;; esac fi ]) dnl Adds an --disable-debug argument to configure to allow disabling dnl debugging messages. dnl Usage: dnl NEON_WARNINGS([actions-if-debug-enabled], [actions-if-debug-disabled]) dnl AC_DEFUN([NEON_DEBUG], [ AC_ARG_ENABLE(debug, AS_HELP_STRING(--disable-debug,[disable runtime debugging messages])) # default is to enable debugging case $enable_debug in no) AC_MSG_NOTICE([debugging is disabled]) $2 ;; *) AC_MSG_NOTICE([debugging is enabled]) AC_DEFINE(NE_DEBUGGING, 1, [Define to enable debugging]) $1 ;; esac]) dnl Macro to optionally enable socks support AC_DEFUN([NEON_SOCKS], [ AC_ARG_WITH([socks], AS_HELP_STRING([--with-socks],[use SOCKSv5 library])) if test "$with_socks" = "yes"; then ne_save_LIBS=$LIBS AC_CHECK_HEADERS(socks.h, [AC_CHECK_LIB(socks5, connect, [:], [AC_MSG_ERROR([could not find libsocks5 for SOCKS support])])], [AC_MSG_ERROR([could not find socks.h for SOCKS support])]) NE_ENABLE_SUPPORT(SOCKS, [SOCKSv5 support is enabled]) NEON_LIBS="$NEON_LIBS -lsocks5" LIBS=$ne_save_LIBS else NE_DISABLE_SUPPORT(SOCKS, [SOCKSv5 support is not enabled]) fi]) AC_DEFUN([NEON_WITH_LIBS], [ AC_ARG_WITH([libs], [[ --with-libs=DIR[:DIR2...] look for support libraries in DIR/{bin,lib,include}]], [case $with_libs in yes|no) AC_MSG_ERROR([--with-libs must be passed a directory argument]) ;; *) ne_save_IFS=$IFS; IFS=: for dir in $with_libs; do ne_add_CPPFLAGS="$ne_add_CPPFLAGS -I${dir}/include" ne_add_LDFLAGS="$ne_add_LDFLAGS -L${dir}/lib" ne_add_PATH="${ne_add_PATH}${dir}/bin:" done IFS=$ne_save_IFS CPPFLAGS="${ne_add_CPPFLAGS} $CPPFLAGS" LDFLAGS="${ne_add_LDFLAGS} $LDFLAGS" PATH=${ne_add_PATH}$PATH ;; esac])]) AC_DEFUN([NEON_I18N], [ AC_ARG_ENABLE(nls, AS_HELP_STRING(--disable-nls, [disable internationalization support]),, [enable_nls=yes]) if test "x${enable_nls}${ac_cv_header_libintl_h}" = "xyesyes"; then # presume that dgettext() is available if bindtextdomain() is... # checking for dgettext() itself is awkward because gcc has a # builtin of that function, which confuses AC_CHECK_FUNCS et al. NE_SEARCH_LIBS(bindtextdomain, intl,,[enable_nls=no]) NE_CHECK_FUNCS(bind_textdomain_codeset) fi if test "$enable_nls" = "no"; then NE_DISABLE_SUPPORT(I18N, [Internationalization support not enabled]) else NE_ENABLE_SUPPORT(I18N, [Internationalization support enabled]) eval localedir="${datadir}/locale" AC_DEFINE_UNQUOTED([LOCALEDIR], "$localedir", [Define to be location of localedir]) fi ]) davfs2-1.5.5/config/install-sh0000755000175000017500000003546313422371026013114 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2014-09-12.12; # 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. ;; *) # $RANDOM is not portable (e.g. dash); use it when possible to # lower collision chance tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0 # As "mkdir -p" follows symlinks and we work in /tmp possibly; so # create the $tmpdir first (and fail if unsuccessful) to make sure # that nobody tries to guess the $tmpdir name. if (umask $mkdir_umask && $mkdirprog $mkdir_mode "$tmpdir" && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. test_tmpdir="$tmpdir/a" ls_ld_tmpdir=`ls -ld "$test_tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null fi trap '' 0;; esac;; 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: davfs2-1.5.5/config/nls.m40000644000175000017500000000231512460776605012151 00000000000000# nls.m4 serial 5 (gettext-0.18) dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 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]) ]) davfs2-1.5.5/config/progtest.m40000644000175000017500000000557312460776605013235 00000000000000# progtest.m4 serial 6 (gettext-0.18) dnl Copyright (C) 1996-2003, 2005, 2008-2010 Free Software Foundation, 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 , 1996. AC_PREREQ([2.50]) # Search path for a program which passes the given test. dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) AC_DEFUN([AM_PATH_PROG_WITH_TEST], [ # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # 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. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in ifelse([$5], , $PATH, [$5]); do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done 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 ]) davfs2-1.5.5/config/missing0000755000175000017500000001533013422371026012476 00000000000000#! /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: davfs2-1.5.5/config/compile0000755000175000017500000001624513422371026012463 00000000000000#! /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: davfs2-1.5.5/config/lib-prefix.m40000644000175000017500000002042212460776605013415 00000000000000# lib-prefix.m4 serial 7 (gettext-0.18) dnl Copyright (C) 2001-2005, 2008-2010 Free Software Foundation, 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 From Bruno Haible. dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't dnl require excessive bracketing. ifdef([AC_HELP_STRING], [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed dnl to access previously installed libraries. The basic assumption is that dnl a user will want packages to use other packages he previously installed dnl with the same --prefix option. dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate dnl libraries, but is otherwise very convenient. AC_DEFUN([AC_LIB_PREFIX], [ AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_LIB_ARG_WITH([lib-prefix], [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib --without-lib-prefix don't search for libraries in includedir and libdir], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" fi fi ]) if test $use_additional = yes; then dnl Potentially add $additional_includedir to $CPPFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's already present in $CPPFLAGS, dnl 3. if it's /usr/local/include and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= for x in $CPPFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $CPPFLAGS. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" fi fi fi fi dnl Potentially add $additional_libdir to $LDFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's already present in $LDFLAGS, dnl 3. if it's /usr/local/lib and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then haveit= for x in $LDFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then if test -n "$GCC"; then case $host_os in linux*) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LDFLAGS. LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" fi fi fi fi fi ]) dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, dnl acl_final_exec_prefix, containing the values to which $prefix and dnl $exec_prefix will expand at the end of the configure script. AC_DEFUN([AC_LIB_PREPARE_PREFIX], [ dnl Unfortunately, prefix and exec_prefix get only finally determined dnl at the end of configure. if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" ]) dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the dnl variables prefix and exec_prefix bound to the values they will have dnl at the end of the configure script. AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], [ acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" $1 exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" ]) dnl AC_LIB_PREPARE_MULTILIB creates dnl - a variable acl_libdirstem, containing the basename of the libdir, either dnl "lib" or "lib64" or "lib/64", dnl - a variable acl_libdirstem2, as a secondary possible value for dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or dnl "lib/amd64". AC_DEFUN([AC_LIB_PREPARE_MULTILIB], [ dnl There is no formal standard regarding lib and lib64. dnl On glibc systems, the current practice is that on a system supporting dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine dnl the compiler's default mode by looking at the compiler's library search dnl path. If at least one of its elements ends in /lib64 or points to a dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI. dnl Otherwise we use the default, namely "lib". dnl On Solaris systems, the current practice is that on a system supporting dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib. AC_REQUIRE([AC_CANONICAL_HOST]) acl_libdirstem=lib acl_libdirstem2= case "$host_os" in solaris*) dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment dnl . dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link." dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the dnl symlink is missing, so we set acl_libdirstem2 too. AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit], [AC_EGREP_CPP([sixtyfour bits], [ #ifdef _LP64 sixtyfour bits #endif ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no]) ]) if test $gl_cv_solaris_64bit = yes; then acl_libdirstem=lib/64 case "$host_cpu" in sparc*) acl_libdirstem2=lib/sparcv9 ;; i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; esac fi ;; *) searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` if test -n "$searchpath"; then acl_save_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; */../ | */.. ) # Better ignore directories of this form. They are misleading. ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib64 ) acl_libdirstem=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" fi ;; esac test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" ]) davfs2-1.5.5/config/davfs2.m40000644000175000017500000001200712460776605012541 00000000000000# davfs2 macros # Copyright (C) 2006, 2007, 2008 Werner Baumann # # This file is part of davfs2. # # davfs2 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. # # davfs2 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 davfs2; if not, write to the Free Software Foundation, # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ # Check for an external Neon library # Looks for the binary 'neon-config'. If a directory is given with # --with-neon=, it looks in the bin-subdirectory of this, else it uses # AC_PATH_PROG to find 'neon-config'. # If found, it sets variable NRON_CONFIG and calls NEON_USE_EXTERNAL. # if not found, or if NEON_USE_EXTERNAL does not set neon_got_library # to yes, configration is stopped with an error message. AC_DEFUN([DAV_CHECK_NEON],[ AC_ARG_WITH(neon, [ --with-neon[[=DIR]] specify location of neon library], [case $withval in yes|no) neon_ext_path= ;; *) neon_ext_path=$withval ;; esac;], [neon_ext_path=] ) neon_got_library=no if test "x$neon_ext_path" = "x"; then AC_PATH_PROG([NEON_CONFIG], neon-config, none) if test "x${NEON_CONFIG}" = "xnone"; then AC_MSG_NOTICE([no external neon library found]) elif test -x "${NEON_CONFIG}"; then NEON_USE_EXTERNAL else AC_MSG_NOTICE([ignoring non-executable ${NEON_CONFIG}]) fi else AC_MSG_CHECKING([for neon library in $neon_ext_path]) NEON_CONFIG="$neon_ext_path/bin/neon-config" if test -x ${NEON_CONFIG}; then AC_MSG_RESULT([found]) NEON_USE_EXTERNAL else AC_MSG_RESULT([not found]) fi fi if test "$neon_got_library" = "no"; then AC_MSG_ERROR(could not find neon) fi AC_SUBST(NEON_LIBS) ]) # Setting uid and gid, mount.davfs will run as, and some pathes. AC_DEFUN([DAV_DEFAULTS],[ AC_ARG_VAR([dav_user], [if invoked by root, mount.davfs runs as this user [davfs2]]) if test -z "$dav_user"; then dav_user="davfs2"; fi AC_ARG_VAR([dav_group], [the group, the mount.davfs daemon belongs to [davfs2]]) if test -z "$dav_group"; then dav_group="davfs2"; fi AC_ARG_VAR([ssbindir], [where mount will search for mount-helpers [/sbin]]) if test -z "$ssbindir"; then ssbindir="/sbin"; fi AC_ARG_VAR([dav_localstatedir], [directory to store pid-files in [/var/run]]) if test -z "$dav_localstatedir"; then dav_localstatedir="/var/run"; fi AC_ARG_VAR([dav_syscachedir], [cache directory [/var/cache]]) if test -z "$dav_syscachedir"; then dav_syscachedir="/var/cache"; fi ]) # Select the languages for documentation and messages # The langusges available for documentation ar taken from man/po4a.conf. # If variable LINGUAS is set, only languages that are available and # mentioned in LINGUAS are selected, otherwise all available languages # are selected. Substitutes $dav_linguas in output files with this value. # The languages for messages are selected by po.m4 macros, that use the # same variable LINGUAS. AC_DEFUN([DAV_LINGUAS],[ AC_ARG_VAR([LINGUAS], [select languages for messages and documentation]) dav_desired_linguas="${LINGUAS-%UNSET%}" dav_all_linguas= if test -f "man/po4a.conf"; then dav_all_linguas="`cat 'man/po4a.conf' | grep '[po4a_langs]' | sed 's/.po4a_langs.//'`" fi dav_linguas= if test "$dav_desired_linguas" == "%UNSET%"; then dav_linguas="$dav_all_linguas" else for dav_lingua in $dav_desired_linguas; do case "$dav_all_linguas" in *"$dav_lingua"*) dav_linguas="$dav_linguas $dav_lingua";; esac done fi AC_SUBST([dav_linguas]) ]) # If Neon supports large files, it calls AC_SYS_LARGEFILE. # dav_lfs is set to yes, if neon and the system support large files. AC_DEFUN([DAV_LFS],[ AC_REQUIRE([DAV_CHECK_NEON])dnl if test "$ne_LFS_message" = "LFS is supported by neon"; then AC_SYS_LARGEFILE fi if test "$ac_cv_sys_file_offset_bits" = "64"; then dav_lfs=yes else dav_lfs=no fi ]) # Output summary AC_DEFUN([DAV_MESSAGE],[ if test "$USE_NLS" = "yes"; then dav_nls=${gt_source} else dav_nls=no fi cat< # Created: 1993-05-16 # Public domain. # # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' IFS=" "" $nl" errstatus=0 dirmode= usage="\ Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ... Create each directory DIR (with mode MODE, if specified), including all leading file name components. Report bugs to ." # process command line arguments while test $# -gt 0 ; do case $1 in -h | --help | --h*) # -h for help echo "$usage" exit $? ;; -m) # -m PERM arg shift test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } dirmode=$1 shift ;; --version) echo "$0 $scriptversion" exit $? ;; --) # stop option processing shift break ;; -*) # unknown option echo "$usage" 1>&2 exit 1 ;; *) # first non-opt arg break ;; esac done for file do if test -d "$file"; then shift else break fi done case $# in 0) exit 0 ;; esac # Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and # mkdir -p a/c at the same time, both will detect that a is missing, # one will create a, then the other will try to create a and die with # a "File exists" error. This is a problem when calling mkinstalldirs # from a parallel make. We use --version in the probe to restrict # ourselves to GNU mkdir, which is thread-safe. case $dirmode in '') if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then echo "mkdir -p -- $*" exec mkdir -p -- "$@" else # On NextStep and OpenStep, the 'mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because '.' already # exists. test -d ./-p && rmdir ./-p test -d ./--version && rmdir ./--version fi ;; *) if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 && test ! -d ./--version; then echo "mkdir -m $dirmode -p -- $*" exec mkdir -m "$dirmode" -p -- "$@" else # Clean up after NextStep and OpenStep mkdir. for d in ./-m ./-p ./--version "./$dirmode"; do test -d $d && rmdir $d done fi ;; esac for file do case $file in /*) pathcomp=/ ;; *) pathcomp= ;; esac oIFS=$IFS IFS=/ set fnord $file shift IFS=$oIFS for d do test "x$d" = x && continue pathcomp=$pathcomp$d case $pathcomp in -*) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" mkdir "$pathcomp" || lasterr=$? if test ! -d "$pathcomp"; then errstatus=$lasterr else if test ! -z "$dirmode"; then echo "chmod $dirmode $pathcomp" lasterr= chmod "$dirmode" "$pathcomp" || lasterr=$? if test ! -z "$lasterr"; then errstatus=$lasterr fi fi fi fi pathcomp=$pathcomp/ done done exit $errstatus # 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: davfs2-1.5.5/config/intlmacosx.m40000644000175000017500000000457512460776605013550 00000000000000# intlmacosx.m4 serial 3 (gettext-0.18) dnl Copyright (C) 2004-2010 Free Software Foundation, 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 Checks for special options needed on MacOS X. dnl Defines INTL_MACOSX_LIBS. AC_DEFUN([gt_INTL_MACOSX], [ dnl Check for API introduced in MacOS X 10.2. AC_CACHE_CHECK([for CFPreferencesCopyAppValue], [gt_cv_func_CFPreferencesCopyAppValue], [gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_TRY_LINK([#include ], [CFPreferencesCopyAppValue(NULL, NULL)], [gt_cv_func_CFPreferencesCopyAppValue=yes], [gt_cv_func_CFPreferencesCopyAppValue=no]) LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1], [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) fi dnl Check for API introduced in MacOS X 10.3. AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent], [gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_TRY_LINK([#include ], [CFLocaleCopyCurrent();], [gt_cv_func_CFLocaleCopyCurrent=yes], [gt_cv_func_CFLocaleCopyCurrent=no]) LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFLocaleCopyCurrent = yes; then AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1], [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi AC_SUBST([INTL_MACOSX_LIBS]) ]) davfs2-1.5.5/config/config.rpath0000755000175000017500000004401212460776605013423 00000000000000#! /bin/sh # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # # Copyright 1996-2010 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally 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. # # The first argument passed to this file is the canonical host specification, # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld # should be set by the caller. # # The set of defined variables is at the end of this script. # Known limitations: # - On IRIX 6.5 with CC="cc", the run time search patch must not be longer # than 256 bytes, otherwise the compiler driver will dump core. The only # known workaround is to choose shorter directory names for the build # directory and/or the installation directory. # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a shrext=.so host="$1" host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` # Code taken from libtool.m4's _LT_CC_BASENAME. for cc_temp in $CC""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` # Code taken from libtool.m4's _LT_COMPILER_PIC. wl= if test "$GCC" = yes; then wl='-Wl,' else case "$host_os" in aix*) wl='-Wl,' ;; darwin*) case $cc_basename in xlc*) wl='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) ;; hpux9* | hpux10* | hpux11*) wl='-Wl,' ;; irix5* | irix6* | nonstopux*) wl='-Wl,' ;; newsos6) ;; linux* | k*bsd*-gnu) case $cc_basename in ecc*) wl='-Wl,' ;; icc* | ifort*) wl='-Wl,' ;; lf95*) wl='-Wl,' ;; pgcc | pgf77 | pgf90) wl='-Wl,' ;; ccc*) wl='-Wl,' ;; como) wl='-lopt=' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) wl='-Wl,' ;; esac ;; esac ;; osf3* | osf4* | osf5*) wl='-Wl,' ;; rdos*) ;; solaris*) wl='-Wl,' ;; sunos4*) wl='-Qoption ld ' ;; sysv4 | sysv4.2uw2* | sysv4.3*) wl='-Wl,' ;; sysv4*MP*) ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) wl='-Wl,' ;; unicos*) wl='-Wl,' ;; uts4*) ;; esac fi # Code taken from libtool.m4's _LT_LINKER_SHLIBS. hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no 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 "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # 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. # Unlike libtool, we use -rpath here, not --rpath, since the documented # option of GNU ld is called -rpath, not --rpath. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' case "$host_os" in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no fi ;; amigaos*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we cannot use # them. ld_shlibs=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then : else ld_shlibs=no fi ;; interix[3-9]*) hardcode_direct=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; gnu* | linux* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; netbsd*) ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : 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 ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' else ld_shlibs=no fi ;; esac ;; sunos4*) hardcode_direct=yes ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then hardcode_libdir_flag_spec= fi else case "$host_os" in aix3*) # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no 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 # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac fi hardcode_direct=yes hardcode_libdir_separator=':' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) 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 hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac fi # Begin _LT_AC_SYS_LIBPATH_AIX. echo 'int main () { return 0; }' > conftest.c ${CC} ${LDFLAGS} conftest.c -o conftest aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` fi if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib" fi rm -f conftest.c conftest # End _LT_AC_SYS_LIBPATH_AIX. if test "$aix_use_runtimelinking" = yes; then hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' else hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" fi fi ;; amigaos*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # see comment about different semantics on the GNU ld section ld_shlibs=no ;; bsdi[45]*) ;; 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. hardcode_libdir_flag_spec=' ' libext=lib ;; darwin* | rhapsody*) hardcode_direct=no if test "$GCC" = yes ; then : else case $cc_basename in xlc*) ;; *) ld_shlibs=no ;; esac fi ;; dgux*) hardcode_libdir_flag_spec='-L$libdir' ;; freebsd1*) ld_shlibs=no ;; freebsd2.2*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; freebsd2*) hardcode_direct=yes hardcode_minus_L=yes ;; freebsd* | dragonfly*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; hpux9*) 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 ;; hpux10*) if test "$with_gnu_ld" = no; then 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 fi ;; hpux11*) if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no ;; *) hardcode_direct=yes # 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*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; netbsd*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; newsos6) hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then hardcode_libdir_flag_spec='${wl}-rpath,$libdir' else case "$host_os" in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) hardcode_libdir_flag_spec='-R$libdir' ;; *) hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; osf3*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) if test "$GCC" = yes; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else # Both cc and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; solaris*) hardcode_libdir_flag_spec='-R$libdir' ;; sunos4*) hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes ;; sysv4) case $host_vendor in sni) hardcode_direct=yes # is this really true??? ;; siemens) hardcode_direct=no ;; motorola) hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac ;; sysv4.3*) ;; sysv4*MP*) if test -d /usr/nec; then ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) ;; sysv5* | sco3.2v5* | sco5v6*) hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator=':' ;; uts4*) hardcode_libdir_flag_spec='-L$libdir' ;; *) ld_shlibs=no ;; esac fi # Check dynamic linker characteristics # Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. # Unlike libtool.m4, here we don't care about _all_ names of the library, but # only about the one the linker finds when passed -lNAME. This is the last # element of library_names_spec in libtool.m4, or possibly two of them if the # linker has special search rules. library_names_spec= # the last element of library_names_spec in libtool.m4 libname_spec='lib$name' case "$host_os" in aix3*) library_names_spec='$libname.a' ;; aix[4-9]*) library_names_spec='$libname$shrext' ;; amigaos*) library_names_spec='$libname.a' ;; beos*) library_names_spec='$libname$shrext' ;; bsdi[45]*) library_names_spec='$libname$shrext' ;; cygwin* | mingw* | pw32* | cegcc*) shrext=.dll library_names_spec='$libname.dll.a $libname.lib' ;; darwin* | rhapsody*) shrext=.dylib library_names_spec='$libname$shrext' ;; dgux*) library_names_spec='$libname$shrext' ;; freebsd1*) ;; freebsd* | dragonfly*) case "$host_os" in freebsd[123]*) library_names_spec='$libname$shrext$versuffix' ;; *) library_names_spec='$libname$shrext' ;; esac ;; gnu*) library_names_spec='$libname$shrext' ;; hpux9* | hpux10* | hpux11*) case $host_cpu in ia64*) shrext=.so ;; hppa*64*) shrext=.sl ;; *) shrext=.sl ;; esac library_names_spec='$libname$shrext' ;; interix[3-9]*) library_names_spec='$libname$shrext' ;; irix5* | irix6* | nonstopux*) library_names_spec='$libname$shrext' case "$host_os" in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; *) libsuff= shlibsuff= ;; esac ;; esac ;; linux*oldld* | linux*aout* | linux*coff*) ;; linux* | k*bsd*-gnu) library_names_spec='$libname$shrext' ;; knetbsd*-gnu) library_names_spec='$libname$shrext' ;; netbsd*) library_names_spec='$libname$shrext' ;; newsos6) library_names_spec='$libname$shrext' ;; nto-qnx*) library_names_spec='$libname$shrext' ;; openbsd*) library_names_spec='$libname$shrext$versuffix' ;; os2*) libname_spec='$name' shrext=.dll library_names_spec='$libname.a' ;; osf3* | osf4* | osf5*) library_names_spec='$libname$shrext' ;; rdos*) ;; solaris*) library_names_spec='$libname$shrext' ;; sunos4*) library_names_spec='$libname$shrext$versuffix' ;; sysv4 | sysv4.3*) library_names_spec='$libname$shrext' ;; sysv4*MP*) library_names_spec='$libname$shrext' ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) library_names_spec='$libname$shrext' ;; uts4*) library_names_spec='$libname$shrext' ;; esac sed_quote_subst='s/\(["`$\\]\)/\\\1/g' escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` shlibext=`echo "$shrext" | sed -e 's,^\.,,'` escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' < Defines the directory where davfs2 will be installed. It defaults to '/usr/local'. If your sources came with your distribution it may be '/usr'. --with-neon= Directory where to find the neon library and the neon headers. Default is to first try /usr/local and then /usr. If you just have neon libraries in /usr/lib and headers in /usr/include, you don't need this. --disable-nls Disable the support for national languages. LINGUAS="ll ll ll" A list of two-letter language codes. This will select which of the available translations of messages and documentation will be installed. ll must be in lower case. dav_user= A system user without shell. mount.davfs will run with this id when invoked by root. Default dav_user is "davfs2". dav_group= A system group. mount.davfs will be member of this group. Normal users must be member of this group in order to mount. Default dav_group is "davfs2". ./configure --help will show all available options. - Run make. $ make This will compile the program. - Gain root permissions and run make install. # make install This will copy all the files in the appropriate directory. Note: 'mount.davfs' will be setuid root! - Create the system user 'davfs2' and group 'davfs2' if they not yet exist. The system user should not have a shell. Proposed home directory is '/var/cache/davfs2'. - Get rid of the root permissions. 3 UNINSTALL =========== To uninstall davfs2 the sources have to be configured just the same way they were configured for installation. From within the top level source directory run with root permissions # make uninstall This will remove all the installed files. Note: The directories will not be removed. Files and directories created by mount.davfs at run-time will *not* be removed too. This are: pid-files (in /var/run/mount.davfs), cache files and directories (in /var/cache/davfs2) and all the files in the users home directories in .davfs2. This files have to be removed manually. davfs2-1.5.5/config/config.guess0000755000175000017500000012564413422371026013431 00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2016 Free Software Foundation, Inc. timestamp='2016-10-02' # 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 # # 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-2016 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=`(uname -p 2>/dev/null || \ /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 ;; earmv*) arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'` endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'` machine=${arch}${endian}-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently (or will in the future) and ABI. case "${UNAME_MACHINE_ARCH}" in earm*) os=netbsdelf ;; arm*|i386|m68k|ns32k|sh3*|sparc|vax) 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 # Determine ABI tags. case "${UNAME_MACHINE_ARCH}" in earm*) expr='s/^earmv[0-9]/-eabi/;s/eb$//' abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"` ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}${abi}" 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 ;; *:LibertyBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${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 ;; *:Sortix:*:*) echo ${UNAME_MACHINE}-unknown-sortix 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 "[:upper:]" "[:lower:]"``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 ;; e2k:Linux:*:*) echo ${UNAME_MACHINE}-unknown-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 ;; k1om: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; } ;; mips64el:Linux:*:*) echo ${UNAME_MACHINE}-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 ;; riscv32:Linux:*:* | riscv64:Linux:*:*) echo ${UNAME_MACHINE}-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}-pc-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 configure 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 ;; SX-ACE:SUPER-UX:*:*) echo sxace-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 ;; amd64:Isilon\ OneFS:*:*) echo x86_64-unknown-onefs exit ;; esac cat >&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: davfs2-1.5.5/Makefile.in0000644000175000017500000006761413422373151011714 00000000000000# 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)/config/davfs2.m4 \ $(top_srcdir)/config/gettext.m4 $(top_srcdir)/config/iconv.m4 \ $(top_srcdir)/config/intlmacosx.m4 \ $(top_srcdir)/config/lib-ld.m4 \ $(top_srcdir)/config/lib-link.m4 \ $(top_srcdir)/config/lib-prefix.m4 \ $(top_srcdir)/config/neon.m4 $(top_srcdir)/config/nls.m4 \ $(top_srcdir)/config/po.m4 $(top_srcdir)/config/progtest.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ $(am__configure_deps) $(am__DIST_COMMON) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs CONFIG_HEADER = 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 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)$(docdir)" DATA = $(doc_DATA) 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)/config/compile $(top_srcdir)/config/config.guess \ $(top_srcdir)/config/config.rpath \ $(top_srcdir)/config/config.sub \ $(top_srcdir)/config/install-sh $(top_srcdir)/config/missing \ $(top_srcdir)/config/mkinstalldirs ABOUT-NLS AUTHORS COPYING \ ChangeLog INSTALL NEWS README THANKS TODO config/compile \ config/config.guess config/config.rpath config/config.sub \ config/depcomp config/install-sh config/missing \ config/mkinstalldirs DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best DIST_TARGETS = dist-gzip distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LINGUAS = @LINGUAS@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NEON_CONFIG = @NEON_CONFIG@ NEON_LIBS = @NEON_LIBS@ NE_FLAG_IPV6 = @NE_FLAG_IPV6@ NE_FLAG_LFS = @NE_FLAG_LFS@ NE_FLAG_SOCKS = @NE_FLAG_SOCKS@ NE_FLAG_SSL = @NE_FLAG_SSL@ NE_FLAG_TS_SSL = @NE_FLAG_TS_SSL@ NE_FLAG_ZLIB = @NE_FLAG_ZLIB@ OBJEXT = @OBJEXT@ 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@ POSUB = @POSUB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ 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@ dav_group = @dav_group@ dav_linguas = @dav_linguas@ dav_localstatedir = @dav_localstatedir@ dav_syscachedir = @dav_syscachedir@ dav_user = @dav_user@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ ssbindir = @ssbindir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = bootstrap BUGS FAQ README.translators \ config/COPYING.davfs2 config/INSTALL.davfs2 SUBDIRS = po etc man src ACLOCAL_AMFLAGS = -I config doc_DATA = AUTHORS BUGS ChangeLog COPYING FAQ INSTALL NEWS README \ README.translators THANKS TODO 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) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu 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 install-docDATA: $(doc_DATA) @$(NORMAL_INSTALL) @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(docdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(docdir)" || 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)$(docdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(docdir)" || exit $$?; \ done uninstall-docDATA: @$(NORMAL_UNINSTALL) @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(docdir)'; $(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) config.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(docdir)"; 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) 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 mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-docDATA 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 pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-docDATA .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 \ 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-tags distcleancheck distdir distuninstallcheck dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-docDATA 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 pdf pdf-am ps ps-am tags \ tags-am uninstall uninstall-am uninstall-docDATA .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: davfs2-1.5.5/README.translators0000644000175000017500000000652712460776604013111 000000000000002008-07-12 ---------- #Copyright (C) 2006, 2007, 2008 Werner Baumann #Copying and distribution of this file, with or without modification, are #permitted in any medium without royalty. davfs2 uses the GNU gettext utilities to support localized messages. Information about GNU gettext may be found at http://www.gnu.org/software/gettext/manual/ For the man pages (and probably other documentation in future), it makes use of the po4a tools in order to keep translations of documentation maintainable. po4a (http://po4a.alioth.debian.org/) applies the gettext tools to arbitrary documentation. Messages -------- All messages that need translation are in the file po/davfs2.pot. The translated messages will be in po/ll.po, where ll is the two-letter country code. If you start a translation into a language not yet supported, you may just take a copy of po/davfs2.pot for your ll.po file. Man Pages --------- The .pot files of the man pages are in the man/ subdirectory together with a configuration file for po4a to automatically build all the translated man pages from the .po files. There is a subdirectory for each language, named after the country code, that holds the .po files and the addendum files. As usual the initial .po file can be a copy of the .pot file. Replacement Text in Man Pages ----------------------------- davfs2 uses all uppercase strings enclosed in @-characters for strings that may change with every version or at compile time (like @PACKAGE_STRING@ or @SYS_CACHE_DIR@). They will be replaced at compile time by the correct value. Please use them in your translation unaltered. To allow correct integration into the translated text, here are the most probable values: @PACKAGE@ davfs2 @PACKAGE_STRING@ davfs2 1.2.0 @PROGRAM_NAME@ mount.davfs @CONFIGFILE@ davfs2.conf @SECRETSFILE@ secrets @CERTS_DIR@ certs @CLICERTS_DIR@ certs/private @SYS_CONF_DIR@ /usr/local/etc/davfs2 or /etc/davfs2 @SYS_RUN@ /var/run/mount.davfs @SYS_CACHE_DIR@ /var/cache/davfs2 @USER@ davfs2 @GROUP@ davfs2 Additional Text --------------- At least you want to add a paragraph about the translators into the localized man page. But maybe you feel the need for some more additions that are not present in the English man page. Unfortunately, these additions cannot be inserted directly into the .po file, as the document structure must not differ from the original. So these additions have to go into separate files, called addendum. You can use the template man/template.translator to add a paragraph about the translators. If you need more than this, you have to create additional addendum files. Please see the po4a documentation for the syntax of the PO4A-HEADER to mark the position where to add the text. Please use the same character encoding as in the .po file. Character Encoding ------------------ ** This issue seems to be fixed today and man pages are allowed to be utf-8. But I am not really sure. ** At the moment, the "man" tool, or at least one of its helper programs, do not seem capable of handling UTF-8 encoding. Luckily, gettext can convert the encoding when the translated man page is created. So you may use UTF-8 in the .po file or any other encoding. But please tell me which character encoding should be used when the man page is built. davfs2-1.5.5/NEWS0000644000175000017500000003534012460776604010350 00000000000000# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2012, 2013, 2014 Werner Baumann # Copying and distribution of this file, with or without modification, are # permitted in any medium without royalty. What is new in davfs2 1.5.2 =========================== Fixes a problem when unmounting, caused by an backward incompatible change of util-linux. What is new in davfs2 1.5.1 =========================== Some bug fixes and minor improvements (please seee ChangeLog). What is new in davfs2 1.5.0 =========================== Bug fixes and Improvements: - Fixed security risk caused by insecure use of function system. (bug #40034) - umount will now properly work with system where mtab is a symbolic link to /proc/mounts. for this davfs2 uses the new /var/mount/utab file. Fixes sr #108528. - Symbolic links in fstab will no longer break davfs2 (sr #108377). - Fixed bugs with setting access bits and evaluating access permissions (bug #33644 and bug #33644). - Support Neon version 0.30 (sr #108392). - Improved configuration for certificate validation with new options trust_ca_cert and trust_server_cert. - New option minimize_mem to reduce memory consumption by davfs2 (sr #108158). - Allow mount option comment= (bug #41354). - New mount option grpid (sr #108432). - Improved cookie support allows for more than one cookie (sr #107907, bug #41438). - Honor configure parameter --manfile (sr #108173). - Fixed DESTDIR bug (sr #108104). Experimental new features: - Support temporary redirects for downloading of files (bug #35428). - Support compression for downloading (bug #41355) (not necessarily RFC- compliant, but what is used by browsers). Removed features: - Support for extended attributes was more then rudimentary and is now removed for the sake of performance and clarity. What is new in davfs2 1.4.7 =========================== Mostly bug-fixes (see ChangeLog). The check for somebody elses home directory is gone. So you should be able tomount in /media/foo even if / is the home of some daemon. What is new in davfs2 1.4.6 =========================== Nothing. Just two bug fixes. What is new in davfs2 1.4.5 =========================== If option 'ask_auth 0' is set, davfs2 will no langer prompt the user for suspicious server certificates but terminate silently. What is new in davfs2 1.4.2 =========================== Mainly bug fixes (see ChangeLog). Support for Neon 0.29. Support for NTLM authentication (with Neon 0.29 only). Experimental support for commandline option "username" for use with pam_mount. I am not sure wether this is really usefull because I think that for typical use cases of pam_mount davfs2 is not well suited. Please report your experience with this option. If option askauth ist set to 0 davfs2 will no longer ask the user if a servercert is not trusted but silently not accept the certificate. What is new in davfs2 1.4.1 =========================== For this version I got many bug fixes, informations and suggestions for improvement from Dirk Arend of the German company AVM. Thanks a lot. davfs2 experimentally uses the non-standard method USERINFO to get information about available and used web space from the server. Some of the big German providers use it. davfs2 will now recognize when the server does not provide this information and avoid useless further attempts. When attempts to upload changed files fail because of problems with the network connection, new upload attempts will be done with increasing time intervals to not waist bandwith with to many useless attempts. When the davfs2 file system is unmounted while the connection is down changed files will stay in the cache and will be uploaded when the file system is mounted the next time. For minor changes and bug fixes please see ChangeLog. What is new in davfs2 1.4.0 =========================== With this release of davfs2 the default configuration has changed significantly to better match user experience and the behaviour of current WebDAV servers. This might cause your current configuration to no longer work with your server. Please carefully check for changes that might affect your davfs2 configuration. if_match_bug ------------ The default is now 0 (was 1) assuming your server does not have this bug. To the best of my knowledge this bug was only found in Apache with mod_dav and was fixed with release 2.2.8. But there are many older versions of Apache/mod_dav out there and you might have to manually insert this option in your davfs2.conf. use_expect100 ------------- The default is now 0 (was 1). This option rarely is of any use but frequently causes trouble with servers that don't support it (it is an optional protocol element). You only should set this option if you really need it and know it is working with your server. use_displayname --------------- This option has been removed. davfs2 no longer supports "displayname". This WebDAV property has been undefined nonsense from the beginning and the update of the WebDAV protocol only made it worse. The protocol explicitly states that this "name"(?) needs *not* to be unique. It is therefore impossible to use it as a file name in davfs2. delay_upload ------------ When this option is set to 0 seconds on closing a changed file it will be *synchronously* saved to the server and the upcall from the kernel will block until the upload is finished. But in case the upload fails temporarily the upcall from the kernel will return and davfs2 will try uploading later. This may make davfs2 very slow due too many unsuccessful attempts to upload. Only use "delay_upload 0" when your really need it and you have a reliable connection to the server. Command line (and fstab) options askauth, locks and useproxy ------------------------------------------------------------ These have been deprecated for many years and now have been removed. There are corresponding options in davfs2.conf. Command line (and fstab) option users ------------------------------------- davfs2 now supports the option users which allows any user to unmount a davfs2 file system. This is intended as a work around for systems without the mtab file. Known bugs (except those listed in BUGS) have been fixed. Last but not least the davfs2 project moved to Savannah: http://savannah.nongnu.org/projects/davfs2 What is new in davfs2 1.3.X =========================== - The format of entries in the secrets file is changed. It now uses the mount point as key, instead of the URL. The old format is still recognized by davfs2. - When mount.davfs gets signal SIGTERM, it will not try to upload dirty files to the server, but mark the cached files as dirty to avoid too slow reaction (and get SIGKILL). The files will be uploaded when mount.davfs runs the next time. - Added support for Neon 0.27 and 0.28, removed support for Neon 0.24. - Scanning the cache for changed files and locks improved to require less CPU-time. - Support for dav-quota. davfs2 will get available and used storage space from the server if the server supports RFC 4331. - Use conditional PUT and LOCK requests if possible. This is still turned off by default, as the most widely used server does not support it. But you should set "if_match_bug 0" for Apache 2.2.8 and newer, as well as for many other servers. This will save many unnecessary requests. Conditional LOCKs will not work with neon 0.25. You should update to neon 0.26, 0.27 or 0.28. - Reads environment variables https_proxy, http_proxy and all_proxy, if no proxy is configured in the config files. Reads environment variable no_proxy for hosts to access directly, not via proxy. - MIME-type is accessible as extended attribute (read-only). - Option to add custom headers. - Added very simple Cookie-support. Will not work with neon 0.25. You should update to neon 0.26, 0.27 or 0.28. - New options: precheck, ignore_dav_header, if_match_bug, delay_upload, drop_weak_etags and connect_timeout (1.3.3 only). See 'man davfs2.conf' for details. - Removed option idle_time. - WebDAV-property displayname is no longer used by default (it is defined to be *not* a name and mostly useless). - Fixed all known bugs (except one; see BUGS). What is new in davfs2 1.2.2 =========================== Debugging is not longer a compile time option but a run time option. The amount of debugging output is controlled by the davfs2.conf file. What is new in davfs2 1.2.1 =========================== This is a bug fix release. No new features. What is new in davfs2 1.2.0 =========================== - davfs2 now supports localized versions of messages and man pages using GNU gettext and the po4a tools. Currently there is a German translation, but other languages will follow. You are invited to contribute. - davfs2 needs a system user 'davfs2' and a system group 'davfs2'. Normal users must be member of group 'davfs2' in order to mount (no longer group 'users'). You may change the system user and group at configuration time. You will have to create the system user and group manually. The system user should not have a shell. Proposed home directory is '/var/cache/davfs2', but this does not matter. - davfs2 supports client certificates. - davfs2 can use server certificates, stored on disk, that can not be verified the normal way, like self-made certificates. - davfs can translate the encoding of file names. - There are two new man pages: umount.davfs and davfs2.conf. - File system is mounted, even when the first request times out. When access to the file system is tried, an error is returned until the connection comes up. (This feature had been removed in the last release by mistake.) What is new in davfs2 1.1.4 =========================== Please be sure to read section "0 UPDATING FROM PREVIOUS VERSION" of the README file to avoid loss of data. This version fixes bugs that have become known since the last release. - The kernel interface module for fuse kernel version 7 crashed. Now the fuse interface will work with kernel 2.6.14 and higher. - The handling of file times has been adjusted. The modification time will no longer change unexpectedly, thus confusing some applications (bug 1596104). - davfs2 will check server capabilities at start up to decide whether locks may be used. As a side effect this also fixes interoperation problems with the gmx-server (bug 1594808). - The default time to refresh directory information is reduced to 60 s. Every time a directory is opened, the directory content is newly retrieved from the server. Remote changes will get visible earlier this way, but performance may decrease. Please send a bug report if the performance decrease is unacceptable. What is new in davfs2 1.1.3 =========================== Please be sure to read section "0 UPDATING FROM PREVIOUS VERSION" of the README file to avoid loss of data. - There is a umount helper umount.davfs. It will be called by umount and make sure that umount will not return before mount.davfs has saved back all data that changed in cache. So umount with davfs2 now shows the same behaviour as with local file systems. - The new configuration option 'gui_optimize' will speed up the display of large directories on graphical user interfaces (once the files are cached). - The configuration options 'expire' and 'get_wait' have been renamed into 'dir_refresh' and 'file_refresh'. - The use of the HTTP-Header 'Expect: 100-Continue' is now a configuration option, as some servers don't understand it. - Known bugs are fixed and some changes are done to improve performance (see ChangeLog). What is new in davfs2 1.1.0 =========================== Please be sure to read section "0 UPDATING FROM PREVIOUS VERSION" of the README file to avoid loss of data. - davfs2 can now use the fuse kernel file system besides coda. - Neon library version 0.24, 0.25 and 0.26 are now supported. Version 0.26 allows to use gnutls instead of openssl. - Support for large files (> 2 GiByte) added. - davfs2 now uses time-outs on locks to reduce problems with stale locks. But not all servers will honour this. - No more URL-encoding of server URLs with spaces (see man-page). - davfs2 allows to set configuration options differently for different mount points. - The name of the backup directory is changed to the well known "lost+found". But you may configure something else. The following bugs should have gone: - [ 1519718 ] davfs2 fails to properly decode complex escape sequences - [ 1522903 ] chokes on directory names containing ' _ % characters - [ 1539444 ] mounting of webdav drive fails - [ 1539445 ] unable to access files in mounted webdav drive - [ 1558525 ] davfs2-1.0.2_p20060820 mount fails These bugs were related to incorrect alignment of data structures on 64 bit systems, incorrect treatment of the WebDAV property "displayname" and incorrect double URL-decoding of URLs. Problems with notifying the kernel of changes on the server are solved too. What is new in davfs2 1.0.0 =========================== davfs2 1.0.0 is an almost complete rewrite of davfs2. it introduces the following features into davfs2: - The same binary now supports different versions of the coda kernel module (CODA_KERNEL_VERSION 2 and 3). The version is evaluated at run time. - Extended caching: davfs2 now caches information about all visited files and directories at runtime in memory. This will speed up operation and it is necessary to enable operations like chmod or chown, as the WebDAV-servers usually do not know about this. - Persistent cache: davfs2 will save all downloaded files in a cache directory. This cache will persist when the file system is unmounted and will be reused, when mounted again. This should save a lot of network traffic, as files that did not change on the server will not be downloaded again. Especially when working with graphical user interfaces this will make a big difference, since some of them will open almost every file in a directory, though they just need a directory listing. - Unix Permissions: davfs2 now implements standard Unix permissions. Options uid, gid, file_mode and dir_mode are enabled again. This allows the mounting user to share the file system with other local users. Note: The WebDAV server still does not know about this. On the server side there is still only one user (the user who's credentials are used). Except the execute bit, mode, uid and gid are maintained locally only. But they are saved in the persistent cache. - Configuration: There are a lot of new configuration options in /etc/davfs2/davfs2.conf and ~/.davfs2/davfs2.conf. But usually the defaults will do. As the code of davfs2 1.0.0 is quite different from davfs 0.2.x, bug fixes that were done between davfs 0.2.4 and 0.2.8 could not be ported automatically to davfs2 1.0.0. So some of the old bugs may reappear together with the new ones I introduced. davfs2-1.5.5/po/0000755000175000017500000000000013422373177010337 500000000000000davfs2-1.5.5/po/Makevars0000644000175000017500000000353312460776605011763 00000000000000# Makefile variables for PO directory in any package using GNU gettext. # Usually the message domain is the same as the package name. DOMAIN = $(PACKAGE) # These two variables depend on the location of this directory. subdir = po top_builddir = .. # These options get passed to xgettext. XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ # This is the copyright holder that gets inserted into the header of the # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding # package. (Note that the msgstr strings, extracted from the package's # sources, belong to the copyright holder of the package.) Translators are # expected to transfer the copyright for their translations to this person # or entity, or to disclaim their copyright. The empty string stands for # the public domain; in this case the translators are expected to disclaim # their copyright. COPYRIGHT_HOLDER = Werner Baumann # This is the email address or URL to which the translators shall report # bugs in the untranslated strings: # - Strings which are not entire sentences, see the maintainer guidelines # in the GNU gettext documentation, section 'Preparing Strings'. # - Strings which use unclear terms or require additional context to be # understood. # - Strings which make invalid assumptions about notation of date, time or # money. # - Pluralisation problems. # - Incorrect English spelling. # - Incorrect formatting. # It can be your email address, or a mailing list address where translators # can write to without being subscribed, or the URL of a web page through # which the translators can contact you. MSGID_BUGS_ADDRESS = http://savannah.nongnu.org/support/?func=additem&group=davfs2 # This is the list of locale categories, beyond LC_MESSAGES, for which the # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = davfs2-1.5.5/po/quot.sed0000644000175000017500000000023112460776605011744 00000000000000s/"\([^"]*\)"/“\1â€/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“â€/""/g davfs2-1.5.5/po/en@quot.header0000644000175000017500000000226312460776605013053 00000000000000# All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # davfs2-1.5.5/po/davfs2.pot0000644000175000017500000004113713422373177012176 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Werner Baumann # This file is distributed under the same license as the davfs2 package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: davfs2 1.5.5\n" "Report-Msgid-Bugs-To: http://savannah.nongnu.org/support/?" "func=additem&group=davfs2\n" "POT-Creation-Date: 2019-01-24 18:31+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: src/cache.c:657 msgid "" "connection timed out two times;\n" "trying one last time" msgstr "" #: src/cache.c:662 #, c-format msgid "Last try succeeded.\n" msgstr "" #: src/cache.c:665 msgid "" "server temporarily unreachable;\n" "mounting anyway" msgstr "" #: src/cache.c:668 #, c-format msgid "" "Mounting failed.\n" "%s" msgstr "" #: src/cache.c:708 #, c-format msgid "can't replace %s with %s" msgstr "" #: src/cache.c:712 #, c-format msgid "error writing new index file %s" msgstr "" #: src/cache.c:716 #, c-format msgid "can't create new index file for %s" msgstr "" #: src/cache.c:959 #, c-format msgid "" "File %s exists on the server but should not. Maybe it is an error in the " "server's LOCK implementation. You may try option 'use_locks 0' in davfs2." "conf." msgstr "" #: src/cache.c:2570 src/cache.c:2604 #, c-format msgid "can't create cache file %s" msgstr "" #: src/cache.c:2619 #, c-format msgid "error writing directory %s" msgstr "" #: src/cache.c:2787 src/mount_davfs.c:610 src/mount_davfs.c:612 #: src/mount_davfs.c:786 src/mount_davfs.c:788 src/mount_davfs.c:805 #: src/mount_davfs.c:807 src/mount_davfs.c:1754 src/mount_davfs.c:1756 msgid "can't read user data base" msgstr "" #: src/cache.c:2798 #, c-format msgid "can't open cache directory %s" msgstr "" #: src/cache.c:2813 #, c-format msgid "can't create cache directory %s" msgstr "" #: src/cache.c:2820 #, c-format msgid "can't access cache directory %s" msgstr "" #: src/cache.c:2823 #, c-format msgid "wrong owner of cache directory %s" msgstr "" #: src/cache.c:2827 #, c-format msgid "wrong permissions set for cache directory %s" msgstr "" #: src/cache.c:2857 msgid "found orphaned file in cache:" msgstr "" #: src/cache.c:2930 #, c-format msgid "error parsing %s" msgstr "" #: src/cache.c:2931 #, c-format msgid " at line %i" msgstr "" #: src/cache.c:2976 #, c-format msgid "open files exceed max cache size by %llu MiBytes" msgstr "" #: src/dav_coda.c:167 src/dav_fuse.c:164 msgid "can't allocate message buffer" msgstr "" #: src/dav_fuse.c:185 src/mount_davfs.c:375 #, c-format msgid "unmounting %s" msgstr "" #: src/kernel_interface.c:103 src/kernel_interface.c:151 src/mount_davfs.c:235 #: src/mount_davfs.c:319 src/mount_davfs.c:429 src/mount_davfs.c:439 #: src/mount_davfs.c:443 src/mount_davfs.c:483 src/mount_davfs.c:492 #: src/mount_davfs.c:498 src/mount_davfs.c:524 src/mount_davfs.c:576 #: src/mount_davfs.c:604 src/mount_davfs.c:849 src/mount_davfs.c:852 #: src/mount_davfs.c:1118 src/mount_davfs.c:1123 src/mount_davfs.c:1167 #: src/mount_davfs.c:1170 src/mount_davfs.c:1343 src/mount_davfs.c:1380 #: src/webdav.c:441 src/webdav.c:444 msgid "can't change effective user id" msgstr "" #: src/kernel_interface.c:113 msgid "trying fuse kernel file system" msgstr "" #: src/kernel_interface.c:121 msgid "fuse device opened successfully" msgstr "" #: src/kernel_interface.c:133 msgid "trying coda kernel file system" msgstr "" #: src/kernel_interface.c:139 msgid "coda device opened successfully" msgstr "" #: src/kernel_interface.c:147 #, c-format msgid "unknown kernel file system %s" msgstr "" #: src/kernel_interface.c:174 msgid "no free coda device to mount" msgstr "" #: src/kernel_interface.c:183 #, c-format msgid "CODA_KERNEL_VERSION %u not supported" msgstr "" #: src/kernel_interface.c:210 msgid "loading kernel module fuse" msgstr "" #: src/kernel_interface.c:224 msgid "loading kernel module fuse failed" msgstr "" #: src/kernel_interface.c:230 msgid "waiting for /dev/fuse to be created" msgstr "" #: src/kernel_interface.c:238 msgid "can't open fuse device" msgstr "" #: src/kernel_interface.c:264 msgid "can't mount using fuse kernel file system" msgstr "" #: src/mount_davfs.c:233 msgid "program is not setuid root" msgstr "" #: src/mount_davfs.c:299 msgid "can't start daemon process" msgstr "" #: src/mount_davfs.c:323 msgid "can't release root privileges" msgstr "" #: src/mount_davfs.c:345 msgid "failed to release tty properly" msgstr "" #: src/mount_davfs.c:357 #, c-format msgid "can't write pid file %s" msgstr "" #: src/mount_davfs.c:377 msgid "unmounting failed" msgstr "" #: src/mount_davfs.c:426 src/mount_davfs.c:516 src/mount_davfs.c:595 #: src/mount_davfs.c:810 #, c-format msgid "group %s does not exist" msgstr "" #: src/mount_davfs.c:431 msgid "can't change group id" msgstr "" #: src/mount_davfs.c:436 #, c-format msgid "user %s does not exist" msgstr "" #: src/mount_davfs.c:465 #, c-format msgid "can't access file %s" msgstr "" #: src/mount_davfs.c:489 src/mount_davfs.c:502 src/mount_davfs.c:580 #: src/mount_davfs.c:616 #, c-format msgid "can't create directory %s" msgstr "" #: src/mount_davfs.c:506 src/mount_davfs.c:584 src/mount_davfs.c:620 #: src/mount_davfs.c:625 src/mount_davfs.c:634 #, c-format msgid "can't access directory %s" msgstr "" #: src/mount_davfs.c:512 src/mount_davfs.c:590 #, c-format msgid "can't change mode of directory %s" msgstr "" #: src/mount_davfs.c:521 src/mount_davfs.c:600 #, c-format msgid "can't change group of directory %s" msgstr "" #: src/mount_davfs.c:629 src/mount_davfs.c:791 src/mount_davfs.c:819 #: src/mount_davfs.c:821 msgid "can't read group data base" msgstr "" #: src/mount_davfs.c:652 src/mount_davfs.c:700 src/mount_davfs.c:1433 #: src/mount_davfs.c:1437 #, c-format msgid "can't open file %s" msgstr "" #: src/mount_davfs.c:657 #, c-format msgid "%s is already mounted on %s" msgstr "" #: src/mount_davfs.c:680 #, c-format msgid "" "found PID file %s.\n" "Either %s is used by another process,\n" "or another mount process ended irregular" msgstr "" #: src/mount_davfs.c:718 #, c-format msgid "no entry for %s found in %s" msgstr "" #: src/mount_davfs.c:722 #, c-format msgid "different URL in %s" msgstr "" #: src/mount_davfs.c:726 #, c-format msgid "different file system type in %s" msgstr "" #: src/mount_davfs.c:737 #, c-format msgid "different config file in %s" msgstr "" #: src/mount_davfs.c:743 #, c-format msgid "different username in %s" msgstr "" #: src/mount_davfs.c:747 #, c-format msgid "neither option `user' nor option `users' set in %s" msgstr "" #: src/mount_davfs.c:750 #, c-format msgid "different mount options in %s" msgstr "" #: src/mount_davfs.c:753 #, c-format msgid "different uid in %s" msgstr "" #: src/mount_davfs.c:755 #, c-format msgid "different gid in %s" msgstr "" #: src/mount_davfs.c:757 #, c-format msgid "different dir_mode in %s" msgstr "" #: src/mount_davfs.c:759 #, c-format msgid "different file_mode in %s" msgstr "" #: src/mount_davfs.c:779 msgid "you can't set file owner different from your uid" msgstr "" #: src/mount_davfs.c:797 msgid "you must be member of the group of the file system" msgstr "" #: src/mount_davfs.c:830 #, c-format msgid "user %s must be member of group %s" msgstr "" #: src/mount_davfs.c:855 #, c-format msgid "can't mount %s on %s" msgstr "" #: src/mount_davfs.c:857 #, c-format msgid "kernel does not know file system %s" msgstr "" #: src/mount_davfs.c:859 msgid "mount point is busy" msgstr "" #: src/mount_davfs.c:934 src/umount_davfs.c:88 #, c-format msgid "" "This is free software; see the source for copying conditions. There is NO\n" "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" msgstr "" #: src/mount_davfs.c:950 src/umount_davfs.c:114 msgid "unknown error parsing arguments" msgstr "" #: src/mount_davfs.c:959 src/umount_davfs.c:120 msgid "missing argument" msgstr "" #: src/mount_davfs.c:972 #, c-format msgid "can't evaluate path of mount point %s" msgstr "" #: src/mount_davfs.c:975 src/umount_davfs.c:122 msgid "too many arguments" msgstr "" #: src/mount_davfs.c:984 #, c-format msgid "can't get home directory for uid %i" msgstr "" #: src/mount_davfs.c:986 msgid "A relative mount point must lie within your home directory" msgstr "" #: src/mount_davfs.c:991 msgid "no WebDAV-server specified" msgstr "" #: src/mount_davfs.c:994 msgid "invalid URL" msgstr "" #: src/mount_davfs.c:1013 msgid "can't determine home directory" msgstr "" #: src/mount_davfs.c:1120 src/webdav.c:447 #, c-format msgid "can't read client certificate %s" msgstr "" #: src/mount_davfs.c:1126 #, c-format msgid "client certificate file %s has wrong owner" msgstr "" #: src/mount_davfs.c:1132 #, c-format msgid "client certificate file %s has wrong permissions" msgstr "" #: src/mount_davfs.c:1184 src/mount_davfs.c:1197 src/mount_davfs.c:1199 #: src/mount_davfs.c:1217 src/mount_davfs.c:1219 src/webdav.c:454 msgid "Password: " msgstr "" #: src/mount_davfs.c:1188 #, c-format msgid "" "Please enter the username to authenticate with proxy\n" "%s or hit enter for none.\n" msgstr "" #: src/mount_davfs.c:1190 src/mount_davfs.c:1210 msgid "Username:" msgstr "" #: src/mount_davfs.c:1194 #, c-format msgid "" "Please enter the password to authenticate user %s with proxy\n" "%s or hit enter for none.\n" msgstr "" #: src/mount_davfs.c:1208 #, c-format msgid "" "Please enter the username to authenticate with server\n" "%s or hit enter for none.\n" msgstr "" #: src/mount_davfs.c:1214 #, c-format msgid "" "Please enter the password to authenticate user %s with server\n" "%s or hit enter for none.\n" msgstr "" #: src/mount_davfs.c:1269 #, c-format msgid "pid %i, got signal %i" msgstr "" #: src/mount_davfs.c:1292 msgid "" "Warning: can't read user data base. Mounting anyway, but there is no entry " "in mtab." msgstr "" #: src/mount_davfs.c:1348 #, c-format msgid "can't create file %s" msgstr "" #: src/mount_davfs.c:1352 #, c-format msgid "can't lock file %s" msgstr "" #: src/mount_davfs.c:1374 #, c-format msgid "" "Warning: can't write entry into %s, but will mount the file system anyway" msgstr "" #: src/mount_davfs.c:1412 #, c-format msgid "option %s has invalid argument;it must be a decimal number" msgstr "" #: src/mount_davfs.c:1415 #, c-format msgid "option %s has invalid argument;it must be an octal number" msgstr "" #: src/mount_davfs.c:1418 #, c-format msgid "option %s has invalid argument;it must be a number" msgstr "" #: src/mount_davfs.c:1444 #, c-format msgid "error writing to file %s" msgstr "" #: src/mount_davfs.c:1648 #, c-format msgid "option %s requires argument" msgstr "" #: src/mount_davfs.c:1736 #, c-format msgid "Unknown option %s.\n" msgstr "" #: src/mount_davfs.c:2168 src/mount_davfs.c:2402 src/mount_davfs.c:2414 #, c-format msgid "opening %s failed" msgstr "" #: src/mount_davfs.c:2189 src/mount_davfs.c:2234 src/mount_davfs.c:2331 #: src/mount_davfs.c:2430 src/mount_davfs.c:2497 msgid "malformed line" msgstr "" #: src/mount_davfs.c:2312 src/mount_davfs.c:2325 msgid "unknown option" msgstr "" #: src/mount_davfs.c:2406 #, c-format msgid "file %s has wrong owner" msgstr "" #: src/mount_davfs.c:2409 #, c-format msgid "file %s has wrong permissions" msgstr "" #: src/mount_davfs.c:2632 #, c-format msgid "" "Usage:\n" " %s -V,--version : print version string\n" " %s -h,--help : print this message\n" "\n" msgstr "" #: src/mount_davfs.c:2636 #, c-format msgid "" "To mount a WebDAV-resource don't call %s directly, but use\n" "`mount' instead.\n" msgstr "" #: src/mount_davfs.c:2638 #, c-format msgid "" " mount : or\n" " mount : mount the WebDAV-resource as specified in\n" " /etc/fstab.\n" msgstr "" #: src/mount_davfs.c:2641 #, c-format msgid "" " mount -t davfs [-o options]\n" " : mount the WebDAV-resource \n" " on mountpoint . Only root\n" " is allowed to do this. options is a\n" " comma separated list of options.\n" "\n" msgstr "" #: src/mount_davfs.c:2646 #, c-format msgid "" "Recognised options:\n" " conf= : absolute path of user configuration file\n" " uid= : owner of the filesystem (username or numeric id)\n" " gid= : group of the filesystem (group name or numeric id)\n" " file_mode= : default file mode (octal)\n" " dir_mode= : default directory mode (octal)\n" msgstr "" #: src/mount_davfs.c:2652 #, c-format msgid "" " ro : mount read-only\n" " rw : mount read-write\n" " [no]exec : (don't) allow execution of binaries\n" " [no]suid : (don't) allow suid and sgid bits to take effect\n" " [no]grpid : new files (don't) get the group id of the directory\n" " in which they are created.\n" " [no]_netdev : (no) network connection needed\n" msgstr "" #: src/umount_davfs.c:94 #, c-format msgid "" "Usage:\n" " u%s -V,--version : print version string\n" " u%s -h,--help : print this message\n" "\n" msgstr "" #: src/umount_davfs.c:98 #, c-format msgid "" "To umount a WebDAV-resource don't call u%s directly, but use\n" "`umount' instead.\n" msgstr "" #: src/umount_davfs.c:101 #, c-format msgid "" " umount : umount the WebDAV-resource as specified in\n" " /etc/fstab.\n" msgstr "" #: src/umount_davfs.c:132 #, c-format msgid "" "\n" " can't evaluate PID file name;\n" " trying to unmount anyway;\n" " please wait for %s to terminate" msgstr "" #: src/umount_davfs.c:155 #, c-format msgid "" "\n" " can't read PID from file %s;\n" " trying to unmount anyway;\n" " please wait for %s to terminate" msgstr "" #: src/umount_davfs.c:167 #, c-format msgid "" "\n" " can't read process list;\n" " trying to unmount anyway;\n" " please wait for %s to terminate" msgstr "" #: src/umount_davfs.c:183 #, c-format msgid "" "\n" " can't find %s-process with pid %s;\n" " trying to unmount anyway.\n" " you propably have to remove %s manually" msgstr "" #: src/umount_davfs.c:194 #, c-format msgid "%s: waiting while %s (pid %s) synchronizes the cache ." msgstr "" #: src/umount_davfs.c:207 #, c-format msgid "an error occurred while waiting; please wait for %s to terminate" msgstr "" #: src/webdav.c:368 msgid "socket library initialization failed" msgstr "" #: src/webdav.c:381 msgid "can't open stream to log neon-messages" msgstr "" #: src/webdav.c:417 msgid "neon library does not support TLS/SSL" msgstr "" #: src/webdav.c:423 src/webdav.c:428 #, c-format msgid "can't read server certificate %s" msgstr "" #: src/webdav.c:452 #, c-format msgid "" "Please enter the password to decrypt client\n" "certificate %s.\n" msgstr "" #: src/webdav.c:466 #, c-format msgid "can't decrypt client certificate %s" msgstr "" #: src/webdav.c:532 src/webdav.c:535 msgid "mounting failed; the server does not support WebDAV" msgstr "" #: src/webdav.c:543 msgid "warning: the server does not support locks" msgstr "" #: src/webdav.c:1675 msgid "authentication failure:" msgstr "" #: src/webdav.c:1713 #, c-format msgid "%i can't open cache file" msgstr "" #: src/webdav.c:1721 #, c-format msgid "%i error writing to cache file" msgstr "" #: src/webdav.c:1990 src/webdav.c:2019 src/webdav.c:2056 msgid "the server certificate is not trusted" msgstr "" #: src/webdav.c:1999 src/webdav.c:2002 msgid "error processing server certificate" msgstr "" #: src/webdav.c:2013 src/webdav.c:2047 msgid "the server certificate is not yet valid" msgstr "" #: src/webdav.c:2015 src/webdav.c:2050 msgid "the server certificate has expired" msgstr "" #: src/webdav.c:2017 src/webdav.c:2053 msgid "the server certificate does not match the server name" msgstr "" #: src/webdav.c:2021 src/webdav.c:2059 msgid "unknown certificate error" msgstr "" #: src/webdav.c:2022 #, c-format msgid " issuer: %s" msgstr "" #: src/webdav.c:2024 #, c-format msgid " subject: %s" msgstr "" #: src/webdav.c:2026 #, c-format msgid " identity: %s" msgstr "" #: src/webdav.c:2028 #, c-format msgid " fingerprint: %s" msgstr "" #: src/webdav.c:2030 #, c-format msgid "" "You only should accept this certificate, if you can\n" "verify the fingerprint! The server might be faked\n" "or there might be a man-in-the-middle-attack.\n" msgstr "" #: src/webdav.c:2033 #, c-format msgid "Accept certificate for this session? [y,N] " msgstr "" #: src/webdav.c:2060 #, c-format msgid " issuer: %s" msgstr "" #: src/webdav.c:2061 #, c-format msgid " subject: %s" msgstr "" #: src/webdav.c:2062 #, c-format msgid " identity: %s" msgstr "" #: src/webdav.c:2065 msgid " accepted by user" msgstr "" davfs2-1.5.5/po/insert-header.sin0000644000175000017500000000124012460776605013525 00000000000000# Sed script that inserts the file called HEADER before the header entry. # # At each occurrence of a line starting with "msgid ", we execute the following # commands. At the first occurrence, insert the file. At the following # occurrences, do nothing. The distinction between the first and the following # occurrences is achieved by looking at the hold space. /^msgid /{ x # Test if the hold space is empty. s/m/m/ ta # Yes it was empty. First occurrence. Read the file. r HEADER # Output the file's contents by reading the next line. But don't lose the # current line while doing this. g N bb :a # The hold space was nonempty. Following occurrences. Do nothing. x :b } davfs2-1.5.5/po/remove-potcdate.sin0000644000175000017500000000066012460776605014076 00000000000000# Sed script that remove the POT-Creation-Date line in the header entry # from a POT file. # # The distinction between the first and the following occurrences of the # pattern is achieved by looking at the hold space. /^"POT-Creation-Date: .*"$/{ x # Test if the hold space is empty. s/P/P/ ta # Yes it was empty. First occurrence. Remove the line. g d bb :a # The hold space was nonempty. Following occurrences. Do nothing. x :b } davfs2-1.5.5/po/de.gmo0000644000175000017500000004560213422373177011362 00000000000000Þ•”¼Å\ p ^q kÐ ]< Yš 5ô ‡*h²k‡ š§¹ËÚ ìù 2Q6m:¤+ß$ —0ÈÝ ñWüXT<­OêP:9‹—ÅL]Oªú``o ÐSÚI.”x@ Nf† µÓò"!+Mmˆ¢"·#Úþ%#Cgz)¹×ê& (I d…Ÿ½Öñ* 04e4…ºÎê $>Rp„#®Òí & E ] a{ Ý û ! 3!#?!c!!~! !¯!À!3Ô!2"%;"a"|"˜"0µ"æ":ø"23#9f# #¼#Ò#/í#$$5B$"x$%›$'Á$é$ü$%:%T%t%’% ¡%¯%Á%"Ø%#û%*&!J&,l&0™&2Ê&|ý&‰z(Œ)‘)*D¡*šæ+n,{ð-l. Œ.š.®. Â.Í. á.//%4/(Z/!ƒ/>¥/Cä/8(0.a0º0$K1p1 1c™1dý1Pb2a³2b3Yx3žÒ4‚q5ô5v6k6kù6 e7ƒs7\÷7ÚT8N/9~9-—9)Å9!ï93:,E:%r:;˜:3Ô:+;%4;&Z; ;+¢;+Î;)ú;A$<Af<¨<È<Iè<*2=]=(}=6¦=)Ý=%>)->&W>#~>¢>)Â>%ì>=?8P?'‰?c±?#@39@(m@.–@)Å@#ï@*A#>A,bAA.¢A+ÑA-ýA"+B!NB&pB#—B»BKC'jC’C°C(ÆCïC, D7DQD+dD@DKÑD-E%KEqE&E]·EFG-F@uFE¶F#üF G2:GSmG7ÁG7ùG,1H^H,~H«H/¾H/îH.I,MI'zI¢I ´IÂIÝI0ýI&.J.UJ1„J3¶JLêJJ7K=>}ŠV‚t/ncfƒl[o†qGhDZ3QW„O%L€A ’]eH9ˆ`?_Pw 16:Ygx‰5-|v\&<ap~{U 7,‡”…jŒ*y4;‹(M#ŽSbI!RK8T" ‘) ^ '“2BCizdXNm+@.r0Fk$JuEs can't evaluate PID file name; trying to unmount anyway; please wait for %s to terminate can't find %s-process with pid %s; trying to unmount anyway. you propably have to remove %s manually can't read PID from file %s; trying to unmount anyway; please wait for %s to terminate can't read process list; trying to unmount anyway; please wait for %s to terminate mount -t davfs [-o options] : mount the WebDAV-resource on mountpoint . Only root is allowed to do this. options is a comma separated list of options. mount : or mount : mount the WebDAV-resource as specified in /etc/fstab. ro : mount read-only rw : mount read-write [no]exec : (don't) allow execution of binaries [no]suid : (don't) allow suid and sgid bits to take effect [no]grpid : new files (don't) get the group id of the directory in which they are created. [no]_netdev : (no) network connection needed umount : umount the WebDAV-resource as specified in /etc/fstab. accepted by user at line %i fingerprint: %s identity: %s identity: %s issuer: %s issuer: %s subject: %s subject: %s%i can't open cache file%i error writing to cache file%s is already mounted on %s%s: waiting while %s (pid %s) synchronizes the cache .A relative mount point must lie within your home directoryAccept certificate for this session? [y,N] CODA_KERNEL_VERSION %u not supportedFile %s exists on the server but should not. Maybe it is an error in the server's LOCK implementation. You may try option 'use_locks 0' in davfs2.conf.Last try succeeded. Mounting failed. %sPassword: Please enter the password to authenticate user %s with proxy %s or hit enter for none. Please enter the password to authenticate user %s with server %s or hit enter for none. Please enter the password to decrypt client certificate %s. Please enter the username to authenticate with proxy %s or hit enter for none. Please enter the username to authenticate with server %s or hit enter for none. Recognised options: conf= : absolute path of user configuration file uid= : owner of the filesystem (username or numeric id) gid= : group of the filesystem (group name or numeric id) file_mode= : default file mode (octal) dir_mode= : default directory mode (octal) This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. To mount a WebDAV-resource don't call %s directly, but use `mount' instead. To umount a WebDAV-resource don't call u%s directly, but use `umount' instead. Unknown option %s. Usage: %s -V,--version : print version string %s -h,--help : print this message Usage: u%s -V,--version : print version string u%s -h,--help : print this message Username:Warning: can't read user data base. Mounting anyway, but there is no entry in mtab.Warning: can't write entry into %s, but will mount the file system anywayYou only should accept this certificate, if you can verify the fingerprint! The server might be faked or there might be a man-in-the-middle-attack. an error occurred while waiting; please wait for %s to terminateauthentication failure:can't access cache directory %scan't access directory %scan't access file %scan't allocate message buffercan't change effective user idcan't change group idcan't change group of directory %scan't change mode of directory %scan't create cache directory %scan't create cache file %scan't create directory %scan't create file %scan't create new index file for %scan't decrypt client certificate %scan't determine home directorycan't evaluate path of mount point %scan't get home directory for uid %ican't lock file %scan't mount %s on %scan't mount using fuse kernel file systemcan't open cache directory %scan't open file %scan't open fuse devicecan't open stream to log neon-messagescan't read client certificate %scan't read group data basecan't read server certificate %scan't read user data basecan't release root privilegescan't replace %s with %scan't start daemon processcan't write pid file %sclient certificate file %s has wrong ownerclient certificate file %s has wrong permissionscoda device opened successfullyconnection timed out two times; trying one last timedifferent URL in %sdifferent config file in %sdifferent dir_mode in %sdifferent file system type in %sdifferent file_mode in %sdifferent gid in %sdifferent mount options in %sdifferent uid in %sdifferent username in %serror parsing %serror processing server certificateerror writing directory %serror writing new index file %serror writing to file %sfailed to release tty properlyfile %s has wrong ownerfile %s has wrong permissionsfound PID file %s. Either %s is used by another process, or another mount process ended irregularfound orphaned file in cache:fuse device opened successfullygroup %s does not existinvalid URLkernel does not know file system %sloading kernel module fuseloading kernel module fuse failedmalformed linemissing argumentmount point is busymounting failed; the server does not support WebDAVneither option `user' nor option `users' set in %sneon library does not support TLS/SSLno WebDAV-server specifiedno entry for %s found in %sno free coda device to mountopen files exceed max cache size by %llu MiBytesopening %s failedoption %s has invalid argument;it must be a decimal numberoption %s has invalid argument;it must be a numberoption %s has invalid argument;it must be an octal numberoption %s requires argumentpid %i, got signal %iprogram is not setuid rootserver temporarily unreachable; mounting anywaysocket library initialization failedthe server certificate does not match the server namethe server certificate has expiredthe server certificate is not trustedthe server certificate is not yet validtoo many argumentstrying coda kernel file systemtrying fuse kernel file systemunknown certificate errorunknown error parsing argumentsunknown kernel file system %sunknown optionunmounting %sunmounting faileduser %s does not existuser %s must be member of group %swaiting for /dev/fuse to be createdwarning: the server does not support lockswrong owner of cache directory %swrong permissions set for cache directory %syou can't set file owner different from your uidyou must be member of the group of the file systemProject-Id-Version: davfs2 1.4.6 Report-Msgid-Bugs-To: http://savannah.nongnu.org/support/?func=additem&group=davfs2 POT-Creation-Date: 2019-01-24 18:31+0100 PO-Revision-Date: 2016-05-16 12:16+0200 Last-Translator: Werner Baumann Language-Team: Language: de MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit kann den Namen der PID-Datei nicht ermitteln; versuche trotzdem das Dateisystem auszuhängen; bitte warte bis der %s-Prozess endet finde keinen %s-Prozess mit PID %s; versuche trotzdem das Dateisystem auszuhängen; %s muss wahrscheinlich von Hand gelöscht werden kann die PID nicht aus %s auslesen; versuche trotzdem das Dateisystem auszuhängen; bitte warte bis der %s-Prozess endet kann die Liste der laufenden Prozesse nicht lesen; versuche trotzdem das Dateisystem auszuhängen; bitte warte bis der %s-Prozess endet mount -t davfs [-o Optionen] : hänge die WebDAV-Resource in Verzeichnis ein. Nur root darf dies tun. Optionen ist eine durch Kommas unterteilte Liste von Optionen. mount : oder mount : hänge die WebDAV-Resource entsprechend den Angaben in /etc/fstab ein. ro : nur Lesen rw : Lesen und Schreiben [no]exec : Ausführen von Programmdateien ist (nicht) erlaubt [no]suid : gesetzte suid- und sgid-Bits sind (nicht) wirksam [no]grpid : neue Dateien erhelten die gid des übergeordneten Verzeichnisses [no]_nedev : benötigt (keine) Netzwerkverbindung umount : hänge die WebDAV-Resource entsprechend den Angaben in /etc/fstab aus. durch den Benutzer akzeptiert in Zeile %i Fingerabdruck: %s Name: %s Name: %s Aussteller: %s Aussteller des Zertifikats: %s Inhaber: %s Inhaber des Zertifikats: %s%i kann die Cache-Datei nicht öffnen%i Fehler beim Schreiben der Cache-Datei%s ist bereits auf %s eingehängt%s: warte bis %s (PID %s) die Dateien im Cache gesichert hat .Ein relativer Einhängepunkt muss in deinem Home-Verzeichnis liegenIch akzeptiere das Zertifikat für diese Sitzung [j,N]: CODA_KERNEL_VERSION %u wird nicht unterstütztDie Datei %s existiert auf dem Server, sollte es aber nicht. Vielleicht behandelt der Server LOCK-Requests fehlerhaft. Du kannst es mit der Option 'use_locks 0' in davfs2.conf versuchen.Der letzte Versuch war erfolgreich. das Einhängen schlug fehl; %sPasswort:Gib bitte das Passwort von %s für den Proxy %s an; wenn du keines angeben willst, drücke Return. Gib bitte das Passwort von %s für den Server %s an; wenn du keines angeben willst, drücke Return. Gib bitte das Passwort für die Entschlüsselung des Client-Zertifikats %s ein. Gib bitte den Benutzernamen für den Proxy %s an; wenn du keinen angeben willst, drücke Return. Gib bitte den Benutzernamen für den Server %s an; wenn du keinen angeben willst, drücke Return. Mögliche Optionen: conf= : absoluter Pfad der Benutzer-Konfigurationsdatei uid= : Besitzer des Dateisystems (Name oder numerische ID) gid= : Gruppe des Dateisystems (Name oder numerische ID) file_mode= : Standard-Rechte für Dateien (oktal) dir_mode= : Standard-Rechte für Verzeichnisse (oktal) Dies ist freie Software; die Kopierbedingungen stehen in den Quelltexten. Es gibt keine Garantie; auch nicht für VERKAUFBARKEIT oder FÜR SPEZIELLE ZWECKE. Um eine WebDAV-Resource zu einzuhängen, sollte %s nicht direkt aufgerufen werden; stattdessen sollte „mount†benutzt werden. Um eine WebDAV-Resource auszuhängen, sollte u%s nicht direkt aufgerufen werden; stattdessen sollte „umount†benutzt werden. unbekannte Option %s. Aufruf: %s -V, --version : Versionsinformation anzeigen %s -h, --help : diese Hilfe anzeigen Aufruf: u%s -V, --version : Versionsinformation anzeigen u%s -h, --help : diese Hilfe anzeigen Benutzername:Warnung: kann die Benutzerdatenbank nicht lesen. Ich hänge das Dateisystem trotzdem ein, aber der Eintrag in der mtab wird fehlen.Warnung: kann keinen Eintrag in die Datei %s schreiben, hänge das Dateisystem trotzdem ein.Du solltest das Zertifikat nur akzeptieren, wenn du überprüft hast, dass der Fingerabdruck stimmt. Der Server könnte gefälscht sein oder ein Angreifer könnte sich in die Verbindung zum Server eingeschaltet haben. während des Wartens trat ein Fehler auf; bitte warte bis der %s-Prozess endetAuthentifizierungsfehlerZugriff auf das Cachverzeichnis %s verweigertZugriff auf das Verzeichnis %s verweigertkann nicht auf Datei %s zugreifenkein Speicher für den Nachrichtenpuffer verfügbarkann die effektive Benutzer-ID nicht ändernkann die Gruppenkennung nicht ändernkann die Gruppenkennung des Verneichnisses %s nicht ändernkann die Rechte des Verzeichnisses %s nicht ändernkann das Cacheverzeichnis %s nicht erzeugenkann die Cachedatei %s nicht erzeugenkann das Verzeichnis %s nicht erzeugenkann die Datei %s nicht erzeugenkann keine neue Indexdatei für %s erzeugenkann das Zertifikat %s nicht entschlüsselnkann das Home-Verzeichnis nicht ermittelnkann den eindeutigen Pfad des Einhängepunktes %s nicht ermittelnkann das Home-Verzeichnis für die Benutzer-ID %i nicht ermittelnkann die Datei %s nicht sperrenkann %s nicht auf %s einhängenmit Kernel-Dateisystem fuse kann das Dateisystem nicht eingehängt werdenkann das Cacheverzeichnis %s nicht öffnenkann die Datei %s nicht öffnenkann die fuse-Gerätedatei nicht öffnenkann die Ausgabe für neon-Log-Meldungen nicht öffnenkann das Client-Zertifikat %s nicht lesenkann die Gruppendatenbank nicht lesenkann das Server-Zertifikat %s nicht lesenkann die Benutzerdatenbank nicht lesenich werde die root-Rechte nicht loskann %s nicht durch %s ersetzenkann den Hintergrundprozess nicht startenkann die PID-Datei %s nicht schreibendie Datei %s des Client-Zertifikats hat den falschen Besitzerdie Dateirechte für das Cient-Zertifikat %s sind falschcoda-Gerätedatei erfolgreich geöffnetdie Verbindung wurde zweimal wegen Zeitüberschreitung abgebrochen; ich versuche es zum letzten malin %s ist eine andere URL angegebenin %s ist eine andere Konfigurationsdatei angegebenin %s ist ein anderer dir_mode angegebenin %s ist ein anderer Dateisystemtyp angegebenin %s ist ein anderer file_mode angegebenin %s ist eine andere gid angegebenin %s sind andere Mount-Optionen angegebenin %s ist eine andere uid angegebenin %s ist ein anderer Benutzername angegebenSyntaxfehler in %sFehler beim Analysieren des Server-ZertifikatsFehler beim Schreiben des Verzeichnisses %sFehler beim Schreiben der neuen Indexdatei %sFehler beim Schreiben der Datei %skann das Terminal nicht freigebendie Datei %s hat den falschen Besitzerdie Dateirechte für %s sind falschdie PID-Datei %s existiert bereits. Möglicherweise wird %s von einem anderen Prozess benutzt, oder ein anderer Mount-Prozess endete irregulärfand verwaiste Datei im Cache:fuse-Gerätedatei erfolgreich geöffnetdie Gruppe %s existiert nichtdie URL ist ungültigder Kernel kenn das Dateisystem %s nichtlade das Kernel_Modul fusedas Laden des Kernel-Moduls fuse schlug fehlSyntaxfehler in der Zeilezu wenig Argumentedas Einhängepunkt wird anderweitig benutztdas Einhängen schlug fehl; der Server unterstützt WebDAV nichtin %s ist weder die Option „user†noch die Option „users†angegebendie Neon-Bibliothek uterstützt TLS/SSL nichtes wurde kein WebDAV-Server angegebenfür %s ist kein Eintrag in %skeine freie coda-Gerätedatei gefundenDie Größe der offenen Dateien überschreitet die maximale Größe des Cache um %llu MiByteskonnte %s nicht öffnendas Argument der Option %s ist ungültig; es muss eine Dezimalzahl seindas Argument der Option %s ist ungültig; es muss eine Zahl seindas Argument der Option %s ist ungültig; es muss eine Oktalzahl seindie Option %s verlangt ein ArgumentPID %i, erhielt Signal %idie Programmdatei hat das setuid-Bit nicht gesetztder Server ist zur Zeit nicht erreichbar; das Dateisystem wird trotzdem eingehängtdie socket-Bibliothek konnte nicht initialisiert werdendas Server-Zertifikat passt nicht zum Namen des Serversdas Server-Zertifikat ist nicht mehr gültigwir trauen dem Zertifikat nichtdas Server-Zertifikat ist noch nicht gültigzu viele Argumenteich versuche es mit dem Kernel-Dateisystem codaich versuche es mit dem Kernel-Dateisystem fuseFehler beim Analysieren des Server-ZertifikatsFehler beim Analysieren der Befehlsargumentedas Kernel-Dateisystem %s ist unbekanntunbekannte Optionhänge %s ausdas Aushängen schlug fehlder Benutzer %s existiert nichtder Benutzer %s muss Mitglied der Gruppe %s seinwarte auf des Einrichten von /dev/fuseWarnung: der Server kann Dateien nicht sperrendas Cacheverzeichnis %s hat den falschen Besitzerdas Cachverzeichnis %s hat die falschen Dateirechtedu kannst als Besitzer des Dateisystems keine fremde Benutzerkennung angebendu musst Mitglied in der Gruppe sein, zu der das Dateisystem gehören solldavfs2-1.5.5/po/de.po0000644000175000017500000006311613422373177011216 00000000000000# davfs2 messages de. # Copyright (C) 2008, 2009, 2014 Werner Baumann # This file is distributed under the same license as the PACKAGE package. # Werner Baumann , 2009. # msgid "" msgstr "" "Project-Id-Version: davfs2 1.4.6\n" "Report-Msgid-Bugs-To: http://savannah.nongnu.org/support/?" "func=additem&group=davfs2\n" "POT-Creation-Date: 2019-01-24 18:31+0100\n" "PO-Revision-Date: 2016-05-16 12:16+0200\n" "Last-Translator: Werner Baumann \n" "Language-Team: \n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/cache.c:657 msgid "" "connection timed out two times;\n" "trying one last time" msgstr "" "die Verbindung wurde zweimal wegen Zeitüberschreitung abgebrochen;\n" "ich versuche es zum letzten mal" #: src/cache.c:662 #, c-format msgid "Last try succeeded.\n" msgstr "Der letzte Versuch war erfolgreich.\n" #: src/cache.c:665 msgid "" "server temporarily unreachable;\n" "mounting anyway" msgstr "" "der Server ist zur Zeit nicht erreichbar;\n" "das Dateisystem wird trotzdem eingehängt" #: src/cache.c:668 #, c-format msgid "" "Mounting failed.\n" "%s" msgstr "" "das Einhängen schlug fehl;\n" "%s" #: src/cache.c:708 #, c-format msgid "can't replace %s with %s" msgstr "kann %s nicht durch %s ersetzen" #: src/cache.c:712 #, c-format msgid "error writing new index file %s" msgstr "Fehler beim Schreiben der neuen Indexdatei %s" #: src/cache.c:716 #, c-format msgid "can't create new index file for %s" msgstr "kann keine neue Indexdatei für %s erzeugen" #: src/cache.c:959 #, c-format msgid "" "File %s exists on the server but should not. Maybe it is an error in the " "server's LOCK implementation. You may try option 'use_locks 0' in davfs2." "conf." msgstr "" "Die Datei %s existiert auf dem Server, sollte es aber nicht. Vielleicht " "behandelt der Server LOCK-Requests fehlerhaft. Du kannst es mit der Option " "'use_locks 0' in davfs2.conf versuchen." #: src/cache.c:2570 src/cache.c:2604 #, c-format msgid "can't create cache file %s" msgstr "kann die Cachedatei %s nicht erzeugen" #: src/cache.c:2619 #, c-format msgid "error writing directory %s" msgstr "Fehler beim Schreiben des Verzeichnisses %s" #: src/cache.c:2787 src/mount_davfs.c:610 src/mount_davfs.c:612 #: src/mount_davfs.c:786 src/mount_davfs.c:788 src/mount_davfs.c:805 #: src/mount_davfs.c:807 src/mount_davfs.c:1754 src/mount_davfs.c:1756 msgid "can't read user data base" msgstr "kann die Benutzerdatenbank nicht lesen" #: src/cache.c:2798 #, c-format msgid "can't open cache directory %s" msgstr "kann das Cacheverzeichnis %s nicht öffnen" #: src/cache.c:2813 #, c-format msgid "can't create cache directory %s" msgstr "kann das Cacheverzeichnis %s nicht erzeugen" #: src/cache.c:2820 #, c-format msgid "can't access cache directory %s" msgstr "Zugriff auf das Cachverzeichnis %s verweigert" #: src/cache.c:2823 #, c-format msgid "wrong owner of cache directory %s" msgstr "das Cacheverzeichnis %s hat den falschen Besitzer" #: src/cache.c:2827 #, c-format msgid "wrong permissions set for cache directory %s" msgstr "das Cachverzeichnis %s hat die falschen Dateirechte" #: src/cache.c:2857 msgid "found orphaned file in cache:" msgstr "fand verwaiste Datei im Cache:" #: src/cache.c:2930 #, c-format msgid "error parsing %s" msgstr "Syntaxfehler in %s" #: src/cache.c:2931 #, c-format msgid " at line %i" msgstr " in Zeile %i" #: src/cache.c:2976 #, c-format msgid "open files exceed max cache size by %llu MiBytes" msgstr "" "Die Größe der offenen Dateien überschreitet die maximale Größe des Cache um " "%llu MiBytes" #: src/dav_coda.c:167 src/dav_fuse.c:164 msgid "can't allocate message buffer" msgstr "kein Speicher für den Nachrichtenpuffer verfügbar" #: src/dav_fuse.c:185 src/mount_davfs.c:375 #, c-format msgid "unmounting %s" msgstr "hänge %s aus" #: src/kernel_interface.c:103 src/kernel_interface.c:151 src/mount_davfs.c:235 #: src/mount_davfs.c:319 src/mount_davfs.c:429 src/mount_davfs.c:439 #: src/mount_davfs.c:443 src/mount_davfs.c:483 src/mount_davfs.c:492 #: src/mount_davfs.c:498 src/mount_davfs.c:524 src/mount_davfs.c:576 #: src/mount_davfs.c:604 src/mount_davfs.c:849 src/mount_davfs.c:852 #: src/mount_davfs.c:1118 src/mount_davfs.c:1123 src/mount_davfs.c:1167 #: src/mount_davfs.c:1170 src/mount_davfs.c:1343 src/mount_davfs.c:1380 #: src/webdav.c:441 src/webdav.c:444 msgid "can't change effective user id" msgstr "kann die effektive Benutzer-ID nicht ändern" #: src/kernel_interface.c:113 msgid "trying fuse kernel file system" msgstr "ich versuche es mit dem Kernel-Dateisystem fuse" #: src/kernel_interface.c:121 msgid "fuse device opened successfully" msgstr "fuse-Gerätedatei erfolgreich geöffnet" #: src/kernel_interface.c:133 msgid "trying coda kernel file system" msgstr "ich versuche es mit dem Kernel-Dateisystem coda" #: src/kernel_interface.c:139 msgid "coda device opened successfully" msgstr "coda-Gerätedatei erfolgreich geöffnet" #: src/kernel_interface.c:147 #, c-format msgid "unknown kernel file system %s" msgstr "das Kernel-Dateisystem %s ist unbekannt" #: src/kernel_interface.c:174 msgid "no free coda device to mount" msgstr "keine freie coda-Gerätedatei gefunden" #: src/kernel_interface.c:183 #, c-format msgid "CODA_KERNEL_VERSION %u not supported" msgstr "CODA_KERNEL_VERSION %u wird nicht unterstützt" #: src/kernel_interface.c:210 msgid "loading kernel module fuse" msgstr "lade das Kernel_Modul fuse" #: src/kernel_interface.c:224 msgid "loading kernel module fuse failed" msgstr "das Laden des Kernel-Moduls fuse schlug fehl" #: src/kernel_interface.c:230 msgid "waiting for /dev/fuse to be created" msgstr "warte auf des Einrichten von /dev/fuse" #: src/kernel_interface.c:238 msgid "can't open fuse device" msgstr "kann die fuse-Gerätedatei nicht öffnen" #: src/kernel_interface.c:264 msgid "can't mount using fuse kernel file system" msgstr "" "mit Kernel-Dateisystem fuse kann das Dateisystem nicht eingehängt werden" #: src/mount_davfs.c:233 msgid "program is not setuid root" msgstr "die Programmdatei hat das setuid-Bit nicht gesetzt" #: src/mount_davfs.c:299 msgid "can't start daemon process" msgstr "kann den Hintergrundprozess nicht starten" #: src/mount_davfs.c:323 msgid "can't release root privileges" msgstr "ich werde die root-Rechte nicht los" #: src/mount_davfs.c:345 msgid "failed to release tty properly" msgstr "kann das Terminal nicht freigeben" #: src/mount_davfs.c:357 #, c-format msgid "can't write pid file %s" msgstr "kann die PID-Datei %s nicht schreiben" #: src/mount_davfs.c:377 msgid "unmounting failed" msgstr "das Aushängen schlug fehl" #: src/mount_davfs.c:426 src/mount_davfs.c:516 src/mount_davfs.c:595 #: src/mount_davfs.c:810 #, c-format msgid "group %s does not exist" msgstr "die Gruppe %s existiert nicht" #: src/mount_davfs.c:431 msgid "can't change group id" msgstr "kann die Gruppenkennung nicht ändern" #: src/mount_davfs.c:436 #, c-format msgid "user %s does not exist" msgstr "der Benutzer %s existiert nicht" #: src/mount_davfs.c:465 #, c-format msgid "can't access file %s" msgstr "kann nicht auf Datei %s zugreifen" #: src/mount_davfs.c:489 src/mount_davfs.c:502 src/mount_davfs.c:580 #: src/mount_davfs.c:616 #, c-format msgid "can't create directory %s" msgstr "kann das Verzeichnis %s nicht erzeugen" #: src/mount_davfs.c:506 src/mount_davfs.c:584 src/mount_davfs.c:620 #: src/mount_davfs.c:625 src/mount_davfs.c:634 #, c-format msgid "can't access directory %s" msgstr "Zugriff auf das Verzeichnis %s verweigert" #: src/mount_davfs.c:512 src/mount_davfs.c:590 #, c-format msgid "can't change mode of directory %s" msgstr "kann die Rechte des Verzeichnisses %s nicht ändern" #: src/mount_davfs.c:521 src/mount_davfs.c:600 #, c-format msgid "can't change group of directory %s" msgstr "kann die Gruppenkennung des Verneichnisses %s nicht ändern" #: src/mount_davfs.c:629 src/mount_davfs.c:791 src/mount_davfs.c:819 #: src/mount_davfs.c:821 msgid "can't read group data base" msgstr "kann die Gruppendatenbank nicht lesen" #: src/mount_davfs.c:652 src/mount_davfs.c:700 src/mount_davfs.c:1433 #: src/mount_davfs.c:1437 #, c-format msgid "can't open file %s" msgstr "kann die Datei %s nicht öffnen" #: src/mount_davfs.c:657 #, c-format msgid "%s is already mounted on %s" msgstr "%s ist bereits auf %s eingehängt" #: src/mount_davfs.c:680 #, c-format msgid "" "found PID file %s.\n" "Either %s is used by another process,\n" "or another mount process ended irregular" msgstr "" "die PID-Datei %s existiert bereits.\n" "Möglicherweise wird %s von einem anderen Prozess benutzt,\n" "oder ein anderer Mount-Prozess endete irregulär" #: src/mount_davfs.c:718 #, c-format msgid "no entry for %s found in %s" msgstr "für %s ist kein Eintrag in %s" #: src/mount_davfs.c:722 #, c-format msgid "different URL in %s" msgstr "in %s ist eine andere URL angegeben" #: src/mount_davfs.c:726 #, c-format msgid "different file system type in %s" msgstr "in %s ist ein anderer Dateisystemtyp angegeben" #: src/mount_davfs.c:737 #, c-format msgid "different config file in %s" msgstr "in %s ist eine andere Konfigurationsdatei angegeben" #: src/mount_davfs.c:743 #, c-format msgid "different username in %s" msgstr "in %s ist ein anderer Benutzername angegeben" #: src/mount_davfs.c:747 #, c-format msgid "neither option `user' nor option `users' set in %s" msgstr "in %s ist weder die Option „user†noch die Option „users†angegeben" #: src/mount_davfs.c:750 #, c-format msgid "different mount options in %s" msgstr "in %s sind andere Mount-Optionen angegeben" #: src/mount_davfs.c:753 #, c-format msgid "different uid in %s" msgstr "in %s ist eine andere uid angegeben" #: src/mount_davfs.c:755 #, c-format msgid "different gid in %s" msgstr "in %s ist eine andere gid angegeben" #: src/mount_davfs.c:757 #, c-format msgid "different dir_mode in %s" msgstr "in %s ist ein anderer dir_mode angegeben" #: src/mount_davfs.c:759 #, c-format msgid "different file_mode in %s" msgstr "in %s ist ein anderer file_mode angegeben" #: src/mount_davfs.c:779 msgid "you can't set file owner different from your uid" msgstr "" "du kannst als Besitzer des Dateisystems keine fremde Benutzerkennung angeben" #: src/mount_davfs.c:797 msgid "you must be member of the group of the file system" msgstr "" "du musst Mitglied in der Gruppe sein, zu der das Dateisystem gehören soll" #: src/mount_davfs.c:830 #, c-format msgid "user %s must be member of group %s" msgstr "der Benutzer %s muss Mitglied der Gruppe %s sein" #: src/mount_davfs.c:855 #, c-format msgid "can't mount %s on %s" msgstr "kann %s nicht auf %s einhängen" #: src/mount_davfs.c:857 #, c-format msgid "kernel does not know file system %s" msgstr "der Kernel kenn das Dateisystem %s nicht" #: src/mount_davfs.c:859 msgid "mount point is busy" msgstr "das Einhängepunkt wird anderweitig benutzt" #: src/mount_davfs.c:934 src/umount_davfs.c:88 #, c-format msgid "" "This is free software; see the source for copying conditions. There is NO\n" "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" msgstr "" "Dies ist freie Software; die Kopierbedingungen stehen in den Quelltexten. " "Es \n" "gibt keine Garantie; auch nicht für VERKAUFBARKEIT oder FÜR SPEZIELLE " "ZWECKE.\n" #: src/mount_davfs.c:950 src/umount_davfs.c:114 msgid "unknown error parsing arguments" msgstr "Fehler beim Analysieren der Befehlsargumente" #: src/mount_davfs.c:959 src/umount_davfs.c:120 msgid "missing argument" msgstr "zu wenig Argumente" #: src/mount_davfs.c:972 #, c-format msgid "can't evaluate path of mount point %s" msgstr "kann den eindeutigen Pfad des Einhängepunktes %s nicht ermitteln" #: src/mount_davfs.c:975 src/umount_davfs.c:122 msgid "too many arguments" msgstr "zu viele Argumente" #: src/mount_davfs.c:984 #, c-format msgid "can't get home directory for uid %i" msgstr "kann das Home-Verzeichnis für die Benutzer-ID %i nicht ermitteln" #: src/mount_davfs.c:986 msgid "A relative mount point must lie within your home directory" msgstr "Ein relativer Einhängepunkt muss in deinem Home-Verzeichnis liegen" #: src/mount_davfs.c:991 msgid "no WebDAV-server specified" msgstr "es wurde kein WebDAV-Server angegeben" #: src/mount_davfs.c:994 msgid "invalid URL" msgstr "die URL ist ungültig" #: src/mount_davfs.c:1013 msgid "can't determine home directory" msgstr "kann das Home-Verzeichnis nicht ermitteln" #: src/mount_davfs.c:1120 src/webdav.c:447 #, c-format msgid "can't read client certificate %s" msgstr "kann das Client-Zertifikat %s nicht lesen" #: src/mount_davfs.c:1126 #, c-format msgid "client certificate file %s has wrong owner" msgstr "" "die Datei %s\n" "des Client-Zertifikats hat den falschen Besitzer" #: src/mount_davfs.c:1132 #, c-format msgid "client certificate file %s has wrong permissions" msgstr "" "die Dateirechte für das Cient-Zertifikat\n" "%s sind falsch" #: src/mount_davfs.c:1184 src/mount_davfs.c:1197 src/mount_davfs.c:1199 #: src/mount_davfs.c:1217 src/mount_davfs.c:1219 src/webdav.c:454 msgid "Password: " msgstr "Passwort:" #: src/mount_davfs.c:1188 #, c-format msgid "" "Please enter the username to authenticate with proxy\n" "%s or hit enter for none.\n" msgstr "" "Gib bitte den Benutzernamen für den Proxy %s an; wenn du keinen angeben " "willst, drücke Return.\n" #: src/mount_davfs.c:1190 src/mount_davfs.c:1210 msgid "Username:" msgstr "Benutzername:" #: src/mount_davfs.c:1194 #, c-format msgid "" "Please enter the password to authenticate user %s with proxy\n" "%s or hit enter for none.\n" msgstr "" "Gib bitte das Passwort von %s für den Proxy %s\n" "an; wenn du keines angeben willst, drücke Return.\n" #: src/mount_davfs.c:1208 #, c-format msgid "" "Please enter the username to authenticate with server\n" "%s or hit enter for none.\n" msgstr "" "Gib bitte den Benutzernamen für den Server %s an; wenn du keinen angeben " "willst, drücke Return.\n" #: src/mount_davfs.c:1214 #, c-format msgid "" "Please enter the password to authenticate user %s with server\n" "%s or hit enter for none.\n" msgstr "" "Gib bitte das Passwort von %s für den Server %s\n" "an; wenn du keines angeben willst, drücke Return.\n" #: src/mount_davfs.c:1269 #, c-format msgid "pid %i, got signal %i" msgstr "PID %i, erhielt Signal %i" #: src/mount_davfs.c:1292 msgid "" "Warning: can't read user data base. Mounting anyway, but there is no entry " "in mtab." msgstr "" "Warnung: kann die Benutzerdatenbank nicht lesen. Ich hänge das Dateisystem " "trotzdem ein, aber der Eintrag in der mtab wird fehlen." #: src/mount_davfs.c:1348 #, c-format msgid "can't create file %s" msgstr "kann die Datei %s nicht erzeugen" #: src/mount_davfs.c:1352 #, c-format msgid "can't lock file %s" msgstr "kann die Datei %s nicht sperren" #: src/mount_davfs.c:1374 #, c-format msgid "" "Warning: can't write entry into %s, but will mount the file system anyway" msgstr "" "Warnung: kann keinen Eintrag in die Datei %s schreiben, hänge das " "Dateisystem trotzdem ein." #: src/mount_davfs.c:1412 #, c-format msgid "option %s has invalid argument;it must be a decimal number" msgstr "das Argument der Option %s ist ungültig; es muss eine Dezimalzahl sein" #: src/mount_davfs.c:1415 #, c-format msgid "option %s has invalid argument;it must be an octal number" msgstr "das Argument der Option %s ist ungültig; es muss eine Oktalzahl sein" #: src/mount_davfs.c:1418 #, c-format msgid "option %s has invalid argument;it must be a number" msgstr "das Argument der Option %s ist ungültig; es muss eine Zahl sein" #: src/mount_davfs.c:1444 #, c-format msgid "error writing to file %s" msgstr "Fehler beim Schreiben der Datei %s" #: src/mount_davfs.c:1648 #, c-format msgid "option %s requires argument" msgstr "die Option %s verlangt ein Argument" #: src/mount_davfs.c:1736 #, c-format msgid "Unknown option %s.\n" msgstr "unbekannte Option %s.\n" #: src/mount_davfs.c:2168 src/mount_davfs.c:2402 src/mount_davfs.c:2414 #, c-format msgid "opening %s failed" msgstr "konnte %s nicht öffnen" #: src/mount_davfs.c:2189 src/mount_davfs.c:2234 src/mount_davfs.c:2331 #: src/mount_davfs.c:2430 src/mount_davfs.c:2497 msgid "malformed line" msgstr "Syntaxfehler in der Zeile" #: src/mount_davfs.c:2312 src/mount_davfs.c:2325 msgid "unknown option" msgstr "unbekannte Option" #: src/mount_davfs.c:2406 #, c-format msgid "file %s has wrong owner" msgstr "die Datei %s hat den falschen Besitzer" #: src/mount_davfs.c:2409 #, c-format msgid "file %s has wrong permissions" msgstr "die Dateirechte für %s sind falsch" #: src/mount_davfs.c:2632 #, c-format msgid "" "Usage:\n" " %s -V,--version : print version string\n" " %s -h,--help : print this message\n" "\n" msgstr "" "Aufruf:\n" " %s -V, --version : Versionsinformation anzeigen\n" " %s -h, --help : diese Hilfe anzeigen\n" "\n" #: src/mount_davfs.c:2636 #, c-format msgid "" "To mount a WebDAV-resource don't call %s directly, but use\n" "`mount' instead.\n" msgstr "" "Um eine WebDAV-Resource zu einzuhängen, sollte %s nicht direkt\n" "aufgerufen werden; stattdessen sollte „mount†benutzt werden.\n" #: src/mount_davfs.c:2638 #, c-format msgid "" " mount : or\n" " mount : mount the WebDAV-resource as specified in\n" " /etc/fstab.\n" msgstr "" " mount : oder\n" " mount : hänge die WebDAV-Resource entsprechend den\n" " Angaben in /etc/fstab ein.\n" #: src/mount_davfs.c:2641 #, c-format msgid "" " mount -t davfs [-o options]\n" " : mount the WebDAV-resource \n" " on mountpoint . Only root\n" " is allowed to do this. options is a\n" " comma separated list of options.\n" "\n" msgstr "" " mount -t davfs [-o Optionen]\n" " : hänge die WebDAV-Resource \n" " in Verzeichnis ein. Nur root\n" " darf dies tun. Optionen ist eine durch\n" " Kommas unterteilte Liste von Optionen.\n" "\n" #: src/mount_davfs.c:2646 #, c-format msgid "" "Recognised options:\n" " conf= : absolute path of user configuration file\n" " uid= : owner of the filesystem (username or numeric id)\n" " gid= : group of the filesystem (group name or numeric id)\n" " file_mode= : default file mode (octal)\n" " dir_mode= : default directory mode (octal)\n" msgstr "" "Mögliche Optionen:\n" " conf= : absoluter Pfad der Benutzer-Konfigurationsdatei\n" " uid= : Besitzer des Dateisystems (Name oder numerische ID)\n" " gid= : Gruppe des Dateisystems (Name oder numerische ID)\n" " file_mode= : Standard-Rechte für Dateien (oktal)\n" " dir_mode= : Standard-Rechte für Verzeichnisse (oktal)\n" #: src/mount_davfs.c:2652 #, c-format msgid "" " ro : mount read-only\n" " rw : mount read-write\n" " [no]exec : (don't) allow execution of binaries\n" " [no]suid : (don't) allow suid and sgid bits to take effect\n" " [no]grpid : new files (don't) get the group id of the directory\n" " in which they are created.\n" " [no]_netdev : (no) network connection needed\n" msgstr "" " ro : nur Lesen\n" " rw : Lesen und Schreiben\n" " [no]exec : Ausführen von Programmdateien ist (nicht) erlaubt\n" " [no]suid : gesetzte suid- und sgid-Bits sind (nicht) wirksam\n" " [no]grpid : neue Dateien erhelten die gid des übergeordneten\n" " Verzeichnisses\n" " [no]_nedev : benötigt (keine) Netzwerkverbindung\n" #: src/umount_davfs.c:94 #, c-format msgid "" "Usage:\n" " u%s -V,--version : print version string\n" " u%s -h,--help : print this message\n" "\n" msgstr "" "Aufruf:\n" " u%s -V, --version : Versionsinformation anzeigen\n" " u%s -h, --help : diese Hilfe anzeigen\n" "\n" #: src/umount_davfs.c:98 #, c-format msgid "" "To umount a WebDAV-resource don't call u%s directly, but use\n" "`umount' instead.\n" msgstr "" "Um eine WebDAV-Resource auszuhängen, sollte u%s nicht direkt aufgerufen " "werden; stattdessen sollte „umount†benutzt werden.\n" #: src/umount_davfs.c:101 #, c-format msgid "" " umount : umount the WebDAV-resource as specified in\n" " /etc/fstab.\n" msgstr "" " umount : hänge die WebDAV-Resource entsprechend den\n" " Angaben in /etc/fstab aus.\n" #: src/umount_davfs.c:132 #, c-format msgid "" "\n" " can't evaluate PID file name;\n" " trying to unmount anyway;\n" " please wait for %s to terminate" msgstr "" "\n" " kann den Namen der PID-Datei nicht ermitteln;\n" " versuche trotzdem das Dateisystem auszuhängen;\n" " bitte warte bis der %s-Prozess endet" #: src/umount_davfs.c:155 #, c-format msgid "" "\n" " can't read PID from file %s;\n" " trying to unmount anyway;\n" " please wait for %s to terminate" msgstr "" "\n" " kann die PID nicht aus %s auslesen;\n" " versuche trotzdem das Dateisystem auszuhängen;\n" " bitte warte bis der %s-Prozess endet" #: src/umount_davfs.c:167 #, c-format msgid "" "\n" " can't read process list;\n" " trying to unmount anyway;\n" " please wait for %s to terminate" msgstr "" "\n" " kann die Liste der laufenden Prozesse nicht lesen;\n" " versuche trotzdem das Dateisystem auszuhängen;\n" " bitte warte bis der %s-Prozess endet" #: src/umount_davfs.c:183 #, c-format msgid "" "\n" " can't find %s-process with pid %s;\n" " trying to unmount anyway.\n" " you propably have to remove %s manually" msgstr "" "\n" " finde keinen %s-Prozess mit PID %s;\n" " versuche trotzdem das Dateisystem auszuhängen;\n" " %s muss wahrscheinlich von Hand gelöscht werden" #: src/umount_davfs.c:194 #, c-format msgid "%s: waiting while %s (pid %s) synchronizes the cache ." msgstr "" "%s: warte bis %s (PID %s) die Dateien im Cache\n" "gesichert hat ." #: src/umount_davfs.c:207 #, c-format msgid "an error occurred while waiting; please wait for %s to terminate" msgstr "" "während des Wartens trat ein Fehler auf; bitte warte bis der %s-Prozess endet" #: src/webdav.c:368 msgid "socket library initialization failed" msgstr "die socket-Bibliothek konnte nicht initialisiert werden" #: src/webdav.c:381 msgid "can't open stream to log neon-messages" msgstr "kann die Ausgabe für neon-Log-Meldungen nicht öffnen" #: src/webdav.c:417 msgid "neon library does not support TLS/SSL" msgstr "die Neon-Bibliothek uterstützt TLS/SSL nicht" #: src/webdav.c:423 src/webdav.c:428 #, c-format msgid "can't read server certificate %s" msgstr "kann das Server-Zertifikat %s nicht lesen" #: src/webdav.c:452 #, c-format msgid "" "Please enter the password to decrypt client\n" "certificate %s.\n" msgstr "" "Gib bitte das Passwort für die Entschlüsselung des\n" "Client-Zertifikats %s ein.\n" #: src/webdav.c:466 #, c-format msgid "can't decrypt client certificate %s" msgstr "kann das Zertifikat %s nicht entschlüsseln" #: src/webdav.c:532 src/webdav.c:535 msgid "mounting failed; the server does not support WebDAV" msgstr "das Einhängen schlug fehl; der Server unterstützt WebDAV nicht" #: src/webdav.c:543 msgid "warning: the server does not support locks" msgstr "Warnung: der Server kann Dateien nicht sperren" #: src/webdav.c:1675 msgid "authentication failure:" msgstr "Authentifizierungsfehler" #: src/webdav.c:1713 #, c-format msgid "%i can't open cache file" msgstr "%i kann die Cache-Datei nicht öffnen" #: src/webdav.c:1721 #, c-format msgid "%i error writing to cache file" msgstr "%i Fehler beim Schreiben der Cache-Datei" #: src/webdav.c:1990 src/webdav.c:2019 src/webdav.c:2056 msgid "the server certificate is not trusted" msgstr "wir trauen dem Zertifikat nicht" #: src/webdav.c:1999 src/webdav.c:2002 msgid "error processing server certificate" msgstr "Fehler beim Analysieren des Server-Zertifikats" #: src/webdav.c:2013 src/webdav.c:2047 msgid "the server certificate is not yet valid" msgstr "das Server-Zertifikat ist noch nicht gültig" #: src/webdav.c:2015 src/webdav.c:2050 msgid "the server certificate has expired" msgstr "das Server-Zertifikat ist nicht mehr gültig" #: src/webdav.c:2017 src/webdav.c:2053 msgid "the server certificate does not match the server name" msgstr "das Server-Zertifikat passt nicht zum Namen des Servers" #: src/webdav.c:2021 src/webdav.c:2059 msgid "unknown certificate error" msgstr "Fehler beim Analysieren des Server-Zertifikats" #: src/webdav.c:2022 #, c-format msgid " issuer: %s" msgstr " Aussteller: %s" #: src/webdav.c:2024 #, c-format msgid " subject: %s" msgstr " Inhaber: %s" #: src/webdav.c:2026 #, c-format msgid " identity: %s" msgstr " Name: %s" #: src/webdav.c:2028 #, c-format msgid " fingerprint: %s" msgstr " Fingerabdruck: %s" #: src/webdav.c:2030 #, c-format msgid "" "You only should accept this certificate, if you can\n" "verify the fingerprint! The server might be faked\n" "or there might be a man-in-the-middle-attack.\n" msgstr "" "Du solltest das Zertifikat nur akzeptieren, wenn du überprüft hast,\n" "dass der Fingerabdruck stimmt. Der Server könnte gefälscht sein oder\n" "ein Angreifer könnte sich in die Verbindung zum Server eingeschaltet haben.\n" #: src/webdav.c:2033 #, c-format msgid "Accept certificate for this session? [y,N] " msgstr "Ich akzeptiere das Zertifikat für diese Sitzung [j,N]: " #: src/webdav.c:2060 #, c-format msgid " issuer: %s" msgstr " Aussteller des Zertifikats: %s" #: src/webdav.c:2061 #, c-format msgid " subject: %s" msgstr " Inhaber des Zertifikats: %s" #: src/webdav.c:2062 #, c-format msgid " identity: %s" msgstr " Name: %s" #: src/webdav.c:2065 msgid " accepted by user" msgstr " durch den Benutzer akzeptiert" davfs2-1.5.5/po/Makefile.in.in0000644000175000017500000003744212460776605012747 00000000000000# Makefile for PO directory in any package using GNU gettext. # Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU General Public # License but which still want to provide support for the GNU gettext # functionality. # Please note that the actual code of GNU gettext is covered by the GNU # General Public License and is *not* in the public domain. # # Origin: gettext-0.18 GETTEXT_MACRO_VERSION = 0.18 PACKAGE = @PACKAGE@ VERSION = @VERSION@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ SHELL = /bin/sh @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datarootdir = @datarootdir@ datadir = @datadir@ localedir = @localedir@ gettextsrcdir = $(datadir)/gettext/po INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ # We use $(mkdir_p). # In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as # "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions, # @install_sh@ does not start with $(SHELL), so we add it. # In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined # either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake # versions, $(mkinstalldirs) and $(install_sh) are unused. mkinstalldirs = $(SHELL) @install_sh@ -d install_sh = $(SHELL) @install_sh@ MKDIR_P = @MKDIR_P@ mkdir_p = @mkdir_p@ GMSGFMT_ = @GMSGFMT@ GMSGFMT_no = @GMSGFMT@ GMSGFMT_yes = @GMSGFMT_015@ GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) MSGFMT_ = @MSGFMT@ MSGFMT_no = @MSGFMT@ MSGFMT_yes = @MSGFMT_015@ MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) XGETTEXT_ = @XGETTEXT@ XGETTEXT_no = @XGETTEXT@ XGETTEXT_yes = @XGETTEXT_015@ XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit MSGCONV = msgconv MSGFILTER = msgfilter POFILES = @POFILES@ GMOFILES = @GMOFILES@ UPDATEPOFILES = @UPDATEPOFILES@ DUMMYPOFILES = @DUMMYPOFILES@ DISTFILES.common = Makefile.in.in remove-potcdate.sin \ $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ $(POFILES) $(GMOFILES) \ $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) POTFILES = \ CATALOGS = @CATALOGS@ # Makevars gets inserted here. (Don't remove this line!) .SUFFIXES: .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update .po.mo: @echo "$(MSGFMT) -c -o $@ $<"; \ $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ mv t-$@ $@ all: check-macro-version all-@USE_NLS@ all-yes: stamp-po all-no: # Ensure that the gettext macros and this Makefile.in.in are in sync. check-macro-version: @test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \ || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \ exit 1; \ } # $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no # internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because # we don't want to bother translators with empty POT files). We assume that # LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. # In this case, stamp-po is a nop (i.e. a phony target). # stamp-po is a timestamp denoting the last time at which the CATALOGS have # been loosely updated. Its purpose is that when a developer or translator # checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, # "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent # invocations of "make" will do nothing. This timestamp would not be necessary # if updating the $(CATALOGS) would always touch them; however, the rule for # $(POFILES) has been designed to not touch files that don't need to be # changed. stamp-po: $(srcdir)/$(DOMAIN).pot test ! -f $(srcdir)/$(DOMAIN).pot || \ test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) @test ! -f $(srcdir)/$(DOMAIN).pot || { \ echo "touch stamp-po" && \ echo timestamp > stamp-poT && \ mv stamp-poT stamp-po; \ } # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', # otherwise packages like GCC can not be built if only parts of the source # have been downloaded. # This target rebuilds $(DOMAIN).pot; it is an expensive operation. # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null | grep -v 'libtool:' >/dev/null; then \ package_gnu='GNU '; \ else \ package_gnu=''; \ fi; \ if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ else \ msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ fi; \ case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ --files-from=$(srcdir)/POTFILES.in \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ --msgid-bugs-address="$$msgid_bugs_address" \ ;; \ *) \ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ --files-from=$(srcdir)/POTFILES.in \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ --package-name="$${package_gnu}@PACKAGE@" \ --package-version='@VERSION@' \ --msgid-bugs-address="$$msgid_bugs_address" \ ;; \ esac test ! -f $(DOMAIN).po || { \ if test -f $(srcdir)/$(DOMAIN).pot; then \ sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \ if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \ else \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ else \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ } # This rule has no dependencies: we don't need to update $(DOMAIN).pot at # every "make" invocation, only create it when it is missing. # Only "make $(DOMAIN).pot-update" or "make dist" will force an update. $(srcdir)/$(DOMAIN).pot: $(MAKE) $(DOMAIN).pot-update # This target rebuilds a PO file if $(DOMAIN).pot has changed. # Note that a PO file is not touched if it doesn't need to be changed. $(POFILES): $(srcdir)/$(DOMAIN).pot @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ cd $(srcdir) \ && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ *) \ $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ esac; \ }; \ else \ $(MAKE) $${lang}.po-create; \ fi install: install-exec install-data install-exec: install-data: install-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ for file in $(DISTFILES.common) Makevars.template; do \ $(INSTALL_DATA) $(srcdir)/$$file \ $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ for file in Makevars; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi install-data-no: all install-data-yes: all @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $(DESTDIR)$$dir; \ if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \ done); \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ else \ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ :; \ else \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ fi; \ fi; \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \ fi; \ done; \ done install-strip: install installdirs: installdirs-exec installdirs-data installdirs-exec: installdirs-data: installdirs-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ else \ : ; \ fi installdirs-data-no: installdirs-data-yes: @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $(DESTDIR)$$dir; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \ done); \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ else \ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ :; \ else \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ fi; \ fi; \ fi; \ done; \ done # Define this as empty until I found a useful application. installcheck: uninstall: uninstall-exec uninstall-data uninstall-exec: uninstall-data: uninstall-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ for file in $(DISTFILES.common) Makevars.template; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi uninstall-data-no: uninstall-data-yes: catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ done; \ done check: all info dvi ps pdf html tags TAGS ctags CTAGS ID: mostlyclean: rm -f remove-potcdate.sed rm -f stamp-poT rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po rm -fr *.o clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES *.mo maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." rm -f stamp-po $(GMOFILES) distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: $(MAKE) update-po @$(MAKE) dist2 # This is a separate target because 'update-po' must be executed before. dist2: stamp-po $(DISTFILES) dists="$(DISTFILES)"; \ if test "$(PACKAGE)" = "gettext-tools"; then \ dists="$$dists Makevars.template"; \ fi; \ if test -f $(srcdir)/$(DOMAIN).pot; then \ dists="$$dists $(DOMAIN).pot stamp-po"; \ fi; \ if test -f $(srcdir)/ChangeLog; then \ dists="$$dists ChangeLog"; \ fi; \ for i in 0 1 2 3 4 5 6 7 8 9; do \ if test -f $(srcdir)/ChangeLog.$$i; then \ dists="$$dists ChangeLog.$$i"; \ fi; \ done; \ if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ for file in $$dists; do \ if test -f $$file; then \ cp -p $$file $(distdir) || exit 1; \ else \ cp -p $(srcdir)/$$file $(distdir) || exit 1; \ fi; \ done update-po: Makefile $(MAKE) $(DOMAIN).pot-update test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) $(MAKE) update-gmo # General rule for creating PO files. .nop.po-create: @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ exit 1 # General rule for updating PO files. .nop.po-update: @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ *) \ $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ esac; \ }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ exit 1; \ fi; \ fi; \ else \ echo "msgmerge for $$lang.po failed!" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ fi $(DUMMYPOFILES): update-gmo: Makefile $(GMOFILES) @: # Recreate Makefile by invoking config.status. Explicitly invoke the shell, # because execution permission bits may not work on the current file system. # Use @SHELL@, which is the shell determined by autoconf for the use by its # scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient. Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ cd $(top_builddir) \ && @SHELL@ ./config.status $(subdir)/$@.in po-directories force: # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: davfs2-1.5.5/po/en@boldquot.header0000644000175000017500000000247112460776605013715 00000000000000# All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # # This catalog furthermore displays the text between the quotation marks in # bold face, assuming the VT100/XTerm escape sequences. # davfs2-1.5.5/po/POTFILES.in0000644000175000017500000000025612460776605012043 00000000000000# List of source files which contain translatable strings. src/cache.c src/dav_coda.c src/dav_fuse.c src/kernel_interface.c src/mount_davfs.c src/umount_davfs.c src/webdav.c davfs2-1.5.5/po/cs.gmo0000644000175000017500000003563013422373177011377 00000000000000Þ•}§ìˆ k‰ ]õ YS 5­ ‡ã kk × ê ü  /< N\u”6°:ç+"$Nsˆ œW§Xÿ<X9•—ÏLgO´``ySÚ”.ÃÛû3R"h!‹­Íè"#%I%h#޲)Çñ" 9Z u–°Îç*0Ev4–Ëßû 5Oc•#¦Êåa;½ Õ#á%39%m“®Ê0ç:2S9†ÀÜò/ 5="s%–'¼ä÷5Oo œª¼"Ó*ö!!,C0p2¡µÔ{Š!h"go"Y×"1$kÁ$-% C%O%a%p%…%•% §%2µ%6è%&H<&G…&.Í&)ü&!&'H'`'yh'yâ'G\(¡¤(ÏF*W+Wn+Æ+mÛ+eI,l¯,¸-Õ-0ì-#."A.5d.š.$´.0Ù.( /03/d/.‚/,±/ Þ//ÿ/-/0]01}0(¯0Ø0!ó0*1%@1*f1(‘1+º1æ1 2%22B2>u2&´2DÛ2 3#23V3 q3’3®3%Ä3ê34,4 H41i4"›4"¾4dá4&F5m5 ƒ5#‘5µ5Ï5!å5.6!66#X6-|66ª6Oá6N176€7N·78"8(;83d8/˜8'È8'ð8(9A9*\9*‡9²9,Ï9(ü9%: 5:A:S:*k:%–:,¼::é:@$;2e;:|zh60 oavQGXx$@{Hwm/B*#9ytd]2<e4"5,OfT^.IZ`q)C8+_ ?bs NA(k3;>WE[D}RMSK1i-grV=cPu'Fl\j7 &YnpJ% UL! can't find %s-process with pid %s; trying to unmount anyway. you propably have to remove %s manually can't read PID from file %s; trying to unmount anyway; please wait for %s to terminate can't read process list; trying to unmount anyway; please wait for %s to terminate mount -t davfs [-o options] : mount the WebDAV-resource on mountpoint . Only root is allowed to do this. options is a comma separated list of options. mount : or mount : mount the WebDAV-resource as specified in /etc/fstab. umount : umount the WebDAV-resource as specified in /etc/fstab. accepted by user fingerprint: %s identity: %s identity: %s issuer: %s issuer: %s subject: %s subject: %s%i can't open cache file%i error writing to cache file%s is already mounted on %s%s: waiting while %s (pid %s) synchronizes the cache .A relative mount point must lie within your home directoryAccept certificate for this session? [y,N] CODA_KERNEL_VERSION %u not supportedLast try succeeded. Mounting failed. %sPassword: Please enter the password to authenticate user %s with proxy %s or hit enter for none. Please enter the password to authenticate user %s with server %s or hit enter for none. Please enter the password to decrypt client certificate %s. Recognised options: conf= : absolute path of user configuration file uid= : owner of the filesystem (username or numeric id) gid= : group of the filesystem (group name or numeric id) file_mode= : default file mode (octal) dir_mode= : default directory mode (octal) This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. To mount a WebDAV-resource don't call %s directly, but use `mount' instead. To umount a WebDAV-resource don't call u%s directly, but use `umount' instead. Unknown option %s. Usage: %s -V,--version : print version string %s -h,--help : print this message Usage: u%s -V,--version : print version string u%s -h,--help : print this message Warning: can't read user data base. Mounting anyway, but there is no entry in mtab.You only should accept this certificate, if you can verify the fingerprint! The server might be faked or there might be a man-in-the-middle-attack. authentication failure:can't access cache directory %scan't access directory %scan't allocate message buffercan't change effective user idcan't change group idcan't change group of directory %scan't change mode of directory %scan't create cache directory %scan't create cache file %scan't create directory %scan't create new index file for %scan't decrypt client certificate %scan't determine home directorycan't evaluate path of mount point %scan't get home directory for uid %ican't mount %s on %scan't mount using fuse kernel file systemcan't open cache directory %scan't open file %scan't open fuse devicecan't read client certificate %scan't read group data basecan't read server certificate %scan't read user data basecan't release root privilegescan't replace %s with %scan't start daemon processcan't write pid file %sclient certificate file %s has wrong ownerclient certificate file %s has wrong permissionscoda device opened successfullyconnection timed out two times; trying one last timedifferent URL in %sdifferent config file in %sdifferent dir_mode in %sdifferent file system type in %sdifferent file_mode in %sdifferent gid in %sdifferent mount options in %sdifferent uid in %serror parsing %serror processing server certificateerror writing directory %serror writing new index file %sfile %s has wrong ownerfile %s has wrong permissionsfound PID file %s. Either %s is used by another process, or another mount process ended irregularfuse device opened successfullygroup %s does not existinvalid URLkernel does not know file system %smalformed linemissing argumentmount point is busymounting failed; the server does not support WebDAVneon library does not support TLS/SSLno WebDAV-server specifiedno entry for %s found in %sno free coda device to mountopen files exceed max cache size by %llu MiBytesoption %s has invalid argument;it must be a decimal numberoption %s has invalid argument;it must be a numberoption %s has invalid argument;it must be an octal numberoption %s requires argumentpid %i, got signal %iprogram is not setuid rootserver temporarily unreachable; mounting anywaythe server certificate does not match the server namethe server certificate has expiredthe server certificate is not trustedthe server certificate is not yet validtoo many argumentstrying coda kernel file systemtrying fuse kernel file systemunknown certificate errorunknown error parsing argumentsunknown kernel file system %sunknown optionunmounting %sunmounting faileduser %s does not existuser %s must be member of group %swarning: the server does not support lockswrong owner of cache directory %swrong permissions set for cache directory %syou can't set file owner different from your uidyou must be member of the group of the file systemProject-Id-Version: PACKAGE VERSION Report-Msgid-Bugs-To: http://savannah.nongnu.org/support/?func=additem&group=davfs2 POT-Creation-Date: 2019-01-24 18:31+0100 PO-Revision-Date: 2007-05-03 19:50+0200 Last-Translator: VítÄ›zslav Kotrla Language-Team: Language: cs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bitX-Generator: KBabel 1.11.4 X-Generator: KBabel 1.11.4 nemohu najít %s - proces s PID %s; pÅ™esto se pokouším odpojit. pravdÄ›podobnÄ› budete muset odstranit %s ruÄnÄ› nemohu Äíst PID ze souboru %s; pÅ™esto se pokouším odpojit; Äekejte prosím, až %s skonÄí nemohu Äíst seznam procesů; pÅ™esto se pokouším odpojit; Äekejte prosím, až %s skonÄí mount -t davfs [-o volby] : pÅ™ipojí zdroj WebDAV do přípojného bodu . Pouze root může provést tuto operaci. Výraz volby oznaÄuje seznam voleb oddÄ›lených Äárkou. mount : nebo mount : pÅ™ipojí zdroj WebDAV tak, jak je zadáno v /etc/fstab. umount : odpojit zdroj WebDAV tak, jak je urÄeno v /etc/fstab. pÅ™ijat uživatelem otisk: %s identita: %s identita: %s vydavatel: %s vydavatel: %s subjekt: %s subjekt: %s%i nemůže otevřít soubor vyrovnávací pamÄ›ti%i chyba pÅ™i zápisu do souboru vyrovnávací pamÄ›ti%s už je pÅ™ipojeno jako %s%s: Äekám, než si %s (pid %s) sesynchronizuje vyrovnávací paměť.Relativní přípojný bod musí ležet ve vaÅ¡em domovském adresářiPÅ™ijmout certifikát pro toto sezení? [y,N] CODA_KERNEL_VERSION %u není podporovánoPoslední pokus byl úspěšný. PÅ™ipojení selhalo; %sHeslo: Zadejte prosím heslo pro autentizaci uživatele %s na proxy %s (pokud žádné zadat nechcete, pouze stisknÄ›te enter). Zadejte prosím heslo uživatele %s pro autentizaci na serveru %s (nebo pouze stisknÄ› enter, pokud nic zadat nechcete). Zadejte prosím heslo pro deÅ¡ifrování klientského certifikátu %s. Rozpoznané volby: conf= : absolutní cesta k uživatelskému konfiguraÄnímu souboru uid= : vlastník souborového systému (jméno nebo Äíselné oznaÄení) gid= : skupina souborového systému (jméno skupiny nebo Äíselné oznaÄení) file_mode= : výchozí mode souboru (v osmiÄkové soustavÄ›) dir_mode= : výchozí mode adresáře (v osmiÄkové soustavÄ›) Tento program je svobodný software, podmínky kopírování jsou uvedeny ve zdrojovém kódu. Program je poskytován BEZ JAKÉKOLIV záruky, vÄetnÄ› záruky PRODEJNOSTI Äi VHODNOSTI K URÄŒITÉMU ÚČELU. Pro pÅ™ipojení zdroje WebDAV nevolejte přímo %s, ale použijte místo toho `mount'. Pro odpojení zdroje WebDAV nevolejte přímo u%s, ale použijte místo toho `umount'. Neznámá volba %s. Použití: %s -V,--version : vytiskne informaci o verzi %s -h,--help : vytiskne tuto zprávu Použití: u%s -V,--version : vypsat údaj o verzi u%s -h,--help : vypsat tuto zprávu Varování: nelze pÅ™eÄíst údaje o uživatelích. PÅ™esto pÅ™ipojuji, v mtab ale nebude žádný záznam.Tento certifikát by mÄ›l být pÅ™ijat pouze pokud můžete ověřit jeho otisk! Server může být podvržen nebo může dojít k útoku s prostÅ™edníkem (man-in-the-middle attack). selhání autentizace:nemohu pÅ™istoupit ke keÅ¡ovacímu adresáři %snemohu pÅ™istupovat k adresáři %snemohu alokovat buffer pro zprávunemohu zmÄ›nit identifikátor efektivního uživatelenemohu zmÄ›nit id skupinynemohu zmÄ›nit skupinu adresáře %snemohu zmÄ›nit oprávnÄ›ní (mode) adresáře %snemohu vytvoÅ™it keÅ¡ovací adresář %snemohu vytvoÅ™it soubor vyrovnávací pamÄ›ti %snemohu vytvoÅ™it adresář %snemohu vytvoÅ™it nový indexový soubor pro %snemohu deÅ¡ifrovat klientský certifikát %snelze urÄit domovský adresářnemohu vyhodnotit cestu k přípojnému bodu %snemohu zjistit domovský adresář pro uid %inení možno pÅ™ipojit %s do %snemohu pÅ™ipojit jaderný souborový systém fusenemohu otevřít keÅ¡ovací adresář %snemohu otevřít soubor %snemohu otevřít fuse zařízenínelze pÅ™eÄíst klientský certifikát %snemohu pÅ™eÄíst údaje o skupináchnemohu pÅ™eÄíst serverový cerifikát %snemohu pÅ™eÄíst údaje o uživatelíchnemohu uvolnit oprávnÄ›ní uživatele rootnemohu nahradit %s pomocí %snemohu spustit proces na pozadínemohu zapsat pid souboru %sklientský certifikát %s má chybného vlastníkasoubor s klientským certifikátem %s má chybná oprávnÄ›nízařízení coda otevÅ™eno úspěšnÄ›spojení vyprÅ¡elo dvakrát; zkouším to jeÅ¡tÄ› jednou a naposledyv %s je jiné URLv %s je jiný konfiguraÄní souborv %s je odliÅ¡ný dir_modev %s je jiný souborový systémv %s je odliÅ¡ný file_modev %s je odliÅ¡né gidv %s jsou jiné parametry pÅ™ipojenív %s je odliÅ¡né uidchyba pÅ™i zpracování %schyba pÅ™i zpracování certifikátu serveruchyba pÅ™i zápisu adresáře %schyba pÅ™i zápisu nového indexového souboru %ssoubor %s má chybného vlastníkasoubor %s má chybná oprávnÄ›nínalezeno PID souboru %s. BuÄ %s používá jiný proces, nebo jiné pÅ™ipojení skonÄilo neobvyklezařízení fuse otevÅ™eno úspěšnÄ›skupina %s neexistujeneplatné URLkernel nezná souborový systém %sÅ¡patnÄ› zapsaný řádekchybÄ›jící argumentpřípojný bod je zaneprázdnÄ›npÅ™ipojení selhalo; server nepodporuje WebDAVknihovna neon nepodporuje TLS/SSLnebyl zadán žádný WebDAV serverpro %s nebyla v %s nalezena žádná položkapro pÅ™ipojení není volné žádné coda zařízeníotevÅ™ené soubory pÅ™esahují limit velikosti vyrovnávací pamÄ›ti o %llu MiBvolba %s má neplatný argument; musí to být Äíslo v desítkové soustavÄ›volba %s má neplatný argument; musí to být Äíslovolba %s má neplatný argument; musí to být Äíslo v osmiÄkové soustavÄ›volba %s vyžaduje argumentpid %i dostal signál %iprogram není spuÅ¡tÄ›n jako setuid rootserver je doÄasnÄ› nedostupný; pÅ™esto pÅ™ipojujicertifikát serveru nedopovídá jménu serveruplatnost certifikátu serveru vyprÅ¡elacertifikát serveru je nedůvÄ›ryhodnýcertifikát serveru zatím není platnýpříliÅ¡ mnoho argumentůzkouším jaderný souborový systém codazkouším jaderný souborový systém fuseneznámá chyba certifikátuneznámá chyba pÅ™i zpracování argumentůneznámý jaderný souborový systém %sneznámá volbaodpojuji %sodpojení selhalouživatel %s neexistujeuživatel %s musí být Älenem skupiny %svarování: server nepodporuje zámkychybný vlastník keÅ¡ovacího adresáře %spro keÅ¡ovací adresář %s nastaveno chybné oprávnÄ›nínemůžete nastavit jiného vlastníka souboru než je vaÅ¡e uidmusíte být Älenem skupiny souborového systémudavfs2-1.5.5/po/stamp-po0000644000175000017500000000001213422373177011733 00000000000000timestamp davfs2-1.5.5/po/Rules-quot0000644000175000017500000000340012460776605012263 00000000000000# Special Makefile rules for English message catalogs with quotation marks. DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot .SUFFIXES: .insert-header .po-update-en en@quot.po-create: $(MAKE) en@quot.po-update en@boldquot.po-create: $(MAKE) en@boldquot.po-update en@quot.po-update: en@quot.po-update-en en@boldquot.po-update: en@boldquot.po-update-en .insert-header.po-update-en: @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \ if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ ll=`echo $$lang | sed -e 's/@.*//'`; \ LC_ALL=C; export LC_ALL; \ cd $(srcdir); \ if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$lang -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ exit 1; \ fi; \ fi; \ else \ echo "creation of $$lang.po failed!" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ fi en@quot.insert-header: insert-header.sin sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header en@boldquot.insert-header: insert-header.sin sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header mostlyclean: mostlyclean-quot mostlyclean-quot: rm -f *.insert-header davfs2-1.5.5/po/boldquot.sed0000644000175000017500000000033112460776605012606 00000000000000s/"\([^"]*\)"/“\1â€/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“â€/""/g s/“/“/g s/â€/â€/g s/‘/‘/g s/’/’/g davfs2-1.5.5/po/cs.po0000644000175000017500000006302013422373177011225 00000000000000# Czech translation of davfs2 # Copyright (C) 2007 Werner Baumann # This file is distributed under the same license as the PACKAGE package. # VítÄ›zslav Kotrla , 2007. msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: http://savannah.nongnu.org/support/?" "func=additem&group=davfs2\n" "POT-Creation-Date: 2019-01-24 18:31+0100\n" "PO-Revision-Date: 2007-05-03 19:50+0200\n" "Last-Translator: VítÄ›zslav Kotrla \n" "Language-Team: \n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bitX-Generator: KBabel 1.11.4\n" "X-Generator: KBabel 1.11.4\n" #: src/cache.c:657 msgid "" "connection timed out two times;\n" "trying one last time" msgstr "" "spojení vyprÅ¡elo dvakrát;\n" "zkouším to jeÅ¡tÄ› jednou a naposledy" #: src/cache.c:662 #, c-format msgid "Last try succeeded.\n" msgstr "Poslední pokus byl úspěšný.\n" #: src/cache.c:665 msgid "" "server temporarily unreachable;\n" "mounting anyway" msgstr "" "server je doÄasnÄ› nedostupný;\n" "pÅ™esto pÅ™ipojuji" #: src/cache.c:668 #, c-format msgid "" "Mounting failed.\n" "%s" msgstr "" "PÅ™ipojení selhalo;\n" "%s" #: src/cache.c:708 #, c-format msgid "can't replace %s with %s" msgstr "nemohu nahradit %s pomocí %s" #: src/cache.c:712 #, c-format msgid "error writing new index file %s" msgstr "chyba pÅ™i zápisu nového indexového souboru %s" #: src/cache.c:716 #, c-format msgid "can't create new index file for %s" msgstr "nemohu vytvoÅ™it nový indexový soubor pro %s" #: src/cache.c:959 #, c-format msgid "" "File %s exists on the server but should not. Maybe it is an error in the " "server's LOCK implementation. You may try option 'use_locks 0' in davfs2." "conf." msgstr "" #: src/cache.c:2570 src/cache.c:2604 #, c-format msgid "can't create cache file %s" msgstr "nemohu vytvoÅ™it soubor vyrovnávací pamÄ›ti %s" #: src/cache.c:2619 #, c-format msgid "error writing directory %s" msgstr "chyba pÅ™i zápisu adresáře %s" #: src/cache.c:2787 src/mount_davfs.c:610 src/mount_davfs.c:612 #: src/mount_davfs.c:786 src/mount_davfs.c:788 src/mount_davfs.c:805 #: src/mount_davfs.c:807 src/mount_davfs.c:1754 src/mount_davfs.c:1756 msgid "can't read user data base" msgstr "nemohu pÅ™eÄíst údaje o uživatelích" #: src/cache.c:2798 #, c-format msgid "can't open cache directory %s" msgstr "nemohu otevřít keÅ¡ovací adresář %s" #: src/cache.c:2813 #, c-format msgid "can't create cache directory %s" msgstr "nemohu vytvoÅ™it keÅ¡ovací adresář %s" #: src/cache.c:2820 #, c-format msgid "can't access cache directory %s" msgstr "nemohu pÅ™istoupit ke keÅ¡ovacímu adresáři %s" #: src/cache.c:2823 #, c-format msgid "wrong owner of cache directory %s" msgstr "chybný vlastník keÅ¡ovacího adresáře %s" #: src/cache.c:2827 #, c-format msgid "wrong permissions set for cache directory %s" msgstr "pro keÅ¡ovací adresář %s nastaveno chybné oprávnÄ›ní" #: src/cache.c:2857 msgid "found orphaned file in cache:" msgstr "" #: src/cache.c:2930 #, c-format msgid "error parsing %s" msgstr "chyba pÅ™i zpracování %s" #: src/cache.c:2931 #, c-format msgid " at line %i" msgstr "" #: src/cache.c:2976 #, c-format msgid "open files exceed max cache size by %llu MiBytes" msgstr "" "otevÅ™ené soubory pÅ™esahují limit velikosti vyrovnávací pamÄ›ti o %llu MiB" #: src/dav_coda.c:167 src/dav_fuse.c:164 msgid "can't allocate message buffer" msgstr "nemohu alokovat buffer pro zprávu" #: src/dav_fuse.c:185 src/mount_davfs.c:375 #, c-format msgid "unmounting %s" msgstr "odpojuji %s" #: src/kernel_interface.c:103 src/kernel_interface.c:151 src/mount_davfs.c:235 #: src/mount_davfs.c:319 src/mount_davfs.c:429 src/mount_davfs.c:439 #: src/mount_davfs.c:443 src/mount_davfs.c:483 src/mount_davfs.c:492 #: src/mount_davfs.c:498 src/mount_davfs.c:524 src/mount_davfs.c:576 #: src/mount_davfs.c:604 src/mount_davfs.c:849 src/mount_davfs.c:852 #: src/mount_davfs.c:1118 src/mount_davfs.c:1123 src/mount_davfs.c:1167 #: src/mount_davfs.c:1170 src/mount_davfs.c:1343 src/mount_davfs.c:1380 #: src/webdav.c:441 src/webdav.c:444 msgid "can't change effective user id" msgstr "nemohu zmÄ›nit identifikátor efektivního uživatele" #: src/kernel_interface.c:113 msgid "trying fuse kernel file system" msgstr "zkouším jaderný souborový systém fuse" #: src/kernel_interface.c:121 msgid "fuse device opened successfully" msgstr "zařízení fuse otevÅ™eno úspěšnÄ›" #: src/kernel_interface.c:133 msgid "trying coda kernel file system" msgstr "zkouším jaderný souborový systém coda" #: src/kernel_interface.c:139 msgid "coda device opened successfully" msgstr "zařízení coda otevÅ™eno úspěšnÄ›" #: src/kernel_interface.c:147 #, c-format msgid "unknown kernel file system %s" msgstr "neznámý jaderný souborový systém %s" #: src/kernel_interface.c:174 msgid "no free coda device to mount" msgstr "pro pÅ™ipojení není volné žádné coda zařízení" #: src/kernel_interface.c:183 #, c-format msgid "CODA_KERNEL_VERSION %u not supported" msgstr "CODA_KERNEL_VERSION %u není podporováno" #: src/kernel_interface.c:210 #, fuzzy msgid "loading kernel module fuse" msgstr "neznámý jaderný souborový systém %s" #: src/kernel_interface.c:224 #, fuzzy msgid "loading kernel module fuse failed" msgstr "neznámý jaderný souborový systém %s" #: src/kernel_interface.c:230 msgid "waiting for /dev/fuse to be created" msgstr "" #: src/kernel_interface.c:238 msgid "can't open fuse device" msgstr "nemohu otevřít fuse zařízení" #: src/kernel_interface.c:264 msgid "can't mount using fuse kernel file system" msgstr "nemohu pÅ™ipojit jaderný souborový systém fuse" #: src/mount_davfs.c:233 msgid "program is not setuid root" msgstr "program není spuÅ¡tÄ›n jako setuid root" #: src/mount_davfs.c:299 msgid "can't start daemon process" msgstr "nemohu spustit proces na pozadí" #: src/mount_davfs.c:323 msgid "can't release root privileges" msgstr "nemohu uvolnit oprávnÄ›ní uživatele root" #: src/mount_davfs.c:345 msgid "failed to release tty properly" msgstr "" #: src/mount_davfs.c:357 #, c-format msgid "can't write pid file %s" msgstr "nemohu zapsat pid souboru %s" #: src/mount_davfs.c:377 msgid "unmounting failed" msgstr "odpojení selhalo" #: src/mount_davfs.c:426 src/mount_davfs.c:516 src/mount_davfs.c:595 #: src/mount_davfs.c:810 #, c-format msgid "group %s does not exist" msgstr "skupina %s neexistuje" #: src/mount_davfs.c:431 msgid "can't change group id" msgstr "nemohu zmÄ›nit id skupiny" #: src/mount_davfs.c:436 #, c-format msgid "user %s does not exist" msgstr "uživatel %s neexistuje" #: src/mount_davfs.c:465 #, fuzzy, c-format msgid "can't access file %s" msgstr "nemohu pÅ™istupovat k adresáři %s" #: src/mount_davfs.c:489 src/mount_davfs.c:502 src/mount_davfs.c:580 #: src/mount_davfs.c:616 #, c-format msgid "can't create directory %s" msgstr "nemohu vytvoÅ™it adresář %s" #: src/mount_davfs.c:506 src/mount_davfs.c:584 src/mount_davfs.c:620 #: src/mount_davfs.c:625 src/mount_davfs.c:634 #, c-format msgid "can't access directory %s" msgstr "nemohu pÅ™istupovat k adresáři %s" #: src/mount_davfs.c:512 src/mount_davfs.c:590 #, c-format msgid "can't change mode of directory %s" msgstr "nemohu zmÄ›nit oprávnÄ›ní (mode) adresáře %s" #: src/mount_davfs.c:521 src/mount_davfs.c:600 #, c-format msgid "can't change group of directory %s" msgstr "nemohu zmÄ›nit skupinu adresáře %s" #: src/mount_davfs.c:629 src/mount_davfs.c:791 src/mount_davfs.c:819 #: src/mount_davfs.c:821 msgid "can't read group data base" msgstr "nemohu pÅ™eÄíst údaje o skupinách" #: src/mount_davfs.c:652 src/mount_davfs.c:700 src/mount_davfs.c:1433 #: src/mount_davfs.c:1437 #, c-format msgid "can't open file %s" msgstr "nemohu otevřít soubor %s" #: src/mount_davfs.c:657 #, c-format msgid "%s is already mounted on %s" msgstr "%s už je pÅ™ipojeno jako %s" #: src/mount_davfs.c:680 #, c-format msgid "" "found PID file %s.\n" "Either %s is used by another process,\n" "or another mount process ended irregular" msgstr "" "nalezeno PID souboru %s.\n" "BuÄ %s používá jiný proces, nebo\n" "jiné pÅ™ipojení skonÄilo neobvykle" #: src/mount_davfs.c:718 #, c-format msgid "no entry for %s found in %s" msgstr "pro %s nebyla v %s nalezena žádná položka" #: src/mount_davfs.c:722 #, c-format msgid "different URL in %s" msgstr "v %s je jiné URL" #: src/mount_davfs.c:726 #, c-format msgid "different file system type in %s" msgstr "v %s je jiný souborový systém" #: src/mount_davfs.c:737 #, c-format msgid "different config file in %s" msgstr "v %s je jiný konfiguraÄní soubor" #: src/mount_davfs.c:743 #, fuzzy, c-format msgid "different username in %s" msgstr "v %s je odliÅ¡ný dir_mode" #: src/mount_davfs.c:747 #, fuzzy, c-format msgid "neither option `user' nor option `users' set in %s" msgstr "volba 'user' není v %s nastavena" #: src/mount_davfs.c:750 #, c-format msgid "different mount options in %s" msgstr "v %s jsou jiné parametry pÅ™ipojení" #: src/mount_davfs.c:753 #, c-format msgid "different uid in %s" msgstr "v %s je odliÅ¡né uid" #: src/mount_davfs.c:755 #, c-format msgid "different gid in %s" msgstr "v %s je odliÅ¡né gid" #: src/mount_davfs.c:757 #, c-format msgid "different dir_mode in %s" msgstr "v %s je odliÅ¡ný dir_mode" #: src/mount_davfs.c:759 #, c-format msgid "different file_mode in %s" msgstr "v %s je odliÅ¡ný file_mode" #: src/mount_davfs.c:779 msgid "you can't set file owner different from your uid" msgstr "nemůžete nastavit jiného vlastníka souboru než je vaÅ¡e uid" #: src/mount_davfs.c:797 msgid "you must be member of the group of the file system" msgstr "musíte být Älenem skupiny souborového systému" #: src/mount_davfs.c:830 #, c-format msgid "user %s must be member of group %s" msgstr "uživatel %s musí být Älenem skupiny %s" #: src/mount_davfs.c:855 #, c-format msgid "can't mount %s on %s" msgstr "není možno pÅ™ipojit %s do %s" #: src/mount_davfs.c:857 #, c-format msgid "kernel does not know file system %s" msgstr "kernel nezná souborový systém %s" #: src/mount_davfs.c:859 msgid "mount point is busy" msgstr "přípojný bod je zaneprázdnÄ›n" #: src/mount_davfs.c:934 src/umount_davfs.c:88 #, c-format msgid "" "This is free software; see the source for copying conditions. There is NO\n" "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" msgstr "" "Tento program je svobodný software, podmínky kopírování jsou uvedeny ve " "zdrojovém kódu.\n" "Program je poskytován BEZ JAKÉKOLIV záruky, vÄetnÄ› záruky PRODEJNOSTI Äi " "VHODNOSTI K URÄŒITÉMU ÚČELU.\n" #: src/mount_davfs.c:950 src/umount_davfs.c:114 msgid "unknown error parsing arguments" msgstr "neznámá chyba pÅ™i zpracování argumentů" #: src/mount_davfs.c:959 src/umount_davfs.c:120 msgid "missing argument" msgstr "chybÄ›jící argument" #: src/mount_davfs.c:972 #, c-format msgid "can't evaluate path of mount point %s" msgstr "nemohu vyhodnotit cestu k přípojnému bodu %s" #: src/mount_davfs.c:975 src/umount_davfs.c:122 msgid "too many arguments" msgstr "příliÅ¡ mnoho argumentů" #: src/mount_davfs.c:984 #, c-format msgid "can't get home directory for uid %i" msgstr "nemohu zjistit domovský adresář pro uid %i" #: src/mount_davfs.c:986 msgid "A relative mount point must lie within your home directory" msgstr "Relativní přípojný bod musí ležet ve vaÅ¡em domovském adresáři" #: src/mount_davfs.c:991 msgid "no WebDAV-server specified" msgstr "nebyl zadán žádný WebDAV server" #: src/mount_davfs.c:994 msgid "invalid URL" msgstr "neplatné URL" #: src/mount_davfs.c:1013 msgid "can't determine home directory" msgstr "nelze urÄit domovský adresář" #: src/mount_davfs.c:1120 src/webdav.c:447 #, c-format msgid "can't read client certificate %s" msgstr "nelze pÅ™eÄíst klientský certifikát %s" #: src/mount_davfs.c:1126 #, c-format msgid "client certificate file %s has wrong owner" msgstr "klientský certifikát %s má chybného vlastníka" #: src/mount_davfs.c:1132 #, c-format msgid "client certificate file %s has wrong permissions" msgstr "soubor s klientským certifikátem %s má chybná oprávnÄ›ní" #: src/mount_davfs.c:1184 src/mount_davfs.c:1197 src/mount_davfs.c:1199 #: src/mount_davfs.c:1217 src/mount_davfs.c:1219 src/webdav.c:454 msgid "Password: " msgstr "Heslo: " #: src/mount_davfs.c:1188 #, fuzzy, c-format msgid "" "Please enter the username to authenticate with proxy\n" "%s or hit enter for none.\n" msgstr "" "Zadejte prosím uživatelské jméno pro autentizaci s proxy\n" "%s (pokud žádné zadat nechcete, pouze stisknÄ›te enter).\n" "Uživatelské jméno: " #: src/mount_davfs.c:1190 src/mount_davfs.c:1210 msgid "Username:" msgstr "" #: src/mount_davfs.c:1194 #, c-format msgid "" "Please enter the password to authenticate user %s with proxy\n" "%s or hit enter for none.\n" msgstr "" "Zadejte prosím heslo pro autentizaci uživatele %s na proxy\n" "%s (pokud žádné zadat nechcete, pouze stisknÄ›te enter).\n" #: src/mount_davfs.c:1208 #, fuzzy, c-format msgid "" "Please enter the username to authenticate with server\n" "%s or hit enter for none.\n" msgstr "" "Zadejte prosím uživatelské jméno pro autentizaci na serveru\n" "%s (nebo pouze stisknÄ› enter, pokud nic zadat nechcete).\n" "Uživatelské jméno: " #: src/mount_davfs.c:1214 #, c-format msgid "" "Please enter the password to authenticate user %s with server\n" "%s or hit enter for none.\n" msgstr "" "Zadejte prosím heslo uživatele %s pro autentizaci na serveru\n" "%s (nebo pouze stisknÄ› enter, pokud nic zadat nechcete).\n" #: src/mount_davfs.c:1269 #, c-format msgid "pid %i, got signal %i" msgstr "pid %i dostal signál %i" #: src/mount_davfs.c:1292 msgid "" "Warning: can't read user data base. Mounting anyway, but there is no entry " "in mtab." msgstr "" "Varování: nelze pÅ™eÄíst údaje o uživatelích. PÅ™esto pÅ™ipojuji, v mtab ale " "nebude žádný záznam." #: src/mount_davfs.c:1348 #, fuzzy, c-format msgid "can't create file %s" msgstr "nemohu vytvoÅ™it soubor vyrovnávací pamÄ›ti %s" #: src/mount_davfs.c:1352 #, fuzzy, c-format msgid "can't lock file %s" msgstr "nemohu otevřít soubor %s" #: src/mount_davfs.c:1374 #, fuzzy, c-format msgid "" "Warning: can't write entry into %s, but will mount the file system anyway" msgstr "" "Varování: nelze zapsat položku do mtab, pÅ™esto souborový systém pÅ™ipojím" #: src/mount_davfs.c:1412 #, c-format msgid "option %s has invalid argument;it must be a decimal number" msgstr "volba %s má neplatný argument; musí to být Äíslo v desítkové soustavÄ›" #: src/mount_davfs.c:1415 #, c-format msgid "option %s has invalid argument;it must be an octal number" msgstr "volba %s má neplatný argument; musí to být Äíslo v osmiÄkové soustavÄ›" #: src/mount_davfs.c:1418 #, c-format msgid "option %s has invalid argument;it must be a number" msgstr "volba %s má neplatný argument; musí to být Äíslo" #: src/mount_davfs.c:1444 #, fuzzy, c-format msgid "error writing to file %s" msgstr "chyba pÅ™i zápisu nového indexového souboru %s" #: src/mount_davfs.c:1648 #, c-format msgid "option %s requires argument" msgstr "volba %s vyžaduje argument" #: src/mount_davfs.c:1736 #, c-format msgid "Unknown option %s.\n" msgstr "Neznámá volba %s.\n" #: src/mount_davfs.c:2168 src/mount_davfs.c:2402 src/mount_davfs.c:2414 #, fuzzy, c-format msgid "opening %s failed" msgstr "odpojení selhalo" #: src/mount_davfs.c:2189 src/mount_davfs.c:2234 src/mount_davfs.c:2331 #: src/mount_davfs.c:2430 src/mount_davfs.c:2497 msgid "malformed line" msgstr "Å¡patnÄ› zapsaný řádek" #: src/mount_davfs.c:2312 src/mount_davfs.c:2325 msgid "unknown option" msgstr "neznámá volba" #: src/mount_davfs.c:2406 #, c-format msgid "file %s has wrong owner" msgstr "soubor %s má chybného vlastníka" #: src/mount_davfs.c:2409 #, c-format msgid "file %s has wrong permissions" msgstr "soubor %s má chybná oprávnÄ›ní" #: src/mount_davfs.c:2632 #, c-format msgid "" "Usage:\n" " %s -V,--version : print version string\n" " %s -h,--help : print this message\n" "\n" msgstr "" "Použití:\n" " %s -V,--version : vytiskne informaci o verzi\n" " %s -h,--help : vytiskne tuto zprávu\n" "\n" #: src/mount_davfs.c:2636 #, c-format msgid "" "To mount a WebDAV-resource don't call %s directly, but use\n" "`mount' instead.\n" msgstr "" "Pro pÅ™ipojení zdroje WebDAV nevolejte přímo %s, ale\n" "použijte místo toho `mount'.\n" #: src/mount_davfs.c:2638 #, c-format msgid "" " mount : or\n" " mount : mount the WebDAV-resource as specified in\n" " /etc/fstab.\n" msgstr "" " mount : nebo\n" " mount : pÅ™ipojí zdroj WebDAV tak, jak je zadáno\n" " v /etc/fstab.\n" #: src/mount_davfs.c:2641 #, c-format msgid "" " mount -t davfs [-o options]\n" " : mount the WebDAV-resource \n" " on mountpoint . Only root\n" " is allowed to do this. options is a\n" " comma separated list of options.\n" "\n" msgstr "" " mount -t davfs [-o volby]\n" " : pÅ™ipojí zdroj WebDAV \n" " do přípojného bodu . Pouze root\n" " může provést tuto operaci. Výraz volby\n" " oznaÄuje seznam voleb oddÄ›lených Äárkou.\n" "\n" #: src/mount_davfs.c:2646 #, c-format msgid "" "Recognised options:\n" " conf= : absolute path of user configuration file\n" " uid= : owner of the filesystem (username or numeric id)\n" " gid= : group of the filesystem (group name or numeric id)\n" " file_mode= : default file mode (octal)\n" " dir_mode= : default directory mode (octal)\n" msgstr "" "Rozpoznané volby:\n" " conf= : absolutní cesta k uživatelskému konfiguraÄnímu souboru\n" " uid= : vlastník souborového systému (jméno nebo Äíselné " "oznaÄení)\n" " gid= : skupina souborového systému (jméno skupiny nebo Äíselné " "oznaÄení)\n" " file_mode= : výchozí mode souboru (v osmiÄkové soustavÄ›)\n" " dir_mode= : výchozí mode adresáře (v osmiÄkové soustavÄ›)\n" #: src/mount_davfs.c:2652 #, fuzzy, c-format msgid "" " ro : mount read-only\n" " rw : mount read-write\n" " [no]exec : (don't) allow execution of binaries\n" " [no]suid : (don't) allow suid and sgid bits to take effect\n" " [no]grpid : new files (don't) get the group id of the directory\n" " in which they are created.\n" " [no]_netdev : (no) network connection needed\n" msgstr "" " ro : pÅ™ipojit jen ke Ätení\n" " rw : pÅ™ipojit pro Ätení a zápis\n" " [no]exec : (ne)povolit spuÅ¡tÄ›ní souboru jako programu\n" " [no]suid : (ne)povolit úÄinnost suid a sgid bitů\n" " [no]_netdev : (není) tÅ™eba síťové spojení\n" #: src/umount_davfs.c:94 #, c-format msgid "" "Usage:\n" " u%s -V,--version : print version string\n" " u%s -h,--help : print this message\n" "\n" msgstr "" "Použití:\n" " u%s -V,--version : vypsat údaj o verzi\n" " u%s -h,--help : vypsat tuto zprávu\n" "\n" #: src/umount_davfs.c:98 #, c-format msgid "" "To umount a WebDAV-resource don't call u%s directly, but use\n" "`umount' instead.\n" msgstr "" "Pro odpojení zdroje WebDAV nevolejte přímo u%s, ale použijte\n" "místo toho `umount'.\n" #: src/umount_davfs.c:101 #, c-format msgid "" " umount : umount the WebDAV-resource as specified in\n" " /etc/fstab.\n" msgstr "" " umount : odpojit zdroj WebDAV tak, jak je urÄeno\n" " v /etc/fstab.\n" #: src/umount_davfs.c:132 #, fuzzy, c-format msgid "" "\n" " can't evaluate PID file name;\n" " trying to unmount anyway;\n" " please wait for %s to terminate" msgstr "" "\n" " nemohu Äíst PID ze souboru %s;\n" " pÅ™esto se pokouším odpojit;\n" " Äekejte prosím, až %s skonÄí" #: src/umount_davfs.c:155 #, c-format msgid "" "\n" " can't read PID from file %s;\n" " trying to unmount anyway;\n" " please wait for %s to terminate" msgstr "" "\n" " nemohu Äíst PID ze souboru %s;\n" " pÅ™esto se pokouším odpojit;\n" " Äekejte prosím, až %s skonÄí" #: src/umount_davfs.c:167 #, c-format msgid "" "\n" " can't read process list;\n" " trying to unmount anyway;\n" " please wait for %s to terminate" msgstr "" "\n" " nemohu Äíst seznam procesů;\n" " pÅ™esto se pokouším odpojit;\n" " Äekejte prosím, až %s skonÄí" #: src/umount_davfs.c:183 #, c-format msgid "" "\n" " can't find %s-process with pid %s;\n" " trying to unmount anyway.\n" " you propably have to remove %s manually" msgstr "" "\n" " nemohu najít %s - proces s PID %s;\n" " pÅ™esto se pokouším odpojit.\n" " pravdÄ›podobnÄ› budete muset odstranit %s ruÄnÄ›" #: src/umount_davfs.c:194 #, c-format msgid "%s: waiting while %s (pid %s) synchronizes the cache ." msgstr "%s: Äekám, než si %s (pid %s) sesynchronizuje vyrovnávací paměť." #: src/umount_davfs.c:207 #, fuzzy, c-format msgid "an error occurred while waiting; please wait for %s to terminate" msgstr "pÅ™i Äekání doÅ¡lo k chybÄ›; Äekejte prosím až %s skonÄí" #: src/webdav.c:368 #, fuzzy msgid "socket library initialization failed" msgstr "selhala inicializace knihovny socketů" #: src/webdav.c:381 msgid "can't open stream to log neon-messages" msgstr "" #: src/webdav.c:417 msgid "neon library does not support TLS/SSL" msgstr "knihovna neon nepodporuje TLS/SSL" #: src/webdav.c:423 src/webdav.c:428 #, c-format msgid "can't read server certificate %s" msgstr "nemohu pÅ™eÄíst serverový cerifikát %s" #: src/webdav.c:452 #, c-format msgid "" "Please enter the password to decrypt client\n" "certificate %s.\n" msgstr "" "Zadejte prosím heslo pro deÅ¡ifrování klientského\n" "certifikátu %s.\n" #: src/webdav.c:466 #, c-format msgid "can't decrypt client certificate %s" msgstr "nemohu deÅ¡ifrovat klientský certifikát %s" #: src/webdav.c:532 src/webdav.c:535 msgid "mounting failed; the server does not support WebDAV" msgstr "pÅ™ipojení selhalo; server nepodporuje WebDAV" #: src/webdav.c:543 msgid "warning: the server does not support locks" msgstr "varování: server nepodporuje zámky" #: src/webdav.c:1675 msgid "authentication failure:" msgstr "selhání autentizace:" #: src/webdav.c:1713 #, c-format msgid "%i can't open cache file" msgstr "%i nemůže otevřít soubor vyrovnávací pamÄ›ti" #: src/webdav.c:1721 #, c-format msgid "%i error writing to cache file" msgstr "%i chyba pÅ™i zápisu do souboru vyrovnávací pamÄ›ti" #: src/webdav.c:1990 src/webdav.c:2019 src/webdav.c:2056 msgid "the server certificate is not trusted" msgstr "certifikát serveru je nedůvÄ›ryhodný" #: src/webdav.c:1999 src/webdav.c:2002 msgid "error processing server certificate" msgstr "chyba pÅ™i zpracování certifikátu serveru" #: src/webdav.c:2013 src/webdav.c:2047 msgid "the server certificate is not yet valid" msgstr "certifikát serveru zatím není platný" #: src/webdav.c:2015 src/webdav.c:2050 msgid "the server certificate has expired" msgstr "platnost certifikátu serveru vyprÅ¡ela" #: src/webdav.c:2017 src/webdav.c:2053 msgid "the server certificate does not match the server name" msgstr "certifikát serveru nedopovídá jménu serveru" #: src/webdav.c:2021 src/webdav.c:2059 msgid "unknown certificate error" msgstr "neznámá chyba certifikátu" #: src/webdav.c:2022 #, c-format msgid " issuer: %s" msgstr " vydavatel: %s" #: src/webdav.c:2024 #, c-format msgid " subject: %s" msgstr " subjekt: %s" #: src/webdav.c:2026 #, c-format msgid " identity: %s" msgstr " identita: %s" #: src/webdav.c:2028 #, c-format msgid " fingerprint: %s" msgstr " otisk: %s" #: src/webdav.c:2030 #, c-format msgid "" "You only should accept this certificate, if you can\n" "verify the fingerprint! The server might be faked\n" "or there might be a man-in-the-middle-attack.\n" msgstr "" "Tento certifikát by mÄ›l být pÅ™ijat pouze pokud můžete\n" "ověřit jeho otisk! Server může být podvržen nebo může\n" "dojít k útoku s prostÅ™edníkem (man-in-the-middle attack).\n" #: src/webdav.c:2033 #, c-format msgid "Accept certificate for this session? [y,N] " msgstr "PÅ™ijmout certifikát pro toto sezení? [y,N] " #: src/webdav.c:2060 #, c-format msgid " issuer: %s" msgstr " vydavatel: %s" #: src/webdav.c:2061 #, c-format msgid " subject: %s" msgstr " subjekt: %s" #: src/webdav.c:2062 #, c-format msgid " identity: %s" msgstr " identita: %s" #: src/webdav.c:2065 msgid " accepted by user" msgstr " pÅ™ijat uživatelem" #~ msgid "can't determine mount point" #~ msgstr "nemohu urÄit přípojný bod" #, fuzzy #~ msgid "different option `user' in %s" #~ msgstr "v %s jsou jiné parametry pÅ™ipojení" #, fuzzy #~ msgid "different option `users' in %s" #~ msgstr "v %s jsou jiné parametry pÅ™ipojení" #~ msgid "invalid mount point %s" #~ msgstr "neplatný přípojný bod %s" #~ msgid "mount point %s does not exist" #~ msgstr "přípojný bod %s neexistuje" #~ msgid "no mountpoint specified" #~ msgstr "nebyl zadán žádný přípojný bod" #~ msgid "" #~ "%s is the home directory of user %s.\n" #~ "You can't mount into another users home directory" #~ msgstr "" #~ "%s je domovský adresář uživatele %s.\n" #~ "Do domovského adresáře jiného uživatele nemůžete nic pÅ™ipojovat" #~ msgid "CODA_KERNEL_VERSION %u can not be used on 64 bit systems" #~ msgstr "CODA_KERNEL_VERSION %u není možno použít na 64bitových systémech" davfs2-1.5.5/po/LINGUAS0000644000175000017500000000004412460776605011306 00000000000000# Set of available languages. cs de davfs2-1.5.5/man/0000755000175000017500000000000013422373177010474 500000000000000davfs2-1.5.5/man/umount.davfs.8.pot0000644000175000017500000001166613422371021013733 00000000000000# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2015-02-01 11:54+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: davfs2.conf.5:1 mount.davfs.8:1 umount.davfs.8:1 #, no-wrap msgid "@PACKAGE_STRING@" msgstr "" #. type: SH #: davfs2.conf.5:4 mount.davfs.8:3 umount.davfs.8:3 #, no-wrap msgid "NAME" msgstr "" #. type: SH #: davfs2.conf.5:9 mount.davfs.8:22 umount.davfs.8:20 #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: SH #: davfs2.conf.5:568 mount.davfs.8:547 umount.davfs.8:79 #, no-wrap msgid "AUTHORS" msgstr "" #. type: SH #: davfs2.conf.5:574 mount.davfs.8:564 umount.davfs.8:84 #, no-wrap msgid "DAVFS2 HOME" msgstr "" #. type: Plain text #: davfs2.conf.5:577 mount.davfs.8:567 umount.davfs.8:87 msgid "@PACKAGE_BUGREPORT@" msgstr "" #. type: SH #: davfs2.conf.5:579 mount.davfs.8:569 umount.davfs.8:89 #, no-wrap msgid "SEE ALSO" msgstr "" #. type: SH #: mount.davfs.8:8 umount.davfs.8:8 #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: SH #: mount.davfs.8:15 umount.davfs.8:15 #, no-wrap msgid "SYNOPSIS (root only)" msgstr "" #. type: Plain text #: mount.davfs.8:60 umount.davfs.8:30 msgid "" "I is the mountpoint where the WebDAV resource is mounted on. It may be " "an absolute or relative path." msgstr "" #. type: SH #: mount.davfs.8:67 umount.davfs.8:51 #, no-wrap msgid "OPTIONS" msgstr "" #. type: TP #: mount.davfs.8:69 umount.davfs.8:53 #, no-wrap msgid "B<-V --version>" msgstr "" #. type: Plain text #: mount.davfs.8:72 umount.davfs.8:56 msgid "Output version." msgstr "" #. type: TP #: mount.davfs.8:73 umount.davfs.8:57 #, no-wrap msgid "B<-h --help>" msgstr "" #. type: Plain text #: mount.davfs.8:76 umount.davfs.8:60 msgid "Print a help message." msgstr "" #. type: SH #: mount.davfs.8:376 umount.davfs.8:67 #, no-wrap msgid "FILES" msgstr "" #. type: TP #: mount.davfs.8:437 umount.davfs.8:69 #, no-wrap msgid "I<@SYS_RUN@>" msgstr "" #. type: SH #: mount.davfs.8:540 umount.davfs.8:74 #, no-wrap msgid "BUGS" msgstr "" #. type: TH #: umount.davfs.8:1 #, no-wrap msgid "u@PROGRAM_NAME@" msgstr "" #. type: TH #: umount.davfs.8:1 #, no-wrap msgid "2014-08-23" msgstr "" #. type: Plain text #: umount.davfs.8:6 msgid "u@PROGRAM_NAME@ - Umount-helper to unmount a @PACKAGE@ file system" msgstr "" #. type: Plain text #: umount.davfs.8:11 msgid "B" msgstr "" #. type: Plain text #: umount.davfs.8:13 msgid "BI" msgstr "" #. type: Plain text #: umount.davfs.8:18 msgid "BI" msgstr "" #. type: Plain text #: umount.davfs.8:26 msgid "" "B is a umount helper program. It is called by the " "B(8) command. Its purpose is to prevent the umount command from " "returning unless B<@PROGRAM_NAME@> has synchronized all its cached files " "with the webdav server." msgstr "" #. type: Plain text #: umount.davfs.8:39 msgid "" "While for local file systems B(8) will only return when all cached " "data have been written to disk, this is not automatically true for a mounted " "B<@PACKAGE@> file system. With this umount helper the user can rely on the " "familiar behaviour of B(8). To inform the operating system that the " "file system uses a network connection, you should always use the B<_netdev> " "option, when mounting as B<@PACKAGE@> file system." msgstr "" #. type: Plain text #: umount.davfs.8:43 msgid "" "Depending on the amount of data and the quality of the connection, " "unmounting a B<@PACKAGE@> file system may take some seconds up to some hours." msgstr "" #. type: Plain text #: umount.davfs.8:49 msgid "" "If the B<@PROGRAM_NAME@> daemon encountered serious errors, " "B may return an error instead of unmounting the file " "system. In this case try B. The B<-i> option will prevent " "B(8) from calling B." msgstr "" #. type: TP #: umount.davfs.8:61 #, no-wrap msgid "B<-f -l -n -r -v -t>" msgstr "" #. type: Plain text #: umount.davfs.8:65 msgid "" "This options are B. They are only recognized for compatibility with " "B(8)." msgstr "" #. type: Plain text #: umount.davfs.8:72 msgid "PID-files of running B processes are looked up here." msgstr "" #. type: Plain text #: umount.davfs.8:77 msgid "No known bugs." msgstr "" #. type: Plain text #: umount.davfs.8:82 msgid "" "This man page was written by Werner Baumann Ewerner.baumann@onlinehome." "deE." msgstr "" #. type: Plain text #: umount.davfs.8:94 msgid "B<@PROGRAM_NAME@>(8), B(8), B<@CONFIGFILE@>(5), B(5)" msgstr "" davfs2-1.5.5/man/umount.davfs.80000644000175000017500000000405112460776605013142 00000000000000.TH u@PROGRAM_NAME@ 8 "2014-08-23" @PACKAGE_STRING@ .SH NAME u@PROGRAM_NAME@ \- Umount-helper to unmount a @PACKAGE@ file system .SH SYNOPSIS .B u@PROGRAM_NAME@ [-h | --help] [-V | --version] .br .BI "umount " dir .SH SYNOPSIS (root only) .BI "u@PROGRAM_NAME@ " dir .SH DESCRIPTION \fBu@PROGRAM_NAME@\fR is a umount helper program. It is called by the \fBumount\fR(8) command. Its purpose is to prevent the umount command from returning unless \fB@PROGRAM_NAME@\fR has synchronized all its cached files with the webdav server. .PP \fIdir\fP is the mountpoint where the WebDAV resource is mounted on. It may be an absolute or relative path. .PP While for local file systems \fBumount\fR(8) will only return when all cached data have been written to disk, this is not automatically true for a mounted \fB@PACKAGE@\fR file system. With this umount helper the user can rely on the familiar behaviour of \fBumount\fR(8). To inform the operating system that the file system uses a network connection, you should always use the \fB_netdev\fR option, when mounting as \fB@PACKAGE@\fR file system. .PP Depending on the amount of data and the quality of the connection, unmounting a \fB@PACKAGE@\fR file system may take some seconds up to some hours. .PP If the \fB@PROGRAM_NAME@\fR daemon encountered serious errors, \fBu@PROGRAM_NAME@\fR may return an error instead of unmounting the file system. In this case try \fBumount -i\fR. The \fB-i\fR option will prevent \fBumount\fR(8) from calling \fBu@PROGRAM_NAME@\fR. .SH OPTIONS .TP .B -V --version Output version. .TP .B -h --help Print a help message. .TP .B -f -l -n -r -v -t This options are \fBignored\fR. They are only recognized for compatibility with \fBumount\fR(8). .SH FILES .TP .I @SYS_RUN@ PID-files of running \fBu@PROGRAM_NAME@\fR processes are looked up here. .SH BUGS No known bugs. .SH AUTHORS This man page was written by Werner Baumann . .SH DAVFS2 HOME @PACKAGE_BUGREPORT@ .SH SEE ALSO .BR @PROGRAM_NAME@ (8), .BR umount (8), .BR @CONFIGFILE@ (5), .BR fstab (5) davfs2-1.5.5/man/davfs2.conf.50000644000175000017500000004464113422365126012617 00000000000000.TH @CONFIGFILE@ 5 2014\-06\-09 @PACKAGE_STRING@ .SH NAME \fB@CONFIGFILE@\fR \- Configuration file for \fB@PROGRAM_NAME@\fR .SH DESCRIPTION There is a system wide configuration file \fI@SYS_CONF_DIR@/@CONFIGFILE@\fR and user configuration files \fI~/.@PACKAGE@/@CONFIGFILE@\fR. When \fB@PROGRAM_NAME@\fR is invoked by root, only the system wide configuration file is read. When invoked by an ordinary user, the user configuration file is read in addition. Settings from the user configuration file will take precedence over the system wide configuration. .PP The configuration file consists of lines where each line contains a keyword value pair. Keyword and value are separated by spaces and/or tabs. .PP The file may contain sections that are for one specific mount point only. Such a section starts with a line, that contains the full path of the mount point enclosed in square brackets. The section ends at the start of the next section or the end of file. Options that shall apply to all mounted file system must come before the first sections. Options given in a mount specific section will have precedence. .SH EXAMPLE kernel_fs coda .br proxy foo.bar:8080 .br use_locks 0 .br .br [/media/dav] .br use_locks 1 .br .br [/home/otto/mywebspace] .br gui_optimize 1 .PP All mounted @PACKAGE@ file systems will use the coda kernel file system and the proxy foo.bar. All @PACKAGE@ file systems except /media/dav will disable the use of the locks. /home/otto/mywebspace will use the gui_optimize option. .SH GENERAL SYNTAX RULES Lines that only contain spaces and tabs (empty lines) are ignored. .PP # indicates a comment. The rest of the line is ignored. .PP \(rs is the escape character. .PP \(dq" is used for quotation. .PP If a value contains one of the special characters space, tab, #, \(rs, or \(dq, this character must be escaped by a preceding \(rs. Use \(cq\(rs\ \(cq instead of \(cq\ \(cq, \(cq\(rs#\(cq instead of \(cq#\(cq, \(cq\(rs\(rs\(cq instead of \(cq\(rs\(cq and \(cq\(rs\(dq\(cq instead of \(cq\(dq\(cq. .PP Values containing spaces, tabs or # may instead be enclosed in double quotes. But \(dq and \(cq must be escaped even within double quotes. If the starting line of a section is enclosed in double quotes, the square brakets must be within the quotes (like \(dq[/home/otto/with space]\(dq). .PP Boolean option values (yes/no) must be given as numerical value. 0 for no, 1 for yes. .SH AVAILABLE CONFIGURATION OPTIONS .SH General Options .TP .B dav_user When invoked by root the \fB@PROGRAM_NAME@\fR daemon will run as this user. Value must be given as \fIname\fP, \fBnot\fR as numerical id. .br Default: @USER@ .br \fBOnly allowed in the system wide configuration file.\fR .TP .B dav_group The group of the running \fB@PROGRAM_NAME@\fR daemon. Ordinary users must be member of this group in order to mount a @PACKAGE@ file system. Value must be given as \fIname\fP, \fBnot\fR as numerical id. .br Default: @GROUP@ .br \fBOnly allowed in the system wide configuration file.\fR .TP .B kernel_fs Which kernel file system to use, to integrate into the virtual file system. Possible values are \fIfuse\fP and \fIcoda\fP. .br Default: fuse .TP .B buf_size Size in KiByte of the buffer used to communicate with the kernel file system. Only useful with \fIfuse\fP, where read and write operations may profit from a larger buffer. .br Default: 16 .SH WebDAV Related Options .TP .B use_proxy Whether to use a proxy to connect to the WebDAV server. 0 = no, 1 = yes. If no proxy is defined in the configration file or the environment variables \fBhttps_proxy\fR, \fBhttp_proxy\fR and \fBall_proxy\fR, this option has no effect. .br Default: 1 .br \fBOnly allowed in the system wide configuration file.\fR .TP .B proxy Name of the proxy. The name must be the fully qualified domain name (no scheme). If the proxy port differs from the default of 8080, it must be appended, separated by a colon. Examples: \fIfoo.bar:1704\fP or \fIfoo.bar\fP .br \fBOnly allowed in the system wide configuration file.\fR .TP .B trust_ca_cert Name of a certificate file in PEM format. The name of the file may be given as absolute path or as file name only. In the latter case the directories \fI~/.@PACKAGE@/@CERTS_DIR@\fP and \fI@SYS_CONF_DIR@/@CERTS_DIR@\fP will be searched. .br This option is useful when the certificate presented by the server cannot be verified using the system's data base of trusted certificate authorities (CA). The certificate file must contain the self-signed certificate of the top level CA in the chain of trust. It may be a self-signed server certificate (but see also \fBtrust_server_cert\fR). With this option the system's CA data base is ignored. .br \fBNote:\fR Even if the server's certificate is trusted that does not mean it is accepted. Additionally the certificate's date must be valid and either the CommonName or the SubjectAltName must match the host name of the server. .TP .B servercert Same as \fBtrust_ca_cert\fR but badly named. .br \fBDeprecated\fR .TP .B trust_server_cert Name of a certificate file in PEM format. The name of the file may be given as absolute path or as file name only. In the latter case the directories \fI~/.@PACKAGE@/@CERTS_DIR@\fP and \fI@SYS_CONF_DIR@/@CERTS_DIR@\fP will be searched. .br Useful when the server's certificate can't be verified or is even invalid, but \fByou know\fR that you can trust this certificate. When the server presents a certificate that is exactly equal to this one and when the server is able to authenticate against the public key contained in this certificate the connection will be established. .br This is the preferred option for self signed server certificates. .br No other ways to verify the certificate will be tried and the certificate will not be checked for validity. .TP .B clientcert Name of a certificate in PKCS#12 format that will be used to authenticate with the server. The name of the file may be given as absolute path or as file name only. In the latter case the directories \fI~/.@PACKAGE@/@CERTS_DIR@/@CLICERTS_DIR@\fP and \fI@SYS_CONF_DIR@/@CERTS_DIR@/@CLICERTS_DIR@\fP will be searched. .br \fBWarning:\fR If the client certificate is issued by an intermediary CA and not by a top level CA then the TLS-specification requires the client to send the complete chain of certificates (without the top level CA-certificate). davfs2 only sends the client certificate. To work around this bug the server must store and trust the complete chain of CA-certificates down to the one CA that isssued the client certificate. .TP .B secrets Name of a file that holds the credentials for servers and the proxy, and passwords to decrypt the client certificate. The name must be an absolute path. The file must be read and writable by the owner only (mode 600). .br Default: ~/.@PACKAGE@/@SECRETSFILE@ .br \fBOnly allowed in the user configuration file.\fR The system wide secrets file is always \fI@SYS_CONF_DIR@/@SECRETSFILE@\fP. .TP .B ask_auth Ask the user interactively for credentials and passwords if not found in the secretsfile. Ask the user if a servercert cannot be verified. 0 = no, 1 = yes. .br Default: 1 .TP .B use_locks Whether to lock files on the server when they are opened for writing. 0 = no, 1 = yes. .br Default: 1 .TP .B lock_owner A string send to the server to identify the owner of a lock. If a WebDAV resource is used at the same time by different clients using the same credentials, different values for lock_owner should be chosen. .br Default: the username from the credentials .TP .B lock_timeout How long in seconds locks should be valid, before the server removes them. The server may ignore this and set its own timeout value. .br Default: 1800 .TP .B lock_refresh That many seconds before the lock times out, \fB@PROGRAM_NAME@\fR will try to refresh the lock. The value should be substantially greater than \fBdelay_upload\fR. .br Default: 60 .TP .B use_expect100 To avoid uploading big files that will be refused by the server, \fB@PROGRAM_NAME@\fR uses the header \fIexpect: 100\-continue\fP to get the o.k. from the server before uploading. Not all servers understand this. 0 = no, 1 = yes. .br Default: 0 .TP .B if_match_bug Some servers do not handle If-Match and If-None-Match-headers correctly. This otion tells \fB@PROGRAM_NAME@\fR to use HEAD instead of thes headers. 0 = no, 1 = yes. .br Default: 0 .TP .B drop_weak_etags Popular servers send a weak etag whenever they are not able to calculate a strong one. This weak etag will never be valid, but after one second it is silently turned into a strong, valid etag. With this flag set to 1, \fB@PROGRAM_NAME@\fR will never use this weak etags. If the flag is 0, the weakness indicator will be removed and the etag is assumed to be strong. There is some danger of the Lost-Update-Problem with this. But it is minimized when using locks. .br You should turn this on, when you can't use locks and there is the danger of concurrent access to the same resource. In this case the etag is not used at all and the resource cannot be cached. .br 0 = no, 1 = yes. .br Default: 0 .TP .B n_cookies Some servers will only work when they are allowed to set a cookie and this cookie is returned in subsequent requests. This option sets the number of cookies you are willing to accept and include in subsequent requests. davfs2 will only care for the name and the value of the cookie and ignore all of the possible attributes. .br Default: 0 .TP .B precheck If option \fBif_match_bug\fR is set: use HEAD-requests to check for existence or modification of a file to avoid unintended overwriting what somebody else changed. Has no effect if option \fBif_match_bug\fR is 0. You should only set it 0, if there is no concurrent access to the server. 0 = no, 1 = yes. .br Default: 1 .TP .B ignore_dav_header Some servers send wrong information about their capabilities in the DAV-header. In this case the header should be ignored. .br Default: 0 .TP .B use_compression Use gzip-compression for downloading files, if supported by the server. Uploads will still be uncompressed. .br Default: 0 .TP .B min_propset Some servers are reported to significantly slow down when the Etag and Last-Modified properties are requested. This option will reduce the set of WebDAV-properties requested from the server to the minimal set. Don't use it if your file system is used for reading and writing. Without Etag or Last-Modified davfs2 will not be able to check for changes on the server which may result in unnecessary downloads and lost updates. This option will also effectively disable caching of files because files in the cache can't be reused. .br Default: 0 .TP .B follow_redirect If the server redirects a GET-request to a different resource (maybe on a different server) then follow this redirection. .br Currently there are some restrictions: all redirects are treated as temporary redirects; if the new server requires authentication then the same credentials are use as for the original server; if the connection is over TLS the server certificate will be checked against the trusted CAs known by the system; user configured server certificates and client certificates are not used for the new server. .br Default: 0 .TP .B server_charset When extracting file names from the path component of the URL, \fB@PROGRAM_NAME@\fR will assume they are encoded using this character set and translate file names to the local character set. This is \fBnot\fR about encoding of file contents and \fBnot\fR about HTTP escaping rules. .br There is no means in HTTP to know the character encoding of the path component. There may be even different encodings within the same path, as the encoding of file names is often defined by the clients that created them. Nowadays it is best to use only UTF\-8 encoding and to do no conversion. If you are not sure that all clients understand UTF\-8, restrict file names to pure us\-ascii. Never use characters in file names, that may have a special function on some operating systems (like /, : and \(rs). .br Default: no character set conversion .TP .B connect_timeout When creating a TCP connection to the server \fB@PROGRAM_NAME@\fR will wait that many seconds for an answer before assuming an error. If a value of '0' is used then no explicit timeout handling is set and the connect call will only timeout as dictated by the TCP stack. .br This parameter only takes effect if the version of neon in use (neon version > 0.26) and the OS support non-blocking I/O. .br Default: 10 .TP .B read_timeout How long in seconds \fB@PROGRAM_NAME@\fR will wait for an answer from the server before assuming an error. .br Default: 30 .TP .B retry When \fB@PROGRAM_NAME@\fR can not reach the server it will try again after \fBretry\fR seconds. For subsequent retries the interval will be increased up to \fBmax_retry\fR seconds. .br Default: 30 .TP .B max_retry Maximum value of the retry interval. .br Default: 300 .TP .B max_upload_attempts When uploading a changed file fails temporarily \fB@PROGRAM_NAME@\fR will retry with increasing intervals, but not more often than this. .br With a bad connection this will cause additional traffic. To reduce traffic caused by unsuccessful attempts option \fBuse_expect100\fR can be set. But please test it. Most proxies and some servers don't support this header. .br Default: 15 .TP .B add_header Your server might expect special headers to do what you want. Different from other options, this one takes two values: the name of the header and its value. Some ASP-backends to IIS seem to require the Microsoft specific header "Translate: F". You can add it like this: .br add_header Translate F .br \fB@PROGRAM_NAME@\fR will add header "Translate: F" on all requests. .br This option is cumulative. You can enter more than one add_header option and all of them will be added. Also add_header options from @SYS_CONF_DIR@/@CONFIGFILE@ and ~/.@PACKAGE@/@CONFIGFILE@ are merged. .SH Cache Related Options .TP .B backup_dir Each mounted @PACKAGE@ file system has a directory to store backups of files that could not be stored back to the server. This sets the name of this directory. You should regularly check this directory. .br Default: lost+found .TP .B cache_dir The directory where \fB@PROGRAM_NAME@\fR will store cached files. For every mount point a subdirectory will be created. .br In the systemwide configuration file this will set the system wide cache, used by root. In a users configuration file it will set the cache used by this user. .br Defaults: @SYS_CACHE_DIR@ and ~/.@PACKAGE@/cache .TP .B cache_size The amount of disk space in MiByte that may be used. \fB@PROGRAM_NAME@\fR will always take enough space to cache open files, ignoring this value if necessary. .br Default: 50 .TP .B table_size \fB@PROGRAM_NAME@\fR maintains a hash table with an entry for each known file or directory. This gives the number of entries in this table. For large file systems (more than some hundreds of files) increasing this number may speed up file operations. The value should be a power of 2. .br Default: 1024 .TP .B dir_refresh After \fB@PROGRAM_NAME@\fR has got information about files in a directory it considers it valid for this time in seconds. Note: This does not affect opening of files and reading a directory by an application. .br Default: 60 .TP .B file_refresh When a file or directory is opened by an application, \fB@PROGRAM_NAME@\fR will first check the server for a newer version. But some applications do open calls on the same file in short sequence. To avoid unnecessary traffic \fB@PROGRAM_NAME@\fR will wait that many seconds before it send a new request for the same information. .br Default: 1 .TP .B delay_upload When a file that has been changed is closed, \fB@PROGRAM_NAME@\fR will wait that many seconds before it will upload it to the server. This will avoid uploading of temporary files that will be removed immediately after closing. If you need the files to appear on the server immediately after closing, set this option to 0. .br Default: 10 .TP .B gui_optimize When a file is opened, \fB@PROGRAM_NAME@\fR will have to check the server whether there is a newer version. Graphical User Interfaces tend to open just any file, slowing down things dramatically for large directories. With this option \fB@PROGRAM_NAME@\fR will try to get this information from all files in a directory with one PROPFIND request. 0 = no, 1 = yes. .br Default: 0 .TP .B minimize_mem davfs2 holds information about files and directories in the working memory. It will stay there as long as the file system is mounted and the file is not deleted. By this memory usage by davfs2 will grow over time and may slow down davfs2. With this option set to 1 davfs2 will regularly clean the memory from information that has not be used for some time. 0 = no, 1 = yes. .br \fBWarning:\fR Most file attributes are only maintained locally because there is no corresponding WebDAV property. So if users change attributes (owner, group, access bits) locally this changes will be lost and attribute values will be reset to the default values. .br Default: 0 .SH Debugging Options .TP .B debug Send debug messages to the syslog daemon. The value tells what kind of information shall be logged. The messages are send with facility LOG_DAEMON and priority LOG_DEBUG. It depends from the configuration of the syslog daemon where the messages will go (propably /var/log/messages, /var/log/syslog or /var/log/daemon.log). Whether HTTP related debug messages are available depends on your neon library. .br Unlike other options, this option is cumulative. If there are several debug entries with different values, all of them will be applied. Also debug options from @SYS_CONF_DIR@/@CONFIGFILE@ and ~/.@PACKAGE@/@CONFIGFILE@ are merged. .br \fBNote:\fR Debug messages let the log-files grow quickly. Never use this option in normal operation of mount.davfs. .br Default: no debugging messages .RS .TP .B Recognized values: .TP .B config Command line and configuration options. .TP .B kernel Upcalls from the kernel file system. .TP .B cache Cache operations like adding and removing nodes. .TP .B http HTTP headers. .TP .B xml Parsing of the XML-body of WebDAV-requests. .TP .B httpauth Negotiation of authentication. .TP .B locks Information about locks. .TP .B ssl TLS/SSL related stuff like certificates. .TP .B httpbody Complete body of HTTP-responses. .TP .B secrets Also print confidential information, which is usually omitted or obscured. .TP .B most Includes config, kernel, cache and http. .RE .SH AUTHORS This man page was written by by Werner Baumann . .SH DAVFS2 HOME @PACKAGE_BUGREPORT@ .SH SEE ALSO .BR @PROGRAM_NAME@ (8), .BR u@PROGRAM_NAME@ (8), .BR mount (8), .BR umount (8), .BR fstab (5) davfs2-1.5.5/man/de/0000755000175000017500000000000013422373177011064 500000000000000davfs2-1.5.5/man/de/umount.davfs.8.translator0000644000175000017500000000025612460776604015724 00000000000000PO4A-HEADER:mode=after;position=^\.SH AUTOREN;beginboundary=^\.SH .SH ÜBERSETZER Das Handbuch wurde von Werner Baumann übersetzt. 2009-04-27 davfs2-1.5.5/man/de/mount.davfs.8.po0000644000175000017500000014766513422371022013764 00000000000000# #-#-#-#-# mount.davfs.8.po (davfs2) #-#-#-#-# # German translation of mount.davfs man page. # Copyright (C) 2007, 2014 Werner Baumann # Werner Baumann , 2007. # msgid "" msgstr "" "Project-Id-Version: davfs2 1.5.4\n" "POT-Creation-Date: 2016-05-16 11:10+0200\n" "PO-Revision-Date: 2016-05-16 11:20+0200\n" "Last-Translator: Werner Baumann \n" "Language-Team: \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" # type: TH #. type: TH #: davfs2.conf.5:1 mount.davfs.8:1 umount.davfs.8:1 #, no-wrap msgid "@PACKAGE_STRING@" msgstr "@PACKAGE_STRING@" # type: SH #. type: SH #: davfs2.conf.5:4 mount.davfs.8:3 umount.davfs.8:3 #, no-wrap msgid "NAME" msgstr "BEZEICHNUNG" # type: SH #. type: SH #: davfs2.conf.5:9 mount.davfs.8:22 umount.davfs.8:20 #, no-wrap msgid "DESCRIPTION" msgstr "BESCHREIBUNG" # type: SH #. type: SH #: davfs2.conf.5:568 mount.davfs.8:551 umount.davfs.8:79 #, no-wrap msgid "AUTHORS" msgstr "AUTOREN" # type: SH #. type: SH #: davfs2.conf.5:574 mount.davfs.8:568 umount.davfs.8:84 #, no-wrap msgid "DAVFS2 HOME" msgstr "DAVFS2 HOME" # type: TH #. type: Plain text #: davfs2.conf.5:577 mount.davfs.8:571 umount.davfs.8:87 msgid "@PACKAGE_BUGREPORT@" msgstr "@PACKAGE_BUGREPORT@" # type: SH #. type: SH #: davfs2.conf.5:579 mount.davfs.8:573 umount.davfs.8:89 #, no-wrap msgid "SEE ALSO" msgstr "SIEHE AUCH" # type: TH #. type: TH #: mount.davfs.8:1 #, no-wrap msgid "@PROGRAM_NAME@" msgstr "@PROGRAM_NAME@" # type: TH #. type: TH #: mount.davfs.8:1 #, no-wrap msgid "2016-04-15" msgstr "2016-04-15" # type: Plain text #. type: Plain text #: mount.davfs.8:6 msgid "@PROGRAM_NAME@ - Mount a WebDAV resource as @PACKAGE@ file system" msgstr "" "@PROGRAM_NAME@ - Hängt eine WebDAV-Resource als @PACKAGE@-Dateisystem ein" # type: SH #. type: SH #: mount.davfs.8:8 umount.davfs.8:8 #, no-wrap msgid "SYNOPSIS" msgstr "ÜBERSICHT" # type: Plain text #. type: Plain text #: mount.davfs.8:11 msgid "B<@PROGRAM_NAME@ [-h | --help] [-V | --version]>" msgstr "B<@PROGRAM_NAME@ [-h | --help] [-V | --version]>" # type: Plain text #. type: Plain text #: mount.davfs.8:13 msgid "BIB< | >IB<}>" msgstr "BIB< | >IB<}>" # type: SH #. type: SH #: mount.davfs.8:15 umount.davfs.8:15 #, no-wrap msgid "SYNOPSIS (root only)" msgstr "ÜBERSICHT (nur für root)" # type: Plain text #. type: Plain text #: mount.davfs.8:18 msgid "BI