mlocate-0.26/0000775000175000017500000000000012027217355010074 500000000000000mlocate-0.26/README0000664000175000017500000000232011544666431010677 00000000000000About ===== mlocate is a locate/updatedb implementation. The 'm' stands for "merging": updatedb reuses the existing database to avoid rereading most of the file system, which makes updatedb faster and does not trash the system caches as much. The locate(1) utility is intended to be completely compatible to slocate. It also attempts to be compatible to GNU locate, when it does not conflict with slocate compatibility. New releases will be available at https://fedorahosted.org/mlocate/ . Installation ============ Before installation it is necessary to create a group called "mlocate" to allow hiding the contents of the database from users. When updatedb is run by root, the database contains names of files of all users, but only members of the "mlocate" group may access it. "locate" is installed set-GID "mlocate", no other program should need to run with this GID. Portability =========== mlocate should be portable to all SUSv3-compliant UNIXes, although it is currently tested only on recent Linux distributions. Bugs ==== Please consider reporting the bug to your distribution's bug tracking system. Otherwise, report bugs at https://fedorahosted.org/mlocate/ . Bug reports with patches are especially welcome. mlocate-0.26/NEWS0000664000175000017500000001567612027216221010521 00000000000000Changes in version 0.26: - New option -A, --all, that requires all patterns to match. Based on a patch by Carlos J. G. Duarte . - Add a >3-second margin when checking whether a directory is being currently modified, to account for low timestamp precision on FAT and for Linux kernel races. - Make the test suite more reliable and a little faster. - Updated translations. Changes in version 0.25: - Handle zero-length file names (a kernel bug) more gracefully. - Avoid PATH_MAX to hopefully support Hurd better. - Document that parent directories must exist for permission checking. - Minor bug fixes. - Updated translations. Changes in version 0.24: - Use /proc/self/mountinfo for bind mount detection; recent distributions symlink /etc/mtab to /proc/self/mounts, losing information we need. - Fix a man page typo. Patch by John Bradshaw . - Updated translations. Changes in version 0.23.1: - New or updated translations: - Greek by Pierros Papadeas - Traditional Chinese by Chai Zhenhua and Wei-Lun Chao Changes in version 0.23: - Don't prune no-op bind mounts (mounting a directory over itself) - New or updated translations: - Arabic by Amjad Saad and Munzir Taha (منذر طه) - Bosnian by Nikola Pajtić , Miloš Komarčević and Edmon Begoli - German by Christian Faulhammer - Persian by Mostafa - Dutch by Geert Warrink Changes in version 0.22.4: - New or updated translations: - Hungarian by Peter Bojtos - Swedish by Göran Uddeborg - Ukrainian by Maxim V. Dzumanenko Changes in version 0.22.3: - New or updated translations: - Asturian by Marcos Alvarez Costales - Greek by Pierros Papadeas - British English by Bruce Cowan - Korean by Eunju Kim - Russian by Anatoliy Guskov , Raspopov Sergey , and Yulia - Simplified Chinese by CHAI Zhenhua Changes in version 0.22.2: - New or updated translations: - Portuguese by Rui Gouveia - Japanese by Hyu_gabaru Ryu_ichi - Polish by Piotr Drąg Changes in version 0.22.1: - Fix mlocate.db format documentation. Patch by Tomas Zellerin . - New or updated translations: - Canadian by Xavier Queralt Mateu - Danish by Kris Thomsen - German by Thomas Spura - French by Charles-Antoine Couret - Japanese by Hyu_gabaru Ryu_ichi - Dutch by R.E. van der Luit Changes in version 0.22: - Ignore --require-visibility in locate if the database is not owned by group mlocate or it is readable by others (#7). - Refuse to open unprivileged databases in directories only accessible by group mlocate. - New or updated translations: - Spanish by H. Daniel Cabrera and Domingo Becker - Hungarian by Sulyok Péter - Swedish by Magnus Glantz - Simplified Chinese by CHAI Zhenhua Changes in version 0.21.1: - Clarified updatedb.conf(5) a bit. - New or updated translations: - Catalan by Xavier Queralt Mateu - German by Thomas Spura - Italian by Francesco Tombolini - Polish by Piotr Drąg - Brazilian Portuguese by Taylon Silmer - Serbian by Miloš Komarčević Changes in version 0.21: - New variable PRUNENAMES, new updatedb options --add-prunenames and --prunenames. Resolves ticket:2. - Fix prunepaths and bind mount pruning in certain cases. - Lock the database in updatedb to avoid more than one updatedb running concurrently. - Remove the temporary database file if updatedb aborts with an assertion failure. - Fix sorting of prunefs if an entry contains uppercase characters. Resolves ticket:3. - New or updated translations: - Brazilian Portuguese by Igor Pires Soares and Ivo Nascimento - Czech - Hungarian by Nagy Enikő - Malay/Bahasa Melayu by Mohd Izhar Firdaus Ismail Changes in version 0.20: - Fix more typos in man pages. Patch by Adeodato Simó . - Workaround (make check) failures when running as root. - New translations: - Brazilian Portuguese by Diego Búrigo Zacarão , - Bulgarian by Alexander Todorov , - French by Robert-André Mauchin and Thomas Canniot , - German by Fabian Affolter , - Italian by Silvio Pierro and Gianluca Busiello , - Polish by Piotr Drąg , - Serbian by Nikola Pajtić and Miloš Komarčević Changes in version 0.19: - New home page at https://fedorahosted.org/mlocate/ . - New updatedb option --debug-pruning. - Fix typos in man pages. Patch by A. Costa . - Make some aspects of the source code more portable. Patches by Steve Edwards . Changes in version 0.18: - Fix uninitialized memory access when dbpath contains "-" - Add some examples to the man pages Changes in version 0.17: - Don't hang if a NFS filesystem in an excluded subtree is unavailable. Changes in version 0.16: - INCOMPATIBLE CHANGE: The --database-root parameter of updatedb is always canonicalized. - Allow global exclusion of bind mounts - Fix string matching in some multibyte locales if no glob characters are used - Use gnulib, for better portability to non-Linux systems - Use O_NOATIME in updatedb - Miscellaneous small fixes, efficiency improvements and cleanups. Changes in version 0.15: - Use /proc/self/mounts or /proc/mounts if available - Add a test suite - Fix typos in error messages Changes in version 0.14: - Fix case-insensitive search with rare bracket expression constructs. - Speed up case-insensitive search about five times. Changes in version 0.13: - Fix a brown-paper-bag bug in Makefile.am, installing updatedb set-GID instead of locate. Changes in version 0.12: - Avoid assertion failures on invalid nanosecond times returned by Captive NTFS. Changes in version 0.11: - Nonprintable characters are replaced by `?' when stdout is a tty and --null is not specified. - updatedb is installed to $(bindir). mlocate-0.26/AUTHORS0000664000175000017500000000004110762432334011057 00000000000000Miloslav Trmac mlocate-0.26/configure0000775000175000017500000123270112027217341011724 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.68 for mlocate 0.26. # # Report bugs to . # # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software # Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. # # Copyright (C) 2005, 2006, 2007, 2009, 2010, 2012 Red Hat, Inc. All rights # reserved. # This copyrighted material is made available to anyone wishing to use, modify, # copy, or redistribute it subject to the terms and conditions of the GNU General # Public License v.2. # # This program is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. See the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 51 Franklin # Street, Fifth Floor, Boston, MA 02110-1301, USA. # # Author: Miloslav Trmac ## -------------------- ## ## 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 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" 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 : # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV export CONFIG_SHELL case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 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 mitr@redhat.com $0: about your system, including any error possibly output $0: before this message. Then install a modern shell, or $0: manually run the script under such a shell if you do $0: 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_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; } # 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 -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' 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 if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in #( -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # 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='mlocate' PACKAGE_TARNAME='mlocate' PACKAGE_VERSION='0.26' PACKAGE_STRING='mlocate 0.26' PACKAGE_BUGREPORT='mitr@redhat.com' PACKAGE_URL='https://fedorahosted.org/mlocate/' ac_unique_file="src/locate.c" # 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_func_list= ac_header_list= gt_needs= ac_subst_vars='gl_LTLIBOBJS gl_LIBOBJS am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS POSUB INTLLIBS LTLIBICONV LIBICONV INTL_MACOSX_LIBS XGETTEXT_EXTRA_OPTIONS MSGMERGE XGETTEXT_015 XGETTEXT GMSGFMT_015 MSGFMT_015 GMSGFMT MSGFMT GETTEXT_MACRO_VERSION USE_NLS LIBGNU_LTLIBDEPS LIBGNU_LIBDEPS WCTYPE_H HAVE_WCTYPE_H NEXT_WCTYPE_H HAVE_WINT_T HAVE_ISWCNTRL NEXT_WCHAR_H HAVE_WCHAR_H WCHAR_H REPLACE_WCWIDTH HAVE_DECL_WCWIDTH GNULIB_WCWIDTH HAVE_UNISTD_H NEXT_UNISTD_H SYS_TIME_H_DEFINES_STRUCT_TIMESPEC TIME_H_DEFINES_STRUCT_TIMESPEC NEXT_TIME_H REPLACE_TIMEGM REPLACE_STRPTIME REPLACE_NANOSLEEP REPLACE_LOCALTIME_R NEXT_STRING_H NEXT_STDLIB_H REPLACE_MKSTEMP HAVE_REALLOC_POSIX HAVE_MKDTEMP HAVE_MALLOC_POSIX HAVE_GETSUBOPT HAVE_CALLOC_POSIX GNULIB_MKSTEMP GNULIB_MKDTEMP GNULIB_GETSUBOPT GNULIB_CALLOC_POSIX GNULIB_REALLOC_POSIX GNULIB_MALLOC_POSIX STDINT_H WINT_T_SUFFIX WCHAR_T_SUFFIX SIZE_T_SUFFIX SIG_ATOMIC_T_SUFFIX PTRDIFF_T_SUFFIX HAVE_SIGNED_WINT_T HAVE_SIGNED_WCHAR_T HAVE_SIGNED_SIG_ATOMIC_T BITSIZEOF_WINT_T BITSIZEOF_WCHAR_T BITSIZEOF_SIZE_T BITSIZEOF_SIG_ATOMIC_T BITSIZEOF_PTRDIFF_T HAVE_SYS_BITYPES_H HAVE_SYS_INTTYPES_H HAVE_STDINT_H NEXT_STDINT_H INCLUDE_NEXT HAVE_SYS_TYPES_H HAVE_INTTYPES_H HAVE_UNSIGNED_LONG_LONG_INT HAVE_LONG_LONG_INT HAVE__BOOL STDBOOL_H REPLACE_LSEEK REPLACE_LCHOWN REPLACE_GETCWD REPLACE_FCHDIR REPLACE_CHOWN HAVE_DECL_GETLOGIN_R HAVE_SLEEP HAVE_READLINK HAVE_FTRUNCATE HAVE_DUP2 GNULIB_SLEEP GNULIB_READLINK GNULIB_LSEEK GNULIB_LCHOWN GNULIB_GETLOGIN_R GNULIB_GETCWD GNULIB_FTRUNCATE GNULIB_FCHDIR GNULIB_DUP2 GNULIB_CHOWN REPLACE_STRERROR HAVE_DECL_STRERROR HAVE_DECL_STRTOK_R HAVE_STRCASESTR HAVE_STRSEP HAVE_STRPBRK HAVE_DECL_STRNLEN HAVE_DECL_STRNDUP HAVE_STRNDUP HAVE_DECL_STRDUP HAVE_STRCHRNUL HAVE_DECL_STRNCASECMP HAVE_STRCASECMP HAVE_STPNCPY HAVE_STPCPY HAVE_DECL_MEMRCHR HAVE_MEMPCPY HAVE_DECL_MEMMEM GNULIB_STRERROR GNULIB_MBSTOK_R GNULIB_MBSSEP GNULIB_MBSSPN GNULIB_MBSPBRK GNULIB_MBSCSPN GNULIB_MBSCASESTR GNULIB_MBSPCASECMP GNULIB_MBSNCASECMP GNULIB_MBSCASECMP GNULIB_MBSSTR GNULIB_MBSRCHR GNULIB_MBSCHR GNULIB_MBSNLEN GNULIB_MBSLEN GNULIB_STRTOK_R GNULIB_STRCASESTR GNULIB_STRSEP GNULIB_STRPBRK GNULIB_STRNLEN GNULIB_STRNDUP GNULIB_STRDUP GNULIB_STRCHRNUL GNULIB_STPNCPY GNULIB_STPCPY GNULIB_MEMRCHR GNULIB_MEMPCPY GNULIB_MEMMEM GLIBC21 host_os host_vendor host_cpu host build_os build_vendor build_cpu build LTLIBINTL LIBINTL GETOPT_H FNMATCH_H ALLOCA_H ALLOCA GL_COND_LIBTOOL_FALSE GL_COND_LIBTOOL_TRUE AUTOM4TE EGREP GREP CPP RANLIB am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_dependency_tracking enable_nls with_gnu_ld enable_rpath with_libiconv_prefix with_libintl_prefix enable_largefile enable_Werror ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used" >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi 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 mlocate 0.26 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/mlocate] --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 mlocate 0.26:";; 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] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --disable-nls do not use Native Language Support --disable-rpath do not hardcode runtime library paths --disable-largefile omit support for large files --enable-Werror use -Werror if compiling with gcc (default is NO) 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 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 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 . mlocate home page: . _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 mlocate configure 0.26 generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. Copyright (C) 2005, 2006, 2007, 2009, 2010, 2012 Red Hat, Inc. All rights reserved. This copyrighted material is made available to anyone wishing to use, modify, copy, or redistribute it subject to the terms and conditions of the GNU General Public License v.2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Author: Miloslav Trmac _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_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 mitr@redhat.com ## ## ------------------------------ ##" ) | 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_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_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_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_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 || $as_test_x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES # --------------------------------------------- # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR # accordingly. ac_fn_c_check_decl () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack as_decl_name=`echo $2|sed 's/ *(.*//'` as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { #ifndef $as_decl_name #ifdef __cplusplus (void) $as_decl_use; #else (void) $as_decl_name; #endif #endif ; return 0; } _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_decl # 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_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 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 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 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 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 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 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 mlocate $as_me 0.26, which was generated by GNU Autoconf 2.68. 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 as_fn_append ac_func_list " canonicalize_file_name" as_fn_append ac_header_list " sys/param.h" as_fn_append ac_header_list " unistd.h" as_fn_append ac_func_list " getcwd" as_fn_append ac_func_list " readlink" as_fn_append ac_func_list " btowc" as_fn_append ac_func_list " isblank" as_fn_append ac_func_list " iswctype" as_fn_append ac_func_list " mbsrtowcs" as_fn_append ac_func_list " mempcpy" as_fn_append ac_func_list " wmemchr" as_fn_append ac_func_list " wmemcpy" as_fn_append ac_func_list " wmempcpy" as_fn_append ac_header_list " wctype.h" as_fn_append ac_header_list " sys/time.h" as_fn_append ac_header_list " stdint.h" as_fn_append ac_header_list " wchar.h" as_fn_append ac_header_list " stdlib.h" as_fn_append ac_func_list " strerror" as_fn_append ac_header_list " string.h" as_fn_append ac_header_list " time.h" as_fn_append ac_func_list " iswcntrl" as_fn_append ac_func_list " wcwidth" gt_needs="$gt_needs need-ngettext" as_fn_append ac_func_list " fdopendir" # 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_config_headers="$ac_config_headers src/config.h" ac_aux_dir= for ac_dir in admin "$srcdir"/admin; 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 admin \"$srcdir\"/admin" "$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. ac_config_commands="$ac_config_commands ./atconfig" am__api_version='1.11' # 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 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$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; } # Just in case sleep 1 echo timestamp > conftest.file # 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 ( 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 rm -f conftest.file 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 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; } 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 --run true"; then am_missing_run="$MISSING --run " 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}" != 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$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; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='mlocate' VERSION='0.26' # 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"} # We need awk for the "check" target. 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}' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 #include #include /* 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 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 8's {/usr,}/bin/sh. touch 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 if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi if test "x$CC" != xcc; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } else { $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; } fi set dummy $CC; ac_cc=`$as_echo "$2" | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` if eval \${ac_cv_prog_cc_${ac_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. # We do the test twice because some compilers refuse to overwrite an # existing .o file with -o, though they will create one. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' rm -f conftest2.* if { { 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; } && test -f conftest2.$ac_objext && { { 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 eval ac_cv_prog_cc_${ac_cc}_c_o=yes if test "x$CC" != xcc; then # Test first that cc exists at all. if { ac_try='cc -c conftest.$ac_ext >&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_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' rm -f conftest2.* if { { 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; } && test -f conftest2.$ac_objext && { { 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 # cc works too. : else # cc exists but doesn't like -o. eval ac_cv_prog_cc_${ac_cc}_c_o=no fi fi fi else eval ac_cv_prog_cc_${ac_cc}_c_o=no fi rm -f core conftest* fi if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h fi # FIXME: we rely on the cache variable name because # there is no other way. set dummy $CC am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o if test "$am_t" != 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 { $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" { test -f "$ac_path_GREP" && $as_test_x "$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" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 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 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" if test "x$ac_cv_header_minix_config_h" = xyes; then : MINIX=yes else MINIX= fi if test "$MINIX" = yes; then $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h $as_echo "#define _MINIX 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } if ${ac_cv_safe_to_define___extensions__+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ # define __EXTENSIONS__ 1 $ac_includes_default int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_safe_to_define___extensions__=yes else ac_cv_safe_to_define___extensions__=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } test $ac_cv_safe_to_define___extensions__ = yes && $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h $as_echo "#define _ALL_SOURCE 1" >>confdefs.h $as_echo "#define _GNU_SOURCE 1" >>confdefs.h $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h # FIXME: we rely on the cache variable name because # there is no other way. set dummy $CC am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o if test "$am_t" != 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 if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi # This interface seems to be undocumented, but bison uses it ;-) AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"} 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 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 $as_echo_n "checking for working alloca.h... " >&6; } if ${ac_cv_working_alloca_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { char *p = (char *) alloca (2 * sizeof (int)); if (p) return 0; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_working_alloca_h=yes else ac_cv_working_alloca_h=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_working_alloca_h" >&5 $as_echo "$ac_cv_working_alloca_h" >&6; } if test $ac_cv_working_alloca_h = yes; then $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 $as_echo_n "checking for alloca... " >&6; } if ${ac_cv_func_alloca_works+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __GNUC__ # define alloca __builtin_alloca #else # ifdef _MSC_VER # include # define alloca _alloca # else # ifdef HAVE_ALLOCA_H # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ void *alloca (size_t); # endif # endif # endif # endif #endif int main () { char *p = (char *) alloca (1); if (p) return 0; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_func_alloca_works=yes else ac_cv_func_alloca_works=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_func_alloca_works" >&5 $as_echo "$ac_cv_func_alloca_works" >&6; } if test $ac_cv_func_alloca_works = yes; then $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h else # The SVR3 libPW and SVR4 libucb both contain incompatible functions # that cause trouble. Some versions do not even contain alloca or # contain a buggy version. If you still want to use their alloca, # use ar to extract alloca.o from them instead of compiling alloca.c. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext $as_echo "#define C_ALLOCA 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } if ${ac_cv_os_cray+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined CRAY && ! defined CRAY2 webecray #else wenotbecray #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "webecray" >/dev/null 2>&1; then : ac_cv_os_cray=yes else ac_cv_os_cray=no fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 $as_echo "$ac_cv_os_cray" >&6; } if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; 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 CRAY_STACKSEG_END $ac_func _ACEOF break fi done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 $as_echo_n "checking stack direction for C alloca... " >&6; } if ${ac_cv_c_stack_direction+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_c_stack_direction=0 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int find_stack_direction () { static char *addr = 0; auto char dummy; if (addr == 0) { addr = &dummy; return find_stack_direction (); } else return (&dummy > addr) ? 1 : -1; } int main () { return find_stack_direction () < 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_c_stack_direction=1 else ac_cv_c_stack_direction=-1 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_c_stack_direction" >&5 $as_echo "$ac_cv_c_stack_direction" >&6; } cat >>confdefs.h <<_ACEOF #define STACK_DIRECTION $ac_cv_c_stack_direction _ACEOF fi ac_fn_c_check_decl "$LINENO" "canonicalize_file_name" "ac_cv_have_decl_canonicalize_file_name" "$ac_includes_default" if test "x$ac_cv_have_decl_canonicalize_file_name" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_CANONICALIZE_FILE_NAME $ac_have_decl _ACEOF for ac_func in $ac_func_list 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 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 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" if test "x$ac_cv_have_decl_strerror_r" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_STRERROR_R $ac_have_decl _ACEOF for ac_func in strerror_r do : ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" if test "x$ac_cv_func_strerror_r" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRERROR_R 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 $as_echo_n "checking whether strerror_r returns char *... " >&6; } if ${ac_cv_func_strerror_r_char_p+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_func_strerror_r_char_p=no if test $ac_cv_have_decl_strerror_r = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { char buf[100]; char x = *strerror_r (0, buf, sizeof buf); char *p = strerror_r (0, buf, sizeof buf); return !p || x; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_func_strerror_r_char_p=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else # strerror_r is not declared. Choose between # systems that have relatively inaccessible declarations for the # function. BeOS and DEC UNIX 4.0 fall in this category, but the # former has a strerror_r that returns char*, while the latter # has a strerror_r that returns `int'. # This test should segfault on the DEC system. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default extern char *strerror_r (); int main () { char buf[100]; char x = *strerror_r (0, buf, sizeof buf); return ! isalpha (x); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_strerror_r_char_p=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 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; } if test $ac_cv_func_strerror_r_char_p = yes; then $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 $as_echo_n "checking for mbstate_t... " >&6; } if ${ac_cv_type_mbstate_t+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default # include int main () { mbstate_t x; return sizeof x; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_type_mbstate_t=yes else ac_cv_type_mbstate_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 $as_echo "$ac_cv_type_mbstate_t" >&6; } if test $ac_cv_type_mbstate_t = yes; then $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h else $as_echo "#define mbstate_t int" >>confdefs.h fi if test -z "$GETOPT_H"; then for ac_header in getopt.h do : ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" if test "x$ac_cv_header_getopt_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GETOPT_H 1 _ACEOF else GETOPT_H=getopt.h fi done fi if test -z "$GETOPT_H"; then for ac_func in getopt_long_only do : ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" if test "x$ac_cv_func_getopt_long_only" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GETOPT_LONG_ONLY 1 _ACEOF else GETOPT_H=getopt.h fi done fi if test -z "$GETOPT_H"; then ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include " if test "x$ac_cv_have_decl_optreset" = xyes; then : GETOPT_H=getopt.h fi fi if test -z "$GETOPT_H"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 $as_echo_n "checking for working GNU getopt function... " >&6; } if ${gl_cv_func_gnu_getopt+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include " if test "x$ac_cv_have_decl_getopt_clip" = xyes; then : gl_cv_func_gnu_getopt=no else gl_cv_func_gnu_getopt=yes fi else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { char *myargv[3]; myargv[0] = "conftest"; myargv[1] = "-+"; myargv[2] = 0; return getopt (2, myargv, "+a") != '?'; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : gl_cv_func_gnu_getopt=yes else gl_cv_func_gnu_getopt=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: $gl_cv_func_gnu_getopt" >&5 $as_echo "$gl_cv_func_gnu_getopt" >&6; } if test "$gl_cv_func_gnu_getopt" = "no"; then GETOPT_H=getopt.h fi fi ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" if test "x$ac_cv_have_decl_getenv" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_GETENV $ac_have_decl _ACEOF { $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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } if ${am_cv_langinfo_codeset+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { char* cs = nl_langinfo(CODESET); return !cs; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : am_cv_langinfo_codeset=yes else am_cv_langinfo_codeset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 $as_echo "$am_cv_langinfo_codeset" >&6; } if test $am_cv_langinfo_codeset = yes; then $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h fi ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl _ACEOF # 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } if ${ac_cv_gnu_library_2_1+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) Lucky GNU user #endif #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : ac_cv_gnu_library_2_1=yes else ac_cv_gnu_library_2_1=no fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 $as_echo "$ac_cv_gnu_library_2_1" >&6; } GLIBC21="$ac_cv_gnu_library_2_1" 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 : gl_cv_func_malloc_0_nonnull=1 else gl_cv_func_malloc_0_nonnull=0 fi cat >>confdefs.h <<_ACEOF #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 $as_echo_n "checking for long long int... " >&6; } if ${ac_cv_type_long_long_int+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Test preprocessor. */ #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) error in preprocessor; #endif #if ! (18446744073709551615ULL <= -1ull) error in preprocessor; #endif /* Test literals. */ long long int ll = 9223372036854775807ll; long long int nll = -9223372036854775807LL; unsigned long long int ull = 18446744073709551615ULL; /* Test constant expressions. */ typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) ? 1 : -1)]; typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 ? 1 : -1)]; int i = 63; int main () { /* Test availability of runtime routines for shift and division. */ long long int llmax = 9223372036854775807ll; unsigned long long int ullmax = 18446744073709551615ull; return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | (llmax / ll) | (llmax % ll) | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | (ullmax / ull) | (ullmax % ull)); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : if test "$cross_compiling" = yes; then : ac_cv_type_long_long_int=yes else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifndef LLONG_MAX # define HALF \ (1LL << (sizeof (long long int) * CHAR_BIT - 2)) # define LLONG_MAX (HALF - 1 + HALF) #endif int main () { long long int n = 1; int i; for (i = 0; ; i++) { long long int m = n << i; if (m >> i != n) return 1; if (LLONG_MAX / 2 < m) break; } return 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_type_long_long_int=yes else ac_cv_type_long_long_int=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 ac_cv_type_long_long_int=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_type_long_long_int" >&5 $as_echo "$ac_cv_type_long_long_int" >&6; } if test $ac_cv_type_long_long_int = yes; then $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } if ${gl_cv_func_mbrtowc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { wchar_t wc; char const s[] = ""; size_t n = 1; mbstate_t state; return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gl_cv_func_mbrtowc=yes else gl_cv_func_mbrtowc=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: $gl_cv_func_mbrtowc" >&5 $as_echo "$gl_cv_func_mbrtowc" >&6; } if test $gl_cv_func_mbrtowc = yes; then $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h fi GNULIB_MEMMEM=0; GNULIB_MEMPCPY=0; GNULIB_MEMRCHR=0; GNULIB_STPCPY=0; GNULIB_STPNCPY=0; GNULIB_STRCHRNUL=0; GNULIB_STRDUP=0; GNULIB_STRNDUP=0; GNULIB_STRNLEN=0; GNULIB_STRPBRK=0; GNULIB_STRSEP=0; GNULIB_STRCASESTR=0; GNULIB_STRTOK_R=0; GNULIB_MBSLEN=0; GNULIB_MBSNLEN=0; GNULIB_MBSCHR=0; GNULIB_MBSRCHR=0; GNULIB_MBSSTR=0; GNULIB_MBSCASECMP=0; GNULIB_MBSNCASECMP=0; GNULIB_MBSPCASECMP=0; GNULIB_MBSCASESTR=0; GNULIB_MBSCSPN=0; GNULIB_MBSPBRK=0; GNULIB_MBSSPN=0; GNULIB_MBSSEP=0; GNULIB_MBSTOK_R=0; GNULIB_STRERROR=0; HAVE_DECL_MEMMEM=1; HAVE_MEMPCPY=1; HAVE_DECL_MEMRCHR=1; HAVE_STPCPY=1; HAVE_STPNCPY=1; HAVE_STRCASECMP=1; HAVE_DECL_STRNCASECMP=1; HAVE_STRCHRNUL=1; HAVE_DECL_STRDUP=1; HAVE_STRNDUP=1; HAVE_DECL_STRNDUP=1; HAVE_DECL_STRNLEN=1; HAVE_STRPBRK=1; HAVE_STRSEP=1; HAVE_STRCASESTR=1; HAVE_DECL_STRTOK_R=1; HAVE_DECL_STRERROR=1; REPLACE_STRERROR=0; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 $as_echo_n "checking for C/C++ restrict keyword... " >&6; } if ${ac_cv_c_restrict+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_restrict=no # The order here caters to the fact that C++ does not require restrict. for ac_kw in __restrict __restrict__ _Restrict restrict; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ typedef int * int_ptr; int foo (int_ptr $ac_kw ip) { return ip[0]; } int main () { int s[1]; int * $ac_kw t = s; t[0] = 0; return foo(t) ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_restrict=$ac_kw fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext test "$ac_cv_c_restrict" != no && break done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 $as_echo "$ac_cv_c_restrict" >&6; } case $ac_cv_c_restrict in restrict) ;; no) $as_echo "#define restrict /**/" >>confdefs.h ;; *) cat >>confdefs.h <<_ACEOF #define restrict $ac_cv_c_restrict _ACEOF ;; esac GNULIB_CHOWN=0; GNULIB_DUP2=0; GNULIB_FCHDIR=0; GNULIB_FTRUNCATE=0; GNULIB_GETCWD=0; GNULIB_GETLOGIN_R=0; GNULIB_LCHOWN=0; GNULIB_LSEEK=0; GNULIB_READLINK=0; GNULIB_SLEEP=0; HAVE_DUP2=1; HAVE_FTRUNCATE=1; HAVE_READLINK=1; HAVE_SLEEP=1; HAVE_DECL_GETLOGIN_R=1; REPLACE_CHOWN=0; REPLACE_FCHDIR=0; REPLACE_GETCWD=0; REPLACE_LCHOWN=0; REPLACE_LSEEK=0; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 $as_echo_n "checking for ssize_t... " >&6; } if ${gt_cv_ssize_t+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { int x = sizeof (ssize_t *) + sizeof (ssize_t); return !x; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gt_cv_ssize_t=yes else gt_cv_ssize_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 $as_echo "$gt_cv_ssize_t" >&6; } if test $gt_cv_ssize_t = no; then $as_echo "#define ssize_t int" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } if ${ac_cv_header_stdbool_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifndef bool "error: bool is not defined" #endif #ifndef false "error: false is not defined" #endif #if false "error: false is not 0" #endif #ifndef true "error: true is not defined" #endif #if true != 1 "error: true is not 1" #endif #ifndef __bool_true_false_are_defined "error: __bool_true_false_are_defined is not defined" #endif struct s { _Bool s: 1; _Bool t; } s; char a[true == 1 ? 1 : -1]; char b[false == 0 ? 1 : -1]; char c[__bool_true_false_are_defined == 1 ? 1 : -1]; char d[(bool) 0.5 == true ? 1 : -1]; bool e = &s; char f[(_Bool) 0.0 == false ? 1 : -1]; char g[true]; char h[sizeof (_Bool)]; char i[sizeof s.t]; enum { j = false, k = true, l = false * true, m = true * 256 }; _Bool n[m]; char o[sizeof n == m * sizeof n[0] ? 1 : -1]; char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; #if defined __xlc__ || defined __GNUC__ /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 reported by James Lemley on 2005-10-05; see http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html This test is not quite right, since xlc is allowed to reject this program, as the initializer for xlcbug is not one of the forms that C requires support for. However, doing the test right would require a run-time test, and that would make cross-compilation harder. Let us hope that IBM fixes the xlc bug, and also adds support for this kind of constant expression. In the meantime, this test will reject xlc, which is OK, since our stdbool.h substitute should suffice. We also test this with GCC, where it should work, to detect more quickly whether someone messes up the test in the future. */ char digs[] = "0123456789"; int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); #endif /* Catch a bug in an HP-UX C compiler. See http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html */ _Bool q = true; _Bool *pq = &q; int main () { *pq |= q; *pq |= ! q; /* Refer to every declared value, to avoid compiler optimizations. */ return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + !m + !n + !o + !p + !q + !pq); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdbool_h=yes else ac_cv_header_stdbool_h=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_stdbool_h" >&5 $as_echo "$ac_cv_header_stdbool_h" >&6; } ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" if test "x$ac_cv_type__Bool" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE__BOOL 1 _ACEOF fi if test $ac_cv_header_stdbool_h = yes; then $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 $as_echo_n "checking for unsigned long long int... " >&6; } if ${ac_cv_type_unsigned_long_long_int+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Test preprocessor. */ #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) error in preprocessor; #endif #if ! (18446744073709551615ULL <= -1ull) error in preprocessor; #endif /* Test literals. */ long long int ll = 9223372036854775807ll; long long int nll = -9223372036854775807LL; unsigned long long int ull = 18446744073709551615ULL; /* Test constant expressions. */ typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) ? 1 : -1)]; typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 ? 1 : -1)]; int i = 63; int main () { /* Test availability of runtime routines for shift and division. */ long long int llmax = 9223372036854775807ll; unsigned long long int ullmax = 18446744073709551615ull; return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | (llmax / ll) | (llmax % ll) | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | (ullmax / ull) | (ullmax % ull)); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_type_unsigned_long_long_int=yes else ac_cv_type_unsigned_long_long_int=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_type_unsigned_long_long_int" >&5 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } if test $ac_cv_type_unsigned_long_long_int = yes; then $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; } if ${gl_cv_have_include_next+:} false; then : $as_echo_n "(cached) " >&6 else rm -rf conftestd1 conftestd2 mkdir conftestd1 conftestd2 cat < conftestd1/conftest.h #define DEFINED_IN_CONFTESTD1 #include_next #ifdef DEFINED_IN_CONFTESTD2 int foo; #else #error "include_next doesn't work" #endif EOF cat < conftestd2/conftest.h #ifndef DEFINED_IN_CONFTESTD1 #error "include_next test doesn't work" #endif #define DEFINED_IN_CONFTESTD2 EOF save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gl_cv_have_include_next=yes else gl_cv_have_include_next=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CPPFLAGS="$save_CPPFLAGS" rm -rf conftestd1 conftestd2 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 $as_echo "$gl_cv_have_include_next" >&6; } if test $gl_cv_have_include_next = yes; then $as_echo "#define HAVE_INCLUDE_NEXT 1" >>confdefs.h INCLUDE_NEXT=include_next else INCLUDE_NEXT=include fi GNULIB_MALLOC_POSIX=0; GNULIB_REALLOC_POSIX=0; GNULIB_CALLOC_POSIX=0; GNULIB_GETSUBOPT=0; GNULIB_MKDTEMP=0; GNULIB_MKSTEMP=0; HAVE_CALLOC_POSIX=1; HAVE_GETSUBOPT=1; HAVE_MALLOC_POSIX=1; HAVE_MKDTEMP=1; HAVE_REALLOC_POSIX=1; REPLACE_MKSTEMP=0; : if test $ac_cv_func_strerror = no; then HAVE_DECL_STRERROR=0 gl_cv_func_working_strerror=no else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5 $as_echo_n "checking for working strerror function... " >&6; } if ${gl_cv_func_working_strerror+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __INTERIX assuming success #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "assuming success" >/dev/null 2>&1; then : gl_cv_func_working_strerror=yes else gl_cv_func_working_strerror=no fi rm -f conftest* else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return !*strerror (-2); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : gl_cv_func_working_strerror=yes else gl_cv_func_working_strerror=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: $gl_cv_func_working_strerror" >&5 $as_echo "$gl_cv_func_working_strerror" >&6; } if test $gl_cv_func_working_strerror = no ; then REPLACE_STRERROR=1 fi fi if test $gl_cv_have_include_next = yes; then gl_cv_next_string_h='<'string.h'>' else { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 $as_echo_n "checking absolute name of ... " >&6; } if ${gl_cv_next_string_h+:} false; then : $as_echo_n "(cached) " >&6 else if test $ac_cv_header_string_h = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | sed -n '\#/string.h#{ s#.*"\(.*/string.h\)".*#\1# s#^/[^/]#//&# p q }'`'"' else gl_cv_next_string_h='<'string.h'>' fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5 $as_echo "$gl_cv_next_string_h" >&6; } fi NEXT_STRING_H=$gl_cv_next_string_h ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" if test "x$ac_cv_have_decl_strnlen" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_STRNLEN $ac_have_decl _ACEOF REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; REPLACE_NANOSLEEP=GNULIB_PORTCHECK; REPLACE_STRPTIME=GNULIB_PORTCHECK; REPLACE_TIMEGM=GNULIB_PORTCHECK; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in " >&5 $as_echo_n "checking for struct timespec in ... " >&6; } if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { static struct timespec x; x.tv_sec = x.tv_nsec; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gl_cv_sys_struct_timespec_in_time_h=yes else gl_cv_sys_struct_timespec_in_time_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; } TIME_H_DEFINES_STRUCT_TIMESPEC=0 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then TIME_H_DEFINES_STRUCT_TIMESPEC=1 else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in " >&5 $as_echo_n "checking for struct timespec in ... " >&6; } if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { static struct timespec x; x.tv_sec = x.tv_nsec; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gl_cv_sys_struct_timespec_in_sys_time_h=yes else gl_cv_sys_struct_timespec_in_sys_time_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; } if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 fi fi if test $gl_cv_have_include_next = yes; then gl_cv_next_time_h='<'time.h'>' else { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 $as_echo_n "checking absolute name of ... " >&6; } if ${gl_cv_next_time_h+:} false; then : $as_echo_n "(cached) " >&6 else if test $ac_cv_header_time_h = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF gl_cv_next_time_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | sed -n '\#/time.h#{ s#.*"\(.*/time.h\)".*#\1# s#^/[^/]#//&# p q }'`'"' else gl_cv_next_time_h='<'time.h'>' fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5 $as_echo "$gl_cv_next_time_h" >&6; } fi NEXT_TIME_H=$gl_cv_next_time_h GNULIB_WCWIDTH=0; HAVE_DECL_WCWIDTH=1; REPLACE_WCWIDTH=0; WCHAR_H= { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 $as_echo_n "checking for wint_t... " >&6; } if ${gt_cv_c_wint_t+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Tru64 with Desktop Toolkit C has a bug: must be included before . BSD/OS 4.0.1 has a bug: , and must be included before . */ #include #include #include #include wint_t foo = (wchar_t)'\0'; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gt_cv_c_wint_t=yes else gt_cv_c_wint_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 $as_echo "$gt_cv_c_wint_t" >&6; } if test $gt_cv_c_wint_t = yes; then $as_echo "#define HAVE_WINT_T 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 $as_echo_n "checking for wchar_t... " >&6; } if ${gt_cv_c_wchar_t+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include wchar_t foo = (wchar_t)'\0'; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gt_cv_c_wchar_t=yes else gt_cv_c_wchar_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 $as_echo "$gt_cv_c_wchar_t" >&6; } if test $gt_cv_c_wchar_t = yes; then $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h fi if false; then GL_COND_LIBTOOL_TRUE= GL_COND_LIBTOOL_FALSE='#' else GL_COND_LIBTOOL_TRUE='#' GL_COND_LIBTOOL_FALSE= fi gl_cond_libtool=false gl_libdeps= gl_ltlibdeps= gl_source_base='gnulib/lib' if test $ac_cv_func_alloca_works = no; then : fi # Define an additional variable used in the Makefile substitution. if test $ac_cv_working_alloca_h = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5 $as_echo_n "checking for alloca as a compiler built-in... " >&6; } if ${gl_cv_rpl_alloca+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined __GNUC__ || defined _AIX || defined _MSC_VER Need own alloca #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Need own alloca" >/dev/null 2>&1; then : gl_cv_rpl_alloca=yes else gl_cv_rpl_alloca=no fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5 $as_echo "$gl_cv_rpl_alloca" >&6; } if test $gl_cv_rpl_alloca = yes; then $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h ALLOCA_H=alloca.h else ALLOCA_H= fi else ALLOCA_H=alloca.h fi $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h if test $ac_cv_func_canonicalize_file_name = no; then gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext" $as_echo "#define realpath rpl_realpath" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5 $as_echo_n "checking for d_type member in directory struct... " >&6; } if ${jm_cv_struct_dirent_d_type+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { struct dirent dp; dp.d_type = 0; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : jm_cv_struct_dirent_d_type=yes else jm_cv_struct_dirent_d_type=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: $jm_cv_struct_dirent_d_type" >&5 $as_echo "$jm_cv_struct_dirent_d_type" >&6; } if test $jm_cv_struct_dirent_d_type = yes; then $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 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 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext" fi : gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext" : # No macro. You should also use one of fnmatch-posix or fnmatch-gnu. FNMATCH_H= { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU fnmatch" >&5 $as_echo_n "checking for working GNU fnmatch... " >&6; } if ${ac_cv_func_fnmatch_gnu+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_fnmatch_gnu=cross else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include static int y (char const *pattern, char const *string, int flags) { return fnmatch (pattern, string, flags) == 0; } static int n (char const *pattern, char const *string, int flags) { return fnmatch (pattern, string, flags) == FNM_NOMATCH; } int main () { char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]"; char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]"; static char const A_1[] = { 'A' - 1, 0 }; static char const A01[] = { 'A' + 1, 0 }; static char const a_1[] = { 'a' - 1, 0 }; static char const a01[] = { 'a' + 1, 0 }; static char const bs_1[] = { '\\\\' - 1, 0 }; static char const bs01[] = { '\\\\' + 1, 0 }; return !(n ("a*", "", 0) && y ("a*", "abc", 0) && n ("d*/*1", "d/s/1", FNM_PATHNAME) && y ("a\\\\bc", "abc", 0) && n ("a\\\\bc", "abc", FNM_NOESCAPE) && y ("*x", ".x", 0) && n ("*x", ".x", FNM_PERIOD) && y (Apat, "\\\\", 0) && y (Apat, "A", 0) && y (apat, "\\\\", 0) && y (apat, "a", 0) && n (Apat, A_1, 0) == ('A' < '\\\\') && n (apat, a_1, 0) == ('a' < '\\\\') && y (Apat, A01, 0) == ('A' < '\\\\') && y (apat, a01, 0) == ('a' < '\\\\') && y (Apat, bs_1, 0) == ('A' < '\\\\') && y (apat, bs_1, 0) == ('a' < '\\\\') && n (Apat, bs01, 0) == ('A' < '\\\\') && n (apat, bs01, 0) == ('a' < '\\\\') && y ("xxXX", "xXxX", FNM_CASEFOLD) && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH) && n ("d*/*1", "d/s/1", FNM_FILE_NAME) && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR) && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR) && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_fnmatch_gnu=yes else ac_cv_func_fnmatch_gnu=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_fnmatch_gnu" >&5 $as_echo "$ac_cv_func_fnmatch_gnu" >&6; } if test $ac_cv_func_fnmatch_gnu = yes; then : rm -f lib/fnmatch.h else ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include " if test "x$ac_cv_have_decl_isblank" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_ISBLANK $ac_have_decl _ACEOF gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext" FNMATCH_H=fnmatch.h fi if test $ac_cv_func_fnmatch_gnu != yes; then $as_echo "#define fnmatch gnu_fnmatch" >>confdefs.h fi $as_echo "#define GNULIB_FWRITEERROR 1" >>confdefs.h if test -n "$GETOPT_H"; then : gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" GETOPT_H=getopt.h $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5 $as_echo_n "checking whether the compiler generally respects inline... " >&6; } if ${gl_cv_c_inline_effective+:} false; then : $as_echo_n "(cached) " >&6 else if test $ac_cv_c_inline = no; then gl_cv_c_inline_effective=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifdef __NO_INLINE__ #error "inline is not effective" #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gl_cv_c_inline_effective=yes else gl_cv_c_inline_effective=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5 $as_echo "$gl_cv_c_inline_effective" >&6; } if test $gl_cv_c_inline_effective = yes; then $as_echo "#define HAVE_INLINE 1" >>confdefs.h fi : GNULIB_MBSLEN=1 : GNULIB_MBSSTR=1 : for ac_func in memchr do : ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr" if test "x$ac_cv_func_memchr" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MEMCHR 1 _ACEOF else gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" fi done if test $ac_cv_func_memchr = no; then for ac_header in bp-sym.h do : ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default" if test "x$ac_cv_header_bp_sym_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_BP_SYM_H 1 _ACEOF fi done fi for ac_func in mempcpy do : ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy" if test "x$ac_cv_func_mempcpy" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MEMPCPY 1 _ACEOF else gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" fi done if test $ac_cv_func_mempcpy = no; then HAVE_MEMPCPY=0 : fi GNULIB_MEMPCPY=1 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5 $as_echo_n "checking for obstacks... " >&6; } if ${ac_cv_func_obstack+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default #include "obstack.h" int main () { struct obstack mem; #define obstack_chunk_alloc malloc #define obstack_chunk_free free obstack_init (&mem); obstack_free (&mem, 0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_func_obstack=yes else ac_cv_func_obstack=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_func_obstack" >&5 $as_echo "$ac_cv_func_obstack" >&6; } if test $ac_cv_func_obstack = yes; then $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h else gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext" fi if test $ac_cv_func_readlink = no; then HAVE_READLINK=0 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext" : fi GNULIB_READLINK=1 gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 $as_echo_n "checking for ssize_t... " >&6; } if ${gt_cv_ssize_t+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { int x = sizeof (ssize_t *) + sizeof (ssize_t); return !x; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gt_cv_ssize_t=yes else gt_cv_ssize_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 $as_echo "$gt_cv_ssize_t" >&6; } if test $gt_cv_ssize_t = no; then $as_echo "#define ssize_t int" >>confdefs.h fi ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include #include " if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; } if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if HAVE_SYS_TIME_H # include #endif #include struct timespec ts; struct stat st; int main () { st.st_atim = ts; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes else ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; } if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h fi else ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include #include " if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1 _ACEOF else ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include #include " if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1 _ACEOF else ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include #include " if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1 _ACEOF fi fi fi fi ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include #include " if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1 _ACEOF else ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include #include " if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1 _ACEOF else ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include #include " if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1 _ACEOF fi fi fi # Define two additional variables used in the Makefile substitution. if test "$ac_cv_header_stdbool_h" = yes; then STDBOOL_H='' else STDBOOL_H='stdbool.h' fi if test "$ac_cv_type__Bool" = yes; then HAVE__BOOL=1 else HAVE__BOOL=0 fi if test $ac_cv_type_long_long_int = yes; then HAVE_LONG_LONG_INT=1 else HAVE_LONG_LONG_INT=0 fi if test $ac_cv_type_unsigned_long_long_int = yes; then HAVE_UNSIGNED_LONG_LONG_INT=1 else HAVE_UNSIGNED_LONG_LONG_INT=0 fi if test $ac_cv_header_inttypes_h = yes; then HAVE_INTTYPES_H=1 else HAVE_INTTYPES_H=0 fi if test $ac_cv_header_sys_types_h = yes; then HAVE_SYS_TYPES_H=1 else HAVE_SYS_TYPES_H=0 fi if test $gl_cv_have_include_next = yes; then gl_cv_next_stdint_h='<'stdint.h'>' else { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 $as_echo_n "checking absolute name of ... " >&6; } if ${gl_cv_next_stdint_h+:} false; then : $as_echo_n "(cached) " >&6 else if test $ac_cv_header_stdint_h = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | sed -n '\#/stdint.h#{ s#.*"\(.*/stdint.h\)".*#\1# s#^/[^/]#//&# p q }'`'"' else gl_cv_next_stdint_h='<'stdint.h'>' fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 $as_echo "$gl_cv_next_stdint_h" >&6; } fi NEXT_STDINT_H=$gl_cv_next_stdint_h if test $ac_cv_header_stdint_h = yes; then HAVE_STDINT_H=1 else HAVE_STDINT_H=0 fi if test $ac_cv_header_stdint_h = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; } if ${gl_cv_header_working_stdint_h+:} false; then : $as_echo_n "(cached) " >&6 else gl_cv_header_working_stdint_h=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ #include /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in . */ #if !(defined WCHAR_MIN && defined WCHAR_MAX) #error "WCHAR_MIN, WCHAR_MAX not defined in " #endif /* BSD/OS 4.0.1 has a bug: , and must be included before . */ #include #include #if HAVE_WCHAR_H # include # include # include #endif #ifdef INT8_MAX int8_t a1 = INT8_MAX; int8_t a1min = INT8_MIN; #endif #ifdef INT16_MAX int16_t a2 = INT16_MAX; int16_t a2min = INT16_MIN; #endif #ifdef INT32_MAX int32_t a3 = INT32_MAX; int32_t a3min = INT32_MIN; #endif #ifdef INT64_MAX int64_t a4 = INT64_MAX; int64_t a4min = INT64_MIN; #endif #ifdef UINT8_MAX uint8_t b1 = UINT8_MAX; #else typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; #endif #ifdef UINT16_MAX uint16_t b2 = UINT16_MAX; #endif #ifdef UINT32_MAX uint32_t b3 = UINT32_MAX; #endif #ifdef UINT64_MAX uint64_t b4 = UINT64_MAX; #endif int_least8_t c1 = INT8_C (0x7f); int_least8_t c1max = INT_LEAST8_MAX; int_least8_t c1min = INT_LEAST8_MIN; int_least16_t c2 = INT16_C (0x7fff); int_least16_t c2max = INT_LEAST16_MAX; int_least16_t c2min = INT_LEAST16_MIN; int_least32_t c3 = INT32_C (0x7fffffff); int_least32_t c3max = INT_LEAST32_MAX; int_least32_t c3min = INT_LEAST32_MIN; int_least64_t c4 = INT64_C (0x7fffffffffffffff); int_least64_t c4max = INT_LEAST64_MAX; int_least64_t c4min = INT_LEAST64_MIN; uint_least8_t d1 = UINT8_C (0xff); uint_least8_t d1max = UINT_LEAST8_MAX; uint_least16_t d2 = UINT16_C (0xffff); uint_least16_t d2max = UINT_LEAST16_MAX; uint_least32_t d3 = UINT32_C (0xffffffff); uint_least32_t d3max = UINT_LEAST32_MAX; uint_least64_t d4 = UINT64_C (0xffffffffffffffff); uint_least64_t d4max = UINT_LEAST64_MAX; int_fast8_t e1 = INT_FAST8_MAX; int_fast8_t e1min = INT_FAST8_MIN; int_fast16_t e2 = INT_FAST16_MAX; int_fast16_t e2min = INT_FAST16_MIN; int_fast32_t e3 = INT_FAST32_MAX; int_fast32_t e3min = INT_FAST32_MIN; int_fast64_t e4 = INT_FAST64_MAX; int_fast64_t e4min = INT_FAST64_MIN; uint_fast8_t f1 = UINT_FAST8_MAX; uint_fast16_t f2 = UINT_FAST16_MAX; uint_fast32_t f3 = UINT_FAST32_MAX; uint_fast64_t f4 = UINT_FAST64_MAX; #ifdef INTPTR_MAX intptr_t g = INTPTR_MAX; intptr_t gmin = INTPTR_MIN; #endif #ifdef UINTPTR_MAX uintptr_t h = UINTPTR_MAX; #endif intmax_t i = INTMAX_MAX; uintmax_t j = UINTMAX_MAX; #include /* for CHAR_BIT */ #define TYPE_MINIMUM(t) \ ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) #define TYPE_MAXIMUM(t) \ ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) struct s { int check_PTRDIFF: PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) ? 1 : -1; /* Detect bug in FreeBSD 6.0 / ia64. */ int check_SIG_ATOMIC: SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) ? 1 : -1; int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; int check_WCHAR: WCHAR_MIN == TYPE_MINIMUM (wchar_t) && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) ? 1 : -1; /* Detect bug in mingw. */ int check_WINT: WINT_MIN == TYPE_MINIMUM (wint_t) && WINT_MAX == TYPE_MAXIMUM (wint_t) ? 1 : -1; /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ int check_UINT8_C: (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; int check_UINT16_C: (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; /* Detect bugs in OpenBSD 3.9 stdint.h. */ #ifdef UINT8_MAX int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; #endif #ifdef UINT16_MAX int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; #endif #ifdef UINT32_MAX int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; #endif #ifdef UINT64_MAX int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; #endif int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; }; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gl_cv_header_working_stdint_h=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 $as_echo "$gl_cv_header_working_stdint_h" >&6; } fi if test "$gl_cv_header_working_stdint_h" = yes; then STDINT_H= else for ac_header in sys/inttypes.h sys/bitypes.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 if test $ac_cv_header_sys_inttypes_h = yes; then HAVE_SYS_INTTYPES_H=1 else HAVE_SYS_INTTYPES_H=0 fi if test $ac_cv_header_sys_bitypes_h = yes; then HAVE_SYS_BITYPES_H=1 else HAVE_SYS_BITYPES_H=0 fi for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 $as_echo_n "checking for bit size of $gltype... " >&6; } if eval \${gl_cv_bitsizeof_${gltype}+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " /* BSD/OS 4.0.1 has a bug: , and must be included before . */ #include #include #if HAVE_WCHAR_H # include # include # include #endif #include "; then : else result=unknown fi eval gl_cv_bitsizeof_${gltype}=\$result fi eval ac_res=\$gl_cv_bitsizeof_${gltype} { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval result=\$gl_cv_bitsizeof_${gltype} if test $result = unknown; then result=0 fi GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` cat >>confdefs.h <<_ACEOF #define BITSIZEOF_${GLTYPE} $result _ACEOF eval BITSIZEOF_${GLTYPE}=\$result done for gltype in sig_atomic_t wchar_t wint_t ; do { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 $as_echo_n "checking whether $gltype is signed... " >&6; } if eval \${gl_cv_type_${gltype}_signed+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* BSD/OS 4.0.1 has a bug: , and must be included before . */ #include #include #if HAVE_WCHAR_H # include # include # include #endif int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : result=yes else result=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext eval gl_cv_type_${gltype}_signed=\$result fi eval ac_res=\$gl_cv_type_${gltype}_signed { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval result=\$gl_cv_type_${gltype}_signed GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` if test "$result" = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_SIGNED_${GLTYPE} 1 _ACEOF eval HAVE_SIGNED_${GLTYPE}=1 else eval HAVE_SIGNED_${GLTYPE}=0 fi done gl_cv_type_ptrdiff_t_signed=yes gl_cv_type_size_t_signed=no for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 $as_echo_n "checking for $gltype integer literal suffix... " >&6; } if eval \${gl_cv_type_${gltype}_suffix+:} false; then : $as_echo_n "(cached) " >&6 else eval gl_cv_type_${gltype}_suffix=no eval result=\$gl_cv_type_${gltype}_signed if test "$result" = yes; then glsufu= else glsufu=u fi for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do case $glsuf in '') gltype1='int';; l) gltype1='long int';; ll) gltype1='long long int';; i64) gltype1='__int64';; u) gltype1='unsigned int';; ul) gltype1='unsigned long int';; ull) gltype1='unsigned long long int';; ui64)gltype1='unsigned __int64';; esac cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* BSD/OS 4.0.1 has a bug: , and must be included before . */ #include #include #if HAVE_WCHAR_H # include # include # include #endif extern $gltype foo; extern $gltype1 foo; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval gl_cv_type_${gltype}_suffix=\$glsuf fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext eval result=\$gl_cv_type_${gltype}_suffix test "$result" != no && break done fi eval ac_res=\$gl_cv_type_${gltype}_suffix { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` eval result=\$gl_cv_type_${gltype}_suffix test "$result" = no && result= eval ${GLTYPE}_SUFFIX=\$result cat >>confdefs.h <<_ACEOF #define ${GLTYPE}_SUFFIX $result _ACEOF done STDINT_H=stdint.h fi if test $gl_cv_have_include_next = yes; then gl_cv_next_stdlib_h='<'stdlib.h'>' else { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 $as_echo_n "checking absolute name of ... " >&6; } if ${gl_cv_next_stdlib_h+:} false; then : $as_echo_n "(cached) " >&6 else if test $ac_cv_header_stdlib_h = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF gl_cv_next_stdlib_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | sed -n '\#/stdlib.h#{ s#.*"\(.*/stdlib.h\)".*#\1# s#^/[^/]#//&# p q }'`'"' else gl_cv_next_stdlib_h='<'stdlib.h'>' fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5 $as_echo "$gl_cv_next_stdlib_h" >&6; } fi NEXT_STDLIB_H=$gl_cv_next_stdlib_h for ac_func in strchrnul do : ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul" if test "x$ac_cv_func_strchrnul" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRCHRNUL 1 _ACEOF else gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" fi done if test $ac_cv_func_strchrnul = no; then HAVE_STRCHRNUL=0 : fi GNULIB_STRCHRNUL=1 if test $gl_cv_func_working_strerror = no; then gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext" cat >>confdefs.h <<_ACEOF #define REPLACE_STRERROR $REPLACE_STRERROR _ACEOF fi GNULIB_STRERROR=1 if test $ac_cv_have_decl_strnlen = no; then HAVE_DECL_STRNLEN=0 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5 $as_echo_n "checking for working strnlen... " >&6; } if ${ac_cv_func_strnlen_working+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : # Guess no on AIX systems, yes otherwise. case "$host_os" in aix*) ac_cv_func_strnlen_working=no;; *) ac_cv_func_strnlen_working=yes;; esac else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { #define S "foobar" #define S_LEN (sizeof S - 1) /* At least one implementation is buggy: that of AIX 4.3 would give strnlen (S, 1) == 3. */ int i; for (i = 0; i < S_LEN + 1; ++i) { int expected = i <= S_LEN ? i : S_LEN; if (strnlen (S, i) != expected) return 1; } return 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_strnlen_working=yes else ac_cv_func_strnlen_working=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_strnlen_working" >&5 $as_echo "$ac_cv_func_strnlen_working" >&6; } test $ac_cv_func_strnlen_working = no && gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext" if test $ac_cv_func_strnlen_working = no; then # This is necessary because automake-1.6.1 doesn't understand # that the above use of AC_FUNC_STRNLEN means we may have to use # lib/strnlen.c. #AC_LIBOBJ(strnlen) $as_echo "#define strnlen rpl_strnlen" >>confdefs.h : fi GNULIB_STRNLEN=1 if test $gl_cv_have_include_next = yes; then gl_cv_next_unistd_h='<'unistd.h'>' else { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 $as_echo_n "checking absolute name of ... " >&6; } if ${gl_cv_next_unistd_h+:} false; then : $as_echo_n "(cached) " >&6 else if test $ac_cv_header_unistd_h = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF gl_cv_next_unistd_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | sed -n '\#/unistd.h#{ s#.*"\(.*/unistd.h\)".*#\1# s#^/[^/]#//&# p q }'`'"' else gl_cv_next_unistd_h='<'unistd.h'>' fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 $as_echo "$gl_cv_next_unistd_h" >&6; } fi NEXT_UNISTD_H=$gl_cv_next_unistd_h if test $ac_cv_header_unistd_h = yes; then HAVE_UNISTD_H=1 else HAVE_UNISTD_H=0 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is standalone" >&5 $as_echo_n "checking whether is standalone... " >&6; } if ${gl_cv_header_wchar_h_standalone+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include wchar_t w; _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gl_cv_header_wchar_h_standalone=yes else gl_cv_header_wchar_h_standalone=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_standalone" >&5 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; } if test $gl_cv_header_wchar_h_standalone != yes; then WCHAR_H=wchar.h fi if test $ac_cv_header_wchar_h = yes; then HAVE_WCHAR_H=1 else HAVE_WCHAR_H=0 fi if test $gl_cv_have_include_next = yes; then gl_cv_next_wchar_h='<'wchar.h'>' else { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 $as_echo_n "checking absolute name of ... " >&6; } if ${gl_cv_next_wchar_h+:} false; then : $as_echo_n "(cached) " >&6 else if test $ac_cv_header_wchar_h = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | sed -n '\#/wchar.h#{ s#.*"\(.*/wchar.h\)".*#\1# s#^/[^/]#//&# p q }'`'"' else gl_cv_next_wchar_h='<'wchar.h'>' fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5 $as_echo "$gl_cv_next_wchar_h" >&6; } fi NEXT_WCHAR_H=$gl_cv_next_wchar_h if test $ac_cv_func_iswcntrl = yes; then HAVE_ISWCNTRL=1 else HAVE_ISWCNTRL=0 fi if test $gt_cv_c_wint_t = yes; then HAVE_WINT_T=1 else HAVE_WINT_T=0 fi WCTYPE_H=wctype.h if test $ac_cv_header_wctype_h = yes; then if test $ac_cv_func_iswcntrl = yes; then WCTYPE_H= fi if test $gl_cv_have_include_next = yes; then gl_cv_next_wctype_h='<'wctype.h'>' else { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 $as_echo_n "checking absolute name of ... " >&6; } if ${gl_cv_next_wctype_h+:} false; then : $as_echo_n "(cached) " >&6 else if test $ac_cv_header_wctype_h = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF gl_cv_next_wctype_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | sed -n '\#/wctype.h#{ s#.*"\(.*/wctype.h\)".*#\1# s#^/[^/]#//&# p q }'`'"' else gl_cv_next_wctype_h='<'wctype.h'>' fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5 $as_echo "$gl_cv_next_wctype_h" >&6; } fi NEXT_WCTYPE_H=$gl_cv_next_wctype_h HAVE_WCTYPE_H=1 else HAVE_WCTYPE_H=0 fi ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" " /* AIX 3.2.5 declares wcwidth in . */ #include /* Tru64 with Desktop Toolkit C has a bug: must be included before . BSD/OS 4.0.1 has a bug: , and must be included before . */ #include #include #include #include " if test "x$ac_cv_have_decl_wcwidth" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_WCWIDTH $ac_have_decl _ACEOF if test $ac_cv_have_decl_wcwidth != yes; then HAVE_DECL_WCWIDTH=0 fi if test $ac_cv_func_wcwidth = no; then REPLACE_WCWIDTH=1 else { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; } if ${gl_cv_func_wcwidth_works+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : gl_cv_func_wcwidth_works="guessing no" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* AIX 3.2.5 declares wcwidth in . */ #include /* Tru64 with Desktop Toolkit C has a bug: must be included before . BSD/OS 4.0.1 has a bug: , and must be included before . */ #include #include #include #include #if !HAVE_DECL_WCWIDTH extern # ifdef __cplusplus "C" # endif int wcwidth (int); #endif int main () { if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL) if (wcwidth (0x0301) > 0) return 1; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : gl_cv_func_wcwidth_works=yes else gl_cv_func_wcwidth_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: $gl_cv_func_wcwidth_works" >&5 $as_echo "$gl_cv_func_wcwidth_works" >&6; } case "$gl_cv_func_wcwidth_works" in *yes) ;; *no) REPLACE_WCWIDTH=1 ;; esac fi if test $REPLACE_WCWIDTH = 1; then gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext" fi if test $REPLACE_WCWIDTH = 1 || test $HAVE_DECL_WCWIDTH = 0; then WCHAR_H=wchar.h fi GNULIB_WCWIDTH=1 gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext" : : LIBGNU_LIBDEPS="$gl_libdeps" LIBGNU_LTLIBDEPS="$gl_ltlibdeps" # Checks for libraries. { $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.17 # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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" # 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 acl_libdirstem=lib 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 ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib64 ) acl_libdirstem=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" 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-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" fi fi fi LIBICONV= LTLIBICONV= INCICONV= LIBICONV_PREFIX= 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"; 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/"'*$,,'` LIBICONV_PREFIX="$basedir" 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"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; 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; } } #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" fi fi fi LIBINTL= LTLIBINTL= INCINTL= LIBINTL_PREFIX= 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"; 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/"'*$,,'` LIBINTL_PREFIX="$basedir" 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"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; 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" # Checks for header files. # Checks for types. # Checks for structures. # Checks for compiler characteristics. # Checks for library functions. ## getopt_long () availability should be checked here # 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 # Checks for system services. # 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 << 62) - 1 + ((off_t) 1 << 62)) 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 << 62) - 1 + ((off_t) 1 << 62)) 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 << 62) - 1 + ((off_t) 1 << 62)) 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 << 62) - 1 + ((off_t) 1 << 62)) 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 << 62) - 1 + ((off_t) 1 << 62)) 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mounted filesystem table in /proc" >&5 $as_echo_n "checking for mounted filesystem table in /proc... " >&6; } if ${mitr_cv_sys_proc_mounts+:} false; then : $as_echo_n "(cached) " >&6 else mitr_cv_sys_proc_mounts=no if test "$cross_compiling" != yes; then for i in /proc/self/mounts /proc/mounts; do if test -f "$i"; then mitr_cv_sys_proc_mounts=$i break fi done fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mitr_cv_sys_proc_mounts" >&5 $as_echo "$mitr_cv_sys_proc_mounts" >&6; } if test "$mitr_cv_sys_proc_mounts" != no; then cat >>confdefs.h <<_ACEOF #define PROC_MOUNTS_PATH "$mitr_cv_sys_proc_mounts" _ACEOF fi # Miscellanous hackery. # Modify CFLAGS after all tests are run (some of them would fail because # of the -Werror). if test "$GCC" = yes ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for available GCC warning flags" >&5 $as_echo_n "checking for available GCC warning flags... " >&6; } if ${mitr_cv_prog_gcc_warnings+:} false; then : $as_echo_n "(cached) " >&6 else mitr_cv_prog_gcc_warnings="" for i in -Wall -W -Wcast-align -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings; do oldcflags=$CFLAGS CFLAGS="$CFLAGS $i" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : mitr_cv_prog_gcc_warnings="$mitr_cv_prog_gcc_warnings $i" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$oldcflags done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mitr_cv_prog_gcc_warnings" >&5 $as_echo "$mitr_cv_prog_gcc_warnings" >&6; } CFLAGS="$CFLAGS $mitr_cv_prog_gcc_warnings" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should use -Werror" >&5 $as_echo_n "checking whether we should use -Werror... " >&6; } # Check whether --enable-Werror was given. if test "${enable_Werror+set}" = set; then : enableval=$enable_Werror; else enable_Werror=no fi if test "x$enable_Werror" != xno; then CFLAGS="$CFLAGS -Werror" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_Werror" >&5 $as_echo "$enable_Werror" >&6; } fi ac_config_files="$ac_config_files Makefile gnulib/lib/Makefile po/Makefile.in" 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 if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi test "X$DEFS" = X-DHAVE_CONFIG_H && DEFS= gl_libobjs= gl_ltlibobjs= if test -n "$gl_LIBOBJS"; then # Remove the extension. sed_drop_objext='s/\.o$//;s/\.obj$//' for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do gl_libobjs="$gl_libobjs $i.$ac_objext" gl_ltlibobjs="$gl_ltlibobjs $i.lo" done fi gl_LIBOBJS=$gl_libobjs gl_LTLIBOBJS=$gl_ltlibobjs : "${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 -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' 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 if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in #( -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # 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 mlocate $as_me 0.26, which was generated by GNU Autoconf 2.68. 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 . mlocate home page: ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ mlocate config.status 0.26 configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\" Copyright (C) 2010 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 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; "./atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS ./atconfig" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "gnulib/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/lib/Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; *) 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 "./atconfig":C) cat >./atconfig </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"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //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' -e 's/\$U/'"$U"'/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 mlocate-0.26/INSTALL0000644000175000017500000003660012025761077011053 00000000000000Installation Instructions ************************* Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation, Inc. 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. This file is offered as-is, without warranty of any kind. Basic Installation ================== Briefly, the shell commands `./configure; make; make install' should configure, build, and install this package. The following more-detailed instructions are generic; see the `README' file for instructions specific to this package. Some packages provide this `INSTALL' file but do not implement all of the features documented below. The lack of an optional feature in a given package is not necessarily a bug. More recommendations for GNU packages can be found in *note Makefile Conventions: (standards)Makefile Conventions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). It can also use an optional file (typically called `config.cache' and enabled with `--cache-file=config.cache' or simply `-C') that saves the results of its tests to speed up reconfiguring. Caching is disabled by default to prevent problems with accidental use of stale cache files. If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If you are using the cache, and at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.ac' (or `configure.in') is used to create `configure' by a program called `autoconf'. You need `configure.ac' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. Running `configure' might take a while. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package, generally using the just-built uninstalled binaries. 4. Type `make install' to install the programs and any data files and documentation. When installing into a prefix owned by root, it is recommended that the package be configured and built as a regular user, and only the `make install' phase executed with root privileges. 5. Optionally, type `make installcheck' to repeat any self-tests, but this time using the binaries in their final installed location. This target does not install anything. Running this target as a regular user, particularly if the prior `make install' required root privileges, verifies that the installation completed correctly. 6. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. 7. Often, you can also type `make uninstall' to remove the installed files again. In practice, not all packages have tested that uninstallation works correctly, even though it is required by the GNU Coding Standards. 8. Some packages, particularly those that use Automake, provide `make distcheck', which can by used by developers to test that all other targets like `make install' and `make uninstall' work correctly. This target is generally not run by end users. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. Run `./configure --help' for details on some of the pertinent environment variables. You can give `configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here is an example: ./configure CC=c99 CFLAGS=-g LIBS=-lposix *Note Defining Variables::, for more details. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you can use GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. This is known as a "VPATH" build. With a non-GNU `make', it is safer to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. On MacOS X 10.5 and later systems, you can create libraries and executables that work on multiple system types--known as "fat" or "universal" binaries--by specifying multiple `-arch' options to the compiler but only a single `-arch' option to the preprocessor. Like this: ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CPP="gcc -E" CXXCPP="g++ -E" This is not guaranteed to produce working output in all cases, you may have to build one architecture at a time and combine the results using the `lipo' tool if you have problems. Installation Names ================== By default, `make install' installs the package's commands under `/usr/local/bin', include files under `/usr/local/include', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PREFIX', where PREFIX must be an absolute file name. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you pass the option `--exec-prefix=PREFIX' to `configure', the package uses PREFIX as the prefix for installing programs and libraries. Documentation and other data files still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=DIR' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. In general, the default for these options is expressed in terms of `${prefix}', so that specifying just `--prefix' will affect all of the other directory specifications that were not explicitly provided. The most portable way to affect installation locations is to pass the correct locations to `configure'; however, many packages provide one or both of the following shortcuts of passing variable assignments to the `make install' command line to change installation locations without having to reconfigure or recompile. The first method involves providing an override variable for each affected directory. For example, `make install prefix=/alternate/directory' will choose an alternate location for all directory configuration variables that were expressed in terms of `${prefix}'. Any directories that were specified during `configure', but not in terms of `${prefix}', must each be overridden at install time for the entire installation to be relocated. The approach of makefile variable overrides for each directory variable is required by the GNU Coding Standards, and ideally causes no recompilation. However, some platforms have known limitations with the semantics of shared libraries that end up requiring recompilation when using this method, particularly noticeable in packages that use GNU Libtool. The second method involves providing the `DESTDIR' variable. For example, `make install DESTDIR=/alternate/directory' will prepend `/alternate/directory' before all installation names. The approach of `DESTDIR' overrides is not required by the GNU Coding Standards, and does not work on platforms that have drive letters. On the other hand, it does better at avoiding recompilation issues, and works well even when some directory options were not specified in terms of `${prefix}' at `configure' time. Optional Features ================= If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Some packages offer the ability to configure how verbose the execution of `make' will be. For these packages, running `./configure --enable-silent-rules' sets the default to minimal output, which can be overridden with `make V=1'; while running `./configure --disable-silent-rules' sets the default to verbose, which can be overridden with `make V=0'. Particular systems ================== On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC is not installed, it is recommended to use the following options in order to use an ANSI C compiler: ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" and if that doesn't work, install pre-built binaries of GCC for HP-UX. HP-UX `make' updates targets which have the same time stamps as their prerequisites, which makes it generally unusable when shipped generated files such as `configure' are involved. Use GNU `make' instead. On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot parse its `' header file. The option `-nodtk' can be used as a workaround. If GNU CC is not installed, it is therefore recommended to try ./configure CC="cc" and if that doesn't work, try ./configure CC="cc -nodtk" On Solaris, don't put `/usr/ucb' early in your `PATH'. This directory contains several dysfunctional programs; working variants of these programs are available in `/usr/bin'. So, if you need `/usr/ucb' in your `PATH', put it _after_ `/usr/bin'. On Haiku, software installed for all users goes in `/boot/common', not `/usr/local'. It is recommended to use the following options: ./configure --prefix=/boot/common Specifying the System Type ========================== There may be some features `configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, `configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the option `--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with `--host=TYPE'. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the `configure' command line, using `VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc causes the specified `gcc' to be used as the C compiler (unless it is overridden in the site shell script). Unfortunately, this technique does not work for `CONFIG_SHELL' due to an Autoconf bug. Until the bug is fixed you can use this workaround: CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of all of the options to `configure', and exit. `--help=short' `--help=recursive' Print a summary of the options unique to this package's `configure', and exit. The `short' variant lists options used only in the top level, while the `recursive' variant lists options also present in any nested packages. `--version' `-V' Print the version of Autoconf used to generate the `configure' script, and exit. `--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally `config.cache'. FILE defaults to `/dev/null' to disable caching. `--config-cache' `-C' Alias for `--cache-file=config.cache'. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `--prefix=DIR' Use DIR as the installation prefix. *note Installation Names:: for more details, including other options available for fine-tuning the installation locations. `--no-create' `-n' Run the configure checks, but stop before creating any output files. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. mlocate-0.26/admin/0000775000175000017500000000000012027217355011164 500000000000000mlocate-0.26/admin/install-sh0000755000175000017500000003325612025761077013122 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2011-01-19.21; # 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. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # 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_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' 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 no_target_directory= 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 *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 # Protect names problematic for `test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done 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 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 -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writeable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob 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` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob 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: mlocate-0.26/admin/link-warning.h0000664000175000017500000000241411351703016013647 00000000000000/* GL_LINK_WARNING("literal string") arranges to emit the literal string as a linker warning on most glibc systems. We use a linker warning rather than a preprocessor warning, because #warning cannot be used inside macros. */ #ifndef GL_LINK_WARNING /* This works on platforms with GNU ld and ELF object format. Testing __GLIBC__ is sufficient for asserting that GNU ld is in use. Testing __ELF__ guarantees the ELF object format. Testing __GNUC__ is necessary for the compound expression syntax. */ # if defined __GLIBC__ && defined __ELF__ && defined __GNUC__ # define GL_LINK_WARNING(message) \ GL_LINK_WARNING1 (__FILE__, __LINE__, message) # define GL_LINK_WARNING1(file, line, message) \ GL_LINK_WARNING2 (file, line, message) /* macroexpand file and line */ # define GL_LINK_WARNING2(file, line, message) \ GL_LINK_WARNING3 (file ":" #line ": warning: " message) # define GL_LINK_WARNING3(message) \ ({ static const char warning[sizeof (message)] \ __attribute__ ((__unused__, \ __section__ (".gnu.warning"), \ __aligned__ (1))) \ = message "\n"; \ (void)0; \ }) # else # define GL_LINK_WARNING(message) ((void) 0) # endif #endif mlocate-0.26/admin/missing0000755000175000017500000002415212025761077012510 00000000000000#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2012-01-06.13; # UTC # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, # 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. # Originally 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 run=: sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' sed_minuso='s/.* -o \([^ ]*\).*/\1/p' # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case $1 in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' autom4te touch the output file, or create a stub one automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file yacc create \`y.tab.[ch]', if possible, from existing .[ch] 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 # normalize program name to check for. program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). This is about non-GNU programs, so use $1 not # $program. case $1 in lex*|yacc*) # Not GNU programs, they don't have --version. ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case $program in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case $f in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te*) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison*|yacc*) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if test $# -ne 1; then eval LASTARG=\${$#} case $LASTARG in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.h fi ;; esac fi if test ! -f y.tab.h; then echo >y.tab.h fi if test ! -f y.tab.c; then echo 'main() { return 0; }' >y.tab.c fi ;; lex*|flex*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if test $# -ne 1; then eval LASTARG=\${$#} case $LASTARG in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if test ! -f lex.yy.c; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit $? fi ;; makeinfo*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n ' /^@setfilename/{ s/.* \([^ ]*\) *$/\1/ p q }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # 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: mlocate-0.26/admin/config.guess0000755000175000017500000012743212025761077013436 00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, # 2011, 2012 Free Software Foundation, Inc. timestamp='2012-02-10' # 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 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, 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 Per Bothner. Please send patches (context # diff format) to and include a ChangeLog # entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 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 (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 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 # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 exit $exitcode ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux${UNAME_RELEASE} exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` 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 ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*: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-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; aarch64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be echo ${UNAME_MACHINE}-unknown-linux-gnu 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="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${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-gnu else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then echo ${UNAME_MACHINE}-unknown-linux-gnueabi else echo ${UNAME_MACHINE}-unknown-linux-gnueabihf fi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-gnu exit ;; frv:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; hexagon:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; i*86:Linux:*:*) LIBC=gnu eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu 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-gnu"; exit; } ;; or32:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; padre:Linux:*:*) echo sparc-unknown-linux-gnu exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu 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-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; tile*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in i386) eval $set_cc_for_build 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 UNAME_PROCESSOR="x86_64" fi fi ;; unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NEO-?:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk${UNAME_RELEASE} exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; x86_64:VMkernel:*:*) echo ${UNAME_MACHINE}-unknown-esx exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: mlocate-0.26/admin/config.rpath0000755000175000017500000004364711435544162013431 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-2007 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 AC_LIBTOOL_PROG_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*) ;; hpux9* | hpux10* | hpux11*) wl='-Wl,' ;; irix5* | irix6* | nonstopux*) wl='-Wl,' ;; newsos6) ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) 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 AC_LIBTOOL_PROG_LD_SHLIBS. hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no case "$host_os" in cygwin* | mingw* | pw32*) # 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 aix3* | aix4* | aix5*) # 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*) # 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 ;; aix4* | aix5*) 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].*|aix5*) 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*) # 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 AC_LIBTOOL_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' ;; aix4* | aix5*) 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*) 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=/' <. # 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 # A tabulation character. tab=' ' # A newline character. nl=' ' 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" # 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 informations. 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 -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## 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). ## - 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 -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## 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. tr ' ' "$nl" < "$tmpdepfile" | ## 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. 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 -eq 0; then : else 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 # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#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. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` 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 -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then # Each line is of the form 'foo.o: dependent.h'. # Do two passes, one to just change these to # '$object: dependent.h' and one to simply 'dependent.h:'. sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler anf tcc (Tiny C Compiler) understand '-MD -MF file'. # However on # $CC -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using '\': # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... # tcc 0.9.26 (FIXME still under development at the moment of writing) # will emit a similar output, but also prepend the continuation lines # with horizontal tabulation characters. "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else 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 -e "s/^[ $tab][ $tab]*/ /" -e "s,^[^:]*:,$object :," \ < "$tmpdepfile" > "$depfile" sed ' s/[ '"$tab"'][ '"$tab"']*/ /g s/^ *// s/ *\\*$// s/^[^:]*: *// /^$/d /:$/d s/$/ :/ ' < "$tmpdepfile" >> "$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. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` 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 -eq 0; then : else 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,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" # Add 'dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else echo "#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. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mechanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # 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.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; 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" = 0; then : else 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" 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" tr ' ' "$nl" < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. 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" sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. 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: mlocate-0.26/admin/config.sub0000755000175000017500000010517612025761077013102 00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, # 2011, 2012 Free Software Foundation, Inc. timestamp='2012-02-10' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # 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 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, 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. # Please send patches to . Submit a context # diff and a properly formatted GNU ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 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-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; android-linux) os=-linux-android basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray | -microblaze) os= basic_machine=$1 ;; -bluegene*) os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) 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 | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | be32 | be64 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | epiphany \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | hexagon \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | le32 | le64 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | 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 \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nds32 | nds32le | nds32be \ | nios | nios2 \ | ns16k | ns32k \ | open8 \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ | pyramid \ | rl78 | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu \ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ubicom32 \ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | 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 ;; m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | 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-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | be32-* | be64-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | hexagon-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | le32-* | le64-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ | 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-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nds32-* | nds32le-* | nds32be-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | open8-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | pyramid-* \ | rl78-* | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ | tahoe-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tile*-* \ | tron-* \ | ubicom32-* \ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) basic_machine=powerpc-ibm os=-cnk ;; c54x-*) basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c55x-*) basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c6x-*) basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16 | cr16-*) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; 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 ;; mingw32) basic_machine=i386-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 ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; msys) basic_machine=i386-pc os=-msys ;; mvs) basic_machine=i370-ibm os=-mvs ;; nacl) basic_machine=le32-unknown os=-nacl ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; neo-tandem) basic_machine=neo-tandem ;; nse-tandem) basic_machine=nse-tandem ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc | ppcbe) basic_machine=powerpc-unknown ;; ppc-* | ppcbe-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos) 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* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-android* \ | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -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*) # 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 ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -nacl*) ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; 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: mlocate-0.26/admin/compile0000755000175000017500000001615212025761077012470 00000000000000#! /bin/sh # Wrapper for compilers which do not understand '-c -o'. scriptversion=2012-03-05.13; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009, 2010, 2012 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 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: mlocate-0.26/Makefile.in0000664000175000017500000015421612027217341012065 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (C) 2005, 2006, 2007 Red Hat, Inc. All rights reserved. # This copyrighted material is made available to anyone wishing to use, modify, # copy, or redistribute it subject to the terms and conditions of the GNU # General Public License v.2. # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Author: Miloslav Trmac VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } 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@ bin_PROGRAMS = src/locate$(EXEEXT) src/updatedb$(EXEEXT) check_PROGRAMS = tests/bind-mount-helper$(EXEEXT) subdir = . DIST_COMMON = README $(am__configure_deps) $(dist_man_MANS) \ $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/configure $(top_srcdir)/src/config.h.in \ ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS admin/compile \ admin/config.guess admin/config.rpath admin/config.sub \ admin/depcomp admin/install-sh admin/missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/gnulib/m4/alloca.m4 \ $(top_srcdir)/gnulib/m4/canonicalize-lgpl.m4 \ $(top_srcdir)/gnulib/m4/config-h.m4 \ $(top_srcdir)/gnulib/m4/d-type.m4 \ $(top_srcdir)/gnulib/m4/eealloc.m4 \ $(top_srcdir)/gnulib/m4/error.m4 \ $(top_srcdir)/gnulib/m4/exitfail.m4 \ $(top_srcdir)/gnulib/m4/extensions.m4 \ $(top_srcdir)/gnulib/m4/fnmatch.m4 \ $(top_srcdir)/gnulib/m4/getopt.m4 \ $(top_srcdir)/gnulib/m4/gnulib-common.m4 \ $(top_srcdir)/gnulib/m4/gnulib-comp.m4 \ $(top_srcdir)/gnulib/m4/include_next.m4 \ $(top_srcdir)/gnulib/m4/inline.m4 \ $(top_srcdir)/gnulib/m4/localcharset.m4 \ $(top_srcdir)/gnulib/m4/malloca.m4 \ $(top_srcdir)/gnulib/m4/mbchar.m4 \ $(top_srcdir)/gnulib/m4/mbiter.m4 \ $(top_srcdir)/gnulib/m4/mbrtowc.m4 \ $(top_srcdir)/gnulib/m4/mbslen.m4 \ $(top_srcdir)/gnulib/m4/mbsstr.m4 \ $(top_srcdir)/gnulib/m4/mbstate_t.m4 \ $(top_srcdir)/gnulib/m4/memchr.m4 \ $(top_srcdir)/gnulib/m4/mempcpy.m4 \ $(top_srcdir)/gnulib/m4/pathmax.m4 \ $(top_srcdir)/gnulib/m4/readlink.m4 \ $(top_srcdir)/gnulib/m4/safe-read.m4 \ $(top_srcdir)/gnulib/m4/ssize_t.m4 \ $(top_srcdir)/gnulib/m4/stat-time.m4 \ $(top_srcdir)/gnulib/m4/stdbool.m4 \ $(top_srcdir)/gnulib/m4/stdint.m4 \ $(top_srcdir)/gnulib/m4/stdlib_h.m4 \ $(top_srcdir)/gnulib/m4/strchrnul.m4 \ $(top_srcdir)/gnulib/m4/strerror.m4 \ $(top_srcdir)/gnulib/m4/string_h.m4 \ $(top_srcdir)/gnulib/m4/strnlen.m4 \ $(top_srcdir)/gnulib/m4/time_h.m4 \ $(top_srcdir)/gnulib/m4/timespec.m4 \ $(top_srcdir)/gnulib/m4/unistd_h.m4 \ $(top_srcdir)/gnulib/m4/wchar.m4 \ $(top_srcdir)/gnulib/m4/wctype.m4 \ $(top_srcdir)/gnulib/m4/wcwidth.m4 \ $(top_srcdir)/gnulib/m4/xalloc.m4 $(top_srcdir)/m4/codeset.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc21.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/longlong.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/wchar_t.m4 \ $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/src/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) AR = ar ARFLAGS = cru src_liblib_a_AR = $(AR) $(ARFLAGS) src_liblib_a_LIBADD = am__dirstamp = $(am__leading_dot)dirstamp am_src_liblib_a_OBJECTS = src/bind-mount.$(OBJEXT) src/lib.$(OBJEXT) src_liblib_a_OBJECTS = $(am_src_liblib_a_OBJECTS) am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" \ "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(man8dir)" PROGRAMS = $(bin_PROGRAMS) src_locate_SOURCES = src/locate.c src_locate_OBJECTS = src/src_locate-locate.$(OBJEXT) am__DEPENDENCIES_1 = src_locate_DEPENDENCIES = src/liblib.a gnulib/lib/libgnu.a \ $(am__DEPENDENCIES_1) am_src_updatedb_OBJECTS = src/src_updatedb-conf.$(OBJEXT) \ src/src_updatedb-updatedb.$(OBJEXT) src_updatedb_OBJECTS = $(am_src_updatedb_OBJECTS) src_updatedb_DEPENDENCIES = src/liblib.a gnulib/lib/libgnu.a \ $(am__DEPENDENCIES_1) tests_bind_mount_helper_SOURCES = tests/bind-mount-helper.c tests_bind_mount_helper_OBJECTS = tests/bind-mount-helper.$(OBJEXT) tests_bind_mount_helper_DEPENDENCIES = src/liblib.a \ gnulib/lib/libgnu.a $(am__DEPENDENCIES_1) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src depcomp = $(SHELL) $(top_srcdir)/admin/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(src_liblib_a_SOURCES) src/locate.c $(src_updatedb_SOURCES) \ tests/bind-mount-helper.c DIST_SOURCES = $(src_liblib_a_SOURCES) src/locate.c \ $(src_updatedb_SOURCES) tests/bind-mount-helper.c RECURSIVE_TARGETS = all-recursive check-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 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; }; \ } man1dir = $(mandir)/man1 man5dir = $(mandir)/man5 man8dir = $(mandir)/man8 NROFF = nroff MANS = $(dist_man_MANS) $(man_MANS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir dist dist-all distcheck ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) 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__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" GZIP_ENV = --best DIST_ARCHIVES = $(distdir).tar.xz 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@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOM4TE = @AUTOM4TE@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@ BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@ BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@ BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@ BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@ 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@ FNMATCH_H = @FNMATCH_H@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ GNULIB_CHOWN = @GNULIB_CHOWN@ GNULIB_DUP2 = @GNULIB_DUP2@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ GNULIB_GETCWD = @GNULIB_GETCWD@ GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ GNULIB_LCHOWN = @GNULIB_LCHOWN@ GNULIB_LSEEK = @GNULIB_LSEEK@ GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ GNULIB_MBSCHR = @GNULIB_MBSCHR@ GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ GNULIB_MBSLEN = @GNULIB_MBSLEN@ GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ GNULIB_MBSSEP = @GNULIB_MBSSEP@ GNULIB_MBSSPN = @GNULIB_MBSSPN@ GNULIB_MBSSTR = @GNULIB_MBSSTR@ GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ GNULIB_MEMMEM = @GNULIB_MEMMEM@ GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ GNULIB_READLINK = @GNULIB_READLINK@ GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ GNULIB_SLEEP = @GNULIB_SLEEP@ GNULIB_STPCPY = @GNULIB_STPCPY@ GNULIB_STPNCPY = @GNULIB_STPNCPY@ GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ GNULIB_STRDUP = @GNULIB_STRDUP@ GNULIB_STRERROR = @GNULIB_STRERROR@ GNULIB_STRNDUP = @GNULIB_STRNDUP@ GNULIB_STRNLEN = @GNULIB_STRNLEN@ GNULIB_STRPBRK = @GNULIB_STRPBRK@ GNULIB_STRSEP = @GNULIB_STRSEP@ GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ GNULIB_WCWIDTH = @GNULIB_WCWIDTH@ GREP = @GREP@ HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ HAVE_DUP2 = @HAVE_DUP2@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ HAVE_READLINK = @HAVE_READLINK@ HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ HAVE_STRNDUP = @HAVE_STRNDUP@ HAVE_STRPBRK = @HAVE_STRPBRK@ HAVE_STRSEP = @HAVE_STRSEP@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE__BOOL = @HAVE__BOOL@ INCLUDE_NEXT = @INCLUDE_NEXT@ 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@ LIBGNU_LIBDEPS = @LIBGNU_LIBDEPS@ LIBGNU_LTLIBDEPS = @LIBGNU_LTLIBDEPS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRING_H = @NEXT_STRING_H@ NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NEXT_WCTYPE_H = @NEXT_WCTYPE_H@ 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@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ REPLACE_CHOWN = @REPLACE_CHOWN@ REPLACE_FCHDIR = @REPLACE_FCHDIR@ REPLACE_GETCWD = @REPLACE_GETCWD@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ REPLACE_STRERROR = @REPLACE_STRERROR@ REPLACE_STRPTIME = @REPLACE_STRPTIME@ REPLACE_TIMEGM = @REPLACE_TIMEGM@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ STDBOOL_H = @STDBOOL_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WCHAR_H = @WCHAR_H@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ WCTYPE_H = @WCTYPE_H@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ 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@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ 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@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ dbdir = $(localstatedir)/mlocate dbfile = $(dbdir)/mlocate.db groupname = mlocate updatedb_conf = $(sysconfdir)/updatedb.conf # autopoint puts its m4 files to the first directory ACLOCAL_AMFLAGS = -I m4 -I gnulib/m4 AM_CPPFLAGS = -I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib COMMON_CPPFLAGS = -DDBFILE='"$(dbfile)"' -DLOCALEDIR='"$(localedir)"' \ -DGROUPNAME='"$(groupname)"' CONF_CPPFLAGS = -DUPDATEDB_CONF='"$(updatedb_conf)"' SUBDIRS = gnulib/lib po dist_man_MANS = doc/mlocate.db.5 man_MANS = doc/locate.1 doc/updatedb.conf.5 doc/updatedb.8 noinst_LIBRARIES = src/liblib.a CLEANFILES = $(man_MANS) DISTCLEANFILES = atconfig EXTRA_DIST = doc/locate.1.in doc/updatedb.conf.5.in doc/updatedb.8.in \ tests/testsuite tests/package.m4 tests/testsuite.at $(TESTFILES) TESTFILES = tests/bind-mount.at tests/config.at tests/locate.at \ tests/updatedb.at src_liblib_a_SOURCES = src/bind-mount.c src/bind-mount.h src/db.h \ src/lib.c src/lib.h src_locate_CPPFLAGS = $(AM_CPPFLAGS) $(COMMON_CPPFLAGS) src_locate_LDADD = src/liblib.a gnulib/lib/libgnu.a $(LIBINTL) src_updatedb_SOURCES = src/conf.c src/conf.h src/updatedb.c src_updatedb_CPPFLAGS = $(AM_CPPFLAGS) $(COMMON_CPPFLAGS) $(CONF_CPPFLAGS) src_updatedb_LDADD = src/liblib.a gnulib/lib/libgnu.a $(LIBINTL) tests_bind_mount_helper_LDADD = src/liblib.a gnulib/lib/libgnu.a $(LIBINTL) all: all-recursive .SUFFIXES: .SUFFIXES: .c .o .obj am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --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 .PRECIOUS: 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): src/config.h: src/stamp-h1 @if test ! -f $@; then rm -f src/stamp-h1; else :; fi @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) src/stamp-h1; else :; fi src/stamp-h1: $(top_srcdir)/src/config.h.in $(top_builddir)/config.status @rm -f src/stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status src/config.h $(top_srcdir)/src/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f src/stamp-h1 touch $@ distclean-hdr: -rm -f src/config.h src/stamp-h1 clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) src/$(am__dirstamp): @$(MKDIR_P) src @: > src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp): @$(MKDIR_P) src/$(DEPDIR) @: > src/$(DEPDIR)/$(am__dirstamp) src/bind-mount.$(OBJEXT): src/$(am__dirstamp) \ src/$(DEPDIR)/$(am__dirstamp) src/lib.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) src/liblib.a: $(src_liblib_a_OBJECTS) $(src_liblib_a_DEPENDENCIES) $(EXTRA_src_liblib_a_DEPENDENCIES) src/$(am__dirstamp) -rm -f src/liblib.a $(src_liblib_a_AR) src/liblib.a $(src_liblib_a_OBJECTS) $(src_liblib_a_LIBADD) $(RANLIB) src/liblib.a install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || 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)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || 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)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) clean-checkPROGRAMS: -test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS) src/src_locate-locate.$(OBJEXT): src/$(am__dirstamp) \ src/$(DEPDIR)/$(am__dirstamp) src/locate$(EXEEXT): $(src_locate_OBJECTS) $(src_locate_DEPENDENCIES) $(EXTRA_src_locate_DEPENDENCIES) src/$(am__dirstamp) @rm -f src/locate$(EXEEXT) $(LINK) $(src_locate_OBJECTS) $(src_locate_LDADD) $(LIBS) src/src_updatedb-conf.$(OBJEXT): src/$(am__dirstamp) \ src/$(DEPDIR)/$(am__dirstamp) src/src_updatedb-updatedb.$(OBJEXT): src/$(am__dirstamp) \ src/$(DEPDIR)/$(am__dirstamp) src/updatedb$(EXEEXT): $(src_updatedb_OBJECTS) $(src_updatedb_DEPENDENCIES) $(EXTRA_src_updatedb_DEPENDENCIES) src/$(am__dirstamp) @rm -f src/updatedb$(EXEEXT) $(LINK) $(src_updatedb_OBJECTS) $(src_updatedb_LDADD) $(LIBS) tests/$(am__dirstamp): @$(MKDIR_P) tests @: > tests/$(am__dirstamp) tests/$(DEPDIR)/$(am__dirstamp): @$(MKDIR_P) tests/$(DEPDIR) @: > tests/$(DEPDIR)/$(am__dirstamp) tests/bind-mount-helper.$(OBJEXT): tests/$(am__dirstamp) \ tests/$(DEPDIR)/$(am__dirstamp) tests/bind-mount-helper$(EXEEXT): $(tests_bind_mount_helper_OBJECTS) $(tests_bind_mount_helper_DEPENDENCIES) $(EXTRA_tests_bind_mount_helper_DEPENDENCIES) tests/$(am__dirstamp) @rm -f tests/bind-mount-helper$(EXEEXT) $(LINK) $(tests_bind_mount_helper_OBJECTS) $(tests_bind_mount_helper_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) -rm -f src/bind-mount.$(OBJEXT) -rm -f src/lib.$(OBJEXT) -rm -f src/src_locate-locate.$(OBJEXT) -rm -f src/src_updatedb-conf.$(OBJEXT) -rm -f src/src_updatedb-updatedb.$(OBJEXT) -rm -f tests/bind-mount-helper.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/bind-mount.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/lib.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/src_locate-locate.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/src_updatedb-conf.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/src_updatedb-updatedb.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@tests/$(DEPDIR)/bind-mount-helper.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` src/src_locate-locate.o: src/locate.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(src_locate_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/src_locate-locate.o -MD -MP -MF src/$(DEPDIR)/src_locate-locate.Tpo -c -o src/src_locate-locate.o `test -f 'src/locate.c' || echo '$(srcdir)/'`src/locate.c @am__fastdepCC_TRUE@ $(am__mv) src/$(DEPDIR)/src_locate-locate.Tpo src/$(DEPDIR)/src_locate-locate.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/locate.c' object='src/src_locate-locate.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(src_locate_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/src_locate-locate.o `test -f 'src/locate.c' || echo '$(srcdir)/'`src/locate.c src/src_locate-locate.obj: src/locate.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(src_locate_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/src_locate-locate.obj -MD -MP -MF src/$(DEPDIR)/src_locate-locate.Tpo -c -o src/src_locate-locate.obj `if test -f 'src/locate.c'; then $(CYGPATH_W) 'src/locate.c'; else $(CYGPATH_W) '$(srcdir)/src/locate.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) src/$(DEPDIR)/src_locate-locate.Tpo src/$(DEPDIR)/src_locate-locate.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/locate.c' object='src/src_locate-locate.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(src_locate_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/src_locate-locate.obj `if test -f 'src/locate.c'; then $(CYGPATH_W) 'src/locate.c'; else $(CYGPATH_W) '$(srcdir)/src/locate.c'; fi` src/src_updatedb-conf.o: src/conf.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(src_updatedb_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/src_updatedb-conf.o -MD -MP -MF src/$(DEPDIR)/src_updatedb-conf.Tpo -c -o src/src_updatedb-conf.o `test -f 'src/conf.c' || echo '$(srcdir)/'`src/conf.c @am__fastdepCC_TRUE@ $(am__mv) src/$(DEPDIR)/src_updatedb-conf.Tpo src/$(DEPDIR)/src_updatedb-conf.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/conf.c' object='src/src_updatedb-conf.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(src_updatedb_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/src_updatedb-conf.o `test -f 'src/conf.c' || echo '$(srcdir)/'`src/conf.c src/src_updatedb-conf.obj: src/conf.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(src_updatedb_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/src_updatedb-conf.obj -MD -MP -MF src/$(DEPDIR)/src_updatedb-conf.Tpo -c -o src/src_updatedb-conf.obj `if test -f 'src/conf.c'; then $(CYGPATH_W) 'src/conf.c'; else $(CYGPATH_W) '$(srcdir)/src/conf.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) src/$(DEPDIR)/src_updatedb-conf.Tpo src/$(DEPDIR)/src_updatedb-conf.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/conf.c' object='src/src_updatedb-conf.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(src_updatedb_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/src_updatedb-conf.obj `if test -f 'src/conf.c'; then $(CYGPATH_W) 'src/conf.c'; else $(CYGPATH_W) '$(srcdir)/src/conf.c'; fi` src/src_updatedb-updatedb.o: src/updatedb.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(src_updatedb_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/src_updatedb-updatedb.o -MD -MP -MF src/$(DEPDIR)/src_updatedb-updatedb.Tpo -c -o src/src_updatedb-updatedb.o `test -f 'src/updatedb.c' || echo '$(srcdir)/'`src/updatedb.c @am__fastdepCC_TRUE@ $(am__mv) src/$(DEPDIR)/src_updatedb-updatedb.Tpo src/$(DEPDIR)/src_updatedb-updatedb.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/updatedb.c' object='src/src_updatedb-updatedb.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(src_updatedb_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/src_updatedb-updatedb.o `test -f 'src/updatedb.c' || echo '$(srcdir)/'`src/updatedb.c src/src_updatedb-updatedb.obj: src/updatedb.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(src_updatedb_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/src_updatedb-updatedb.obj -MD -MP -MF src/$(DEPDIR)/src_updatedb-updatedb.Tpo -c -o src/src_updatedb-updatedb.obj `if test -f 'src/updatedb.c'; then $(CYGPATH_W) 'src/updatedb.c'; else $(CYGPATH_W) '$(srcdir)/src/updatedb.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) src/$(DEPDIR)/src_updatedb-updatedb.Tpo src/$(DEPDIR)/src_updatedb-updatedb.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/updatedb.c' object='src/src_updatedb-updatedb.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(src_updatedb_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/src_updatedb-updatedb.obj `if test -f 'src/updatedb.c'; then $(CYGPATH_W) 'src/updatedb.c'; else $(CYGPATH_W) '$(srcdir)/src/updatedb.c'; fi` install-man1: $(dist_man_MANS) $(man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(dist_man_MANS) $(man_MANS)'; \ test -n "$(man1dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.1[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ done; } uninstall-man1: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man1dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(dist_man_MANS) $(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.1[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) install-man5: $(dist_man_MANS) $(man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(dist_man_MANS) $(man_MANS)'; \ test -n "$(man5dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man5dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man5dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.5[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man5dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man5dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man5dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man5dir)" || exit $$?; }; \ done; } uninstall-man5: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man5dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(dist_man_MANS) $(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.5[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man5dir)'; $(am__uninstall_files_from_dir) install-man8: $(dist_man_MANS) $(man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(dist_man_MANS) $(man_MANS)'; \ test -n "$(man8dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man8dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man8dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.8[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man8dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man8dir)" || exit $$?; }; \ done; } uninstall-man8: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man8dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(dist_man_MANS) $(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.8[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man8dir)'; $(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. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; 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" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) 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; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ 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 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ 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" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @list='$(MANS)'; if test -n "$$list"; then \ list=`for p in $$list; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \ if test -n "$$list" && \ grep 'ab help2man is required to generate this page' $$list >/dev/null; then \ echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \ grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \ echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \ echo " typically \`make maintainer-clean' will remove them" >&2; \ exit 1; \ else :; fi; \ else :; fi $(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__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__remove_distdir) dist-lzma: distdir tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma $(am__remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__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.lzma*) \ lzma -dc $(distdir).tar.lzma | $(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 mkdir $(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 \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(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__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 $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(MAKE) $(AM_MAKEFLAGS) check-local check: check-recursive all-am: Makefile $(LIBRARIES) $(PROGRAMS) $(MANS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(man8dir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) -rm -f src/$(DEPDIR)/$(am__dirstamp) -rm -f src/$(am__dirstamp) -rm -f tests/$(DEPDIR)/$(am__dirstamp) -rm -f tests/$(am__dirstamp) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-binPROGRAMS clean-checkPROGRAMS clean-generic \ clean-local clean-noinstLIBRARIES mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf src/$(DEPDIR) tests/$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile 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-man install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-binPROGRAMS install-exec-local @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-exec-hook install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-man1 install-man5 install-man8 install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: installcheck-local maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -rf src/$(DEPDIR) tests/$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-man uninstall-man: uninstall-man1 uninstall-man5 uninstall-man8 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) check-am \ ctags-recursive install-am install-exec-am install-strip \ tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am check-local clean \ clean-binPROGRAMS clean-checkPROGRAMS clean-generic \ clean-local clean-noinstLIBRARIES ctags ctags-recursive dist \ dist-all dist-bzip2 dist-gzip dist-lzip dist-lzma dist-shar \ dist-tarZ dist-xz dist-zip distcheck distclean \ distclean-compile distclean-generic distclean-hdr \ distclean-tags distcleancheck distdir distuninstallcheck dvi \ dvi-am html html-am info info-am install install-am \ install-binPROGRAMS install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-exec-hook \ install-exec-local install-html install-html-am install-info \ install-info-am install-man install-man1 install-man5 \ install-man8 install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installcheck-local installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am uninstall-binPROGRAMS uninstall-man \ uninstall-man1 uninstall-man5 uninstall-man8 doc/locate.1: $(srcdir)/doc/locate.1.in Makefile $(MKDIR_P) doc sed 's,@dbfile@,$(dbfile),g' < $(srcdir)/doc/locate.1.in > $@ doc/updatedb.conf.5: $(srcdir)/doc/updatedb.conf.5.in Makefile $(MKDIR_P) doc sed 's,@updatedb_conf@,$(updatedb_conf),g' \ < $(srcdir)/doc/updatedb.conf.5.in > $@ doc/updatedb.8: $(srcdir)/doc/updatedb.8.in Makefile $(MKDIR_P) doc sed -e 's,@dbfile@,$(dbfile),g; s,@groupname@,$(groupname),g' \ -e 's,@updatedb_conf@,$(updatedb_conf),g' \ < $(srcdir)/doc/updatedb.8.in > $@ clean-local: $(SHELL) $(top_srcdir)/tests/testsuite --clean check-local: atconfig $(top_srcdir)/tests/testsuite $(SHELL) $(top_srcdir)/tests/testsuite installcheck-local: atconfig $(top_srcdir)/tests/testsuite $(SHELL) $(top_srcdir)/tests/testsuite AUTOTEST_PATH=$(bindir) install-exec-local: $(MKDIR_P) "$(DESTDIR)$(dbdir)" -chgrp $(groupname) "$(DESTDIR)$(dbdir)" 2>/dev/null \ && chmod g=rx,o= "$(DESTDIR)$(dbdir)" install-exec-hook: -chgrp $(groupname) "$(DESTDIR)$(bindir)/locate" 2>/dev/null \ && chmod g+s,go-w "$(DESTDIR)$(bindir)/locate" $(top_srcdir)/tests/package.m4: $(top_srcdir)/configure.ac { \ echo '# Signature of the current package.'; \ echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \ echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \ echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \ echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \ echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \ echo 'm4_define([AT_PACKAGE_URL], [@PACKAGE_URL@])'; \ } >$(top_srcdir)/tests/package.m4 $(top_srcdir)/tests/testsuite: tests/package.m4 tests/testsuite.at $(TESTFILES) $(AUTOM4TE) --language=autotest -I $(top_srcdir)/tests \ $(top_srcdir)/tests/testsuite.at -o $@.tmp mv $@.tmp $@ atconfig: $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status ./atconfig # 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: mlocate-0.26/src/0000775000175000017500000000000012027217355010663 500000000000000mlocate-0.26/src/config.h.in0000664000175000017500000003007412027217353012630 00000000000000/* src/config.h.in. Generated from configure.ac by autoheader. */ /* Define to the number of bits in type 'ptrdiff_t'. */ #undef BITSIZEOF_PTRDIFF_T /* Define to the number of bits in type 'sig_atomic_t'. */ #undef BITSIZEOF_SIG_ATOMIC_T /* Define to the number of bits in type 'size_t'. */ #undef BITSIZEOF_SIZE_T /* Define to the number of bits in type 'wchar_t'. */ #undef BITSIZEOF_WCHAR_T /* Define to the number of bits in type 'wint_t'. */ #undef BITSIZEOF_WINT_T /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP systems. This function is required for `alloca.c' support on those systems. */ #undef CRAY_STACKSEG_END /* Define to 1 if using `alloca.c'. */ #undef C_ALLOCA /* Define to 1 if translation of program messages to the user's native language is requested. */ #undef ENABLE_NLS /* Define to 1 when using the gnulib module fwriteerror. */ #undef GNULIB_FWRITEERROR /* Define to 1 if you have 'alloca' after including , a header that may be supplied by this distribution. */ #undef HAVE_ALLOCA /* Define HAVE_ALLOCA_H for backward compatibility with older code that includes only if HAVE_ALLOCA_H is defined. */ #undef HAVE_ALLOCA_H /* Define to 1 if you have the header file. */ #undef HAVE_BP_SYM_H /* Define to 1 if you have the `btowc' function. */ #undef HAVE_BTOWC /* Define to 1 if you have the `canonicalize_file_name' function. */ #undef HAVE_CANONICALIZE_FILE_NAME /* 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 if the GNU dcgettext() function is already present or preinstalled. */ #undef HAVE_DCGETTEXT /* Define to 1 if you have the declaration of `canonicalize_file_name', and to 0 if you don't. */ #undef HAVE_DECL_CANONICALIZE_FILE_NAME /* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you don't. */ #undef HAVE_DECL_GETC_UNLOCKED /* Define to 1 if you have the declaration of `getenv', and to 0 if you don't. */ #undef HAVE_DECL_GETENV /* Define to 1 if you have the declaration of `isblank', and to 0 if you don't. */ #undef HAVE_DECL_ISBLANK /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you don't. */ #undef HAVE_DECL_STRERROR_R /* Define to 1 if you have the declaration of `strnlen', and to 0 if you don't. */ #undef HAVE_DECL_STRNLEN /* Define to 1 if you have the declaration of `wcwidth', and to 0 if you don't. */ #undef HAVE_DECL_WCWIDTH /* Define to 1 if you have the `fdopendir' function. */ #undef HAVE_FDOPENDIR /* Define to 1 if you have the `getcwd' function. */ #undef HAVE_GETCWD /* Define to 1 if you have the `getmntent' function. */ #undef HAVE_GETMNTENT /* Define to 1 if you have the header file. */ #undef HAVE_GETOPT_H /* Define to 1 if you have the `getopt_long_only' function. */ #undef HAVE_GETOPT_LONG_ONLY /* 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 if your compiler supports the #include_next directive. */ #undef HAVE_INCLUDE_NEXT /* Define to 1 if the compiler supports one of the keywords 'inline', '__inline__', '__inline' and effectively inlines functions marked as such. */ #undef HAVE_INLINE /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the `isblank' function. */ #undef HAVE_ISBLANK /* Define to 1 if you have the `iswcntrl' function. */ #undef HAVE_ISWCNTRL /* Define to 1 if you have the `iswctype' function. */ #undef HAVE_ISWCTYPE /* Define if you have and nl_langinfo(CODESET). */ #undef HAVE_LANGINFO_CODESET /* Define to 1 if the system has the type `long long int'. */ #undef HAVE_LONG_LONG_INT /* Define to 1 if mbrtowc and mbstate_t are properly declared. */ #undef HAVE_MBRTOWC /* Define to 1 if you have the `mbsrtowcs' function. */ #undef HAVE_MBSRTOWCS /* Define to 1 if declares mbstate_t. */ #undef HAVE_MBSTATE_T /* Define to 1 if you have the `memchr' function. */ #undef HAVE_MEMCHR /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the `mempcpy' function. */ #undef HAVE_MEMPCPY /* Define to 1 if libc includes obstacks. */ #undef HAVE_OBSTACK /* Define to 1 if you have the `readlink' function. */ #undef HAVE_READLINK /* Define to 1 if 'sig_atomic_t' is a signed integer type. */ #undef HAVE_SIGNED_SIG_ATOMIC_T /* Define to 1 if 'wchar_t' is a signed integer type. */ #undef HAVE_SIGNED_WCHAR_T /* Define to 1 if 'wint_t' is a signed integer type. */ #undef HAVE_SIGNED_WINT_T /* Define to 1 if stdbool.h conforms to C99. */ #undef HAVE_STDBOOL_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the `strchrnul' function. */ #undef HAVE_STRCHRNUL /* Define to 1 if you have the `strerror' function. */ #undef HAVE_STRERROR /* Define to 1 if you have the `strerror_r' function. */ #undef HAVE_STRERROR_R /* 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 if there is a member named d_type in the struct describing directory headers. */ #undef HAVE_STRUCT_DIRENT_D_TYPE /* Define to 1 if `st_atimensec' is a member of `struct stat'. */ #undef HAVE_STRUCT_STAT_ST_ATIMENSEC /* Define to 1 if `st_atimespec.tv_nsec' is a member of `struct stat'. */ #undef HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC /* Define to 1 if `st_atim.st__tim.tv_nsec' is a member of `struct stat'. */ #undef HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC /* Define to 1 if `st_atim.tv_nsec' is a member of `struct stat'. */ #undef HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC /* Define to 1 if `st_birthtimensec' is a member of `struct stat'. */ #undef HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */ #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC /* Define to 1 if `st_birthtim.tv_nsec' is a member of `struct stat'. */ #undef HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC /* Define to 1 if you have the header file. */ #undef HAVE_SYS_BITYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_INTTYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_PARAM_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_TIME_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if the system has the type `unsigned long long int'. */ #undef HAVE_UNSIGNED_LONG_LONG_INT /* Define to 1 if you have the header file. */ #undef HAVE_WCHAR_H /* Define if you have the 'wchar_t' type. */ #undef HAVE_WCHAR_T /* Define to 1 if you have the header file. */ #undef HAVE_WCTYPE_H /* Define to 1 if you have the `wcwidth' function. */ #undef HAVE_WCWIDTH /* Define if you have the 'wint_t' type. */ #undef HAVE_WINT_T /* Define to 1 if you have the `wmemchr' function. */ #undef HAVE_WMEMCHR /* Define to 1 if you have the `wmemcpy' function. */ #undef HAVE_WMEMCPY /* Define to 1 if you have the `wmempcpy' function. */ #undef HAVE_WMEMPCPY /* Define to 1 if the system has the type `_Bool'. */ #undef HAVE__BOOL /* If malloc(0) is != NULL, define this to 1. Otherwise define this to 0. */ #undef MALLOC_0_IS_NONNULL /* Define to 1 if your C compiler doesn't accept -c and -o together. */ #undef NO_MINUS_C_MINUS_O /* 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 path to the mounted filesystem table. */ #undef PROC_MOUNTS_PATH /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 'ptrdiff_t'. */ #undef PTRDIFF_T_SUFFIX /* Define this to 1 if strerror is broken. */ #undef REPLACE_STRERROR /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 'sig_atomic_t'. */ #undef SIG_ATOMIC_T_SUFFIX /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 'size_t'. */ #undef SIZE_T_SUFFIX /* If using the C implementation of alloca, define if you know the direction of stack growth for your system; otherwise it will be automatically deduced at runtime. STACK_DIRECTION > 0 => grows toward higher addresses STACK_DIRECTION < 0 => grows toward lower addresses STACK_DIRECTION = 0 => direction of growth unknown */ #undef STACK_DIRECTION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define to 1 if strerror_r returns char *. */ #undef STRERROR_R_CHAR_P /* Define to 1 if the type of the st_atim member of a struct stat is struct timespec. */ #undef TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 'wchar_t'. */ #undef WCHAR_T_SUFFIX /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 'wint_t'. */ #undef WINT_T_SUFFIX /* Number of bits in a file offset, on hosts where this is settable. */ #undef _FILE_OFFSET_BITS /* Define for large files, on AIX-style hosts. */ #undef _LARGE_FILES /* Define to 1 if on MINIX. */ #undef _MINIX /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ #undef _POSIX_1_SOURCE /* Define to 1 if you need to in order for `stat' and other things to work. */ #undef _POSIX_SOURCE /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # undef _ALL_SOURCE #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # undef _GNU_SOURCE #endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # undef _POSIX_PTHREAD_SEMANTICS #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # undef _TANDEM_SOURCE #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # undef __EXTENSIONS__ #endif /* Define to rpl_ if the getopt replacement functions and variables should be used. */ #undef __GETOPT_PREFIX /* Define to a replacement function name for fnmatch(). */ #undef fnmatch /* 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 a type if does not define. */ #undef mbstate_t /* Define to a replacement function name for realpath(). */ #undef realpath /* Define to the equivalent of the C99 'restrict' keyword, or to nothing if this is not supported. Do not define if restrict is supported directly. */ #undef restrict /* Work around a bug in Sun C++: it does not support _Restrict or __restrict__, even though the corresponding Sun C compiler ends up with "#define restrict _Restrict" or "#define restrict __restrict__" in the previous line. Perhaps some future version of Sun C++ will work with restrict; if so, hopefully it defines __RESTRICT like Sun C does. */ #if defined __SUNPRO_CC && !defined __RESTRICT # define _Restrict # define __restrict__ #endif /* Define to `unsigned int' if does not define. */ #undef size_t /* Define as a signed type of the same size as size_t. */ #undef ssize_t /* Define to rpl_strnlen if the replacement function should be used. */ #undef strnlen mlocate-0.26/src/conf.c0000664000175000017500000004672311671234416011711 00000000000000/* updatedb configuration. Copyright (C) 2005, 2007, 2008 Red Hat, Inc. All rights reserved. This copyrighted material is made available to anyone wishing to use, modify, copy, or redistribute it subject to the terms and conditions of the GNU General Public License v.2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Author: Miloslav Trmac */ #include #include #include #include #include #include #include #include #include #include #include "canonicalize.h" #include "error.h" #include "obstack.h" #include "xalloc.h" #include "conf.h" #include "lib.h" /* true if locate(1) should check whether files are visible before reporting them */ bool conf_check_visibility = true; /* Filesystems to skip, converted to uppercase and sorted by name */ struct string_list conf_prunefs; /* Directory names to skip, sorted by name */ struct string_list conf_prunenames; /* Paths to skip, sorted by name using dir_path_cmp () */ struct string_list conf_prunepaths; /* true if bind mounts should be skipped */ bool conf_prune_bind_mounts; /* = false; */ /* true if pruning debug output was requested */ bool conf_debug_pruning; /* = false; */ /* Root of the directory tree to store in the database (canonical) */ char *conf_scan_root; /* = NULL; */ /* Absolute (not necessarily canonical) path to the database */ const char *conf_output; /* = NULL; */ /* 1 if file names should be written to stdout as they are found */ bool conf_verbose; /* = false; */ /* Configuration representation for the database configuration block */ const char *conf_block; size_t conf_block_size; /* Parse a STR, store the parsed boolean value to DEST; return 0 if OK, -1 on error. */ static int parse_bool (bool *dest, const char *str) { if (strcmp (str, "0") == 0 || strcmp (str, "no") == 0) { *dest = false; return 0; } if (strcmp (str, "1") == 0 || strcmp (str, "yes") == 0) { *dest = true; return 0; } return -1; } /* String list handling */ /* A "variable" in progress: a list of whitespace-separated strings, used to initialize a struct string_list. Each "variable" can be used only with one string_list, which is initialized to zeroes. */ struct var { struct obstack strings; /* Strings */ void *strings_mark; }; /* PRUNEFS */ static struct var prunefs_var; /* PRUNENAMES */ static struct var prunenames_var; /* PRUNEPATHS */ static struct var prunepaths_var; /* Initialize VAR */ static void var_init (struct var *var) { obstack_init (&var->strings); obstack_alignment_mask (&var->strings) = 0; var->strings_mark = obstack_alloc (&var->strings, 0); } /* Add values from space-separated VAL to VAR and LIST */ static void var_add_values (struct var *var, struct string_list *list, const char *val) { for (;;) { const char *start; while (isspace ((unsigned char)*val)) val++; if (*val == 0) break; start = val; do val++; while (*val != 0 && !isspace ((unsigned char)*val)); string_list_append (list, obstack_copy0 (&var->strings, start, val - start)); } } /* Clear contents of VAR and LIST */ static void var_clear (struct var *var, struct string_list *list) { obstack_free (&var->strings, var->strings_mark); var->strings_mark = obstack_alloc (&var->strings, 0); list->len = 0; } /* Compare two string pointers */ static int cmp_pointers (const void *xa, const void *xb) { char *const *a, *const *b; a = xa; b = xb; return strcmp (*a, *b); } /* Finish variable LIST, sort its contents, remove duplicates */ static void var_finish (struct string_list *list) { qsort (list->entries, list->len, sizeof (*list->entries), cmp_pointers); if (list->len != 0) { char **src, **dest; dest = list->entries + 1; for (src = list->entries + 1; src < list->entries + list->len; src++) { if (strcmp (dest[-1], *src) != 0) { *dest = *src; dest++; } } list->len = dest - list->entries; } list->entries = xnrealloc (list->entries, list->len, sizeof (*list->entries)); } /* UPDATEDB_CONF parsing */ /* UPDATEDB_CONF (locked) */ static FILE *uc_file; /* Line number at token start; type matches error_at_line () */ static unsigned uc_line; /* Current line number; type matches error_at_line () */ static unsigned uc_current_line; /* Last string returned by uc_lex */ static char *uc_lex_buf; static size_t uc_lex_buf_size; /* Token types */ enum { UCT_EOF, UCT_EOL, UCT_IDENTIFIER, UCT_EQUAL, UCT_QUOTED, UCT_OTHER, UCT_PRUNE_BIND_MOUNTS, UCT_PRUNEFS, UCT_PRUNENAMES, UCT_PRUNEPATHS }; /* Append C to uc_lex_buf at POS; return updated POS */ static size_t uc_lex_buf_append (size_t pos, char c) { if (pos == uc_lex_buf_size) uc_lex_buf = x2realloc (uc_lex_buf, &uc_lex_buf_size); uc_lex_buf[pos] = c; return pos + 1; } /* Return next token from uc_file; for UCT_IDENTIFIER, UCT_QUOTED or keywords, store the data to uc_lex_buf (valid until next call). */ static int uc_lex (void) { int c; uc_line = uc_current_line; do { c = getc_unlocked (uc_file); if (c == EOF) return UCT_EOF; } while (c != '\n' && isspace ((unsigned char)c)); switch (c) { case '#': do { c = getc_unlocked (uc_file); if (c == EOF) return UCT_EOF; } while (c != '\n'); /* Fall through */ case '\n': uc_current_line++; if (uc_current_line == 0) { error_at_line (0, 0, UPDATEDB_CONF, uc_current_line - 1, _("warning: Line number overflow")); error_message_count--; /* Don't count as an error */ } return UCT_EOL; case '=': return UCT_EQUAL; case '"': { size_t i; i = 0; while ((c = getc_unlocked (uc_file)) != '"') { if (c == EOF || c == '\n') { error_at_line (0, 0, UPDATEDB_CONF, uc_line, _("missing closing `\"'")); ungetc (c, uc_file); break; } i = uc_lex_buf_append (i, c); } uc_lex_buf_append (i, 0); return UCT_QUOTED; } default: { size_t i; if (!isalpha ((unsigned char)c) && c != '_') return UCT_OTHER; i = 0; do { i = uc_lex_buf_append (i, c); c = getc_unlocked (uc_file); } while (c != EOF && (isalnum ((unsigned char)c) || c == '_')); ungetc (c, uc_file); uc_lex_buf_append (i, 0); if (strcmp (uc_lex_buf, "PRUNE_BIND_MOUNTS") == 0) return UCT_PRUNE_BIND_MOUNTS; if (strcmp (uc_lex_buf, "PRUNEFS") == 0) return UCT_PRUNEFS; if (strcmp (uc_lex_buf, "PRUNENAMES") == 0) return UCT_PRUNENAMES; if (strcmp (uc_lex_buf, "PRUNEPATHS") == 0) return UCT_PRUNEPATHS; return UCT_IDENTIFIER; } } } /* Parse /etc/updatedb.conf. Exit on I/O or syntax error. */ static void parse_updatedb_conf (void) { int old_error_one_per_line; unsigned old_error_message_count; bool had_prune_bind_mounts, had_prunefs, had_prunenames, had_prunepaths; uc_file = fopen (UPDATEDB_CONF, "r"); if (uc_file == NULL) { if (errno != ENOENT) error (EXIT_FAILURE, errno, _("can not open `%s'"), UPDATEDB_CONF); goto err; } flockfile (uc_file); uc_current_line = 1; old_error_message_count = error_message_count; old_error_one_per_line = error_one_per_line; error_one_per_line = 1; had_prune_bind_mounts = false; had_prunefs = false; had_prunenames = false; had_prunepaths = false; for (;;) { bool *had_var; int var_token, token; token = uc_lex (); switch (token) { case UCT_EOF: goto eof; case UCT_EOL: continue; case UCT_PRUNE_BIND_MOUNTS: had_var = &had_prune_bind_mounts; break; case UCT_PRUNEFS: had_var = &had_prunefs; break; case UCT_PRUNENAMES: had_var = &had_prunenames; break; case UCT_PRUNEPATHS: had_var = &had_prunepaths; break; case UCT_IDENTIFIER: error_at_line (0, 0, UPDATEDB_CONF, uc_line, _("unknown variable `%s'"), uc_lex_buf); goto skip_to_eol; default: error_at_line (0, 0, UPDATEDB_CONF, uc_line, _("variable name expected")); goto skip_to_eol; } if (*had_var != false) { error_at_line (0, 0, UPDATEDB_CONF, uc_line, _("variable `%s' was already defined"), uc_lex_buf); goto skip_to_eol; } *had_var = true; var_token = token; token = uc_lex (); if (token != UCT_EQUAL) { error_at_line (0, 0, UPDATEDB_CONF, uc_line, _("`=' expected after variable name")); goto skip_to_eol; } token = uc_lex (); if (token != UCT_QUOTED) { error_at_line (0, 0, UPDATEDB_CONF, uc_line, _("value in quotes expected after `='")); goto skip_to_eol; } if (var_token == UCT_PRUNE_BIND_MOUNTS) { if (parse_bool (&conf_prune_bind_mounts, uc_lex_buf) != 0) { error_at_line (0, 0, UPDATEDB_CONF, uc_line, _("invalid value `%s' of PRUNE_BIND_MOUNTS"), uc_lex_buf); goto skip_to_eol; } } else if (var_token == UCT_PRUNEFS) var_add_values (&prunefs_var, &conf_prunefs, uc_lex_buf); else if (var_token == UCT_PRUNENAMES) var_add_values (&prunenames_var, &conf_prunenames, uc_lex_buf); else if (var_token == UCT_PRUNEPATHS) var_add_values (&prunepaths_var, &conf_prunepaths, uc_lex_buf); else abort (); token = uc_lex (); if (token != UCT_EOL && token != UCT_EOF) { error_at_line (0, 0, UPDATEDB_CONF, uc_line, _("unexpected data after variable value")); goto skip_to_eol; } /* Fall through */ skip_to_eol: while (token != UCT_EOL) { if (token == UCT_EOF) goto eof; token = uc_lex (); } } eof: if (ferror (uc_file)) error (EXIT_FAILURE, 0, _("I/O error reading `%s'"), UPDATEDB_CONF); error_one_per_line = old_error_one_per_line; free (uc_lex_buf); uc_lex_buf_size = 0; funlockfile (uc_file); fclose (uc_file); if (error_message_count != old_error_message_count) exit (EXIT_FAILURE); err: ; } /* Command-line argument parsing */ /* Output --help text */ static void help (void) { printf (_("Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in " "database (default \"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default " "\"no\")\n" " --prunefs FS filesystems to omit from " "database\n" " --prunenames NAMES directory names to omit from " "database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before " "reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they " "are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n"), DBFILE, UPDATEDB_CONF); printf (_("\n" "Report bugs to %s.\n"), PACKAGE_BUGREPORT); } /* Prepend current working directory to PATH; return resulting pathm, for free () */ static char * prepend_cwd (const char *path) { char *buf, *res; size_t size, len1, size2; buf = NULL; size = BUFSIZ; /* Not PATH_MAX because it is not defined on some platforms. */ do buf = x2realloc (buf, &size); while ((res = getcwd (buf, size)) == NULL && errno == ERANGE); if (res == NULL) error (EXIT_FAILURE, errno, _("can not get current working directory")); len1 = strlen (buf); size2 = strlen (path) + 1; buf = xrealloc (buf, len1 + 1 + size2); buf[len1] = '/'; memcpy (buf + len1 + 1, path, size2); return buf; } /* Parse ARGC, ARGV. Exit on error or --help, --version. */ static void parse_arguments (int argc, char *argv[]) { enum { OPT_DEBUG_PRUNING = CHAR_MAX + 1 }; static const struct option options[] = { { "add-prunefs", required_argument, NULL, 'f' }, { "add-prunenames", required_argument, NULL, 'n' }, { "add-prunepaths", required_argument, NULL, 'e' }, { "database-root", required_argument, NULL, 'U' }, { "debug-pruning", no_argument, NULL, OPT_DEBUG_PRUNING }, { "help", no_argument, NULL, 'h' }, { "output", required_argument, NULL, 'o' }, { "prune-bind-mounts", required_argument, NULL, 'B' }, { "prunefs", required_argument, NULL, 'F' }, { "prunenames", required_argument, NULL, 'N' }, { "prunepaths", required_argument, NULL, 'P' }, { "require-visibility", required_argument, NULL, 'l' }, { "verbose", no_argument, NULL, 'v' }, { "version", no_argument, NULL, 'V' }, { NULL, 0, NULL, 0 } }; bool prunefs_changed, prunenames_changed, prunepaths_changed; bool got_prune_bind_mounts, got_visibility; prunefs_changed = false; prunenames_changed = false; prunepaths_changed = false; got_prune_bind_mounts = false; got_visibility = false; for (;;) { int opt, idx; opt = getopt_long (argc, argv, "U:Ve:f:hl:n:o:v", options, &idx); switch (opt) { case -1: goto options_done; case '?': exit (EXIT_FAILURE); case 'B': if (got_prune_bind_mounts != false) error (EXIT_FAILURE, 0, _("--%s would override earlier command-line argument"), "prune-bind-mounts"); got_prune_bind_mounts = true; if (parse_bool (&conf_prune_bind_mounts, optarg) != 0) error (EXIT_FAILURE, 0, _("invalid value `%s' of --%s"), optarg, "prune-bind-mounts"); break; case 'F': if (prunefs_changed != false) error (EXIT_FAILURE, 0, _("--%s would override earlier command-line argument"), "prunefs"); prunefs_changed = true; var_clear (&prunefs_var, &conf_prunefs); var_add_values (&prunefs_var, &conf_prunefs, optarg); break; case 'N': if (prunenames_changed != false) error (EXIT_FAILURE, 0, _("--%s would override earlier command-line argument"), "prunenames"); prunenames_changed = true; var_clear (&prunenames_var, &conf_prunenames); var_add_values (&prunenames_var, &conf_prunenames, optarg); break; case 'P': if (prunepaths_changed != false) error (EXIT_FAILURE, 0, _("--%s would override earlier command-line argument"), "prunepaths"); prunepaths_changed = true; var_clear (&prunepaths_var, &conf_prunepaths); var_add_values (&prunepaths_var, &conf_prunepaths, optarg); break; case 'U': if (conf_scan_root != NULL) error (EXIT_FAILURE, 0, _("--%s specified twice"), "database-root"); conf_scan_root = canonicalize_file_name (optarg); if (conf_scan_root == NULL) error (EXIT_FAILURE, errno, _("invalid value `%s' of --%s"), optarg, "database-root"); break; case 'V': puts ("updatedb (" PACKAGE_NAME ") " PACKAGE_VERSION); puts (_("Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent " "permitted by law.")); exit (EXIT_SUCCESS); case 'e': prunepaths_changed = true; var_add_values (&prunepaths_var, &conf_prunepaths, optarg); break; case 'f': prunefs_changed = true; var_add_values (&prunefs_var, &conf_prunefs, optarg); break; case 'h': help (); exit (EXIT_SUCCESS); case 'l': if (got_visibility != false) error (EXIT_FAILURE, 0, _("--%s specified twice"), "require-visibility"); got_visibility = true; if (parse_bool (&conf_check_visibility, optarg) != 0) error (EXIT_FAILURE, 0, _("invalid value `%s' of --%s"), optarg, "require-visibility"); break; case 'n': prunenames_changed = true; var_add_values (&prunenames_var, &conf_prunenames, optarg); break; case 'o': if (conf_output != NULL) error (EXIT_FAILURE, 0, _("--%s specified twice"), "output"); conf_output = optarg; break; case 'v': conf_verbose = true; break; case OPT_DEBUG_PRUNING: conf_debug_pruning = true; break; default: abort (); } } options_done: if (optind != argc) error (EXIT_FAILURE, 0, _("unexpected operand on command line")); if (conf_scan_root == NULL) { static char root[] = "/"; conf_scan_root = root; } if (conf_output == NULL) conf_output = DBFILE; if (*conf_output != '/') conf_output = prepend_cwd (conf_output); } /* Conversion of configuration for main code */ /* Store a string list to OBSTACK */ static void gen_conf_block_string_list (struct obstack *obstack, const struct string_list *strings) { static const char nul; /* = 0; */ size_t i; for (i = 0; i < strings->len; i++) obstack_grow (obstack, strings->entries[i], strlen (strings->entries[i]) + 1); obstack_grow (obstack, &nul, 1); } /* Generate conf_block */ static void gen_conf_block (void) { struct obstack obstack; obstack_init (&obstack); obstack_alignment_mask (&obstack) = 0; #define CONST(S) obstack_grow (&obstack, S, sizeof (S)) /* conf_check_visibility value is stored in the header */ CONST ("prune_bind_mounts"); /* Add two NUL bytes after the value */ obstack_grow (&obstack, conf_prune_bind_mounts != false ? "1\0" : "0\0", 3); CONST ("prunefs"); gen_conf_block_string_list (&obstack, &conf_prunefs); CONST ("prunenames"); gen_conf_block_string_list (&obstack, &conf_prunenames); CONST ("prunepaths"); gen_conf_block_string_list (&obstack, &conf_prunepaths); /* scan_root is contained directly in the header */ /* conf_output, conf_verbose are not relevant */ #undef CONST conf_block_size = OBSTACK_OBJECT_SIZE (&obstack); conf_block = obstack_finish (&obstack); } /* Parse /etc/updatedb.conf and command-line arguments ARGC, ARGV. Exit on error or --help, --version. */ void conf_prepare (int argc, char *argv[]) { size_t i; var_init (&prunefs_var); var_init (&prunenames_var); var_init (&prunepaths_var); parse_updatedb_conf (); parse_arguments (argc, argv); for (i = 0; i < conf_prunefs.len; i++) { char *p; /* Assuming filesystem names are ASCII-only */ for (p = conf_prunefs.entries[i]; *p != 0; p++) *p = toupper((unsigned char)*p); } /* Finish the variable only after converting filesystem names to upper case to avoid keeping duplicates that originally differed in case and to sort them correctly. */ var_finish (&conf_prunefs); var_finish (&conf_prunenames); var_finish (&conf_prunepaths); gen_conf_block (); string_list_dir_path_sort (&conf_prunepaths); if (conf_debug_pruning != false) { const char *p; /* This is debuging output, don't mark anything for translation */ fprintf (stderr, "conf_block:\n"); for (p = conf_block; p < conf_block + conf_block_size; p++) { char c; c = *p; if (isascii ((unsigned char)c) && isprint ((unsigned char)c) && c != '\\') putc (c, stderr); else { fprintf (stderr, "\\%03o", (unsigned)(unsigned char)c); if (c == 0) putc ('\n', stderr); } } fprintf (stderr, "\n-----------------------\n"); } } mlocate-0.26/src/lib.c0000664000175000017500000002065011556302712011516 00000000000000/* Common functions. Copyright (C) 2005, 2007 Red Hat, Inc. All rights reserved. This copyrighted material is made available to anyone wishing to use, modify, copy, or redistribute it subject to the terms and conditions of the GNU General Public License v.2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Author: Miloslav Trmac */ #include #include #include #include #include #include #include #include #include #include #include #include "error.h" #include "obstack.h" #include "safe-read.h" #include "verify.h" #include "xalloc.h" #include "db.h" #include "lib.h" /* Convert VAL to big endian */ uint64_t htonll (uint64_t val) { uint32_t low, high; uint64_t ret; verify (sizeof (ret) == sizeof (high) + sizeof (low)); low = htonl ((uint32_t)val); high = htonl (val >> 32); memcpy (&ret, &high, sizeof (high)); memcpy ((unsigned char *)&ret + sizeof (high), &low, sizeof (low)); return ret; } /* Convert VAL from big endian */ uint64_t ntohll (uint64_t val) { uint32_t low, high; verify (sizeof (high) + sizeof (low) == sizeof (val)); memcpy (&high, &val, sizeof (high)); memcpy (&low, (unsigned char *)&val + sizeof (high), sizeof (low)); return (uint64_t)ntohl (high) << 32 | ntohl (low); } /* A mapping table for dir_path_cmp: '\0' < '/' < anything else */ static unsigned char dir_path_cmp_table[UCHAR_MAX + 1]; /* Initialize dir_path_cmp_table */ void dir_path_cmp_init (void) { size_t i; unsigned char val; dir_path_cmp_table[0] = 0; dir_path_cmp_table['/'] = 1; val = (unsigned char)2; for (i = 1; i < ARRAY_SIZE (dir_path_cmp_table); i++) { if (i != '/') { dir_path_cmp_table[i] = val; val++; } } assert (val == 0); } /* Compare two path names using the database directory order. This is not exactly strcmp () order: "a" < "a.b", so "a/z" < "a.b". */ int dir_path_cmp (const char *a, const char *b) { while (*a == *b && *a != 0) { a++; b++; } { verify (sizeof (int) > sizeof (unsigned char)); /* To rule out overflow */ } return ((int)dir_path_cmp_table[(unsigned char)*a] - (int)dir_path_cmp_table[(unsigned char)*b]); } /* Used by obstack code */ struct _obstack_chunk * obstack_chunk_alloc (long size) { return xmalloc (size); } /* String list utilities */ /* Append STRING to LIST */ void string_list_append (struct string_list *list, char *string) { if (list->allocated == list->len) list->entries = x2nrealloc (list->entries, &list->allocated, sizeof (*list->entries)); list->entries[list->len] = string; list->len++; } /* Compare two string pointers using dir_path_cmp () */ static int cmp_dir_path_pointers (const void *xa, const void *xb) { char *const *a, *const *b; a = xa; b = xb; return dir_path_cmp (*a, *b); } /* Sort LIST using dir_path_cmp () */ void string_list_dir_path_sort (struct string_list *list) { qsort (list->entries, list->len, sizeof (*list->entries), cmp_dir_path_pointers); } /* Is PATH included in LIST? Update *IDX to move within LIST. LIST is assumed to be sorted using dir_path_cmp (), successive calls to this function are assumed to use PATH values increasing in dir_path_cmp (). */ bool string_list_contains_dir_path (const struct string_list *list, size_t *idx, const char *path) { int cmp; cmp = 0; while (*idx < list->len && (cmp = dir_path_cmp (list->entries[*idx], path)) < 0) (*idx)++; if (*idx < list->len && cmp == 0) { (*idx)++; return true; } return false; } /* Reading of existing databases */ /* Open FILENAME (already open as FD), as DB, report error on failure if not QUIET. Store database header to *HEADER; return 0 if OK, -1 on error. If OK, takes ownership of FD: it will be closed by db_close (). FILENAME must stay valid until db_close (). */ int db_open (struct db *db, struct db_header *header, int fd, const char *filename, bool quiet) { static const uint8_t magic[] = DB_MAGIC; db->fd = fd; db->filename = filename; db->read_bytes = 0; db->quiet = quiet; db->err = 0; db->buf_pos = db->buffer; db->buf_end = db->buffer; if (db_read (db, header, sizeof (*header)) != 0) { db_report_error (db); goto err; } { verify (sizeof (magic) == sizeof (header->magic)); } if (memcmp (header->magic, magic, sizeof (magic)) != 0) { if (quiet == 0) error (0, 0, _("`%s' does not seem to be a mlocate database"), filename); goto err; } if (header->version != DB_VERSION_0) { if (quiet == 0) error (0, 0, _("`%s' has unknown version %u"), filename, (unsigned)header->version); goto err; } if (header->check_visibility != 0 && header->check_visibility != 1) { if (quiet == 0) error (0, 0, _("`%s' has unknown visibility flag %u"), filename, (unsigned)header->check_visibility); goto err; } return 0; err: return -1; } /* Close DB */ void db_close (struct db *db) { close (db->fd); } /* Refill empty DB->buffer; return number of bytes in buffer if OK, 0 on error or EOF */ static size_t db_refill (struct db *db) { size_t size; { verify (sizeof (db->buffer) < SAFE_READ_ERROR); } size = safe_read (db->fd, db->buffer, sizeof (db->buffer)); switch (size) { case 0: db->err = 0; return 0; case SAFE_READ_ERROR: db->err = errno; return 0; default: db->buf_pos = db->buffer; db->buf_end = db->buffer + size; db->read_bytes += size; return size; } } /* Report read error or unexpected EOF on DB if not DB->quiet */ void db_report_error (const struct db *db) { if (db->quiet != false) return; if (db->err != 0) error (0, db->err, _("I/O error reading `%s'"), db->filename); else error (0, 0, _("unexpected EOF reading `%s'"), db->filename); } /* Read SIZE (!= 0) bytes from DB to BUF; return 0 if OK, -1 on error */ int db_read (struct db *db, void *buf, size_t size) { assert (size != 0); do { size_t run; run = db->buf_end - db->buf_pos; if (run == 0) { run = db_refill (db); if (run == 0) return -1; } if (run > size) run = size; buf = mempcpy (buf, db->buf_pos, run); db->buf_pos += run; size -= run; } while (size != 0); return 0; } /* Read a NUL-terminated string from DB to current object in OBSTACK (without the terminating NUL), report error on failure if not DB->quiet. return 0 if OK, or -1 on I/O error. */ int db_read_name (struct db *db, struct obstack *h) { for (;;) { size_t run; char *nul; run = db->buf_end - db->buf_pos; if (run == 0) { run = db_refill (db); if (run == 0) goto err; } nul = memchr (db->buf_pos, 0, run); if (nul != NULL) { obstack_grow (h, db->buf_pos, nul - db->buf_pos); db->buf_pos = nul + 1; break; } obstack_grow (h, db->buf_pos, run); db->buf_pos = db->buf_end; } return 0; err: db_report_error (db); return -1; } /* Skip SIZE bytes in DB, report error on failure if not DB->quiet; return 0 if OK, -1 on error */ int db_skip (struct db *db, off_t size) { bool use_lseek; use_lseek = true; for (;;) { size_t run; run = db->buf_end - db->buf_pos; { /* To make sure the (ssize_t) cast below is safe. */ verify (sizeof (db->buffer) <= SSIZE_MAX); } if ((ssize_t)run > size) run = size; db->buf_pos += run; size -= run; if (size == 0) break; if (use_lseek != false) { if (lseek (db->fd, size, SEEK_CUR) != -1) break; if (errno != ESPIPE) { if (db->quiet == false) error (0, errno, _("I/O error seeking in `%s'"), db->filename); goto err; } use_lseek = false; } if (db_refill (db) == 0) { db_report_error (db); goto err; } } return 0; err: return -1; } /* Return number of bytes read from DB so far */ off_t db_bytes_read (const struct db *db) { return db->read_bytes - (db->buf_end - db->buf_pos); } mlocate-0.26/src/locate.c0000664000175000017500000006710412027214406012220 00000000000000/* locate(1). Copyright (C) 2005, 2007 Red Hat, Inc. All rights reserved. This copyrighted material is made available to anyone wishing to use, modify, copy, or redistribute it subject to the terms and conditions of the GNU General Public License v.2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Author: Miloslav Trmac */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "error.h" #include "fnmatch.h" #include "fwriteerror.h" #include "obstack.h" #include "progname.h" #include "xalloc.h" #include "db.h" #include "lib.h" /* Check file existence before reporting them */ static bool conf_check_existence; /* = false; */ /* Follow trailing symlinks when checking for existence. The default (and probably the existence of the option) looks like a historical accident. */ static bool conf_check_follow_trailing = true; /* Databases, "-" is stdin */ static struct string_list conf_dbpath; /* = { 0, }; */ /* Ignore case when matching patterns */ static bool conf_ignore_case; /* = false; */ /* Return only files that match all patterns */ static bool conf_match_all_patterns; /* = false; */ /* Match only the basename against patterns */ static bool conf_match_basename; /* = false; */ /* Patterns are regexps */ static bool conf_match_regexp; /* = false; */ /* Patterns are BREs */ static bool conf_match_regexp_basic; /* = false; */ /* Output match count only */ static bool conf_output_count; /* = false; */ /* Output limit */ static uintmax_t conf_output_limit; static bool conf_output_limit_set; /* = false; */ /* Quote nonprintable characters on output */ static bool conf_output_quote; /* = false; */ /* Character for output separation */ static char conf_output_separator = '\n'; /* Patterns to search for */ static struct string_list conf_patterns; /* = { 0, }; */ /* If conf_match_regexp, compiled patterns to search for */ static regex_t *conf_regex_patterns; /* If !conf_match_regexp, true if the pattern contains no characters recognized by fnmatch () as special */ static bool *conf_patterns_simple; /* If !conf_match_regexp, there is at least one simple pattern */ static bool conf_have_simple_pattern; /* = false; */ /* If conf_have_simple_pattern && conf_ignore_case, patterns to search for, in uppercase */ static wchar_t **conf_uppercase_patterns; /* Don't report errors about databases */ static bool conf_quiet; /* = false; */ /* Output only statistics */ static bool conf_statistics; /* = false; */ /* String utilities */ /* Convert SRC to upper-case wide string in OBSTACK; return result */ static wchar_t * uppercase_string (struct obstack *obstack, const char *src) { size_t left, wchars; wchar_t *res, *p; left = strlen (src) + 1; /* Optimistically assume the string is OK and will fit. This may allocate a bit more memory than necessary, but the conversion is slow enough that computing the exact size is not worth it. */ res = obstack_alloc (obstack, left * sizeof (*res)); wchars = mbstowcs (res, src, left); if (wchars != (size_t)-1) assert (wchars < left); else { mbstate_t state; wchar_t wc; obstack_free (obstack, res); /* The slow path. obstack design makes it hard to preallocate space for mbsrtowcs (), so we would have to copy the wide string to use an universal loop using mbsrtowcs (). Using mbstowcs () as a fast path is simpler. */ memset (&state, 0, sizeof (state)); do { size_t size; size = mbrtowc (&wc, src, left, &state); if (size == 0) size = 1; else if (size >= (size_t)-2) { size = 1; wc = (unsigned char)*src; memset (&state, 0, sizeof (state)); } src += size; assert (left >= size); left -= size; obstack_grow (obstack, &wc, sizeof (wc)); } while (wc != 0); res = obstack_finish (obstack); } for (p = res; *p != 0; p++) *p = towupper (*p); return res; } /* Write STRING to stdout, replace unprintable characters with '?' */ static void write_quoted (const char *string) { mbstate_t state; const char *last; /* Start of the current batch of bytes for fwrite () */ size_t left; left = strlen (string); memset (&state, 0, sizeof (state)); last = string; while (left != 0) { size_t size; wchar_t wc; bool printable; size = mbrtowc (&wc, string, left, &state); if (size == 0) break; if (size < (size_t)-2) printable = iswprint (wc); else if (size == (size_t)-1) { size = 1; memset (&state, 0, sizeof (state)); printable = false; } else { assert (size == (size_t)-2); size = left; printable = false; } if (printable == false) { if (string != last) fwrite (last, 1, string - last, stdout); putchar ('?'); } string += size; assert (left >= size); left -= size; if (printable == false) last = string; } if (string != last) fwrite (last, 1, string - last, stdout); } /* Access permission checking */ /* The cache is a simple stack of paths, each path longer than the previous one. This allows calling access() for each object only once (actually, only the R_OK | X_OK acess () calls are cached; the R_OK calls are not). */ struct check_entry { struct check_entry *next; size_t len; bool allowed; char path[]; /* _Not_ NUL-terminated */ }; /* Contains the check_entry stack */ static struct obstack check_stack_obstack; /* Return (possibly cached) result of access (PATH, R_OK | X_OK). Note that errno is not set. */ static int cached_access_rx (const char *path) { static struct check_entry *check_stack; /* = NULL; */ size_t len; struct check_entry *e, *to_free, *new; len = strlen (path); to_free = NULL; for (e = check_stack; e != NULL; e = e->next) { if (e->len < len) break; to_free = e; if (e->len == len && memcmp (e->path, path, len) == 0) goto found; } if (to_free != NULL) obstack_free (&check_stack_obstack, to_free); new = obstack_alloc (&check_stack_obstack, offsetof (struct check_entry, path) + len); new->next = e; new->len = len; new->allowed = access (path, R_OK | X_OK) == 0; memcpy (new->path, path, len); check_stack = new; e = new; found: return e->allowed != false ? 0 : -1; } /* Check permissions of parent directory of PATH; it should be accessible and readable. Return 0 if OK, -1 on error */ static int check_directory_perms (const char *path) { static char *copy; /* = NULL; */ static size_t copy_size; /* = 0; */ size_t size; char *p, *slash, *last_slash; int res; res = -1; size = strlen (path) + 1; assert (size > 1); while (size > copy_size) copy = x2realloc (copy, ©_size); memcpy (copy, path, size); last_slash = strrchr (copy, '/'); assert (last_slash != NULL); if (last_slash == copy) /* "/" was checked in main () */ { res = 0; goto err; } for (p = copy + 1; (slash = strchr (p, '/')) != last_slash; p = slash + 1) { char old; old = *slash; *slash = 0; if (cached_access_rx (copy) != 0) goto err; *slash = old; } *last_slash = 0; /* r-- directories are probably very uncommon, so we try R_OK | X_OK (which pre-populates the cache if PATH has subdirectories) first. This is a heuristic that can in theory almost double the number of access () calls, in practice it reduces the number of access () calls by about 25 %. The asymptotical number of calls stays the same ;-) */ if (cached_access_rx (copy) != 0 && access (copy, R_OK) != 0) goto err; res = 0; err: return res; } /* Statistics */ /* Statistics of the current database */ static uintmax_t stats_directories; static uintmax_t stats_entries; static uintmax_t stats_bytes; /* Clear current statistics */ static void stats_clear (void) { stats_directories = 0; stats_entries = 0; stats_bytes = 0; } /* Print current statistics for DB */ static void stats_print (const struct db *db) { uintmax_t sz; sz = db_bytes_read (db); printf (_("Database %s:\n"), db->filename); /* The third argument of ngettext () is unsigned long; it is still better to have invalid grammar than truncated numbers. */ printf (ngettext ("\t%'ju directory\n", "\t%'ju directories\n", stats_directories), stats_directories); printf (ngettext ("\t%'ju file\n", "\t%'ju files\n", stats_entries), stats_entries); printf (ngettext ("\t%'ju byte in file names\n", "\t%'ju bytes in file names\n", stats_bytes), stats_bytes); printf (ngettext ("\t%'ju byte used to store database\n", "\t%'ju bytes used to store database\n", sz), sz); } /* Database search */ /* Number of matches so far */ static uintmax_t matches_found; /* = 0; */ /* Contains a single, usually not obstack_finish ()'ed object */ static struct obstack path_obstack; /* Contains a single object */ static struct obstack uc_obstack; /* .. after this zero-length marker */ static void *uc_obstack_mark; /* Does STRING match one of conf_patterns? */ static bool string_matches_pattern (const char *string) { size_t i; wchar_t *wstring; bool matched, break_matching_on; if (conf_match_regexp == false && conf_ignore_case != false && conf_have_simple_pattern != false) { obstack_free (&uc_obstack, uc_obstack_mark); wstring = uppercase_string (&uc_obstack, string); uc_obstack_mark = wstring; } else wstring = NULL; matched = false; if (conf_match_all_patterns != false) /* Any pattern doesn't match => result is false. If all patterns match, return the value of the last match, which is true. */ break_matching_on = false; else /* Any pattern matches => result is true. */ break_matching_on = true; for (i = 0; i < conf_patterns.len; i++) { if (conf_match_regexp != false) matched = regexec (conf_regex_patterns + i, string, 0, NULL, 0) == 0; else { if (conf_patterns_simple[i] != false) { if (conf_ignore_case == false) matched = mbsstr (string, conf_patterns.entries[i]) != NULL; else matched = wcsstr (wstring, conf_uppercase_patterns[i]) != NULL; } else matched = (fnmatch (conf_patterns.entries[i], string, conf_ignore_case != false ? FNM_CASEFOLD : 0) == 0); } if (matched == break_matching_on) break; } return matched; } /* PATH was found, handle it as necessary; maintain *VISIBLE: if it is -1, check whether the directory containing PATH is accessible and readable and set *VISIBLE accordingly; otherwise just use the value; return 0 to continue, -1 if match limit was reached */ static int handle_path (const char *path, int *visible) { const char *s, *matching; /* Statistics */ if (conf_statistics != false) { stats_entries++; /* Overflow is too unlikely */ stats_bytes += strlen (path); goto done; } /* Matches pattern? */ if (conf_match_basename != false && (s = strrchr (path, '/')) != NULL) matching = s + 1; else matching = path; if (!string_matches_pattern (matching)) goto done; /* Visible? */ if (*visible == -1) *visible = check_directory_perms (path) == 0; if (*visible != 1) goto done; if (conf_check_existence != false) { struct stat st; if ((conf_check_follow_trailing != false ? stat : lstat) (path, &st) != 0) goto done; } /* Output */ if (conf_output_count == false) { if (conf_output_quote != false) write_quoted (path); else fputs (path, stdout); putchar (conf_output_separator); } matches_found++; /* Overflow is too unlikely */ if (conf_output_limit_set != false && matches_found == conf_output_limit) return -1; done: return 0; } /* Read and handle a directory in DB with HEADER (read just past struct db_directory); return 0 if OK, -1 on error or reached conf_output_limit path_obstack may contain a partial object if this function returns -1. */ static int handle_directory (struct db *db, const struct db_header *hdr) { size_t size, dir_name_len; int visible; void *p; stats_directories++; if (db_read_name (db, &path_obstack) != 0) goto err; size = OBSTACK_OBJECT_SIZE (&path_obstack); if (size == 0) { if (conf_quiet == false) error (0, 0, _("invalid empty directory name in `%s'"), db->filename); goto err; } if (size != 1 || *(char *)obstack_base (&path_obstack) != '/') obstack_1grow (&path_obstack, '/'); dir_name_len = OBSTACK_OBJECT_SIZE (&path_obstack); visible = hdr->check_visibility ? -1 : 1; for (;;) { struct db_entry entry; if (db_read (db, &entry, sizeof (entry)) != 0) { db_report_error (db); goto err; } if (entry.type == DBE_END) break; if (db_read_name (db, &path_obstack) != 0) goto err; obstack_1grow (&path_obstack, 0); if (handle_path (obstack_base (&path_obstack), &visible) != 0) goto err; size = OBSTACK_OBJECT_SIZE (&path_obstack) - dir_name_len; if (size > OBSTACK_SIZE_MAX) /* No surprises, please */ { if (conf_quiet == false) error (0, 0, _("file name length %zu in `%s' is too large"), size, db->filename); goto err; } obstack_blank (&path_obstack, -(ssize_t)size); } p = obstack_finish (&path_obstack); obstack_free (&path_obstack, p); return 0; err: return -1; } /* Read and handle DATABASE, opened as FD; PRIVILEGED is non-zero if db_is_privileged() */ static void handle_db (int fd, const char *database, bool privileged) { struct db db; struct db_header hdr; struct db_directory dir; void *p; int visible; if (db_open (&db, &hdr, fd, database, conf_quiet) != 0) { close(fd); goto err; } stats_clear (); if (db_read_name (&db, &path_obstack) != 0) goto err_path; obstack_1grow (&path_obstack, 0); if (privileged == false) hdr.check_visibility = 0; visible = hdr.check_visibility ? -1 : 1; p = obstack_finish (&path_obstack); if (handle_path (p, &visible) != 0) goto err_free; obstack_free (&path_obstack, p); if (db_skip (&db, ntohl (hdr.conf_size)) != 0) goto err_path; while (db_read (&db, &dir, sizeof (dir)) == 0) { if (handle_directory (&db, &hdr) != 0) goto err_path; } if (db.err != 0) { db_report_error (&db); goto err_path; } if (conf_statistics != false) stats_print (&db); /* Fall through */ err_path: p = obstack_finish (&path_obstack); err_free: obstack_free (&path_obstack, p); db_close (&db); err: ; } /* Main program */ /* GID of GROUPNAME, or (gid_t)-1 if unknown */ static gid_t privileged_gid; /* STDIN_FILENO was already used as a database */ static bool stdin_used; /* = false; */ /* Parse DBPATH, add its entries to db_obstack */ static void parse_dbpath (const char *dbpath) { for (;;) { const char *end; char *entry; size_t len; end = strchrnul (dbpath, ':'); len = end - dbpath; if (len == 0) entry = xstrdup (DBFILE); else { char *copy, *p; copy = xmalloc (len + 1); entry = copy; p = mempcpy (copy, dbpath, len); *p = 0; } string_list_append (&conf_dbpath, entry); if (*end == 0) break; dbpath = end + 1; } } /* Output --help text */ static void help (void) { printf (_("Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all " "patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database " "(which is\n" " %s)\n" " -e, --existing only print entries for currently " "existing files\n" " -L, --follow follow trailing symbolic links when " "checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching " "patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT " "entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links " "when checking file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print " "statistics about each\n" " used database\n" " -q, --quiet report no error messages about reading " "databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead " "of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name " "(default)\n"), DBFILE); printf (_("\n" "Report bugs to %s.\n"), PACKAGE_BUGREPORT); } /* Parse options in ARGC, ARGV. Exit on error or --help, --version. */ static void parse_options (int argc, char *argv[]) { static const struct option options[] = { { "all", no_argument, NULL, 'A' }, { "basename", no_argument, NULL, 'b' }, { "count", no_argument, NULL, 'c' }, { "database", required_argument, NULL, 'd' }, { "existing", no_argument, NULL, 'e' }, { "follow", no_argument, NULL, 'L' }, { "help", no_argument, NULL, 'h' }, { "ignore-case", no_argument, NULL, 'i' }, { "limit", required_argument, NULL, 'l' }, { "mmap", no_argument, NULL, 'm' }, { "quiet", no_argument, NULL, 'q' }, { "nofollow", no_argument, NULL, 'P' }, { "null", no_argument, NULL, '0' }, { "regexp", required_argument, NULL, 'r' }, { "regex", no_argument, NULL, 'R' }, { "statistics", no_argument, NULL, 'S' }, { "stdio", no_argument, NULL, 's' }, { "version", no_argument, NULL, 'V' }, { "wholename", no_argument, NULL, 'w' }, { NULL, 0, NULL, 0 } }; bool got_basename, got_follow; got_basename = false; got_follow = false; for (;;) { int opt, idx; opt = getopt_long (argc, argv, "0AHPLSVbcd:ehil:mn:qr:sw", options, &idx); switch (opt) { case -1: goto options_done; case '?': exit (EXIT_FAILURE); case '0': conf_output_separator = 0; break; case 'A': conf_match_all_patterns = true; break; case 'H': case 'P': if (got_follow != false) error (EXIT_FAILURE, 0, _("--%s would override earlier command-line argument"), "nofollow"); got_follow = true; conf_check_follow_trailing = false; break; case 'L': if (got_follow != false) error (EXIT_FAILURE, 0, _("--%s would override earlier command-line argument"), "follow"); got_follow = true; conf_check_follow_trailing = true; break; case 'R': conf_match_regexp = true; break; case 'S': conf_statistics = true; break; case 'V': puts (PACKAGE_NAME " " PACKAGE_VERSION); puts (_("Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent " "permitted by law.")); exit (EXIT_SUCCESS); case 'b': if (got_basename != false) error (EXIT_FAILURE, 0, _("--%s would override earlier command-line argument"), "basename"); got_basename = true; conf_match_basename = true; break; case 'c': conf_output_count = true; break; case 'd': parse_dbpath (optarg); break; case 'e': conf_check_existence = true; break; case 'h': help (); exit (EXIT_SUCCESS); case 'i': conf_ignore_case = true; break; case 'l': case 'n': { char *end; if (conf_output_limit_set != false) error (EXIT_FAILURE, 0, _("--%s specified twice"), "limit"); conf_output_limit_set = true; errno = 0; conf_output_limit = strtoumax (optarg, &end, 10); if (errno != 0 || *end != 0 || end == optarg || isspace ((unsigned char)*optarg)) error (EXIT_FAILURE, 0, _("invalid value `%s' of --%s"), optarg, "limit"); break; } case 'm': case 's': break; /* Ignore */ case 'q': conf_quiet = true; break; case 'r': conf_match_regexp = true; conf_match_regexp_basic = true; string_list_append (&conf_patterns, optarg); break; case 'w': if (got_basename != false) error (EXIT_FAILURE, 0, _("--%s would override earlier command-line argument"), "wholename"); got_basename = true; conf_match_basename = false; break; default: abort (); } } options_done: if (conf_output_separator != 0 && isatty(STDOUT_FILENO)) conf_output_quote = true; if ((conf_statistics != false || conf_match_regexp_basic != false) && optind != argc) error (EXIT_FAILURE, 0, _("non-option arguments are not allowed with --%s"), conf_statistics != false ? "statistics" : "regexp"); } /* Parse arguments in ARGC, ARGV. Exit on error. */ static void parse_arguments (int argc, char *argv[]) { size_t i; for (i = optind; i < (size_t)argc; i++) string_list_append (&conf_patterns, argv[i]); if (conf_statistics == false && conf_patterns.len == 0) error (EXIT_FAILURE, 0, _("no pattern to search for specified")); conf_patterns.entries = xnrealloc (conf_patterns.entries, conf_patterns.len, sizeof (*conf_patterns.entries)); if (conf_match_regexp != false) { int cflags; conf_regex_patterns = XNMALLOC (conf_patterns.len, regex_t); cflags = REG_NOSUB; if (conf_match_regexp_basic == false) /* GNU-style */ cflags |= REG_EXTENDED; if (conf_ignore_case != false) cflags |= REG_ICASE; for (i = 0; i < conf_patterns.len; i++) { int err; err = regcomp (conf_regex_patterns + i, conf_patterns.entries[i], cflags); if (err != 0) { size_t size; char *msg; size = regerror (err, conf_regex_patterns + i, NULL, 0); msg = xmalloc (size); regerror (err, conf_regex_patterns + i, msg, size); error (EXIT_FAILURE, 0, _("invalid regexp `%s': %s"), conf_patterns.entries[i], msg); } } } else { conf_patterns_simple = XNMALLOC (conf_patterns.len, bool); for (i = 0; i < conf_patterns.len; i++) { conf_patterns_simple[i] = strpbrk (conf_patterns.entries[i], "*?[\\]") == NULL; if (conf_patterns_simple[i] != false) conf_have_simple_pattern = true; } if (conf_ignore_case != false && conf_have_simple_pattern != false) { struct obstack obstack; conf_uppercase_patterns = XNMALLOC (conf_patterns.len, wchar_t *); obstack_init (&obstack); for (i = 0; i < conf_patterns.len; i++) conf_uppercase_patterns[i] = uppercase_string (&obstack, conf_patterns.entries[i]); /* leave the obstack allocated */ } } } /* Does a database with ST require GROUPNAME privileges? */ static bool db_is_privileged (const struct stat *st) { return (privileged_gid != (gid_t)-1 && st->st_gid == privileged_gid && (st->st_mode & (S_IRGRP | S_IROTH)) == S_IRGRP); } /* Set up conf_dbpath, after first entries possibly added by "-d" */ static void finish_dbpath (void) { const char *locate_path; char **dest_path; size_t src, dest; if (conf_dbpath.len == 0) string_list_append (&conf_dbpath, xstrdup (DBFILE)); locate_path = getenv ("LOCATE_PATH"); if (locate_path != NULL) parse_dbpath (locate_path); dest_path = XNMALLOC (conf_dbpath.len, char *); dest = 0; /* Sort databases requiring GROUPNAME privileges before the others. This check is inherenly racy, but we recheck before deciding to drop privileges. */ for (src = 0; src < conf_dbpath.len; src++) { struct stat st; if (strcmp (conf_dbpath.entries[src], "-") != 0 && stat (conf_dbpath.entries[src], &st) == 0 && db_is_privileged (&st)) { dest_path[dest] = conf_dbpath.entries[src]; dest++; conf_dbpath.entries[src] = NULL; } } for (src = 0; src < conf_dbpath.len; src++) { if (conf_dbpath.entries[src] != NULL) { dest_path[dest] = conf_dbpath.entries[src]; dest++; } } assert (dest == conf_dbpath.len); free (conf_dbpath.entries); conf_dbpath.entries = dest_path; } /* Drop set-group-ID privileges, if any. */ static void drop_setgid (void) { if (setgid (getgid ()) != 0) error (EXIT_FAILURE, errno, _("can not drop privileges")); } /* Handle a conf_dbpath ENTRY, drop privileges when they are no longer necessary. */ static void handle_dbpath_entry (const char *entry) { int fd; bool privileged_db; if (strcmp (entry, "-") == 0) { if (stdin_used != false) error (EXIT_FAILURE, 0, _("can not read two databases from standard input")); stdin_used = true; fd = STDIN_FILENO; privileged_db = false; } else { struct stat st; if (stat (entry, &st) != 0) { if (conf_quiet == false) error (0, errno, _("can not stat () `%s'"), entry); goto err; } if (!db_is_privileged (&st)) drop_setgid(); fd = open (entry, O_RDONLY); if (fd == -1) { if (conf_quiet == false) error (0, errno, _("can not open `%s'"), entry); goto err; } if (fstat (fd, &st) != 0) { if (conf_quiet == false) error (0, errno, _("can not stat () `%s'"), entry); close (fd); goto err; } privileged_db = db_is_privileged (&st); } if (privileged_db == false) drop_setgid(); handle_db (fd, entry, privileged_db); /* Closes fd */ err: ; } int main (int argc, char *argv[]) { struct group *grp; size_t i; int res; set_program_name (argv[0]); setlocale (LC_ALL, ""); bindtextdomain (PACKAGE_NAME, LOCALEDIR); textdomain (PACKAGE_NAME); grp = getgrnam (GROUPNAME); if (grp != NULL) privileged_gid = grp->gr_gid; else privileged_gid = (gid_t)-1; parse_options (argc, argv); parse_arguments (argc, argv); finish_dbpath (); obstack_init (&path_obstack); obstack_alignment_mask (&path_obstack) = 0; obstack_init (&uc_obstack); uc_obstack_mark = obstack_alloc (&uc_obstack, 0); obstack_init (&check_stack_obstack); res = EXIT_FAILURE; /* Don't call access ("/", R_OK | X_OK) all the time. This is too strict, it is possible to have "/" --x and have a database describing a subdirectory, but that is just too improbable. */ if (conf_statistics == false && access ("/", R_OK | X_OK) != 0) goto done; for (i = 0; i < conf_dbpath.len; i++) { if (conf_output_limit_set != false && matches_found >= conf_output_limit) { res = EXIT_SUCCESS; goto done; } /* Drops privileges when possible */ handle_dbpath_entry (conf_dbpath.entries[i]); } done: if (conf_output_count != false) printf ("%ju\n", matches_found); if (conf_statistics != false || matches_found != 0) res = EXIT_SUCCESS; if (fwriteerror (stdout)) error (EXIT_FAILURE, errno, _("I/O error while writing to standard output")); return res; } mlocate-0.26/src/lib.h0000664000175000017500000001042611544453044011525 00000000000000/* Common functions. Copyright (C) 2005, 2007 Red Hat, Inc. All rights reserved. This copyrighted material is made available to anyone wishing to use, modify, copy, or redistribute it subject to the terms and conditions of the GNU General Public License v.2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Author: Miloslav Trmac */ #ifndef LIB_H__ #define LIB_H__ #include #include #include #include #include #include "gettext.h" #include "obstack.h" #include "db.h" #ifdef __GNUC__ #define attribute__(X) __attribute__ (X) #else #define attribute__(X) #endif #define _(X) gettext(X) /* Number of entries in ARRAY */ #define ARRAY_SIZE(array) (sizeof (array) / sizeof (*array)) /* Convert VAL to big endian */ extern uint64_t htonll (uint64_t val); /* Convert VAL from big endian */ extern uint64_t ntohll (uint64_t val); /* Initialize dir_path_cmp_table */ extern void dir_path_cmp_init (void); /* Compare two path names using the database directory order. This is not exactly strcmp () order: "a" < "a.b", so "a/z" < "a.b". */ extern int dir_path_cmp (const char *a, const char *b); /* Functions used by obstack code */ extern struct _obstack_chunk *obstack_chunk_alloc (long size); #define obstack_chunk_free free /* The obstack code is too portable to be perfect :(. So we need some better substitutes to avoid 32-bit overflows. */ #define OBSTACK_OBJECT_SIZE(H) \ (size_t)((char *)obstack_next_free (H) - (char *)obstack_base (H)) /* To avoid obstack integer overflows, limit large obstack allocations to this value. */ enum { OBSTACK_SIZE_MAX = 1024 * 1024 }; /* A list of strings */ struct string_list { char **entries; size_t len; /* Number of valid entries */ /* Number of allocated entries, usually invalid after the list is "finished" and ENTRIES are reallocated to the exact size. */ size_t allocated; }; /* Append STRING to LIST */ extern void string_list_append (struct string_list *list, char *string); /* Sort LIST using dir_path_cmp () */ extern void string_list_dir_path_sort (struct string_list *list); /* Is PATH included in LIST? Update *IDX to move within LIST. LIST is assumed to be sorted using dir_path_cmp (), successive calls to this function are assumed to use PATH values increasing in dir_path_cmp (). */ extern bool string_list_contains_dir_path (const struct string_list *list, size_t *idx, const char *path); /* An open database */ struct db { int fd; const char *filename; off_t read_bytes; /* Total bytes read */ bool quiet; /* Don't report read errors */ int err; /* errno on last read error or 0 */ char *buf_pos, *buf_end; char buffer[BUFSIZ]; }; /* Open FILENAME (already open as FD), as DB, set DB's quiet flag to QUIET. Store database header to *HEADER; return 0 if OK, -1 on error. Takes ownership of FD: it will be closed by db_close () or before return from this function if it fails. FILENAME must stay valid until db_close (). */ extern int db_open (struct db *db, struct db_header *header, int fd, const char *filename, bool quiet); /* Close DB */ extern void db_close (struct db *db); /* Report read error or unexpected EOF on DB if not DB->quiet */ extern void db_report_error (const struct db *db); /* Read SIZE (!= 0) bytes from DB to BUF; return 0 if OK, -1 on error */ extern int db_read (struct db *db, void *buf, size_t size); /* Read a NUL-terminated string from DB to current object in OBSTACK (without the terminating NUL), report error on failure if not DB->quiet. return 0 if OK, or -1 on I/O error. */ extern int db_read_name (struct db *db, struct obstack *h); /* Skip SIZE bytes in DB, report error on failure if not DB->quiet; return 0 if OK, -1 on error */ extern int db_skip (struct db *db, off_t size); /* Return number of bytes read from DB so far */ extern off_t db_bytes_read (const struct db *db); #endif mlocate-0.26/src/conf.h0000664000175000017500000000377311031776512011712 00000000000000/* updatedb configuration. Copyright (C) 2005, 2007, 2008 Red Hat, Inc. All rights reserved. This copyrighted material is made available to anyone wishing to use, modify, copy, or redistribute it subject to the terms and conditions of the GNU General Public License v.2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Author: Miloslav Trmac */ #ifndef CONF_H__ #define CONF_H__ #include #include #include /* true if locate(1) should check whether files are visible before reporting them */ extern bool conf_check_visibility; /* Filesystems to skip, converted to uppercase and sorted by name */ extern struct string_list conf_prunefs; /* Directory names to skip, sorted by name */ extern struct string_list conf_prunenames; /* Paths to skip, sorted by name using dir_path_cmp () */ extern struct string_list conf_prunepaths; /* true if bind mounts should be skipped */ extern bool conf_prune_bind_mounts; /* true if pruning debug output was requested */ extern bool conf_debug_pruning; /* Root of the directory tree to store in the database (canonical) */ extern char *conf_scan_root; /* Absolute (not necessarily canonical) path to the database */ extern const char *conf_output; /* true if file names should be written to stdout as they are found */ extern bool conf_verbose; /* Configuration representation for the database configuration block */ extern const char *conf_block; extern size_t conf_block_size; /* Parse /etc/updatedb.conf and command-line arguments ARGC, ARGV. Exit on error or --help, --version. */ extern void conf_prepare (int argc, char *argv[]); #endif mlocate-0.26/src/bind-mount.c0000664000175000017500000002625111733135107013026 00000000000000/* Bind mount detection. Note: if you change this, change tmpwatch as well. Copyright (C) 2005, 2007, 2008, 2012 Red Hat, Inc. All rights reserved. This copyrighted material is made available to anyone wishing to use, modify, copy, or redistribute it subject to the terms and conditions of the GNU General Public License v.2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Author: Miloslav Trmac */ #include #include #include #include #include #include #include #include #include #include #include #include "obstack.h" #include "bind-mount.h" #include "conf.h" #include "lib.h" /* mountinfo handling */ /* A single mountinfo entry */ struct mount { int id, parent_id; unsigned dev_major, dev_minor; char *root; char *mount_point; char *fs_type; char *source; }; /* Path to mountinfo */ static const char *mountinfo_path; /* Pointers to struct mount. */ static void **mount_entries; static size_t num_mount_entries; /* Obstack of struct mount entries. */ static struct obstack mount_data_obstack; static void *mount_data_mark; /* Obstack of strings referenced in mount entries. */ static struct obstack mount_string_obstack; static void *mount_string_mark; /* Obstack of 'void *' (struct mount *) pointers, for mount_entries */ static struct obstack mount_list_obstack; /* Obstack used for a mountinfo line buffer */ static struct obstack mountinfo_line_obstack; /* Initialize state for read_mount_entries () */ static void init_mount_entries (void) { obstack_init (&mount_data_obstack); mount_data_mark = obstack_alloc (&mount_data_obstack, 0); obstack_init (&mount_string_obstack); obstack_alignment_mask (&mount_string_obstack) = 0; mount_string_mark = obstack_alloc (&mount_string_obstack, 0); obstack_init (&mount_list_obstack); mount_entries = obstack_alloc (&mount_list_obstack, 0); obstack_init (&mountinfo_line_obstack); obstack_alignment_mask (&mountinfo_line_obstack) = 0; } /* Read a line from F. Return a string pointer (to be freed in mountinfo_line_obstack), or NULL on error. */ static char * read_mount_line (FILE *f) { char *line; for (;;) { char buf[LINE_MAX]; size_t chunk_length; if (fgets (buf, sizeof (buf), f) == NULL) { if (feof (f)) break; goto error; } chunk_length = strlen (buf); if (chunk_length > 0 && buf[chunk_length - 1] == '\n') { obstack_grow (&mountinfo_line_obstack, buf, chunk_length - 1); break; } obstack_grow (&mountinfo_line_obstack, buf, chunk_length); } obstack_1grow (&mountinfo_line_obstack, 0); return obstack_finish (&mountinfo_line_obstack); error: line = obstack_finish (&mountinfo_line_obstack); obstack_free (&mountinfo_line_obstack, line); return NULL; } /* Parse a space-delimited entry in STRING, decode octal escapes, write it to DEST (allocated from mount_string_obstack) if it is not NULL. Return 0 if OK, -1 on error. */ static int parse_mount_string (char **dest, char **string) { char *src, *ret; src = *string; while (*src == ' ' || *src == '\t') src++; if (*src == 0) goto error; for (;;) { char c; c = *src; switch (c) { case 0: case ' ': case '\t': goto done; case '\\': if (src[1] >= '0' && src[1] <= '7' && src[2] >= '0' && src[2] <= '7' && src[3] >= '0' && src[3] <= '7') { unsigned v; v = ((src[1] - '0') << 6) | ((src[2] - '0') << 3) | (src[3] - '0'); if (v <= UCHAR_MAX) { obstack_1grow (&mount_string_obstack, (char)v); src += 4; break; } } /* Else fall through */ default: obstack_1grow (&mount_string_obstack, c); src++; } } done: *string = src; obstack_1grow (&mount_string_obstack, 0); ret = obstack_finish (&mount_string_obstack); if (dest != NULL) *dest = ret; else obstack_free (&mount_string_obstack, ret); return 0; error: ret = obstack_finish (&mount_string_obstack); obstack_free (&mount_string_obstack, ret); return -1; } /* Read a single entry from F. Return the entry, or NULL on error. */ static struct mount * read_mount_entry (FILE *f) { struct mount *me; char *line; size_t offset; bool separator_found; line = read_mount_line (f); if (line == NULL) return NULL; me = obstack_alloc (&mount_data_obstack, sizeof (*me)); if (sscanf (line, "%d %d %u:%u%zn", &me->id, &me->parent_id, &me->dev_major, &me->dev_minor, &offset) != 4) goto error; line += offset; if (parse_mount_string (&me->root, &line) != 0 || parse_mount_string (&me->mount_point, &line) != 0 || parse_mount_string (NULL, &line) != 0) goto error; do { char *option; if (parse_mount_string (&option, &line) != 0) goto error; separator_found = strcmp (option, "-") == 0; obstack_free (&mount_string_obstack, option); } while (!separator_found); if (parse_mount_string (&me->fs_type, &line) != 0 || parse_mount_string (&me->source, &line) != 0 || parse_mount_string (NULL, &line) != 0) goto error; return me; error: /* "line" is the only thing we really need to free, the strings in "me" will be freed when read_mount_entries starts again. */ obstack_free (&mount_data_obstack, me); obstack_free (&mountinfo_line_obstack, line); return NULL; } /* Read mount information from mountinfo_path, update mount_entries and num_mount_entries. Return 0 if OK, -1 on error. */ static int read_mount_entries (void) { FILE *f; struct mount *me; f = fopen (mountinfo_path, "r"); if (f == NULL) return -1; obstack_free (&mount_data_obstack, mount_data_mark); mount_data_mark = obstack_alloc (&mount_data_obstack, 0); obstack_free (&mount_string_obstack, mount_string_mark); mount_string_mark = obstack_alloc (&mount_string_obstack, 0); obstack_free (&mount_list_obstack, mount_entries); while ((me = read_mount_entry (f)) != NULL) { if (conf_debug_pruning != false) /* This is debuging output, don't mark anything for translation */ fprintf (stderr, " `%s' (%d on %d) is `%s' of `%s' (%u:%u), type `%s'\n", me->mount_point, me->id, me->parent_id, me->root, me->source, me->dev_major, me->dev_minor, me->fs_type); obstack_ptr_grow (&mount_list_obstack, me); } fclose (f); num_mount_entries = OBSTACK_OBJECT_SIZE (&mount_list_obstack) / sizeof (*mount_entries); mount_entries = obstack_finish (&mount_list_obstack); return 0; } /* Bind mount path list maintenace and top-level interface. */ /* mountinfo_path file descriptor, or -1 */ static int mountinfo_fd; /* Known bind mount paths */ static struct string_list bind_mount_paths; /* = { 0, }; */ /* Next bind_mount_paths entry */ static size_t bind_mount_paths_index; /* = 0; */ static struct obstack bind_mount_paths_obstack; static void *bind_mount_paths_mark; /* Return a result of comparing A and B suitable for qsort () or bsearch () */ static int cmp_ints (int a, int b) { if (a > b) return 1; if (a < b) return -1; return 0; } static int cmp_mount_entry_pointers (const void *xa, const void *xb) { void *const *a, *const *b; a = xa; b = xb; return cmp_ints (((struct mount *)*a)->id, ((struct mount *)*b)->id); } static int cmp_id_mount_entry (const void *xa, const void *xb) { const int *a; void *const *b; a = xa; b = xb; return cmp_ints (*a, ((struct mount *)*b)->id); } /* Rebuild bind_mount_paths */ static void rebuild_bind_mount_paths (void) { size_t i; if (conf_debug_pruning != false) /* This is debuging output, don't mark anything for translation */ fprintf (stderr, "Rebuilding bind_mount_paths:\n"); if (read_mount_entries () != 0) return; if (conf_debug_pruning != false) /* This is debuging output, don't mark anything for translation */ fprintf (stderr, "Matching bind_mount_paths:\n"); obstack_free (&bind_mount_paths_obstack, bind_mount_paths_mark); bind_mount_paths_mark = obstack_alloc (&bind_mount_paths_obstack, 0); bind_mount_paths.len = 0; /* Sort by ID to allow quick lookup */ qsort (mount_entries, num_mount_entries, sizeof (*mount_entries), cmp_mount_entry_pointers); for (i = 0; i < num_mount_entries; i++) { struct mount *me, *parent; void **pp; me = mount_entries[i]; pp = bsearch (&me->parent_id, mount_entries, num_mount_entries, sizeof (*mount_entries), cmp_id_mount_entry); if (pp == NULL) continue; parent = *pp; if (me->dev_major == parent->dev_major && me->dev_minor == parent->dev_minor && strcmp (me->fs_type, parent->fs_type) == 0 && strcmp (me->source, parent->source) == 0) { /* We have two mounts from the same device. Is it a no-op bind mount? */ size_t p_mount_len, p_root_len; p_mount_len = strlen (parent->mount_point); p_root_len = strlen (parent->root); /* parent->mount_point should always be a prefix of me->mount_point, don't take any chances. */ if (strncmp (me->mount_point, parent->mount_point, p_mount_len) != 0 || strncmp (me->root, parent->root, p_root_len) != 0 || strcmp (me->mount_point + p_mount_len, me->root + p_root_len) != 0) { char *copy; if (conf_debug_pruning != false) /* This is debuging output, don't mark anything for translation */ fprintf (stderr, " => adding `%s'\n", me->mount_point); copy = obstack_copy (&bind_mount_paths_obstack, me->mount_point, strlen (me->mount_point) + 1); string_list_append (&bind_mount_paths, copy); } } } if (conf_debug_pruning != false) /* This is debuging output, don't mark anything for translation */ fprintf (stderr, "...done\n"); string_list_dir_path_sort (&bind_mount_paths); } /* Return true if PATH is a destination of a bind mount. (Bind mounts "to self" are ignored.) */ bool is_bind_mount (const char *path) { struct pollfd pfd; /* Unfortunately (mount --bind $path $path/subdir) would leave st_dev unchanged between $path and $path/subdir, so we must keep reparsing mountinfo_path each time it changes. */ pfd.fd = mountinfo_fd; pfd.events = POLLPRI; if (poll (&pfd, 1, 0) < 0) return false; if ((pfd.revents & POLLPRI) != 0) { rebuild_bind_mount_paths (); bind_mount_paths_index = 0; } return string_list_contains_dir_path (&bind_mount_paths, &bind_mount_paths_index, path); } /* Initialize state for is_bind_mount(), to read data from MOUNTINFO. */ void bind_mount_init (const char *mountinfo) { mountinfo_path = mountinfo; init_mount_entries (); obstack_init (&bind_mount_paths_obstack); obstack_alignment_mask (&bind_mount_paths_obstack) = 0; bind_mount_paths_mark = obstack_alloc (&bind_mount_paths_obstack, 0); mountinfo_fd = open (mountinfo_path, O_RDONLY); if (mountinfo_fd == -1) return; rebuild_bind_mount_paths (); } mlocate-0.26/src/bind-mount.h0000664000175000017500000000227211733134702013030 00000000000000/* Bind mount detection. Copyright (C) 2005, 2007, 2008 Red Hat, Inc. All rights reserved. This copyrighted material is made available to anyone wishing to use, modify, copy, or redistribute it subject to the terms and conditions of the GNU General Public License v.2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Author: Miloslav Trmac */ #ifndef BIND_MOUNT_H__ #define BIND_MOUNT_H__ #include #include /* System mount information file */ #define MOUNTINFO_PATH "/proc/self/mountinfo" /* Return true if PATH is a destination of a bind mount. (Bind mounts "to self" are ignored.) */ extern bool is_bind_mount (const char *path); /* Initialize state for is_bind_mount(), to read data from MOUNTINFO. */ extern void bind_mount_init (const char *mountinfo); #endif mlocate-0.26/src/updatedb.c0000664000175000017500000006734311733135120012544 00000000000000/* updatedb(8). Copyright (C) 2005, 2007, 2008 Red Hat, Inc. All rights reserved. This copyrighted material is made available to anyone wishing to use, modify, copy, or redistribute it subject to the terms and conditions of the GNU General Public License v.2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Author: Miloslav Trmac */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "error.h" #include "fwriteerror.h" #include "obstack.h" #include "progname.h" #include "stat-time.h" #include "verify.h" #include "xalloc.h" #include "bind-mount.h" #include "conf.h" #include "db.h" #include "lib.h" #ifdef PROC_MOUNTS_PATH #define MOUNT_TABLE_PATH PROC_MOUNTS_PATH #else #define MOUNT_TABLE_PATH _PATH_MOUNTED #endif /* A directory entry in memory */ struct entry { size_t name_size; /* Including the trailing NUL */ bool is_directory; char name[]; }; /* Data for directory building */ struct dir_state { /* Obstack of directory paths and 'struct entry' entries */ struct obstack data_obstack; /* Obstack of 'void *' (struct entry *) lists */ struct obstack list_obstack; }; /* Time representation */ struct time { uint64_t sec; uint32_t nsec; /* 0 <= nsec < 1e9 */ }; /* A directory in memory, using storage in obstacks */ struct directory { struct time time; void **entries; /* Pointers to struct entry */ size_t num_entries; char *path; /* Absolute path */ }; /* Time handling */ /* Get ctime from ST to TIME */ static void time_get_ctime (struct time *t, const struct stat *st) { t->sec = st->st_ctime; t->nsec = get_stat_ctime_ns (st); if (t->nsec >= 1000000000) /* Captive NTFS returns bogus values */ t->nsec = 0; assert (t->nsec < 1000000000); } /* Get mtime from ST to TIME */ static void time_get_mtime (struct time *t, const struct stat *st) { t->sec = st->st_mtime; t->nsec = get_stat_mtime_ns (st); if (t->nsec >= 1000000000) /* Captive NTFS returns bogus values */ t->nsec = 0; assert (t->nsec < 1000000000); } /* Compare times A and B */ static int time_compare (const struct time *a, const struct time *b) { if (a->sec < b->sec) return -1; if (a->sec > b->sec) return 1; if (a->nsec < b->nsec) return -1; if (a->nsec > b->nsec) return 1; return 0; } /* Is T recent enough that the filesystem could be changed without changing the timestamp again? */ static bool time_is_current (const struct time *t) { static struct time cache; /* = { 0, } */ struct timeval tv; /* This is more difficult than it should be because Linux uses a cheaper time source for filesystem timestamps than for gettimeofday() and they can get slightly out of sync, see https://bugzilla.redhat.com/show_bug.cgi?id=244697 . This affects even nanosecond timestamps (and don't forget that tv_nsec existence doesn't guarantee that the underlying filesystem has such resolution - it might be microseconds or even coarser). The worst case is probably FAT timestamps with 2-second resolution (although using such a filesystem violates POSIX file times requirements). So, to be on the safe side, require a >3.0 second difference (2 seconds to make sure the FAT timestamp changed, 1 more to account for the Linux timestamp races). This large margin might make updatedb marginally more expensive, but it only makes a difference if the directory was very recently updated _and_ is will not be updated again until the next updatedb run; this is not likely to happen for most directories. */ /* Cache gettimeofday () results to rule out obviously old time stamps; CACHE contains the earliest time we reject as too current. */ if (time_compare (t, &cache) < 0) return false; gettimeofday (&tv, NULL); cache.sec = tv.tv_sec - 3; cache.nsec = tv.tv_usec * 1000; return time_compare (t, &cache) >= 0; } /* Directory obstack handling */ /* Prepare STATE for reading directories */ static void dir_state_init (struct dir_state *state) { obstack_init (&state->data_obstack); obstack_init (&state->list_obstack); } /* Finish building a directory in STATE, store its data to DIR. */ static void dir_finish (struct directory *dir, struct dir_state *state) { dir->num_entries = OBSTACK_OBJECT_SIZE (&state->list_obstack) / sizeof (*dir->entries); dir->entries = obstack_finish (&state->list_obstack); } /* Reading of the existing database */ /* The old database or old_db_is_closed. old_db.fd == -1 if the database was never opened. */ static struct db old_db; /* Header for unread directory from the old database or old_dir.path == NULL */ static struct directory old_dir; /* = { 0, }; */ /* true if old_db should not be accessed any more. (old_db.fd cannot be closed immediatelly because that would release the lock on the database). */ static bool old_db_is_closed; /* = 0; */ /* Obstack for old_dir.path and old_dir_skip () */ static struct obstack old_dir_obstack; /* Close old_db */ static void old_db_close (void) { old_dir.path = NULL; old_db_is_closed = true; /* The file will really be closed at the end of main (). */ } /* Read next directory header, if any, to old_dir */ static void old_dir_next_header (void) { struct db_directory dir; if (old_db_is_closed) return; if (old_dir.path != NULL) obstack_free (&old_dir_obstack, old_dir.path); if (db_read (&old_db, &dir, sizeof (dir)) != 0) goto err; old_dir.time.sec = ntohll (dir.time_sec); old_dir.time.nsec = ntohl (dir.time_nsec); if (old_dir.time.nsec >= 1000000000) goto err; if (db_read_name (&old_db, &old_dir_obstack) != 0) goto err; obstack_1grow (&old_dir_obstack, 0); old_dir.path = obstack_finish (&old_dir_obstack); return; err: old_db_close (); } /* Skip next directory in old_db */ static void old_dir_skip (void) { void *mark; mark = obstack_alloc (&old_dir_obstack, 0); for (;;) { struct db_entry entry; void *p; if (db_read (&old_db, &entry, sizeof (entry)) != 0) goto err; switch (entry.type) { case DBE_NORMAL: case DBE_DIRECTORY: break; case DBE_END: goto done; default: goto err; } if (db_read_name (&old_db, &old_dir_obstack) != 0) goto err; p = obstack_finish (&old_dir_obstack); obstack_free (&old_dir_obstack, p); } done: return; err: (void)obstack_finish (&old_dir_obstack); obstack_free (&old_dir_obstack, mark); old_db_close (); } /* Open the old database and prepare for reading it. Return a file descriptor for the database (even if its contents are not valid), -1 on error opening the file. */ static int old_db_open (void) { struct obstack obstack; int fd; struct db_header hdr; const char *src; uint32_t size; /* Use O_RDWR, not O_RDONLY, to be able to lock the file. */ fd = open (conf_output, O_RDWR); if (fd == -1) { old_db.fd = -1; goto err; } if (db_open (&old_db, &hdr, fd, conf_output, true) != 0) { old_db.fd = -1; goto err; } size = ntohl (hdr.conf_size); if (size != conf_block_size) goto err_old_db; obstack_init (&obstack); obstack_alignment_mask (&obstack) = 0; if (db_read_name (&old_db, &obstack) != 0) goto err_obstack; obstack_1grow (&obstack, 0); if (strcmp (obstack_finish (&obstack), conf_scan_root) != 0) goto err_obstack; obstack_free (&obstack, NULL); src = conf_block; while (size != 0) { char buf[BUFSIZ]; size_t run; run = sizeof (buf); if (run > size) run = size; if (db_read (&old_db, buf, run) != 0) goto err_old_db; if (memcmp (src, buf, run) != 0) goto err_old_db; src += run; size -= run; } obstack_init (&old_dir_obstack); obstack_alignment_mask (&old_dir_obstack) = 0; old_dir_next_header (); return fd; err_obstack: obstack_free (&obstack, NULL); err_old_db: old_db_close (); err: old_db_is_closed = true; return fd; } /* $PRUNEFS handling */ static int cmp_string_pointer (const void *xa, const void *xb) { const char *a; char *const *b; a = xa; b = xb; return strcmp (a, *b); } /* Return true if PATH is a mount point of an excluded filesystem */ static bool filesystem_is_excluded (const char *path) { static char *type; /* = NULL; */ static size_t type_size; /* = 0; */ FILE *f; struct mntent *me; bool res; if (conf_debug_pruning != false) /* This is debuging output, don't mark anything for translation */ fprintf (stderr, "Checking whether filesystem `%s' is excluded:\n", path); res = false; f = setmntent (MOUNT_TABLE_PATH, "r"); if (f == NULL) goto err; while ((me = getmntent (f)) != NULL) { char *p; size_t size; if (conf_debug_pruning != false) /* This is debuging output, don't mark anything for translation */ fprintf (stderr, " `%s', type `%s'\n", me->mnt_dir, me->mnt_type); size = strlen (me->mnt_type) + 1; while (size > type_size) type = x2realloc (type, &type_size); memcpy (type, me->mnt_type, size); for (p = type; *p != 0; p++) *p = toupper((unsigned char)*p); if (bsearch (type, conf_prunefs.entries, conf_prunefs.len, sizeof (*conf_prunefs.entries), cmp_string_pointer) != NULL) { char *dir; #ifndef PROC_MOUNTS_PATH dir = canonicalize_file_name (me->mnt_dir); if (dir == NULL) dir = me->mnt_dir; #else /* Paths in /proc/self/mounts contain no symbolic links. Besides avoiding a few system calls, avoiding the realpath () avoids hangs if the filesystem is unavailable hard-mounted NFS. */ dir = me->mnt_dir; #endif if (conf_debug_pruning != false) /* This is debuging output, don't mark anything for translation */ fprintf (stderr, " => type matches, dir `%s'\n", dir); if (strcmp (path, dir) == 0) res = true; if (dir != me->mnt_dir) free(dir); if (res != false) goto err_f; } } err_f: endmntent (f); err: if (conf_debug_pruning != false) /* This is debuging output, don't mark anything for translation */ fprintf (stderr, "...done\n"); return res; } /* Filesystem scanning */ /* The new database */ static FILE *new_db; /* A _temporary_ file name, or NULL if there is no temporary file */ static char *new_db_filename; /* Global obstacks for filesystem scanning */ static struct dir_state scan_dir_state; /* Next conf_prunepaths entry */ static size_t conf_prunepaths_index; /* = 0; */ /* Forward declaration */ static int scan (char *path, int *cwd_fd, const struct stat *st_parent, const char *relative); /* Write DIR to new_db. */ static void write_directory (const struct directory *dir) { struct db_directory header; struct db_entry entry; size_t i; memset (&header, 0, sizeof (header)); header.time_sec = htonll (dir->time.sec); assert (dir->time.nsec < 1000000000); header.time_nsec = htonl (dir->time.nsec); fwrite (&header, sizeof (header), 1, new_db); fwrite (dir->path, 1, strlen (dir->path) + 1, new_db); for (i = 0; i < dir->num_entries; i++) { struct entry *e; e = dir->entries[i]; entry.type = e->is_directory != false ? DBE_DIRECTORY : DBE_NORMAL; fwrite (&entry, sizeof (entry), 1, new_db); fwrite (e->name, 1, e->name_size, new_db); } entry.type = DBE_END; fwrite (&entry, sizeof (entry), 1, new_db); } /* Scan subdirectories of the current working directory, which has ST, among entries in DIR, and write results to new_db. The current working directory is not guaranteed to be preserved on return from this function. */ static void scan_subdirs (const struct directory *dir, const struct stat *st) { char *path; int cwd_fd; size_t path_size, prefix_len, i; prefix_len = strlen (dir->path); path_size = prefix_len + 1; path = xmalloc (path_size); memcpy (path, dir->path, prefix_len); assert (prefix_len != 0); if (dir->path[prefix_len - 1] != '/') /* "/" => "/bin", not "//bin" */ { path[prefix_len] = '/'; prefix_len++; } cwd_fd = -1; for (i = 0; i < dir->num_entries; i++) { struct entry *e; e = dir->entries[i]; if (e->is_directory != false) { /* Verified in copy_old_dir () and scan_cwd () */ while (prefix_len + e->name_size > path_size) path = x2realloc (path, &path_size); memcpy (path + prefix_len, e->name, e->name_size); if (scan (path, &cwd_fd, st, e->name) != 0) goto err_cwd_fd; } } err_cwd_fd: if (cwd_fd != -1) close (cwd_fd); free (path); } /* If *CWD_FD != -1, open ".", store fd to *CWD_FD; then chdir (RELATIVE), failing if there is a race condition; RELATIVE is supposed to match OLD_ST. Return 0 if OK, -1 on error */ static int safe_chdir (int *cwd_fd, const char *relative, const struct stat *old_st) { struct stat st; if (*cwd_fd == -1) { int fd; fd = open (".", O_RDONLY); if (fd == -1) return -1; *cwd_fd = fd; } if (chdir (relative) != 0 || lstat (".", &st) != 0) return -1; if (old_st->st_dev != st.st_dev || old_st->st_ino != st.st_ino) return -1; /* Race condition, skip the subtree */ return 0; } /* Read directory after old_dir to DEST in scan_dir_state; Return -1 on error, 1 if DEST contains a subdirectory, 0 otherwise. */ static int copy_old_dir (struct directory *dest) { bool have_subdir; size_t i; void *mark, *p; if (old_db_is_closed || old_dir.path == NULL) goto err; mark = obstack_alloc (&scan_dir_state.data_obstack, 0); have_subdir = false; for (;;) { struct db_entry entry; struct entry *e; bool is_directory; size_t size; if (db_read (&old_db, &entry, sizeof (entry)) != 0) goto err_obstack; switch (entry.type) { case DBE_NORMAL: is_directory = false; break; case DBE_DIRECTORY: is_directory = true; break; case DBE_END: goto done; default: goto err_obstack; } { verify (offsetof (struct entry, name) <= OBSTACK_SIZE_MAX); } obstack_blank (&scan_dir_state.data_obstack, offsetof (struct entry, name)); if (db_read_name (&old_db, &scan_dir_state.data_obstack) != 0) goto err_obstack; obstack_1grow (&scan_dir_state.data_obstack, 0); size = (OBSTACK_OBJECT_SIZE (&scan_dir_state.data_obstack) - offsetof (struct entry, name)); if (size > OBSTACK_SIZE_MAX) { error (0, 0, _("file name length %zu is too large"), size); goto err_obstack; } e = obstack_finish (&scan_dir_state.data_obstack); e->name_size = size; e->is_directory = is_directory; if (is_directory != false) have_subdir = true; obstack_ptr_grow (&scan_dir_state.list_obstack, e); if (conf_verbose != false) printf ("%s/%s\n", dest->path, e->name); } done: dir_finish (dest, &scan_dir_state); for (i = 0; i + 1 < dest->num_entries; i++) { struct entry *a, *b; a = dest->entries[i]; b = dest->entries[i + 1]; if (strcmp (a->name, b->name) >= 0) goto err_obstack; } return have_subdir; err_obstack: (void)obstack_finish (&scan_dir_state.data_obstack); obstack_free (&scan_dir_state.data_obstack, mark); p = obstack_finish (&scan_dir_state.list_obstack); obstack_free (&scan_dir_state.list_obstack, p); err: old_db_close (); return -1; } /* Compare two "void *" (struct entry *) values */ static int cmp_entries (const void *xa, const void *xb) { void *const *a_, *const *b_; struct entry *a, *b; a_ = xa; b_ = xb; a = *a_; b = *b_; return strcmp (a->name, b->name); } static DIR * opendir_noatime (const char *path) { #if defined (HAVE_FDOPENDIR) && defined (O_DIRECTORY) && defined (O_NOATIME) static bool noatime_failed; /* = false; */ if (noatime_failed == false) { int fd; fd = open (path, O_RDONLY | O_DIRECTORY | O_NOATIME); if (fd != -1) return fdopendir (fd); /* EPERM is fairly O_NOATIME-specific; missing access rights cause EACCES. */ else if (errno != EPERM) return NULL; noatime_failed = true; } #endif return opendir (path); } /* Scan current working directory (DEST.path) to DEST in scan_dir_state; Return -1 if "." can't be opened, 1 if DEST contains a subdirectory, 0 otherwise. */ static int scan_cwd (struct directory *dest) { DIR *dir; struct dirent *de; bool have_subdir; dir = opendir_noatime ("."); if (dir == NULL) return -1; have_subdir = false; while ((de = readdir (dir)) != NULL) { struct entry *e; size_t name_size, entry_size; if (strcmp (de->d_name, ".") == 0 || strcmp (de->d_name, "..") == 0) continue; name_size = strlen (de->d_name) + 1; if (name_size == 1) { /* Unfortunately, this does happen, and mere assert() does not give users enough information to complain to the right people. */ error (0, 0, _("file system error: zero-length file name in directory %s"), dest->path); continue; } assert (name_size > 1); entry_size = offsetof (struct entry, name) + name_size; if (entry_size > OBSTACK_SIZE_MAX) { error (0, 0, _("file name length %zu is too large"), name_size); continue; } e = obstack_alloc (&scan_dir_state.data_obstack, entry_size); e->name_size = name_size; memcpy (e->name, de->d_name, name_size); e->is_directory = false; /* The check for DT_DIR is to handle platforms which have d_type, but require a feature macro to define DT_* */ #if defined (HAVE_STRUCT_DIRENT_D_TYPE) && defined (DT_DIR) if (de->d_type == DT_DIR) e->is_directory = true; else if (de->d_type == DT_UNKNOWN) #endif { struct stat st; if (lstat (e->name, &st) == 0 && S_ISDIR (st.st_mode)) e->is_directory = true; } if (e->is_directory != false) have_subdir = true; obstack_ptr_grow (&scan_dir_state.list_obstack, e); if (conf_verbose != false) printf ("%s/%s\n", dest->path, e->name); } closedir (dir); dir_finish (dest, &scan_dir_state); qsort (dest->entries, dest->num_entries, sizeof (*dest->entries), cmp_entries); return have_subdir; } /* Scan filesystem subtree rooted at PATH, which is "./RELATIVE", and write results to new_db. Try to preserve current working directory (opening a file descriptor to it in *CWD_FD, if *CWD_FD == -1). Use ST_PARENT for checking whether a PATH is a mount point. Return -1 if the current working directory couldn't be preserved, 0 otherwise. Note that PATH may be longer than PATH_MAX, so relative file names should always be used. */ static int scan (char *path, int *cwd_fd, const struct stat *st_parent, const char *relative) { struct directory dir; struct stat st; struct time mtime; void *entries_mark; int cmp, res; bool have_subdir, did_chdir; if (string_list_contains_dir_path (&conf_prunepaths, &conf_prunepaths_index, path)) { if (conf_debug_pruning != false) /* This is debuging output, don't mark anything for translation */ fprintf (stderr, "Skipping `%s': in prunepaths\n", path); goto err; } if (conf_prune_bind_mounts != false && is_bind_mount (path)) { if (conf_debug_pruning != false) /* This is debuging output, don't mark anything for translation */ fprintf (stderr, "Skipping `%s': bind mount\n", path); goto err; } if (bsearch (relative, conf_prunenames.entries, conf_prunenames.len, sizeof (*conf_prunenames.entries), cmp_string_pointer) != NULL) { if (conf_debug_pruning != false) /* This is debuging output, don't mark anything for translation */ fprintf (stderr, "Skipping `%s': in prunenames\n", path); goto err; } if (lstat (relative, &st) != 0) goto err; if (st.st_dev != st_parent->st_dev && filesystem_is_excluded (path)) { if (conf_debug_pruning != false) /* This is debuging output, don't mark anything for translation */ fprintf (stderr, "Skipping `%s': in prunefs\n", path); goto err; } /* "relative" may now become a symlink to somewhere else. So we use it only in safe_chdir (). */ entries_mark = obstack_alloc (&scan_dir_state.data_obstack, 0); dir.path = path; time_get_ctime (&dir.time, &st); time_get_mtime (&mtime, &st); if (time_compare (&dir.time, &mtime) < 0) dir.time = mtime; while (old_dir.path != NULL && (cmp = dir_path_cmp (old_dir.path, path)) < 0) { old_dir_skip (); old_dir_next_header (); } did_chdir = false; have_subdir = false; if (old_dir.path != NULL && cmp == 0 && time_compare (&dir.time, &old_dir.time) == 0 && (dir.time.sec != 0 || dir.time.nsec != 0)) { res = copy_old_dir (&dir); if (res != -1) { have_subdir = res; old_dir_next_header (); goto have_dir; } } if (time_is_current (&dir.time)) { /* The directory might be changing right now and we can't be sure the timestamp will be changed again if more changes happen very soon, mark the timestamp as invalid to force rescanning the directory next time updatedb is run. */ dir.time.sec = 0; dir.time.nsec = 0; } did_chdir = true; if (safe_chdir (cwd_fd, relative, &st) != 0) goto err_chdir; res = scan_cwd (&dir); if (res == -1) goto err_chdir; have_subdir = res; have_dir: write_directory (&dir); if (have_subdir != false) { if (did_chdir == false) { did_chdir = true; if (safe_chdir (cwd_fd, relative, &st) != 0) goto err_entries; } scan_subdirs (&dir, &st); } err_entries: obstack_free (&scan_dir_state.list_obstack, dir.entries); obstack_free (&scan_dir_state.data_obstack, entries_mark); err_chdir: if (did_chdir != false && *cwd_fd != -1 && fchdir (*cwd_fd) != 0) return -1; err: return 0; } /* Unlinking of temporary database file */ /* An absolute path to the file to unlink or NULL */ static const char *unlink_path; /* = NULL; */ /* Signals which try to unlink unlink_path */ static sigset_t unlink_sigset; /* Unlink unlink_path */ static void unlink_db (void) { if (unlink_path != NULL) unlink (unlink_path); } /* SIGINT/SIGTERM handler */ static void attribute__ ((noreturn)) unlink_signal (int sig) { sigset_t mask; unlink_db (); signal (sig, SIG_DFL); sigemptyset (&mask); sigaddset (&mask, sig); sigprocmask (SIG_UNBLOCK, &mask, NULL); raise (sig); _exit (EXIT_FAILURE); } /* Set unlink_path to PATH (which must remain valid until next unlink_set () */ static void unlink_set (const char *path) { sigset_t old; sigprocmask (SIG_BLOCK, &unlink_sigset, &old); unlink_path = path; sigprocmask (SIG_SETMASK, &old, NULL); } /* Initialize the unlinking code */ static void unlink_init (void) { static const int signals[] = { SIGABRT, SIGINT, SIGTERM }; struct sigaction sa; size_t i; atexit (unlink_db); sigemptyset (&unlink_sigset); for (i = 0; i < ARRAY_SIZE(signals); i++) sigaddset (&unlink_sigset, signals[i]); sa.sa_handler = unlink_signal; sa.sa_mask = unlink_sigset; sa.sa_flags = 0; for (i = 0; i < ARRAY_SIZE(signals); i++) sigaction (signals[i], &sa, NULL); } /* Top level */ /* Open a temporary file for the new database and initialize its header and configuration block. Exit on error. */ static void new_db_open (void) { static const uint8_t magic[] = DB_MAGIC; struct db_header db_header; char *filename; int db_fd; filename = xmalloc (strlen (conf_output) + 8); sprintf (filename, "%s.XXXXXX", conf_output); db_fd = mkstemp (filename); if (db_fd == -1) error (EXIT_FAILURE, 0, _("can not open a temporary file for `%s'"), conf_output); new_db_filename = filename; unlink_set (filename); new_db = fdopen (db_fd, "wb"); if (new_db == NULL) error (EXIT_FAILURE, errno, _("can not open `%s'"), new_db_filename); memset (&db_header, 0, sizeof (db_header)); { verify (sizeof (db_header.magic) == sizeof (magic)); } memcpy (db_header.magic, &magic, sizeof (magic)); if (conf_block_size > UINT32_MAX) error (EXIT_FAILURE, 0, _("configuration is too large")); db_header.conf_size = htonl (conf_block_size); db_header.version = DB_VERSION_0; db_header.check_visibility = conf_check_visibility; fwrite (&db_header, sizeof (db_header), 1, new_db); fwrite (conf_scan_root, 1, strlen (conf_scan_root) + 1, new_db); fwrite (conf_block, 1, conf_block_size, new_db); } /* Set up permissions of new_db_filename. Exit on error. */ static void new_db_setup_permissions (void) { mode_t mode; if (conf_check_visibility != false) { struct group *grp; grp = getgrnam (GROUPNAME); if (grp == NULL) error (EXIT_FAILURE, errno, _("can not find group `%s'"), GROUPNAME); if (chown (new_db_filename, (uid_t)-1, grp->gr_gid) != 0) error (EXIT_FAILURE, errno, _("can not change group of file `%s' to `%s'"), new_db_filename, GROUPNAME); mode = S_IRUSR | S_IWUSR | S_IRGRP; } else /* Permissions as if open (..., O_CREAT | O_WRONLY, 0666) */ { mode_t mask; mask = umask (S_IRWXU | S_IRWXG | S_IRWXG); umask (mask); mode = ((S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) & ~mask); } if (chmod (new_db_filename, mode) != 0) error (EXIT_FAILURE, errno, _("can not change permissions of file `%s'"), new_db_filename); } int main (int argc, char *argv[]) { struct stat st; int lock_file_fd, cwd_fd; set_program_name (argv[0]); dir_path_cmp_init (); setlocale (LC_ALL, ""); bindtextdomain (PACKAGE_NAME, LOCALEDIR); textdomain (PACKAGE_NAME); conf_prepare (argc, argv); if (conf_prune_bind_mounts != false) bind_mount_init (MOUNTINFO_PATH); lock_file_fd = old_db_open (); if (lock_file_fd != -1) { struct flock lk; lk.l_type = F_WRLCK; lk.l_whence = SEEK_SET; lk.l_start = 0; lk.l_len = 0; if (fcntl (lock_file_fd, F_SETLK, &lk) == -1) { if (errno == EACCES || errno == EAGAIN) error (EXIT_FAILURE, 0, _("`%s' is locked (probably by an earlier updatedb)"), conf_output); error (EXIT_FAILURE, errno, _("can not lock `%s'"), conf_output); } } unlink_init (); new_db_open (); dir_state_init (&scan_dir_state); if (chdir (conf_scan_root) != 0) error (EXIT_FAILURE, errno, _("can not change directory to `%s'"), conf_scan_root); if (lstat (".", &st) != 0) error (EXIT_FAILURE, errno, _("can not stat () `%s'"), conf_scan_root); cwd_fd = -1; scan (conf_scan_root, &cwd_fd, &st, "."); if (cwd_fd != -1) close (cwd_fd); if (fwriteerror (new_db)) error (EXIT_FAILURE, errno, _("I/O error while writing to `%s'"), new_db_filename); new_db_setup_permissions (); if (rename (new_db_filename, conf_output) != 0) error (EXIT_FAILURE, errno, _("error replacing `%s'"), conf_output); /* There is really no race condition in removing other files now: unlink () only removes the directory entry (not symlink targets), and the file had to be intentionally placed there to match the mkstemp () result. So any attacker can at most remove their own data. */ unlink_set (NULL); free (new_db_filename); if (old_db.fd != -1) db_close(&old_db); /* Releases the lock */ else if (lock_file_fd != -1) /* old_db is invalid, but the file was used for locking */ close(lock_file_fd); /* Releases the lock */ if (fwriteerror (stdout)) error (EXIT_FAILURE, errno, _("I/O error while writing to standard output")); return EXIT_SUCCESS; } mlocate-0.26/src/db.h0000664000175000017500000000523210762432334011343 00000000000000/* Database file format. Copyright (C) 2005 Red Hat, Inc. All rights reserved. You can use this file without restriction. This file 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. (This file defines a file format, so even the LGPL seems too restrictive. Share and enjoy.) Author: Miloslav Trmac */ #ifndef DB_H__ #define DB_H__ #include /* See doc/mlocate.db.5.in */ /* File header */ struct db_header { uint8_t magic[8]; /* See DB_MAGIC below */ uint32_t conf_size; /* Configuration block size, in big endian */ uint8_t version; /* File format version, see DB_VERSION* below */ uint8_t check_visibility; /* Check file visibility in locate(1) */ uint8_t pad[2]; /* 32-bit total alignment */ /* Followed by NUL-terminated path of the root of the database */ }; /* Followed by a configuration block and an EOF-terminated sequence of directories. The configuration block is a sequence of name-values pairs (variable name '\0' (variable value '\0')... '\0'), ordered by name. If more than one value of a variable is present, they are ordered as if by strcmp (). Directory records are not output for unreadable directories; such directories do have an entry in their parent directory. "/" does not have a parent directory, so it is not present in the database at all. */ /* Contains a '\0' byte to unambiguously mark the file as a binary file. */ #define DB_MAGIC { '\0', 'm', 'l', 'o', 'c', 'a', 't', 'e' } #define DB_VERSION_0 0x00 /* Directory header */ struct db_directory { /* Both values 0 mean "invalid, always reread". This coincides with what Linux FAT, romfs and cramfs drivers do for unknown data. ctime should in theory be sufficient, but several Linux filesystems fill ctime with creation time. Therefore "time" is actually "max of ctime, mtime". */ uint64_t time_sec; /* st_[cm]time of the directory in big endian */ /* st_[cm]tim.tv_nsec of the directory in big endian or 0 if not available */ uint32_t time_nsec; uint8_t pad[4]; /* 64-bit total alignment */ /* Followed by NUL-terminated absolute path of the directory */ }; /* Followed by directory entries terminated by DBE_END, sorted by name using strcmp () */ /* Directory entry */ struct db_entry { uint8_t type; /* See DBE_* below */ /* Followed by NUL-terminated name if tag != DBE_END */ }; enum { DBE_NORMAL = 0, /* A non-directory file */ DBE_DIRECTORY = 1, /* A directory */ DBE_END = 2 /* End of directory contents; contains no name */ }; #endif mlocate-0.26/ABOUT-NLS0000644000175000017500000022532611435544162011254 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. When reporting bugs in the `intl/' directory or bugs which may be related to internationalization, you should tell about the version of `gettext' which is used. The information can be found in the `intl/VERSION' file, in internationalized packages. 1.1 Quick configuration advice ============================== If you want to exploit the full power of internationalization, you should configure it using ./configure --with-included-gettext to force usage of internationalizing routines provided within this package, despite the existence of internationalizing capabilities in the operating system where this package is being installed. So far, only the `gettext' implementation in the GNU C library version 2 provides as many features (such as locale alias, message inheritance, automatic charset conversion or plural form handling) as the implementation here. It is also not possible to offer this additional functionality on top of a `catgets' implementation. Future versions of GNU `gettext' will very likely convey even more functionality. So it might be a good idea to change to GNU `gettext' as soon as possible. So you need _not_ provide this option if you are using GNU libc 2 or you have installed a recent copy of the GNU gettext package with the included `libintl'. 1.2 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. If not, the included GNU `gettext' library will be used. This library is wholly contained within this package, usually in the `intl/' subdirectory, so prior installation of the GNU `gettext' package is _not_ required. Installers may use special options at configuration time for changing the default behaviour. The commands: ./configure --with-included-gettext ./configure --disable-nls will, respectively, bypass any pre-existing `gettext' to use the internationalizing routines provided within this package, or else, _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.a' file and will decide to use this. This might not be desirable. You should use the more recent version of the GNU `gettext' library. I.e. if the file `intl/VERSION' shows that the library which comes with this package is more recent, you should use ./configure --with-included-gettext to prevent auto-detection. The configuration process will not test for the `catgets' function and therefore it will not be used. The reason is that even an emulation of `gettext' on top of `catgets' could not provide all the extensions of the GNU `gettext' library. 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.3 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.4 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.5 Available Packages ====================== Languages are not equally supported in all packages. The following matrix shows the current state of internationalization, as of November 2007. 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 ar az be bg bs ca cs cy da de el en en_GB eo +----------------------------------------------------+ Compendium | [] [] [] [] | a2ps | [] [] [] [] [] | aegis | () | ant-phone | () | anubis | [] | ap-utils | | aspell | [] [] [] [] [] | bash | [] | bfd | | bibshelf | [] | binutils | | bison | [] [] | bison-runtime | [] | bluez-pin | [] [] [] [] [] | cflow | [] | clisp | [] [] [] | console-tools | [] [] | coreutils | [] [] [] [] | cpio | | cpplib | [] [] [] | cryptonit | [] | dialog | | diffutils | [] [] [] [] [] [] | doodle | [] | e2fsprogs | [] [] | enscript | [] [] [] [] | fetchmail | [] [] () [] [] | findutils | [] | findutils_stable | [] [] [] | flex | [] [] [] | fslint | | gas | | gawk | [] [] [] | gcal | [] | gcc | [] | gettext-examples | [] [] [] [] [] | gettext-runtime | [] [] [] [] [] | gettext-tools | [] [] | gip | [] | gliv | [] [] | glunarclock | [] | gmult | [] [] | gnubiff | () | gnucash | [] [] () () [] | gnuedu | | gnulib | [] | gnunet | | gnunet-gtk | | gnutls | [] | gpe-aerial | [] [] | gpe-beam | [] [] | 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 | [] [] | gretl | () | gsasl | | gss | | gst-plugins-bad | [] [] | gst-plugins-base | [] [] | gst-plugins-good | [] [] [] | gst-plugins-ugly | [] [] | gstreamer | [] [] [] [] [] [] [] | gtick | () | gtkam | [] [] [] [] | gtkorphan | [] [] | gtkspell | [] [] [] [] | gutenprint | [] | hello | [] [] [] [] [] | herrie | [] | hylafax | | idutils | [] [] | indent | [] [] [] [] | iso_15924 | | iso_3166 | [] [] [] [] [] [] [] [] [] [] [] | iso_3166_2 | | iso_4217 | [] [] [] | iso_639 | [] [] [] [] | jpilot | [] | jtag | | jwhois | | kbd | [] [] [] [] | keytouch | [] [] | keytouch-editor | [] | keytouch-keyboa... | [] | latrine | () | ld | [] | leafpad | [] [] [] [] [] | libc | [] [] [] [] | libexif | [] | libextractor | [] | libgpewidget | [] [] [] | libgpg-error | [] | libgphoto2 | [] [] | libgphoto2_port | [] [] | libgsasl | | libiconv | [] [] | libidn | [] [] [] | lifelines | [] () | lilypond | [] | lingoteach | | lprng | | lynx | [] [] [] [] | m4 | [] [] [] [] | mailfromd | | mailutils | [] | make | [] [] | man-db | [] [] [] | minicom | [] [] [] | nano | [] [] [] | opcodes | [] | parted | [] [] | pilot-qof | | popt | [] [] [] | psmisc | [] | pwdutils | | qof | | radius | [] | recode | [] [] [] [] [] [] | rpm | [] | screem | | scrollkeeper | [] [] [] [] [] [] [] [] | sed | [] [] [] | shared-mime-info | [] [] [] [] () [] [] [] | sharutils | [] [] [] [] [] [] | shishi | | skencil | [] () | solfege | | soundtracker | [] [] | sp | [] | system-tools-ba... | [] [] [] [] [] [] [] [] [] | tar | [] [] | texinfo | [] [] [] | tin | () () | tuxpaint | [] [] [] [] [] [] | unicode-han-tra... | | unicode-transla... | | util-linux | [] [] [] [] | util-linux-ng | [] [] [] [] | vorbis-tools | [] | wastesedge | () | wdiff | [] [] [] [] | wget | [] [] [] | xchat | [] [] [] [] [] [] [] | xkeyboard-config | [] | xpad | [] [] [] | +----------------------------------------------------+ af am ar az be bg bs ca cs cy da de el en en_GB eo 6 0 2 1 8 26 2 40 48 2 56 88 15 1 15 18 es et eu fa fi fr ga gl gu he hi hr hu id is it +--------------------------------------------------+ Compendium | [] [] [] [] [] | a2ps | [] [] [] () | aegis | | ant-phone | [] | anubis | [] | ap-utils | [] [] | aspell | [] [] [] | bash | [] | bfd | [] [] | bibshelf | [] [] [] | binutils | [] [] [] | bison | [] [] [] [] [] [] | bison-runtime | [] [] [] [] [] | bluez-pin | [] [] [] [] [] | cflow | [] | clisp | [] [] | console-tools | | coreutils | [] [] [] [] [] [] | cpio | [] [] [] | cpplib | [] [] | cryptonit | [] | dialog | [] [] [] | diffutils | [] [] [] [] [] [] [] [] [] | doodle | [] [] | e2fsprogs | [] [] [] | enscript | [] [] [] | fetchmail | [] | findutils | [] [] [] | findutils_stable | [] [] [] [] | flex | [] [] [] | fslint | | gas | [] [] | gawk | [] [] [] [] () | gcal | [] [] | gcc | [] | gettext-examples | [] [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] | gettext-tools | [] [] [] [] | gip | [] [] [] [] | gliv | () | glunarclock | [] [] [] | gmult | [] [] [] | gnubiff | () () | gnucash | () () () | gnuedu | [] | gnulib | [] [] [] | gnunet | | gnunet-gtk | | gnutls | | gpe-aerial | [] [] | gpe-beam | [] [] | 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 | [] [] [] | gretl | [] [] [] () | gsasl | [] [] | gss | [] [] | gst-plugins-bad | [] [] [] [] | gst-plugins-base | [] [] [] [] | gst-plugins-good | [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] | gstreamer | [] [] [] | gtick | [] [] [] | gtkam | [] [] [] [] | gtkorphan | [] [] | gtkspell | [] [] [] [] [] [] [] | gutenprint | [] | hello | [] [] [] [] [] [] [] [] [] [] [] [] [] | herrie | [] | hylafax | | idutils | [] [] [] [] [] | indent | [] [] [] [] [] [] [] [] [] [] | iso_15924 | [] | iso_3166 | [] [] [] [] [] [] [] [] [] [] [] [] [] | iso_3166_2 | [] | iso_4217 | [] [] [] [] [] [] | iso_639 | [] [] [] [] [] [] | jpilot | [] [] | jtag | [] | jwhois | [] [] [] [] [] | kbd | [] [] | keytouch | [] [] [] | keytouch-editor | [] | keytouch-keyboa... | [] [] | latrine | [] [] | ld | [] [] [] [] | leafpad | [] [] [] [] [] [] | libc | [] [] [] [] [] | libexif | [] | libextractor | [] | libgpewidget | [] [] [] [] [] | libgpg-error | [] | libgphoto2 | [] [] [] | libgphoto2_port | [] [] | libgsasl | [] [] | libiconv | [] [] [] | libidn | [] [] | lifelines | () | lilypond | [] [] [] | lingoteach | [] [] [] | lprng | | lynx | [] [] [] | m4 | [] [] [] [] | mailfromd | | mailutils | [] [] | make | [] [] [] [] [] [] [] [] | man-db | [] | minicom | [] [] [] [] | nano | [] [] [] [] [] [] [] | opcodes | [] [] [] [] | parted | [] [] [] | pilot-qof | | popt | [] [] [] [] | psmisc | [] [] | pwdutils | | qof | [] | radius | [] [] | recode | [] [] [] [] [] [] [] [] | rpm | [] [] | screem | | scrollkeeper | [] [] [] | sed | [] [] [] [] [] | shared-mime-info | [] [] [] [] [] [] | sharutils | [] [] [] [] [] [] [] [] | shishi | [] | skencil | [] [] | solfege | [] | soundtracker | [] [] [] | sp | [] | system-tools-ba... | [] [] [] [] [] [] [] [] [] | tar | [] [] [] [] [] | texinfo | [] [] [] | tin | [] () | tuxpaint | [] [] | unicode-han-tra... | | unicode-transla... | [] [] | util-linux | [] [] [] [] [] [] [] | util-linux-ng | [] [] [] [] [] [] [] | vorbis-tools | | wastesedge | () | wdiff | [] [] [] [] [] [] [] [] | wget | [] [] [] [] [] [] [] [] | xchat | [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] | xpad | [] [] [] | +--------------------------------------------------+ es et eu fa fi fr ga gl gu he hi hr hu id is it 85 22 14 2 48 101 61 12 2 8 2 6 53 29 1 52 ja ka ko ku ky lg lt lv mk mn ms mt nb ne nl nn +--------------------------------------------------+ Compendium | [] | a2ps | () [] [] | aegis | () | ant-phone | [] | anubis | [] [] [] | ap-utils | [] | aspell | [] [] | bash | [] | bfd | | bibshelf | [] | binutils | | bison | [] [] [] | bison-runtime | [] [] [] | bluez-pin | [] [] [] | cflow | | clisp | [] | console-tools | | coreutils | [] | cpio | [] | cpplib | [] | cryptonit | [] | dialog | [] [] | diffutils | [] [] [] | doodle | | e2fsprogs | [] | enscript | [] | fetchmail | [] [] | findutils | [] | findutils_stable | [] | flex | [] [] | fslint | | gas | | gawk | [] [] | gcal | | gcc | | gettext-examples | [] [] [] | gettext-runtime | [] [] [] | gettext-tools | [] [] | gip | [] [] | gliv | [] | glunarclock | [] [] | gmult | [] [] [] | gnubiff | | gnucash | () () () | gnuedu | | gnulib | [] [] | gnunet | | gnunet-gtk | | gnutls | [] | gpe-aerial | [] | gpe-beam | [] | 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 | [] [] | gretl | | gsasl | [] | gss | | gst-plugins-bad | [] | gst-plugins-base | [] | gst-plugins-good | [] | gst-plugins-ugly | [] | gstreamer | [] | gtick | [] | gtkam | [] [] | gtkorphan | [] | gtkspell | [] [] | gutenprint | [] | hello | [] [] [] [] [] [] [] | herrie | [] | hylafax | | idutils | [] | indent | [] [] | iso_15924 | [] | iso_3166 | [] [] [] [] [] [] [] [] | iso_3166_2 | [] | iso_4217 | [] [] [] | iso_639 | [] [] [] [] | jpilot | () () | jtag | | jwhois | [] | kbd | [] | keytouch | [] | keytouch-editor | [] | keytouch-keyboa... | | latrine | [] | ld | | leafpad | [] [] | libc | [] [] [] | libexif | | libextractor | | libgpewidget | [] | libgpg-error | | libgphoto2 | [] | libgphoto2_port | [] | libgsasl | [] | libiconv | [] | libidn | [] [] | lifelines | [] | lilypond | [] | lingoteach | [] | lprng | | lynx | [] [] | m4 | [] [] | mailfromd | | mailutils | | make | [] [] [] | man-db | | minicom | [] | nano | [] [] [] | opcodes | [] | parted | [] [] | pilot-qof | | popt | [] [] [] | psmisc | [] [] [] | pwdutils | | qof | | radius | | recode | [] | rpm | [] [] | screem | [] | scrollkeeper | [] [] [] [] | sed | [] [] | shared-mime-info | [] [] [] [] [] [] [] | sharutils | [] [] | shishi | | skencil | | solfege | () () | soundtracker | | sp | () | system-tools-ba... | [] [] [] [] | tar | [] [] [] | texinfo | [] [] | tin | | tuxpaint | () [] [] | unicode-han-tra... | | unicode-transla... | | util-linux | [] [] | util-linux-ng | [] [] | vorbis-tools | | wastesedge | [] | wdiff | [] [] | wget | [] [] | xchat | [] [] [] [] | xkeyboard-config | [] [] [] | xpad | [] [] [] | +--------------------------------------------------+ ja ka ko ku ky lg lt lv mk mn ms mt nb ne nl nn 51 2 25 3 2 0 6 0 2 2 20 0 11 1 103 6 or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta +--------------------------------------------------+ Compendium | [] [] [] [] [] | a2ps | () [] [] [] [] [] [] | aegis | () () | ant-phone | [] [] | anubis | [] [] [] | ap-utils | () | aspell | [] [] [] | bash | [] [] | bfd | | bibshelf | [] | binutils | [] [] | bison | [] [] [] [] [] | bison-runtime | [] [] [] [] [] | bluez-pin | [] [] [] [] [] [] [] [] [] | cflow | [] | clisp | [] | console-tools | [] | coreutils | [] [] [] [] | cpio | [] [] [] | cpplib | [] | cryptonit | [] [] | dialog | [] | diffutils | [] [] [] [] [] [] | doodle | [] [] | e2fsprogs | [] [] | enscript | [] [] [] [] [] | fetchmail | [] [] [] | findutils | [] [] [] | findutils_stable | [] [] [] [] [] [] | flex | [] [] [] [] [] | fslint | [] | gas | | gawk | [] [] [] [] | gcal | [] | gcc | [] [] | gettext-examples | [] [] [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] [] [] | gettext-tools | [] [] [] [] [] [] [] | gip | [] [] [] [] | gliv | [] [] [] [] [] [] | glunarclock | [] [] [] [] [] [] | gmult | [] [] [] [] | gnubiff | () [] | gnucash | () [] | gnuedu | | gnulib | [] [] [] | gnunet | | gnunet-gtk | [] | gnutls | [] [] | gpe-aerial | [] [] [] [] [] [] [] | gpe-beam | [] [] [] [] [] [] [] | 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 | [] [] [] [] | gretl | [] [] [] | gsasl | [] [] [] | gss | [] [] [] [] | gst-plugins-bad | [] [] [] | gst-plugins-base | [] [] | gst-plugins-good | [] [] | gst-plugins-ugly | [] [] [] | gstreamer | [] [] [] [] | gtick | [] | gtkam | [] [] [] [] [] | gtkorphan | [] | gtkspell | [] [] [] [] [] [] [] [] | gutenprint | [] | hello | [] [] [] [] [] [] [] [] | herrie | [] [] [] | hylafax | | idutils | [] [] [] [] [] | indent | [] [] [] [] [] [] [] | iso_15924 | | iso_3166 | [] [] [] [] [] [] [] [] [] [] [] [] [] | iso_3166_2 | | iso_4217 | [] [] [] [] [] [] [] | iso_639 | [] [] [] [] [] [] [] | jpilot | | jtag | [] | jwhois | [] [] [] [] | kbd | [] [] [] | keytouch | [] | keytouch-editor | [] | keytouch-keyboa... | [] | latrine | | ld | [] | leafpad | [] [] [] [] [] [] | libc | [] [] [] [] | libexif | [] [] | libextractor | [] [] | libgpewidget | [] [] [] [] [] [] [] [] | libgpg-error | [] [] [] | libgphoto2 | [] | libgphoto2_port | [] [] [] | libgsasl | [] [] [] [] | libiconv | [] [] [] | libidn | [] [] () | lifelines | [] [] | lilypond | | lingoteach | [] | lprng | [] | lynx | [] [] [] | m4 | [] [] [] [] [] | mailfromd | [] | mailutils | [] [] [] | make | [] [] [] [] | man-db | [] [] [] [] | minicom | [] [] [] [] [] | nano | [] [] [] [] | opcodes | [] [] | parted | [] | pilot-qof | | popt | [] [] [] [] | psmisc | [] [] | pwdutils | [] [] | qof | [] [] | radius | [] [] | recode | [] [] [] [] [] [] [] | rpm | [] [] [] [] | screem | | scrollkeeper | [] [] [] [] [] [] [] | sed | [] [] [] [] [] [] [] [] [] | shared-mime-info | [] [] [] [] [] [] | sharutils | [] [] [] [] | shishi | [] | skencil | [] [] [] | solfege | [] | soundtracker | [] [] | sp | | system-tools-ba... | [] [] [] [] [] [] [] [] [] | tar | [] [] [] [] | texinfo | [] [] [] [] | tin | () | tuxpaint | [] [] [] [] [] [] | unicode-han-tra... | | unicode-transla... | | util-linux | [] [] [] [] | util-linux-ng | [] [] [] [] | vorbis-tools | [] | wastesedge | | wdiff | [] [] [] [] [] [] [] | wget | [] [] [] [] | xchat | [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] | xpad | [] [] [] | +--------------------------------------------------+ or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta 0 5 77 31 53 4 58 72 3 45 46 9 45 122 3 tg th tk tr uk ven vi wa xh zh_CN zh_HK zh_TW zu +---------------------------------------------------+ Compendium | [] [] [] [] | 19 a2ps | [] [] [] | 19 aegis | [] | 1 ant-phone | [] [] | 6 anubis | [] [] [] | 11 ap-utils | () [] | 4 aspell | [] [] [] | 16 bash | [] | 6 bfd | | 2 bibshelf | [] | 7 binutils | [] [] [] [] | 9 bison | [] [] [] [] | 20 bison-runtime | [] [] [] [] | 18 bluez-pin | [] [] [] [] [] [] | 28 cflow | [] [] | 5 clisp | | 9 console-tools | [] [] | 5 coreutils | [] [] [] | 18 cpio | [] [] [] [] | 11 cpplib | [] [] [] [] [] | 12 cryptonit | [] | 6 dialog | [] [] [] | 9 diffutils | [] [] [] [] [] | 29 doodle | [] | 6 e2fsprogs | [] [] | 10 enscript | [] [] [] | 16 fetchmail | [] [] | 12 findutils | [] [] [] | 11 findutils_stable | [] [] [] [] | 18 flex | [] [] | 15 fslint | [] | 2 gas | [] | 3 gawk | [] [] [] | 16 gcal | [] | 5 gcc | [] [] [] | 7 gettext-examples | [] [] [] [] [] [] | 29 gettext-runtime | [] [] [] [] [] [] | 28 gettext-tools | [] [] [] [] [] | 20 gip | [] [] | 13 gliv | [] [] | 11 glunarclock | [] [] [] | 15 gmult | [] [] [] [] | 16 gnubiff | [] | 2 gnucash | () [] | 5 gnuedu | [] | 2 gnulib | [] | 10 gnunet | | 0 gnunet-gtk | [] [] | 3 gnutls | | 4 gpe-aerial | [] [] | 14 gpe-beam | [] [] | 14 gpe-calendar | [] [] | 7 gpe-clock | [] [] [] [] | 21 gpe-conf | [] [] [] | 16 gpe-contacts | [] [] | 10 gpe-edit | [] [] [] [] [] | 22 gpe-filemanager | [] [] | 7 gpe-go | [] [] [] [] | 19 gpe-login | [] [] [] [] [] | 21 gpe-ownerinfo | [] [] [] [] | 21 gpe-package | [] | 6 gpe-sketchbook | [] [] | 16 gpe-su | [] [] [] [] | 21 gpe-taskmanager | [] [] [] [] | 21 gpe-timesheet | [] [] [] [] | 18 gpe-today | [] [] [] [] [] | 21 gpe-todo | [] [] | 8 gphoto2 | [] [] [] [] | 21 gprof | [] [] | 13 gpsdrive | [] | 5 gramadoir | [] | 7 grep | [] | 12 gretl | | 6 gsasl | [] [] [] | 9 gss | [] | 7 gst-plugins-bad | [] [] [] | 13 gst-plugins-base | [] [] | 11 gst-plugins-good | [] [] [] [] [] | 16 gst-plugins-ugly | [] [] [] | 13 gstreamer | [] [] [] | 18 gtick | [] [] | 7 gtkam | [] | 16 gtkorphan | [] | 7 gtkspell | [] [] [] [] [] [] | 27 gutenprint | | 4 hello | [] [] [] [] [] | 38 herrie | [] [] | 8 hylafax | | 0 idutils | [] [] | 15 indent | [] [] [] [] [] | 28 iso_15924 | [] [] | 4 iso_3166 | [] [] [] [] [] [] [] [] [] | 54 iso_3166_2 | [] [] | 4 iso_4217 | [] [] [] [] [] | 24 iso_639 | [] [] [] [] [] | 26 jpilot | [] [] [] [] | 7 jtag | [] | 3 jwhois | [] [] [] | 13 kbd | [] [] [] | 13 keytouch | [] | 8 keytouch-editor | [] | 5 keytouch-keyboa... | [] | 5 latrine | [] [] | 5 ld | [] [] [] [] | 10 leafpad | [] [] [] [] [] | 24 libc | [] [] [] | 19 libexif | [] | 5 libextractor | [] | 5 libgpewidget | [] [] [] | 20 libgpg-error | [] | 6 libgphoto2 | [] [] | 9 libgphoto2_port | [] [] [] | 11 libgsasl | [] | 8 libiconv | [] [] | 11 libidn | [] [] | 11 lifelines | | 4 lilypond | [] | 6 lingoteach | [] | 6 lprng | [] | 2 lynx | [] [] [] | 15 m4 | [] [] [] | 18 mailfromd | [] [] | 3 mailutils | [] [] | 8 make | [] [] [] | 20 man-db | [] | 9 minicom | [] | 14 nano | [] [] [] | 20 opcodes | [] [] | 10 parted | [] [] [] | 11 pilot-qof | [] | 1 popt | [] [] [] [] | 18 psmisc | [] [] | 10 pwdutils | [] | 3 qof | [] | 4 radius | [] [] | 7 recode | [] [] [] | 25 rpm | [] [] [] [] | 13 screem | [] | 2 scrollkeeper | [] [] [] [] | 26 sed | [] [] [] [] | 23 shared-mime-info | [] [] [] | 29 sharutils | [] [] [] | 23 shishi | [] | 3 skencil | [] | 7 solfege | [] | 3 soundtracker | [] [] | 9 sp | [] | 3 system-tools-ba... | [] [] [] [] [] [] [] | 38 tar | [] [] [] | 17 texinfo | [] [] [] | 15 tin | | 1 tuxpaint | [] [] [] | 19 unicode-han-tra... | | 0 unicode-transla... | | 2 util-linux | [] [] [] | 20 util-linux-ng | [] [] [] | 20 vorbis-tools | [] [] | 4 wastesedge | | 1 wdiff | [] [] | 23 wget | [] [] [] | 20 xchat | [] [] [] [] | 29 xkeyboard-config | [] [] [] | 14 xpad | [] [] [] | 15 +---------------------------------------------------+ 76 teams tg th tk tr uk ven vi wa xh zh_CN zh_HK zh_TW zu 163 domains 0 3 1 74 51 0 143 21 1 57 7 45 0 2036 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 November 2007 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.6 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. mlocate-0.26/COPYING0000664000175000017500000004325411724327777011074 00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) 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 this service 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 make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. 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. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute 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 and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), 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 distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the 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 a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, 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. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE 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. 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 convey 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 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision 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, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This 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. mlocate-0.26/Makefile.am0000664000175000017500000001021011772153037012044 00000000000000# Copyright (C) 2005, 2006, 2007 Red Hat, Inc. All rights reserved. # This copyrighted material is made available to anyone wishing to use, modify, # copy, or redistribute it subject to the terms and conditions of the GNU # General Public License v.2. # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Author: Miloslav Trmac ## Process this file with automake to produce Makefile.in ## Settings dbdir = $(localstatedir)/mlocate dbfile = $(dbdir)/mlocate.db groupname = mlocate updatedb_conf = $(sysconfdir)/updatedb.conf # autopoint puts its m4 files to the first directory ACLOCAL_AMFLAGS = -I m4 -I gnulib/m4 AM_CPPFLAGS = -I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib COMMON_CPPFLAGS = -DDBFILE='"$(dbfile)"' -DLOCALEDIR='"$(localedir)"' \ -DGROUPNAME='"$(groupname)"' CONF_CPPFLAGS = -DUPDATEDB_CONF='"$(updatedb_conf)"' ## Targets SUBDIRS = gnulib/lib po bin_PROGRAMS = src/locate src/updatedb dist_man_MANS = doc/mlocate.db.5 man_MANS = doc/locate.1 doc/updatedb.conf.5 doc/updatedb.8 noinst_LIBRARIES = src/liblib.a check_PROGRAMS = tests/bind-mount-helper ## Rules CLEANFILES = $(man_MANS) DISTCLEANFILES = atconfig EXTRA_DIST = doc/locate.1.in doc/updatedb.conf.5.in doc/updatedb.8.in \ tests/testsuite tests/package.m4 tests/testsuite.at $(TESTFILES) TESTFILES = tests/bind-mount.at tests/config.at tests/locate.at \ tests/updatedb.at src_liblib_a_SOURCES = src/bind-mount.c src/bind-mount.h src/db.h \ src/lib.c src/lib.h src_locate_CPPFLAGS = $(AM_CPPFLAGS) $(COMMON_CPPFLAGS) src_locate_LDADD = src/liblib.a gnulib/lib/libgnu.a $(LIBINTL) src_updatedb_SOURCES = src/conf.c src/conf.h src/updatedb.c src_updatedb_CPPFLAGS = $(AM_CPPFLAGS) $(COMMON_CPPFLAGS) $(CONF_CPPFLAGS) src_updatedb_LDADD = src/liblib.a gnulib/lib/libgnu.a $(LIBINTL) tests_bind_mount_helper_LDADD = src/liblib.a gnulib/lib/libgnu.a $(LIBINTL) doc/locate.1: $(srcdir)/doc/locate.1.in Makefile $(MKDIR_P) doc sed 's,@dbfile@,$(dbfile),g' < $(srcdir)/doc/locate.1.in > $@ doc/updatedb.conf.5: $(srcdir)/doc/updatedb.conf.5.in Makefile $(MKDIR_P) doc sed 's,@updatedb_conf@,$(updatedb_conf),g' \ < $(srcdir)/doc/updatedb.conf.5.in > $@ doc/updatedb.8: $(srcdir)/doc/updatedb.8.in Makefile $(MKDIR_P) doc sed -e 's,@dbfile@,$(dbfile),g; s,@groupname@,$(groupname),g' \ -e 's,@updatedb_conf@,$(updatedb_conf),g' \ < $(srcdir)/doc/updatedb.8.in > $@ clean-local: $(SHELL) $(top_srcdir)/tests/testsuite --clean check-local: atconfig $(top_srcdir)/tests/testsuite $(SHELL) $(top_srcdir)/tests/testsuite installcheck-local: atconfig $(top_srcdir)/tests/testsuite $(SHELL) $(top_srcdir)/tests/testsuite AUTOTEST_PATH=$(bindir) install-exec-local: $(MKDIR_P) "$(DESTDIR)$(dbdir)" -chgrp $(groupname) "$(DESTDIR)$(dbdir)" 2>/dev/null \ && chmod g=rx,o= "$(DESTDIR)$(dbdir)" install-exec-hook: -chgrp $(groupname) "$(DESTDIR)$(bindir)/locate" 2>/dev/null \ && chmod g+s,go-w "$(DESTDIR)$(bindir)/locate" $(top_srcdir)/tests/package.m4: $(top_srcdir)/configure.ac { \ echo '# Signature of the current package.'; \ echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \ echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \ echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \ echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \ echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \ echo 'm4_define([AT_PACKAGE_URL], [@PACKAGE_URL@])'; \ } >$(top_srcdir)/tests/package.m4 $(top_srcdir)/tests/testsuite: tests/package.m4 tests/testsuite.at $(TESTFILES) $(AUTOM4TE) --language=autotest -I $(top_srcdir)/tests \ $(top_srcdir)/tests/testsuite.at -o $@.tmp mv $@.tmp $@ atconfig: $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status ./atconfig mlocate-0.26/configure.ac0000664000175000017500000000626012027217330012277 00000000000000# Process this file with autoconf to produce a configure script. AC_INIT([mlocate], [0.26], [mitr@redhat.com], , [https://fedorahosted.org/mlocate/]) AC_COPYRIGHT( [Copyright (C) 2005, 2006, 2007, 2009, 2010, 2012 Red Hat, Inc. All rights reserved. This copyrighted material is made available to anyone wishing to use, modify, copy, or redistribute it subject to the terms and conditions of the GNU General Public License v.2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Author: Miloslav Trmac ]) AC_PREREQ([2.63b]) AC_CONFIG_HEADERS([src/config.h]) AC_CONFIG_SRCDIR([src/locate.c]) AC_CONFIG_AUX_DIR([admin]) AC_CONFIG_TESTDIR([.], [src:tests]) AM_INIT_AUTOMAKE([no-dist-gzip dist-xz no-define subdir-objects -Wall]) # Checks for programs. AC_PROG_CC gl_EARLY AM_PROG_CC_C_O AC_PROG_RANLIB # This interface seems to be undocumented, but bison uses it ;-) AM_MISSING_PROG([AUTOM4TE], [autom4te]) gl_INIT # Checks for libraries. AM_GNU_GETTEXT([external], [need-ngettext]) AM_GNU_GETTEXT_VERSION([0.17]) # Checks for header files. # Checks for types. # Checks for structures. # Checks for compiler characteristics. # Checks for library functions. ## getopt_long () availability should be checked here AC_CHECK_FUNCS_ONCE([fdopendir]) AC_FUNC_GETMNTENT # Checks for system services. AC_SYS_LARGEFILE AC_CACHE_CHECK([for mounted filesystem table in /proc], [mitr_cv_sys_proc_mounts], [mitr_cv_sys_proc_mounts=no if test "$cross_compiling" != yes; then for i in /proc/self/mounts /proc/mounts; do if test -f "$i"; then mitr_cv_sys_proc_mounts=$i break fi done fi]) if test "$mitr_cv_sys_proc_mounts" != no; then AC_DEFINE_UNQUOTED([PROC_MOUNTS_PATH], ["$mitr_cv_sys_proc_mounts"], [Define to the path to the mounted filesystem table.]) fi # Miscellanous hackery. # Modify CFLAGS after all tests are run (some of them would fail because # of the -Werror). if test "$GCC" = yes ; then AC_CACHE_CHECK([for available GCC warning flags], [mitr_cv_prog_gcc_warnings], [mitr_cv_prog_gcc_warnings="" for i in -Wall -W -Wcast-align -Wmissing-noreturn -Wpointer-arith dnl -Wshadow -Wstrict-prototypes -Wwrite-strings; do oldcflags=$CFLAGS CFLAGS="$CFLAGS $i" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [])], [mitr_cv_prog_gcc_warnings="$mitr_cv_prog_gcc_warnings $i"]) CFLAGS=$oldcflags done]) CFLAGS="$CFLAGS $mitr_cv_prog_gcc_warnings" AC_MSG_CHECKING([whether we should use -Werror]) AC_ARG_ENABLE([Werror], AS_HELP_STRING([--enable-Werror], [use -Werror if compiling with gcc (default is NO)]), [], enable_Werror=no) if test "x$enable_Werror" != xno; then CFLAGS="$CFLAGS -Werror" fi AC_MSG_RESULT([$enable_Werror]) fi AC_CONFIG_FILES([Makefile gnulib/lib/Makefile po/Makefile.in]) AC_OUTPUT mlocate-0.26/po/0000775000175000017500000000000012027217357010514 500000000000000mlocate-0.26/po/pt.gmo0000664000175000017500000001707412027217357011574 000000000000003GLh4iF# "71L~ 0>Uo*+  # 0 @ a ) '   % * < &N .u    ) ! 85 $n   '  ".%T$p""!*HDc7& @Z  7!X2z.d$2L(8(a5212d}/6"-K8c0K+%Ek)-7(.A'p$!% 1!*"$0+)('2  &3.  ,- /%# %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-02-15 00:52+0000 Last-Translator: Rui Gouveia Language-Team: Portuguese Language: pt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %'ju byte no nome dos ficheiros %'ju bytes no nome dos ficheiros %'ju byte utilizado para guardar base de dados %'ju bytes utilizados para guardar base de dados %'ju directório %'ju directórios %'ju ficheiro %'ju ficheiros Reporte erros para %s. --%s especificado duas vezes--%s vai sobrepor-se a argumentos de linha de comando anterioresCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Base de dados %s: erro de I/O ao ler `%s'erro de I/O ao pesquisar em `%s'erro de I/O ao escrever para `%s'erro de I/O ao escrever para a saída por omissãoUtilização: updatedb [OPÇÕES]... Actualizar uma base de dados mlocate. -f, --add-prunefs FS omitir também FS -n, --add-prunenames NOMES omitir também NOMES -e, --add-prunepaths CAMINHOS omitir também CAMINHOS -U, --database-root CAMINHO a sub-árvore para armazenar a base de dados (por omissão "/") -h, --help mostrar esta ajuda -o, --output FILE base de dados a actualizar (por omissão `%s') --prune-bind-mounts MARCA omitir pontos de montagem (por omissão "no") --prunefs FS sistemas de ficheiros a omitir da base de dados --prunenames NOMES nomes de directórios a omitir da base de dados --prunepaths CAMINHOS caminhos a omitir da base de dados -l, --require-visibility MARCA verificar visibilidade antes de reportar ficheiros (por omissão "yes") -v, --verbose mostrar caminhos de ficheiros assim que são encontrados -V, --version mostrar informação da versão Os valores da configuração por omissão são lidos de `%s'. `%s' não parece ser uma base de dados mlocate`%s' tem uma versão desconhecida %u`%s' tem uma marca de visibilidade desconhecida %u`%s' está bloqueado (provavelmente por uma instância do updatedb anterior)`=' esperado depois do nome de variávelincapaz de alterar directório para `%s'incapaz de alterar o grupo do ficheiro `%s' para `%s'incapaz de alterar as permissões do ficheiro `%s'incapaz de largar privilégiosincapaz de encontrar grupo `%s'incapaz de obter o directório de trabalho actualIncapaz de bloquear '%s'incapaz de abrir `%s'incapaz de abrir ficheiro temporário para `%s'incapaz de ler duas bases de dados da entrada standardincapaz de executar o stat () `%s'o ficheiro de configuração é grande demaiserro ao substituir `%s'tamanho do nome do ficheiro %zu em `%s' é grande demaistamanho do nome do ficheiro %zu é grande demaiserro sistema ficheiros: nome de ficheiro com tamanho zero no directório %snome de directório vazio inválido em `%s'expressão regular inválida `%s': %svalor inválido `%s' de --%svalor inválido `%s' de PRUNE_BIND_MOUNTSfalta fecho `"'sem padrão a ser procurado para especificadoargumentos extra-opções não são permitidos com --%sEOF inesperado ao ler %sdados inesperados depois do valor da variáveloperando inesperado na linha de comandoVariável desconhecida `%s'valor entre aspas esperado após `='variável `%s' já está definidaesperado nome de variávelAviso: Número da linha excede limitemlocate-0.26/po/it.gmo0000664000175000017500000001674612027217357011572 000000000000003GLh4iF# "71L~ 0>Uo*+  # 0 @ a ) '   % * < &N .u    ) ! 85 $n   '  ".%T$p""!*H3YtD$  *)7T*O#z-:''/4W-"*(B.Z2"6 /CEs)+I2^2%,(@%["( 1!*"$0+)('2  &3.  ,- /%# %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-03-07 02:14+0000 Last-Translator: fvalen Language-Team: Italian Language: it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %'ju byte nei nomi file %'ju byte nei nomi file %'ju byte usati per conservare il database %'ju byte usati per conservare il database %'ju cartella %'ju cartella %'ju file %'ju file Riportare i bug a %s. --%s specificato due volte--%s sovrascriverebbe un precedente argomento della linea di comandoCopyright (C) 2007 Red Hat, Inc. Tutti i diritti riservati. Questo software è distribuito sotto la GPL v.2. Questo programma viene fornito SENZA NESSUNA GARANZIA, nei limiti della legge.Database %s: errore di I/O leggendo `%s'ricerca di errore I/O in `%s'errore di I/O durante la scrittura su `%s'erore di I/O durante la scrittura sullo standard outputUtilizzo: updatedb [OPZIONE]... Aggiorna un database mlocate. -f, --add-prunefs FS omette anche FS -n, --add-prunenames NOMI omette anche i NOMI -e, --add-prunepaths PERCORSI omette anche i PERCORSI -U, --database-root PERCORSO l'albero di directory in cui salvare il database (predefinito "/") -h, --help visualizza questo aiuto -o, --output FILE database da aggiornare (predefinito `%s') --prune-bind-mounts FLAG omette i bind mount (predefinito "no") --prunefs FS filesystem da omettere dal database --prunenames NAMES nomi di directory da omettere dal database --prunepaths PATHS percorsi da omettere dal database -l, --require-visibility FLAG controlla visibilità prima di riportare i file (predefinito "yes") -v, --verbose scrivi i percorsi dei file così come sono trovati -V, --version mostra informazioni di versione La configurazione predefinita si basa sui valori letti da `%s'. `%s' non sembra essere un database mlocate`%s' ha una versione %u sconosciuta`%s' ha un flag di visibilità %u sconosciuto`%s' è bloccato (probabilmente da un updatedb precedente)atteso `=' dopo il nome della variabileimpossibile cambiare la cartella a `%s'impossibile cambiare il gruppo del file `%s' in `%s'impossibile cambiare i permessi del file `%s'impossibile copiare i privilegiimpossibile trovare il gruppo `%s'impossibile ottenere la cartella di lavoroimpossibile bloccare `%s'impossibile aprire `%s'impossibile aprire un file temporaneo per `%s'impossibile leggere due database da standard inputcan not stat () `%s'la configurazione è troppo grandeerrore sostituendo `%s'la lunghezza del nome file %zu in `%s' è troppo largala lunghezza del nome file %zu è troppo grandeerrore del file system: filename di lunghezza-zero nella directory %snome di cartella vuota non valida in `%s'regexp `%s' non valido: %svalore `%s' non valido di --%svalore non valido `%s' di PRUNE_BIND_MOUNTSmancata chiusura `"'non è stato specificato nessun pattern da cercareargomenti non-opzioni non sono consentiti con --%sinaspettato EOF nella lettura di `%s'dato inatteso dopo il valore della variabileoperando inatteso sulla linea di comandovariabile sconosciuta `%s'valore fra virgolette atteso dopo `='la variabile `%s' è già definitaatteso nome di variabileattenzione: Overflow del numero di lineamlocate-0.26/po/it.po0000664000175000017500000003172612027217356011420 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # , 2012. # mitr , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-03-07 02:14+0000\n" "Last-Translator: fvalen \n" "Language-Team: Italian \n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "attenzione: Overflow del numero di linea" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "mancata chiusura `\"'" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "impossibile aprire `%s'" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "variabile sconosciuta `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "atteso nome di variabile" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "la variabile `%s' è già definita" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "atteso `=' dopo il nome della variabile" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "valore fra virgolette atteso dopo `='" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "valore non valido `%s' di PRUNE_BIND_MOUNTS" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "dato inatteso dopo il valore della variabile" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "errore di I/O leggendo `%s'" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "Utilizzo: updatedb [OPZIONE]...\n" "Aggiorna un database mlocate.\n" "\n" " -f, --add-prunefs FS omette anche FS\n" " -n, --add-prunenames NOMI omette anche i NOMI\n" " -e, --add-prunepaths PERCORSI omette anche i PERCORSI\n" " -U, --database-root PERCORSO l'albero di directory in cui salvare il\n" " database (predefinito \"/\")\n" " -h, --help visualizza questo aiuto\n" " -o, --output FILE database da aggiornare (predefinito\n" " `%s')\n" " --prune-bind-mounts FLAG omette i bind mount (predefinito \"no\")\n" " --prunefs FS filesystem da omettere dal database\n" " --prunenames NAMES nomi di directory da omettere dal\n" " database\n" " --prunepaths PATHS percorsi da omettere dal database\n" " -l, --require-visibility FLAG controlla visibilità prima di riportare i\n" " file (predefinito \"yes\")\n" " -v, --verbose scrivi i percorsi dei file così come sono\n" " trovati\n" " -V, --version mostra informazioni di versione\n" "\n" "La configurazione predefinita si basa sui valori letti da\n" "`%s'.\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Riportare i bug a %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "impossibile ottenere la cartella di lavoro" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s sovrascriverebbe un precedente argomento della linea di comando" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "valore `%s' non valido di --%s" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s specificato due volte" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Copyright (C) 2007 Red Hat, Inc. Tutti i diritti riservati.\n" "Questo software è distribuito sotto la GPL v.2.\n" "\n" "Questo programma viene fornito SENZA NESSUNA GARANZIA, nei limiti della " "legge." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "operando inatteso sulla linea di comando" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "`%s' non sembra essere un database mlocate" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "`%s' ha una versione %u sconosciuta" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "`%s' ha un flag di visibilità %u sconosciuto" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "inaspettato EOF nella lettura di `%s'" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "ricerca di errore I/O in `%s'" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "Database %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju cartella\n" msgstr[1] "\t%'ju cartella\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju file\n" msgstr[1] "\t%'ju file\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju byte nei nomi file\n" msgstr[1] "\t%'ju byte nei nomi file\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\t%'ju byte usati per conservare il database\n" msgstr[1] "\t%'ju byte usati per conservare il database\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "nome di cartella vuota non valida in `%s'" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "la lunghezza del nome file %zu in `%s' è troppo larga" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "Utilizzo: locate [OPZIONE]... [PATTERN]...\n" "Ricerca di voci in un database mlocate.\n" "\n" " -b, --basename cerca solo il basename nei nomi di path\n" " -c, --count scrivi solo il numero di voci trovate\n" " -d, --database DBPATH utilizza DBPATH invece del database predefinito " "(che è\n" " %s)\n" " -e, --existing scrivi solo le voci per i file attualmente " "esistenti\n" " -L, --follow seguire il link simbolico quando si controlla\n" " l'esistenza del file\n" " -h, --help scrivi questo messaggio di aiuto\n" " -i, --ignore-case ignora le differenze maiuscolo/minuscolo quando i\n" " pattern corrispondono\n" " -l, --limit, -n LIMIT limita il numero di elementi ritornati (o il " "conteggio) al valore LIMIT\n" " -m, --mmap ignorato, per compatibilità all'indietro\n" " -P, --nofollow, -H non seguire i link simbolici quando si controlla\n" " l'esistenza dei file\n" " -0, --null separare le voci con NULL in uscita\n" " -S, --statistics non effettuare ricerche di voci, scrivi le " "statistiche\n" " su ogni database usato\n" " -q, --quiet non riportare messaggi di errore sui database " "letti\n" " -r, --regexp REGEXP ricerca di regexp di base REGEXP invece del " "pattern\n" " --regex i pattern vengono intesi come regexp\n" " -s, --stdio ignorato, per compatibilità all'indietro\n" " -V, --version scrivi informazioni di versione\n" " -w, --wholename corrispondenza per l'intero nome del path\n" " (predefinito)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "argomenti non-opzioni non sono consentiti con --%s" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "non è stato specificato nessun pattern da cercare" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "regexp `%s' non valido: %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "impossibile copiare i privilegi" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "impossibile leggere due database da standard input" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "can not stat () `%s'" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "erore di I/O durante la scrittura sullo standard output" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "la lunghezza del nome file %zu è troppo grande" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "errore del file system: filename di lunghezza-zero nella directory %s" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "impossibile aprire un file temporaneo per `%s'" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "la configurazione è troppo grande" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "impossibile trovare il gruppo `%s'" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "impossibile cambiare il gruppo del file `%s' in `%s'" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "impossibile cambiare i permessi del file `%s'" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "`%s' è bloccato (probabilmente da un updatedb precedente)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "impossibile bloccare `%s'" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "impossibile cambiare la cartella a `%s'" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "errore di I/O durante la scrittura su `%s'" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "errore sostituendo `%s'" mlocate-0.26/po/et.gmo0000664000175000017500000001154212027217356011552 00000000000000-=4F#] v*+,#H0l  )' 1%Io&.)!C8e$' "2 U $q  " !   & < D _  (     " ,!(N"w'L#&31Z) .#*-J@x&.#'<K()'#5(R-{E &#> ,& * '+)# -!$ "(% %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twiceCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard output`%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputconfiguration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiedunexpected EOF reading `%s'unexpected data after variable valueunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-07-15 05:24+0000 Last-Translator: Ivar Smolin Language-Team: Estonian (http://www.transifex.com/projects/p/fedora/language/et/) Language: et MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %'ju bait failinimede jaoks %'ju baiti failinimede jaoks %'ju bait andmebaasi hoidmiseks %'ju baiti andmebaasi hoidmiseks %'ju kataloog %'ju kataloogi %'ju fail %'ju faili Programmi vigadest teata aadressil %s. --%s on määratud mitu kordaAutoriõigused (C) 2007 Red Hat, Inc. Kõik õigused reserveeritud. Seda tarkvara levitatakse GPL v.2 litsentsi tingimustel. Sellel programmil puudub igasugune garantii määral, mis on seadustega lubatud.Andmebaas %s: S/V tõrge faili '%s' lugemiselS/V tõrge faili `%s' kerimiselS/V tõrge faili '%s' kirjutamiselS/V tõrge standardväljundisse kirjutamisel`%s' ei paista olevate mlocate andmebaasFaili `%s' versioon %u on tundmatuFaili `%s' nähtavuslipp %u on tundmatufail `%s' on lukus (arvatavasti lukustatud varem käivitatud updatedb poolt)pärast muutuja nime peab olema `='kataloogi `%s' pole võimalik sisenedafailile `%s' pole võimalik gruppi `%s' määratafaili `%s' õiguseid pole võimalik muutagruppi `%s' pole võimalik leidapraegust töökataloogi pole võimalik hankidafaili `%s' pole võimalik lukustadafaili `%s' pole võimalik avadaajutist faili pole `%s' jaoks võimalik avadastandardsisendist pole võimalik korraga kahte andmebaasi lugedaseadistused võtavad liiga palju ruumitõrge `%s' asendamiselfailinime pikkus %zu failis `%s' on liiga suurfaili nime pikkus %zu on liiga suurfailisüsteemi tõrge: nullpikkusega failinimi kataloogis %svigane tühi kataloogi nimi pärast `%s'vigane regulaaravaldis `%s': %svõtmel --%2$s on vigane väärtus `%1$s'vigane PRUNE_BIND_MOUNTS väärtus `%s'puudub sulgev `"'otsingumuster on määramataootamatu faililõpp faili '%s' lugemiselmuutuja väärtuse järel on ootamatud andmedtundmatu muutuja `%s'võrdusmärgi järel peaks olema jutumärkidesse paigutatud väärtusmuutuja `%s' on juba kirjeldatudeeldatakse muutuja nimehoiatus: Reanumbrite ületäituminemlocate-0.26/po/ja.po0000664000175000017500000003274712027217356011402 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # Hajime Taira , 2011. # Hyu_gabaru Ryu_ichi , 2009. # mitr , 2011. # Tomoyuki KATO , 2012. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-02-14 08:16+0000\n" "Last-Translator: Tomoyuki KATO \n" "Language-Team: Japanese \n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "警告: 行番号があふれています" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "閉じる `\"' がありません" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "`%s' を開けません" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "不明な変数 `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "変数名が期待されています" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "変数 `%s' は、すでに定義されています" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "変数名の後には `=' が期待されています" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "`=' の後には引用符で囲まれた値が期待されています" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "PRUNE_BIND_MOUNTS の不当な値 `'%s'" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "変数値の後の期待されていないデータ" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "`%s' 読込みで入出力エラー" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "利用方法: updatedb [オプション]...\n" "mlocate データベースを更新します。\n" "\n" " -f, --add-prunefs FS 同じ FS を除外する\n" " -n, --add-prunenames NAMES 同じ NAMES を除外する\n" " -e, --add-prunepaths PATHS 同じ PATHS を除外する\n" " -U, --database-root PATH データベース中の保存するサブツリー (省略値 " "\"/\")\n" " -h, --help このヘルプを印刷する\n" " -o, --output FILE 更新するデータベース (省略値\n" " `%s')\n" " --prune-bind-mounts FLAG bind マウントを除外する (省略値 \"no\")\n" " --prunefs FS データベースから除外するファイルシステム\n" " --prunenames NAMES データベースから除外する辞書名\n" " --prunepaths PATHS データベースから除外するパス\n" " -l, --require-visibility FLAG ファイルを報告する前に可視性をチェックする\n" " (デフォルト値 \"yes\")\n" " -v, --verbose 見つかったファイルのバスを印刷する\n" " -V, --version バージョン情報を印刷する\n" "\n" "設定はファイル`%s'\n" "から読み込んだ値を省略値とします。\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "バグを %s へ報告してください。\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "現在の作業ディレクトリーを得られません" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s は以前のコマンドラインパラメーターを上書きします" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "--%2$s の不当な値 `%1$s'" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s が 2 回指定されています" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "このソフトウェアは GPL v.2 に基づいて提供されています。\n" "\n" "このプログラムは法律が許す範囲で無保証で提供されます。" #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "コマンドライン上に期待しないオペランド" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "`%s' は mlocate データベースではないようです" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "`%s' は不明なバージョン %u です" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "`%s' には不明な可視性フラグ %u があります" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "`%s' を読んでいる時に予期しない EOF" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "`%s' 中をシークしている時に入出力エラー" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "データベース %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju 辞書\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju ファイル\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\tファイル名に %'ju バイト\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\tデータベースに保存するのに %'ju バイト使いました\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "`'%s' 中の不当な空の辞書名" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "`%2$s' 中のファイル名長 %1$zu は大きすぎます" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "利用方法: locate [オプション]... [パターン]...\n" "mlocate データベースで項目を探します。\n" "\n" " -b, --basename バス名のベース名のみに一致\n" " -c, --count 見つかった項目数のみ印刷\n" " -d, --database DBPATH 省略値のデータベース(%s) \n" " の代わりに DBPATH を使う\n" " -e, --existing 現在存在するファイル用の項目数のみ印刷\n" " -L, --follow ファイルの存在のチェック(省略値)時に後続する\n" " シンボリックリンクに従う\n" " -h, --help このヘルプを印刷\n" " -i, --ignore-case パターンの照合時に大小文字を区別しない\n" " -l, --limit, -n LIMIT 出力 (又は 計数) を LIMIT 項目に限定\n" " -m, --mmap 無視される、後方互換のため\n" " -P, --nofollow, -H ファイルの存在チェック時に後続するシンボリックリン" "ク\n" " に従わない\n" " -0, --null 出力で項目を NUL で区切る\n" " -S, --statistics 項目を探さず、個々の使用したデータベースの統計情報\n" " を印刷\n" " -q, --quiet データベース読込みに関するエラーメッセージを報告しな" "い\n" " -r, --regexp REGEXP パターンの代わりに基本正規表現 REGEXP で探す\n" " --regex パターンは拡張正規表現\n" " -s, --stdio 無視される、後方互換のため\n" " -V, --version バージョン情報を印刷\n" " -w, --wholename 全パス名に一致 (省略値)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "オプションでないパラメーターは --%s と一緒は認められません" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "探すパターンが指定されていません" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "不当な正規表現 `%s': %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "特権を落とすことはできません" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "標準入力から 2 つのデータベースを読めません" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "stat () `'%s' できません" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "標準出力へ書いている時に入出力エラー" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "ファイル名長 %zu は大きすぎます" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "ファイルシステムエラー: ディレクトリ %s に長さ0のファイル名があります" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "`%s' 用の一時ファイルを開けません" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "設定が大きすぎます" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "グループ `%s' を見つけられません" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "ファイルのグループを `%s' から `%s' へ変更できません" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "ファイル `%s' のパーミッションを変更できません" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "`%s' はロックされています (おそらく以前の updatedb によって)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "`%s' をロックできません" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "辞書を `%s' に変更できません" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "`%s' へ書き込み中に入出力エラー" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "`%s' の置き換えでエラー" mlocate-0.26/po/nds.po0000664000175000017500000001773112027217356011570 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # mitr , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-02-14 08:16+0000\n" "Last-Translator: Miloslav Trmač \n" "Language-Team: Low German \n" "Language: nds\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "künn `%s' nich opmaken" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "unbekannte Variable `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" #: src/conf.c:482 msgid "can not get current working directory" msgstr "" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s twejmol spezifizert" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "" msgstr[1] "" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "" msgstr[1] "" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "" msgstr[1] "" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "" msgstr[1] "" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "" #: src/locate.c:617 #, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "" #: src/locate.c:949 msgid "can not drop privileges" msgstr "" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "" mlocate-0.26/po/sv.gmo0000664000175000017500000001640112027217357011572 000000000000003GLh4iF# "71L~ 0>Uo*+  # 0 @ a ) '   % * < &N .u    ) ! 85 $n   '  ".%T$p""!*H+^3](.Ap !.Mi&E(&:8a$/)9X$r*/7S*o#7 $<([&9% !"Be-z" 1!*"$0+)('2  &3.  ,- /%# %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-02-18 14:53+0000 Last-Translator: Göran Uddeborg Language-Team: Swedish (http://www.transifex.com/projects/p/fedora/language/sv/) Language: sv MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %'ju byte i filnamn %'ju byte i filnamn %'ju byte använd för att lagra databasen %'ju byte använda för att att lagra databasen %'ju katalog %'ju kataloger %'ju fil %'ju filer Skicka synpunkter på översättningen till Rapportera fel till %s. --%s angavs två gånger--%s skulle åsidosätta föregående argumentCopyright © 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Databas %s: I/O-fel vid inläsning av `%s'I/O-fel vid sökning i `%s'I/O-fel vid skrivning till `%s'I/O-fel vid skrivning till standard utAnvändning: updatedb [FLAGGA]... Uppdatera en mlocate-databas. -f, --add-prunefs FS uteslut även FS -n, --add-prunenames NAMN uteslut även NAMN -e, --add-prunepaths SÖKVÄGAR uteslut även SÖKVÄGAR -U, --database-root SÖKVÄG delträdet att lagra i databasen (standard "/") -h, --help skriv denna hjälp -o, --output FIL databas att uppdatera (standard "%s") --prune-bind-mounts FLAGGA uteslut bind-monteringar (standard "no") --prunefs FS filsystem att utesluta från databasen --prunenames NAMN katalognamn att utesluta från databasen --prunepaths SÖKVÄGAR sökvägar att utesluta från databasen -l, --require-visibility FLAGGA kontrollera synligheten före filer rapporteras (standard "yes") -v, --verbose skriv sökvägar till filer när de hittas -V, --version skriv versionsinformation Konfigurationen har standardvärden som läses ifrån "%s". `%s' verkar inte vara en mlocate-databas`%s' har okänd version %u"%s" har en okänd synlighetsflagga %u`%s' är låst (förmodligen av tidigare körd updatedb)"=" förväntades efter variabelnamnkan inte byta katalog till `%s'kan inte byta filens grupp från `%s' till `%s'kan inte ändra rättigheter på fil `%s'kan inte släppa behörigheterkan inte hitta grupp `%s'kan inte hitta aktuell arbetskatalogkan inte låsa `%s'kan inte öppna `%s'kan inte öppna en temporär fil för `%s'kan inte läsa två databaser från standard inkan inte ta status på "%s"konfiguration är för storfel vid ersättning av `%s'filnamnslängden %zu i `%s' är för långfilnamnslängden %zu är för långfilsystemsfel: filnamn med längden noll i katalogen %sogiltigt tomt katalognamn i `%s'ogiltigt reguljärt uttryck `%s': %sogiltigt värde "%s" till --%sogiltigt värde `%s' i PRUNE_BIND_MOUNTSsaknar avslutande `"'inget mönster att söka efter angivetargument som inte är flaggor är inte tillåtna med --%soväntat filslut vid läsning av `%s'okänd data efter variabelvärdeoväntad operand på kommandoradenokänd variabel `%s'värde inom citattecken förväntat efter `='variabeln `%s' var redan defineradvariabelnamn förväntadesvarning: Spill i radnummermlocate-0.26/po/uk.po0000664000175000017500000003667612027217356011434 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # mitr , 2011. # Yuri Chornoivan , 2011, 2012. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-02-14 08:16+0000\n" "Last-Translator: Yuri Chornoivan \n" "Language-Team: Ukrainian \n" "Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "попередження: кількість рядків переповнено" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "відсутній завершальний символ `\"'" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "неможливо відкрити «%s»" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "невідома змінна `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "очікування назви змінної" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "змінна `%s' вже визначена" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "«=» очікується після імені змінної" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "значення у дужках очікується після «=»" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "неприпустиме значення «%s» для PRUNE_BIND_MOUNTS" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "неочікувані дані після значення змінної" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "Помилка вводу/виводу при читанні «%s»" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "Застосування: updatedb [ПАРАМЕТРИ]...\n" "Оновлення бази даних mlocate.\n" "\n" " -f, --add-prunefs ФС пропускати вказані ФС\n" " -n, --add-prunenames НАЗВИ пропускати НАЗВИ\n" " -e, --add-prunepaths ШЛЯХИ пропускати ШЛЯХИ\n" " -U, --database-root ШЛЯХ піддерево, зберігається у базі даних " "(типово \"/\")\n" " -h, --help вивести цю довідку\n" " -o, --output FILE база даних для оновлення (типово\n" " `%s')\n" " --prune-bind-mounts ПРАПОР пропускати точки підключення (типово \"немає" "\")\n" " --prunefs ФС ФС для виключення з бази даних\n" " --prunenames НАЗВИ каталог для виключення з баз даних\n" " --prunepaths ШЛЯХИ шляхи для виключення з бази даних\n" " -l, --require-visibility ПРАПОР перевірити наявні файли перед додаванням\n" " (типово \"так\")\n" " -v, --verbose вивести шляхи до знайдених файлів\n" " -V, --version вивести інформацію про версію\n" "\n" "Типові параметри отримані з\n" "«%s».\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Звіт про помилки надсилайте до %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "не вдається отримати поточний робочий каталог" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s перевизначить вказаний раніше аргумент командного рядка" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "неправильне значення «%s» для --%s" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s визначено двічі" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "(C) 2007 Red Hat, Inc. Всі права захищені.\n" "Ця програма поширюється на умовах ліцензії GPL v.2.\n" "\n" "Програма поширюється БЕЗ ГАРАНТІЙ, у межах, що припускаються законом." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "неочікуваний операнд у командному рядку" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "«%s» не є базою даних mlocate" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "невідома версія «%s»: %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "«%s» має невідомий видиму ознаку %u" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "неочікуваний EOF при читанні «%s»" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "помилка вводу/виводу під час пошуку у «%s»" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "База даних %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju каталог\n" msgstr[1] "\t%'ju каталоги\n" msgstr[2] "\t%'ju каталогів\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju файл\n" msgstr[1] "\t%'ju файли\n" msgstr[2] "\t%'ju файлів\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju байт у назвах файлів\n" msgstr[1] "\t%'ju байти у назвах файлів\n" msgstr[2] "\t%'ju байтів у назвах файлів\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\t%'ju байти використано для зберігання бази даних\n" msgstr[1] "\t%'ju байти використано для зберігання бази даних\n" msgstr[2] "\t%'ju байтів використано для зберігання бази даних\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "недійсна назва порожнього каталогу у «%s»" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "надто довга назва файлу %zu у «%s»" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "Застосування: locate [ПАРАМЕТРИ]... [ЗРАЗОК]...\n" "Пошук елементів у базі даних mlocate.\n" "\n" " -b, --basename лише збіг базової назви у шляху\n" " -c, --count вивести лише число знайдених місць\n" " -d, --database DBPATH використати DBPATH замість типової бази даних (\n" " %s)\n" " -e, --existing вивести знайдені лише для наявних наразі файлів\n" " -L, --follow йти за символічними посиланнями при перевірці\n" " файлу на наявність (типове значення)\n" "\n" " -h, --help вивести цю довідку\n" " -i, --ignore-case ігнорувати регістр знайдених збігів\n" " -l, --limit, -n LIMIT обмежити вивід (або підрахунок) LIMIT збігами\n" " -m, --mmap ігнорується, для зворотної сумісності\n" " -P, --nofollow, -H не слідувати символічним посиланнями при " "перевірці \n" " файлу на наявність\n" " -0, --null розділяти знайдені файли з виводом NUL\n" " -S, --statistics не шукати знайдені файли, вивід статистики\n" " за базою даних, що використовується\n" " -q, --quiet не повідомляти про помилки читання бази даних\n" " -r, --regexp REGEXP шукати за регулярним виразом REGEXP замість " "шаблонів\n" " --regex шаблони розширених регулярних виразів\n" " -s, --stdio ігнорується, для зворотної сумісності\n" " -V, --version вивести інформацію про версії\n" " -w, --wholename лише цілі назви шляхів (типово)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "не є аргументом параметра або не дозволено з --%s" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "не визначено шаблон для пошуку" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "неприпустимий regexp «%s»: %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "неможливо понизити привілеї" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "неможливо читати дві бази даних з стандартного вводу" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "не вдається виконати stat () «%s»" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "помилка вводу/виводу під час запису до стандартного виводу" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "надто довга назва файлу %zu" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "" "помилка у файловій системі: файл з назвою нульової довжини у каталозі %s" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "не вдається відкрити тимчасовий файл для «%s»" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "конфігурація дуже велика" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "не вдається знайти групу «%s»" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "не вдається з мінити групу файлу з «%s» на «%s»" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "не вдається змінити права файлу «%s»" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "«%s» заблоковано (можливо більш раннім updatedb)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "не вдається заблокувати «%s»" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "не вдається змінити каталог на «%s»" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "помилка вводу/виводу під час запису у «%s»" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "помилка під час заміни «%s»" mlocate-0.26/po/pl.gmo0000664000175000017500000001742512027217357011564 000000000000003GLh4iF# "71L~ 0>Uo*+  # 0 @ a ) '   % * < &N .u    ) ! 85 $n   '  ".%T$p""!*H]&0'N#v5244'F\.=!l-P! $/,T) 2;0U@ !/%(UF~*,"/@p 74()>h+~%) 1!*"$0+)('2  &3.  ,- /%# %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-02-14 08:16+0000 Last-Translator: Piotr Drąg Language-Team: Polish Language: pl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); %'ju bajt w nazwach plików %'ju bajty w nazwach plików %'ju bajtów w nazwach plików %'ju bajt użyty do przechowywania bazy danych %'ju bajty użyte do przechowywania bazy danych %'ju bajtów użytych do przechowywania bazy danych %'ju katalog %'ju katalogi %'ju katalogów %'ju plik %'ju pliki %'ju plików Proszę zgłaszać błędy do %s. --%s podano dwa razy--%s zastąpi wcześniejszy parametr wiersza poleceńCopyright (C) 2007 Red Hat, Inc. Wszystkie prawa zastrzeżone. To oprogramowanie jest rozprowadzane na licencji GPL v.2. Ten program dostarczany jest BEZ GWARANCJI, w zakresie dozwolonym przez prawo.Baza danych %s: błąd wejścia/wyjścia podczas odczytywania "%s"błąd wejścia/wyjścia podczas wyszukiwania w "%s"błąd wejścia/wyjścia podczas zapisywania do "%s"błąd wejścia/wyjścia podczas zapisywania do standardowego wyjściaUżycie: updatedb [OPCJA]... Aktualizuje bazę danych mlocate. -f, --add-prunefs SYSTEM PLIKÓW pomija także system plików -n, --add-prunenames NAZWY pomija także NAZWY -e, --add-prunepaths ŚCIEŻKI pomija także ŚCIEŻKI -U, --database-root ŚCIEŻKA poddrzewo do przechowywania bazy danych (domyślnie "/") -h, --help wyświetla tę pomoc -o, --output PLIK baza danych do zaktualizowania (domyślnie "%s") --prune-bind-mounts FLAGA pomija montowania dowiązań (domyślnie "no") --prunefs SYSTEM PLIKÓW system plików do pominięcia w bazie danych --prunepaths ŚCIEŻKI ścieżki do pominięcia w bazie danych -l, --require-visibility FLAGA sprawdza widoczność przed zgłoszeniem plików (domyślnie "yes") -v, --verbose wyświetla ścieżki plików, kiedy zostaną odnalezione -V, --version wyświetla informacje o wersji Domyśla konfiguracja to wartości odczytane z "%s". "%s" nie wydaje się być bazą danych mlocate"%s" posiada nieznaną wersję %u"%s" posiada nieznaną flagę widoczności %u"%s" jest zablokowane (prawdopodobnie przez wcześniejsze uruchomienie updatedb)po nazwie zmiennej oczekiwano "="nie można zmienić katalogu na "%s"nie można zmienić grupy pliku "%s" na "%s"nie można zmienić uprawnień pliku "%s"nie można porzucić uprawnieńnie można odnaleźć grupy "%s"nie można uzyskać bieżącego katalogu roboczegonie można zablokować "%s"nie można otworzyć "%s"nie można otworzyć pliku tymczasowego dla `%s'nie można odczytać dwóch baz danych ze standardowego wejścianie można wykonać stat () "%s"konfiguracja jest za dużabłąd podczas zastępowania "%s"długość nazwy pliku %zu w "%s" jest za dużadługość nazwy pliku %zu jest za dużabłąd systemu plików: nazwa pliku o zerowej długości w katalogu %snieprawidłowa pusta nazwa katalogu w "%s"nieprawidłowe wyrażenie regularne "%s": %snieprawidłowa wartość "%s" --%snieprawidłowa wartość "%s" PRUNE_BIND_MOUNTSbrak zamykającego `"'nie podano wzoru do wyszukiwaniaparametry nie będące opcjami nie są dozwolone z --%snieoczekiwany koniec pliku podczas odczytywania "%s"nieoczekiwane dane po wartości zmiennejnieoczekiwany parametr w wierszu poleceńnieznana zmienna `%s'po "=" oczekiwano wartości w cudzysłowachzmienna "%s" została już określonaoczekiwano nazwę zmiennejostrzeżenie: przepełniono numer wierszamlocate-0.26/po/as.po0000664000175000017500000004166012027217356011405 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # ngoswami , 2011. # Nilamdyuti Goswami , 2012. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-02-15 12:54+0000\n" "Last-Translator: ngoswami \n" "Language-Team: Assamese (http://www.transifex.com/projects/p/fedora/language/" "as/)\n" "Language: as\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "সতৰ্কবাৰ্তা: শাৰী নম্বৰ উপচি পৰিছে" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "বন্ধ কৰা `\"' সন্ধানহীন" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "`%s' খুলিব নোৱাৰি" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "অজ্ঞাত চলক `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "চলক নাম আশা কৰা হৈছে" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "চলক `%s' ইতিমধ্যে বৰ্ণিত" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "চলক নামৰ পিচত `=' আশা কৰা হৈছে" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "`=' -ৰ পিছত কৌট্চত মান আশা কৰা হৈছে" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "PRUNE_BIND_MOUNTS -ৰ অবৈধ মান `%s'" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "চলক মানৰ পিছত অপ্ৰত্যাশিত তথ্য" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "I/O পঢ়া ত্ৰুটি `%s'" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "ব্যৱহাৰ: updatedb [বিকল্প]...\n" "এটা mlocate ডাটাবেইচ আপডেইট কৰক\n" "\n" " -f, --add-prunefs FS FS -কো বাদ দিয়ক\n" " -n, --add-prunenames NAMES NAMES -কো বাদ দিয়ক\n" " -e, --add-prunepaths PATHS PATHS -কো বাদ দিয়ক\n" " -U, --database-root PATH ডাটাবেইচত সঞ্চয় কৰিব লগিয়া সাবট্ৰি (default " "\"/\")\n" " -h, --help এই সহায় প্ৰিন্ট কৰক\n" " -o, --output FILE আপডেইট কৰিবলে ডাটাবেইচ (default\n" " `%s')\n" " --prune-bind-mounts FLAG বন্দা মাউন্টসমূহ বাদ দিয়ক (অবিকল্পিত \"no\")\n" " --prunefs FS ডাটাবেইচৰ পৰা বাদ দিব লগা নথিপত্ৰপ্ৰণালী\n" " --prunenames NAMES ডাটাবেইচৰ পৰা বাদ দিব লগা ডাইৰেকটৰি নামসমূহ\n" " --prunepaths PATHS ডাটাবেইচৰ পৰা বাদ দিব লগা পথসমূহ\n" " -l, --require-visibility FLAG নথিপত্ৰসমূহ সংবাদন কৰাৰ আগতে দৃশ্যমানতা নিৰিক্ষণ " "কৰক\n" " (অবিকল্পিত \"yes\")\n" " -v, --verbose নথিপত্ৰসমূহৰ পথ প্ৰিন্ট কৰে যেতিয়া পোৱা যায়\n" " -V, --version সংস্কৰণ তথ্য প্ৰিন্ট কৰিব\n" "\n" "মানসমূহ পঢ়িবলে সংৰূপ অবিকল্পিতসমূহ\n" "`%s'.\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "বাগসমূহ %s লে সংবাদন কৰক.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "বৰ্তমান কাৰ্যৰত ডাইৰেকটৰি পোৱা নগল" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s -এ পুৰ্বৰ কমান্ড-লাইন তৰ্ক পুনৰ লিখি দিব" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "--%s -ৰ অবৈধ মান `%s'" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s দুবাৰ ধাৰ্য্য কৰা হৈছে" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "স্বত্বাধিকাৰ (C) 2007 Red Hat, Inc. সকলো অধিকাৰ সংৰক্ষীত।\n" "এই চফ্টওৱেৰ GPL v.2 -ৰ অন্তৰ্গত বিলোৱা হৈছে।\n" "\n" "এই প্ৰগ্ৰামৰ লগত কোনো ওৱাৰেন্টি নাহে, আইন অনুমোদিত বিস্তাৰ লৈকে।" #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "কমান্ড লাইনত অপ্ৰত্যাশীত কাৰ্য্যকাৰক" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "`%s' এটা mlocate ডাটাবেইচ যেন নালাগে" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "`%s' -ৰ এটা অজ্ঞাত সংস্কৰণ %u আছে" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "`%s' -ৰ এটা অজ্ঞাত দৃশ্যমান ফ্লেগ %u আছে" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "`%s' পঢ়ি থাকোতে এটা অপ্ৰত্যাশীত EOFষ " #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "`%s' বিচাৰোতে এটা I/O ত্ৰুটি" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "ডাটাবেইচ %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju ডাইৰেকটৰি\n" msgstr[1] "\t%'ju ডাইৰেকটৰিসমূহ\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju নথিপত্ৰ\n" msgstr[1] "\t%'ju নথিপত্ৰসমূহ\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t নথিপত্ৰৰ নামসমূহত %'ju বাইট\n" msgstr[1] "\tনথিপত্ৰৰ নামসমূহত %'ju বাইটসমূহ\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\tডাটাবেইচ সঞ্চয় কৰিবলে ব্যৱহৃত %'ju বাইট\n" msgstr[1] "\tডাটাবেইচ সঞ্চয় কৰিবলে ব্যৱহৃত %'ju বাইটসমূহ\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "`%s' -ত অবৈধ ৰিক্ত ডাইৰেকটৰি নাম" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "নথিপত্ৰ নামৰ দৈৰ্ঘ %zu `%s' -ৰ বাবে অতি ডাঙৰ" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "ব্যৱহাৰ: locate [বিকল্প]... [বিন্যাস]...\n" "এটা mlocate ডাটাবেইচত প্ৰবিষ্টিসমূহ বিচাৰক।\n" "\n" " -b, --basename পথসমূহৰ নামৰ ভিত্তি নাম মিলাই চাব\n" " -c, --count কেৱল বিচাৰি পোৱা প্ৰবিষ্টিৰ সংখ্যা প্ৰিন্ট কৰিব\n" " -d, --database DBPATH অবিকল্পিত ডাটাবেইচৰ সলনি DBPATH ব্যৱহাৰ কৰক (যোনটো\n" " %s)\n" " -e, --existing কেৱল বৰ্তমানে স্থায়ী নথিপত্ৰৰ বাবে অহা প্ৰবিষ্টকে প্ৰিন্ট " "কৰিব\n" " -L, --follow নথিপত্ৰৰ অস্তিত্ব বিচাৰোতে সাংকেতিক লিংকসমূহ অনুসৰন কৰক\n" " (অবিকল্পিত)\n" " -h, --help এই সহায় প্ৰিন্ট কৰক\n" " -i, --ignore-case বিন্যাস মিলাওতে কেইস ভিন্নতা উপেক্সা কৰক\n" " -l, --limit, -n LIMIT আউটপুট সীমিত কৰক (অথবা গণীত) সীমিত প্ৰবিষ্টিসমূহলে\n" " -m, --mmap পিছহোৱা সংগতিৰ কাৰণে উপেক্ষীত\n" " -P, --nofollow, -H নথিপত্ৰৰ অস্তিত্ব বিচাৰোতে সাংকেতিক লিংকসমূহ অনুসৰন " "নকৰিব\n" " (অবিকল্পিত)\n" " -0, --null NUL থকা প্ৰবিষ্টিসমূহ আউটপুটত বেলেগ কৰে\n" " -S, --statistics প্ৰবিষ্টিসমূহ নিবিচাৰিব, প্ৰতিটো ব্যৱহৃত ডাটাবেইচৰ কাৰণে\n" " পৰিসংখ্যা প্ৰিন্ট কৰক\n" " -q, --quiet ডাটাবেইচসমূহ পঢ়োতে কোনো ত্ৰুটি বাৰ্তা পোৱা নগল\n" " -r, --regexp REGEXP বিন্যাসসমূহৰ পৰিৱৰ্তে সাধাৰন regexp REGEXP বিচাৰক\n" " --regex বিন্যাসসমূহ প্ৰসাৰীত regexps\n" " -s, --stdio পিছহোৱা সংগতিৰ কাৰণে উপেক্ষীত\n" " -V, --version সংস্কৰণ তথ্য প্ৰিন্ট কৰক\n" " -w, --wholename সমপূৰ্ণ পথৰ নাম মিলাই চাওক (অবিকল্পিত)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "--%s -ৰ সৈতে বিকল্প নোহোৱা তৰ্কসমূহৰ অনুমতি আছে" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "ধাৰ্য্য কৰাৰ কাৰণে বিচাৰিবলে কোনো বিন্যাস নাই" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "অবৈধ regexp `%s': %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "সুবিধাসমূহ এৰিব নোৱাৰি" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "প্ৰামানিক ইনপুটৰ পৰা দুটা ডাটাবেইচ পঢ়িব নোৱাৰি" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "stat () `%s' কৰিব নোৱাৰি" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "প্ৰামানিক ইনপুটলে লিখতে I/O ত্ৰুটি" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "নথিপত্ৰ নাম দৈৰ্ঘ %zu অতি ডাঙৰ" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "নথিপত্ৰ প্ৰনালী ত্ৰুটি: ডাইৰেকটৰি %s ত শূন্য-দৈৰ্ঘ্য নথিপত্ৰ নাম" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "`%s' -ৰ বাবে এটা অস্থায়ী নথিপত্ৰ খুলিব নোৱাৰি" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "সংৰূপ অতি ডাঙৰ" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "দল `%s' বিচাৰি পোৱা নাযায়" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "নথিপত্ৰ `%s' -ৰ দল `%s' লে সলাব নোৱাৰি" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "নথিপত্ৰ `%s' -ৰ অনুমতিসমূহ সলাব নোৱাৰি" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "`%s' লক্ড (সম্ভবত এটা পুৰ্বৰ updatedb দ্বাৰা)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "`%s' লক কৰিব নোৱাৰি" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "ডাইৰেকটৰিক `%s' লে সলাব নোৱাৰি" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "`%s' -লে লিখোতে এটা I/O ত্ৰুটি" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "`%s' সলাওতে ত্ৰুটি" mlocate-0.26/po/remove-potcdate.sin0000644000175000017500000000066011402714566014245 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 } mlocate-0.26/po/fa.gmo0000664000175000017500000002000412027217356011521 000000000000003GLh4iF# "71L~ 0>Uo*+  # 0 @ a ) '   % * < &N .u    ) ! 85 $n   '  ".%T$p""!*H*T)~&H+=)[!0EK%+q=-; 9EGC1 =C[&6Q\O/- C*9nV4/4(d0@H0cE3K+3w*- 1!*"$0+)('2  &3.  ,- /%# %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-03-06 19:05+0000 Last-Translator: Morteza Adi Language-Team: Persian (http://www.transifex.com/projects/p/fedora/language/fa/) Language: fa MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; %'ju فایل در نامهای فایل %'ju باید استفاده شده در ذخیره سازی پایگاه داده %'ju شاخه %'ju فایل گزارش باگ ها %s. --%s دوبار مشخص شده است--%s بر آرگومان قبلی خط فرمان نوشته می شودکپی رایت (C) 2007 Red Hat, Inc. همه حقوق محفوظ است. این برنامه تحت جی پی ال ۲ منتشر می شود. این برنامه بدون هیچ ضمانتی تا انجایی که قانون اجازه می دهد ارائه می شود.پایگاه‌داده %s: خطای I/O هنگام خواندن `%s'خطای I/O در یافتن `%s'خطای I/O در حین نوشتن در‌ `%s'خطای I/O هنگام نوشتن بر خروجی استاندارداستفاده: updatedb [OPTION]... به هنگام سازی پایگاه داده. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' به نظر می رسد یک پایگاه داده ی mlocate باشد`%s' نسخه ای ناشناس دارد %u`%s' نماد ناشناس مخشخصی برای %u دارد `%s' updatedbقفل است. (شاید با )بعد از نام متغیر `=' انتظار می رودنمی تواند به شاخه ی `%s' تغییر دهدنمی توان گروه فایل `%s' را به `%s' تغییر دادنمی تواند مجوزه های فایل `%s' تغییر دهدنمی توان اجازه ها را برداشتگروه `%s' یافت نشدنمی تواند شاخه کاری کنونی را پیدا کندقفل کردن '%s' ممکن نبودنمی‌توان پرونده `%s' را باز کردنمی‌توان پروندهٔ موقتی برای فایل `%s' باز کردنمی تواند دو پایگاه داده از خروجی استاندارد بخواندتعیین وضعیت () `%s' ممکن نیستپیکره بندی خیلی بزرگ است.خطای جایگزینی `%s'طول نام فایل %zu در `%s' بسیار طولانی استطول نام فایل %zu بسیار طولانی استخطا در فایل سیستمی: نام فایل به طول صفر در پوشه %sنام شاخه ی خالی نامعتبر در `%s'متغیرهای نامعتبر RegExp `%s': %sمقدار نامعتبر `%s' از --%sمقدار نامعتبر `%s' PRUNE_BIND_MOUNTSگم کردن بستن `"'هیچ الگویی برای جستجو مشخص نشده استآرگومان های بی گزینه با --%s مجاز نمی باشدپایان خواندن غیر منتظره `%s'داده های غیر منتظره بعد از مقدار متغیرعملگر غیر منتظره در خط فرمانمتغیر ناشناس `%s'مقدار در نقل قول ها بعد از `=' انتظار می رودمتغیر `%s' قبلاً تعریف شده استانتظار نام متغیر می رفتهشدار: شماره خط اضافی استmlocate-0.26/po/de.gmo0000664000175000017500000001653312027217356011537 000000000000003GLh4iF# "71L~ 0>Uo*+  # 0 @ a ) '   % * < &N .u    ) ! 85 $n   '  ".%T$p""!*H4`''95%4I+f7, 3+@_%'/0!Oq1-:"$])"?*G(r+(E)c*,! !9 1!*"$0+)('2  &3.  ,- /%# %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-02-21 07:45+0000 Last-Translator: Roman Spirgi Language-Team: German Language: de MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %'ju-Byte in Dateinamen %'ju-Bytes in Dateinamen %'ju-Byte benutzt zum Speichern der Datenbank %'ju-Bytes benutzt zum Speichern der Datenbank %'ju-Verzeichnis %'ju-Verzeichnisse %'ju-Datei %'ju-Dateien Fehlerberichte an %s. --%s zweimal angegeben--%s wird frühere Befehlszeilen-Argumente überschreibenCopyright (C) 2007 Red Hat, Inc. Alle Rechte vorbehalten. Diese Software ist unter GPL v.2. veröffentlicht Dieses Programm wird unter Ausschluss vom Gewährleistung und Garantie bereitgestellt, soweit dies durch Gesetze ermöglicht wird.Datenbank %s: E/A-Lese-Fehler `%s'E/A-Fehler bei Suche in `%s'E/A-Fehler während des Schreibens auf `%s'E/A-Fehler während des Schreibens auf Standard-AusgabeBenutzung: updatedb [OPTION]... Aktualisiert eine mlocate-Datenbank. -f, --add-prunefs FS lässt Dateisystem FS aus -n, --add-prunenames NAMEN lässt NAMEN aus -e, --add-prunepaths PFADE lässt PfADE aus -U, --database-root PATH das Unterverzeichnis, um die Datenbank zu speichern (Standard "/") -h, --help zeigt diese Hilfe -o, --output FILE Datenbank FILE wird aktualisiert (Standard `%s') --prune-bind-mounts FLAG lässt 'bind mounts' aus (Standard "no") --prunefs FS lässt Dateisystem FS beim Aktualisieren aus --prunepaths PFADE lässt PFADE beim Aktualisieren aus -l, --require-visibility FLAG überprüft Sichtbarkeit vor Aufnahme in die Datenbank (Standard "yes") -v, --verbose zeigt Pfade von gefundenen Dateien -V, --version zeigt Versionsinformationen an Die Konfigurationseinstellungen werden gelesen aus `%s'. `%s' scheint keine mlocate-Datenbank zu sein`%s' hat unbekannte Version %u`%s' hat eine unbekannte Sichtbarkeitsmarkierung %u`%s' ist blockiert (wahrscheinlich durch ein früheres updatedb)`=' erwartet nach dem Variablen-Namenkann Verzeichnis nicht auf `%s' ändernkann Dateigruppe von `%s' zu `%s' nicht ändernkann Berechtigungen von Datei `%s' nicht ändernkann Zugriffsrechte nicht abgebenkann Gruppe `%s' nicht findenkann aktuelles Arbeitsverzeichnis nicht bestimmenkann `%s' nicht blockierenkann `%s' nicht öffnenkann temporäre Datei für `%s' nicht öffnenkann nicht zwei Datenbanken von der Standard-Eingabe lesenkann stat () `%s' nicht durchführenKonfiguration ist zu langFehler beim Ersetzen von `%s'Dateinamen-Länge %zu in `%s' ist zu langDateinamen-Länge %zu ist zu langeDateisystem-Fehler: Dateinamen mit Nulllänge im Verzeichnis %sungültiger leerer Verzeichnisname in `%s'ungültiger regulärer Ausdruck `%s': %sungültiger Wert `%s' von --%sungültiger Wert `%s' von PRUNE_BIND_MOUNTSfehlendes schliessendes `"'Kein Suchmuster angegebenArgumente müssen bei --%s Optionen seinunerwartetes EOF gelesen `%s'Unerwartete Daten nach dem Variablen-Wertunerwarteter Operator auf der Befehlszeileunbekannte Variable `%s'Wert in Anführungszeichen nach `=' erwartetVariable `%s' ist schon definiertVariablen-Namen erwartetWarnung: Zeilen-Nummern-Überlaufmlocate-0.26/po/pl.po0000664000175000017500000003300312027217356011405 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # mitr , 2011. # Piotr Drąg , 2012. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-02-14 08:16+0000\n" "Last-Translator: Piotr Drąg \n" "Language-Team: Polish \n" "Language: pl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "ostrzeżenie: przepełniono numer wiersza" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "brak zamykającego `\"'" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "nie można otworzyć \"%s\"" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "nieznana zmienna `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "oczekiwano nazwę zmiennej" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "zmienna \"%s\" została już określona" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "po nazwie zmiennej oczekiwano \"=\"" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "po \"=\" oczekiwano wartości w cudzysłowach" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "nieprawidłowa wartość \"%s\" PRUNE_BIND_MOUNTS" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "nieoczekiwane dane po wartości zmiennej" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "błąd wejścia/wyjścia podczas odczytywania \"%s\"" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "Użycie: updatedb [OPCJA]...\n" "Aktualizuje bazę danych mlocate.\n" "\n" " -f, --add-prunefs SYSTEM PLIKÓW pomija także system plików\n" " -n, --add-prunenames NAZWY pomija także NAZWY\n" " -e, --add-prunepaths ŚCIEŻKI pomija także ŚCIEŻKI\n" " -U, --database-root ŚCIEŻKA poddrzewo do przechowywania bazy danych\n" " (domyślnie \"/\")\n" " -h, --help wyświetla tę pomoc\n" " -o, --output PLIK baza danych do zaktualizowania (domyślnie\n" " \"%s\")\n" " --prune-bind-mounts FLAGA pomija montowania dowiązań (domyślnie\n" " \"no\")\n" " --prunefs SYSTEM PLIKÓW system plików do pominięcia w bazie danych\n" " --prunepaths ŚCIEŻKI ścieżki do pominięcia w bazie danych\n" " -l, --require-visibility FLAGA sprawdza widoczność przed zgłoszeniem\n" " plików (domyślnie \"yes\")\n" " -v, --verbose wyświetla ścieżki plików, kiedy zostaną\n" " odnalezione\n" " -V, --version wyświetla informacje o wersji\n" "\n" "Domyśla konfiguracja to wartości odczytane z\n" "\"%s\".\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Proszę zgłaszać błędy do %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "nie można uzyskać bieżącego katalogu roboczego" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s zastąpi wcześniejszy parametr wiersza poleceń" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "nieprawidłowa wartość \"%s\" --%s" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s podano dwa razy" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Copyright (C) 2007 Red Hat, Inc. Wszystkie prawa zastrzeżone.\n" "To oprogramowanie jest rozprowadzane na licencji GPL v.2.\n" "\n" "Ten program dostarczany jest BEZ GWARANCJI, w zakresie dozwolonym przez " "prawo." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "nieoczekiwany parametr w wierszu poleceń" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "\"%s\" nie wydaje się być bazą danych mlocate" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "\"%s\" posiada nieznaną wersję %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "\"%s\" posiada nieznaną flagę widoczności %u" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "nieoczekiwany koniec pliku podczas odczytywania \"%s\"" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "błąd wejścia/wyjścia podczas wyszukiwania w \"%s\"" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "Baza danych %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju katalog\n" msgstr[1] "\t%'ju katalogi\n" msgstr[2] "\t%'ju katalogów\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju plik\n" msgstr[1] "\t%'ju pliki\n" msgstr[2] "\t%'ju plików\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju bajt w nazwach plików\n" msgstr[1] "\t%'ju bajty w nazwach plików\n" msgstr[2] "\t%'ju bajtów w nazwach plików\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\t%'ju bajt użyty do przechowywania bazy danych\n" msgstr[1] "\t%'ju bajty użyte do przechowywania bazy danych\n" msgstr[2] "\t%'ju bajtów użytych do przechowywania bazy danych\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "nieprawidłowa pusta nazwa katalogu w \"%s\"" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "długość nazwy pliku %zu w \"%s\" jest za duża" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "Użycie: locate [OPCJA]... [WZÓR]...\n" "Wyszukuje wpisy w bazie danych mlocate.\n" "\n" " -b, --basename dopasowuje tylko podstawowe nazwy ścieżek\n" " -c, --count wyświetla tylko liczbę znalezionych wpisów\n" " -d, --database ŚCIEŻKA DO BAZY DANYCH używa ŚCIEŻKI DO BAZY DANYCH\n" " zamiast domyślnej bazy danych (%s)\n" " -e, --existing wyświetla tylko wpisy dla obecnie istniejących\n" " plików\n" " -L, --follow podąża za dowiązaniami symbolicznymi podczas\n" " sprawdzania istnienia plików (domyślnie)\n" " -h, --help wyświetla tę pomoc\n" " -i, --ignore-case ignoruje różnice znaków podczas dopasowywania\n" " wzorów\n" " -l, --limit, -n OGRANICZENIE ograniczenie wyjścia (lub liczenia) do\n" " OGRANICZENIA wpisów\n" " -m, --mmap ignorowane, dla zgodności wstecznej\n" " -P, --nofollow, -H nie podąża za dowiązaniami symbolicznymi podczas\n" " sprawdzania istnienia pliku\n" " -0, --null oddziela wpisy za pomocą NULL na wyjściu\n" " -S, --statistics nie wyszukuje wpisów, wyświetla statystyki o\n" " każdej używanej bazie danych\n" " -q, --quiet nie zgłasza komunikatów błędów podczas\n" " odczytywania baz danych\n" " -r, --regexp WYRAŻENIE REGULARNE wyszukuje podstawowe WYRAŻENIE\n" " REGULARNE zamiast wzorów\n" " --regex wzory to rozszerzone wyrażenia regularne\n" " -s, --stdio ignorowane, dla zgodności wstecznej\n" " -V, --version wyświetla informację o wersji\n" " -w, --wholename dopasowuje całą nazwę (domyślnie)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "parametry nie będące opcjami nie są dozwolone z --%s" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "nie podano wzoru do wyszukiwania" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "nieprawidłowe wyrażenie regularne \"%s\": %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "nie można porzucić uprawnień" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "nie można odczytać dwóch baz danych ze standardowego wejścia" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "nie można wykonać stat () \"%s\"" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "błąd wejścia/wyjścia podczas zapisywania do standardowego wyjścia" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "długość nazwy pliku %zu jest za duża" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "błąd systemu plików: nazwa pliku o zerowej długości w katalogu %s" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "nie można otworzyć pliku tymczasowego dla `%s'" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "konfiguracja jest za duża" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "nie można odnaleźć grupy \"%s\"" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "nie można zmienić grupy pliku \"%s\" na \"%s\"" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "nie można zmienić uprawnień pliku \"%s\"" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "" "\"%s\" jest zablokowane (prawdopodobnie przez wcześniejsze uruchomienie " "updatedb)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "nie można zablokować \"%s\"" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "nie można zmienić katalogu na \"%s\"" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "błąd wejścia/wyjścia podczas zapisywania do \"%s\"" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "błąd podczas zastępowania \"%s\"" mlocate-0.26/po/en_GB.po0000664000175000017500000003025312027217356011750 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # mitr , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-02-14 08:16+0000\n" "Last-Translator: Miloslav Trmač \n" "Language-Team: English (United Kingdom) (http://www.transifex.com/projects/p/" "fedora/language/en_GB/)\n" "Language: en_GB\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "warning: Line number overflow" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "missing closing `\"'" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "can not open `%s'" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "unknown variable `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "variable name expected" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "variable `%s' was already defined" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "`=' expected after variable name" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "value in quotes expected after `='" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "invalid value `%s' of PRUNE_BIND_MOUNTS" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "unexpected data after variable value" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "I/O error reading `%s'" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Report bugs to %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "can not get current working directory" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s would override earlier command-line argument" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "invalid value `%s' of --%s" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s specified twice" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "unexpected operand on command line" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "`%s' does not seem to be a mlocate database" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "`%s' has unknown version %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "`%s' has unknown visibility flag %u" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "unexpected EOF reading `%s'" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "I/O error seeking in `%s'" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "Database %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju directory\n" msgstr[1] "\t%'ju directories\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju file\n" msgstr[1] "\t%'ju files\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju byte in file names\n" msgstr[1] "\t%'ju bytes in file names\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\t%'ju byte used to store database\n" msgstr[1] "\t%'ju bytes used to store database\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "invalid empty directory name in `%s'" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "file name length %zu in `%s' is too large" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "non-option arguments are not allowed with --%s" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "no pattern to search for specified" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "invalid regexp `%s': %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "can not drop privileges" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "can not read two databases from standard input" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "can not stat () `%s'" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "I/O error while writing to standard output" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "file name length %zu is too large" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "can not open a temporary file for `%s'" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "configuration is too large" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "can not find group `%s'" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "can not change group of file `%s' to `%s'" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "can not change permissions of file `%s'" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "`%s' is locked (probably by an earlier updatedb)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "can not lock `%s'" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "can not change directory to `%s'" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "I/O error while writing to `%s'" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "error replacing `%s'" mlocate-0.26/po/sr.po0000664000175000017500000003704612027217356011431 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # mitr , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-02-14 08:16+0000\n" "Last-Translator: Miloslav Trmač \n" "Language-Team: Serbian \n" "Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "упозорење: прекорачен број линија" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "недостаје завршно „\"“" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "не могу да отворим „%s“" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "непозната променљива „%s“" #: src/conf.c:358 msgid "variable name expected" msgstr "очекује се назив променљиве" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "променљива „%s“ је већ дефинисана" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "„=“ се очекује после назива променљиве" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "вредност у наводницима је очекивана после „=“" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "неисправна вредност „%s“ PRUNE_BIND_MOUNTS променљиве" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "неочекиван податак после вредности променљиве" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "У/И грешка при читању „%s“" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "Употреба: updatedb [ОПЦИЈЕ]...\n" "Ажурира mlocate базу података.\n" "\n" " -f, --add-prunefs СД изостави систем датотека\n" " -n, --add-prunenames НАЗИВИ изостави НАЗИВЕ\n" " -e, --add-prunepaths ПУТАЊЕ изостави ПУТАЊЕ\n" " -U, --database-root ПУТАЊА подстабло за чување базе података\n" " (подразумевано „/“)\n" " -h, --help одштампај ову помоћ\n" " -o, --output ДАТОТЕКА база података за ажурирање " "(подразумевано\n" " „%s“)\n" " --prune-bind-mounts ОЗНАКА изостави везнике монтирања " "(подразумевано\n" " „не“)\n" " --prunefs СД системи датотека који се изостављају из\n" " базе података\n" " --prunenames НАЗИВИ називи директоријума који се изостављају " "из\n" " базе података\n" " --prunepaths ПУТАЊЕ путање које се изостављају из базе " "података\n" " -l, --require-visibility ОЗНАКА провери видљивост пре извештавању о\n" " датотекама\n" " (подразумевано „да“)\n" " -v, --verbose штампа путање датотека како се проналазе\n" " -V, --version штампа информације о верзији\n" "\n" "Подразумеване вредности подешавања прочитане из\n" "„%s“.\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Пријавите грешке на %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "не могу да добијем текући радни директоријум" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s би премостило ранији аргумент командне линије" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "неисправна вредност „%s“ за --%s" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s дефинисано два пута" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Ауторска права 2007 Red Hat, Inc. Сва права задржана.\n" "Овај софтвер се дистрибуира под ГЈЛ верзије 2.\n" "\n" "Овај програм долази БЕЗ ГАРАНЦИЈЕ, у оквиру дозвољеним законом." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "неочекивани оператор командне линије" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "„%s“ изгледа да није mlocate база података" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "„%s“ има непознату верзију %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "„%s“ има непознати индикатор видљивости %u" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "неочекивани завршетак датотеке (EOF ) при читању „%s“" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "У/И грешка при тражењу у „%s“" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "База података %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "неисправан назив празног директоријума у „%s“" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "дужина %zu назива датотеке у „%s“ је превелика" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "Употреба: locate [ОПЦИЈА]... [ШАБЛОН]...\n" "Тражи записе у mlocate бази података.\n" "\n" " -b, --basename пореди само основне називе назива путање\n" " -c, --count само одштампај број пронађених записа\n" " -d, --database ПУТАЊАБП користи ПУТАЊУБП уместо подразумеване базе " "података\n" " (која је %s)\n" " -e, --existing само штампај записе за тренутно постојеће " "датотеке\n" " -L, --follow прати симболичке везе када провераваш постојање\n" " датотеке (подразумевано)\n" " -h, --help одштампај ову помоћ\n" " -i, --ignore-case занемари разлике у величини карактера када " "поредиш\n" " шаблоне\n" " -l, --limit, -n ГРАНИЦА ограничи испис (или бројање) на ГРАНИЦУ записа\n" " -m, --mmap занемарено, за повратну компатибилност\n" " -P, --nofollow, -H немој пратити симболичке везе када провераваш\n" " постојање датотеке\n" " -0, --null одвојени записи са ничим на излазу\n" " -S, --statistics не тражи записе, одштампај статистику о свакој\n" " коришћеној бази података\n" " -q, --quiet извести без порука о грешкама при читању базе\n" " података\n" " -r, --regexp РЕГИЗ тражи основни регуларни израз РЕГИЗ уместо " "шаблона\n" " --regex шаблони су проширени регуларни израз\n" " -s, --stdio занемарено, због повратне компатибилности\n" " -V, --version одштампај информације о верзији\n" " -w, --wholename упореди цео назив путање (подразумевано)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "аргументи који нису опције нису дозвољени са --%s" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "шаблон за претрагу није наведен" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "неисправан регуларни израз „%s“: %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "не могу да уклоним привилегије" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "не могу да прочитам две базе података са стандардног улаза" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "не могу да извршим функцију stat () над „%s“" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "У/И грешка при читању са стандардног излаза" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "дужина %zu назива датотеке је превелика" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "не могу да отворим привремену датотеку за „%s“" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "подешавање је превелико" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "не могу да пронађем групу „%s“" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "не могу да променим групу датотеке „%s“ у „%s“" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "не могу да променим дозволе датотеке „%s“" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "„%s“ је закључана (вероватно ранијом updatedb радњом)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "не могу да закључам „%s“" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "не могу да променим директоријум на „%s“" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "У/И грешка при писању у „%s“" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "грешка при замени „%s“" mlocate-0.26/po/Rules-quot0000644000175000017500000000337611435544163012446 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 $$ll -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 mlocate-0.26/po/boldquot.sed0000644000175000017500000000033111402714565012754 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 mlocate-0.26/po/es.gmo0000664000175000017500000001666512027217356011564 000000000000003GLh4iF# "71L~ 0>Uo*+  # 0 @ a ) '   % * < &N .u    ) ! 85 $n   '  ".%T$p""!*HLm>$ %-#;)Ce/(6D9-~'74  A"b3/= W&x?,V&-}%((*1S'1()" L"m$ 1!*"$0+)('2  &3.  ,- /%# %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-03-09 00:29+0000 Last-Translator: Gladys Guerrero Language-Team: Spanish Language: es MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %'ju byte en los nombres de archivo %'ju bytes en los nombres de archivo %'ju byte utilizado para almacenar la base de datos %'ju bytes utilizados para almacenar la base de datos %'ju directorio %'ju directorios %'ju archivo %'ju archivos Reportar errores a %s. --%s especificado dos veces--%s rrCopyright (C) 2007 Red Hat, Inc. Todos los derechos reservados. Este programa es provisto SIN GARANTIA, hasta lo que sea permitido por la ley.Base de datos %s: I/O error al leer `%s'error de E/S al buscar en `%s'error de E/S al escribir sobre `%s'error de E/S al intentar escribir sobre la entrada patrón Uso: actualizar base de datos [OPCION]... Actualizar una base de datos mlocate. -f, --agregar-prunefs FS omitir tambien FS -n, --agregar-nombresprunen NOMBRES omitir tambien NOMBRES -e, --agregar-rutasprune RUTAS omitir tambien RUTAS -U, --base de datos-root RUTA el subarbol donde guardar la base de datos (default "/") -h, --ayuda imprimir esta ayuda -o, --salida ARCHIVO base de datos a actualizar (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' no parece ser una base de datos de mlocate`%s' posee una version desconocida de %u`%s' posee un señalador de visibilidad desconocido %u`%s' está bloqueado (probablemente a causa de un updatedb anterior)se espera `=' luego del nombre de la variableno se pudo cambiar el directorio a `%s'no se pudo cambiar el grupo del archivo `%s' hacia `%s'no se pudieron cambiar los permisos del archivo `%s'no se pudo abandonar privilegiosno se pudo encontrar el grupo `%s'no se puede acceder al directorio actual de trabajono se pudo bloquear `%s'no se puede abrir `%s'no se puede abrir un archivo temporal para `%s'no se pudieron leer dos bases de datos con la entrada patrónno se pudo realizar stat () `%s'la configuración es demasiado extensaerror al reemplazar `%s'el tamaño del nombre del archivo %zu en `%s es demasiado largoel nombre del archivo %zu es demasiado largoerror del sistema de archivos: nombre de archivo con longitud cero en el directorio %snombre de directorio vacío inválido en `%s'expresión regular inválida `%s': %svalor `%s' inválido para --%svalor invalido `%s' de PRUNE_BIND_MOUNTSfalta cerrar `"'ningún patrón de busqueda especificadono son permitidos argumentos sin opción con --%sfin de archivo inespereado al leer `%s'datos no esperados luego del valor de la variableoperador inesperado en línea de comandovariable desconocida `%s'luego de `=' se espera un valor en cuotasla variable `%s' ya fue definidase espera el nombre de la variableatención: número de linea excedidomlocate-0.26/po/POTFILES.in0000664000175000017500000000015410762432334012207 00000000000000# List of source files which contain translatable strings. src/conf.c src/lib.c src/locate.c src/updatedb.c mlocate-0.26/po/bg.po0000664000175000017500000003656012027217356011375 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # mitr , 2011. # Valentin Laskov , 2011, 2012. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-03-13 15:32+0000\n" "Last-Translator: Valentin Laskov \n" "Language-Team: Bulgarian \n" "Language: bg\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "внимание: Препълване на броя редове" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "липсва затваряща `\"'" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "не може да бъде отворен `%s'" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "непозната променлива `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "очаква се име на променлива" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "променливата `%s' вече е дефинирана" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "очаква се знак `=' след името на променливата" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "стойност в кавички се очаква след `='" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "невалидна стойност `%s' за PRUNE_BIND_MOUNTS" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "неочаквани данни след стойността на променлива" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "Вх/Изх грешка при четене на `%s'" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "Употреба: updatedb [OPTION]...\n" "Обновява базата данни на mlocate.\n" "\n" " -f, --add-prunefs FS пропусни и FS\n" " -n, --add-prunenames NAMES пропусни и NAMES\n" " -e, --add-prunepaths PATHS пропусни и PATHS\n" " -U, --database-root PATH поддървото за запис в базата данни (по " "подразбиране \"/\")\n" " -h, --help отпечатва този помощен текст\n" " -o, --output FILE база данни за обновяване (по подразбиране\n" " `%s')\n" " --prune-bind-mounts FLAG пропуска bind mounts (по подразбиране \"no" "\")\n" " --prunefs FS пропусни файловата система FS от БД\n" " --prunenames NAMES пропусни директориите с имена NAMES от БД\n" " --prunepaths PATHS пропусни пътищата от базата данни\n" " -l, --require-visibility FLAG провери видимостта преди да докладваш " "файлове\n" " (по подразлиране \"yes\")\n" " -v, --verbose отпечатвай пътищата на файловете така, " "както са намерени\n" " -V, --version отпечатай информация за версията\n" "\n" "Подразбиращите се настройки са в\n" "`%s'.\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Съобщавайте за грешки на %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "не може да се определи текущата работна директория" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s·ще пренебрегне предишен аргумент на командния ред" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "невалидна стойност·`%s'·за·--%s" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s е зададен два пъти" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Авторско право·(C)·2007·Red·Hat,·Inc.·Всички права запазени.\n" "Софтуерът се разпространява под лиценз GPL·v.2.\n" "\n" "Тази програма е предоставена БЕЗ ГАРАНЦИИ." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "неочакван операнд на командния ред" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "`%s' не изглежда да е база данни на mlocate" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "`%s' е с неизвестна версия %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "`%s' е с неизвестен флаг за видимост %u" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "неочакван край на файл при четене на `%s'" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "Вх/Изх грешка при търсене в `%s'" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "База данни %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju·директория\n" msgstr[1] "\t%'ju·директории\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju файл\n" msgstr[1] "\t%'ju файла\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju байт в имена на файлове\n" msgstr[1] "\t%'ju байта в имена на файлове\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\t%'ju байт, използван за базата данни\n" msgstr[1] "\t%'ju байта, използвани за базата данни\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "невалидно празно име на директория в `%s'" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "прекалено голяма дължина %zu на името на файл в `%s'" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "Употреба: locate [OPTION]... [PATTERN]...\n" "Търси за съвпадащи записи в mlocate база данни.\n" "\n" " -b, --basename съвпадение на основното име само от пътя на файла\n" " -c, --count само отпечатва броя намерени записи\n" " -d, --database DBPATH ползва DBPATH вместо подразбиращата се база данни " "(която е\n" " %s)\n" " -e, --existing отпечатва записи само на съществуващи в момента " "файлове\n" " -L, --follow следвай символните връзки при проверка за " "съществуването\n" " на файловете (по подразбиране)\n" " -h, --help отпечатва този помощен текст\n" " -i, --ignore-case игнорирай разликата малки/ГОЛЕМИ букви при " "съвпаденията\n" " -l, --limit, -n LIMIT ограничи изхода (или броенето) до LIMIT записа\n" " -m, --mmap игнорира се, за обратна съвместимост\n" " -P, --nofollow, -H не следвай символните връзки при проверка за " "съществуването\n" " на файловете\n" " -0, --null отделяй записите с NUL на изхода\n" " -S, --statistics не търси записи, отпечатай статистика за всяка " "използвана\n" " база данни\n" " -q, --quiet не съобщавай грешките при четенето на базите данни\n" " -r, --regexp REGEXP търсене на основен regexp REGEXP вместо шаблон\n" " --regex шаблоните са разширени regexp\n" " -s, --stdio игнорира се, за обратна съвместимост\n" " -V, --version отпечатва информация за версията\n" " -w, --wholename съвпадение на пълния път и име (по подразбиране)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "аргументи не-опции не са позволени след·--%s" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "не е зададен шаблон за търсене" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "невалиден регулярен израз `%s': %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "неуспех при опит за работа с по-ниски привилегии" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "не е възможно да бъдат прочетени две бази данни от стандартния вход" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "не може да се изпълни stat () за `%s'" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "Вх/Изх грешка при запис на стандартния изход" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "дължина %zu на името на файл е прекалено голяма" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "грешка във файловата система: файл с нулева дължина в директория %s" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "не може да бъде отворен временен файл за `%s'" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "конфигурацията е прекалено голяма" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "не може да бъде намерена група `%s'" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "не може да бъде променена групата на файл `%s' на `%s'" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "не могат да бъдат променени позволенията на файл `%s'" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "`%s' е заключен (вероятно от друг updatedb процес)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "не мога да заключа `%s'" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "не мога да променя директорията на `%s'" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "Вх/Изх грешка при запис в `%s'" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "грешка при заместване на `%s'" mlocate-0.26/po/de.po0000664000175000017500000003136612027217356011374 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # mitr , 2011. # Roman Spirgi , 2012. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-02-21 07:45+0000\n" "Last-Translator: Roman Spirgi \n" "Language-Team: German \n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "Warnung: Zeilen-Nummern-Überlauf" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "fehlendes schliessendes `\"'" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "kann `%s' nicht öffnen" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "unbekannte Variable `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "Variablen-Namen erwartet" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "Variable `%s' ist schon definiert" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "`=' erwartet nach dem Variablen-Namen" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "Wert in Anführungszeichen nach `=' erwartet" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "ungültiger Wert `%s' von PRUNE_BIND_MOUNTS" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "Unerwartete Daten nach dem Variablen-Wert" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "E/A-Lese-Fehler `%s'" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "Benutzung: updatedb [OPTION]...\n" "Aktualisiert eine mlocate-Datenbank.\n" "\n" " -f, --add-prunefs FS lässt Dateisystem FS aus\n" " -n, --add-prunenames NAMEN lässt NAMEN aus\n" " -e, --add-prunepaths PFADE lässt PfADE aus\n" " -U, --database-root PATH das Unterverzeichnis, um die Datenbank zu " "speichern (Standard \"/\")\n" " -h, --help zeigt diese Hilfe\n" " -o, --output FILE Datenbank FILE wird aktualisiert (Standard\n" " `%s')\n" " --prune-bind-mounts FLAG lässt 'bind mounts' aus (Standard \"no\")\n" " --prunefs FS lässt Dateisystem FS beim Aktualisieren " "aus\n" " --prunepaths PFADE lässt PFADE beim Aktualisieren aus\n" " -l, --require-visibility FLAG überprüft Sichtbarkeit vor Aufnahme in die " "Datenbank\n" " (Standard \"yes\")\n" " -v, --verbose zeigt Pfade von gefundenen Dateien\n" " -V, --version zeigt Versionsinformationen an\n" "\n" "Die Konfigurationseinstellungen werden gelesen aus\n" "`%s'.\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Fehlerberichte an %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "kann aktuelles Arbeitsverzeichnis nicht bestimmen" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s wird frühere Befehlszeilen-Argumente überschreiben" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "ungültiger Wert `%s' von --%s" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s zweimal angegeben" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Copyright (C) 2007 Red Hat, Inc. Alle Rechte vorbehalten.\n" "Diese Software ist unter GPL v.2. veröffentlicht\n" "\n" "Dieses Programm wird unter Ausschluss vom Gewährleistung und Garantie " "bereitgestellt, soweit dies durch Gesetze ermöglicht wird." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "unerwarteter Operator auf der Befehlszeile" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "`%s' scheint keine mlocate-Datenbank zu sein" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "`%s' hat unbekannte Version %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "`%s' hat eine unbekannte Sichtbarkeitsmarkierung %u" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "unerwartetes EOF gelesen `%s'" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "E/A-Fehler bei Suche in `%s'" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "Datenbank %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju-Verzeichnis\n" msgstr[1] "\t%'ju-Verzeichnisse\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju-Datei\n" msgstr[1] "\t%'ju-Dateien\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju-Byte in Dateinamen\n" msgstr[1] "\t%'ju-Bytes in Dateinamen\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\t%'ju-Byte benutzt zum Speichern der Datenbank\n" msgstr[1] "\t%'ju-Bytes benutzt zum Speichern der Datenbank\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "ungültiger leerer Verzeichnisname in `%s'" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "Dateinamen-Länge %zu in `%s' ist zu lang" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "Benutzung: locate [OPTION]... [PATTERN]...\n" "Sucht nach Einträgen in einer mlocate-Datenbank.\n" "\n" " -b, --basename sucht nur im Dateinamen nach dem Muster\n" " -c, --count zeigt nur die Anzahl der gefundenen Einträge an\n" " -d, --database DBPFAD benutzt DBPFAD anstatt der Standard-Datenbank (die " "da wäre\n" " %s)\n" " -e, --existing zeigt nur Einträge von jetzt existierenden Dateien\n" " -L, --follow folgt symbolischen Links, wenn Dateiexistenz " "überprüft wird\n" " (Standard)\n" " -h, --help zeige diese Hilfe\n" " -i, --ignore-case ignoriert Gross-, Kleinschreibung bei der Suche " "nach Einträgen\n" " -l, --limit, -n LIMIT zeigt nur LIMIT Einträge an\n" " -m, --mmap ignoriert, nur für Abwärtskompatibilität\n" " -P, --nofollow, -H folgt nicht den symbolischen Links, wenn " "Dateiexistenz überprüft wird\n" " -0, --null trennt Einträge mit ASCII NUL in der Ausgabe\n" " -S, --statistics sucht nicht nach Einträgen, zeigt Statistiken über " "jede\n" " benutzte Datenbank an\n" " -q, --quiet zeigt keine Fehlermeldungen beim Lesen der " "Datenbank an\n" " -r, --regexp REGEXP sucht nach dem regulären Ausdruck anstatt der " "Zeichenfolge\n" " --regex die Zeichenfolge ist ein erweiterter regulärer " "Ausdruck\n" " -s, --stdio ignoriert, nur für Abwärtskompatibilität\n" " -V, --version zeigt Versionsinformationen\n" " -w, --wholename sucht im ganzen Pfad-Namen (Standard)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "Argumente müssen bei --%s Optionen sein" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "Kein Suchmuster angegeben" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "ungültiger regulärer Ausdruck `%s': %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "kann Zugriffsrechte nicht abgeben" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "kann nicht zwei Datenbanken von der Standard-Eingabe lesen" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "kann stat () `%s' nicht durchführen" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "E/A-Fehler während des Schreibens auf Standard-Ausgabe" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "Dateinamen-Länge %zu ist zu lange" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "Dateisystem-Fehler: Dateinamen mit Nulllänge im Verzeichnis %s" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "kann temporäre Datei für `%s' nicht öffnen" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "Konfiguration ist zu lang" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "kann Gruppe `%s' nicht finden" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "kann Dateigruppe von `%s' zu `%s' nicht ändern" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "kann Berechtigungen von Datei `%s' nicht ändern" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "`%s' ist blockiert (wahrscheinlich durch ein früheres updatedb)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "kann `%s' nicht blockieren" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "kann Verzeichnis nicht auf `%s' ändern" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "E/A-Fehler während des Schreibens auf `%s'" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "Fehler beim Ersetzen von `%s'" mlocate-0.26/po/gu.po0000664000175000017500000002306612027217356011415 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # sweta , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-02-14 08:16+0000\n" "Last-Translator: Miloslav Trmač \n" "Language-Team: Gujarati \n" "Language: gu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "`%s' ખોલી શકાતુ નથી" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "અજ્ઞાત ચલ `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "ઇચ્છિત ચલ નામ" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "ચલ `%s' પહેલેથી વ્યાખ્યાયિત હતો" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "PRUNE_BIND_MOUNTS ની અમાન્ય કિંમત `%s'" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "ચલ કિંમત પછી અનિચ્છિત માહિતી" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "`%s' ને વાંચતી વખતે I/O ભૂલ" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "%s માં ભૂલોનો અહેવાલ કરો.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "હાલની કામ કરતી ડિરેક્ટરીને મેળવી શકતા નથી" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "`%s' પાસે અજ્ઞાત આવૃત્તિ %u છે" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "ડેટાબેઝ %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju ડિરેક્ટરી\n" msgstr[1] "\t%'ju ડિરેક્ટરીઓ\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju ફાઇલ\n" msgstr[1] "\t%'ju ફાઇલો\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\tફાઇલ નામમાં %'ju બાઇટ\n" msgstr[1] "\tફાઇલ નામોમાં %'ju બાઇટ\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "" msgstr[1] "" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "`%s' માં અમાન્ય ખાલી ડિરેક્ટરી નામ" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "" #: src/locate.c:617 #, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "અમાન્ય regexp `%s': %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "`%s' માટે કામચલાઉ ફાઇલ ખોલી શકાતી નથી" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "રૂપરેખાંકન ઘણુ લાંબુ છે" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "જૂથ `%s' ને શોધી શકાતુ નથી" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "ફાઇલ `%s' ની પરવાનગીઓને બદલી શકાતી નથી" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "`%s' ને તાળુ મારી શકાતુ નથી" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "`%s' માં ડિરેક્ટરીને બદલી શકાતી નથી" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "`%s' બદલતી વખતે ભૂલ" mlocate-0.26/po/en@quot.header0000644000175000017500000000226311402714565013221 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. # mlocate-0.26/po/bs.gmo0000664000175000017500000001724212027217356011551 000000000000000C(#)Mb1w [i*+  # 0: k ) '   %/ U g &y .    ) !> 8` $   '  "- .P  $ "  " !>UsxId2}Y!l$".n.t!0@07-h7.",>k1<0F`3}(?/'J$r>2=B5% 6)4^#~( *&$#0"%) ,.- ! '+ / %'ju directory %'ju directories Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-06-19 02:45+0000 Last-Translator: Edmon Begoli Language-Team: Bosnian (http://www.transifex.com/projects/p/fedora/language/bs/) Language: bs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); »%'ju direktorij »%'ju directories »%'ju directories Prijavite greške na %s. --%s definisano dva puta--%s bi premostilo raniji argument komandne linijeAutorska prava 2007 Red Hat, Inc. Sva prava zadržana. Ovaj softver se distribuira pod GJL verzije 2. Ovaj program dolazi BEZ GARANCIJE, u okviru dozvoljenim zakonom.Baza podataka %s: U/I greška pri čitanju „%s“U/I greška pri traženju u „%s“U/I greška pri pisanju u „%s“U/I greška pri čitanju sa standardnog izlazaUpotreba: updatedb [OPCIJE]... Ažurira mlocate bazu podataka. -f, --add-prunefs SD izostavi sistem datoteka -n, --add-prunenames NAZIVI izostavi NAZIVE -e, --add-prunepaths PUTANJE izostavi PUTANJE -U, --database-root PUTANJA podstablo za čuvanje baze podataka (podrazumijevano „/“) -h, --help odštampaj ovu pomoć -o, --output DATOTEKA baza podataka za ažuriranje (podrazumijevano „%s“) --prune-bind-mounts OZNAKA izostavi veznike montiranja (podrazumijevano „ne“) --prunefs SD sistemi datoteka koji se izostavljaju iz baze podataka --prunenames NAZIVI nazivi direktorija koji se izostavljaju iz baze podataka --prunepaths PUTANJE putanje koje se izostavljaju iz baze podataka -l, --require-visibility OZNAKA provjeri vidljivost pre izvještavanju o datotekama (podrazumevano „da“) -v, --verbose štampa putanje datoteka kako se pronalaze -V, --version štampa informacije o verziji Podrazumjevane vrijednosti podešavanja pročitane iz „%s“. „%s“ izgleda da nije mlocate baza podataka„%s“ ima nepoznatu verziju %u„%s“ ima nepoznati pokazatelj vidljivosti %u„%s“ je zaključana (vjerovatno ranijom updatedb operacijom)„=“ se očekuje poslije naziva promijenljivene moze se promijeniti direktorij na „%s“ne moze da promijeni grupu datoteke „%s“ u „%s“ne moze da promijeni dozvole datoteke „%s“ne moze da ukloni privilegijene moze da pronađe grupu „%s“ne mogu da dobijem trenutni radni direktorijne mogu da zaključam „%s“ne mogu da otvorim „%s“ne moze da otvori privremenu datoteku za „%s“ne moze da pročita dvije baze podataka sa standardnog ulazane moze da izvrši funkciju stat () nad „%s“podešavanje je prevelikogreška pri zamjeni „%s“dužina %zu naziva datoteke u „%s“ je prevelikadužina %zu naziva datoteke je prevelikagreska u sistemskoj datoteci: prazna datoteka u direktoriju %s neispravan naziv praznog direktorija u „%s“neispravan regularni izraz „%s“: %sneispravna vrednost „%s“ za --%sneispravna vrijednost „%s“ PRUNE_BIND_MOUNTS promijenljivenedostaje završno „"“uzor za pretragu nije navedenargumenti koji nisu opcije nisu dozvoljeni sa --%sneočekivani završetak datoteke (EOF ) pri čitanju „%s“neočekivan podatak poslije vrijednosti promijenljiveneočekivani operator komandne linijenepoznata promijenljiva „%s“vrijednost u navodnicima je očekivana poslije „=“promijenljiva „%s“ je već definiranaočekuje se naziv promijenljiveupozorenje: prekoračen broj linijamlocate-0.26/po/zh_CN.gmo0000664000175000017500000001542112027217357012144 000000000000003GLh4iF# "71L~ 0>Uo*+  # 0 @ a ) '   % * < &N .u    ) ! 85 $n   '  ".%T$p""!*H"; LZr&Q`&v &##8'`~0!!3E!W*y )8 Uv**%2X$w 1!*"$0+)('2  &3.  ,- /%# %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-09-19 02:59+0000 Last-Translator: Christopher Meng Language-Team: Chinese (China) Language: zh_CN MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; %'ju 文件名中的字节数 %'ju 字节用于存储数据库 %'ju 文件夹 %'ju 文件 将 bug 报告给 %s. --%s 指定两次--%s 将覆盖先前的命令行参数Copyright (C) 2007 Red Hat, Inc. 保留所有权利。 本软件在 GPL v.2 下发布。 本程序不提供任何担保,在法律允许的范围内予以排除。数据库 %s: I/O 读取错误 `%s'在 `%s' 中搜索时发生 I/O 错误写入 '%s' 时发生 I/O 错误写入标准输出时发生 I/O 错误用法: updatedb [OPTION]... 更新 mlocate 数据库。 -f, --add-prunefs FS 也忽略 FS -n, --add-prunenames NAMES 也忽略 NAMES -e, --add-prunepaths PATHS 也忽略 PATHS -U, --database-root PATH 向数据库中存储的子树 (默认 "/") -h, --help 显示这份帮助 -o, --output FILE 要升级的数据库 (默认 `%s') --prune-bind-mounts FLAG 忽略绑定装载 (默认 "no") --prunefs FS 从数据库中忽略的文件系统 --prunenames NAMES 从数据库中忽略的目录名 --prunepaths PATHS 从数据库中忽略的路径 -l, --require-visibility FLAG 在报告文件之前检查可见性 (默认 "yes") -v, --verbose 当文件被找到时显示其路径 -V, --version 显示版本信息 配置默认为从文件`%s' 读取的值。 . `%s' 不是一个 mlocate 数据库`%s' 具有未知的版本 %u`%s' 有未知的可视性标志 %u`%s' 被锁定 (可能是由于先前的数据库更新)变量名后需要一个 `=' 无法改变目录 `%s'无法将文件所在的组 `%s' 更改为 `%s'无法改变文件 `%s' 的权限无法释放特权无法找到组 `%s'无法得到当前的工作目录无法锁定 `%s'无法打开 `%s'无法为 `%s' 打开临时文件无法从标准输入读取两个数据库无法执行 stat () `%s'配置过大替换错误 `%s'文件名的长度 %zu 在`%s' 中 过大文件名 %zu 过长文件系统错误:在目录 %s 下文件名长度为零`%s' 中有无效的空目录名无效的 regexp `%s': %s%s 有无效的值 `%s' PRUNE_BIND_MOUNTS 后有无效的值 `%s' 缺少匹配的 '"'没有指定任何搜索模式非选项参数不允许 --%s 一起使用读取 `%s' 时, 出现意外的 EOF 变量值后有意外的数据命令行包含意外的操作对象未知的变量 `%s'`=' 后需要引号内的值变量 `%s' 已被定义需要一个变量名警告:行数溢出mlocate-0.26/po/lv.po0000664000175000017500000003151612027217356011422 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # Rūdolfs Mazurs , 2012. # Tranzistors , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-04-24 15:16+0000\n" "Last-Translator: Rūdolfs Mazurs \n" "Language-Team: Latvian (http://www.transifex.com/projects/p/fedora/language/" "lv/)\n" "Language: lv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " "2);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "brīdinājums: rindu skaita pārpilde" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "trūkst aizverošās `\"'" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "nevar atvērt `%s'" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "nezināms mainīgais `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "tika gaidīts mainīgā nosaukums" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "mainīgais `%s' jau tika definēts" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "tika gaidīts `=' pēc mainīgā nosaukuma" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "pēc `=' gaidīta vērtība pēdiņās" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "nederīga PRUNE_BIND_MOUNTS vērtība `%s'" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "negaidīti dati pēc mainīgā nosaukuma" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "I/O kļūda, nolasot `%s'" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "Lietojums: updatedb [OPTION]...\n" "Atjaunināt mlocate datubāzi.\n" "\n" " -f, --add-prunefs FS izlaist arī FS\n" " -n, --add-prunenames NAMES izlaist arī NAMES\n" " -e, --add-prunepaths PATHS izlaist arī PATHS\n" " -U, --database-root PATH apakškoks, kurā glabāt datubāzi (default \"/" "\")\n" " -h, --help drukāt šo palīdzību\n" " -o, --output FILE datubāze, kuru atjaunināt (noklusētā\n" " `%s')\n" " --prune-bind-mounts FLAG izlaist sasaistītos montējumus (noklusētais " "\"no\")\n" " --prunefs FS failu sistēmas, kuras izlaist no datubāzes\n" " --prunenames NAMES mapju nosaukumi, ko izlaist no datubāzes\n" " --prunepaths PATHS ceļi, ko izlaist no datubāzes\n" " -l, --require-visibility FLAG pārbauda redzamību, pirms ziņot failus\n" " (noklusētais \"yes\")\n" " -v, --verbose drukāt atrasto failu ceļus\n" " -V, --version drukāt versijas informāciju\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Ziņot kļūdas uz %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "nevarēja saņemt pašreizējo darba mapi" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s pārrakstīs iepriekšējo komandrindas argumentu." #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "nederīga vērtība `%s' parametram --%s" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s norādīts divreiz" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Autortiesības (C) 2007 Red Hat, Inc. Visas tiesības paturētas.\n" "Šī programmatūra tiek izplatīta ar licenci GPL v.2.\n" "\n" "Šī programma nāk BEZ GARANTIJAS tādā mērā, kā to pieļauj likums." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "negaidīts operands komandrindā" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "`%s' neizskatās pēc mlocate datubāzes" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "`%s' ir nezināma versija %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "`%s' ir nezināms slēdzis %u" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "negaidīts EOF, lasot `%s'" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "I/O kļūda, meklējot iekš `%s'" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "Datubāze %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju mape\n" msgstr[1] "\t%'ju mapes\n" msgstr[2] "\t%'ju mapes\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju fails\n" msgstr[1] "\t%'ju faili\n" msgstr[2] "\t%'ju failu\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju baits failu nosaukumos\n" msgstr[1] "\t%'ju baiti failu nosaukumos\n" msgstr[2] "\t%'ju baitu failu nosaukumos\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\t%'ju baits izmantots, lai glabātu datubāzi\n" msgstr[1] "\t%'ju baiti izmantoti, lai glabātu datubāzi\n" msgstr[2] "\t%'ju baitu izmantotu, lai glabātu datubāzi\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "invalid empty directory name in `%s'" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "faila nosaukuma garums %zu iekš `%s' ir pārāk liels" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "Lietojums: locate [OPTION]... [PATTERN]...\n" "Meklēt ierakstus mlocate datubāzē.\n" "\n" " -b, --basename tikai atbilstības ar ceļu nosaukuma bāzes " "nosaukumu\n" " -c, --count drukāt tikai atrasto ierakstu skaitu\n" " -d, --database DBPATH lietot DBPATH, nevis noklusēto datubāzi (kas ir\n" " %s)\n" " -e, --existing tikai drukāt ierakstus, pašlaik eksistējošiem " "failiem\n" " -L, --follow sekot sekojošām simboliskām saitēm, kad pārbauda " "faila\n" " eksistenci (noklusēts)\n" " -h, --help drukāt šo palīdzību\n" " -i, --ignore-case ignorēt burtu reģistru atšķirību\n" " -l, --limit, -n LIMIT ierobežot izvadi (vai skaitu) līdz LIMIT " "ierakstiem\n" " -m, --mmap ignorēts, savietojamībai\n" " -P, --nofollow, -H nesekot sekojošām simboliskām saitēm, kad pārbauda\n" " faila eksistenci\n" " -0, --null izvadē atdala ierakstus ar NUL\n" " -S, --statistics nemeklēt ierakstus, drukāt statistiku par katru\n" " izmantoto datubāzi\n" " -q, --quiet neziņot par kļūdām, lasot datubāzes\n" " -r, --regexp REGEXP meklēt bāzes regulāro izteiksmi REGEXP, nevis\n" " izteiksmes\n" " --regex izteiksmes ir paplašinātas regulārās izteiksmes\n" " -s, --stdio ignorēts savietojamībai\n" " -V, --version drukāt versijas informāciju\n" " -w, --wholename atbilst viss nosaukums (noklusētais)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "bez opciju parametri nav atļauti ar --%s" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "nav norādīta izteiksme, ko meklēt" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "nederīga regulārā izteiksme `%s': %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "nevar nomest privilēģijas" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "nevar nolasīt divas datu bāzes no standarta ievades" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "nevar stat () `%s'" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "I/O kļūda, mēģinot rakstīt standarta izvadē" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "faila nosaukuma garums %zu ir pārāk liels" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "failsistēmas kļūda: faila nosaukums ar garumu nulle mapē %s" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "nevar atvērt `%s' pagaidu failu" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "konfigurācija ir pārāk liela" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "nevar atrast grupu `%s'" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "nevar mainīt grupu failam `%s' uz `%s'" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "nevar mainīt tiesības failam `%s'" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "`%s' ir slēgts (iespējams ar agrāku updatedb)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "nevar aizslēgt `%s'" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "nevar mainīt mapi uz `%s'" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "I/O kļūda, rakstot uz `%s'" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "kļūda, aizvietojot `%s'" mlocate-0.26/po/zh_CN.po0000664000175000017500000002744612027217356012011 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # Christopher Meng , 2012. # , 2012. # mitr , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-09-19 02:59+0000\n" "Last-Translator: Christopher Meng \n" "Language-Team: Chinese (China) \n" "Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "警告:行数溢出" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "缺少匹配的 '\"'" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "无法打开 `%s'" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "未知的变量 `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "需要一个变量名" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "变量 `%s' 已被定义" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "变量名后需要一个 `=' " #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "`=' 后需要引号内的值" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "PRUNE_BIND_MOUNTS 后有无效的值 `%s' " #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "变量值后有意外的数据" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "I/O 读取错误 `%s'" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "用法: updatedb [OPTION]...\n" "更新 mlocate 数据库。\n" "\n" " -f, --add-prunefs FS 也忽略 FS\n" " -n, --add-prunenames NAMES 也忽略 NAMES\n" " -e, --add-prunepaths PATHS 也忽略 PATHS\n" " -U, --database-root PATH 向数据库中存储的子树 (默认 \"/\")\n" " -h, --help 显示这份帮助\n" " -o, --output FILE 要升级的数据库 (默认\n" " `%s')\n" " --prune-bind-mounts FLAG 忽略绑定装载 (默认 \"no\")\n" " --prunefs FS 从数据库中忽略的文件系统\n" " --prunenames NAMES 从数据库中忽略的目录名\n" " --prunepaths PATHS 从数据库中忽略的路径\n" " -l, --require-visibility FLAG 在报告文件之前检查可见性\n" " (默认 \"yes\")\n" " -v, --verbose 当文件被找到时显示其路径\n" " -V, --version 显示版本信息\n" "配置默认为从文件`%s' 读取的值。\n" ".\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "将 bug 报告给 %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "无法得到当前的工作目录" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s 将覆盖先前的命令行参数" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "%s 有无效的值 `%s' " #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s 指定两次" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Copyright (C) 2007 Red Hat, Inc. 保留所有权利。\n" "本软件在 GPL v.2 下发布。\n" "\n" "本程序不提供任何担保,在法律允许的范围内予以排除。" #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "命令行包含意外的操作对象" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "`%s' 不是一个 mlocate 数据库" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "`%s' 具有未知的版本 %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "`%s' 有未知的可视性标志 %u" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "读取 `%s' 时, 出现意外的 EOF " #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "在 `%s' 中搜索时发生 I/O 错误" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "数据库 %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju 文件夹\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju 文件\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju 文件名中的字节数\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\t%'ju 字节用于存储数据库\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "`%s' 中有无效的空目录名" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "文件名的长度 %zu 在`%s' 中 过大" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "用法: locate [OPTION]... [PATTERN]...\n" "在 mlocate 数据库中搜索条目.\n" "\n" " -b, --basename 匹配唯一的路径名称的基本文件名\n" " -c, --count 只显示找到条目的号码\n" " -d, --database DBPATH 用 DBPATH 替代默认的数据库(%s)\n" " -e, --existing 只显示当前存在的文件条目\n" " -L, --follow 当文件存在时跟随蔓延的符号链接 (默认)\n" " -h, --help 显示本帮助\n" " -i, --ignore-case 匹配模式时忽略大小写区别\n" " -l, --limit, -n LIMIT 限制为 LIMIT项目的输出 (或 计数) \n" " -m, --mmap 忽略向后兼容性\n" " -P, --nofollow, -H 当检查文件时不跟随蔓延的符号\n" "链接\n" " -0, --null 输出时以 NUL 分隔项目\n" " -S, --statistics 不搜索项目,显示有关每个已用数据库的统计信息\n" " -q, --quiet 不报告关于读取数据库的错误消息\n" " -r, --regexp REGEXP 搜索基本正则表达式 REGEXP 来代替模式\n" " --regex 模式是扩展正则表达式\n" " -s, --stdio 忽略向后兼容性\n" " -V, --version 显示版本信息\n" " -w, --wholename 匹配完整路径名 (默认)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "非选项参数不允许 --%s 一起使用" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "没有指定任何搜索模式" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "无效的 regexp `%s': %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "无法释放特权" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "无法从标准输入读取两个数据库" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "无法执行 stat () `%s'" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "写入标准输出时发生 I/O 错误" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "文件名 %zu 过长" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "文件系统错误:在目录 %s 下文件名长度为零" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "无法为 `%s' 打开临时文件" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "配置过大" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "无法找到组 `%s'" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "无法将文件所在的组 `%s' 更改为 `%s'" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "无法改变文件 `%s' 的权限" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "`%s' 被锁定 (可能是由于先前的数据库更新)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "无法锁定 `%s'" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "无法改变目录 `%s'" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "写入 '%s' 时发生 I/O 错误" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "替换错误 `%s'" mlocate-0.26/po/zh_TW.gmo0000664000175000017500000001570512027217357012203 000000000000003GLh4iF# "71L~ 0>Uo*+  # 0 @ a ) '   % * < &N .u    ) ! 85 $n   '  ".%T$p""!*H%%  F T b&fw("&& &08W%4# -@![}#* .=l=&$,)Vm32$'@"X{ 1!*"$0+)('2  &3.  ,- /%# %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-03-07 18:21+0000 Last-Translator: Cheng-Chia Tseng Language-Team: Chinese (Taiwan) Language: zh_TW MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; %'ju 檔案名稱中的位元組數 %'ju 位元組用於儲存資料庫 %'ju 目錄 %'ju 檔案 將程式錯誤報告給 %s。 --%s 被指定兩次--%s 將覆寫先前的命令列參數著作權 (C) 2007 Red Hat, Inc。保留所有權利。 本軟體在 GPL v.2 下發布。 本程式不提供任何擔保,在法律允許的範圍內予以排除。資料庫 %s: I/O 讀取錯誤「%s」在「%s」中搜尋時發生 I/O 錯誤寫入「%s」時發生 I/O 錯誤寫入標準輸出時發生 I/O 錯誤用法:updatedb [選項]… 更新 mlocate 資料庫。 -f, --add-prunefs FS 也忽略 FS -n, --add-prunenames NAMES 也忽略 NAMES -e, --add-prunepaths PATHS 也忽略 PATHS -U, --database-root PATH 向資料庫中儲存的子樹 (預設 "/") -h, --help 顯示這份說明 -o, --output FILE 要升級的資料庫 (預設 「%s」) --prune-bind-mounts FLAG 忽略繫結載入 (預設 "no") --prunefs FS 從資料庫中忽略的檔案系統 --prunenames NAMES 從資料庫中忽略的目錄名稱 --prunepaths PATHS 從資料庫中忽略的路徑 -l, --require-visibility FLAG 在報告檔案之前檢查可見性 (預設 "yes") -v, --verbose 當檔案被找到時顯示其路徑 -V, --version 顯示版本資訊 組態預設為從檔案「%s」讀取的值。 「%s」不是一個 mlocate 資料庫「%s」具有不明的版本 %u「%s」有不明的可視性旗標 %u「%s」已被鎖定 (可能是由於先前的 updatedb)變數名稱之後需要一個「=」無法變更目錄到「%s」無法將檔案所在群組「%s」變更為「%s」無法變更檔案「%s」的權限無法釋放特權無法找到群組「%s」無法得到目前的工作目錄無法鎖定「%s」無法開啟「%s」無法為「%s」開啟暫時檔案無法從標準輸入讀取兩個資料庫無法執行 stat()「%s」組態過大替換「%s」時發生錯誤檔案名稱的長度 %zu 在「%s」中過大檔案名稱 %zu 過長檔案系統錯誤:目錄 %s 中的檔案名稱長度為零「%s」中有無效的空目錄名稱無效的正規表示式「%s」: %s%s 有無效的值「%s」PRUNE_BIND_MOUNTS 之後的值「%s」無效缺少匹配的「"」沒有指定任何搜尋樣式沒有選項的參數不允許與 --%s 一起使用讀取「%s」時,出現未預期的檔案結束變數值之後有未預期的資料命令列包含未預期的作業物件不明的變數「%s」「=」之後需要引號內的值變數「%s」已被定義需要一個變數名稱警告:列數溢出mlocate-0.26/po/da.gmo0000664000175000017500000001607612027217356011535 000000000000003GLh4iF# "71L~ 0>Uo*+  # 0 @ a ) '   % * < &N .u    ) ! 85 $n   '  ".%T$p""!*H-Oa|3 !+.;1j!6 1,P(}&*,.W+$. Om)%0'7"_!*$   1!*"$0+)('2  &3.  ,- /%# %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-03-14 09:35+0000 Last-Translator: Kris Thomsen Language-Team: Danish Language: da MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %'ju byte i filnavne %'ju byte i filnavne %'ju byte brugt til at gemme database %'ju byte brugt til at gemme database %'ju mappe %'ju mapper %'ju fil %'ju filer Rapportér fejl til %s. --%s angivet to gange--%s vil overskrive tidligere kommandolinjeargumentOphavsret (C) 2007 Red Hat, Inc. Alle rettigheder forbeholdt. Denne software er udgivet under GPL v.2. Dette program leveres uden nogen form for GARANTI tilladt af loven.Database %s: I/O-fejl ved læsning af "%s"I/O-fejl ved søgning i "%s"I/O-fejl under skrivning til "%s"I/O-fejl under skrivning til standardoutputBrug: updatedb [TILVALG]... Opdatér en mlocate-database. -f, --add-prunefs FS udelader også FS -n, --add-prunenames NAMES udelader også NAVNE -e, --add-prunepaths PATHS udelader også STIER -U, --database-root PATH undertræet som skal gemmes i database (standard "/") -h, --help skriver denne hjælp -o, --output FILE database til opdatering (standard "%s") --prune-bind-mounts FLAG undlader bind-monteringer (standard "no") --prunefs FS filsystemer at udelade fra database --prunenames NAMES mappenavne at udelade fra database --prunepaths PATHS stier at udelade fra database -l, --require-visibility FLAG kontrollerer synlighed før rapportering af filer (standard "yes") -v, --verbose skriver stier over filer som de er fundet -V, --version skriver versionsinformation Konfigurationen falder tilbage på værdier læst fra "%s". "%s" ser ikke ud til at være en mlocate-database"%s" har ukendt version %u"%s" har ukendt synlighedsflag %u"%s" er låst (sandsynligvis af en tidligere updatedb)"=" forventet efter variabelnavnkan ikke ændre mappe til "%s"kan ikke ændre gruppe på fil "%s" til "%s"kan ikke ændre rettigheder på fil "%s"kan ikke slippe rettighederkan ikke finde gruppe "%s"kan ikke hente nuværende arbejdsmappekan ikke låse "%s"kan ikke åbne "%s"kan ikke åbne en midlertidig fil for "%s"kan ikke læse to databaser fra standard inputkan ikke stat () "%s"konfiguration er for storkunne ikke erstatte "%s"længden på filnavn %zu i "%s" er for storlængden på filnavn %zu er for storfilsystemsfejl: nul-længde filnavn i mappe %sugyldig tomt mappenavn i "%s"ugyldig regexp "%s": %sugyldig værdi "%s" af --%sugyldig værdi "%s" fra PRUNE_BIND_MOUNTSmangler lukkende '"'intet mønster til søg efter angivetikke-tilvalgsargumenter er ikke tilladt med --%sikke forventet EOF ved læsning af "%s"uventet data efter variabel værdiuventet operand på kommandolinjeukendt variabel "%s"værdi i citationstegn forventet efter "="variabel "%s" var allerede defineretvariabelnavn forventetadvarsel: Linjenummeroverløbmlocate-0.26/po/fa.po0000664000175000017500000003235412027217356011370 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # mitr , 2011. # Morteza Adi , 2012. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-03-06 19:05+0000\n" "Last-Translator: Morteza Adi \n" "Language-Team: Persian (http://www.transifex.com/projects/p/fedora/language/" "fa/)\n" "Language: fa\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "هشدار: شماره خط اضافی است" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "گم کردن بستن `\"'" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "نمی‌توان پرونده `%s' را باز کرد" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "متغیر ناشناس `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "انتظار نام متغیر می رفت" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "متغیر `%s' قبلاً تعریف شده است" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "بعد از نام متغیر `=' انتظار می رود" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "مقدار در نقل قول ها بعد از `=' انتظار می رود" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "مقدار نامعتبر `%s' PRUNE_BIND_MOUNTS" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "داده های غیر منتظره بعد از مقدار متغیر" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "خطای I/O هنگام خواندن `%s'" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "استفاده: updatedb [OPTION]...\n" "به هنگام سازی پایگاه داده.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "گزارش باگ ها %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "نمی تواند شاخه کاری کنونی را پیدا کند" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s بر آرگومان قبلی خط فرمان نوشته می شود" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "مقدار نامعتبر `%s' از --%s" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s دوبار مشخص شده است" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "کپی رایت (C) 2007 Red Hat, Inc. همه حقوق محفوظ است.\n" "این برنامه تحت جی پی ال ۲ منتشر می شود.\n" "\n" "این برنامه بدون هیچ ضمانتی تا انجایی که قانون اجازه می دهد ارائه می شود." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "عملگر غیر منتظره در خط فرمان" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "`%s' به نظر می رسد یک پایگاه داده ی mlocate باشد" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "`%s' نسخه ای ناشناس دارد %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "`%s' نماد ناشناس مخشخصی برای %u دارد " #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "پایان خواندن غیر منتظره `%s'" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "خطای I/O در یافتن `%s'" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "پایگاه‌داده %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju شاخه\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju فایل\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju فایل در نامهای فایل\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\t%'ju باید استفاده شده در ذخیره سازی پایگاه داده\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "نام شاخه ی خالی نامعتبر در `%s'" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "طول نام فایل %zu در `%s' بسیار طولانی است" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "استفاده: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "آرگومان های بی گزینه با --%s مجاز نمی باشد" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "هیچ الگویی برای جستجو مشخص نشده است" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "متغیرهای نامعتبر RegExp `%s': %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "نمی توان اجازه ها را برداشت" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "نمی تواند دو پایگاه داده از خروجی استاندارد بخواند" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "تعیین وضعیت () `%s' ممکن نیست" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "خطای I/O هنگام نوشتن بر خروجی استاندارد" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "طول نام فایل %zu بسیار طولانی است" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "خطا در فایل سیستمی: نام فایل به طول صفر در پوشه %s" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "نمی‌توان پروندهٔ موقتی برای فایل `%s' باز کرد" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "پیکره بندی خیلی بزرگ است." #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "گروه `%s' یافت نشد" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "نمی توان گروه فایل `%s' را به `%s' تغییر داد" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "نمی تواند مجوزه های فایل `%s' تغییر دهد" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "`%s' updatedbقفل است. (شاید با )" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "قفل کردن '%s' ممکن نبود" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "نمی تواند به شاخه ی `%s' تغییر دهد" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "خطای I/O در حین نوشتن در‌ `%s'" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "خطای جایگزینی `%s'" mlocate-0.26/po/fi.po0000664000175000017500000002240712027217356011376 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # Juhani Numminen , 2012. # Ville Skyttä , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-04-21 14:38+0000\n" "Last-Translator: Juhani Numminen \n" "Language-Team: Finnish (http://www.transifex.com/projects/p/fedora/language/" "fi/)\n" "Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "puuttuva sulkeva `\"'" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "tiedostoa \"%s\" ei voi avata" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "tuntematon muuttuja `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "odotettiin muuttujan nimeä" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "muuttuja `%s' oli jo määritelty" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "odotettiin merkkiä \"=\" muuttujan nimen jälkeen" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "virheellinen PRUNE_BIND_MOUNTS:n arvo `%s'" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "I/O-virhe luettaessa tiedostoa \"%s\"" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Ilmoita ohjelmistovioista osoitteeseen %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "työkansiota ei saada selville" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "virheellinen arvo `%s' --%s:lle" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s määritetty kahdesti" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "odottamaton operandi komentorivillä" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "`%s' ei vaikuta olevan mlocate-tietokanta" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "odottamaton loppumerkki luettaessa tiedostoa \"%s\"" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "I/O-virhe etsittäessä tiedostossa \"%s\"" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "Tietokanta %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju kansio\n" msgstr[1] "\t%'ju kansiota\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju tiedosto\n" msgstr[1] "\t%'ju tiedostoa\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju tavu tiedostonimissä\n" msgstr[1] "\t%'ju tavua tiedostonimissä\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\t%'ju tavu käytetty tietokannan säilyttämiseen\n" msgstr[1] "\t%'ju tavua käytetty tietokannan säilyttämiseen\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "" #: src/locate.c:617 #, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "etsittävää kaavaa ei määritetty" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "epäkelpo säännöllinen lauseke `%s': %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "ei voida pudottaa oikeuksia" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "stat() ei onnistu tiedostolle \"%s\"" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "I/O-virhe kirjoitettaessa standarditulosteeseen" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "tiedostonimen pituus %zu on liian suuri" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "ryhmää \"%s\" ei löydy" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "tiedoston \"%s\" oikeuksia ei voi muuttaa" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "`%s' on lukittu (luultavasti aiemman updatedb:n toimesta)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "tiedostoa \"%s\" ei voi lukita" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "kansioon \"%s\" ei voi siirtyä" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "I/O-virhe kirjoitettaessa tiedostoon \"%s\"" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "virhe korvattaessa `%s'" mlocate-0.26/po/cs.gmo0000664000175000017500000002526112027217356011552 000000000000004G\x4yF#2G1\ @Ne* +#0  =)^'%&*.Q)!8$Jo'".0$L"q"!$bZ5,F\@rhw!-z} %2%X%,t%9%%% &+"&(N&w&&-&&&* '44'i'}''4'-'H(,f(((((((%)8?).x)*)0)*)*%G*m*%* 2"+#%1,*)(3  ' 4/! -&. 0$ %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: locate [OPTION]... [PATTERN]... Search for entries in a mlocate database. -A, --all only print entries that match all patterns -b, --basename match only the base name of path names -c, --count only print number of found entries -d, --database DBPATH use DBPATH instead of default database (which is %s) -e, --existing only print entries for currently existing files -L, --follow follow trailing symbolic links when checking file existence (default) -h, --help print this help -i, --ignore-case ignore case distinctions when matching patterns -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries -m, --mmap ignored, for backward compatibility -P, --nofollow, -H don't follow trailing symbolic links when checking file existence -0, --null separate entries with NUL on output -S, --statistics don't search for entries, print statistics about each used database -q, --quiet report no error messages about reading databases -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns --regex patterns are extended regexps -s, --stdio ignored, for backward compatibility -V, --version print version information -w, --wholename match whole path name (default) Usage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-09-22 04:10+0200 Last-Translator: Miloslav Trmač Language-Team: Czech (http://www.transifex.com/projects/p/fedora/language/cs/) Language: cs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2; %'ju bajt v názvech souborů %'ju bajty v názvech souborů %'ju bajtů v názvech souborů %'ju bajt použit pro uložení databáze %'ju bajty použity pro uložení databáze %'ju bajtů použito pro uložení databáze %'ju adresář %'ju adresáře %'ju adresářů %'ju soubor %'ju soubory %'ju souborů Chyby hlaste na %s. --%s zadáno dvakrát--%s by nahradilo dřívejší parametr na příkazovém řádkuCopyright © 2007 Red Hat, Inc. All rights reserved. Toto software je distribuováno pod podmínkami GPL v.2. Tento program je poskutován BEZ ZÁRUKY, je-li to povoleno zákonem.Databáze %s: chyba I/O při čtení `%s'chyba I/O při posouvání v `%s'chyba I/O při zápisu do `%s'chyba I/O při zápisu na standardní výstupPoužití: locate [PŘEPÍNAČ]... [VZOR]... Hledat položky v databázi mlocate. -A, --all vypsat jen položky, které odpovídají všem vzorům -b, --basename porovnávat v cestách k souborům jen názvy -c, --count vypsat jen počet nalezených položek -d, --database CESTADB používat CESTADB místo implicitní databáze (což je %s) -e, --existing vypisovat jen položky pro momentálně existující soubory -L, --follow při kontrole existence souborů sledovat koncové symbolické odkazy (implicitní) -h, --help vypsat tuto nápovědu -i, --ignore-case při porovnávání vzorů nerozlišovat velikost písmen -l, --limit, -n LIMIT omezit výstup (nebo počítání) na LIMIT položek -m, --mmap ignorováno, pro zpětnou kompatibilitu -P, --nofollow, -H při kontrole existence souborů nesledovat koncové symbolické odkazy -0, --null na výstupu oddělovat položky pomocí NUL -S, --statistics nehledat položky, vypsat statistiku o každé použité databázi -q, --quiet nehlásit chybové zprávy o čtení databází -r, --regexp REGEXP hledat základní basic regexp REGEXP místo vzorů --regex vzory jsou rozšířené regexpy -s, --stdio ignorováno, pro zpětnou kompatibilitu -V, --version vypsat informace o verzi -w, --wholename porovnávat celé cesty k souborům (implicitní) Použití: updatedb [PŘEPÍNAČ]... Aktualizovat databázi mlocate. -f, --add-prunefs SS vynechat také SS -n, --add-prunenames NÁZVY vynechat také NÁZVY -e, --add-prunepaths CESTY vynechat také CESTY -U, --database-root CESTA podstrom, který uložit do databáze (implicitně "/") -h, --help vypsat tuto nápovědu -o, --output SOUBOR databáze, kterou aktualizovat (implicitně `%s') --prune-bind-mounts PŘEPÍNAČ vynechat připojení bind (implicitně "no") --prunefs SS systémy souborů, které vynechat z databáze --prunenames NÁZVY názvy adresářů, které vynechat z databáze --prunepaths CESTY cesty, které vynechat z databáze -l, --require-visibility PŘEPÍNAČ kontrolovat viditelnost před hlášením souborů (implicitně "yes") -v, --verbose vypisovat cesty nalezených souborů -V, --version vypsat informace o verzi Nastavení má implicitní hodnoty čtené z `%s'. `%s' zřejmě není databáze mlocate`%s' má neznámou verzi %u`%s' má neznámý příznak viditelnosti %u`%s' je uzamčen (pravděpodobně dřívejším updatedb)po názvu proměnné očekáváno `='nemohu změnit adresář na `%s'nemohu změnit skupinu souboru `%s' na `%s'nemohu změnit oprávnění souboru `%s'nemohu se vzdát oprávněnínemohu najít skupinu `%s'nemohu zjistit současný pracovní adresářnemohu zamknout `%s'nemohu otevřít `%s'nemohu otevřít dočasný soubor pro `%s'nemohu číst dvě databáze ze standardního vstupunemohu stat () `%s'nastavení je příliš velkéchyba při nahrazování `%s'délka názvu souboru %zu v `%s' je příliš velkádélka názvu souboru %zu je příliš velkáchyba systému souborů: soubor s názvem nulové délky v adresáři %sneplatný prázdný název adresáře v `%s'neplatná regexp `%s': %sneplatná hodnota `%s' přepínače --%sneplatná hodnota PRUNE_BIND_MOUNTS `%s'chybí uzavírající `"'nezadán žádný vzor, který hledats --%s nejsou povoleny parametry jiné než přepínačeneočekávaný konec souboru při čtení `%s'neočekávaná data po hodnotě proměnnéneočekávaný parametr na příkazovém řádkuneznámá proměnná `%s'po `=' očekávána hodnota v uvozovkáchproměnná `%s' již byla definovánaočekáván název proměnnévarování: Číslo řádku přeteklomlocate-0.26/po/Makefile.in.in0000644000175000017500000003552411435544163013115 00000000000000# Makefile for PO directory in any package using GNU gettext. # Copyright (C) 1995-1997, 2000-2007 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.17 GETTEXT_MACRO_VERSION = 0.17 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 -o $${lang}.gmo $${lang}.po"; \ cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -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) $${lang}.po $(DOMAIN).pot"; \ cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ 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 $(mkdir_p) $(DESTDIR)$(datadir) @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: $(mkdir_p) $(DESTDIR)$(datadir) @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) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$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 "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) @: 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: mlocate-0.26/po/lv.gmo0000664000175000017500000001656512027217357011576 000000000000003GLh4iF# "71L~ 0>Uo*+  # 0 @ a ) '   % * < &N .u    ) ! 85 $n   '  ".%T$p""!*HY0%&=d}7!1:,(g0*''B#j) 55k~6+?$['(*$):d( &" !-%O 1!*"$0+)('2  &3.  ,- /%# %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-04-24 15:16+0000 Last-Translator: Rūdolfs Mazurs Language-Team: Latvian (http://www.transifex.com/projects/p/fedora/language/lv/) Language: lv MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2); %'ju baits failu nosaukumos %'ju baiti failu nosaukumos %'ju baitu failu nosaukumos %'ju baits izmantots, lai glabātu datubāzi %'ju baiti izmantoti, lai glabātu datubāzi %'ju baitu izmantotu, lai glabātu datubāzi %'ju mape %'ju mapes %'ju mapes %'ju fails %'ju faili %'ju failu Ziņot kļūdas uz %s. --%s norādīts divreiz--%s pārrakstīs iepriekšējo komandrindas argumentu.Autortiesības (C) 2007 Red Hat, Inc. Visas tiesības paturētas. Šī programmatūra tiek izplatīta ar licenci GPL v.2. Šī programma nāk BEZ GARANTIJAS tādā mērā, kā to pieļauj likums.Datubāze %s: I/O kļūda, nolasot `%s'I/O kļūda, meklējot iekš `%s'I/O kļūda, rakstot uz `%s'I/O kļūda, mēģinot rakstīt standarta izvadēLietojums: updatedb [OPTION]... Atjaunināt mlocate datubāzi. -f, --add-prunefs FS izlaist arī FS -n, --add-prunenames NAMES izlaist arī NAMES -e, --add-prunepaths PATHS izlaist arī PATHS -U, --database-root PATH apakškoks, kurā glabāt datubāzi (default "/") -h, --help drukāt šo palīdzību -o, --output FILE datubāze, kuru atjaunināt (noklusētā `%s') --prune-bind-mounts FLAG izlaist sasaistītos montējumus (noklusētais "no") --prunefs FS failu sistēmas, kuras izlaist no datubāzes --prunenames NAMES mapju nosaukumi, ko izlaist no datubāzes --prunepaths PATHS ceļi, ko izlaist no datubāzes -l, --require-visibility FLAG pārbauda redzamību, pirms ziņot failus (noklusētais "yes") -v, --verbose drukāt atrasto failu ceļus -V, --version drukāt versijas informāciju The configuration defaults to values read from `%s'. `%s' neizskatās pēc mlocate datubāzes`%s' ir nezināma versija %u`%s' ir nezināms slēdzis %u`%s' ir slēgts (iespējams ar agrāku updatedb)tika gaidīts `=' pēc mainīgā nosaukumanevar mainīt mapi uz `%s'nevar mainīt grupu failam `%s' uz `%s'nevar mainīt tiesības failam `%s'nevar nomest privilēģijasnevar atrast grupu `%s'nevarēja saņemt pašreizējo darba mapinevar aizslēgt `%s'nevar atvērt `%s'nevar atvērt `%s' pagaidu failunevar nolasīt divas datu bāzes no standarta ievadesnevar stat () `%s'konfigurācija ir pārāk lielakļūda, aizvietojot `%s'faila nosaukuma garums %zu iekš `%s' ir pārāk lielsfaila nosaukuma garums %zu ir pārāk lielsfailsistēmas kļūda: faila nosaukums ar garumu nulle mapē %sinvalid empty directory name in `%s'nederīga regulārā izteiksme `%s': %snederīga vērtība `%s' parametram --%snederīga PRUNE_BIND_MOUNTS vērtība `%s'trūkst aizverošās `"'nav norādīta izteiksme, ko meklētbez opciju parametri nav atļauti ar --%snegaidīts EOF, lasot `%s'negaidīti dati pēc mainīgā nosaukumanegaidīts operands komandrindānezināms mainīgais `%s'pēc `=' gaidīta vērtība pēdiņāsmainīgais `%s' jau tika definētstika gaidīts mainīgā nosaukumsbrīdinājums: rindu skaita pārpildemlocate-0.26/po/bs.po0000664000175000017500000003301312027217356011377 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # Arnes , 2011. # Edmon Begoli , 2012. # mitr , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-06-19 02:45+0000\n" "Last-Translator: Edmon Begoli \n" "Language-Team: Bosnian (http://www.transifex.com/projects/p/fedora/language/" "bs/)\n" "Language: bs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "upozorenje: prekoračen broj linija" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "nedostaje završno „\"“" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "ne mogu da otvorim „%s“" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "nepoznata promijenljiva „%s“" #: src/conf.c:358 msgid "variable name expected" msgstr "očekuje se naziv promijenljive" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "promijenljiva „%s“ je već definirana" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "„=“ se očekuje poslije naziva promijenljive" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "vrijednost u navodnicima je očekivana poslije „=“" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "neispravna vrijednost „%s“ PRUNE_BIND_MOUNTS promijenljive" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "neočekivan podatak poslije vrijednosti promijenljive" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "U/I greška pri čitanju „%s“" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "Upotreba: updatedb [OPCIJE]...\n" "Ažurira mlocate bazu podataka.\n" "\n" " -f, --add-prunefs SD izostavi sistem datoteka\n" " -n, --add-prunenames NAZIVI izostavi NAZIVE\n" " -e, --add-prunepaths PUTANJE izostavi PUTANJE\n" " -U, --database-root PUTANJA podstablo za čuvanje baze podataka\n" " (podrazumijevano „/“)\n" " -h, --help odštampaj ovu pomoć\n" " -o, --output DATOTEKA baza podataka za ažuriranje " "(podrazumijevano\n" " „%s“)\n" " --prune-bind-mounts OZNAKA izostavi veznike montiranja " "(podrazumijevano\n" " „ne“)\n" " --prunefs SD sistemi datoteka koji se izostavljaju iz\n" " baze podataka\n" " --prunenames NAZIVI nazivi direktorija koji se izostavljaju " "iz\n" " baze podataka\n" " --prunepaths PUTANJE putanje koje se izostavljaju iz baze " "podataka\n" " -l, --require-visibility OZNAKA provjeri vidljivost pre izvještavanju o\n" " datotekama\n" " (podrazumevano „da“)\n" " -v, --verbose štampa putanje datoteka kako se " "pronalaze\n" " -V, --version štampa informacije o verziji\n" "\n" "Podrazumjevane vrijednosti podešavanja pročitane iz\n" "„%s“.\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Prijavite greške na %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "ne mogu da dobijem trenutni radni direktorij" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s bi premostilo raniji argument komandne linije" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "neispravna vrednost „%s“ za --%s" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s definisano dva puta" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Autorska prava 2007 Red Hat, Inc. Sva prava zadržana.\n" "Ovaj softver se distribuira pod GJL verzije 2.\n" "\n" "Ovaj program dolazi BEZ GARANCIJE, u okviru dozvoljenim zakonom." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "neočekivani operator komandne linije" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "„%s“ izgleda da nije mlocate baza podataka" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "„%s“ ima nepoznatu verziju %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "„%s“ ima nepoznati pokazatelj vidljivosti %u" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "neočekivani završetak datoteke (EOF ) pri čitanju „%s“" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "U/I greška pri traženju u „%s“" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "Baza podataka %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "" "»%'ju direktorij\n" msgstr[1] "" "»%'ju directories\n" msgstr[2] "" "»%'ju directories\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "neispravan naziv praznog direktorija u „%s“" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "dužina %zu naziva datoteke u „%s“ je prevelika" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "Upotreba: locate [OPCIJA]... [ŠABLON]...\n" "Traži zapise u mlocate bazi podataka.\n" "\n" " -b, --basename poredi samo osnovne nazive naziva putanje\n" " -c, --count samo odštampaj broj pronađenih zapisa\n" " -d, --database PUTANJABP koristi PUTANJUBP umjesto podrazumijevane baze " "podataka\n" " (koja je %s)\n" " -e, --existing samo štampaj zapise za trenutno postojeće " "datoteke\n" " -L, --follow prati simboličke veze kada provjeravaš " "postojanje\n" " datoteke (podrazumijevano)\n" " -h, --help odštampaj ovu pomoć\n" " -i, --ignore-case zanemari razlike u veličini karaktera kada " "porediš\n" " uzore\n" " -l, --limit, -n GRANICA ograniči ispis (ili brojanje) na GRANICU zapisa\n" " -m, --mmap zanemareno, za povratnu kompatibilnost\n" " -P, --nofollow, -H nemoj pratiti simboličke veze kada provjeravaš\n" " postojanje datoteke\n" " -0, --null odvojeni zapisi sa ničim na izlazu\n" " -S, --statistics ne traži zapise, odštampaj statistiku o svakoj\n" " korištenoj bazi podataka\n" " -q, --quiet izvjesti bez poruka o greškama pri čitanju baze\n" " podataka\n" " -r, --regexp REGIZ traži osnovni regularni izraz REGIZ umesto " "uzora\n" " --regex uzori su prošireni regularni izraz\n" " -s, --stdio zanemareno, zbog povratne kompatibilnosti\n" " -V, --version odštampaj informacije o verziji\n" " -w, --wholename uporedi cijeli naziv putanje (podrazumevano)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "argumenti koji nisu opcije nisu dozvoljeni sa --%s" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "uzor za pretragu nije naveden" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "neispravan regularni izraz „%s“: %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "ne moze da ukloni privilegije" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "ne moze da pročita dvije baze podataka sa standardnog ulaza" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "ne moze da izvrši funkciju stat () nad „%s“" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "U/I greška pri čitanju sa standardnog izlaza" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "dužina %zu naziva datoteke je prevelika" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "greska u sistemskoj datoteci: prazna datoteka u direktoriju %s " #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "ne moze da otvori privremenu datoteku za „%s“" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "podešavanje je preveliko" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "ne moze da pronađe grupu „%s“" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "ne moze da promijeni grupu datoteke „%s“ u „%s“" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "ne moze da promijeni dozvole datoteke „%s“" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "„%s“ je zaključana (vjerovatno ranijom updatedb operacijom)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "ne mogu da zaključam „%s“" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "ne moze se promijeniti direktorij na „%s“" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "U/I greška pri pisanju u „%s“" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "greška pri zamjeni „%s“" mlocate-0.26/po/pt_BR.gmo0000664000175000017500000001710212027217357012147 000000000000003GLh4iF# "71L~ 0>Uo*+  # 0 @ a ) '   % * < &N .u    ) ! 85 $n   '  ".%T$p""!*HB cL$ ?*j!5Mj)\1'A7iB(1 <?9|'); De9=+ 'H8`%R*%=c+'4%2B'u(!" 1!*"$0+)('2  &3.  ,- /%# %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-04-22 20:30+0000 Last-Translator: Arthur Rodrigues Araruna Language-Team: Portuguese (Brazil) Language: pt_BR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n > 1); %'ju byte em nomes de arquivos %'ju bytes em nomes de arquivos %'ju byte usado para armazenar a base de dados %'ju bytes usados para armazenar a base de dados %'ju diretório %'ju diretórios %'ju arquivo %'ju arquivos Relatar erros para %s. --%s especificado duas vezes--%s pode sobrescrever o argumento de linha de comando anteriorCopyright (C) 2007 Red Hat, Inc. Direitos Reservados. Este software é distribuído sob a licença GPL v.2. Este programa é fornecido sem garantias na medida do permitido pela lei.Banco de dados %s: Erro de E/S ao ler `%s'Erro de E/S ao procurar `%s'Erro de E/S ao gravar em `%s'erro de E/S ao escrever na saída padrãoUso: updatedb [OPÇÕES]... Atualiza uma base de dados do mlocate. -f, --add-prunefs FS omite algum FS -n, --add-prunenames NAMES omite alguns NAMES -e, --add-prunepaths PATHS omite alguns PATHS -U, --database-root PATH O subdiretório a armazenar na base de dados(padrão "/") -h, --help mostra essa ajuda -o, --output ARQUIVO base de dados a atualizar (padrão `%s') --prune-bind-mounts FLAG omite vínculos montados (padrão "no") --prunefs FS sistemas de arquivos a serem omitidos da base de dados --prunenames NAMES nome dos diretórios a omitir da base de dados --prunepaths PATHS caminhos a omitir da base de dados -l, --require-visibility FLAG verificar visibilidade antes de relatar arquivos (padrão "yes") -v, --verbose mostra o caminho dos arquivos quando localiza-los -V, --version mostra informações da versão A configuração padrão para valores de leitura "%s". `%s' não parece ser um banco de dados do mlocate`%s' tem uma versão desconhecida de %u`%s' tem um sinalizador de visibilidade %u desconhecido`%s' está bloqueado (provavelmente devido a um updatedb anterior)`=' esperado depois do nome da variávelnão foi possível alterar o diretório para `%s'não foi possível alterar o grupo do arquivo `%s' para `%s'não foi possível alterar as permissões do arquivo `%s'não foi possível retirar privilégiosnão foi possível localizar o grupo `%s'Não foi possível encontrar o atual diretório de trabalhoNão foi possível bloquear `%s'não foi possível abrir `%s'não foi possível abrir um arquivo temporário para `%s'Não foi possível ler duas bases de dados da entrada padrãoNão foi possível realizar stat () de `%s'a configuração é muito grandeerro ao substituir `%s'o tamanho do nome do arquivo %zu em `%s' é muito grandeo nome do arquivo %zu é muito grandeerro do sistema de arquivos: arquivo com nome de comprimento zero no diretório %snome de diretório vazio inválido em `%s'expressão regular `%s' inválida: %svalor `%s' inválido para --%svalor `%s' inválido para PRUNE_BIND_MOUNTSfalta fechar `"'nenhum padrão de pesquisa especificadoargumentos sem opção não são permitidos com --%sFim do arquivo inesperado ao ler `%s'informação inesperada após o valor da variáveloperador inesperado na linha de comandovariável desconhecida `%s'valor entre aspas esperado depois do `='a variável `%s' já foi definidanome de variável esperadoAviso: Número de linhas excedido mlocate-0.26/po/el.po0000664000175000017500000002736712027217356011412 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # Giannis Konstantinidis, , 2012. # mitr , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-09-15 12:03+0000\n" "Last-Translator: Giannis Konstantinidis \n" "Language-Team: Greek \n" "Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "Απουσία του `\"' κλεισίματος" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "αδυναμία ανοίγματος του `%s'" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "άγνωστη μεταβλητή `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "αναμενόμενο όνομα μεταβλητής" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "η μεταβλητή `%s' έχει ήδη καθοριστεί" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "αναμένεται το `=' μετά το όνομα μεταβλητής" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "αναμένεται τιμή μέσα σε εισαγωγικά μετά το `='" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "λανθασμένη τιμή `%s' του PRUNE_BIND_MOUNTS" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "ανυπολόγιστα δεδομένα ύστερα από την τιμή της μεταβλητής" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "Σφάλμα I/O κατά την ανάγνωση του `%s'" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Αναφέρετε σφάλματα στο %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "αδυναμία απόκτησης του τρέχοντος λειτουργικού καταλόγου" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "λανθασμένη τιμή `%s' του --%s" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "Το --%s έχει δηλωθεί διπλά" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Copyright (C) 2007 Red Hat, Inc. Διατηρούνται όλα τα δικαιώματα.\n" "Αυτό το λογισμικό διανέμεται υπό την άδεια GPL v.2.\n" "\n" "Αυτό το πρόγραμμα παρέχεται ΧΩΡΙΣ ΕΓΓΥΗΣΗ, στο βαθμό που επιτρέπεται από το " "νόμο." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "ανυπολόγιστος τελεστής στη γραμμή εντολών" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "To `%s' δεν φαίνεται να είναι μαι βάση δεδομένων του mlocate" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "Το `%s' έχει άγνωστη έκδοση %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "To `%s' έχει άγνωστη σημαία ορατότητας %u" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "ανυπολόγιστο EOF κατά την ανάγνωση του `%s'" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "σφάλμα εισόδου/εξόδου κατά την αναζήτηση μέσα στο `%s'" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "Βάση δεδομένων %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju κατάλογος\n" msgstr[1] "\t%'ju κατάλογοι\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju αρχείο\n" msgstr[1] "\t%'ju αρχεία\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju byte στα ονόματα αρχείων\n" msgstr[1] "\t%'ju bytes στα ονόματα αρχείων\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "" "\t%'ju byte που χρησιμοποιούνται στην αποθήκευση της βάσης δεδομένων\n" msgstr[1] "" "\t%'ju bytes που χρησιμοποιούνται στην αποθήκευση της βάσης δεδομένων\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "λανθασμένα κενό όνομα καταλόγου στο `%s'" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "το μέγεθος της ονομασίας του %zu στο `%s' είναι πολύ μεγάλο" #: src/locate.c:617 #, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "δεν επιτρέπονται οι παράμετροι χωρίς επιλογές στο --%s" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "κανένα πρότυπο για την αναζήτηση των δηλωμένων" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "λανθασμένο regexp `%s': %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "αδυναμία απόρριψης των δικαιωμάτων" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "αδυναμία ανάγνωσης δύο βάσεων δεδομένων από την προκαθορισμένη είσοδο" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "αδυναμία δημιουργίας στατιστικής () `%s'" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "Σφάλμα I/O κατά την εγγραφή στην προκαθορισμένη έξοδο" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "το μήκος ονόματος του αρχείου %zu είναι πολύ μεγάλο" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "σφάλμα συστήματος αρχείων: μηδενικό όνομα αρχείου στον κατάλογο %s" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "αδυναμία ανοίγματος ενός προσωρινού αρχείου για το `%s'" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "η ρύθμιση είναι υπερβολικά μεγάλη" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "αδυναμία εύρεσης της ομάδας `%s'" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "αδυναμία αλλαγής ομάδας του αρχείου `%s' σε `%s'" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "αδυναμία αλλαγής δικαιωμάτων του αρχείου `%s'" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "Το `%s' είναι κλειδωμένο (πιθανώς από μια προηγούμενη ενημέρωση)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "αδυναμία κλειδώματος του `%s'" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "αδυναμία αλλαγής καταλόγου σε `%s'" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "Σφάλμα I/O κατά την εγγραφή στο `%s'" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "σφάλμα κατά την αντικατάσταση του `%s'" mlocate-0.26/po/da.po0000664000175000017500000003075612027217356011372 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # Kris Thomsen , 2012. # mitr , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-03-14 09:35+0000\n" "Last-Translator: Kris Thomsen \n" "Language-Team: Danish \n" "Language: da\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "advarsel: Linjenummeroverløb" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "mangler lukkende '\"'" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "kan ikke åbne \"%s\"" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "ukendt variabel \"%s\"" #: src/conf.c:358 msgid "variable name expected" msgstr "variabelnavn forventet" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "variabel \"%s\" var allerede defineret" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "\"=\" forventet efter variabelnavn" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "værdi i citationstegn forventet efter \"=\"" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "ugyldig værdi \"%s\" fra PRUNE_BIND_MOUNTS" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "uventet data efter variabel værdi" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "I/O-fejl ved læsning af \"%s\"" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "Brug: updatedb [TILVALG]...\n" "Opdatér en mlocate-database.\n" "\n" " -f, --add-prunefs FS udelader også FS\n" " -n, --add-prunenames NAMES udelader også NAVNE\n" " -e, --add-prunepaths PATHS udelader også STIER\n" " -U, --database-root PATH undertræet som skal gemmes i database " "(standard \"/\")\n" " -h, --help skriver denne hjælp\n" " -o, --output FILE database til opdatering (standard\n" " \"%s\")\n" " --prune-bind-mounts FLAG undlader bind-monteringer (standard \"no" "\")\n" " --prunefs FS filsystemer at udelade fra database\n" " --prunenames NAMES mappenavne at udelade fra database\n" " --prunepaths PATHS stier at udelade fra database\n" " -l, --require-visibility FLAG kontrollerer synlighed før rapportering af " "filer\n" " (standard \"yes\")\n" " -v, --verbose skriver stier over filer som de er fundet\n" " -V, --version skriver versionsinformation\n" "\n" "Konfigurationen falder tilbage på værdier læst fra\n" "\"%s\".\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Rapportér fejl til %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "kan ikke hente nuværende arbejdsmappe" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s vil overskrive tidligere kommandolinjeargument" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "ugyldig værdi \"%s\" af --%s" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s angivet to gange" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Ophavsret (C) 2007 Red Hat, Inc. Alle rettigheder forbeholdt.\n" "Denne software er udgivet under GPL v.2.\n" "\n" "Dette program leveres uden nogen form for GARANTI tilladt af loven." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "uventet operand på kommandolinje" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "\"%s\" ser ikke ud til at være en mlocate-database" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "\"%s\" har ukendt version %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "\"%s\" har ukendt synlighedsflag %u" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "ikke forventet EOF ved læsning af \"%s\"" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "I/O-fejl ved søgning i \"%s\"" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "Database %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju mappe\n" msgstr[1] "\t%'ju mapper\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju fil\n" msgstr[1] "\t%'ju filer\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju byte i filnavne\n" msgstr[1] "\t%'ju byte i filnavne\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\t%'ju byte brugt til at gemme database\n" msgstr[1] "\t%'ju byte brugt til at gemme database\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "ugyldig tomt mappenavn i \"%s\"" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "længden på filnavn %zu i \"%s\" er for stor" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "Brug: locate [TILVALG]... [MØNSTER]...\n" "Søger efter elementer i en mlocate-database.\n" "\n" " -b, --basename matcher kun basenavn af stinavne\n" " -c, --count skriver kun antal af fundne poster\n" " -d, --database DBPATH brug DBPATH istedet for standard database (som er\n" " %s)\n" " -e, --existing skriver kun poster fra nuværende eksisterende " "filer\n" " -L, --follow følg efterfølgende symbolske henvisninger når der " "kontrolleres om\n" " filens eksistens (standard)\n" " -h, --help skriver denne hjælp\n" " -i, --ignore-case ignorér sagsudmærkelser når der matches mønstre\n" " -l, --limit, -n LIMIT begrænset output (eller tæller) til LIMIT poster\n" " -m, --mmap ignoreret, for bagudkompatibilitet\n" " -P, --nofollow, -H følg ikke efterfølgende symbolske henvisninger som " "kontrollerer fil\n" " eksistens\n" " -0, --null adskiller poster med NUL på output\n" " -S, --statistics søger ikke efter poster, skriv statistikker om " "hver\n" " brugte database\n" " -q, --quiet rapportér ingen fejlbeskeder om læsning af " "databaser\n" " -r, --regexp REGEXP søg efter grundlæggende regexp REGEXP istedet for " "mønstre\n" " --regex mønstre er udvidede regexps\n" " -s, --stdio ignoreret, for bagudkompatibilitet\n" " -V, --version skriver versionsinformation\n" " -w, --wholename matcher hele stinavnet (standard)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "ikke-tilvalgsargumenter er ikke tilladt med --%s" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "intet mønster til søg efter angivet" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "ugyldig regexp \"%s\": %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "kan ikke slippe rettigheder" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "kan ikke læse to databaser fra standard input" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "kan ikke stat () \"%s\"" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "I/O-fejl under skrivning til standardoutput" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "længden på filnavn %zu er for stor" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "filsystemsfejl: nul-længde filnavn i mappe %s" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "kan ikke åbne en midlertidig fil for \"%s\"" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "konfiguration er for stor" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "kan ikke finde gruppe \"%s\"" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "kan ikke ændre gruppe på fil \"%s\" til \"%s\"" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "kan ikke ændre rettigheder på fil \"%s\"" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "\"%s\" er låst (sandsynligvis af en tidligere updatedb)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "kan ikke låse \"%s\"" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "kan ikke ændre mappe til \"%s\"" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "I/O-fejl under skrivning til \"%s\"" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "kunne ikke erstatte \"%s\"" mlocate-0.26/po/en_GB.gmo0000664000175000017500000001554612027217356012124 000000000000002C<H4IF~#1,^ 5O*o+  # 0 A )b '   %   &. .U    ) ! $ : R 'm  " .  $"<_"u!4F#<`y1 *+&#B0f  )'+C%[&.+)@!j$' " .Cr$""!1H,(& %2$'+"* .0 )/  !-#1 %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largeinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-02-14 08:16+0000 Last-Translator: Miloslav Trmač Language-Team: English (United Kingdom) (http://www.transifex.com/projects/p/fedora/language/en_GB/) Language: en_GB MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largeinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowmlocate-0.26/po/ru.gmo0000664000175000017500000002266512027217357011601 000000000000003GLh4iF# "71L~ 0>Uo*+  # 0 @ a ) '   % * < &N .u    ) ! 85 $n   '  ".%T$p""!*H88h87$l7m?-BmKf%c<.CS9C=RAb:2Q5d*Lg 5z 2 =!3B!cv!Q!*,"4W"I"@"8#ZP#5#Z#N<$0$H$5%0;%Hl% 1!*"$0+)('2  &3.  ,- /%# %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-09-22 04:08+0200 Last-Translator: Yulia Language-Team: Russian Language: ru MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); »%'ju байт в названии файла »%'ju байта в названии файла »%'ju байт в названии файла база данных заняла »%'ju байт база данных заняла »%'ju байта база данных заняла »%'ju байт »%'ju папка »%'ju папки »%'ju папок »%'ju файл »%'ju файла »%'ju файлов Отчёт об ошибках отправьте %s. --%s определен дважды--%s переопределит заданный ранее аргумент командной строки(C) 2007 Red Hat, Inc. Все права защищены. Это программное обеспечение распространяется в соответствии с условиями лицензии GPL v.2. Эта программа распространяется БЕЗ ГАРАНТИЙ, в пределах, допускаемых законом.База данных %s: Ошибка ввода/вывода при чтении «%s»ошибка ввода/вывода при поиске в «%s»ошибка ввода/вывода во время записи в «%s»ошибка ввода/вывода во время записи в стандартный выводПрименение: updatedb [ОПЦИИ]... Обновление базы данные mlocate. -f, --add-prunefs ФС пропускать указанные ФС -n, --add-prunenames ИМЕНА пропускать ИМЕНА -e, --add-prunepaths ПУТИ пропускать ПУТИ -U, --database-root ПУТЬ поддерево, хранящееся в базе данных (по умолчанию "/") -h, --help вывести эту справку -o, --output FILE база данных для обновления (по умолчанию `%s') --prune-bind-mounts ФЛАГ пропускать точки подключения (по умолчанию "нет") --prunefs ФС ФС для исключения из базы данных --prunenames ИМЕНА каталог для исключения из базы данных --prunepaths ПУТИ пути для исключения из базы данных -l, --require-visibility ФЛАГ проверить существование файлов прежде чем добавлять (по умолчанию "да") -v, --verbose вывести пути к найденным файлам -V, --version вывести информацию о версии Используемые по умолчанию параметры получены из «%s». «%s» не является базой данных mlocateнеизвестная версия «%s»: %u«%s» имеет неизвестный видимый флаг %u«%s» заблокирован (возможно более ранним updatedb)«=» ожидается после имени переменнойне удалось перейти к каталогу «%s»не удалось изменить группу файла с «%s» на «%s»не удалось изменить права файла «%s»невозможно понизить привилегиине удалось найти группу «%s»не удаётся получить текущий рабочий каталогне удалось заблокировать «%s»невозможно открыть «%s»не удалось открыть временный файл для «%s»невозможно читать две базы данных из стандартного вводане удалось выполнить stat () «%s»конфигурация очень большаяошибка замены «%s»слишком длинное имя файла %zu в «%s»слишком длинное имя файла %zuошибка файловой системы: нулевая длина имени файла в %sнедействительное имя пустого каталога в «%s»недопустимое regexp «%s»: %sневерное значение «%s» для --%sнедопустимое значение «%s» для PRUNE_BIND_MOUNTSотсутствуют закрывающие кавычки `"'не определён шаблон для поискане является аргументом опции или не разрешен с --%sнеожиданный EOF при чтении «%s»непредвиденные данные после значения переменнойнепредвиденный операнд в командной строкенеизвестная переменная `%s'значение в кавычках ожидается после «=»переменная `%s' уже определенаожидание имени переменнойвнимание: Количество строк переполненоmlocate-0.26/po/gu.gmo0000664000175000017500000000672412027217356011563 00000000000000%@4A#v z '%BT&f$'$"G!]j:H*?Y 9& D` W ^ <\ o ? +I [u ? + T= " @ L C Mb #     %'ju byte in file names %'ju bytes in file names %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. Copyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'`%s' has unknown version %ucan not change directory to `%s'can not change permissions of file `%s'can not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'configuration is too largeerror replacing `%s'invalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of PRUNE_BIND_MOUNTSunexpected data after variable valueunknown variable `%s'variable `%s' was already definedvariable name expectedProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-02-14 08:16+0000 Last-Translator: Miloslav Trmač Language-Team: Gujarati Language: gu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); ફાઇલ નામમાં %'ju બાઇટ ફાઇલ નામોમાં %'ju બાઇટ %'ju ડિરેક્ટરી %'ju ડિરેક્ટરીઓ %'ju ફાઇલ %'ju ફાઇલો %s માં ભૂલોનો અહેવાલ કરો. Copyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.ડેટાબેઝ %s: `%s' ને વાંચતી વખતે I/O ભૂલ`%s' પાસે અજ્ઞાત આવૃત્તિ %u છે`%s' માં ડિરેક્ટરીને બદલી શકાતી નથીફાઇલ `%s' ની પરવાનગીઓને બદલી શકાતી નથીજૂથ `%s' ને શોધી શકાતુ નથીહાલની કામ કરતી ડિરેક્ટરીને મેળવી શકતા નથી`%s' ને તાળુ મારી શકાતુ નથી`%s' ખોલી શકાતુ નથી`%s' માટે કામચલાઉ ફાઇલ ખોલી શકાતી નથીરૂપરેખાંકન ઘણુ લાંબુ છે`%s' બદલતી વખતે ભૂલ`%s' માં અમાન્ય ખાલી ડિરેક્ટરી નામઅમાન્ય regexp `%s': %sPRUNE_BIND_MOUNTS ની અમાન્ય કિંમત `%s'ચલ કિંમત પછી અનિચ્છિત માહિતીઅજ્ઞાત ચલ `%s'ચલ `%s' પહેલેથી વ્યાખ્યાયિત હતોઇચ્છિત ચલ નામmlocate-0.26/po/sr@latin.gmo0000664000175000017500000001626312027217357012724 00000000000000.=1M  $>*^+r  # 0  0 )Q '{   %   & .D s   ) ! $ ) A '\  " .  $ "+ N "d !    2"!$"%.Hew.! /.<^,,6-,Z#y-2;91u3(1:'l$: 20=c/%2'Iq#!-% & ',* ".)+ #  ($ Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largeinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-02-14 08:16+0000 Last-Translator: Miloslav Trmač Language-Team: LANGUAGE Language: sr@latin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); Prijavite greške na %s. --%s definisano dva puta--%s bi premostilo raniji argument komandne linijeAutorska prava 2007 Red Hat, Inc. Sva prava zadržana. Ovaj softver se distribuira pod GJL verzije 2. Ovaj program dolazi BEZ GARANCIJE, u okviru dozvoljenim zakonom.Baza podataka %s: U/I greška pri čitanju „%s“U/I greška pri traženju u „%s“U/I greška pri pisanju u „%s“U/I greška pri čitanju sa standardnog izlazaUpotreba: updatedb [OPCIJE]... Ažurira mlocate bazu podataka. -f, --add-prunefs SD izostavi sistem datoteka -n, --add-prunenames NAZIVI izostavi NAZIVE -e, --add-prunepaths PUTANJE izostavi PUTANJE -U, --database-root PUTANJA podstablo za čuvanje baze podataka (podrazumevano „/“) -h, --help odštampaj ovu pomoć -o, --output DATOTEKA baza podataka za ažuriranje (podrazumevano „%s“) --prune-bind-mounts OZNAKA izostavi veznike montiranja (podrazumevano „ne“) --prunefs SD sistemi datoteka koji se izostavljaju iz baze podataka --prunenames NAZIVI nazivi direktorijuma koji se izostavljaju iz baze podataka --prunepaths PUTANJE putanje koje se izostavljaju iz baze podataka -l, --require-visibility OZNAKA proveri vidljivost pre izveštavanju o datotekama (podrazumevano „da“) -v, --verbose štampa putanje datoteka kako se pronalaze -V, --version štampa informacije o verziji Podrazumevane vrednosti podešavanja pročitane iz „%s“. „%s“ izgleda da nije mlocate baza podataka„%s“ ima nepoznatu verziju %u„%s“ ima nepoznati indikator vidljivosti %u„%s“ je zaključana (verovatno ranijom updatedb radnjom)„=“ se očekuje posle naziva promenljivene mogu da promenim direktorijum na „%s“ne mogu da promenim grupu datoteke „%s“ u „%s“ne mogu da promenim dozvole datoteke „%s“ne mogu da uklonim privilegijene mogu da pronađem grupu „%s“ne mogu da dobijem tekući radni direktorijumne mogu da zaključam „%s“ne mogu da otvorim „%s“ne mogu da otvorim privremenu datoteku za „%s“ne mogu da pročitam dve baze podataka sa standardnog ulazane mogu da izvršim funkciju stat () nad „%s“podešavanje je prevelikogreška pri zameni „%s“dužina %zu naziva datoteke u „%s“ je prevelikadužina %zu naziva datoteke je prevelikaneispravan naziv praznog direktorijuma u „%s“neispravan regularni izraz „%s“: %sneispravna vrednost „%s“ za --%sneispravna vrednost „%s“ PRUNE_BIND_MOUNTS promenljivenedostaje završno „"“šablon za pretragu nije navedenargumenti koji nisu opcije nisu dozvoljeni sa --%sneočekivani završetak datoteke (EOF ) pri čitanju „%s“neočekivan podatak posle vrednosti promenljiveneočekivani operator komandne linijenepoznata promenljiva „%s“vrednost u navodnicima je očekivana posle „=“promenljiva „%s“ je već definisanaočekuje se naziv promenljiveupozorenje: prekoračen broj linijamlocate-0.26/po/ar.gmo0000664000175000017500000002161712027217356011550 000000000000002C<H4IF~#1,^ 5O*o+  # 0 A )b '   %   &. .U    ) ! $ : R 'm  " .  $"<_"u!k.D,EIAap3I/3>Gr+4=?Y)-SE"b6U ". Q /k ' - ! !:3!5n!1!F!)"?G"8" "-"9#I#(f#,(& %2$'+"* .0 )/  !-#1 %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largeinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-02-14 08:16+0000 Last-Translator: Miloslav Trmač Language-Team: Arabic Language: ar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5; %'ju بايت في اسم الملف %'ju بايت في اسم الملف %'ju بايت في اسم الملف %'ju بايت في اسم الملف %'ju بايت في اسم الملف %'ju بايت في اسم الملف %'ju البايت مستخدم لتخزين قاعدة البيانات %'ju البايت مستخدم لتخزين قاعدة البيانات %'ju البايت مستخدم لتخزين قاعدة البيانات %'ju البايت مستخدم لتخزين قاعدة البيانات %'ju البايت مستخدم لتخزين قاعدة البيانات %'ju البايت مستخدم لتخزين قاعدة البيانات %'ju المجلد %'ju المجلدات %'ju المجلدات %'ju المجلدات %'ju المجلدات %'ju المجلدات %'ju الملف %'ju الملف %'ju الملف %'ju الملف %'ju الملف %'ju الملف أرسل تقرير الأخطاء لـ %s. --%s محددة مرتين--%s سوف يتجاوز مدخل سطر الأوامر السابقحقوق الطبع والنشر (C) 2007 ريد هات, المتحدة. جميع الحقوق محفوظة. هذا البرنامج يعمل تحت توزيعة GPL v.2. هذا البرامج مقدم من "غير ضمان", إلى الحد الذي يسمح به القانون.قاعدة بيانات %s: خطأ في قراءة وحدة الإدخال والإخراج `%s'بحث خاطئ في وحدة الإدخال والإخراج`%s'حدث خطأ في وسيلة الإدخال والإخراج أثناء الكتابة في `%s'خطأ في المدخلات والمخرجات بجميع الكتابة في المخرجات الأساسيةUsage: updatedb [OPTION]... تحديث قاعدة البيانات mlocate . -f, --add-prunefs FS حذف FS -n, --add-prunenames NAMES حذف NAMES -e, --add-prunepaths PATHS حذف PATHS -U, --database-root PATH الشجرة الفرعية المخزنة في قاعدة البيانات(الافتراضي"/") -h, --help طباعة المساعدة -o, --output FILE قاعدة بيانات التحديث (default `%s') --prune-bind-mounts FLAG حذف رابط الضم(الافتراضي"لا") --prunefs FS نظم الملفات المحذوفة مم قاعدة البيانات --prunenames NAMES حذف أسماء المجلد من قاعدة البيانات --prunepaths PATHS المسارات المحذوفة من قاعدة البيانات -l, --require-visibility FLAG التحقق من الوضوح قبل الإبلاغ عن الملفات (الافتراضي "نعم") -v, --verbose طباعة مسارات الملفات التي وجدت -V, --version طباعة نسخة المعلومات قراءة قيمة التهيئة الافتراضية من `%s'. `%s' لا تبدوا أنها قاعدة بيانات من نوع mlocate`%s' لديها إصدار غير معروف %u`%s' إشارة الوضوح %u غير معروفة`%s' مغلق (احتمال بيواسطة التحديث الحالي)`=' متوقع بعد اسم المتغيرلا تستطيع تغيير المجلد لـ `%s'لا يستطيع تغيير ملف مجموعة `%s' to `%s'لا تستطيع تغيير الصلاحيات للملف `%s'لا يمكن حذف الامتيازاتلا يستطيع إيجاد مجموعة`%s'لا يمكن الحصول على المسار الحالي المعمول عليهلا تستطيع قفل`%s'غير قادر على فتح `%s'لا يمكن فتح الملف المؤقت لـ `%s'لا يمكن قراءة قاعدتي بيانات من الإدخال القياسيلا يمكن stat () `%s'التهيئة كبيرة جداًخطأ استبدال%s'طول الاسم %zu in `%s' طويل جداًطول الاسم %zu طويل جداًاسم مجلد فارغ غير صالح `%s'غير مسموح regexp `%s': %sقيمة خاطئة`%s' of --%sالقيمة غير صالحة `%s' لـ PRUNE_BIND_MOUNTSعلامة تنصيص الإغلاق مفقودة `"'لا يوجد نمط للبحث بشكل محددالوسائط الغير مختارة لا يسمح لها مع --%sنهاية ملف غير متوقعة`%s'بيانات غير متوقعة بعد قيمة المتغيرعامل غير متوقع على سطر الأوامرمتغير غير معروف`%s'قيمة مقتبسة متوقعة بعد `='المتغير `%s' لم يتم تعريفه مسبقاًاسم متغير متوقعتحذير: تجاوز عدد السطرmlocate-0.26/po/mlocate.pot0000664000175000017500000001757612027217355012622 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: mlocate 0.26\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\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" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "" #: src/conf.c:358 msgid "variable name expected" msgstr "" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" #: src/conf.c:482 msgid "can not get current working directory" msgstr "" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "" msgstr[1] "" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "" msgstr[1] "" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "" msgstr[1] "" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "" msgstr[1] "" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "" #: src/locate.c:617 #, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "" #: src/locate.c:949 msgid "can not drop privileges" msgstr "" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "" mlocate-0.26/po/ko.po0000664000175000017500000003207512027217356011413 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # Eun-Ju Kim , 2012. # mitr , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-03-07 03:59+0000\n" "Last-Translator: eukim \n" "Language-Team: Korean (http://www.transifex.com/projects/p/fedora/language/" "ko/)\n" "Language: ko\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "경고: 줄 번호가 초과되어 있습니다 " #: src/conf.c:259 msgid "missing closing `\"'" msgstr "`\"' 종료 중 부재 " #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "`%s'을(를) 열 수 없음 " #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "알 수 없는 변수 `%s' " #: src/conf.c:358 msgid "variable name expected" msgstr "변수 이름이 예상됩니다 " #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "`%s' 변수는 이미 정의되어 있습니다 " #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "변수 이름 뒤에 `='이 예상됩니다 " #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "`=' 다음에 인용 부호루 묶인 값이 예상됩니다 " #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr " PRUNE_BIND_MOUNTS의 잘못된 값 `%s' " #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "변수 값 다음에 예상하지 않은 데이터 " #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "`%s' 읽는 도중 I/O 오류 발생 " #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "사용법: updatedb [옵션]...\n" "mlocate 데이터베이스 업데이트 사항.\n" "\n" " -f, --add-prunefs FS FS 생략\n" " -n, --add-prunenames NAMES NAMES 생략\n" " -e, --add-prunepaths PATHS PATHS 생략\n" " -U, --database-root PATH 데이터베이스에 저장하기 위한 하위 트리 (기본" "값 \"/\")\n" " -h, --help 도움말 인쇄\n" " -o, --output FILE 업데이트할 데이터베이스 (기본값\n" " `%s')\n" " --prune-bind-mounts FLAG bind 마운트 생략 (기본값 \"no\")\n" " --prunefs FS 데이터베이스에서 생략할 파일 시스템\n" " --prunenames NAMES 데이터베이스에서 생략할 디렉토리 이름\n" " --prunepaths PATHS 데이터베이스에서 생략할 경로\n" " -l, --require-visibility FLAG 파일을 보고하기 전 가시성 확인\n" " (기본값 \"yes\")\n" " -v, --verbose 검색한 파일의 경로 인쇄\n" " -V, --version 버전 정보 인쇄\n" "\n" "값으로의 설정 기본값은\n" "`%s'에서 읽어옵니다.\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "%s에 버그를 보고합니다.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "현재 작업 중인 디렉토리를 얻을 수 없음 " #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s은(는) 이전 명령행 인수를 덮어 씁니다 " #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "--%s의 잘못된 값 `%s' " #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s이(가) 두 번 지정됨 " #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "명령행에서 기대하지 않은 피연산자 " #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "`%s'은(는) mlocate 데이터베이스에 있을것 같지 않습니다 " #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "`%s'에는 알 수 없는 버전 %u이(가) 있습니다. " #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "`%s'에는 알 수 없는 가시성 플래그 %u이(가) 있습니다 " #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "`%s'을(를) 읽는 도중 기대하지 않은 EOF " #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "`%s'에서 검색하는 도중 I/O 오류 " #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "데이터베이스 %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju 디렉토리\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju 파일\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "파일 이름에 있는 \t%'ju 바이트\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "데이터베이스를 저장하기 위해 사용되는 \t%'ju 바이트\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "`%s'에 있는 잘못된 빈 디렉토리 이름 " #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "파일 이름의 길이 %zu가 (`%s'에 있는) 너무 큽니다 " #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "사용법: locate [옵션]... [패턴]...\n" "mlocate 데이터베이스에 있는 항목 검색.\n" "\n" " -b, --basename 경로 이름의 기본 이름만 일치\n" " -c, --count 검색된 항목 수만 인쇄\n" " -d, --database DBPATH 기본값 데이터베이스 (%s) 대신\n" " DBPATH 사용\n" " -e, --existing 현재 존재하는 파일에 대한 항목만을 인쇄\n" " -L, --follow 파일 존재 확인 시 후행 심볼릭 링크를 따름\n" " (기본값)\n" " -h, --help 도움말 인쇄\n" " -i, --ignore-case 패턴 일치 시 대소문자를 구별하지 않음\n" " -l, --limit, -n LIMIT 출력 결과 (또는 합계)를 LIMIT 항목으로 제한\n" " -m, --mmap 무시, 하위 호환성을 위해\n" " -P, --nofollow, -H 파일 존재 확인시 후행 심볼릭 링크를 따르지\n" " 않음\n" " -0, --null 출력 결과에서 항목을 NUL로 구분\n" " -S, --statistics 항목을 검색하지 않음, 사용된 데이터베이스에\n" " 대한 통계 인쇄\n" " -q, --quiet 데이터베이스 읽기에 대해 오류 메세지가 없음을 보고\n" " -r, --regexp REGEXP 패턴 대신 기본 정규식 REGEXP로 검색\n" " --regex 패턴은 확장 정규식임\n" " -s, --stdio 무시, 하위 호환성을 위해\n" " -V, --version 버전 정보 인쇄\n" " -w, --wholename 전체 경로 이름과 일치 (기본값)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "옵션이 아닌 인수는 --%s와 함께 허용되지 않습니다 " #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "검색 패턴이 지정되어 있지 않습니다 " #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "잘못된 정규 표현식 `%s': %s " #: src/locate.c:949 msgid "can not drop privileges" msgstr "권한을 삭제할 수 없습니다 " #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "표준 입력에서 두 개의 데이터베이스를 읽을 수 없습니다 " #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "stat () `%s' 할 수 없습니다 " #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "표준 출력에 쓰기 도중 I/O 오류 발생 " #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "파일 이름의 길이 %zu이(가) 너무 큽니다 " #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "파일 시스템 오류: 디렉토리 %s에 길이가 0인 파일 이름이 있습니다 " #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "`%s'에 대한 임시 파일을 열 수 없습니다 " #: src/updatedb.c:928 msgid "configuration is too large" msgstr "설정 사항이 너무 큽니다 " #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "`%s' 그룹을 찾을 수 없습니다 " #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "`%s' 파일의 그룹을 `%s'로 변경할 수 없습니다 " #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "`%s' 파일 권한을 변경할 수 없습니다 " #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "`%s'은(는) 잠겨있습니다 (이전 updatedb를 통해) " #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "`%s'을(를) 잠금할 수 없습니다 " #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "디렉토리를 `%s'로 변경할 수 없습니다 " #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "`%s'에 쓰는 도중 I/O 오류 발생 " #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "`%s' 교체 도중 오류 발생 " mlocate-0.26/po/pt_BR.po0000664000175000017500000003172212027217356012006 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # Arthur Rodrigues Araruna , 2012. # mitr , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-04-22 20:30+0000\n" "Last-Translator: Arthur Rodrigues Araruna \n" "Language-Team: Portuguese (Brazil) \n" "Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "Aviso: Número de linhas excedido " #: src/conf.c:259 msgid "missing closing `\"'" msgstr "falta fechar `\"'" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "não foi possível abrir `%s'" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "variável desconhecida `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "nome de variável esperado" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "a variável `%s' já foi definida" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "`=' esperado depois do nome da variável" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "valor entre aspas esperado depois do `='" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "valor `%s' inválido para PRUNE_BIND_MOUNTS" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "informação inesperada após o valor da variável" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "Erro de E/S ao ler `%s'" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "Uso: updatedb [OPÇÕES]...\n" "Atualiza uma base de dados do mlocate.\n" "\n" " -f, --add-prunefs FS omite algum FS\n" " -n, --add-prunenames NAMES omite alguns NAMES\n" " -e, --add-prunepaths PATHS omite alguns PATHS\n" " -U, --database-root PATH O subdiretório a armazenar na base de dados" "(padrão \"/\")\n" " -h, --help mostra essa ajuda\n" " -o, --output ARQUIVO base de dados a atualizar (padrão\n" " `%s')\n" " --prune-bind-mounts FLAG omite vínculos montados (padrão \"no\")\n" " --prunefs FS sistemas de arquivos a serem omitidos da " "base de dados\n" " --prunenames NAMES nome dos diretórios a omitir da base de " "dados\n" " --prunepaths PATHS caminhos a omitir da base de dados\n" " -l, --require-visibility FLAG verificar visibilidade antes de relatar " "arquivos\n" " (padrão \"yes\")\n" " -v, --verbose mostra o caminho dos arquivos quando " "localiza-los\n" " -V, --version mostra informações da versão\n" "\n" "A configuração padrão para valores de leitura\n" "\"%s\".\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Relatar erros para %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "Não foi possível encontrar o atual diretório de trabalho" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s pode sobrescrever o argumento de linha de comando anterior" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "valor `%s' inválido para --%s" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s especificado duas vezes" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Copyright (C) 2007 Red Hat, Inc. Direitos Reservados.\n" "Este software é distribuído sob a licença GPL v.2.\n" "\n" "Este programa é fornecido sem garantias na medida do permitido pela lei." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "operador inesperado na linha de comando" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "`%s' não parece ser um banco de dados do mlocate" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "`%s' tem uma versão desconhecida de %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "`%s' tem um sinalizador de visibilidade %u desconhecido" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "Fim do arquivo inesperado ao ler `%s'" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "Erro de E/S ao procurar `%s'" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "Banco de dados %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju diretório\n" msgstr[1] "\t%'ju diretórios\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju arquivo\n" msgstr[1] "\t%'ju arquivos\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju byte em nomes de arquivos\n" msgstr[1] "\t%'ju bytes em nomes de arquivos\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\t%'ju byte usado para armazenar a base de dados\n" msgstr[1] "\t%'ju bytes usados para armazenar a base de dados\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "nome de diretório vazio inválido em `%s'" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "o tamanho do nome do arquivo %zu em `%s' é muito grande" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "Uso: locate [OPÇÃO]... [PADRÃO]...\n" "Busca por entradas na base de dados do mlocate.\n" "\n" " -b, --basename corresponde somente ao nome base no caminho\n" " -c, --count somente mostra o número de correspondências " "localizadas\n" " -d, --database DBPATH usar DBPATH ao invés da base de dados padrão (que " "é\n" " %s)\n" " -e, --existing mostrar somente as entradas de arquivos " "existentes \n" " -L, --follow seguir ligação simbólica quando verificar a " "existência arquivos (padrão)\n" " -h, --help mostra essa ajuda\n" " -i, --ignore-case ignora maiúsculas e minúsculas na pesquisa\n" " -l, --limit, -n LIMIT limita a saída (ou contagem) ao número indicado \n" " -m, --mmap ignorado, para compatibilidade regressiva\n" " -P, --nofollow, -H não seguir ligações simbólicas quando verificar a " "existência de arquivos \n" " -0, --null separar as entradas com NUL na saída \n" " -S, --statistics não pesquisar pelas entradas, mostrar as " "estatísticas sobre as\n" " base de dados utilizada\n" " -q, --quiet reportar mensagens de erro sobre leitura nas base " "de dados\n" " -r, --regexp REGEXP pesquisar por regex básica ao invés de padrões\n" " --regex padrões são regexps estendidas\n" " -s, --stdio ignorado, para compatibilidade regressiva\n" " -V, --version mostra informações da versão\n" " -w, --wholename procura por todo o caminho do nome (padrão)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "argumentos sem opção não são permitidos com --%s" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "nenhum padrão de pesquisa especificado" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "expressão regular `%s' inválida: %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "não foi possível retirar privilégios" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "Não foi possível ler duas bases de dados da entrada padrão" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "Não foi possível realizar stat () de `%s'" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "erro de E/S ao escrever na saída padrão" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "o nome do arquivo %zu é muito grande" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "" "erro do sistema de arquivos: arquivo com nome de comprimento zero no " "diretório %s" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "não foi possível abrir um arquivo temporário para `%s'" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "a configuração é muito grande" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "não foi possível localizar o grupo `%s'" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "não foi possível alterar o grupo do arquivo `%s' para `%s'" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "não foi possível alterar as permissões do arquivo `%s'" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "`%s' está bloqueado (provavelmente devido a um updatedb anterior)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "Não foi possível bloquear `%s'" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "não foi possível alterar o diretório para `%s'" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "Erro de E/S ao gravar em `%s'" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "erro ao substituir `%s'" mlocate-0.26/po/nl.gmo0000664000175000017500000001632512027217357011560 000000000000003GLh4iF# "71L~ 0>Uo*+  # 0 @ a ) '   % * < &N .u    ) ! 85 $n   '  ".%T$p""!*H:ZC9@ $80]8("*>>}!27)G'b+4-F#^;+3_#y2!$%= V!w# 1!*"$0+)('2  &3.  ,- /%# %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-02-25 18:36+0000 Last-Translator: Geert Warrink Language-Team: Dutch (http://www.transifex.com/projects/p/fedora/language/nl/) Language: nl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %'ju byte in bestandsnamen %'ju bytes in bestandsnamen %'ju byte gebruikt om database op te slaan %'ju bytes gebruikt om database op te slaan %'ju map %'ju mappen %'ju bestand %'ju bestanden Meld bugs aan %s. --%s dubbel gespecificeerd--%s zou eerder gegeven commando-regel argument vervangenCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O fout bij lezen `%s'I/O fout tijdens zoeken in `%s'I/O fout tijdens schrijven naar `%s'I/O fout tijdens schrijven naar standaard outputGebruik: updatedb [OPTIE]... Update een mlocate database. -f, --add-prunefs FS ook FS weglaten -n, --add-prunenames NAMES ook NAMES weglaten -e, --add-prunepaths PATHS ook PATHS weglaten -U, --database-root PATH het pad waar de database opgeslagen wordt (standaard "/") -h, --help toon deze hulp -o, --output FILE te vernieuwen database (standaard `%s') --prune-bind-mounts FLAG bind aankoppelingen weglaten (standaard "no") --prunefs FS bestandssystemen weg te laten uit de database --prunenames NAMES map namen weg te laten uit de database --prunepaths PATHS paden weg te laten uit de database -l, --require-visibility FLAG check zichtbaarheid voor het rapporteren van bestanden (standaard "yes") -v, --verbose toon paden van bestanden zoals gevonden -V, --version toon versie information De configuratie heeft standaard waarden conform `%s'. `%s' lijkt geen mlocate database te zijn`%s' heeft een onbekende versie %u`%s' heeft onbekende zichtbaarheid vlag %u`%s' is geblokkeerd (waarschijnlijk door een eerdere updatedb)`=' verwacht na variabele naamkan map niet veranderen naar `%s'kan groep van bestand `%s' niet veranderen in `%s'kan de bestand rechten van bestand `%s' niet veranderenkan rechten niet laten vallenkan groep `%s' niet vindenkan huidige actieve map niet verkrijgenkan `%s' niet blokkerenkan`%s' niet openenkan geen tijdelijk bestand openen voor `%s'kan niet twee databases lezen vanuit standaard inputkan niet stat () `%s'configuratie is te grootfout bij vervangen `%s'bestandsnaam %zu in `%s' is te langbestandsnaam %zu is te langbestandssysteem fout: bestandsnaam met lengte nul in map %songeldige lege map naam in `%s'ongeldige regexp `%s': %songeldige waarde `%s' van --%songeldige waarde `%s' van PRUNE_BIND_MOUNTSafsluitende `"' ontbreektgeen patroon om te zoeken opgegevennit-optie argumenten zijn niet toegestaan met --%sonverwacht EOF bij lezen van `%s'onverwachte data na variabele waardeonverwachte operand op commando-regelonbekende variabele `%s'waarde in quotes verwacht na `='variabele `%s' is al gedefinieerdvariabele naam verwachtWaarschuwing: Regel nummer overflowmlocate-0.26/po/Makevars0000664000175000017500000000343610762652215012136 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 = Red Hat, Inc # 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 = https://fedorahosted.org/mlocate/ # 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 = mlocate-0.26/po/ms.gmo0000664000175000017500000000624512027217357011566 00000000000000 +1 %3Jd*+  )9c%{&) !4$V{'"$:"P!s!=8S $#. *2 0] & # 3  (' P -i   %  , > Y *z % ' 3 "' 5J $      Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentDatabase %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard output`%s' does not seem to be a mlocate database`%s' has unknown version %u`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not find group `%s'can not get current working directorycan not open `%s'can not open a temporary file for `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largeinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSno pattern to search for specifiedunexpected EOF reading `%s'unexpected data after variable valueunknown variable `%s'value in quotes expected after `='variable `%s' was already definedProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-02-14 08:16+0000 Last-Translator: Miloslav Trmač Language-Team: LANGUAGE Language: ms MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; Lapor bug (masalah) kepada·%s. --%s·diberi dua kali--%s·akan mengambilalih argumen baris arahan sebelumnyaDatabase %s: masalah I/O semasa membaca `%s'Masalah I/O·sewaktu mencari di `%s'Masalah I/O sewaktu menulis ke `%s'Masalah I/O sewaktu menulis ke standard output`%s' tidak nampak seperti database mlocate`%s'·mengandungi versi yang tidak diketahui·%u`=' dijangka selepas nama pembolehubahtidak dapat tukar directori ke `%s'tidak dapat tukar kumpulan fail dari `%s'·ke·`%s'tidak jumpa kumpulan `%s'tidak dapat mendapatkan direktori semasatidak dapat membuka `%s'tidak dapat membuka fail sementara untuk `%s'konfigurasi terlalu besarmasalah semasa menukar `%s'nama fail %zu di `%s' terlalu panjangnama fail %zu terlalu panjangnama directory kosong yang tidak sah di `%s'regexp tidak sah `%s':·%snilai tidak sah %s'·untuk·--%snilai salah `%s'·untuk·PRUNE_BIND_MOUNTStiada paten untuk pencarian diberikanEOF·tidak dijangka semasa membaca `%s'data yang tidak dijangka selepas nilai pembolehubahpembulehubah tidak diketahui: `%s'nilai dalam pembuka/penutup kata dijangka selepas `='pembulehubah `%s' telahpun digunakanmlocate-0.26/po/zh_TW.po0000664000175000017500000002774612027217356012046 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # Cheng-Chia Tseng , 2011, 2012. # Chester Cheng , 2012. # mitr , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-03-07 18:21+0000\n" "Last-Translator: Cheng-Chia Tseng \n" "Language-Team: Chinese (Taiwan) \n" "Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "警告:列數溢出" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "缺少匹配的「\"」" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "無法開啟「%s」" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "不明的變數「%s」" #: src/conf.c:358 msgid "variable name expected" msgstr "需要一個變數名稱" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "變數「%s」已被定義" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "變數名稱之後需要一個「=」" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "「=」之後需要引號內的值" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "PRUNE_BIND_MOUNTS 之後的值「%s」無效" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "變數值之後有未預期的資料" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "I/O 讀取錯誤「%s」" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "用法:updatedb [選項]…\n" "更新 mlocate 資料庫。\n" "\n" " -f, --add-prunefs FS 也忽略 FS\n" " -n, --add-prunenames NAMES 也忽略 NAMES\n" " -e, --add-prunepaths PATHS 也忽略 PATHS\n" " -U, --database-root PATH 向資料庫中儲存的子樹 (預設 \"/\")\n" " -h, --help 顯示這份說明\n" " -o, --output FILE 要升級的資料庫 (預設\n" " 「%s」)\n" " --prune-bind-mounts FLAG 忽略繫結載入 (預設 \"no\")\n" " --prunefs FS 從資料庫中忽略的檔案系統\n" " --prunenames NAMES 從資料庫中忽略的目錄名稱\n" " --prunepaths PATHS 從資料庫中忽略的路徑\n" " -l, --require-visibility FLAG 在報告檔案之前檢查可見性\n" " (預設 \"yes\")\n" " -v, --verbose 當檔案被找到時顯示其路徑\n" " -V, --version 顯示版本資訊\n" "組態預設為從檔案「%s」讀取的值。\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "將程式錯誤報告給 %s。\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "無法得到目前的工作目錄" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s 將覆寫先前的命令列參數" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "%s 有無效的值「%s」" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s 被指定兩次" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "著作權 (C) 2007 Red Hat, Inc。保留所有權利。\n" "本軟體在 GPL v.2 下發布。\n" "\n" "本程式不提供任何擔保,在法律允許的範圍內予以排除。" #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "命令列包含未預期的作業物件" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "「%s」不是一個 mlocate 資料庫" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "「%s」具有不明的版本 %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "「%s」有不明的可視性旗標 %u" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "讀取「%s」時,出現未預期的檔案結束" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "在「%s」中搜尋時發生 I/O 錯誤" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "資料庫 %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju 目錄\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju 檔案\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju 檔案名稱中的位元組數\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\t%'ju 位元組用於儲存資料庫\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "「%s」中有無效的空目錄名稱" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "檔案名稱的長度 %zu 在「%s」中過大" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "用法:locate [選項]… [樣式]…\n" "在 mlocate 資料庫中搜尋條目。\n" "\n" " -b, --basename 只匹配路徑中的主檔名\n" " -c, --count 只顯示找到的條目數\n" " -d, --database DBPATH 用 DBPATH 替代預設的資料庫(%s)\n" " -e, --existing 只顯示目前存在檔案的條目\n" " -L, --follow 當檔案存在時跟隨相連的符號連結 (預設)\n" " -h, --help 顯示本說明\n" " -i, --ignore-case 匹配樣式時忽略大小寫區別\n" " -l, --limit,-n LIMIT 限制為 LIMIT 項目的輸出 (或計數) \n" " -m, --mmap 忽略向後相容性\n" " -P, --nofollow,-H 檢查檔案時不跟隨相連的符號連結\n" " -0, --null 輸出時以 NUL 分隔項目\n" " -S, --statistics 不搜尋項目,而是顯示有關每個已用資料庫的統計資訊\n" " -q, --quiet 不報告關於讀取資料庫的錯誤訊息\n" " -r, --regexp REGEXP 搜尋基本正規表示式 REGEXP 來代替樣式\n" " --regex 樣式是擴充的正規表示式\n" " -s, --stdio 忽略,為了向後相容性\n" " -V, --version 顯示版本資訊\n" " -w, --wholename 匹配完整路徑名稱 (預設)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "沒有選項的參數不允許與 --%s 一起使用" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "沒有指定任何搜尋樣式" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "無效的正規表示式「%s」: %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "無法釋放特權" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "無法從標準輸入讀取兩個資料庫" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "無法執行 stat()「%s」" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "寫入標準輸出時發生 I/O 錯誤" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "檔案名稱 %zu 過長" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "檔案系統錯誤:目錄 %s 中的檔案名稱長度為零" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "無法為「%s」開啟暫時檔案" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "組態過大" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "無法找到群組「%s」" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "無法將檔案所在群組「%s」變更為「%s」" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "無法變更檔案「%s」的權限" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "「%s」已被鎖定 (可能是由於先前的 updatedb)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "無法鎖定「%s」" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "無法變更目錄到「%s」" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "寫入「%s」時發生 I/O 錯誤" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "替換「%s」時發生錯誤" mlocate-0.26/po/en@boldquot.header0000644000175000017500000000247111402714565014063 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. # mlocate-0.26/po/ta.gmo0000664000175000017500000000636112027217357011552 00000000000000DlF(V  %'ju byte used to store database %'ju bytes used to store database %'ju file %'ju files Copyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Usage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. Project-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-02-14 08:16+0000 Last-Translator: Miloslav Trmač Language-Team: Tamil Language: ta MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); »%'ju bytes used to store database »%'ju bytes used to store database »%'ju files »%'ju files Copyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Usage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. mlocate-0.26/po/ca.po0000664000175000017500000003227512027217356011367 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # Bernabé Borrero , 2012. # mitr , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-04-06 11:57+0000\n" "Last-Translator: Bernabé Borrero \n" "Language-Team: Catalan \n" "Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "avís: Desbordament del nombre de línies" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "falta el caràcter `\"' de tancament" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "no s'ha pogut obrir `%s'" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "no s'ha trobat la variable `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "s'esperava un nom de variable" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "la variable `%s' ja ha estat definida" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "s'esperava un `=' després de la variable" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "s'esperava un valor entre cometes després del `='" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "valor `%s' invàlid per a PRUNE_BIND_MOUNTS" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "dades no esperades després del nom de la variable" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "S'ha produït un error d'E/S en llegir `%s'" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "Ús: updatedb [OPCIÓ]...\n" "Actualitza la base de dades del mlocate.\n" "\n" " -f, --add-prunefs SF sistemes de fitxers que s'ometran\n" " -n, --add-prunenames NOMS noms que s'ometran\n" " -e, --add-prunepaths CAMINS camins que s'ometran\n" " -U, --database-root CAMÍ el subarbre que es desarà a la base de " "dades (\"/\" per defecte)\n" " -h, --help mostra l'ajuda\n" " -o, --output FITXER base de dades que s'actualitzarà (per " "defecte és\n" " `%s')\n" " --prune-bind-mounts SENYALADOR indica si s'han d'ometre els punts de " "muntatge vinculats (\"no\" per defecte)\n" " --prunefs SF sistemes de fitxers que s'ometran de la " "base de dades\n" " --prunepaths CAMINS camins que s'ometran de la base de dades\n" " -l, --require-visibility SENYALADOR indica si s'ha de comprovar la " "visibilitat abans d'informar\n" " (\"yes\" per defecte)\n" " -v, --verbose mostra els camins als fitxers tal i com es " "van trobant\n" " -V, --version mostra informació sobre la versió\n" "\n" "La configuració per defecte es llegeix des de\n" "`%s'.\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Informar d'errors a %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "no s'ha pogut obtenir el directori de treball actual" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s ignorarà els arguments passats prèviament per línia d'ordres" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "valor `%s' invàlid de --%s" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s s'ha especificat dos cops" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Copyright (C) 2007 Red Hat, Inc. Tots els drets reservats.\n" "Aquest programa es distribueix sota la llicència GPL v 2.\n" "\n" "Aquest programa s'entrega sense CAP GARANTIA, fins el punt en que ho permeti " "la llei" #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "operador invàlid en la línia d'ordres" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "`%s' no sembla ser una base de dades del mlocate" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "`%s' té una versió %u desconeguda" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "`%s' té un senyalador de visibilitat %u desconegut" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "Fi de fitxer inesperat en llegir `%s'" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "error d'E/S mentre es cercava en `%s'" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "Base de dades %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju directori\n" msgstr[1] "\t%'ju directoris\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju fitxer\n" msgstr[1] "\t%'ju fitxers\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju byte en els noms de fitxers\n" msgstr[1] "\t%'ju bytes en els noms de fitxers\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\t%'ju byte usat per a emmagatzemar la base de dades\n" msgstr[1] "\t%'ju bytes usats per a emmagatzemar la base de dades\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "nom de directori buit invàlid a `%s'" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "la longitud %zu del nom de fitxer a `%s' és massa llarga" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "Ús: locate [OPCIÓ]... [PATRÓ]...\n" "Cerca entrades en una base de dades del mlocate.\n" "\n" " -b, --basename compara solament el nom dels fitxers\n" " -c, --count mostra solament el nombre d'entrades que concorden\n" " -d, --database CAMIBD usa CAMIBD en comptes de la base de dades per " "defecte (la qual es troba a\n" " %s)\n" " -e, --existing mostra únicament els resultats de fitxers " "existents\n" " -L, --follow segueix els enllaços simbòlics quan se'n comprovi " "l'existència\n" " dels fitxers (habilitat per defecte)\n" " -h, --help mostra l'ajuda\n" " -i, --ignore-case no diferenciïs les majúscules de les minúscules en " "cercar patrons\n" " -l, --limit, -n LIMIT limita la sortida (o el recompte) a LIMIT nombre " "d'entrades\n" " -m, --mmap ignorat, requerit per compatibilitat amb versions " "anteriors\n" " -P, --nofollow, -H no segueixis els enllaços simbòlics en comprovar " "l'existència dels\n" " fitxers\n" " -0, --null separa les entrades de la sortida amb NUL\n" " -S, --statistics no cerquis entrades, mostra les estadístiques sobre " "cada base de\n" " dades usada\n" " -q, --quiet no informis dels missatges d'error sobre la lectura " "de la base de dades\n" " -r, --regexp REGEXP cerca l'expressió regular REGEXP en comptes de " "patrons\n" " --regex els patrons són expressions regulars esteses\n" " -s, --stdio ignorat, requerit per compatibilitat amb versions " "anteriors\n" " -V, --version mostra informació sobre la versió\n" " -w, --wholename fes coincidir el camí complet (usat per defecte)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "arguments sense opció no estan permesos amb --%s" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "no s'ha especificat cap patró per la cerca especificada" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "expressió regular invàlida `%s':%s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "no s'han pogut alliberar els privilegis" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "no es poden llegir dues bases de dades des de l'entrada estàndard" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "ha fallat la crida stat() a %s" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "error d'E/S quan s'escrivia a la sortida estàndard" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "la longitud %zu del nom de fitxer és massa llarga" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "error del sistema d'arxius: arxiu sense nom al directori %s" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "no es pot obrir un fitxer temporal per a `%s'" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "la configuració és massa gran" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "no s'ha trobat el grup `%s'" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "no s'ha pogut canviar el grup del fitxer `%s' a `%s'" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "no s'han pogut canviar els permisos del fitxer `%s'" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "«%s» està blocat (probablement per un updatedb anterior)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "no s'ha pogut blocar `%s'" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "no s'ha pogut canviar el directori a `%s'" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "error d'E/S quan s'escrivia a `%s'" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "error en substituir `%s'" mlocate-0.26/po/insert-header.sin0000644000175000017500000000124011402714565013673 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 } mlocate-0.26/po/nds.gmo0000664000175000017500000000124212027217357011723 00000000000000<\pqXq--%s specified twicecan not open `%s'unknown variable `%s'Project-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-02-14 08:16+0000 Last-Translator: Miloslav Trmač Language-Team: Low German Language: nds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); --%s twejmol spezifizertkünn `%s' nich opmakenunbekannte Variable `%s'mlocate-0.26/po/ar.po0000664000175000017500000003555612027217356011413 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # mitr , 2011. # Munzir Taha , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-02-14 08:16+0000\n" "Last-Translator: Miloslav Trmač \n" "Language-Team: Arabic \n" "Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "تحذير: تجاوز عدد السطر" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "علامة تنصيص الإغلاق مفقودة `\"'" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "غير قادر على فتح `%s'" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "متغير غير معروف`%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "اسم متغير متوقع" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "المتغير `%s' لم يتم تعريفه مسبقاً" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "`=' متوقع بعد اسم المتغير" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "قيمة مقتبسة متوقعة بعد `='" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "القيمة غير صالحة `%s' لـ PRUNE_BIND_MOUNTS" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "بيانات غير متوقعة بعد قيمة المتغير" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "خطأ في قراءة وحدة الإدخال والإخراج `%s'" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "Usage: updatedb [OPTION]...\n" "تحديث قاعدة البيانات mlocate .\n" "\n" " -f, --add-prunefs FS حذف FS\n" " -n, --add-prunenames NAMES حذف NAMES\n" " -e, --add-prunepaths PATHS حذف PATHS\n" " -U, --database-root PATH الشجرة الفرعية المخزنة في قاعدة البيانات" "(الافتراضي\"/\")\n" " -h, --help طباعة المساعدة\n" " -o, --output FILE قاعدة بيانات التحديث (default\n" " `%s')\n" " --prune-bind-mounts FLAG حذف رابط الضم(الافتراضي\"لا\")\n" " --prunefs FS نظم الملفات المحذوفة مم قاعدة البيانات \n" " --prunenames NAMES حذف أسماء المجلد من قاعدة البيانات\n" " --prunepaths PATHS المسارات المحذوفة من قاعدة البيانات\n" " -l, --require-visibility FLAG التحقق من الوضوح قبل الإبلاغ عن الملفات\n" " (الافتراضي \"نعم\")\n" " -v, --verbose طباعة مسارات الملفات التي وجدت\n" " -V, --version طباعة نسخة المعلومات\n" "\n" "قراءة قيمة التهيئة الافتراضية من\n" "`%s'.\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "أرسل تقرير الأخطاء لـ %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "لا يمكن الحصول على المسار الحالي المعمول عليه" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s سوف يتجاوز مدخل سطر الأوامر السابق" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "قيمة خاطئة`%s' of --%s" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s محددة مرتين" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "حقوق الطبع والنشر (C) 2007 ريد هات, المتحدة. جميع الحقوق محفوظة.\n" "هذا البرنامج يعمل تحت توزيعة GPL v.2.\n" "\n" "هذا البرامج مقدم من \"غير ضمان\", إلى الحد الذي يسمح به القانون." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "عامل غير متوقع على سطر الأوامر" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "`%s' لا تبدوا أنها قاعدة بيانات من نوع mlocate" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "`%s' لديها إصدار غير معروف %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "`%s' إشارة الوضوح %u غير معروفة" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "نهاية ملف غير متوقعة`%s'" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "بحث خاطئ في وحدة الإدخال والإخراج`%s'" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "قاعدة بيانات %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju المجلد\n" msgstr[1] "\t%'ju المجلدات\n" msgstr[2] "\t%'ju المجلدات\n" msgstr[3] "\t%'ju المجلدات\n" msgstr[4] "\t%'ju المجلدات\n" msgstr[5] "\t%'ju المجلدات\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju الملف\n" msgstr[1] "\t%'ju الملف\n" msgstr[2] "\t%'ju الملف\n" msgstr[3] "\t%'ju الملف\n" msgstr[4] "\t%'ju الملف\n" msgstr[5] "\t%'ju الملف\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju بايت في اسم الملف\n" msgstr[1] "\t%'ju بايت في اسم الملف\n" msgstr[2] "\t%'ju بايت في اسم الملف\n" msgstr[3] "\t%'ju بايت في اسم الملف\n" msgstr[4] "\t%'ju بايت في اسم الملف\n" msgstr[5] "\t%'ju بايت في اسم الملف\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\t%'ju البايت مستخدم لتخزين قاعدة البيانات\n" msgstr[1] "\t%'ju البايت مستخدم لتخزين قاعدة البيانات\n" msgstr[2] "\t%'ju البايت مستخدم لتخزين قاعدة البيانات\n" msgstr[3] "\t%'ju البايت مستخدم لتخزين قاعدة البيانات\n" msgstr[4] "\t%'ju البايت مستخدم لتخزين قاعدة البيانات\n" msgstr[5] "\t%'ju البايت مستخدم لتخزين قاعدة البيانات\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "اسم مجلد فارغ غير صالح `%s'" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "طول الاسم %zu in `%s' طويل جداً" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "Usage: locate [OPTION]... [PATTERN]...\n" "بحث ع المدخلات في قاعدة بيانات mlocate.\n" "\n" " -b, --basename مطابقة الأساسي فقط أسماء المسار\n" " -c, --count طباعة الأرقام الموجودة في المدخلات\n" " -d, --database DBPATH استخدام DBPATH بدلا من قاعدة البيانات الافتراضية" "(هو \n" " %s)\n" " -e, --existing طباعة المدخلات فقط للمفلات الموجودة حالياً\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help طباعة المساعدة\n" " -i, --ignore-case إهمال حالة الفروق عند مطابقة الأنماط\n" " -l, --limit, -n LIMIT سقف الإنتاج (أو العد) لــ LIMIT المدخلات\n" " -m, --mmap إهمال, عن التوافق\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null تقسم المدخلات مع NUL على المخرجات\n" " -S, --statistics لا تبحث عن المدخلات, اطبع إحصائية\n" " قاعدة البيانات المستخدمة\n" " -q, --quiet إبلاغ عن عدم وجود رسائل خطأ حول قراءة قواعد " "البياتات\n" " -r, --regexp REGEXP البحث عن regexp REGEXP الأساسي بدلا من الأنماط\n" " --regex الأنماط موسعة من regexps\n" " -s, --stdio إهمال, عن التوافق\n" " -V, --version طباعة معلومات حول النسخة\n" " -w, --wholename مطابقة اسم المسار بالكامل(الافتراضي)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "الوسائط الغير مختارة لا يسمح لها مع --%s" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "لا يوجد نمط للبحث بشكل محدد" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "غير مسموح regexp `%s': %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "لا يمكن حذف الامتيازات" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "لا يمكن قراءة قاعدتي بيانات من الإدخال القياسي" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "لا يمكن stat () `%s'" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "خطأ في المدخلات والمخرجات بجميع الكتابة في المخرجات الأساسية" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "طول الاسم %zu طويل جداً" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "لا يمكن فتح الملف المؤقت لـ `%s'" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "التهيئة كبيرة جداً" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "لا يستطيع إيجاد مجموعة`%s'" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "لا يستطيع تغيير ملف مجموعة `%s' to `%s'" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "لا تستطيع تغيير الصلاحيات للملف `%s'" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "`%s' مغلق (احتمال بيواسطة التحديث الحالي)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "لا تستطيع قفل`%s'" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "لا تستطيع تغيير المجلد لـ `%s'" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "حدث خطأ في وسيلة الإدخال والإخراج أثناء الكتابة في `%s'" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "خطأ استبدال%s'" mlocate-0.26/po/fr.po0000664000175000017500000003340712027217356011411 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # dominique bribanick , 2012. # mitr , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-03-11 08:30+0000\n" "Last-Translator: dominique bribanick \n" "Language-Team: French \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "avertissement : dépassement du nombre de lignes" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "« \" » fermant manquant" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "impossible d'ouvrir « %s »" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "variable « %s » inconnue" #: src/conf.c:358 msgid "variable name expected" msgstr "nom de variable attendu" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "la variable « %s » a déjà été définie" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "« = » attendu après un nom de variable" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "une valeur entre des guillemets est attendue après « = »" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "la valeur « %s » de PRUNE_BIND_MOUNTS n'est pas valide" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "données non attendues après la valeur de la variable" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "erreur d'E/S lors de la lecture de « %s »" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "Utilisation : updatedb [OPTION]...\n" "Met à jour une base de données mlocate.\n" "\n" " -f, --add-prunefs FS omettre aussi FS\n" " -e, --add-prunepaths PATHS omettre aussi PATHS\n" " -U, --database-root PATH la sous-arborescence pour stocker dans la\n" " base de données (par défaut « / »)\n" " -h, --help affiche cette aide\n" " -o, --output FILE base de données à mettre à jour (par " "défaut\n" " « %s »)\n" " --prune-bind-mounts FLAG omettre les montages liés (par défaut\n" " « no »)\n" " --prunefs FS systèmes de fichiers à omettre de la base\n" " de données\n" " --prunepaths PATHS chemins à omettre de la base de données\n" " -l, --require-visibility FLAG vérifie la visibilité avant de reporter\n" " les fichiers (par défaut « yes » (oui))\n" " -v, --verbose affiche les chemins des fichiers comme\n" " ils sont trouvés\n" " -V, --version affiche les informations de version\n" "\n" "La configuration est définie par défaut aux valeurs lues à partir de\n" "« %s ».\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Signalez les anomalies à %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "impossible d'obtenir le répertoire de travail actuel" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s écraserait un paramètre en ligne de commande précédent" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "la valeur « %s » de --%s n'est pas valide" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s indiqué deux fois" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Copyright (C) 2007 Red Hat, Inc. Tous droits réservés.\n" "Ce logiciel est distribué sous la licence GPL v.2.\n" "\n" "Ce programme est fourni SANS GARANTIE, dans la mesure permise par la loi." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "opérande non attendue en ligne de commande" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "« %s » ne semble pas être une base de données mlocate" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "« %s » a une version inconnue %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "« %s » a un drapeau de visibilité inconnu %u" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "fin de fichier inattendue lors de la lecture de « %s »" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "erreur d'E/S durant la recherche dans « %s »" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "Base de données %s :\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju répertoire\n" msgstr[1] "\t%'ju répertoires\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju fichier\n" msgstr[1] "\t%'ju fichiers\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju octet dans les noms de fichier\n" msgstr[1] "\t%'ju octets dans les noms de fichier\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\t%'ju octet utilisé pour stocker la base de données\n" msgstr[1] "\t%'ju octets utilisés pour stocker la base de données\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "nom de répertoire vide invalide dans « %s »" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "la longueur du nom de fichier %zu dans « %s » est trop grande" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "Utilisation : locate [OPTION]... [MOTIF]...\n" "Rechercher des entrées dans une base de données mlocate.\n" "\n" " -b, --basename recherche uniquement les noms de base des noms\n" " de chemin\n" " -c, --count affiche uniquement le nombre d'entrées trouvées\n" " -d, --database DBPATH utilise DBPATH au lieu de la base de données\n" " par défaut (qui est %s)\n" " -e, --existing affiche uniquement les entrées pour les fichiers\n" " existants actuellement\n" " -L, --follow suivre les liens symboliques finaux lors de la\n" " vérification de l'existence des fichiers\n" " (par défaut)\n" " -h, --help affiche ce message\n" " -i, --ignore-case ignore la casse lors de la recherche des motifs\n" " -l, --limit, -n LIMIT limite la sortie (ou le décompte) aux entrées " "LIMIT\n" " -m, --mmap ignoré, pour la rétro-compatibilité\n" " -P, --nofollow, -H ne pas suivre les liens symboliques finaux lors de\n" " la vérification de l'existence des fichiers\n" " -0, --null sépare les entrées avec NUL sur la sortie\n" " -S, --statistics ne recherche pas les entrées, affiche\n" " des statistiques pour chaque base de données " "utilisée\n" " -q, --quiet ne rapporte pas les messages d'erreur concernant\n" " la lecture des bases des données\n" " -r, --regexp REGEXP recherche les expressions régulières de base " "REGEXP\n" " --regex au lieu des motifs. Les motifs sont des " "expressions\n" " régulières étendues\n" " -s, --stdio ignoré, pour rétro-compatibilité\n" " -V, --version affiche les informations de version\n" " -w, --wholename recherche les noms de chemin complets (par défaut)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "les paramètres absents des options sont interdits avec --%s" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "aucun motif à rechercher indiqué" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "expression régulière « %s » invalide : %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "impossible d'abandonner les privilèges" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "impossible de lire deux bases de données à partir de l'entrée standard" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "impossible de lancer la commande stat () pour « %s »" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "erreur d'E/S lors de l'écriture vers la sortie standard" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "la longueur du nom de fichier %zu est trop grande" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "" "erreur dans le systeme de fichiers : nom de fichier de longueur nulle dans " "le répertoire %s" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "impossible d'ouvrir un fichier temporaire pour « %s »" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "la configuration est trop grande" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "impossible de trouver le groupe « %s »" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "impossible de modifier le groupe du fichier de « %s » en « %s »" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "impossible de modifier les permissions du fichier « %s »" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "« %s » est verrouillé (probablement par un updatedb précédemment)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "impossible de verrouiller « %s »" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "impossible de changer le répertoire pour « %s »" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "erreur d'E/S lors de l'écriture de « %s »" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "erreur lors du remplacement de « %s »" mlocate-0.26/po/es.po0000664000175000017500000003162512027217356011411 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # Claudio Rodrigo Pereyra Diaz , 2012. # , 2012. # mitr , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-03-09 00:29+0000\n" "Last-Translator: Gladys Guerrero \n" "Language-Team: Spanish \n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "atención: número de linea excedido" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "falta cerrar `\"'" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "no se puede abrir `%s'" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "variable desconocida `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "se espera el nombre de la variable" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "la variable `%s' ya fue definida" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "se espera `=' luego del nombre de la variable" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "luego de `=' se espera un valor en cuotas" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "valor invalido `%s' de PRUNE_BIND_MOUNTS" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "datos no esperados luego del valor de la variable" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "I/O error al leer `%s'" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "Uso: actualizar base de datos [OPCION]...\n" "Actualizar una base de datos mlocate. \n" "\n" " -f, --agregar-prunefs FS omitir tambien FS\n" " -n, --agregar-nombresprunen NOMBRES omitir tambien NOMBRES\n" " -e, --agregar-rutasprune RUTAS omitir tambien RUTAS\n" " -U, --base de datos-root RUTA el subarbol donde guardar la base de " "datos (default \"/\")\n" " -h, --ayuda imprimir esta ayuda\n" " -o, --salida ARCHIVO base de datos a actualizar (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Reportar errores a %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "no se puede acceder al directorio actual de trabajo" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s rr" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "valor `%s' inválido para --%s" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s especificado dos veces" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Copyright (C) 2007 Red Hat, Inc. Todos los derechos reservados.\n" "Este programa es provisto SIN GARANTIA, hasta lo que sea permitido por la " "ley." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "operador inesperado en línea de comando" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "`%s' no parece ser una base de datos de mlocate" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "`%s' posee una version desconocida de %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "`%s' posee un señalador de visibilidad desconocido %u" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "fin de archivo inespereado al leer `%s'" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "error de E/S al buscar en `%s'" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "Base de datos %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju directorio\n" msgstr[1] "\t%'ju directorios\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju archivo\n" msgstr[1] "\t%'ju archivos\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju byte en los nombres de archivo\n" msgstr[1] "\t%'ju bytes en los nombres de archivo\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\t%'ju byte utilizado para almacenar la base de datos\n" msgstr[1] "\t%'ju bytes utilizados para almacenar la base de datos\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "nombre de directorio vacío inválido en `%s'" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "el tamaño del nombre del archivo %zu en `%s es demasiado largo" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "Uso: locate [OPCION]... [PATRON]...\n" "Busca entradas en una base de datos de mlocate.\n" "\n" " -b, --basename corresponde solamente el nombre de la base de la " "dirección\n" " -c, --count muestra solamente el número de las correspondencias " "localizadas\n" " -d, --database DBPATH usa DBPATH en lugar de la base de datos por defecto " "(que es\n" " %s)\n" " -e, --existing muestra solamente las entradas de los archivos " "existentes\n" " -L, --follow sigue enlaces simbólicos subsiguientes al chequear " "la existencia de archivos (por defecto)\n" " -h, --help muestra esta ayuda\n" " -i, --ignore-case ignora mayúsulas y minúsculas en la búsqueda\n" " -l, --limit, -n LIMIT limita la salida (o la cuenta) a un determinado " "número de entradas\n" " -m, --mmap ignorado, para compatibilades regresivas\n" " -P, --nofollow, -H no sigue enlaces simbólicos subsiguientes cuando se " "verifica la existencia de archivos\n" " -0, --null separa las entradas con NUL en la salida\n" " -S, --statistics no busca entradas, mostrar estadísticas sobre cada " "base de datos usada\n" " -q, --quiet no reporta mensajes de error sobre la lectura de la " "base de datos\n" " -r, --regexp REGEXP busca regexp básicos en lugar de patrones\n" " --regex los patrones son regexp extendidas\n" " -s, --stdio ignorado, para compatibilidades regresivas\n" " -V, --version muestra información de la versión\n" " -w, --wholename muestra la dirección completa del nombre (por " "defecto)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "no son permitidos argumentos sin opción con --%s" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "ningún patrón de busqueda especificado" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "expresión regular inválida `%s': %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "no se pudo abandonar privilegios" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "no se pudieron leer dos bases de datos con la entrada patrón" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "no se pudo realizar stat () `%s'" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "error de E/S al intentar escribir sobre la entrada patrón " #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "el nombre del archivo %zu es demasiado largo" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "" "error del sistema de archivos: nombre de archivo con longitud cero en el " "directorio %s" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "no se puede abrir un archivo temporal para `%s'" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "la configuración es demasiado extensa" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "no se pudo encontrar el grupo `%s'" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "no se pudo cambiar el grupo del archivo `%s' hacia `%s'" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "no se pudieron cambiar los permisos del archivo `%s'" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "`%s' está bloqueado (probablemente a causa de un updatedb anterior)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "no se pudo bloquear `%s'" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "no se pudo cambiar el directorio a `%s'" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "error de E/S al escribir sobre `%s'" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "error al reemplazar `%s'" mlocate-0.26/po/ko.gmo0000664000175000017500000001741012027217357011554 000000000000003GLh4iF# "71L~ 0>Uo*+  # 0 @ a ) '   % * < &N .u    ) ! 85 $n   '  ".%T$p""!*H(Gd x":&*) 2J`}J:)Gd<-4=L2&(8 )Fp6N"#7#[C7Y2U%*3EB351$>@2"2 1!*"$0+)('2  &3.  ,- /%# %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-03-07 03:59+0000 Last-Translator: eukim Language-Team: Korean (http://www.transifex.com/projects/p/fedora/language/ko/) Language: ko MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; 파일 이름에 있는 %'ju 바이트 데이터베이스를 저장하기 위해 사용되는 %'ju 바이트 %'ju 디렉토리 %'ju 파일 %s에 버그를 보고합니다. --%s이(가) 두 번 지정됨 --%s은(는) 이전 명령행 인수를 덮어 씁니다 Copyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.데이터베이스 %s: `%s' 읽는 도중 I/O 오류 발생 `%s'에서 검색하는 도중 I/O 오류 `%s'에 쓰는 도중 I/O 오류 발생 표준 출력에 쓰기 도중 I/O 오류 발생 사용법: updatedb [옵션]... mlocate 데이터베이스 업데이트 사항. -f, --add-prunefs FS FS 생략 -n, --add-prunenames NAMES NAMES 생략 -e, --add-prunepaths PATHS PATHS 생략 -U, --database-root PATH 데이터베이스에 저장하기 위한 하위 트리 (기본값 "/") -h, --help 도움말 인쇄 -o, --output FILE 업데이트할 데이터베이스 (기본값 `%s') --prune-bind-mounts FLAG bind 마운트 생략 (기본값 "no") --prunefs FS 데이터베이스에서 생략할 파일 시스템 --prunenames NAMES 데이터베이스에서 생략할 디렉토리 이름 --prunepaths PATHS 데이터베이스에서 생략할 경로 -l, --require-visibility FLAG 파일을 보고하기 전 가시성 확인 (기본값 "yes") -v, --verbose 검색한 파일의 경로 인쇄 -V, --version 버전 정보 인쇄 값으로의 설정 기본값은 `%s'에서 읽어옵니다. `%s'은(는) mlocate 데이터베이스에 있을것 같지 않습니다 `%s'에는 알 수 없는 버전 %u이(가) 있습니다. `%s'에는 알 수 없는 가시성 플래그 %u이(가) 있습니다 `%s'은(는) 잠겨있습니다 (이전 updatedb를 통해) 변수 이름 뒤에 `='이 예상됩니다 디렉토리를 `%s'로 변경할 수 없습니다 `%s' 파일의 그룹을 `%s'로 변경할 수 없습니다 `%s' 파일 권한을 변경할 수 없습니다 권한을 삭제할 수 없습니다 `%s' 그룹을 찾을 수 없습니다 현재 작업 중인 디렉토리를 얻을 수 없음 `%s'을(를) 잠금할 수 없습니다 `%s'을(를) 열 수 없음 `%s'에 대한 임시 파일을 열 수 없습니다 표준 입력에서 두 개의 데이터베이스를 읽을 수 없습니다 stat () `%s' 할 수 없습니다 설정 사항이 너무 큽니다 `%s' 교체 도중 오류 발생 파일 이름의 길이 %zu가 (`%s'에 있는) 너무 큽니다 파일 이름의 길이 %zu이(가) 너무 큽니다 파일 시스템 오류: 디렉토리 %s에 길이가 0인 파일 이름이 있습니다 `%s'에 있는 잘못된 빈 디렉토리 이름 잘못된 정규 표현식 `%s': %s --%s의 잘못된 값 `%s' PRUNE_BIND_MOUNTS의 잘못된 값 `%s' `"' 종료 중 부재 검색 패턴이 지정되어 있지 않습니다 옵션이 아닌 인수는 --%s와 함께 허용되지 않습니다 `%s'을(를) 읽는 도중 기대하지 않은 EOF 변수 값 다음에 예상하지 않은 데이터 명령행에서 기대하지 않은 피연산자 알 수 없는 변수 `%s' `=' 다음에 인용 부호루 묶인 값이 예상됩니다 `%s' 변수는 이미 정의되어 있습니다 변수 이름이 예상됩니다 경고: 줄 번호가 초과되어 있습니다 mlocate-0.26/po/hu.po0000664000175000017500000003156312027217356011417 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # mitr , 2011. # Zoltan Hoppár , 2012. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-02-14 08:16+0000\n" "Last-Translator: Zoltan Hoppár \n" "Language-Team: Hungarian \n" "Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "hiba: Sorszám túlcsordulás" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "hiányzó bezáró „\"”" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "„%s” nem nyitható meg" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "„%s” ismeretlen változó" #: src/conf.c:358 msgid "variable name expected" msgstr "hiányzó változónév" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "„%s” változó már definiálva van" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "hiányzó `=' a változónév után " #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "értékadás hiányzik `=' jel után" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr " `%s' nem érvényes érték a PRUNE_BIND_MOUNTS-ra" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "nem várt adat a változónév után" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "I/O hiba „%s” olvasásakor" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "Használat: updatedb [OPCIÓK]...\n" "Az mlocate adatbázis frissítése.\n" "\n" " -f, --add-prunefs FS mellőzi FS-t\n" " -n, --add-prunenames NEVEK mellőzi a NEVEKet\n" " -e, --add-prunepaths ÚTVONALAK mellőzi az ÚTVONALAKat\n" " -U, --database-root ÚTVONAL az adatbázisban tárolandó részfa " "(alapértelmezett: \"/\")\n" " -h, --help kiírja ezt a segítséget\n" " -o, --output FILE adatbázis frissítése (alapértelmezett\n" " „%s”)\n" " --prune-bind-mounts FLAG mellőzi a csatolt köteteket " "(alapértelmezett: „no”)\n" " --prunefs FS fájlrendszerek mellőzése az adatbázisból\n" " --prunenames NEVEK mappa nevek mellőzése az adatbázisból\n" " --prunepaths ÚTVONALAK útvonalak mellőzése az adatbázisból\n" " -l, --require-visibility FLAG láthaság ellenőrzése jelentés előtt\n" " (alapértelmezett \"yes\")\n" " -v, --verbose a fájl kiíratása a megtalált útvonalon\n" " -V, --version verzió információk kiírása\n" "\n" "A konfiguráció alapértelmezett értékeinek olvasása innen:\n" "„%s”.\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Hiba bejelentése: %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "nem érhető el a jelenlegi munkakönyvtár" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s felülírná a korábbi parancssori argumentumokat" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "„%s” érvénytelen értéke a --%s parancsnak" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s kétszer lett megadva" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Szerzői jog (C) 2007 Red Hat, Inc. Minden jog fenntartva.\n" "E szoftvert a GPL v.2 alatt terjesztik.\n" "\n" "E programot GARANCIA NÉLKÜL adják, amennyire a törvényes keretek engedik." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "nem várt operandus a parancssoron" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "„%s” nem tűnik mlocate adatbázisnak" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "'%s'-nek ismeretlen változata %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "'%s'-nek %u ismeretlen láthatósági jelzése van" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "nem várt EOF „%s” olvasásakor" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "I/O hiba „%s”-ben kereséskor" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "Adatbázis %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju mappa\n" msgstr[1] "\t%'ju mappa\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju fájl\n" msgstr[1] "\t%'ju fájl\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju bájt a fájlnevekben\n" msgstr[1] "\t%'ju bájt a fájl nevekben\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\t%'ju bájt tárolva az adatbázisban\n" msgstr[1] "\t%'ju bájt tárolva az adatbázisban\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "nem érvényes üres könyvtárnév ebben: „%s”" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "a(z) %zu neve túl hosszú itt: %s" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "Használat: locate [OPCIÓ]... [MINTA]...\n" "Bejegyzések keresése az mlocate adatbázisban.\n" "\n" " -b, --basename csak az útvonal alap nevével egyezik\n" " -c, --count csak a megtalált bejegyzések kiíratása\n" " -d, --database DBPATH DBPATH használata, az alapértelmezett helyett " "(amelyik\n" " %s)\n" " -e, --existing csak a megtalált bejegyzések számának kiíratása\n" " -L, --follow szimbolikus linkek követése fájl vizsgálatkor\n" " (alapértelmezett)\n" " -h, --help kiírja ezt a segítséget\n" " -i, --ignore-case mellőzi az eltérő eseteket mintaillesztésnél\n" " -l, --limit, -n LIMIT korlátozza a kivitelt(vagy megszámolja) a LIMIT " "bejegyzésekig\n" " -m, --mmap mellőzve, visszafelé kompatibilitás miatt\n" " -P, --nofollow, -H nem követi a szimbolikus linkeket fájl " "vizsgálatkor\n" " \n" " -0, --null szétválasztja a bejegyzéseket kivitelkor NULlal\n" " -S, --statistics nem keres bejegyzéseket, statisztikát ír ki minden " "bejegyzésről\n" " \n" " -q, --quiet nem jelent hibát adatbázis olvasáskor\n" " -r, --regexp REGEXP REGEXP alapú reguláris keresés a minták helyett\n" " --regex kiterjedt reguláris kifejezések mintái\n" " -s, --stdio mellőzve, visszafelé kompatibilátás miatt\n" " -V, --version verzió információk kiírása\n" " -w, --wholename az egész keresési útvonalra illeszkedik " "(alapértelmezett)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "nem opcionális argumentumok nem megengedettek a következővel --%s" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "nem található minta a keresésre" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "nem érvényes reguláris kifejezés „%s”: %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "nem eldobható jogosultságok" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "nem olvasható két adatbázis a standard inputról" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "nem lehet stat() '%s'" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "I/O hiba a standard kimenetre írás közben" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "fájlnév túl hosszú: %zu" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "fájlrendszer hiba: nulla méretű fájlnév az %s könyvtárban" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "nem lehet ideiglenes fájlt nyitni „%s”-nek" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "a konfiguráció túl nagy" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "nem található csoport „%s”" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "nem lehet megváltoztatni a file csoportját `%s'-ról `%s'-re" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "nem lehet megváltoztatni a(z) „%s” file jogosultságait" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "„%s” zárolás alatt (valószínűleg egy korábbi updatedb miatt)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "„%s” nem zárolható" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "a(z) `%s' könyvtárba lépés sikertelen" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "I/O hiba „%s” írása közben" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "hiba „%s” cseréjekor" mlocate-0.26/po/bg.gmo0000664000175000017500000002234512027217356011535 000000000000003GLh4iF# "71L~ 0>Uo*+  # 0 @ a ) '   % * < &N .u    ) ! 85 $n   '  ".%T$p""!*HeU9!37&kb66K2QC/BArOPDUZ^XT<]&H/oN{8j?2X So y H=!9!5!?!#6"7Z"N"G"W)#@#,#A#>1$2p$A$ 1!*"$0+)('2  &3.  ,- /%# %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-03-13 15:32+0000 Last-Translator: Valentin Laskov Language-Team: Bulgarian Language: bg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %'ju байт в имена на файлове %'ju байта в имена на файлове %'ju байт, използван за базата данни %'ju байта, използвани за базата данни %'ju·директория %'ju·директории %'ju файл %'ju файла Съобщавайте за грешки на %s. --%s е зададен два пъти--%s·ще пренебрегне предишен аргумент на командния редАвторско право·(C)·2007·Red·Hat,·Inc.·Всички права запазени. Софтуерът се разпространява под лиценз GPL·v.2. Тази програма е предоставена БЕЗ ГАРАНЦИИ.База данни %s: Вх/Изх грешка при четене на `%s'Вх/Изх грешка при търсене в `%s'Вх/Изх грешка при запис в `%s'Вх/Изх грешка при запис на стандартния изходУпотреба: updatedb [OPTION]... Обновява базата данни на mlocate. -f, --add-prunefs FS пропусни и FS -n, --add-prunenames NAMES пропусни и NAMES -e, --add-prunepaths PATHS пропусни и PATHS -U, --database-root PATH поддървото за запис в базата данни (по подразбиране "/") -h, --help отпечатва този помощен текст -o, --output FILE база данни за обновяване (по подразбиране `%s') --prune-bind-mounts FLAG пропуска bind mounts (по подразбиране "no") --prunefs FS пропусни файловата система FS от БД --prunenames NAMES пропусни директориите с имена NAMES от БД --prunepaths PATHS пропусни пътищата от базата данни -l, --require-visibility FLAG провери видимостта преди да докладваш файлове (по подразлиране "yes") -v, --verbose отпечатвай пътищата на файловете така, както са намерени -V, --version отпечатай информация за версията Подразбиращите се настройки са в `%s'. `%s' не изглежда да е база данни на mlocate`%s' е с неизвестна версия %u`%s' е с неизвестен флаг за видимост %u`%s' е заключен (вероятно от друг updatedb процес)очаква се знак `=' след името на променливатане мога да променя директорията на `%s'не може да бъде променена групата на файл `%s' на `%s'не могат да бъдат променени позволенията на файл `%s'неуспех при опит за работа с по-ниски привилегиине може да бъде намерена група `%s'не може да се определи текущата работна директорияне мога да заключа `%s'не може да бъде отворен `%s'не може да бъде отворен временен файл за `%s'не е възможно да бъдат прочетени две бази данни от стандартния входне може да се изпълни stat () за `%s'конфигурацията е прекалено голямагрешка при заместване на `%s'прекалено голяма дължина %zu на името на файл в `%s'дължина %zu на името на файл е прекалено голямагрешка във файловата система: файл с нулева дължина в директория %sневалидно празно име на директория в `%s'невалиден регулярен израз `%s': %sневалидна стойност·`%s'·за·--%sневалидна стойност `%s' за PRUNE_BIND_MOUNTSлипсва затваряща `"'не е зададен шаблон за търсенеаргументи не-опции не са позволени след·--%sнеочакван край на файл при четене на `%s'неочаквани данни след стойността на променливанеочакван операнд на командния реднепозната променлива `%s'стойност в кавички се очаква след `='променливата `%s' вече е дефиниранаочаква се име на променливавнимание: Препълване на броя редовеmlocate-0.26/po/quot.sed0000644000175000017500000000023111402714566012113 00000000000000s/"\([^"]*\)"/“\1”/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“”/""/g mlocate-0.26/po/ast.po0000664000175000017500000003137612027217356011574 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # mitr , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-02-14 08:16+0000\n" "Last-Translator: Miloslav Trmač \n" "Language-Team: Asturian (http://www.transifex.com/projects/p/fedora/language/" "ast/)\n" "Language: ast\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "atención: númberu de llinia escedíu" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "falta zarrar `\"'" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "nun pudo abrise `%s'" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "variable desconocida `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "esperábase'l nome de la variable" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "la variable `%s' ya foi definida" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "esperábase `=' dempués del nome de la variable" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "dempués de `=' esperábase un valor en cuotes" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "valor non válidu `%s' de PRUNE_BIND_MOUNTS" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "datos nun esperaos dempués del valor de la variable" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "Fallu E/S al lleer `%s'" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "Usu: updatedb [OPTION]...\n" "Anova la base de datos mlocate.\n" "\n" " -f, --add-prunefs FS tamién omitir FS\n" " -n, --add-prunenames NAMES tamién omitir NAMES\n" " -e, --add-prunepaths PATHS tamién omitir PATHS\n" " -U, --database-root PATH el subárbol p'atroxar la base de datos " "(default \"/\")\n" " -h, --help imprentar esta aida\n" " -o, --output FILE base de datos p'anovar (por defeutu\n" " `%s')\n" " --prune-bind-mounts FLAG omitir montaxe mint (por defeutu \"no\")\n" " --prunefs FS omitir sistema de ficheros dende base de " "datos\n" " --prunenames NAMES omitir nomes de direutorios dende base de " "datos\n" " --prunepaths PATHS caminos a omitir dende base de datos\n" " -l, --require-visibility FLAG comprebar visibilidá dempués de informar " "los ficheros\n" " (por defeutu \"yes\")\n" " -v, --verbose imprentar caminos de ficheros que foron " "atopaos\n" " -V, --version imprentar información de versión\n" "\n" "Lleer los valores por defeutu de configuración dende\n" "`%s'.\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Reportar fallos a %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "nun foi dable acceder al direutoriu actual de trabayu" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s debería sobroescribir aína l'argumentu na llinia de comandos" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "valor `%s' nun válidu pa --%s" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s especificáu dos vegaes" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Copyright (C) 2007 Red Hat, Inc. Tolos drechos reservaos.\n" "Esti programa ye provistu ENSIN GARANTÍA, fasta lo que seya permitío pola " "llei." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "operador inesperáu en llinia de comandos" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "`%s' nun parez ser una base de datos de mlocate" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "`%s' tien una version desconocida de %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "`%s' tien un señalador de visibilidá desconocíu %u" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "final de ficheru inesperáu al lleer `%s'" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "fallu d'E/S al guetar en `%s'" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "Base de datos %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju direutoriu\n" msgstr[1] "\t%'ju direutorios\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju ficheru\n" msgstr[1] "\t%'ju ficheros\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju byte nos nomes de ficheru\n" msgstr[1] "\t%'ju bytes nos nomes de ficheru\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\t%'ju byte usáu p'atroxar la base de datos\n" msgstr[1] "\t%'ju bytes usaos p'atroxar la base de datos\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "nome de direutoriu ermu nun válidu en `%s'" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "el tamañu del nome del ficheru %zu en `%s ye abondu llargu" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "Uso: locate [OPCION]... [PATRON]...\n" "Gueta entraes nuna base de datos de mlocate.\n" "\n" " -b, --basename correspuende namái el nome de la base de la " "direición\n" " -c, --count amuesa namái'l númberu de les correspondencies " "llocalizaes\n" " -d, --database DBPATH usar DBPATH en llugar de la base de datos por " "defeutu (que ye\n" " %s)\n" " -e, --existing amuesa namái les entraes de los ficheros " "esistentes\n" " -L, --follow siguir enllaces simbólicos subsiguientes al " "chequear la esistencia de ficheros (por defeutu)\n" " -h, --help amuesa esta aida\n" " -i, --ignore-case inora mayúscules y minúscules na gueta\n" " -l, --limit, -n LIMIT llimita la salida (o la cuenta) a un determináu " "númberu d'entraes\n" " -m, --mmap inoráu, pa compatibilidaes regresives\n" " -P, --nofollow, -H non siguir enllaces simbólicos subsiguientes cuando " "se verifica la esistencia de ficheros\n" " -0, --null dixebrar les entraes con NUL na salida\n" " -S, --statistics non guetar entraes, amosar estadístiques sobro cada " "base de datos usada\n" " -q, --quiet non reportar mensaxes de fallu sobro la lleutura de " "la base de datos\n" " -r, --regexp REGEXP guetar regexp básicos en llugar de patrones\n" " --regex los patrones son regexp estendíes\n" " -s, --stdio inorando, pa compatibilidaes regresives\n" " -V, --version amuesa información de la versión\n" " -w, --wholename amuesa la direición completa del nome (por " "defeutu)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "nun son permitíos argumentos ensin opción con --%s" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "dengún patrón de gueta especificáu" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "espresión regular non válida `%s': %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "nun pudieron abandonase privilexos" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "nun pudieron lleese dos bases de datos cola entrada patrón" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "nun pudo facese stat () `%s'" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "fallu d'E/S al intentar escribir sobro la entrada patrón " #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "el nome del ficheru %zu ye enforma llargu" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "nun pudo abrise un ficheru temporal pa `%s'" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "la configuración ye mui estensa" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "nun pudo alcontrase'l grupu `%s'" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "nun pudo camudase'l grupu del ficheru `%s' pa `%s'" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "nun pudo camudase los permisos del ficheru `%s'" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "`%s' ta bloquiáu (dablemente a causa d'un updatedb anterior)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "nun pudo bloquiase `%s'" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "nun pudo camudase'l direutoriu a `%s'" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "fallu d'E/S al escribir sobro `%s'" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "fallu al camudar `%s'" mlocate-0.26/po/hu.gmo0000664000175000017500000001671712027217357011570 000000000000003GLh4iF# "71L~ 0>Uo*+  # 0 @ a ) '   % * < &N .u    ) ! 85 $n   '  ".%T$p""!*H:M+y7!",@m)!;2]F$)>&<e + &/A3q"@03q114 >"YE|#$" .$L'q 1!*"$0+)('2  &3.  ,- /%# %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-02-14 08:16+0000 Last-Translator: Zoltan Hoppár Language-Team: Hungarian Language: hu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %'ju bájt a fájlnevekben %'ju bájt a fájl nevekben %'ju bájt tárolva az adatbázisban %'ju bájt tárolva az adatbázisban %'ju mappa %'ju mappa %'ju fájl %'ju fájl Hiba bejelentése: %s. --%s kétszer lett megadva--%s felülírná a korábbi parancssori argumentumokatSzerzői jog (C) 2007 Red Hat, Inc. Minden jog fenntartva. E szoftvert a GPL v.2 alatt terjesztik. E programot GARANCIA NÉLKÜL adják, amennyire a törvényes keretek engedik.Adatbázis %s: I/O hiba „%s” olvasásakorI/O hiba „%s”-ben kereséskorI/O hiba „%s” írása közbenI/O hiba a standard kimenetre írás közbenHasználat: updatedb [OPCIÓK]... Az mlocate adatbázis frissítése. -f, --add-prunefs FS mellőzi FS-t -n, --add-prunenames NEVEK mellőzi a NEVEKet -e, --add-prunepaths ÚTVONALAK mellőzi az ÚTVONALAKat -U, --database-root ÚTVONAL az adatbázisban tárolandó részfa (alapértelmezett: "/") -h, --help kiírja ezt a segítséget -o, --output FILE adatbázis frissítése (alapértelmezett „%s”) --prune-bind-mounts FLAG mellőzi a csatolt köteteket (alapértelmezett: „no”) --prunefs FS fájlrendszerek mellőzése az adatbázisból --prunenames NEVEK mappa nevek mellőzése az adatbázisból --prunepaths ÚTVONALAK útvonalak mellőzése az adatbázisból -l, --require-visibility FLAG láthaság ellenőrzése jelentés előtt (alapértelmezett "yes") -v, --verbose a fájl kiíratása a megtalált útvonalon -V, --version verzió információk kiírása A konfiguráció alapértelmezett értékeinek olvasása innen: „%s”. „%s” nem tűnik mlocate adatbázisnak'%s'-nek ismeretlen változata %u'%s'-nek %u ismeretlen láthatósági jelzése van„%s” zárolás alatt (valószínűleg egy korábbi updatedb miatt)hiányzó `=' a változónév után a(z) `%s' könyvtárba lépés sikertelennem lehet megváltoztatni a file csoportját `%s'-ról `%s'-renem lehet megváltoztatni a(z) „%s” file jogosultságaitnem eldobható jogosultságoknem található csoport „%s”nem érhető el a jelenlegi munkakönyvtár„%s” nem zárolható„%s” nem nyitható megnem lehet ideiglenes fájlt nyitni „%s”-neknem olvasható két adatbázis a standard inputrólnem lehet stat() '%s'a konfiguráció túl nagyhiba „%s” cseréjekora(z) %zu neve túl hosszú itt: %sfájlnév túl hosszú: %zufájlrendszer hiba: nulla méretű fájlnév az %s könyvtárbannem érvényes üres könyvtárnév ebben: „%s”nem érvényes reguláris kifejezés „%s”: %s„%s” érvénytelen értéke a --%s parancsnak `%s' nem érvényes érték a PRUNE_BIND_MOUNTS-rahiányzó bezáró „"”nem található minta a keresésrenem opcionális argumentumok nem megengedettek a következővel --%snem várt EOF „%s” olvasásakornem várt adat a változónév utánnem várt operandus a parancssoron„%s” ismeretlen változóértékadás hiányzik `=' jel után„%s” változó már definiálva vanhiányzó változónévhiba: Sorszám túlcsordulásmlocate-0.26/po/uk.gmo0000664000175000017500000002254512027217357011567 000000000000003GLh4iF# "71L~ 0>Uo*+  # 0 @ a ) '   % * < &N .u    ) ! 85 $n   '  ".%T$p""!*H9 G5>Q"n"7CPKKl,,e(=O?I?QA4]4U3*QR|a51 .g 0 9 /!1!K!,":-"Ih"<"8"V(#9#J#J$"O$Fr$+$.$P% 1!*"$0+)('2  &3.  ,- /%# %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-02-14 08:16+0000 Last-Translator: Yuri Chornoivan Language-Team: Ukrainian Language: uk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); %'ju байт у назвах файлів %'ju байти у назвах файлів %'ju байтів у назвах файлів %'ju байти використано для зберігання бази даних %'ju байти використано для зберігання бази даних %'ju байтів використано для зберігання бази даних %'ju каталог %'ju каталоги %'ju каталогів %'ju файл %'ju файли %'ju файлів Звіт про помилки надсилайте до %s. --%s визначено двічі--%s перевизначить вказаний раніше аргумент командного рядка(C) 2007 Red Hat, Inc. Всі права захищені. Ця програма поширюється на умовах ліцензії GPL v.2. Програма поширюється БЕЗ ГАРАНТІЙ, у межах, що припускаються законом.База даних %s: Помилка вводу/виводу при читанні «%s»помилка вводу/виводу під час пошуку у «%s»помилка вводу/виводу під час запису у «%s»помилка вводу/виводу під час запису до стандартного виводуЗастосування: updatedb [ПАРАМЕТРИ]... Оновлення бази даних mlocate. -f, --add-prunefs ФС пропускати вказані ФС -n, --add-prunenames НАЗВИ пропускати НАЗВИ -e, --add-prunepaths ШЛЯХИ пропускати ШЛЯХИ -U, --database-root ШЛЯХ піддерево, зберігається у базі даних (типово "/") -h, --help вивести цю довідку -o, --output FILE база даних для оновлення (типово `%s') --prune-bind-mounts ПРАПОР пропускати точки підключення (типово "немає") --prunefs ФС ФС для виключення з бази даних --prunenames НАЗВИ каталог для виключення з баз даних --prunepaths ШЛЯХИ шляхи для виключення з бази даних -l, --require-visibility ПРАПОР перевірити наявні файли перед додаванням (типово "так") -v, --verbose вивести шляхи до знайдених файлів -V, --version вивести інформацію про версію Типові параметри отримані з «%s». «%s» не є базою даних mlocateневідома версія «%s»: %u«%s» має невідомий видиму ознаку %u«%s» заблоковано (можливо більш раннім updatedb)«=» очікується після імені змінноїне вдається змінити каталог на «%s»не вдається з мінити групу файлу з «%s» на «%s»не вдається змінити права файлу «%s»неможливо понизити привілеїне вдається знайти групу «%s»не вдається отримати поточний робочий каталогне вдається заблокувати «%s»неможливо відкрити «%s»не вдається відкрити тимчасовий файл для «%s»неможливо читати дві бази даних з стандартного вводуне вдається виконати stat () «%s»конфігурація дуже великапомилка під час заміни «%s»надто довга назва файлу %zu у «%s»надто довга назва файлу %zuпомилка у файловій системі: файл з назвою нульової довжини у каталозі %sнедійсна назва порожнього каталогу у «%s»неприпустимий regexp «%s»: %sнеправильне значення «%s» для --%sнеприпустиме значення «%s» для PRUNE_BIND_MOUNTSвідсутній завершальний символ `"'не визначено шаблон для пошукуне є аргументом параметра або не дозволено з --%sнеочікуваний EOF при читанні «%s»неочікувані дані після значення змінноїнеочікуваний операнд у командному рядкуневідома змінна `%s'значення у дужках очікується після «=»змінна `%s' вже визначенаочікування назви змінноїпопередження: кількість рядків переповненоmlocate-0.26/po/LINGUAS0000664000175000017500000000034611724322062011455 00000000000000# To regenerate: (cd po; ls | sed -n 's/\.po$//p'). Then remove languages with # no translations. ar as ast bg bs ca cs da de el en_GB es et fa fi fr gu hu it ja ko lv ms nds nl pl pt pt_BR ru sr sr@latin sv ta tr uk zh_CN zh_TW mlocate-0.26/po/ta.po0000664000175000017500000002573312027217356011411 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # Felix I , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-02-14 08:16+0000\n" "Last-Translator: Miloslav Trmač \n" "Language-Team: Tamil \n" "Language: ta\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "" #: src/conf.c:358 msgid "variable name expected" msgstr "" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" #: src/conf.c:482 msgid "can not get current working directory" msgstr "" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "" msgstr[1] "" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "»%'ju files\n" msgstr[1] "»%'ju files\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "" msgstr[1] "" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "" "»%'ju bytes used to " "store database\n" msgstr[1] "" "»%'ju bytes used to " "store database\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "" #: src/locate.c:949 msgid "can not drop privileges" msgstr "" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "" mlocate-0.26/po/as.gmo0000664000175000017500000002430112027217356011542 000000000000003GLh4iF# "71L~ 0>Uo*+  # 0 @ a ) '   % * < &N .u    ) ! 85 $n   '  ".%T$p""!*HQsE? AKm%>@ XNILI>\_HEJR^, > ; ^!+e!'!o!~)","&"*"f'#J##L$$%$2%6E%{|%u%Un&R&f'!~'S':'4/(\d( 1!*"$0+)('2  &3.  ,- /%# %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-02-15 12:54+0000 Last-Translator: ngoswami Language-Team: Assamese (http://www.transifex.com/projects/p/fedora/language/as/) Language: as MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); নথিপত্ৰৰ নামসমূহত %'ju বাইট নথিপত্ৰৰ নামসমূহত %'ju বাইটসমূহ ডাটাবেইচ সঞ্চয় কৰিবলে ব্যৱহৃত %'ju বাইট ডাটাবেইচ সঞ্চয় কৰিবলে ব্যৱহৃত %'ju বাইটসমূহ %'ju ডাইৰেকটৰি %'ju ডাইৰেকটৰিসমূহ %'ju নথিপত্ৰ %'ju নথিপত্ৰসমূহ বাগসমূহ %s লে সংবাদন কৰক. --%s দুবাৰ ধাৰ্য্য কৰা হৈছে--%s -এ পুৰ্বৰ কমান্ড-লাইন তৰ্ক পুনৰ লিখি দিবস্বত্বাধিকাৰ (C) 2007 Red Hat, Inc. সকলো অধিকাৰ সংৰক্ষীত। এই চফ্টওৱেৰ GPL v.2 -ৰ অন্তৰ্গত বিলোৱা হৈছে। এই প্ৰগ্ৰামৰ লগত কোনো ওৱাৰেন্টি নাহে, আইন অনুমোদিত বিস্তাৰ লৈকে।ডাটাবেইচ %s: I/O পঢ়া ত্ৰুটি `%s'`%s' বিচাৰোতে এটা I/O ত্ৰুটি`%s' -লে লিখোতে এটা I/O ত্ৰুটিপ্ৰামানিক ইনপুটলে লিখতে I/O ত্ৰুটিব্যৱহাৰ: updatedb [বিকল্প]... এটা mlocate ডাটাবেইচ আপডেইট কৰক -f, --add-prunefs FS FS -কো বাদ দিয়ক -n, --add-prunenames NAMES NAMES -কো বাদ দিয়ক -e, --add-prunepaths PATHS PATHS -কো বাদ দিয়ক -U, --database-root PATH ডাটাবেইচত সঞ্চয় কৰিব লগিয়া সাবট্ৰি (default "/") -h, --help এই সহায় প্ৰিন্ট কৰক -o, --output FILE আপডেইট কৰিবলে ডাটাবেইচ (default `%s') --prune-bind-mounts FLAG বন্দা মাউন্টসমূহ বাদ দিয়ক (অবিকল্পিত "no") --prunefs FS ডাটাবেইচৰ পৰা বাদ দিব লগা নথিপত্ৰপ্ৰণালী --prunenames NAMES ডাটাবেইচৰ পৰা বাদ দিব লগা ডাইৰেকটৰি নামসমূহ --prunepaths PATHS ডাটাবেইচৰ পৰা বাদ দিব লগা পথসমূহ -l, --require-visibility FLAG নথিপত্ৰসমূহ সংবাদন কৰাৰ আগতে দৃশ্যমানতা নিৰিক্ষণ কৰক (অবিকল্পিত "yes") -v, --verbose নথিপত্ৰসমূহৰ পথ প্ৰিন্ট কৰে যেতিয়া পোৱা যায় -V, --version সংস্কৰণ তথ্য প্ৰিন্ট কৰিব মানসমূহ পঢ়িবলে সংৰূপ অবিকল্পিতসমূহ `%s'. `%s' এটা mlocate ডাটাবেইচ যেন নালাগে`%s' -ৰ এটা অজ্ঞাত সংস্কৰণ %u আছে`%s' -ৰ এটা অজ্ঞাত দৃশ্যমান ফ্লেগ %u আছে`%s' লক্ড (সম্ভবত এটা পুৰ্বৰ updatedb দ্বাৰা)চলক নামৰ পিচত `=' আশা কৰা হৈছেডাইৰেকটৰিক `%s' লে সলাব নোৱাৰিনথিপত্ৰ `%s' -ৰ দল `%s' লে সলাব নোৱাৰিনথিপত্ৰ `%s' -ৰ অনুমতিসমূহ সলাব নোৱাৰিসুবিধাসমূহ এৰিব নোৱাৰিদল `%s' বিচাৰি পোৱা নাযায়বৰ্তমান কাৰ্যৰত ডাইৰেকটৰি পোৱা নগল`%s' লক কৰিব নোৱাৰি`%s' খুলিব নোৱাৰি`%s' -ৰ বাবে এটা অস্থায়ী নথিপত্ৰ খুলিব নোৱাৰিপ্ৰামানিক ইনপুটৰ পৰা দুটা ডাটাবেইচ পঢ়িব নোৱাৰিstat () `%s' কৰিব নোৱাৰিসংৰূপ অতি ডাঙৰ`%s' সলাওতে ত্ৰুটিনথিপত্ৰ নামৰ দৈৰ্ঘ %zu `%s' -ৰ বাবে অতি ডাঙৰনথিপত্ৰ নাম দৈৰ্ঘ %zu অতি ডাঙৰনথিপত্ৰ প্ৰনালী ত্ৰুটি: ডাইৰেকটৰি %s ত শূন্য-দৈৰ্ঘ্য নথিপত্ৰ নাম`%s' -ত অবৈধ ৰিক্ত ডাইৰেকটৰি নামঅবৈধ regexp `%s': %s--%s -ৰ অবৈধ মান `%s'PRUNE_BIND_MOUNTS -ৰ অবৈধ মান `%s'বন্ধ কৰা `"' সন্ধানহীনধাৰ্য্য কৰাৰ কাৰণে বিচাৰিবলে কোনো বিন্যাস নাই--%s -ৰ সৈতে বিকল্প নোহোৱা তৰ্কসমূহৰ অনুমতি আছে`%s' পঢ়ি থাকোতে এটা অপ্ৰত্যাশীত EOFষ চলক মানৰ পিছত অপ্ৰত্যাশিত তথ্যকমান্ড লাইনত অপ্ৰত্যাশীত কাৰ্য্যকাৰকঅজ্ঞাত চলক `%s'`=' -ৰ পিছত কৌট্চত মান আশা কৰা হৈছেচলক `%s' ইতিমধ্যে বৰ্ণিতচলক নাম আশা কৰা হৈছেসতৰ্কবাৰ্তা: শাৰী নম্বৰ উপচি পৰিছেmlocate-0.26/po/pt.po0000664000175000017500000003215312027217356011422 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # mitr , 2011. # Rui Gouveia , 2012. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-02-15 00:52+0000\n" "Last-Translator: Rui Gouveia \n" "Language-Team: Portuguese \n" "Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "Aviso: Número da linha excede limite" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "falta fecho `\"'" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "incapaz de abrir `%s'" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "Variável desconhecida `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "esperado nome de variável" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "variável `%s' já está definida" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "`=' esperado depois do nome de variável" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "valor entre aspas esperado após `='" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "valor inválido `%s' de PRUNE_BIND_MOUNTS" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "dados inesperados depois do valor da variável" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "erro de I/O ao ler `%s'" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "Utilização: updatedb [OPÇÕES]...\n" "Actualizar uma base de dados mlocate.\n" "\n" " -f, --add-prunefs FS omitir também FS\n" " -n, --add-prunenames NOMES omitir também NOMES\n" " -e, --add-prunepaths CAMINHOS omitir também CAMINHOS\n" " -U, --database-root CAMINHO a sub-árvore para armazenar " "a base de dados (por omissão \"/\")\n" " -h, --help mostrar esta ajuda\n" " -o, --output FILE base de dados a actualizar (por omissão\n" " `%s')\n" " --prune-bind-mounts MARCA omitir pontos de montagem (por omissão \"no" "\")\n" " --prunefs FS sistemas de ficheiros a omitir da base de " "dados\n" " --prunenames NOMES nomes de directórios a omitir da base de " "dados\n" " --prunepaths CAMINHOS caminhos a omitir da base de dados\n" " -l, --require-visibility MARCA verificar visibilidade antes de reportar " "ficheiros\n" " (por omissão \"yes\")\n" " -v, --verbose mostrar caminhos de ficheiros assim que são " "encontrados\n" " -V, --version mostrar informação da versão\n" "\n" "Os valores da configuração por omissão são lidos de\n" "`%s'.\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Reporte erros para %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "incapaz de obter o directório de trabalho actual" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s vai sobrepor-se a argumentos de linha de comando anteriores" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "valor inválido `%s' de --%s" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s especificado duas vezes" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "operando inesperado na linha de comando" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "`%s' não parece ser uma base de dados mlocate" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "`%s' tem uma versão desconhecida %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "`%s' tem uma marca de visibilidade desconhecida %u" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "EOF inesperado ao ler %s" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "erro de I/O ao pesquisar em `%s'" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "Base de dados %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju directório\n" msgstr[1] "\t%'ju directórios\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju ficheiro\n" msgstr[1] "\t%'ju ficheiros\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju byte no nome dos ficheiros\n" msgstr[1] "\t%'ju bytes no nome dos ficheiros\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\t%'ju byte utilizado para guardar base de dados\n" msgstr[1] "\t%'ju bytes utilizados para guardar base de dados\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "nome de directório vazio inválido em `%s'" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "tamanho do nome do ficheiro %zu em `%s' é grande demais" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "Utilização: locate [OPÇÂO]... [PADRÃO]...\n" "Pesquisar por registos numa base de dados mlocate.\n" "\n" " -b, --basename corresponder apenas com a base do nome dos " "caminhos\n" " -c, --count mostrar apenas o número de entradas encontradas\n" " -d, --database DBPATH utilizar DBPATH em vez da base de dados standard " "(que é\n" " %s)\n" " -e, --existing mostrar apenas registos para ficheiros existentes " "actualmente\n" " -L, --follow seguir links simbólicos quando verifica a " "existência de ficheiros\n" " (valor por omissão)\n" " -h, --help mostrar esta ajuda\n" " -i, --ignore-case ignorar capitalização durante a correspondência com " "padrões\n" " -l, --limit, -n LIMITE limitar resultados (ou contadores) a LIMITE " "registos\n" " -m, --mmap ignorado, para compatibilidade para trás\n" " -P, --nofollow, -H não seguir links simbólicos quando verifica a " "existência de\n" " ficheiros\n" " -0, --null separar registos com NUL na saída\n" " -S, --statistics não pesquisar por registos, mostrar estatísticas " "acerca de cada\n" " base de dados utilizada\n" " -q, --quiet não reportar mensagens de erro acerca a leitura de " "base de dados\n" " -r, --regexp REGEXP pesquisar pela expressão regular básica REGEXP em " "vez de padrões\n" " --regex padrões são expressões regulares estendidas\n" " -s, --stdio ignorado, para compatibilidade para trás\n" " -V, --version mostrar informação de versão\n" " -w, --wholename corresponder com caminho completo (valor por " "omissão)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "argumentos extra-opções não são permitidos com --%s" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "sem padrão a ser procurado para especificado" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "expressão regular inválida `%s': %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "incapaz de largar privilégios" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "incapaz de ler duas bases de dados da entrada standard" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "incapaz de executar o stat () `%s'" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "erro de I/O ao escrever para a saída por omissão" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "tamanho do nome do ficheiro %zu é grande demais" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "" "erro sistema ficheiros: nome de ficheiro com tamanho zero no directório %s" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "incapaz de abrir ficheiro temporário para `%s'" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "o ficheiro de configuração é grande demais" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "incapaz de encontrar grupo `%s'" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "incapaz de alterar o grupo do ficheiro `%s' para `%s'" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "incapaz de alterar as permissões do ficheiro `%s'" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "" "`%s' está bloqueado (provavelmente por uma instância do updatedb anterior)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "Incapaz de bloquear '%s'" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "incapaz de alterar directório para `%s'" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "erro de I/O ao escrever para `%s'" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "erro ao substituir `%s'" mlocate-0.26/po/sr.gmo0000664000175000017500000002166012027217357011571 00000000000000.=1M  $>*^+r  # 0  0 )Q '{   %   & .D s   ) ! $ ) A '\  " .  $ "+ N "d !    *)Z {/42OPG#4kMZHIJTL287R,C*pUkJ],)RFRU?8/ Uh ) : W#!^{!V!E1"0w"U">"3=#>q#!-% & ',* ".)+ #  ($ Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largeinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-02-14 08:16+0000 Last-Translator: Miloslav Trmač Language-Team: Serbian Language: sr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); Пријавите грешке на %s. --%s дефинисано два пута--%s би премостило ранији аргумент командне линијеАуторска права 2007 Red Hat, Inc. Сва права задржана. Овај софтвер се дистрибуира под ГЈЛ верзије 2. Овај програм долази БЕЗ ГАРАНЦИЈЕ, у оквиру дозвољеним законом.База података %s: У/И грешка при читању „%s“У/И грешка при тражењу у „%s“У/И грешка при писању у „%s“У/И грешка при читању са стандардног излазаУпотреба: updatedb [ОПЦИЈЕ]... Ажурира mlocate базу података. -f, --add-prunefs СД изостави систем датотека -n, --add-prunenames НАЗИВИ изостави НАЗИВЕ -e, --add-prunepaths ПУТАЊЕ изостави ПУТАЊЕ -U, --database-root ПУТАЊА подстабло за чување базе података (подразумевано „/“) -h, --help одштампај ову помоћ -o, --output ДАТОТЕКА база података за ажурирање (подразумевано „%s“) --prune-bind-mounts ОЗНАКА изостави везнике монтирања (подразумевано „не“) --prunefs СД системи датотека који се изостављају из базе података --prunenames НАЗИВИ називи директоријума који се изостављају из базе података --prunepaths ПУТАЊЕ путање које се изостављају из базе података -l, --require-visibility ОЗНАКА провери видљивост пре извештавању о датотекама (подразумевано „да“) -v, --verbose штампа путање датотека како се проналазе -V, --version штампа информације о верзији Подразумеване вредности подешавања прочитане из „%s“. „%s“ изгледа да није mlocate база података„%s“ има непознату верзију %u„%s“ има непознати индикатор видљивости %u„%s“ је закључана (вероватно ранијом updatedb радњом)„=“ се очекује после назива променљивене могу да променим директоријум на „%s“не могу да променим групу датотеке „%s“ у „%s“не могу да променим дозволе датотеке „%s“не могу да уклоним привилегијене могу да пронађем групу „%s“не могу да добијем текући радни директоријумне могу да закључам „%s“не могу да отворим „%s“не могу да отворим привремену датотеку за „%s“не могу да прочитам две базе података са стандардног улазане могу да извршим функцију stat () над „%s“подешавање је превеликогрешка при замени „%s“дужина %zu назива датотеке у „%s“ је превеликадужина %zu назива датотеке је превеликанеисправан назив празног директоријума у „%s“неисправан регуларни израз „%s“: %sнеисправна вредност „%s“ за --%sнеисправна вредност „%s“ PRUNE_BIND_MOUNTS променљивенедостаје завршно „"“шаблон за претрагу није наведенаргументи који нису опције нису дозвољени са --%sнеочекивани завршетак датотеке (EOF ) при читању „%s“неочекиван податак после вредности променљивенеочекивани оператор командне линијенепозната променљива „%s“вредност у наводницима је очекивана после „=“променљива „%s“ је већ дефинисанаочекује се назив променљивеупозорење: прекорачен број линијаmlocate-0.26/po/fi.gmo0000664000175000017500000000676112027217356011547 00000000000000#4/L4 F># +*K+v0  '=U%m!'6^"r"! #:f$  ,   #" (F )o / ) 9 0- ^ '|      "0 S 'k *  *  $ 1C $u  !  " !   #  %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twiceDatabase %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard output`%s' does not seem to be a mlocate database`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not stat () `%s'error replacing `%s'file name length %zu is too largeinvalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiedunexpected EOF reading `%s'unexpected operand on command lineunknown variable `%s'variable `%s' was already definedvariable name expectedProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-04-21 14:38+0000 Last-Translator: Juhani Numminen Language-Team: Finnish (http://www.transifex.com/projects/p/fedora/language/fi/) Language: fi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %'ju tavu tiedostonimissä %'ju tavua tiedostonimissä %'ju tavu käytetty tietokannan säilyttämiseen %'ju tavua käytetty tietokannan säilyttämiseen %'ju kansio %'ju kansiota %'ju tiedosto %'ju tiedostoa Ilmoita ohjelmistovioista osoitteeseen %s. --%s määritetty kahdestiTietokanta %s: I/O-virhe luettaessa tiedostoa "%s"I/O-virhe etsittäessä tiedostossa "%s"I/O-virhe kirjoitettaessa tiedostoon "%s"I/O-virhe kirjoitettaessa standarditulosteeseen`%s' ei vaikuta olevan mlocate-tietokanta`%s' on lukittu (luultavasti aiemman updatedb:n toimesta)odotettiin merkkiä "=" muuttujan nimen jälkeenkansioon "%s" ei voi siirtyätiedoston "%s" oikeuksia ei voi muuttaaei voida pudottaa oikeuksiaryhmää "%s" ei löydytyökansiota ei saada selvilletiedostoa "%s" ei voi lukitatiedostoa "%s" ei voi avatastat() ei onnistu tiedostolle "%s"virhe korvattaessa `%s'tiedostonimen pituus %zu on liian suuriepäkelpo säännöllinen lauseke `%s': %svirheellinen arvo `%s' --%s:llevirheellinen PRUNE_BIND_MOUNTS:n arvo `%s'puuttuva sulkeva `"'etsittävää kaavaa ei määritettyodottamaton loppumerkki luettaessa tiedostoa "%s"odottamaton operandi komentorivillätuntematon muuttuja `%s'muuttuja `%s' oli jo määriteltyodotettiin muuttujan nimeämlocate-0.26/po/sr@latin.po0000664000175000017500000003211312027217356012547 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # mitr , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-02-14 08:16+0000\n" "Last-Translator: Miloslav Trmač \n" "Language-Team: LANGUAGE \n" "Language: sr@latin\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "upozorenje: prekoračen broj linija" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "nedostaje završno „\"“" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "ne mogu da otvorim „%s“" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "nepoznata promenljiva „%s“" #: src/conf.c:358 msgid "variable name expected" msgstr "očekuje se naziv promenljive" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "promenljiva „%s“ je već definisana" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "„=“ se očekuje posle naziva promenljive" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "vrednost u navodnicima je očekivana posle „=“" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "neispravna vrednost „%s“ PRUNE_BIND_MOUNTS promenljive" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "neočekivan podatak posle vrednosti promenljive" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "U/I greška pri čitanju „%s“" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "Upotreba: updatedb [OPCIJE]...\n" "Ažurira mlocate bazu podataka.\n" "\n" " -f, --add-prunefs SD izostavi sistem datoteka\n" " -n, --add-prunenames NAZIVI izostavi NAZIVE\n" " -e, --add-prunepaths PUTANJE izostavi PUTANJE\n" " -U, --database-root PUTANJA podstablo za čuvanje baze podataka\n" " (podrazumevano „/“)\n" " -h, --help odštampaj ovu pomoć\n" " -o, --output DATOTEKA baza podataka za ažuriranje " "(podrazumevano\n" " „%s“)\n" " --prune-bind-mounts OZNAKA izostavi veznike montiranja " "(podrazumevano\n" " „ne“)\n" " --prunefs SD sistemi datoteka koji se izostavljaju iz\n" " baze podataka\n" " --prunenames NAZIVI nazivi direktorijuma koji se izostavljaju " "iz\n" " baze podataka\n" " --prunepaths PUTANJE putanje koje se izostavljaju iz baze " "podataka\n" " -l, --require-visibility OZNAKA proveri vidljivost pre izveštavanju o\n" " datotekama\n" " (podrazumevano „da“)\n" " -v, --verbose štampa putanje datoteka kako se " "pronalaze\n" " -V, --version štampa informacije o verziji\n" "\n" "Podrazumevane vrednosti podešavanja pročitane iz\n" "„%s“.\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Prijavite greške na %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "ne mogu da dobijem tekući radni direktorijum" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s bi premostilo raniji argument komandne linije" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "neispravna vrednost „%s“ za --%s" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s definisano dva puta" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Autorska prava 2007 Red Hat, Inc. Sva prava zadržana.\n" "Ovaj softver se distribuira pod GJL verzije 2.\n" "\n" "Ovaj program dolazi BEZ GARANCIJE, u okviru dozvoljenim zakonom." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "neočekivani operator komandne linije" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "„%s“ izgleda da nije mlocate baza podataka" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "„%s“ ima nepoznatu verziju %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "„%s“ ima nepoznati indikator vidljivosti %u" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "neočekivani završetak datoteke (EOF ) pri čitanju „%s“" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "U/I greška pri traženju u „%s“" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "Baza podataka %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "neispravan naziv praznog direktorijuma u „%s“" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "dužina %zu naziva datoteke u „%s“ je prevelika" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "Upotreba: locate [OPCIJA]... [ŠABLON]...\n" "Traži zapise u mlocate bazi podataka.\n" "\n" " -b, --basename poredi samo osnovne nazive naziva putanje\n" " -c, --count samo odštampaj broj pronađenih zapisa\n" " -d, --database PUTANJABP koristi PUTANJUBP umesto podrazumevane baze " "podataka\n" " (koja je %s)\n" " -e, --existing samo štampaj zapise za trenutno postojeće " "datoteke\n" " -L, --follow prati simboličke veze kada proveravaš " "postojanje\n" " datoteke (podrazumevano)\n" " -h, --help odštampaj ovu pomoć\n" " -i, --ignore-case zanemari razlike u veličini karaktera kada " "porediš\n" " šablone\n" " -l, --limit, -n GRANICA ograniči ispis (ili brojanje) na GRANICU zapisa\n" " -m, --mmap zanemareno, za povratnu kompatibilnost\n" " -P, --nofollow, -H nemoj pratiti simboličke veze kada proveravaš\n" " postojanje datoteke\n" " -0, --null odvojeni zapisi sa ničim na izlazu\n" " -S, --statistics ne traži zapise, odštampaj statistiku o svakoj\n" " korišćenoj bazi podataka\n" " -q, --quiet izvesti bez poruka o greškama pri čitanju baze\n" " podataka\n" " -r, --regexp REGIZ traži osnovni regularni izraz REGIZ umesto " "šablona\n" " --regex šabloni su prošireni regularni izraz\n" " -s, --stdio zanemareno, zbog povratne kompatibilnosti\n" " -V, --version odštampaj informacije o verziji\n" " -w, --wholename uporedi ceo naziv putanje (podrazumevano)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "argumenti koji nisu opcije nisu dozvoljeni sa --%s" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "šablon za pretragu nije naveden" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "neispravan regularni izraz „%s“: %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "ne mogu da uklonim privilegije" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "ne mogu da pročitam dve baze podataka sa standardnog ulaza" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "ne mogu da izvršim funkciju stat () nad „%s“" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "U/I greška pri čitanju sa standardnog izlaza" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "dužina %zu naziva datoteke je prevelika" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "ne mogu da otvorim privremenu datoteku za „%s“" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "podešavanje je preveliko" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "ne mogu da pronađem grupu „%s“" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "ne mogu da promenim grupu datoteke „%s“ u „%s“" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "ne mogu da promenim dozvole datoteke „%s“" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "„%s“ je zaključana (verovatno ranijom updatedb radnjom)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "ne mogu da zaključam „%s“" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "ne mogu da promenim direktorijum na „%s“" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "U/I greška pri pisanju u „%s“" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "greška pri zameni „%s“" mlocate-0.26/po/ru.po0000664000175000017500000003723012027217356011426 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # Misha Shnurapet , 2011. # mitr , 2011. # Yulia , 2012. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-09-22 04:08+0200\n" "Last-Translator: Yulia \n" "Language-Team: Russian \n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "внимание: Количество строк переполнено" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "отсутствуют закрывающие кавычки `\"'" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "невозможно открыть «%s»" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "неизвестная переменная `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "ожидание имени переменной" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "переменная `%s' уже определена" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "«=» ожидается после имени переменной" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "значение в кавычках ожидается после «=»" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "недопустимое значение «%s» для PRUNE_BIND_MOUNTS" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "непредвиденные данные после значения переменной" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "Ошибка ввода/вывода при чтении «%s»" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "Применение: updatedb [ОПЦИИ]...\n" "Обновление базы данные mlocate.\n" "\n" " -f, --add-prunefs ФС пропускать указанные ФС\n" " -n, --add-prunenames ИМЕНА пропускать ИМЕНА\n" " -e, --add-prunepaths ПУТИ пропускать ПУТИ\n" " -U, --database-root ПУТЬ поддерево, хранящееся в базе данных (по " "умолчанию \"/\")\n" " -h, --help вывести эту справку\n" " -o, --output FILE база данных для обновления (по умолчанию\n" " `%s')\n" " --prune-bind-mounts ФЛАГ пропускать точки подключения (по умолчанию " "\"нет\")\n" " --prunefs ФС ФС для исключения из базы данных\n" " --prunenames ИМЕНА каталог для исключения из базы данных\n" " --prunepaths ПУТИ пути для исключения из базы данных\n" " -l, --require-visibility ФЛАГ проверить существование файлов прежде чем " "добавлять\n" " (по умолчанию \"да\")\n" " -v, --verbose вывести пути к найденным файлам\n" " -V, --version вывести информацию о версии\n" "\n" "Используемые по умолчанию параметры получены из\n" "«%s».\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Отчёт об ошибках отправьте %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "не удаётся получить текущий рабочий каталог" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s переопределит заданный ранее аргумент командной строки" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "неверное значение «%s» для --%s" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s определен дважды" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "(C) 2007 Red Hat, Inc. Все права защищены.\n" "Это программное обеспечение распространяется в соответствии с условиями " "лицензии GPL v.2.\n" "\n" "Эта программа распространяется БЕЗ ГАРАНТИЙ, в пределах, допускаемых законом." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "непредвиденный операнд в командной строке" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "«%s» не является базой данных mlocate" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "неизвестная версия «%s»: %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "«%s» имеет неизвестный видимый флаг %u" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "неожиданный EOF при чтении «%s»" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "ошибка ввода/вывода при поиске в «%s»" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "База данных %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "»%'ju папка\n" msgstr[1] "»%'ju папки\n" msgstr[2] "»%'ju папок\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "»%'ju файл\n" msgstr[1] "»%'ju файла\n" msgstr[2] "»%'ju файлов\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "»%'ju байт в названии файла\n" msgstr[1] "»%'ju байта в названии файла\n" msgstr[2] "»%'ju байт в названии файла\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "база данных заняла »%'ju байт\n" msgstr[1] "база данных заняла »%'ju байта\n" msgstr[2] "база данных заняла »%'ju байт\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "недействительное имя пустого каталога в «%s»" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "слишком длинное имя файла %zu в «%s»" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "Применение: locate [ОПЦИИ]... [ОБРАЗЕЦ]...\n" "Поиск элементов в базе данных mlocate.\n" "\n" " -b, --basename только совпадения базового имени в имени пути\n" " -c, --count вывести только число вхождений\n" " -d, --database DBPATH использовать DBPATH вместо базы данных по умолчанию " "(\n" " %s)\n" " -e, --existing вывести вхождения только для существующих в данный " "момент файлов\n" " -L, --follow следовать символическим ссылкам при проверке\n" " файла на существование (значение по " "умолчанию)\n" "\n" " -h, --help показать эту справку\n" " -i, --ignore-case игнорировать регистр найденных совпадений\n" " -l, --limit, -n LIMIT ограничить вывод (или подсчёт) LIMIT вхождениями\n" " -m, --mmap игнорируется, для обратной совместимости\n" " -P, --nofollow, -H не следовать символическим ссылкам при проверке \n" " файла на существование\n" " -0, --null разделять вхождения с выводом NUL\n" " -S, --statistics не искать вхождений, печать статистики\n" " по используемой базе данных\n" " -q, --quiet не сообщать об ошибках чтения базы данных\n" " -r, --regexp REGEXP искать по регулярному выражению REGEXP вместо " "шаблонов\n" " --regex шаблоны расширенных регулярных выражений\n" " -s, --stdio игнорируется, для обратной совместимости\n" " -V, --version вывести информацию о версии\n" " -w, --wholename только целые имена пути (по умолчанию)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "не является аргументом опции или не разрешен с --%s" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "не определён шаблон для поиска" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "недопустимое regexp «%s»: %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "невозможно понизить привилегии" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "невозможно читать две базы данных из стандартного ввода" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "не удалось выполнить stat () «%s»" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "ошибка ввода/вывода во время записи в стандартный вывод" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "слишком длинное имя файла %zu" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "ошибка файловой системы: нулевая длина имени файла в %s" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "не удалось открыть временный файл для «%s»" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "конфигурация очень большая" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "не удалось найти группу «%s»" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "не удалось изменить группу файла с «%s» на «%s»" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "не удалось изменить права файла «%s»" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "«%s» заблокирован (возможно более ранним updatedb)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "не удалось заблокировать «%s»" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "не удалось перейти к каталогу «%s»" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "ошибка ввода/вывода во время записи в «%s»" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "ошибка замены «%s»" mlocate-0.26/po/tr.gmo0000664000175000017500000000167012027217357011571 00000000000000\ *A_#>PdDatabase %s: I/O error reading `%s'can not open `%s'missing closing `"'unknown variable `%s'variable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-02-14 08:16+0000 Last-Translator: Miloslav Trmač Language-Team: Turkish (http://www.transifex.com/projects/p/fedora/language/tr/) Language: tr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; Veritabanı %s: `%s' okunurken I/O hatasıaçılamadı `%s'missing closing `"'bilinmeyen değişken `%s'beklenen değişken adıuyarı: Hat numarası taşmasımlocate-0.26/po/tr.po0000664000175000017500000002012712027217356011422 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # Bilal Karaer , 2011. # Hasan Alp İNAN , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-02-14 08:16+0000\n" "Last-Translator: Miloslav Trmač \n" "Language-Team: Turkish (http://www.transifex.com/projects/p/fedora/language/" "tr/)\n" "Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "uyarı: Hat numarası taşması" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "missing closing `\"'" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "açılamadı `%s'" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "bilinmeyen değişken `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "beklenen değişken adı" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "`%s' okunurken I/O hatası" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" #: src/conf.c:482 msgid "can not get current working directory" msgstr "" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "Veritabanı %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "" #: src/locate.c:617 #, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "" #: src/locate.c:949 msgid "can not drop privileges" msgstr "" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "" mlocate-0.26/po/ca.gmo0000664000175000017500000001715512027217356011533 000000000000003GLh4iF# "71L~ 0>Uo*+  # 0 @ a ) '   % * < &N .u    ) ! 85 $n   '  ".%T$p""!*HFk;"D e1+D%p"3{0i#3;).)X43'4/d~-B'G9`2;% $/T+p#81%+2Q'2%%)C 1!*"$0+)('2  &3.  ,- /%# %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-04-06 11:57+0000 Last-Translator: Bernabé Borrero Language-Team: Catalan Language: ca MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %'ju byte en els noms de fitxers %'ju bytes en els noms de fitxers %'ju byte usat per a emmagatzemar la base de dades %'ju bytes usats per a emmagatzemar la base de dades %'ju directori %'ju directoris %'ju fitxer %'ju fitxers Informar d'errors a %s. --%s s'ha especificat dos cops--%s ignorarà els arguments passats prèviament per línia d'ordresCopyright (C) 2007 Red Hat, Inc. Tots els drets reservats. Aquest programa es distribueix sota la llicència GPL v 2. Aquest programa s'entrega sense CAP GARANTIA, fins el punt en que ho permeti la lleiBase de dades %s: S'ha produït un error d'E/S en llegir `%s'error d'E/S mentre es cercava en `%s'error d'E/S quan s'escrivia a `%s'error d'E/S quan s'escrivia a la sortida estàndardÚs: updatedb [OPCIÓ]... Actualitza la base de dades del mlocate. -f, --add-prunefs SF sistemes de fitxers que s'ometran -n, --add-prunenames NOMS noms que s'ometran -e, --add-prunepaths CAMINS camins que s'ometran -U, --database-root CAMÍ el subarbre que es desarà a la base de dades ("/" per defecte) -h, --help mostra l'ajuda -o, --output FITXER base de dades que s'actualitzarà (per defecte és `%s') --prune-bind-mounts SENYALADOR indica si s'han d'ometre els punts de muntatge vinculats ("no" per defecte) --prunefs SF sistemes de fitxers que s'ometran de la base de dades --prunepaths CAMINS camins que s'ometran de la base de dades -l, --require-visibility SENYALADOR indica si s'ha de comprovar la visibilitat abans d'informar ("yes" per defecte) -v, --verbose mostra els camins als fitxers tal i com es van trobant -V, --version mostra informació sobre la versió La configuració per defecte es llegeix des de `%s'. `%s' no sembla ser una base de dades del mlocate`%s' té una versió %u desconeguda`%s' té un senyalador de visibilitat %u desconegut«%s» està blocat (probablement per un updatedb anterior)s'esperava un `=' després de la variableno s'ha pogut canviar el directori a `%s'no s'ha pogut canviar el grup del fitxer `%s' a `%s'no s'han pogut canviar els permisos del fitxer `%s'no s'han pogut alliberar els privilegisno s'ha trobat el grup `%s'no s'ha pogut obtenir el directori de treball actualno s'ha pogut blocar `%s'no s'ha pogut obrir `%s'no es pot obrir un fitxer temporal per a `%s'no es poden llegir dues bases de dades des de l'entrada estàndardha fallat la crida stat() a %sla configuració és massa granerror en substituir `%s'la longitud %zu del nom de fitxer a `%s' és massa llargala longitud %zu del nom de fitxer és massa llargaerror del sistema d'arxius: arxiu sense nom al directori %snom de directori buit invàlid a `%s'expressió regular invàlida `%s':%svalor `%s' invàlid de --%svalor `%s' invàlid per a PRUNE_BIND_MOUNTSfalta el caràcter `"' de tancamentno s'ha especificat cap patró per la cerca especificadaarguments sense opció no estan permesos amb --%sFi de fitxer inesperat en llegir `%s'dades no esperades després del nom de la variableoperador invàlid en la línia d'ordresno s'ha trobat la variable `%s's'esperava un valor entre cometes després del `='la variable `%s' ja ha estat definidas'esperava un nom de variableavís: Desbordament del nombre de líniesmlocate-0.26/po/sv.po0000664000175000017500000003126512027217356011432 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # Göran Uddeborg , 2012. # mitr , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-02-18 14:53+0000\n" "Last-Translator: Göran Uddeborg \n" "Language-Team: Swedish (http://www.transifex.com/projects/p/fedora/language/" "sv/)\n" "Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "varning: Spill i radnummer" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "saknar avslutande `\"'" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "kan inte öppna `%s'" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "okänd variabel `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "variabelnamn förväntades" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "variabeln `%s' var redan definerad" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "\"=\" förväntades efter variabelnamn" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "värde inom citattecken förväntat efter `='" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "ogiltigt värde `%s' i PRUNE_BIND_MOUNTS" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "okänd data efter variabelvärde" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "I/O-fel vid inläsning av `%s'" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "Användning: updatedb [FLAGGA]...\n" "Uppdatera en mlocate-databas.\n" "\n" " -f, --add-prunefs FS uteslut även FS\n" " -n, --add-prunenames NAMN uteslut även NAMN\n" " -e, --add-prunepaths SÖKVÄGAR uteslut även SÖKVÄGAR\n" " -U, --database-root SÖKVÄG delträdet att lagra i databasen (standard " "\"/\")\n" " -h, --help skriv denna hjälp\n" " -o, --output FIL databas att uppdatera (standard\n" " \"%s\")\n" " --prune-bind-mounts FLAGGA uteslut bind-monteringar (standard \"no" "\")\n" " --prunefs FS filsystem att utesluta från databasen\n" " --prunenames NAMN katalognamn att utesluta från databasen\n" " --prunepaths SÖKVÄGAR sökvägar att utesluta från databasen\n" " -l, --require-visibility FLAGGA kontrollera synligheten före filer\n" " rapporteras (standard \"yes\")\n" " -v, --verbose skriv sökvägar till filer när de hittas\n" " -V, --version skriv versionsinformation\n" "\n" "Konfigurationen har standardvärden som läses ifrån\n" "\"%s\".\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Skicka synpunkter på översättningen till \n" "Rapportera fel till %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "kan inte hitta aktuell arbetskatalog" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s skulle åsidosätta föregående argument" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "ogiltigt värde \"%s\" till --%s" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s angavs två gånger" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Copyright © 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "oväntad operand på kommandoraden" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "`%s' verkar inte vara en mlocate-databas" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "`%s' har okänd version %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "\"%s\" har en okänd synlighetsflagga %u" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "oväntat filslut vid läsning av `%s'" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "I/O-fel vid sökning i `%s'" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "Databas %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju katalog\n" msgstr[1] "\t%'ju kataloger\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju fil\n" msgstr[1] "\t%'ju filer\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju byte i filnamn\n" msgstr[1] "\t%'ju byte i filnamn\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\t%'ju byte använd för att lagra databasen\n" msgstr[1] "\t%'ju byte använda för att att lagra databasen\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "ogiltigt tomt katalognamn i `%s'" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "filnamnslängden %zu i `%s' är för lång" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "Användning: locate [FLAGGA]... [MÖNSTER]...\n" "Sök efter poster i en mlocate-databas.\n" "\n" " -b, --basename matcha endast basnmanet i sökvägsnamn\n" " -c, --count skriv endast ut antalet funna poster\n" " -d, --database DBSÖKVÄG använd DBSÖKVÄG istället för standarddatabasen\n" " (vilken är %s)\n" " -e, --existing skriv endast poster för filer som finns nu\n" " -L, --follow följ avslutande symboliska länkar när filers " "existens\n" " kontrolleras (standard)\n" " -h, --help skriv denna hjälp\n" " -i, --ignore-case ignorera skiftlägesdistinktioner vid " "mönstermatchning\n" " -l, --limit, -n GRÄNS begränsa utdata (eller räknande) till GRÄNS poster\n" " -m, --mmap ignoreras, för bakåtkompatibilitet\n" " -P, --nofollow, -H följ inte avslutande symboliska länkar när filers\n" " existens kontrolleras\n" " -0, --null avdela poster med NULL i utdata\n" " -S, --statistics sök inte efter poster, skriv ut statistik om varje\n" " använd databas\n" " -q, --quiet rapportera inga felmeddelanden om databasläsningar\n" " -r, --regexp REGUTTR sök efter grundläggande reguljäruttryck REGUTTR\n" " istället för mönster\n" " --regex mönster är utökande reguljäruttryck\n" " -s, --stdio ignoreras, för bakåtkompatibilitet\n" " -V, --version skriv versionsinformation\n" " -w, --wholename matcha hela sökvägsnamn (standard)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "argument som inte är flaggor är inte tillåtna med --%s" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "inget mönster att söka efter angivet" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "ogiltigt reguljärt uttryck `%s': %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "kan inte släppa behörigheter" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "kan inte läsa två databaser från standard in" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "kan inte ta status på \"%s\"" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "I/O-fel vid skrivning till standard ut" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "filnamnslängden %zu är för lång" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "filsystemsfel: filnamn med längden noll i katalogen %s" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "kan inte öppna en temporär fil för `%s'" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "konfiguration är för stor" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "kan inte hitta grupp `%s'" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "kan inte byta filens grupp från `%s' till `%s'" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "kan inte ändra rättigheter på fil `%s'" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "`%s' är låst (förmodligen av tidigare körd updatedb)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "kan inte låsa `%s'" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "kan inte byta katalog till `%s'" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "I/O-fel vid skrivning till `%s'" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "fel vid ersättning av `%s'" mlocate-0.26/po/cs.po0000664000175000017500000003222212027217356011401 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # Miloslav Trmač , 2011, 2012. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-09-22 04:10+0200\n" "Last-Translator: Miloslav Trmač \n" "Language-Team: Czech (http://www.transifex.com/projects/p/fedora/language/" "cs/)\n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "varování: Číslo řádku přeteklo" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "chybí uzavírající `\"'" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "nemohu otevřít `%s'" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "neznámá proměnná `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "očekáván název proměnné" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "proměnná `%s' již byla definována" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "po názvu proměnné očekáváno `='" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "po `=' očekávána hodnota v uvozovkách" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "neplatná hodnota PRUNE_BIND_MOUNTS `%s'" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "neočekávaná data po hodnotě proměnné" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "chyba I/O při čtení `%s'" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "Použití: updatedb [PŘEPÍNAČ]...\n" "Aktualizovat databázi mlocate.\n" "\n" " -f, --add-prunefs SS vynechat také SS\n" " -n, --add-prunenames NÁZVY vynechat také NÁZVY\n" " -e, --add-prunepaths CESTY vynechat také CESTY\n" " -U, --database-root CESTA podstrom, který uložit do databáze\n" " (implicitně \"/\")\n" " -h, --help vypsat tuto nápovědu\n" " -o, --output SOUBOR databáze, kterou aktualizovat " "(implicitně\n" " `%s')\n" " --prune-bind-mounts PŘEPÍNAČ vynechat připojení bind (implicitně \"no" "\")\n" " --prunefs SS systémy souborů, které vynechat z " "databáze\n" " --prunenames NÁZVY názvy adresářů, které vynechat z " "databáze\n" " --prunepaths CESTY cesty, které vynechat z databáze\n" " -l, --require-visibility PŘEPÍNAČ kontrolovat viditelnost před hlášením\n" " souborů (implicitně \"yes\")\n" " -v, --verbose vypisovat cesty nalezených souborů\n" " -V, --version vypsat informace o verzi\n" "\n" "Nastavení má implicitní hodnoty čtené\n" "z `%s'.\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Chyby hlaste na %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "nemohu zjistit současný pracovní adresář" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s by nahradilo dřívejší parametr na příkazovém řádku" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "neplatná hodnota `%s' přepínače --%s" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s zadáno dvakrát" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Copyright © 2007 Red Hat, Inc. All rights reserved.\n" "Toto software je distribuováno pod podmínkami GPL v.2.\n" "\n" "Tento program je poskutován BEZ ZÁRUKY, je-li to povoleno zákonem." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "neočekávaný parametr na příkazovém řádku" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "`%s' zřejmě není databáze mlocate" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "`%s' má neznámou verzi %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "`%s' má neznámý příznak viditelnosti %u" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "neočekávaný konec souboru při čtení `%s'" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "chyba I/O při posouvání v `%s'" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "Databáze %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju adresář\n" msgstr[1] "\t%'ju adresáře\n" msgstr[2] "\t%'ju adresářů\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju soubor\n" msgstr[1] "\t%'ju soubory\n" msgstr[2] "\t%'ju souborů\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju bajt v názvech souborů\n" msgstr[1] "\t%'ju bajty v názvech souborů\n" msgstr[2] "\t%'ju bajtů v názvech souborů\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\t%'ju bajt použit pro uložení databáze\n" msgstr[1] "\t%'ju bajty použity pro uložení databáze\n" msgstr[2] "\t%'ju bajtů použito pro uložení databáze\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "neplatný prázdný název adresáře v `%s'" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "délka názvu souboru %zu v `%s' je příliš velká" #: src/locate.c:617 #, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "Použití: locate [PŘEPÍNAČ]... [VZOR]...\n" "Hledat položky v databázi mlocate.\n" "\n" " -A, --all vypsat jen položky, které odpovídají všem vzorům\n" " -b, --basename porovnávat v cestách k souborům jen názvy\n" " -c, --count vypsat jen počet nalezených položek\n" " -d, --database CESTADB používat CESTADB místo implicitní databáze (což " "je\n" " %s)\n" " -e, --existing vypisovat jen položky pro momentálně existující\n" " soubory\n" " -L, --follow při kontrole existence souborů sledovat koncové\n" " symbolické odkazy (implicitní)\n" " -h, --help vypsat tuto nápovědu\n" " -i, --ignore-case při porovnávání vzorů nerozlišovat velikost " "písmen\n" " -l, --limit, -n LIMIT omezit výstup (nebo počítání) na LIMIT položek\n" " -m, --mmap ignorováno, pro zpětnou kompatibilitu\n" " -P, --nofollow, -H při kontrole existence souborů nesledovat koncové\n" " symbolické odkazy\n" " -0, --null na výstupu oddělovat položky pomocí NUL\n" " -S, --statistics nehledat položky, vypsat statistiku o každé " "použité\n" " databázi\n" " -q, --quiet nehlásit chybové zprávy o čtení databází\n" " -r, --regexp REGEXP hledat základní basic regexp REGEXP místo vzorů\n" " --regex vzory jsou rozšířené regexpy\n" " -s, --stdio ignorováno, pro zpětnou kompatibilitu\n" " -V, --version vypsat informace o verzi\n" " -w, --wholename porovnávat celé cesty k souborům (implicitní)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "s --%s nejsou povoleny parametry jiné než přepínače" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "nezadán žádný vzor, který hledat" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "neplatná regexp `%s': %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "nemohu se vzdát oprávnění" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "nemohu číst dvě databáze ze standardního vstupu" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "nemohu stat () `%s'" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "chyba I/O při zápisu na standardní výstup" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "délka názvu souboru %zu je příliš velká" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "chyba systému souborů: soubor s názvem nulové délky v adresáři %s" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "nemohu otevřít dočasný soubor pro `%s'" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "nastavení je příliš velké" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "nemohu najít skupinu `%s'" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "nemohu změnit skupinu souboru `%s' na `%s'" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "nemohu změnit oprávnění souboru `%s'" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "`%s' je uzamčen (pravděpodobně dřívejším updatedb)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "nemohu zamknout `%s'" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "nemohu změnit adresář na `%s'" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "chyba I/O při zápisu do `%s'" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "chyba při nahrazování `%s'" mlocate-0.26/po/ast.gmo0000664000175000017500000001646212027217356011737 000000000000002C<H4IF~#1,^ 5O*o+  # 0 A )b '   %   &. .U    ) ! $ : R 'm  " .  $"<_"u!BZ$JoC":a:/'5=*0h%2/"" E5f+;1 No;)+'?+^%4)4 )U. !& ,(& %2$'+"* .0 )/  !-#1 %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largeinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-02-14 08:16+0000 Last-Translator: Miloslav Trmač Language-Team: Asturian (http://www.transifex.com/projects/p/fedora/language/ast/) Language: ast MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %'ju byte nos nomes de ficheru %'ju bytes nos nomes de ficheru %'ju byte usáu p'atroxar la base de datos %'ju bytes usaos p'atroxar la base de datos %'ju direutoriu %'ju direutorios %'ju ficheru %'ju ficheros Reportar fallos a %s. --%s especificáu dos vegaes--%s debería sobroescribir aína l'argumentu na llinia de comandosCopyright (C) 2007 Red Hat, Inc. Tolos drechos reservaos. Esti programa ye provistu ENSIN GARANTÍA, fasta lo que seya permitío pola llei.Base de datos %s: Fallu E/S al lleer `%s'fallu d'E/S al guetar en `%s'fallu d'E/S al escribir sobro `%s'fallu d'E/S al intentar escribir sobro la entrada patrón Usu: updatedb [OPTION]... Anova la base de datos mlocate. -f, --add-prunefs FS tamién omitir FS -n, --add-prunenames NAMES tamién omitir NAMES -e, --add-prunepaths PATHS tamién omitir PATHS -U, --database-root PATH el subárbol p'atroxar la base de datos (default "/") -h, --help imprentar esta aida -o, --output FILE base de datos p'anovar (por defeutu `%s') --prune-bind-mounts FLAG omitir montaxe mint (por defeutu "no") --prunefs FS omitir sistema de ficheros dende base de datos --prunenames NAMES omitir nomes de direutorios dende base de datos --prunepaths PATHS caminos a omitir dende base de datos -l, --require-visibility FLAG comprebar visibilidá dempués de informar los ficheros (por defeutu "yes") -v, --verbose imprentar caminos de ficheros que foron atopaos -V, --version imprentar información de versión Lleer los valores por defeutu de configuración dende `%s'. `%s' nun parez ser una base de datos de mlocate`%s' tien una version desconocida de %u`%s' tien un señalador de visibilidá desconocíu %u`%s' ta bloquiáu (dablemente a causa d'un updatedb anterior)esperábase `=' dempués del nome de la variablenun pudo camudase'l direutoriu a `%s'nun pudo camudase'l grupu del ficheru `%s' pa `%s'nun pudo camudase los permisos del ficheru `%s'nun pudieron abandonase privilexosnun pudo alcontrase'l grupu `%s'nun foi dable acceder al direutoriu actual de trabayunun pudo bloquiase `%s'nun pudo abrise `%s'nun pudo abrise un ficheru temporal pa `%s'nun pudieron lleese dos bases de datos cola entrada patrónnun pudo facese stat () `%s'la configuración ye mui estensafallu al camudar `%s'el tamañu del nome del ficheru %zu en `%s ye abondu llarguel nome del ficheru %zu ye enforma llargunome de direutoriu ermu nun válidu en `%s'espresión regular non válida `%s': %svalor `%s' nun válidu pa --%svalor non válidu `%s' de PRUNE_BIND_MOUNTSfalta zarrar `"'dengún patrón de gueta especificáunun son permitíos argumentos ensin opción con --%sfinal de ficheru inesperáu al lleer `%s'datos nun esperaos dempués del valor de la variableoperador inesperáu en llinia de comandosvariable desconocida `%s'dempués de `=' esperábase un valor en cuotesla variable `%s' ya foi definidaesperábase'l nome de la variableatención: númberu de llinia escedíumlocate-0.26/po/ms.po0000664000175000017500000002165612027217356011424 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # mitr , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-02-14 08:16+0000\n" "Last-Translator: Miloslav Trmač \n" "Language-Team: LANGUAGE \n" "Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "tidak dapat membuka `%s'" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "pembulehubah tidak diketahui: `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "pembulehubah `%s' telahpun digunakan" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "`=' dijangka selepas nama pembolehubah" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "nilai dalam pembuka/penutup kata dijangka selepas `='" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "nilai salah `%s'·untuk·PRUNE_BIND_MOUNTS" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "data yang tidak dijangka selepas nilai pembolehubah" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "masalah I/O semasa membaca `%s'" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Lapor bug (masalah) kepada·%s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "tidak dapat mendapatkan direktori semasa" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s·akan mengambilalih argumen baris arahan sebelumnya" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "nilai tidak sah %s'·untuk·--%s" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s·diberi dua kali" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "`%s' tidak nampak seperti database mlocate" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "`%s'·mengandungi versi yang tidak diketahui·%u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "EOF·tidak dijangka semasa membaca `%s'" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "Masalah I/O·sewaktu mencari di `%s'" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "Database %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "nama directory kosong yang tidak sah di `%s'" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "nama fail %zu di `%s' terlalu panjang" #: src/locate.c:617 #, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "tiada paten untuk pencarian diberikan" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "regexp tidak sah `%s':·%s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "Masalah I/O sewaktu menulis ke standard output" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "nama fail %zu terlalu panjang" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "tidak dapat membuka fail sementara untuk `%s'" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "konfigurasi terlalu besar" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "tidak jumpa kumpulan `%s'" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "tidak dapat tukar kumpulan fail dari `%s'·ke·`%s'" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "tidak dapat tukar directori ke `%s'" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "Masalah I/O sewaktu menulis ke `%s'" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "masalah semasa menukar `%s'" mlocate-0.26/po/el.gmo0000664000175000017500000001564112027217356011546 000000000000000C(4)F^#  *+Ht#0  )''Qy%&.I^y)!8$ 8 P 'k  " .  $ ": ] "s !   b 3 ' 04,eI =`;;`a92DrK<QQaA8i.31cbF>,Cke[yqG$3.X;0VaKIiNa&R?*6j +'% $#&* ) -/.!"( ,0 %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twiceCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard output`%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-09-15 12:03+0000 Last-Translator: Giannis Konstantinidis Language-Team: Greek Language: el MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %'ju byte στα ονόματα αρχείων %'ju bytes στα ονόματα αρχείων %'ju byte που χρησιμοποιούνται στην αποθήκευση της βάσης δεδομένων %'ju bytes που χρησιμοποιούνται στην αποθήκευση της βάσης δεδομένων %'ju κατάλογος %'ju κατάλογοι %'ju αρχείο %'ju αρχεία Αναφέρετε σφάλματα στο %s. Το --%s έχει δηλωθεί διπλάCopyright (C) 2007 Red Hat, Inc. Διατηρούνται όλα τα δικαιώματα. Αυτό το λογισμικό διανέμεται υπό την άδεια GPL v.2. Αυτό το πρόγραμμα παρέχεται ΧΩΡΙΣ ΕΓΓΥΗΣΗ, στο βαθμό που επιτρέπεται από το νόμο.Βάση δεδομένων %s: Σφάλμα I/O κατά την ανάγνωση του `%s'σφάλμα εισόδου/εξόδου κατά την αναζήτηση μέσα στο `%s'Σφάλμα I/O κατά την εγγραφή στο `%s'Σφάλμα I/O κατά την εγγραφή στην προκαθορισμένη έξοδοTo `%s' δεν φαίνεται να είναι μαι βάση δεδομένων του mlocateΤο `%s' έχει άγνωστη έκδοση %uTo `%s' έχει άγνωστη σημαία ορατότητας %uΤο `%s' είναι κλειδωμένο (πιθανώς από μια προηγούμενη ενημέρωση)αναμένεται το `=' μετά το όνομα μεταβλητήςαδυναμία αλλαγής καταλόγου σε `%s'αδυναμία αλλαγής ομάδας του αρχείου `%s' σε `%s'αδυναμία αλλαγής δικαιωμάτων του αρχείου `%s'αδυναμία απόρριψης των δικαιωμάτωναδυναμία εύρεσης της ομάδας `%s'αδυναμία απόκτησης του τρέχοντος λειτουργικού καταλόγουαδυναμία κλειδώματος του `%s'αδυναμία ανοίγματος του `%s'αδυναμία ανοίγματος ενός προσωρινού αρχείου για το `%s'αδυναμία ανάγνωσης δύο βάσεων δεδομένων από την προκαθορισμένη είσοδοαδυναμία δημιουργίας στατιστικής () `%s'η ρύθμιση είναι υπερβολικά μεγάλησφάλμα κατά την αντικατάσταση του `%s'το μέγεθος της ονομασίας του %zu στο `%s' είναι πολύ μεγάλοτο μήκος ονόματος του αρχείου %zu είναι πολύ μεγάλοσφάλμα συστήματος αρχείων: μηδενικό όνομα αρχείου στον κατάλογο %sλανθασμένα κενό όνομα καταλόγου στο `%s'λανθασμένο regexp `%s': %sλανθασμένη τιμή `%s' του --%sλανθασμένη τιμή `%s' του PRUNE_BIND_MOUNTSΑπουσία του `"' κλεισίματοςκανένα πρότυπο για την αναζήτηση των δηλωμένωνδεν επιτρέπονται οι παράμετροι χωρίς επιλογές στο --%sανυπολόγιστο EOF κατά την ανάγνωση του `%s'ανυπολόγιστα δεδομένα ύστερα από την τιμή της μεταβλητήςανυπολόγιστος τελεστής στη γραμμή εντολώνάγνωστη μεταβλητή `%s'αναμένεται τιμή μέσα σε εισαγωγικά μετά το `='η μεταβλητή `%s' έχει ήδη καθοριστείαναμενόμενο όνομα μεταβλητήςmlocate-0.26/po/fr.gmo0000664000175000017500000002001212027217356011541 000000000000003GLh4iF# "71L~ 0>Uo*+  # 0 @ a ) '   % * < &N .u    ) ! 85 $n   '  ".%T$p""!*HLo>&?,l$-<0j.8;$&1KH}+4G'<o'*5$5Z9yI8 6)WA1\0R0-:"8<[:6+ 6=S.1 1!*"$0+)('2  &3.  ,- /%# %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-03-11 08:30+0000 Last-Translator: dominique bribanick Language-Team: French Language: fr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n > 1); %'ju octet dans les noms de fichier %'ju octets dans les noms de fichier %'ju octet utilisé pour stocker la base de données %'ju octets utilisés pour stocker la base de données %'ju répertoire %'ju répertoires %'ju fichier %'ju fichiers Signalez les anomalies à %s. --%s indiqué deux fois--%s écraserait un paramètre en ligne de commande précédentCopyright (C) 2007 Red Hat, Inc. Tous droits réservés. Ce logiciel est distribué sous la licence GPL v.2. Ce programme est fourni SANS GARANTIE, dans la mesure permise par la loi.Base de données %s : erreur d'E/S lors de la lecture de « %s »erreur d'E/S durant la recherche dans « %s »erreur d'E/S lors de l'écriture de « %s »erreur d'E/S lors de l'écriture vers la sortie standardUtilisation : updatedb [OPTION]... Met à jour une base de données mlocate. -f, --add-prunefs FS omettre aussi FS -e, --add-prunepaths PATHS omettre aussi PATHS -U, --database-root PATH la sous-arborescence pour stocker dans la base de données (par défaut « / ») -h, --help affiche cette aide -o, --output FILE base de données à mettre à jour (par défaut « %s ») --prune-bind-mounts FLAG omettre les montages liés (par défaut « no ») --prunefs FS systèmes de fichiers à omettre de la base de données --prunepaths PATHS chemins à omettre de la base de données -l, --require-visibility FLAG vérifie la visibilité avant de reporter les fichiers (par défaut « yes » (oui)) -v, --verbose affiche les chemins des fichiers comme ils sont trouvés -V, --version affiche les informations de version La configuration est définie par défaut aux valeurs lues à partir de « %s ». « %s » ne semble pas être une base de données mlocate« %s » a une version inconnue %u« %s » a un drapeau de visibilité inconnu %u« %s » est verrouillé (probablement par un updatedb précédemment)« = » attendu après un nom de variableimpossible de changer le répertoire pour « %s »impossible de modifier le groupe du fichier de « %s » en « %s »impossible de modifier les permissions du fichier « %s »impossible d'abandonner les privilègesimpossible de trouver le groupe « %s »impossible d'obtenir le répertoire de travail actuelimpossible de verrouiller « %s »impossible d'ouvrir « %s »impossible d'ouvrir un fichier temporaire pour « %s »impossible de lire deux bases de données à partir de l'entrée standardimpossible de lancer la commande stat () pour « %s »la configuration est trop grandeerreur lors du remplacement de « %s »la longueur du nom de fichier %zu dans « %s » est trop grandela longueur du nom de fichier %zu est trop grandeerreur dans le systeme de fichiers : nom de fichier de longueur nulle dans le répertoire %snom de répertoire vide invalide dans « %s »expression régulière « %s » invalide : %sla valeur « %s » de --%s n'est pas validela valeur « %s » de PRUNE_BIND_MOUNTS n'est pas valide« " » fermant manquantaucun motif à rechercher indiquéles paramètres absents des options sont interdits avec --%sfin de fichier inattendue lors de la lecture de « %s »données non attendues après la valeur de la variableopérande non attendue en ligne de commandevariable « %s » inconnueune valeur entre des guillemets est attendue après « = »la variable « %s » a déjà été définienom de variable attenduavertissement : dépassement du nombre de lignesmlocate-0.26/po/stamp-po0000664000175000017500000000001212027217357012110 00000000000000timestamp mlocate-0.26/po/et.po0000664000175000017500000002346312027217356011413 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # Ivar Smolin , 2011, 2012. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-07-15 05:24+0000\n" "Last-Translator: Ivar Smolin \n" "Language-Team: Estonian (http://www.transifex.com/projects/p/fedora/language/" "et/)\n" "Language: et\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "hoiatus: Reanumbrite ületäitumine" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "puudub sulgev `\"'" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "faili `%s' pole võimalik avada" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "tundmatu muutuja `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "eeldatakse muutuja nime" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "muutuja `%s' on juba kirjeldatud" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "pärast muutuja nime peab olema `='" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "võrdusmärgi järel peaks olema jutumärkidesse paigutatud väärtus" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "vigane PRUNE_BIND_MOUNTS väärtus `%s'" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "muutuja väärtuse järel on ootamatud andmed" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "S/V tõrge faili '%s' lugemisel" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Programmi vigadest teata aadressil %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "praegust töökataloogi pole võimalik hankida" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "võtmel --%2$s on vigane väärtus `%1$s'" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s on määratud mitu korda" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Autoriõigused (C) 2007 Red Hat, Inc. Kõik õigused reserveeritud.\n" "Seda tarkvara levitatakse GPL v.2 litsentsi tingimustel.\n" "\n" "Sellel programmil puudub igasugune garantii määral, mis on seadustega " "lubatud." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "`%s' ei paista olevate mlocate andmebaas" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "Faili `%s' versioon %u on tundmatu" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "Faili `%s' nähtavuslipp %u on tundmatu" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "ootamatu faililõpp faili '%s' lugemisel" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "S/V tõrge faili `%s' kerimisel" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "Andmebaas %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju kataloog\n" msgstr[1] "\t%'ju kataloogi\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju fail\n" msgstr[1] "\t%'ju faili\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju bait failinimede jaoks\n" msgstr[1] "\t%'ju baiti failinimede jaoks\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\t%'ju bait andmebaasi hoidmiseks\n" msgstr[1] "\t%'ju baiti andmebaasi hoidmiseks\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "vigane tühi kataloogi nimi pärast `%s'" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "failinime pikkus %zu failis `%s' on liiga suur" #: src/locate.c:617 #, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "otsingumuster on määramata" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "vigane regulaaravaldis `%s': %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "standardsisendist pole võimalik korraga kahte andmebaasi lugeda" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "S/V tõrge standardväljundisse kirjutamisel" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "faili nime pikkus %zu on liiga suur" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "failisüsteemi tõrge: nullpikkusega failinimi kataloogis %s" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "ajutist faili pole `%s' jaoks võimalik avada" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "seadistused võtavad liiga palju ruumi" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "gruppi `%s' pole võimalik leida" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "failile `%s' pole võimalik gruppi `%s' määrata" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "faili `%s' õiguseid pole võimalik muuta" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "" "fail `%s' on lukus (arvatavasti lukustatud varem käivitatud updatedb poolt)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "faili `%s' pole võimalik lukustada" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "kataloogi `%s' pole võimalik siseneda" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "S/V tõrge faili '%s' kirjutamisel" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "tõrge `%s' asendamisel" mlocate-0.26/po/nl.po0000664000175000017500000003116012027217356011405 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Red Hat, Inc # This file is distributed under the same license as the PACKAGE package. # # Translators: # Geert Warrink , 2012. # mitr , 2011. msgid "" msgstr "" "Project-Id-Version: mlocate\n" "Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/\n" "POT-Creation-Date: 2012-09-22 04:14+0200\n" "PO-Revision-Date: 2012-02-25 18:36+0000\n" "Last-Translator: Geert Warrink \n" "Language-Team: Dutch (http://www.transifex.com/projects/p/fedora/language/" "nl/)\n" "Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/conf.c:241 msgid "warning: Line number overflow" msgstr "Waarschuwing: Regel nummer overflow" #: src/conf.c:259 msgid "missing closing `\"'" msgstr "afsluitende `\"' ontbreekt" #: src/conf.c:309 src/locate.c:985 src/updatedb.c:921 #, c-format msgid "can not open `%s'" msgstr "kan`%s' niet openen" #: src/conf.c:353 #, c-format msgid "unknown variable `%s'" msgstr "onbekende variabele `%s'" #: src/conf.c:358 msgid "variable name expected" msgstr "variabele naam verwacht" #: src/conf.c:364 #, c-format msgid "variable `%s' was already defined" msgstr "variabele `%s' is al gedefinieerd" #: src/conf.c:373 msgid "`=' expected after variable name" msgstr "`=' verwacht na variabele naam" #: src/conf.c:380 msgid "value in quotes expected after `='" msgstr "waarde in quotes verwacht na `='" #: src/conf.c:388 #, c-format msgid "invalid value `%s' of PRUNE_BIND_MOUNTS" msgstr "ongeldige waarde `%s' van PRUNE_BIND_MOUNTS" #: src/conf.c:405 msgid "unexpected data after variable value" msgstr "onverwachte data na variabele waarde" #: src/conf.c:419 src/lib.c:266 #, c-format msgid "I/O error reading `%s'" msgstr "I/O fout bij lezen `%s'" #: src/conf.c:437 #, c-format msgid "" "Usage: updatedb [OPTION]...\n" "Update a mlocate database.\n" "\n" " -f, --add-prunefs FS omit also FS\n" " -n, --add-prunenames NAMES omit also NAMES\n" " -e, --add-prunepaths PATHS omit also PATHS\n" " -U, --database-root PATH the subtree to store in database (default " "\"/\")\n" " -h, --help print this help\n" " -o, --output FILE database to update (default\n" " `%s')\n" " --prune-bind-mounts FLAG omit bind mounts (default \"no\")\n" " --prunefs FS filesystems to omit from database\n" " --prunenames NAMES directory names to omit from database\n" " --prunepaths PATHS paths to omit from database\n" " -l, --require-visibility FLAG check visibility before reporting files\n" " (default \"yes\")\n" " -v, --verbose print paths of files as they are found\n" " -V, --version print version information\n" "\n" "The configuration defaults to values read from\n" "`%s'.\n" msgstr "" "Gebruik: updatedb [OPTIE]...\n" "Update een mlocate database.\n" "\n" " -f, --add-prunefs FS ook FS weglaten\n" " -n, --add-prunenames NAMES ook NAMES weglaten\n" " -e, --add-prunepaths PATHS ook PATHS weglaten\n" " -U, --database-root PATH het pad waar de database opgeslagen wordt " "(standaard \"/\")\n" " -h, --help toon deze hulp\n" " -o, --output FILE te vernieuwen database (standaard\n" " `%s')\n" " --prune-bind-mounts FLAG bind aankoppelingen weglaten (standaard \"no" "\")\n" " --prunefs FS bestandssystemen weg te laten uit de " "database\n" " --prunenames NAMES map namen weg te laten uit de database\n" " --prunepaths PATHS paden weg te laten uit de database\n" " -l, --require-visibility FLAG check zichtbaarheid voor het rapporteren " "van bestanden\n" " (standaard \"yes\")\n" " -v, --verbose toon paden van bestanden zoals gevonden\n" " -V, --version toon versie information\n" "\n" "De configuratie heeft standaard waarden conform \n" "`%s'.\n" #: src/conf.c:464 src/locate.c:654 #, c-format msgid "" "\n" "Report bugs to %s.\n" msgstr "" "\n" "Meld bugs aan %s.\n" #: src/conf.c:482 msgid "can not get current working directory" msgstr "kan huidige actieve map niet verkrijgen" #: src/conf.c:540 src/conf.c:551 src/conf.c:561 src/conf.c:571 #: src/locate.c:714 src/locate.c:723 src/locate.c:749 src/locate.c:807 #, c-format msgid "--%s would override earlier command-line argument" msgstr "--%s zou eerder gegeven commando-regel argument vervangen" #: src/conf.c:544 src/conf.c:584 src/conf.c:617 src/locate.c:786 #, c-format msgid "invalid value `%s' of --%s" msgstr "ongeldige waarde `%s' van --%s" #: src/conf.c:580 src/conf.c:613 src/conf.c:628 src/locate.c:780 #, c-format msgid "--%s specified twice" msgstr "--%s dubbel gespecificeerd" #: src/conf.c:590 src/locate.c:739 msgid "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." msgstr "" "Copyright (C) 2007 Red Hat, Inc. All rights reserved.\n" "This software is distributed under the GPL v.2.\n" "\n" "This program is provided with NO WARRANTY, to the extent permitted by law." #: src/conf.c:646 msgid "unexpected operand on command line" msgstr "onverwachte operand op commando-regel" #: src/lib.c:199 #, c-format msgid "`%s' does not seem to be a mlocate database" msgstr "`%s' lijkt geen mlocate database te zijn" #: src/lib.c:206 #, c-format msgid "`%s' has unknown version %u" msgstr "`%s' heeft een onbekende versie %u" #: src/lib.c:213 #, c-format msgid "`%s' has unknown visibility flag %u" msgstr "`%s' heeft onbekende zichtbaarheid vlag %u" #: src/lib.c:268 #, c-format msgid "unexpected EOF reading `%s'" msgstr "onverwacht EOF bij lezen van `%s'" #: src/lib.c:363 #, c-format msgid "I/O error seeking in `%s'" msgstr "I/O fout tijdens zoeken in `%s'" #: src/locate.c:338 #, c-format msgid "Database %s:\n" msgstr "Database %s:\n" #: src/locate.c:341 #, c-format msgid "\t%'ju directory\n" msgid_plural "\t%'ju directories\n" msgstr[0] "\t%'ju map\n" msgstr[1] "\t%'ju mappen\n" #: src/locate.c:343 #, c-format msgid "\t%'ju file\n" msgid_plural "\t%'ju files\n" msgstr[0] "\t%'ju bestand\n" msgstr[1] "\t%'ju bestanden\n" #: src/locate.c:345 #, c-format msgid "\t%'ju byte in file names\n" msgid_plural "\t%'ju bytes in file names\n" msgstr[0] "\t%'ju byte in bestandsnamen\n" msgstr[1] "\t%'ju bytes in bestandsnamen\n" #: src/locate.c:347 #, c-format msgid "\t%'ju byte used to store database\n" msgid_plural "\t%'ju bytes used to store database\n" msgstr[0] "\t%'ju byte gebruikt om database op te slaan\n" msgstr[1] "\t%'ju bytes gebruikt om database op te slaan\n" #: src/locate.c:483 #, c-format msgid "invalid empty directory name in `%s'" msgstr "ongeldige lege map naam in `%s'" #: src/locate.c:510 #, c-format msgid "file name length %zu in `%s' is too large" msgstr "bestandsnaam %zu in `%s' is te lang" #: src/locate.c:617 #, fuzzy, c-format msgid "" "Usage: locate [OPTION]... [PATTERN]...\n" "Search for entries in a mlocate database.\n" "\n" " -A, --all only print entries that match all patterns\n" " -b, --basename match only the base name of path names\n" " -c, --count only print number of found entries\n" " -d, --database DBPATH use DBPATH instead of default database (which is\n" " %s)\n" " -e, --existing only print entries for currently existing files\n" " -L, --follow follow trailing symbolic links when checking file\n" " existence (default)\n" " -h, --help print this help\n" " -i, --ignore-case ignore case distinctions when matching patterns\n" " -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries\n" " -m, --mmap ignored, for backward compatibility\n" " -P, --nofollow, -H don't follow trailing symbolic links when checking " "file\n" " existence\n" " -0, --null separate entries with NUL on output\n" " -S, --statistics don't search for entries, print statistics about " "each\n" " used database\n" " -q, --quiet report no error messages about reading databases\n" " -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns\n" " --regex patterns are extended regexps\n" " -s, --stdio ignored, for backward compatibility\n" " -V, --version print version information\n" " -w, --wholename match whole path name (default)\n" msgstr "" "Gebruik: locate [OPTIE]... [PATROON]...\n" "Zoek voor gegevens in mlocate database.\n" "\n" " -b, --basename match alleen de basis naam van pad namen\n" " -c, --count toon alleen aantal gevonden ingangen\n" " -d, --database DBPATH gebruik DBPATH in plaats van standaard database " "(welke\n" " %s) is\n" " -e, --existing toon alleen ingangen voor huidig bestaande " "bestanden\n" " -L, --follow volg achterliggende symbolische links bij checken " "van bestaan\n" " van bestand (standaard)\n" " -h, --help toon deze hulp\n" " -i, --ignore-case negeer hoofd/kleine letter bij matchen van " "patronen\n" " -l, --limit, -n LIMIT beperk output (of tellen) tot LIMIT ingangen\n" " -m, --mmap wordt genegeerd, voor terugwaartse compatibiliteit\n" " -P, --nofollow, -H volg geen achterliggende symbolische links bij " "checken van bestaan\n" " van bestand\n" " -0, --null onderscheidt ingangen met NUL in output\n" " -S, --statistics zoek niet naar ingangen, toon statistiek van elke\n" " gebruikte database\n" " -q, --quiet rapporteer geen fout boodschappen over lezen van " "databases\n" " -r, --regexp REGEXP zoek naar basis regexp REGEXP in plaats van " "patronen\n" " --regex patronen worden verwacht regexps te zijn\n" " -s, --stdio genegeerd, voor terugwaartse compatibiliteit\n" " -V, --version toon versie information\n" " -w, --wholename match gehele pad naam (standaard)\n" #: src/locate.c:823 #, c-format msgid "non-option arguments are not allowed with --%s" msgstr "nit-optie argumenten zijn niet toegestaan met --%s" #: src/locate.c:836 msgid "no pattern to search for specified" msgstr "geen patroon om te zoeken opgegeven" #: src/locate.c:863 #, c-format msgid "invalid regexp `%s': %s" msgstr "ongeldige regexp `%s': %s" #: src/locate.c:949 msgid "can not drop privileges" msgstr "kan rechten niet laten vallen" #: src/locate.c:964 msgid "can not read two databases from standard input" msgstr "kan niet twee databases lezen vanuit standaard input" #: src/locate.c:976 src/locate.c:991 src/updatedb.c:1009 #, c-format msgid "can not stat () `%s'" msgstr "kan niet stat () `%s'" #: src/locate.c:1051 src/updatedb.c:1033 msgid "I/O error while writing to standard output" msgstr "I/O fout tijdens schrijven naar standaard output" #: src/updatedb.c:580 src/updatedb.c:687 #, c-format msgid "file name length %zu is too large" msgstr "bestandsnaam %zu is te lang" #: src/updatedb.c:679 #, c-format msgid "file system error: zero-length file name in directory %s" msgstr "bestandssysteem fout: bestandsnaam met lengte nul in map %s" #: src/updatedb.c:915 #, c-format msgid "can not open a temporary file for `%s'" msgstr "kan geen tijdelijk bestand openen voor `%s'" #: src/updatedb.c:928 msgid "configuration is too large" msgstr "configuratie is te groot" #: src/updatedb.c:949 #, c-format msgid "can not find group `%s'" msgstr "kan groep `%s' niet vinden" #: src/updatedb.c:952 #, c-format msgid "can not change group of file `%s' to `%s'" msgstr "kan groep van bestand `%s' niet veranderen in `%s'" #: src/updatedb.c:966 #, c-format msgid "can not change permissions of file `%s'" msgstr "kan de bestand rechten van bestand `%s' niet veranderen" #: src/updatedb.c:997 #, c-format msgid "`%s' is locked (probably by an earlier updatedb)" msgstr "`%s' is geblokkeerd (waarschijnlijk door een eerdere updatedb)" #: src/updatedb.c:999 #, c-format msgid "can not lock `%s'" msgstr "kan `%s' niet blokkeren" #: src/updatedb.c:1006 #, c-format msgid "can not change directory to `%s'" msgstr "kan map niet veranderen naar `%s'" #: src/updatedb.c:1015 #, c-format msgid "I/O error while writing to `%s'" msgstr "I/O fout tijdens schrijven naar `%s'" #: src/updatedb.c:1019 #, c-format msgid "error replacing `%s'" msgstr "fout bij vervangen `%s'" mlocate-0.26/po/ja.gmo0000664000175000017500000001770112027217357011540 000000000000003GLh4iF# "71L~ 0>Uo*+  # 0 @ a ) '   % * < &N .u    ) ! 85 $n   '  ".%T$p""!*H#G Xf-z&M# 81,j6;* 94Qn6'HBh*-9 >_/w? !;B,~f$7V't 0T0C3t9F3>$r) 1!*"$0+)('2  &3.  ,- /%# %'ju byte in file names %'ju bytes in file names %'ju byte used to store database %'ju bytes used to store database %'ju directory %'ju directories %'ju file %'ju files Report bugs to %s. --%s specified twice--%s would override earlier command-line argumentCopyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law.Database %s: I/O error reading `%s'I/O error seeking in `%s'I/O error while writing to `%s'I/O error while writing to standard outputUsage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `%s') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `%s'. `%s' does not seem to be a mlocate database`%s' has unknown version %u`%s' has unknown visibility flag %u`%s' is locked (probably by an earlier updatedb)`=' expected after variable namecan not change directory to `%s'can not change group of file `%s' to `%s'can not change permissions of file `%s'can not drop privilegescan not find group `%s'can not get current working directorycan not lock `%s'can not open `%s'can not open a temporary file for `%s'can not read two databases from standard inputcan not stat () `%s'configuration is too largeerror replacing `%s'file name length %zu in `%s' is too largefile name length %zu is too largefile system error: zero-length file name in directory %sinvalid empty directory name in `%s'invalid regexp `%s': %sinvalid value `%s' of --%sinvalid value `%s' of PRUNE_BIND_MOUNTSmissing closing `"'no pattern to search for specifiednon-option arguments are not allowed with --%sunexpected EOF reading `%s'unexpected data after variable valueunexpected operand on command lineunknown variable `%s'value in quotes expected after `='variable `%s' was already definedvariable name expectedwarning: Line number overflowProject-Id-Version: mlocate Report-Msgid-Bugs-To: https://fedorahosted.org/mlocate/ POT-Creation-Date: 2012-09-22 04:14+0200 PO-Revision-Date: 2012-02-14 08:16+0000 Last-Translator: Tomoyuki KATO Language-Team: Japanese Language: ja MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; ファイル名に %'ju バイト データベースに保存するのに %'ju バイト使いました %'ju 辞書 %'ju ファイル バグを %s へ報告してください。 --%s が 2 回指定されています--%s は以前のコマンドラインパラメーターを上書きしますCopyright (C) 2007 Red Hat, Inc. All rights reserved. このソフトウェアは GPL v.2 に基づいて提供されています。 このプログラムは法律が許す範囲で無保証で提供されます。データベース %s: `%s' 読込みで入出力エラー`%s' 中をシークしている時に入出力エラー`%s' へ書き込み中に入出力エラー標準出力へ書いている時に入出力エラー利用方法: updatedb [オプション]... mlocate データベースを更新します。 -f, --add-prunefs FS 同じ FS を除外する -n, --add-prunenames NAMES 同じ NAMES を除外する -e, --add-prunepaths PATHS 同じ PATHS を除外する -U, --database-root PATH データベース中の保存するサブツリー (省略値 "/") -h, --help このヘルプを印刷する -o, --output FILE 更新するデータベース (省略値 `%s') --prune-bind-mounts FLAG bind マウントを除外する (省略値 "no") --prunefs FS データベースから除外するファイルシステム --prunenames NAMES データベースから除外する辞書名 --prunepaths PATHS データベースから除外するパス -l, --require-visibility FLAG ファイルを報告する前に可視性をチェックする (デフォルト値 "yes") -v, --verbose 見つかったファイルのバスを印刷する -V, --version バージョン情報を印刷する 設定はファイル`%s' から読み込んだ値を省略値とします。 `%s' は mlocate データベースではないようです`%s' は不明なバージョン %u です`%s' には不明な可視性フラグ %u があります`%s' はロックされています (おそらく以前の updatedb によって)変数名の後には `=' が期待されています辞書を `%s' に変更できませんファイルのグループを `%s' から `%s' へ変更できませんファイル `%s' のパーミッションを変更できません特権を落とすことはできませんグループ `%s' を見つけられません現在の作業ディレクトリーを得られません`%s' をロックできません`%s' を開けません`%s' 用の一時ファイルを開けません標準入力から 2 つのデータベースを読めませんstat () `'%s' できません設定が大きすぎます`%s' の置き換えでエラー`%2$s' 中のファイル名長 %1$zu は大きすぎますファイル名長 %zu は大きすぎますファイルシステムエラー: ディレクトリ %s に長さ0のファイル名があります`'%s' 中の不当な空の辞書名不当な正規表現 `%s': %s--%2$s の不当な値 `%1$s'PRUNE_BIND_MOUNTS の不当な値 `'%s'閉じる `"' がありません探すパターンが指定されていませんオプションでないパラメーターは --%s と一緒は認められません`%s' を読んでいる時に予期しない EOF変数値の後の期待されていないデータコマンドライン上に期待しないオペランド不明な変数 `%s'`=' の後には引用符で囲まれた値が期待されています変数 `%s' は、すでに定義されています変数名が期待されています警告: 行番号があふれていますmlocate-0.26/ChangeLog0000664000175000017500000005767012027217151011577 000000000000002012-09-22 Miloslav Trmač * configure.ac: Relase 0.26. * NEWS: Update. * po/*: Update. * src/locate.c (conf_match_all_patterns): New variable. (string_matches_pattern): Implement conf_match_all_patterns. (help): Document -A. (parse_options): Set conf_match_all_patterns based on -A, --all. Based on a patch by Carlos J. G. Duarte . * tests/locate.at (locate: -A): Test -A. * doc/locate.1.in: Document -A. 2012-06-25 Miloslav Trmač * Makefile.am (installcheck-local): Make sure the test suite is up-to-date before running it. 2012-06-03 Miloslav Trmač * tests/bind-mount.at (bind-mount: Empty mountinfo): Fix the test when run in (make installcheck). 2012-03-23 Miloslav Trmač * src/bind-mount.c (MOUNTINFO_PATH): Move to bind-mount.h. (mountinfo_path): New variable. All users changed to use the variable. (bind_mount_init): New parameter mountinfo. Initialize mountinfo_path. * src/bind-mount.h (MOUNTINFO_PATH): Moved from bind-mount.c. (bind_mount_init): Update declaration. * src/updatedb.c (main): Update for changed bind_mount_init (). * tests/bind-mount.at * tests/bind-mount-helper.c: New files. * tests/testsuite.at: Include bind-mount.at. * configure.ac: Add tests to PATH. * Makefile.am (check_PROGRAMS, tests_bind_mount_helper_LDADD): New definitions. (TESTFILES): Add tests/bind-mount.at. (src_updatedb_SOURCES): Move src/bind-mount.c src/bind-mount.h ... (src_liblib_a_SOURCES): ... here. * src/updatedb.c (time_is_current): Use "struct time" as input. Add >3 seconds margin to account for low timestamp precision on FAT and for Linux kernel races. (scan): Check whether the timestamp needs invalidating even if the nanosecond field is non-zero. * tests/config.at (config: -v): Wait longer than the timestamp margin in time_is_current (). * tests/updatedb.at (updatedb: Concurrent modification): Use `wait' instead of `sleep', removing a race and making the test suite faster. 2012-03-03 Miloslav Trmač * COPYING: Update (new FSF address, s/Library GPL/Lesser GPL/). * configure.ac: Release 0.25. * NEWS: Update. * po/*: Update. * po/LINGUAS: Update. 2012-02-10 Miloslav Trmač * po/mlocate.pot: Update for Transifex. 2011-12-12 Miloslav Trmač * src/conf.c (prepend_cwd): Don't use PATH_MAX, it may not be defined. * src/updatedb.c (filesystem_is_excluded): Don't use PATH_MAX, it may not be defined. canonicalize_file_name() allocates memory, so it is more costly, but Linux is unaffected. 2011-11-16 Miloslav Trmač * src/updatedb.c (scan_cwd): Don't trust the kernel to never return a zero-length file name, it unfortunately does happen. In such a case, instead of aborting, report it to stderr, including the path, and continue. 2011-08-24 Miloslav Trmač * src/updatedb.c (main): Remove a debugging fprintf (). * doc/locate.1.in: Document that parent directories must exist for permission checking. Suggested by Alexandre Oberlin . 2011-05-30 Miloslav Trmač * Makefile.am (installcheck-local): Fix AUTOTEST_PATH. 2011-04-28 Miloslav Trmač * src/lib.c (db_refill): Use the correct type for return value of safe_read (). * src/bind-mount.c (read_mount_entry): Fix an EOF check. 2011-03-31 Miloslav Trmač * configure.ac: Release 0.24. * NEWS: Update. * po/*: Update. * po/LINGUAS: Update. * src/bind-mount.c (read_mount_line): Remove an unused variable. * src/bind-mount.c (add_bind_mount_path): Fold it into the caller again. * src/bind-mount.c: Update copyright year. * src/bind-mount.c: Note that tmpwatch uses a related implementation. * src/bind-mount.c (MOUNTINFO_PATH, struct mount, mount_entries) (num_mount_entries, mount_data_obstack, mount_data_mark) (mount_string_obstack, mount_string_mark, mount_list_obstack) (mountinfo_line_obstack, init_mount_entries, read_mount_line) (parse_mount_string, read_mount_entry, read_mount_entries): New definitions, reading /proc/self/mountinfo. (mountinfo_fd): New variable. (last_path_mounted_mtime): Removed variable. (add_bind_mount_path, cmp_ints, cmp_mount_entry_pointers) (cmp_id_mount_entry): New functions. (rebuild_bind_mount_paths, is_bind_mount, bind_mount_init): Use data from /proc/self/mountinfo. 2011-03-30 Miloslav Trmač * src/bind-mount.c (bind_mount_paths, bind_mount_paths_index) (last_path_mounted_mtime, bind_mount_paths_obstack) (bind_mount_paths_mark, rebuild_bind_mount_paths, is_bind_mount): Move from ... * src/updatedb.c: ... here. * src/bind-mount.c (bind_mount_init): Rename and move from ... * src/updatedb.c (init_bind_mount_paths): ... here, and move conf_prune_bind_mounts handling to the caller. * src/bind-mount.h: New file. * Makefile.am (src_updatedb_SOURCES): Add src/bind-mount.c and src/bind-mount.h. * src/lib.c (string_list_contains_dir_path): Rename and move from... * src/updatedb.c (path_is_in_list): ... here. All callers updated. * src/lib.h (string_list_contains_dir_path): New declaration. 2011-03-10 Miloslav Trmač * doc/updatedb.8.in: Fix a typo. 2011-03-04 Miloslav Trmač * .tx/config: New file. * po/libuser.pot: Add to prepare for Transifex. 2011-02-04 John Bradshaw * doc/locate.1.in: Fix a typo. 2010-09-14 Miloslav Trmač * configure.ac: Release version 0.23.1. * NEWS: Update. * po/LINGUAS: Update. 2010-08-30 Miloslav Trmač * HACKING: New file. 2010-08-26 Miloslav Trmač * configure.ac: Release version 0.23. * NEWS: Update. * po/LINGUAS: Update. 2010-06-12 Miloslav Trmač * configure.ac: Define PACKAGE_URL. * Makefile.am (tests/package.m4): Define AT_PACKAGE_URL. * tests/locate.at (locate: -r, locate: --regex): Replace `(' by a quadrigraph to avoid m4 quoting problems. 2010-05-25 Christian Faulhammer * po/de.po: Misc. fixes and updates. 2010-03-30 Miloslav Trmač * src/updatedb.c (rebuild_bind_mount_paths): Ignore no-op bind mounts. * doc/updatedb.conf.5.in (PRUNE_BIND_MOUNTS): Document that no-op bind mounts are not skipped. 2010-03-26 Miloslav Trmač * gnulib/lib/stat-time.h (get_stat_birthtime_ns) (get_stat_birthtime): Fix a warning. * configure.ac: Release version 0.22.4. * NEWS: Update. * po/LINGUAS: Update. 2010-03-04 Miloslav Trmač * configure.ac: Release version 0.22.3. * NEWS: Update. * po/LINGUAS: Update. * configure.ac: Use xz for compresssing the distribution tarball. 2009-10-02 Miloslav Trmač * configure.ac: Release version 0.22.2. * NEWS: Update. * po/LINGUAS: Update. 2009-09-15 Miloslav Trmač * configure.ac: Release version 0.22.1. * NEWS: Update. * po/LINGUAS: Update. 2009-07-20 Tomas Zellerin * doc/mlocate.db.5: Document directory header padding. 2009-06-14 Miloslav Trmač * configure.ac: Update to gettext 0.17. 2009-04-14 Miloslav Trmač * configure.ac: Version 0.22. * NEWS: Update. * po/LINGUAS: Update. * po/hu.po: Fix errors. * tests/locate.at (locate: Invalid source database): Update error message. * doc/updatedb.8.in: Document that --require-visibility only applies if the database is privileged. * src/locate.c (handle_db): Document new parameter, beautify. (handle_dbpath_entry): Rename variable keep_gid to privileged_db. 2009-04-14 Peter Cordes * src/locate.c (handle_db, handle_dbpath_entry): Only verify directory read permissions for privileged databases. 2008-11-17 Miloslav Trmač * src/locate.c (drop_setgid): Split from handle_dbpath_entry (). (handle_dbpath_entry): Check a database is privileged before opening it as well, in order to consistently fail to open unprivileged databases in $(dbdir). 2008-10-31 Miloslav Trmač * src/lib.c (db_skip): Add an explicit cast to avoid a warning on platforms with sizeof (size_t) >= sizeof (off_t). 2008-10-28 Miloslav Trmač * configure.ac: Version 0.21.1 * NEWS: Update. * po/LINGUAS: Update. 2008-09-08 Miloslav Trmač * doc/updatedb.conf.5.in: Clarify wording. 2008-06-30 Miloslav Trmač * configure.ac: Version 0.21. * NEWS: Update. * po/LINGUAS: Update. * po/cs.po: Update Czech translation. * src/updatedb.c (main): Modify an error message to use capitalization consistent with the others. * src/lib.c (db_open): Don't close fd on error. * src/locate.c (handle_db): Update for db_open change. * src/updatedb.c (old_db_is_closed): New variable. (old_db_close): Set old_db_is_closed instead of closing old_db. (old_dir_next_header, copy_old_dir): Check old_db_is_closed instead of old_db.fd. (old_db_open): Set old_db.fd = -1 if old_db is not initialized. Set old_db_is_closed instead of closing old_db. Open conf_output with O_RDWR. Return the open file descriptor. (new_db_setup_permissions): Split from main (). (main): Exclusively lock the file at conf_output if present. Close old_db or lock_file_fd before exiting. 2008-06-29 Miloslav Trmač * doc/updatedb.conf.5.in: Document PRUNENAMES. * doc/updatedb.8.in: Document --add-prunenames and --prunenames. * src/conf.h (conf_prunenames): New declaration. * src/conf.c (conf_prunenames, prunenames_var): New variables. (UCT_PRUNENAMES): New constant. (uc_lex): Recognize PRUNENAMES. (parse_updatedb_conf): Handle PRUNENAMES. (help): Document --add-prunenames and --prunenames. (parse_arguments): Handle --add-prunenames and --prunenames. (gen_conf_block): Store "prunenames". (conf_prepare): Handle prunenames_var and create sorted conf_prunenames. * src/updatedb.c (scan): Handle conf_prunenames. * tests/config.at (config: -h): Update. (config: -n, config: --prunenames): New tests. 2008-06-28 Miloslav Trmač * src/conf.c (conf_prepare): Sort conf_prunefs correctly and remove all duplicates. Resolves ticket:4. 2008-06-27 Miloslav Trmač * src/updatedb.c (unlink_init): Unlink unlink_path on SIGABRT as well. Only list the handled signals once. 2008-06-09 Miloslav Trmač * src/lib.c (dir_path_cmp_init): Use the correct character value mapping instead of its inversion. Resolves ticket:3. * tests/updatedb.at (updatedb: Path sorting): New test. 2008-04-09 Miloslav Trmač * configure.ac: Version 0.20. * NEWS: Update. * po/LINGUAS: Add "bg" (by Alexander Todorov ), "fr" (by Robert-André Mauchin and Thomas Canniot ), "it" (by Silvio Pierro and Gianluca Busiello ), "pt_BR" (by Diego Búrigo Zacarão ), "sr" and "sr@latin" (by Nikola Pajtić and Miloš Komarčević ). 2008-03-16 Miloslav Trmač * doc/updatedb.8.in: Fix a typo. Patch by Adeodato Simó . * doc/updatedb.8.in: Fix a typo, and stop using some non-words. * doc/updatedb.conf.5.in: Use \(dq instead of a quote in a comment to satisfy emacs. 2008-03-04 Miloslav Trmač * po/LINGUAS: Add "de" (by Fabian Affolter ) and "pl" (by Piotr Drąg ). * tests/updatedb.at (updatedb: Permissions) (updatedb: Output creation): Expect the tests to fail if running as root. 2008-03-03 Miloslav Trmač * configure.ac: Version 0.19. * NEWS: Update. * src/conf.h (conf_debug_pruning): New declaration. * src/updatedb.c (rebuild_bind_mount_paths) (filesystem_is_excluded, scan): Print detailed information about pruning decisions to stderr if conf_debug_pruning. * src/conf.c (conf_debug_pruning): New variable. (parse_arguments): Handle --debug-pruning. (conf_prepare): Print conf_block to stderr if conf_debug_pruning. * doc/updatedb.8.in: Document --debug-pruning. * tests/config.at (config: --debug-pruning): Add a M_CONF_UNTESTED note. * po/Makevars (MSGID_BUGS_ADDRESS): Update. (This makes (intltool-update -p) work, and should fix Transifex.) 2008-03-02 Miloslav Trmač * tests/locate.at (locate: LOCATE_PATH): Don't assume the our full path doesn't contain "/f". * README: Point to the new home page. 2008-02-12 Miloslav Trmač * doc/locate.1.in * doc/updatedb.8.in: Fix typos. Patch by A. Costa . 2007-12-13 Miloslav Trmač * src/updatedb.c (main): Report what group we were trying to reassign the file to on failure. 2007-10-16 Miloslav Trmač * gnulib/m4/gnulib-cache.m4 (gl_MODULES): Use module gettext-h. * src/lib.h: #include "gettext.h" instead of . (gettext, ngettext): Remove macros. gettext.h provides them along with bindtextdomain() and textdomain(). * tests/locate.at (locate: -S): Don't rely on GNU sed's \?. Patch by Steve Edwards . * src/lib.c (htonll, dir_path_cmp, db_open, db_refill) * src/updatedb.c (copy_old_dir, new_db_open): Move verify () among declarations in a block, it is implemented as an extern declaration. * src/updatedb.c (scan_subdirs): Remove useless duplicate "const". Patch by Steve Edwards . 2007-08-25 Miloslav Trmač * configure.ac: Release 0.18. * NEWS: Update. 2007-08-15 Miloslav Trmač * src/locate.c (handle_dbpath_entry): Fix uninitialized memory access when handling "-" in dbpath. 2007-07-02 Miloslav Trmač * doc/updatedb.8.in: Add an example of running updatedb as an unprivileged user. 2007-06-18 Miloslav Trmač * configure.ac * tests/testsuite.at: Use new features of autoconf-2.60. * Makefile.am: Use new features of automake-1.10. 2007-05-16 Miloslav Trmač * doc/locate.1.in: Add an example of using \ to avoid the implicit '*' operators around patterns. Note which command-line options are opposites. 2007-04-25 Miloslav Trmac * configure.ac: Release 0.17. * NEWS: Update. * src/updatedb.c (filesystem_is_excluded): Don't call realpath () on paths from /proc/self/mounts to avoid hangs on unavailable NFS filesystems. 2007-03-18 Miloslav Trmac * src/conf.c * src/conf.h * src/lib.c * src/lib.h * src/locate.c * src/updatedb.c: #include . Use "bool" instead of "_Bool", use "true" and "false" where the constants are used as "bool" values. 2007-03-06 Miloslav Trmac * configure.ac: Release 0.16. * NEWS: Update. 2007-03-02 Miloslav Trmac * configure.ac (AM_INIT_AUTOMAKE): Add dist-bzip2. * src/conf.c * src/lib.c * src/lib.h * src/locate.c * src/updatedb.c: Revert header files order to the original: config.h, SUSv3 headers, library headers, mlocate headers. 2007-03-01 Miloslav Trmac * src/lib.h (struct string_list): New member "allocated". (cmp_dir_path_pointers): Remove declaration. (string_list_append, string_list_dir_path_sort): New declarations. * src/lib.c (string_list_append, string_list_dir_path_sort): New functions. (cmp_dir_path_pointers): Make static. * src/conf.c (struct var): Remove member "pointers", assume usage with an associated struct string_list. (var_init, var_add_values, var_clear, var_finish): Explicitly refer to the associated struct string_list, don't use an obstack for entry pointers. All users updated. (uc_lex_buf, uc_lex_buf_size): New variables, replacing uc_obstack. (uc_lex_buf_append): New function. (uc_lex): Implicitly return string data in uc_lex_buf. * src/locate.c (conf_dbpath): Grow directly instead of using db_obstack. All users changed. (conf_patterns): Only store the original patterns. Use a struct string_list. Grow directly instead of using pattern_obstack. All users changed. (conf_regex_patterns): New variable, used instead of conf_patterns. All users changed. (check_directory_perms): Use a manually managed buffer instead of check_obstack. (check_obstack, db_obstack, pattern_obstack): Remove variables. * src/updatedb.c (bind_mount_paths): Grow directly instead of using bind_mount_pointers_obstack. All users changed. (bind_mount_pointers_obstack): Remove variable. (filesystem_is_excluded, scan_subdirs): Use a manually managed buffer instead of an obstack. * doc/mlocate.db.5: Document the prune_bind_mounts variable. * doc/updatedb.8.in: Document that --database-root does not have to be absolute, but will always be canonicalized. Doclument --prune-bind-mounts. Fix typos in font directives. * doc/updatedb.conf.5.in: Document PRUNE_BIND_MOUNTS. Fix typos. * gnulib/m4/gnulib-cache.m4 (gl_MODULES): Use modules canonicalize-lgpl and timespec. * src/lib.h (struct string_list, cmp_dir_path_pointers): New declarations. * src/lib.c (cmp_dir_path_pointers): Move from ... * src/conf.c (cmp_dir_path_pointers): ... here. (conf_prunefs, conf_prunepaths): Use struct string_list, replaces conf_prunefs_len and conf_prunepaths_len. All users updated. (conf_prune_bind_mounts): New variable. (parse_bool): New function, split from parse_arguments (). (var_finish): Directly update a struct string_list. All users changed. (UCT_PRUNE_BIND_MOUNTS, UCT_PRUNEFS, UCT_PRUNEPATHS): New enum values. (uc_lex): Return specific values for known identifiers. (parse_updatedb_conf): Handle PRUNE_BIND_MOUNTS. (help): Document --prune-bind-mounts. Generalize the text about default values. (parse_arguments): Add --prune-bind-mounts. Don't require --database-root to be absolute, canonicalize it automatically. (gen_conf_block_string_list): New function, split from gen_conf_block (). (gen_conf_block): Add prune_bind_mounts. * src/conf.h (conf_prunefs, conf_prunepaths): Update declarations. (conf_prunefs_len, conf_prunepaths_len): Remove declarations. (conf_prune_bind_mounts): New declaration. * src/locate.c (conf_dbpath): Use struct string_list. Replaces conf_dbpath_len. All users updated. * src/updatedb.c (path_is_in_list): Split from scan (). (bind_mount_paths, bind_mount_paths_index, last_path_mounted_mtime) (bind_mount_paths_obstack, bind_mount_paths_mark) (bind_mount_pointers_obstack): New variables. (rebuild_bind_mount_paths, is_bind_mount, init_bind_mount_paths): New functions. (filesystem_is_excluded): Assume the input path is canonical. (scan): Exclude bind mounts if so configured. Move did_chdir closer to its users. (main): Initialize bind mount list. * tests/config.at (config: -h): Update for new text. (config: -U): Update for new semantics. Verify --database-root is canonicalized. (config: ---prune-bind-mounts): New test. 2007-02-27 Miloslav Trmac * src/updatedb.c (opendir_noatime): New function. (scan_cwd): Use opendir_noatime (). This shaves a few seconds from first-time updatedb runs. * configure.ac: Check whether fdopendir () is available. 2007-02-26 Miloslav Trmac * src/conf.c (prepend_cwd): Use x2realloc (). * gnulib/m4/gnulib-cache.m4 (gl_MODULES): Use module mbsstr. * configure.ac: Don't use -Wcast-qual, gnulib's mbsstr doesn't compile with it. * src/locate.c (string_matches_pattern): Use mbsstr () instead of strstr () to handle multibyte encodings with non-unique start bytes correctly. * src/locate.c (write_quoted): Show only one question mark if the input string ends with an incomplete multibyte character. * src/locate.c (check_directory_perms): Reorganize to make the handling of "/" and top-level directories more clear. * doc/locate.1.in (DESCRIPTION): Fix punctuation. (NOTES): Note that locate may reorder the database path arbitrarily. * tests/config.at (config: -V) * tests/locate.at (locate: -V): Update for new copyright year. * gnulib/m4/gnulib-cache.m4 (gl_MODULES): Remove fwriterror (a typo). Remove timespec (a dependency of stat-time which mlocate doesn't use directly). 2007-02-21 Miloslav Trmac * README: Replace details by an unspecific promise. * configure.ac: Drop -Wnested-externs and -Wundef, gnulib's code can't handle them. * src/lib.c (htonll, ntohll, dir_path_cmp, db_open, db_refill) * src/updatedb.c (scan_subdirs, copy_old_dir, new_db_open): Use verify () instead of assert (). * src/lib.c (xmalloc, xrealloc): Remove in favor of gnulib's implementation. * src/lib.h (xmalloc, xrealloc): Remove declarations. * src/lib.c (db_refill): Use safe_read (). (db_read): Use mempcpy (). * src/locate.c (parse_dbpath): Use strchrnul () and mempcpy (). (parse_arguments, finish_dbpath): Use XNMALLOC (). * src/updatedb.c (time_get_ctime, time_get_mtime): Use get_stat_ctime_ns () and get_stat_mtime_ns (). * src/locate.c (main) * src/updatedb.c (main): Call set_program_name (). Use fwriteerror (). * Makefile.am (ACLOCAL_AMFLAGS, AM_CPPFLAGS, SUBDIRS, src_locate_LDADD) (src_updatedb_LDADD) * configure.ac * src/conf.c * src/lib.c * src/lib.h * src/locate.c * src/updatedb.c * gnulib/m4/gnulib-cache.m4: Use gnulib, don't assume glibc. 2007-02-12 Miloslav Trmac * doc/locate.1.in: Fix a typo. 2007-01-29 Miloslav Trmac * doc/mlocate.db.5: Fix a pasto. 2007-01-16 Miloslav Trmac * doc/locate.1.in: Fix a typo in font change command. (Reported by ). 2006-11-16 Miloslav Trmac * configure.ac (AM_GNU_GETTEXT_VERSION): Update to 0.14.6. 2006-11-16 Miloslav Trmac * configure.ac: Version 0.15. * NEWS: Update. * configure.ac (PROC_MOUNTS_PATH): New test. * src/updatedb.c (MOUNT_TABLE_PATH): New macro, using PROC_MOUNTS_PATH. (filesystem_is_excluded): Use MOUNT_TABLE_PATH. 2006-03-15 Miloslav Trmac * src/conf.c (help): Add missing closing paren. (parse_arguments): Fix error message. * Makefile.am (DISTCLEANFILES, EXTRA_DIST, TESTFILES, clean-local) (check-local, installcheck-local, tests/package.m4, tests/testsuite) * configure.ac: Add test suite. * tests/config.at * tests/locate.at * tests/testsuite.at * tests/updatedb.at: New files. 2006-02-19 Miloslav Trmac * configure.ac: Version 0.14. * NEWS: Update. * README: Mention FNM_CASEFOLD requirement. * src/locate.c (_GNU_SOURCE): Define to get FNM_CASEFOLD. (conf_have_simple_pattern, conf_uppercase_patterns): New variables. (uppercase_string): Return a wide character string. (string_matches_pattern): Use FNM_CASEFOLD. Use wcsstr () for case-insensitive simple pattern comparison. (parse_arguments): Leave conf_patterns in original case. Set up conf_have_simple_pattern and conf_uppercase_patterns. (main): Leave uc_obstack with default alignment. 2006-02-15 Miloslav Trmac * configure.ac: Version 0.13. * NEWS: Update. * README: Describe what the "mlocate" group is for. 2006-02-14 Miloslav Trmac * Makefile.am (install-exec-hook): Make locate, not updatedb SGID. Oops. (install-exec-local): Make the database directory accessible by the mlocate group. 2005-12-31 Miloslav Trmac * configure.ac: Version 0.12. * NEWS: Update. * src/updatedb.c (time_get_ctime, time_get_mtime): Handle invalid nanosecond times returned by Captive NTFS. 2005-11-10 Miloslav Trmac * configure.ac: Version 0.11. * NEWS: Update. * Makefile.am (bin_PROGRAMS, libexec_PROGRAMS, install-exec-hook): Move updatedb to $(bindir). 2005-10-23 Miloslav Trmac * src/locate.c (parse_options): Actually set got_follow to 1 when necessary. 2005-08-04 Miloslav Trmac * src/locate.c (conf_output_quote): New variable. (write_quoted): New function. (parse_options): Set conf_output_quote if writing to stdout without --null. (handle_path): Implement conf_output_quote. mlocate-0.26/doc/0000775000175000017500000000000012027217355010641 500000000000000mlocate-0.26/doc/locate.1.in0000664000175000017500000001474612027214364012530 00000000000000.\" A man page for locate(1). -*- nroff -*- .\" .\" Copyright (C) 2012 Red Hat, Inc. All rights reserved. .\" .\" This copyrighted material is made available to anyone wishing to use, .\" modify, copy, or redistribute it subject to the terms and conditions of the .\" GNU General Public License v.2. .\" .\" This program is distributed in the hope that it will be useful, but WITHOUT .\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or .\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for .\" more details. .\" .\" You should have received a copy of the GNU General Public License along .\" with this program; if not, write to the Free Software Foundation, Inc., .\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. .\" .\" Author: Miloslav Trmac .TH locate 1 "Sep 2012" mlocate .SH NAME locate \- find files by name .SH SYNOPSIS \fBlocate\fR [\fIOPTION\fR]... \fIPATTERN\fR... .SH DESCRIPTION .B locate reads one or more databases prepared by .BR updatedb (8) and writes file names matching at least one of the \fIPATTERN\fRs to standard output, one per line. If .B \-\-regex is not specified, \fIPATTERN\fRs can contain globbing characters. If any .I PATTERN contains no globbing characters, .B locate behaves as if the pattern were \fB*\fIPATTERN\fB*\fR. By default, .B locate does not check whether files found in database still exist (but it does require all parent directories to exist if the database was built with \fB\-\-require\-visibility no\fR). .B locate can never report files created after the most recent update of the relevant database. .SH EXIT STATUS .B locate exits with status 0 if any match was found or if .B locate was invoked with one of the \fB\-\-limit 0\fR, \fB\-\-help\fR, .B \-\-statistics or .B \-\-version options. If no match was found or a fatal error was encountered, .B locate exits with status 1. Errors encountered while reading a database are not fatal, search continues in other specified databases, if any. .SH OPTIONS .TP \fB\-A\fR, \fB\-\-all\fR Print only entries that match all \fIPATTERN\fRs instead of requiring only one of them to match. .TP \fB\-b\fR, \fB\-\-basename\fR Match only the base name against the specified patterns. This is the opposite of \fB\-\-wholename\fR. .TP \fB\-c\fR, \fB\-\-count\fR Instead of writing file names on standard output, write the number of matching entries only. .TP \fB\-d, \fB\-\-database\fR \fIDBPATH\fR Replace the default database with \fIDBPATH\fR. .I DBPATH is a \fB:\fR-separated list of database file names. If more than one .B \-\-database option is specified, the resulting path is a concatenation of the separate paths. An empty database file name is replaced by the default database. A database file name .B \- refers to the standard input. Note that a database can be read from the standard input only once. .TP \fB\-e\fR, \fB\-\-existing\fR Print only entries that refer to files existing at the time .B locate is run. .TP \fB\-L\fR, \fB\-\-follow\fR When checking whether files exist (if the .B \-\-existing option is specified), follow trailing symbolic links. This causes broken symbolic links to be omitted from the output. This is the default behavior. The opposite can be specified using \fB\-\-nofollow\fR. .TP \fB\-h\fR, \fB\-\-help\fR Write a summary of the available options to standard output and exit successfully. .TP \fB\-i\fR, \fB\-\-ignore\-case\fR Ignore case distinctions when matching patterns. .TP \fB\-l\fR, \fB\-\-limit\fR, \fB\-n\fR \fILIMIT\fR Exit successfully after finding .I LIMIT entries. If the .B \-\-count option is specified, the resulting count is also limited to \fILIMIT\fR. .TP \fB\-m\fR, \fB\-\-mmap\fR Ignored, for compatibility with .SM BSD and .SM GNU \fBlocate\fR. .TP \fB\-P\fR, \fB\-\-nofollow\fR, \fB\-H\fR When checking whether files exist (if the .B \-\-existing option is specified), do not follow trailing symbolic links. This causes broken symbolic links to be reported like other files. This is the opposite of \fB\-\-follow\fR. .TP \fB\-0\fR, \fB\-\-null\fR Separate the entries on output using the .SM ASCII NUL character instead of writing each entry on a separate line. This option is designed for interoperability with the .B \-\-null option of .SM GNU .BR xargs (1). .TP \fB\-S\fR, \fB\-\-statistics\fR Write statistics about each read database to standard output instead of searching for files and exit successfully. .TP \fB\-q\fR, \fB\-\-quiet\fR Write no messages about errors encountered while reading and processing databases. .TP \fB\-r\fR, \fB\-\-regexp\fR \fIREGEXP\fR Search for a basic regexp \fIREGEXP\fR. No \fIPATTERN\fRs are allowed if this option is used, but this option can be specified multiple times. .TP \fB\-\-regex\fR Interpret all \fIPATTERN\fRs as extended regexps. .TP \fB\-s\fR, \fB\-\-stdio\fR Ignored, for compatibility with .SM BSD and .SM GNU \fBlocate\fR. .TP \fB\-V\fR, \fB\-\-version\fR Write information about the version and license of .B locate on standard output and exit successfully. .TP \fB\-w\fR, \fB\-\-wholename\fR Match only the whole path name against the specified patterns. This is the default behavior. The opposite can be specified using \fB\-\-basename\fR. .SH EXAMPLES To search for a file named exactly .I NAME (not \fB*\fINAME\fB*\fR), use .RS .B locate -b \fB'\\\fINAME\fB'\fR .RE Because \fB\\\fR is a globbing character, this disables the implicit replacement of .I NAME by \fB*\fINAME\fB*\fR. .SH FILES .TP \fB@dbfile@\fR The database searched by default. .SH ENVIRONMENT .TP \fBLOCATE_PATH\fR Path to additional databases, added after the default database or the databases specified using the .B \-\-database option. .SH NOTES The order in which the requested databases are processed is unspecified, which allows .B locate to reorder the database path for security reasons. .B locate attempts to be compatible to .B slocate (without the options used for creating databases) and .SM GNU \fBlocate\fR, in that order. This is the reason for the impractical default \fB\-\-follow\fR option and for the confusing set of \fB\-\-regex\fR and \fB\-\-regexp\fR options. The short spelling of the \fB\-r\fR option is incompatible to .SM GNU \fBlocate\fR, where it corresponds to the \fB\-\-regex\fR option. Use the long option names to avoid confusion. The .B LOCATE_PATH environment variable replaces the default database in .SM BSD and .SM GNU \fBlocate\fR, but it is added to other databases in this implementation and \fBslocate\fR. .SH AUTHOR Miloslav Trmac .SH SEE ALSO .BR updatedb (8) mlocate-0.26/doc/updatedb.conf.5.in0000664000175000017500000000737311354376440014005 00000000000000.\" A man page for updatedb.conf. -*- nroff -*- .\" .\" Copyright (C) 2005, 2007, 2008 Red Hat, Inc. All rights reserved. .\" .\" This copyrighted material is made available to anyone wishing to use, .\" modify, copy, or redistribute it subject to the terms and conditions of the .\" GNU General Public License v.2. .\" .\" This program is distributed in the hope that it will be useful, but WITHOUT .\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or .\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for .\" more details. .\" .\" You should have received a copy of the GNU General Public License along .\" with this program; if not, write to the Free Software Foundation, Inc., .\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. .\" .\" Author: Miloslav Trmac .TH updatedb.conf 5 "Jun 2008" mlocate .SH NAME @updatedb_conf@ \- a configuration file for updatedb(8) .SH DESCRIPTION .B @updatedb_conf@ is a text file. Blank lines are ignored. A .B # character outside of a quoted string starts a comment extending until end of line. Other lines must be of the following form: .RS .I VARIABLE .B = \fB"\fIVALUE\fB"\fR .RE White space between tokens is ignored. .I VARIABLE is an alphanumeric string which does not start with a digit. .I VALUE can contain any character except for \fB\(dq\fR. No escape mechanism is supported within .I VALUE and there is no way to write .I VALUE spanning more than one line. Unknown .I VARIABLE values are considered an error. The defined variables are: .TP \fBPRUNEFS\fR A whitespace-separated list of file system types (as used in \fB/etc/mtab\fR) which should not be scanned by .BR updatedb (8). The file system type matching is case-insensitive. By default, no file system types are skipped. When scanning a file system is skipped, all file systems mounted in the subtree are skipped too, even if their type does not match any entry in \fBPRUNEFS\fR. .TP \fBPRUNENAMES\fR A whitespace-separated list of directory names (without paths) which should not be scanned by .BR updatedb (8). By default, no directory names are skipped. Note that only directories can be specified, and no pattern mechanism (e.g. globbing) is used. .TP \fBPRUNEPATHS\fR A whitespace-separated list of path names of directories which should not be scanned by .BR updatedb (8). Each path name must be exactly in the form in which the directory would be reported by .BR locate (1). By default, no paths are skipped. .TP \fBPRUNE_BIND_MOUNTS\FR One of the strings \fB0\fR, \fBno\fR, \fB1\fR or \fByes\fR. If .B PRUNE_BIND_MOUNTS is \fB1\fR or \fByes\fR, bind mounts are not scanned by .BR updatedb (8). All file systems mounted in the subtree of a bind mount are skipped as well, even if they are not bind mounts. As an exception, bind mounts of a directory on itself are not skipped. By default, bind mounts are not skipped. .SH NOTES When a directory is matched by \fBPRUNEFS\fR, \fBPRUNENAMES\fR or \fBPRUNEPATHS\fR, .BR updatedb (8) does not scan the contents of the directory. The path of the directory itself is, however, entered in the created database. For example, if .I /tmp is in \fBPRUNEPATHS\fR, .BR locate (1) will not show any files stored in \fI/tmp\fR, but it can show the .I /tmp directory. This behavior differs from traditional .B locate implementations. In some .BR updatedb (8) implementations \fBPRUNEPATHS\fR can be used to exclude non-directory files. This is not the case in this implementation. .B @updatedb_conf@ is a shell script in some implementations, which allows much more flexibility in defining the variables. Equivalent functionality can be achieved by using the command-line options to .BR updatedb (8). .SH AUTHOR Miloslav Trmac .SH SEE ALSO .BR locate (1), .BR updatedb (8) mlocate-0.26/doc/mlocate.db.50000664000175000017500000000703512017465341012663 00000000000000.\" A man page for mlocate.db. -*- nroff -*- .\" .\" Copyright (C) 2005, 2007 Red Hat, Inc. All rights reserved. .\" .\" This copyrighted material is made available to anyone wishing to use, .\" modify, copy, or redistribute it subject to the terms and conditions of the .\" GNU General Public License v.2. .\" .\" This program is distributed in the hope that it will be useful, but WITHOUT .\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or .\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for .\" more details. .\" .\" You should have received a copy of the GNU General Public License along .\" with this program; if not, write to the Free Software Foundation, Inc., .\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. .\" .\" Author: Miloslav Trmac .TH mlocate.db 5 "Jan 2007" mlocate .SH NAME mlocate.db \- a mlocate database .SH DESCRIPTION A mlocate database starts with a file header: 8 bytes for a magic number (\fB"\\0mlocate"\fR like a C literal), 4 bytes for the .I configuration block size in big endian, 1 byte for file format version (\fB0\fR), 1 byte for the \*(lqrequire visibility\*(rq flag (\fB0\fR or \fB1\fR), 2 bytes padding, and a \f(SMNUL\fR-terminated path name of the root of the database. The header is followed by a \fIconfiguration block\fR, included to ensure databases are not reused if some configuration changes could affect their contents. The size of the configuration block in bytes is stored in the file header. The configuration block is a sequence of \fIvariable assignments\fR, ordered by variable name. Each .I variable assignment consists of a \f(SMNUL\fR-terminated variable name and an ordered list of \f(SMNUL\fR-terminated values. The value list is terminated by one more .SM NUL character. The ordering used is defined by the .B strcmp () function. Currently defined variables are: .TP \fBprune_bind_mounts\fR A single entry, the value of \fbPRUNE_BIND_MOUNTS\fR; one of the strings .B 0 or \fB1\fR. .TP \fBprunefs\fR The value of \fBPRUNEFS\fR, each entry is converted to uppercase. .TP \fBprunepaths\fR The value of \fBPRUNEPATHS\fR. .P The rest of the file until .SM EOF describes directories and their contents. Each directory starts with a header: 8 bytes for .I directory time (seconds) in big endian, 4 bytes for .I directory time (nanoseconds) in big endian (0 if unknown, less than 1,000,000,000), 4 bytes padding, and a \f(SMNUL\fR-terminated path name of the the directory. Directory contents, a sequence of .I file entries sorted by name, follow. .I Directory time is the maximum of .B st_ctime and .B st_mtime of the directory. .BR updatedb (8) uses the original data if the .I directory time in the database and in the file system match exactly. .I Directory time equal to 0 always causes rescanning of the directory: this is necessary to handle directories which were being updated while building the database. Each .I file entry starts with a single byte, marking its type: .TP \fB0\fR A non-directory file. Followed by a \f(SMNUL\fR-terminated file (not path) name. .TP \fB1\fR A subdirectory. Followed by a \f(SMNUL\fR-terminated file (not path) name. .TP \fB2\fR Marks the end of the current directory. .P .BR locate(1) only reports file entries, directory names are not reported because they are reported as an entry in their parent directory. The only exception is the root directory of the database, which is stored in the file header. .SH AUTHOR Miloslav Trmac .SH SEE ALSO .BR locate (1), .BR updatedb.conf (5), .BR updatedb (8) mlocate-0.26/doc/updatedb.8.in0000664000175000017500000001204011536171137013045 00000000000000.\" A man page for updatedb(8). -*- nroff -*- .\" .\" Copyright (C) 2005, 2007, 2008 Red Hat, Inc. All rights reserved. .\" .\" This copyrighted material is made available to anyone wishing to use, .\" modify, copy, or redistribute it subject to the terms and conditions of the .\" GNU General Public License v.2. .\" .\" This program is distributed in the hope that it will be useful, but WITHOUT .\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or .\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for .\" more details. .\" .\" You should have received a copy of the GNU General Public License along .\" with this program; if not, write to the Free Software Foundation, Inc., .\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. .\" .\" Author: Miloslav Trmac .TH updatedb 8 "Jun 2008" mlocate .SH NAME updatedb \- update a database for mlocate .SH SYNOPSIS \fBupdatedb\fR [\fIOPTION\fR]... .SH DESCRIPTION .B updatedb creates or updates a database used by .BR locate (1). If the database already exists, its data is reused to avoid rereading directories that have not changed. .B updatedb is usually run daily by .BR cron (8) to update the default database. .SH EXIT STATUS .B updatedb returns with exit status 0 on success, 1 on error. .SH OPTIONS The \fBPRUNE_BIND_MOUNTS\fR, \fBPRUNEFS\fR, .B PRUNENAMES and .B PRUNEPATHS variables, which are modified by some of the options, are documented in detail in .BR updatedb.conf (5). .TP \fB\-f\fR, \fB\-\-add-prunefs\fB \fIFS\fR Add entries in white-space-separated list \fIFS\fR to \fBPRUNEFS\fR. .TP \fB\-n\fR, \fB\-\-add-prunenames\fB \fINAMES\fR Add entries in white-space-separated list \fINAMES\fR to \fBPRUNENAMES\fR. .TP \fB\-e\fR, \fB\-\-add-prunepaths\fB \fIPATHS\fR Add entries in white-space-separated list \fIPATHS\fR to \fBPRUNEPATHS\fR. .TP \fB\-U\fR, \fB\-\-database\-root\fR \fIPATH\fR Store only results of scanning the file system subtree rooted at \fIPATH\fR to the generated database. The whole file system is scanned by default. .BR locate (1) outputs entries as absolute path names which don't contain symbolic links, regardless of the form of \fIPATH\fR. .TP \fB\-\-debug\-pruning\fR Write debugging information about pruning decisions to standard error output. .TP \fB\-h\fR, \fB\-\-help\fR Write a summary of the available options to standard output and exit successfully. .TP \fB\-o\fR, \fB\-\-output\fR \fIFILE\fR Write the database to .I FILE instead of using the default database. .TP \fB\-\-prune\-bind\-mounts\fR \fIFLAG\fR Set .B PRUNE_BIND_MOUNTS to \fIFLAG\fR, overriding the configuration file. .TP \fB\-\-prunefs\fR \fIFS\fR Set \fBPRUNEFS\fR to \fIFS\fR, overriding the configuration file. .TP \fB\-\-prunenames\fR \fINAMES\fR Set \fBPRUNENAMES\fR to \fINAMES\fR, overriding the configuration file. .TP \fB\-\-prunepaths\fR \fIPATHS\fR Set \fBPRUNEPATHS\fR to \fIPATHS\fR, overriding the configuration file. .TP \fB\-l\fR, \fB\-\-require\-visibility\fR \fIFLAG\fR Set the \*(lqrequire file visibility before reporting it\*(rq flag in the generated database to \fIFLAG\fR. If .I FLAG is .B 0 or \fBno\fR, or if the database file is readable by "others" or it is not owned by \fB@groupname@\fR, .BR locate (1) outputs the database entries even if the user running .BR locate (1) could not have read the directory necessary to find out the file described by the database entry. If .I FLAG is .B 1 or .B yes (the default), .BR locate (1) checks the permissions of parent directories of each entry before reporting it to the invoking user. To make the file existence truly hidden from other users, the database group is set to .B @groupname@ and the database permissions prohibit reading the database by users using other means than .BR locate (1), which is set-gid \fB@groupname@\fR. Note that the visibility flag is checked only if the database is owned by .B @groupname@ and it is not readable by "others". .TP \fB\-v\fR, \fB\-\-verbose\fR Output path names of files to standard output, as soon as they are found. .TP \fB\-V\fR, \fB\-\-version\fR Write information about the version and license of .B locate on standard output and exit successfully. .SH EXAMPLES To create a private mlocate database as an user other than \fBroot\fR, run .RS .B updatedb -l 0 \-o .I db_file .B \-U .I source_directory .RE Note that all users that can read .I db_file can get the complete list of files in the subtree of \fIsource_directory\fR. .SH FILES .TP \fB@updatedb_conf@\fR A configuration file. See .BR updatedb.conf (5). .TP \fB@dbfile@\fR The database updated by default. .SH SECURITY Databases built with .B \-\-require\-visibility no allow users to find names of files and directories of other users, which they would not otherwise be able to do. .SH NOTES The accompanying .BR locate (1) utility was designed to be compatible to .B slocate and attempts to be compatible to .SM GNU .B locate where possible. This is not the case for \fBupdatedb\fR. .SH AUTHOR Miloslav Trmac .SH SEE ALSO .BR locate (1), .BR mlocate.db (5), .BR updatedb.conf (5) mlocate-0.26/m4/0000775000175000017500000000000012027217355010414 500000000000000mlocate-0.26/m4/po.m40000664000175000017500000004460611224644621011224 00000000000000# po.m4 serial 15 (gettext-0.17) dnl Copyright (C) 1995-2007 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.17]) 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.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_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]) define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) dnl Autoconf >= 2.61 supports dots in --with options. define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])]) 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]N_A_M_E[-prefix], [ --with-lib]N_A_M_E[-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib --without-lib]N_A_M_E[-prefix don't search for lib$1 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 ]) 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= 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"; 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/"'*$,,'` LIB[]NAME[]_PREFIX="$basedir" 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"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; 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 ]) 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"; 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"; 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]) ]) mlocate-0.26/m4/intlmacosx.m40000664000175000017500000000456511224644620012766 00000000000000# intlmacosx.m4 serial 1 (gettext-0.17) dnl Copyright (C) 2004-2007 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]) ]) mlocate-0.26/m4/glibc21.m40000664000175000017500000000144511224644620012022 00000000000000# glibc21.m4 serial 3 dnl Copyright (C) 2000-2002, 2004 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. # Test for the GNU C Library, version 2.1 or newer. # From Bruno Haible. AC_DEFUN([gl_GLIBC21], [ AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer, ac_cv_gnu_library_2_1, [AC_EGREP_CPP([Lucky GNU user], [ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) Lucky GNU user #endif #endif ], ac_cv_gnu_library_2_1=yes, ac_cv_gnu_library_2_1=no) ] ) AC_SUBST(GLIBC21) GLIBC21="$ac_cv_gnu_library_2_1" ] ) mlocate-0.26/m4/iconv.m40000664000175000017500000001375311224644620011722 00000000000000# iconv.m4 serial AM6 (gettext-0.17) dnl Copyright (C) 2000-2002, 2007 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 and HP-UX 11.11. 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; } } #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) ]) 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([$]{ac_t:- }[$]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 ]) mlocate-0.26/m4/wchar_t.m40000664000175000017500000000132611224644621012225 00000000000000# wchar_t.m4 serial 1 (gettext-0.12) dnl Copyright (C) 2002-2003 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 Test whether has the 'wchar_t' type. dnl Prerequisite: AC_PROG_CC AC_DEFUN([gt_TYPE_WCHAR_T], [ AC_CACHE_CHECK([for wchar_t], gt_cv_c_wchar_t, [AC_TRY_COMPILE([#include wchar_t foo = (wchar_t)'\0';], , gt_cv_c_wchar_t=yes, gt_cv_c_wchar_t=no)]) if test $gt_cv_c_wchar_t = yes; then AC_DEFINE(HAVE_WCHAR_T, 1, [Define if you have the 'wchar_t' type.]) fi ]) mlocate-0.26/m4/gettext.m40000664000175000017500000003457011224644620012270 00000000000000# gettext.m4 serial 60 (gettext-0.17) dnl Copyright (C) 1995-2007 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. 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([$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], []) mlocate-0.26/m4/wint_t.m40000664000175000017500000000170711224644621012105 00000000000000# wint_t.m4 serial 2 (gettext-0.17) dnl Copyright (C) 2003, 2007 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 Test whether has the 'wint_t' type. dnl Prerequisite: AC_PROG_CC AC_DEFUN([gt_TYPE_WINT_T], [ AC_CACHE_CHECK([for wint_t], gt_cv_c_wint_t, [AC_TRY_COMPILE([ /* Tru64 with Desktop Toolkit C has a bug: must be included before . BSD/OS 4.0.1 has a bug: , and must be included before . */ #include #include #include #include wint_t foo = (wchar_t)'\0';], , gt_cv_c_wint_t=yes, gt_cv_c_wint_t=no)]) if test $gt_cv_c_wint_t = yes; then AC_DEFINE(HAVE_WINT_T, 1, [Define if you have the 'wint_t' type.]) fi ]) mlocate-0.26/m4/lib-ld.m40000664000175000017500000000653111224644621011744 00000000000000# lib-ld.m4 serial 3 (gettext-0.13) dnl Copyright (C) 1996-2003 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 Subroutines of libtool.m4, dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision dnl with libtool.m4. dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. AC_DEFUN([AC_LIB_PROG_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, [# I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&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 ]) mlocate-0.26/m4/longlong.m40000664000175000017500000001005411224644621012413 00000000000000# longlong.m4 serial 13 dnl Copyright (C) 1999-2007 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 Paul Eggert. # Define HAVE_LONG_LONG_INT if 'long long int' works. # This fixes a bug in Autoconf 2.61, but can be removed once we # assume 2.62 everywhere. # Note: If the type 'long long int' exists but is only 32 bits large # (as on some very old compilers), HAVE_LONG_LONG_INT will not be # defined. In this case you can treat 'long long int' like 'long int'. AC_DEFUN([AC_TYPE_LONG_LONG_INT], [ AC_CACHE_CHECK([for long long int], [ac_cv_type_long_long_int], [AC_LINK_IFELSE( [_AC_TYPE_LONG_LONG_SNIPPET], [dnl This catches a bug in Tandem NonStop Kernel (OSS) cc -O circa 2004. dnl If cross compiling, assume the bug isn't important, since dnl nobody cross compiles for this platform as far as we know. AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[@%:@include @%:@ifndef LLONG_MAX @%:@ define HALF \ (1LL << (sizeof (long long int) * CHAR_BIT - 2)) @%:@ define LLONG_MAX (HALF - 1 + HALF) @%:@endif]], [[long long int n = 1; int i; for (i = 0; ; i++) { long long int m = n << i; if (m >> i != n) return 1; if (LLONG_MAX / 2 < m) break; } return 0;]])], [ac_cv_type_long_long_int=yes], [ac_cv_type_long_long_int=no], [ac_cv_type_long_long_int=yes])], [ac_cv_type_long_long_int=no])]) if test $ac_cv_type_long_long_int = yes; then AC_DEFINE([HAVE_LONG_LONG_INT], 1, [Define to 1 if the system has the type `long long int'.]) fi ]) # Define HAVE_UNSIGNED_LONG_LONG_INT if 'unsigned long long int' works. # This fixes a bug in Autoconf 2.61, but can be removed once we # assume 2.62 everywhere. # Note: If the type 'unsigned long long int' exists but is only 32 bits # large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT # will not be defined. In this case you can treat 'unsigned long long int' # like 'unsigned long int'. AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT], [ AC_CACHE_CHECK([for unsigned long long int], [ac_cv_type_unsigned_long_long_int], [AC_LINK_IFELSE( [_AC_TYPE_LONG_LONG_SNIPPET], [ac_cv_type_unsigned_long_long_int=yes], [ac_cv_type_unsigned_long_long_int=no])]) if test $ac_cv_type_unsigned_long_long_int = yes; then AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], 1, [Define to 1 if the system has the type `unsigned long long int'.]) fi ]) # Expands to a C program that can be used to test for simultaneous support # of 'long long' and 'unsigned long long'. We don't want to say that # 'long long' is available if 'unsigned long long' is not, or vice versa, # because too many programs rely on the symmetry between signed and unsigned # integer types (excluding 'bool'). AC_DEFUN([_AC_TYPE_LONG_LONG_SNIPPET], [ AC_LANG_PROGRAM( [[/* Test preprocessor. */ #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) error in preprocessor; #endif #if ! (18446744073709551615ULL <= -1ull) error in preprocessor; #endif /* Test literals. */ long long int ll = 9223372036854775807ll; long long int nll = -9223372036854775807LL; unsigned long long int ull = 18446744073709551615ULL; /* Test constant expressions. */ typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) ? 1 : -1)]; typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 ? 1 : -1)]; int i = 63;]], [[/* Test availability of runtime routines for shift and division. */ long long int llmax = 9223372036854775807ll; unsigned long long int ullmax = 18446744073709551615ull; return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | (llmax / ll) | (llmax % ll) | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | (ullmax / ull) | (ullmax % ull));]]) ]) mlocate-0.26/m4/lib-prefix.m40000664000175000017500000001503611224644621012642 00000000000000# lib-prefix.m4 serial 5 (gettext-0.15) dnl Copyright (C) 2001-2005 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 a variable acl_libdirstem, containing dnl the basename of the libdir, either "lib" or "lib64". AC_DEFUN([AC_LIB_PREPARE_MULTILIB], [ dnl There is no formal standard regarding lib and lib64. The current dnl practice is that on a system supporting 32-bit and 64-bit instruction dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit dnl libraries go under $prefix/lib. We determine the compiler's default dnl mode by looking at the compiler's library search path. If at least dnl of its elements ends in /lib64 or points to a directory whose absolute dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the dnl default, namely "lib". acl_libdirstem=lib 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 ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib64 ) acl_libdirstem=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" fi ]) mlocate-0.26/m4/codeset.m40000664000175000017500000000136611224644620012227 00000000000000# codeset.m4 serial 2 (gettext-0.16) dnl Copyright (C) 2000-2002, 2006 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_LANGINFO_CODESET], [ AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, [AC_TRY_LINK([#include ], [char* cs = nl_langinfo(CODESET); return !cs;], am_cv_langinfo_codeset=yes, am_cv_langinfo_codeset=no) ]) if test $am_cv_langinfo_codeset = yes; then AC_DEFINE(HAVE_LANGINFO_CODESET, 1, [Define if you have and nl_langinfo(CODESET).]) fi ]) mlocate-0.26/m4/nls.m40000664000175000017500000000226611224644621011376 00000000000000# nls.m4 serial 3 (gettext-0.15) dnl Copyright (C) 1995-2003, 2005-2006 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) 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) ]) mlocate-0.26/m4/progtest.m40000664000175000017500000000555011224644621012450 00000000000000# progtest.m4 serial 4 (gettext-0.14.2) dnl Copyright (C) 1996-2003, 2005 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 ]) mlocate-0.26/tests/0000775000175000017500000000000012027217355011236 500000000000000mlocate-0.26/tests/bind-mount-helper.c0000664000175000017500000000310411733136721014651 00000000000000/* Bind mount test suite helper. Copyright (C) 2012 Red Hat, Inc. All rights reserved. This copyrighted material is made available to anyone wishing to use, modify, copy, or redistribute it subject to the terms and conditions of the GNU General Public License v.2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Author: Miloslav Trmač */ #include #include #include #include #undef NDEBUG #include #include "../src/bind-mount.h" #include "../src/conf.h" #include "../src/lib.h" bool conf_debug_pruning; /* = false; */ int main (int argc, char *argv[]) { struct string_list paths; int i; size_t j; assert (argc >= 2); i = 1; if (strcmp (argv[i], "-d") == 0) { conf_debug_pruning = true; i++; } assert (argc > i); bind_mount_init (argv[i]); memset (&paths, 0, sizeof (paths)); for (i++; i < argc; i++) string_list_append (&paths, argv[i]); dir_path_cmp_init (); string_list_dir_path_sort (&paths); for (j = 0; j < paths.len; j++) { const char *p; p = paths.entries[j]; printf ("%s %s\n", is_bind_mount (p) ? "yes" : "no ", p); } return EXIT_SUCCESS; } mlocate-0.26/tests/updatedb.at0000664000175000017500000001371411733101662013276 00000000000000# Copyright (C) 2006 Red Hat, Inc. All rights reserved. # This copyrighted material is made available to anyone wishing to use, modify, # copy, or redistribute it subject to the terms and conditions of the GNU # General Public License v.2. # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Author: Miloslav Trmac AT_SETUP([updatedb: File types]) AT_KEYWORDS([updatedb]) mkdir d touch d/file mkdir d/dir touch d/dir/subfile mkfifo d/fifo ln -s file d/symlink ln -s nonexistent d/danglink touch d/hardlink1 ln d/hardlink1 d/hardlink2 echo | dd > d/largefile bs=1024 seek=5000000 AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) AT_CHECK([locate -d db / | sed "s,^$(pwd)/,,"], , [d d/danglink d/dir d/fifo d/file d/hardlink1 d/hardlink2 d/largefile d/symlink d/dir/subfile ]) AT_CLEANUP AT_SETUP([updatedb: Output sorting]) AT_KEYWORDS([updatedb]) # '.', '/' left out [ allchars='! " # $ % & '\'' ( ) * + , - 0 9 : ; < = > ?' # emacs: " allchars="$allchars"' @ A Z [ \ ] ^ _ ` a z { | } ~' ] mkdir d echo 'd' > subdirs > subdir_files set -f for dir in $allchars; do mkdir "d/$dir" echo "d/$dir" >> subdirs for file in $allchars; do touch "d/$dir/$file" echo "d/$dir/$file" >> subdir_files done done set +f AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) cat subdirs subdir_files > expout AT_CHECK([locate -d db / | sed "s,^$(pwd)/,,"], , [expout]) AT_CLEANUP AT_SETUP([updatedb: Permissions]) AT_KEYWORDS([updatedb]) AT_XFAIL_IF([test "x`id -u`" = x0]) perms='000 100 200 300 400 500 600 700' mkdir d for perm in $perms; do mkdir -p "d/d$perm" "d/d$perm/d" touch "d/f$perm" "d/d$perm/d/f" chmod "$perm" "d/f$perm" "d/d$perm" done AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) AT_CHECK([locate -d db / | sed "s,^$(pwd)/,,"], , [d d/d000 d/d100 d/d200 d/d300 d/d400 d/d500 d/d600 d/d700 d/f000 d/f100 d/f200 d/f300 d/f400 d/f500 d/f600 d/f700 d/d500/d d/d500/d/f d/d700/d d/d700/d/f ]) # Allow cleaning up chmod -R u+rwx d rm -rf d AT_CLEANUP AT_SETUP([updatedb: Invalid source database]) AT_KEYWORDS([updatedb]) mkdir d touch d/f AT_DATA([expout], [d d/f ]) > db AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) AT_CHECK([locate -d db / | sed "s,^$(pwd)/,,"], , [expout]) echo '0123456789abcdef-' > db AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) AT_CHECK([locate -d db / | sed "s,^$(pwd)/,,"], , [expout]) printf '\000mlocate\000\000\000\000\377\000xx-' > db AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) AT_CHECK([locate -d db / | sed "s,^$(pwd)/,,"], , [expout]) printf '\000mlocate\000\000\000\000\000\377xx-' > db AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) AT_CHECK([locate -d db / | sed "s,^$(pwd)/,,"], , [expout]) AT_CLEANUP AT_SETUP([updatedb: Change detection]) AT_KEYWORDS([updatedb]) mkdir -p d/d0 touch d/f0 d/d0/f AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) AT_CHECK([locate -d db / | sed "s,^$(pwd)/,,"], , [d d/d0 d/f0 d/d0/f ]) mv d/d0 d/d1 AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) AT_CHECK([locate -d db / | sed "s,^$(pwd)/,,"], , [d d/d1 d/f0 d/d1/f ]) mv d/f0 d/f1 AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) AT_CHECK([locate -d db / | sed "s,^$(pwd)/,,"], , [d d/d1 d/f1 d/d1/f ]) touch d/f2 mkdir d/d2 AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) AT_CHECK([locate -d db / | sed "s,^$(pwd)/,,"], , [d d/d1 d/d2 d/f1 d/f2 d/d1/f ]) rm -r d/d1 d/f1 AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) AT_CHECK([locate -d db / | sed "s,^$(pwd)/,,"], , [d d/d2 d/f2 ]) AT_CLEANUP AT_SETUP([updatedb: Concurrent modification]) AT_KEYWORDS([updatedb]) mkdir d touch d/f1 (cd d; while :; do mv f1 f2; mv f2 f1; done) & bgpid=$! AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) kill -KILL $bgpid wait $bgpid AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) AT_CHECK([locate -d db / -c], , [2 ]) AT_CLEANUP AT_SETUP([updatedb: Very deep hierarchy]) AT_KEYWORDS([updatedb]) # updatedb has two limits: # - path name length of OBSTACK_SIZE_MAX, currently limiting the depth to # roughly 29000 # - resource limit on file descriptors, one per directory; site-dependent, # let's assume roughly 1024 are available mkdir d ( cd d for depth in $(seq 1 950); do # $PSW and $OLDPWD eventually become larger than ARG_MAX PWD= OLDPWD= mkdir "depth$depth-abcdefghijklmnopqrstuvwxyz" # bash's cd complains if the path is too long cd "depth$depth-abcdefghijklmnopqrstuvwxyz" 2>/dev/null done ) AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) AT_CHECK([locate -d db / -c], , [951 ]) AT_CLEANUP AT_SETUP([updatedb: Output creation]) AT_XFAIL_IF([test "x`id -u`" = x0]) mkdir d out chmod 500 out echo "updatedb: can not open a temporary file for \`$(pwd)/out/db'" > experr AT_CHECK([updatedb -U "$(pwd)/d" -o out/db -l 0], 1, , [experr]) mkdir d2 chmod 600 d2 AT_CHECK([updatedb -U "$(pwd)/d2" -o db -l 0 2> error], 1) AT_CHECK([sed "s,$(pwd)/,DIR/,; s/': .*$/': /" < error], , [updatedb: can not change directory to `DIR/d2': @&t@ ]) ( umask 000 AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) AT_CHECK([ls -l db | cut -c 1-10], , [-rw-rw-rw- ]) ) ( umask 777 AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) AT_CHECK([ls -l db | cut -c 1-10], , [---------- ]) ) chmod 700 out d2 AT_CLEANUP AT_SETUP([updatedb: Path sorting]) mkdir -p d/a/z d/a.b d/a.c touch d/a/z/x d/a.b/x d/a.c/x # The correct sort order of conf_prunepaths is d/a/z d/a.b. An incorrect sort # order, e.g. d/a.b d/a/z, would prune only d/a/z. AT_CHECK([updatedb --prunepaths "$(pwd)/d/a.b $(pwd)/d/a/z" -U "$(pwd)/d" \ -o db -l 0]) AT_CHECK([locate -d db / | sed "s,^$(pwd)/,,"], , [d d/a d/a.b d/a.c d/a/z d/a.c/x ]) AT_CLEANUP mlocate-0.26/tests/testsuite0000775000175000017500000052705312027217355013151 00000000000000#! /bin/sh # Generated from ../tests/testsuite.at by GNU Autoconf 2.68. # # Copyright (C) 2006, 2008, 2012 Red Hat, Inc. All rights reserved. # This copyrighted material is made available to anyone wishing to use, modify, # copy, or redistribute it subject to the terms and conditions of the GNU # General Public License v.2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # Author: Miloslav Trmač # # Copyright (C) 2009, 2010 Free Software Foundation, Inc. # # This test suite 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 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" 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 : # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV export CONFIG_SHELL case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 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 about your system, $0: 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_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 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'` if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi # 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; } # 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 -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' 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 if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in #( -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" SHELL=${CONFIG_SHELL-/bin/sh} # How were we run? at_cli_args="$@" # Not all shells have the 'times' builtin; the subshell is needed to make # sure we discard the 'times: not found' message from the shell. at_times_p=false (times) >/dev/null 2>&1 && at_times_p=: # CLI Arguments to pass to the debugging scripts. at_debug_args= # -e sets to true at_errexit_p=false # Shall we be verbose? ':' means no, empty means yes. at_verbose=: at_quiet= # Running several jobs in parallel, 0 means as many as test groups. at_jobs=1 at_traceon=: at_trace_echo=: at_check_filter_trace=: # Shall we keep the debug scripts? Must be `:' when the suite is # run by a debug script, so that the script doesn't remove itself. at_debug_p=false # Display help message? at_help_p=false # Display the version message? at_version_p=false # List test groups? at_list_p=false # --clean at_clean=false # Test groups to run at_groups= # Whether to rerun failed tests. at_recheck= # Whether a write failure occurred at_write_fail=0 # The directory we run the suite in. Default to . if no -C option. at_dir=`pwd` # An absolute reference to this testsuite script. case $as_myself in [\\/]* | ?:[\\/]* ) at_myself=$as_myself ;; * ) at_myself=$at_dir/$as_myself ;; esac # Whether -C is in effect. at_change_dir=false # Whether to enable colored test results. at_color=no # List of the tested programs. at_tested='locate updatedb' # As many question marks as there are digits in the last test group number. # Used to normalize the test group numbers so that `ls' lists them in # numerical order. at_format='??' # Description of all the test groups. at_help_all="1;bind-mount.at:17;bind-mount: Empty mountinfo;bind-mount; 2;config.at:26;config: updatedb.conf;updatedb; 3;config.at:27;config: -f;updatedb; 4;config.at:30;config: -e;updatedb; 5;config.at:52;config: -h;updatedb; 6;config.at:86;config: -n;updatedb; 7;config.at:108;config: -o;updatedb; 8;config.at:118;config: -l;updatedb; 9;config.at:138;config: -U;updatedb; 10;config.at:173;config: -v;updatedb; 11;config.at:200;config: -V;updatedb; 12;config.at:223;config: --debug-pruning;updatedb; 13;config.at:226;config: --prune-bind-mounts;updatedb; 14;config.at:242;config: --prunefs;updatedb; 15;config.at:258;config: --prunenames;updatedb; 16;config.at:288;config: --prunepaths;updatedb; 17;locate.at:17;locate: Basic;locate; 18;locate.at:60;locate: -A;locate; 19;locate.at:87;locate: -b;locate; 20;locate.at:116;locate: -c;locate; 21;locate.at:139;locate: -d;locate; 22;locate.at:183;locate: -e;locate; 23;locate.at:219;locate: -h;locate; 24;locate.at:259;locate: -i;locate; 25;locate.at:287;locate: -l, -n;; 26;locate.at:319;locate: -L;locate; 27;locate.at:361;locate: -P;locate; 28;locate.at:409;locate: -S;locate; 29;locate.at:442;locate: -q;locate; 30;locate.at:454;locate: -r;locate; 31;locate.at:491;locate: -V;locate; 32;locate.at:513;locate: -w;locate; 33;locate.at:548;locate: -0;locate; 34;locate.at:565;locate: --regex;locate; 35;locate.at:596;locate: LOCATE_PATH;; 36;locate.at:612;locate: Invalid source database;locate; 37;updatedb.at:17;updatedb: File types;updatedb; 38;updatedb.at:49;updatedb: Output sorting;updatedb; 39;updatedb.at:82;updatedb: Permissions;updatedb; 40;updatedb.at:129;updatedb: Invalid source database;updatedb; 41;updatedb.at:160;updatedb: Change detection;updatedb; 42;updatedb.at:219;updatedb: Concurrent modification;updatedb; 43;updatedb.at:241;updatedb: Very deep hierarchy;updatedb; 44;updatedb.at:268;updatedb: Output creation;; 45;updatedb.at:307;updatedb: Path sorting;; " # List of the all the test groups. at_groups_all=`$as_echo "$at_help_all" | sed 's/;.*//'` # at_fn_validate_ranges NAME... # ----------------------------- # Validate and normalize the test group number contained in each variable # NAME. Leading zeroes are treated as decimal. at_fn_validate_ranges () { for at_grp do eval at_value=\$$at_grp if test $at_value -lt 1 || test $at_value -gt 45; then $as_echo "invalid test group: $at_value" >&2 exit 1 fi case $at_value in 0*) # We want to treat leading 0 as decimal, like expr and test, but # AS_VAR_ARITH treats it as octal if it uses $(( )). # With XSI shells, ${at_value#${at_value%%[1-9]*}} avoids the # expr fork, but it is not worth the effort to determine if the # shell supports XSI when the user can just avoid leading 0. eval $at_grp='`expr $at_value + 0`' ;; esac done } at_prev= for at_option do # If the previous option needs an argument, assign it. if test -n "$at_prev"; then at_option=$at_prev=$at_option at_prev= fi case $at_option in *=?*) at_optarg=`expr "X$at_option" : '[^=]*=\(.*\)'` ;; *) at_optarg= ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $at_option in --help | -h ) at_help_p=: ;; --list | -l ) at_list_p=: ;; --version | -V ) at_version_p=: ;; --clean | -c ) at_clean=: ;; --color ) at_color=always ;; --color=* ) case $at_optarg in no | never | none) at_color=never ;; auto | tty | if-tty) at_color=auto ;; always | yes | force) at_color=always ;; *) at_optname=`echo " $at_option" | sed 's/^ //; s/=.*//'` as_fn_error $? "unrecognized argument to $at_optname: $at_optarg" ;; esac ;; --debug | -d ) at_debug_p=: ;; --errexit | -e ) at_debug_p=: at_errexit_p=: ;; --verbose | -v ) at_verbose=; at_quiet=: ;; --trace | -x ) at_traceon='set -x' at_trace_echo=echo at_check_filter_trace=at_fn_filter_trace ;; [0-9] | [0-9][0-9] | [0-9][0-9][0-9] | [0-9][0-9][0-9][0-9]) at_fn_validate_ranges at_option as_fn_append at_groups "$at_option$as_nl" ;; # Ranges [0-9]- | [0-9][0-9]- | [0-9][0-9][0-9]- | [0-9][0-9][0-9][0-9]-) at_range_start=`echo $at_option |tr -d X-` at_fn_validate_ranges at_range_start at_range=`$as_echo "$at_groups_all" | \ sed -ne '/^'$at_range_start'$/,$p'` as_fn_append at_groups "$at_range$as_nl" ;; -[0-9] | -[0-9][0-9] | -[0-9][0-9][0-9] | -[0-9][0-9][0-9][0-9]) at_range_end=`echo $at_option |tr -d X-` at_fn_validate_ranges at_range_end at_range=`$as_echo "$at_groups_all" | \ sed -ne '1,/^'$at_range_end'$/p'` as_fn_append at_groups "$at_range$as_nl" ;; [0-9]-[0-9] | [0-9]-[0-9][0-9] | [0-9]-[0-9][0-9][0-9] | \ [0-9]-[0-9][0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9] | \ [0-9][0-9]-[0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9][0-9][0-9] | \ [0-9][0-9][0-9]-[0-9][0-9][0-9] | \ [0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] | \ [0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] ) at_range_start=`expr $at_option : '\(.*\)-'` at_range_end=`expr $at_option : '.*-\(.*\)'` if test $at_range_start -gt $at_range_end; then at_tmp=$at_range_end at_range_end=$at_range_start at_range_start=$at_tmp fi at_fn_validate_ranges at_range_start at_range_end at_range=`$as_echo "$at_groups_all" | \ sed -ne '/^'$at_range_start'$/,/^'$at_range_end'$/p'` as_fn_append at_groups "$at_range$as_nl" ;; # Directory selection. --directory | -C ) at_prev=--directory ;; --directory=* ) at_change_dir=: at_dir=$at_optarg if test x- = "x$at_dir" ; then at_dir=./- fi ;; # Parallel execution. --jobs | -j ) at_jobs=0 ;; --jobs=* | -j[0-9]* ) if test -n "$at_optarg"; then at_jobs=$at_optarg else at_jobs=`expr X$at_option : 'X-j\(.*\)'` fi case $at_jobs in *[!0-9]*) at_optname=`echo " $at_option" | sed 's/^ //; s/[0-9=].*//'` as_fn_error $? "non-numeric argument to $at_optname: $at_jobs" ;; esac ;; # Keywords. --keywords | -k ) at_prev=--keywords ;; --keywords=* ) at_groups_selected=$at_help_all at_save_IFS=$IFS IFS=, set X $at_optarg shift IFS=$at_save_IFS for at_keyword do at_invert= case $at_keyword in '!'*) at_invert="-v" at_keyword=`expr "X$at_keyword" : 'X!\(.*\)'` ;; esac # It is on purpose that we match the test group titles too. at_groups_selected=`$as_echo "$at_groups_selected" | grep -i $at_invert "^[1-9][^;]*;.*[; ]$at_keyword[ ;]"` done # Smash the keywords. at_groups_selected=`$as_echo "$at_groups_selected" | sed 's/;.*//'` as_fn_append at_groups "$at_groups_selected$as_nl" ;; --recheck) at_recheck=: ;; *=*) at_envvar=`expr "x$at_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $at_envvar in '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$at_envvar'" ;; esac at_value=`$as_echo "$at_optarg" | sed "s/'/'\\\\\\\\''/g"` # Export now, but save eval for later and for debug scripts. export $at_envvar as_fn_append at_debug_args " $at_envvar='$at_value'" ;; *) $as_echo "$as_me: invalid option: $at_option" >&2 $as_echo "Try \`$0 --help' for more information." >&2 exit 1 ;; esac done # Verify our last option didn't require an argument if test -n "$at_prev"; then : as_fn_error $? "\`$at_prev' requires an argument" fi # The file containing the suite. at_suite_log=$at_dir/$as_me.log # Selected test groups. if test -z "$at_groups$at_recheck"; then at_groups=$at_groups_all else if test -n "$at_recheck" && test -r "$at_suite_log"; then at_oldfails=`sed -n ' /^Failed tests:$/,/^Skipped tests:$/{ s/^[ ]*\([1-9][0-9]*\):.*/\1/p } /^Unexpected passes:$/,/^## Detailed failed tests/{ s/^[ ]*\([1-9][0-9]*\):.*/\1/p } /^## Detailed failed tests/q ' "$at_suite_log"` as_fn_append at_groups "$at_oldfails$as_nl" fi # Sort the tests, removing duplicates. at_groups=`$as_echo "$at_groups" | sort -nu | sed '/^$/d'` fi if test x"$at_color" = xalways \ || { test x"$at_color" = xauto && test -t 1; }; then at_red=`printf '\033[0;31m'` at_grn=`printf '\033[0;32m'` at_lgn=`printf '\033[1;32m'` at_blu=`printf '\033[1;34m'` at_std=`printf '\033[m'` else at_red= at_grn= at_lgn= at_blu= at_std= fi # Help message. if $at_help_p; then cat <<_ATEOF || at_write_fail=1 Usage: $0 [OPTION]... [VARIABLE=VALUE]... [TESTS] Run all the tests, or the selected TESTS, given by numeric ranges, and save a detailed log file. Upon failure, create debugging scripts. Do not change environment variables directly. Instead, set them via command line arguments. Set \`AUTOTEST_PATH' to select the executables to exercise. Each relative directory is expanded as build and source directories relative to the top level of this distribution. E.g., from within the build directory /tmp/foo-1.0, invoking this: $ $0 AUTOTEST_PATH=bin is equivalent to the following, assuming the source directory is /src/foo-1.0: PATH=/tmp/foo-1.0/bin:/src/foo-1.0/bin:\$PATH $0 _ATEOF cat <<_ATEOF || at_write_fail=1 Operation modes: -h, --help print the help message, then exit -V, --version print version number, then exit -c, --clean remove all the files this test suite might create and exit -l, --list describes all the tests, or the selected TESTS _ATEOF cat <<_ATEOF || at_write_fail=1 Execution tuning: -C, --directory=DIR change to directory DIR before starting --color[=never|auto|always] enable colored test results on terminal, or always -j, --jobs[=N] Allow N jobs at once; infinite jobs with no arg (default 1) -k, --keywords=KEYWORDS select the tests matching all the comma-separated KEYWORDS multiple \`-k' accumulate; prefixed \`!' negates a KEYWORD --recheck select all tests that failed or passed unexpectedly last time -e, --errexit abort as soon as a test fails; implies --debug -v, --verbose force more detailed output default for debugging scripts -d, --debug inhibit clean up and top-level logging default for debugging scripts -x, --trace enable tests shell tracing _ATEOF cat <<_ATEOF || at_write_fail=1 Report bugs to . mlocate home page: . _ATEOF exit $at_write_fail fi # List of tests. if $at_list_p; then cat <<_ATEOF || at_write_fail=1 mlocate 0.26 test suite test groups: NUM: FILE-NAME:LINE TEST-GROUP-NAME KEYWORDS _ATEOF # Pass an empty line as separator between selected groups and help. $as_echo "$at_groups$as_nl$as_nl$at_help_all" | awk 'NF == 1 && FS != ";" { selected[$ 1] = 1 next } /^$/ { FS = ";" } NF > 0 { if (selected[$ 1]) { printf " %3d: %-18s %s\n", $ 1, $ 2, $ 3 if ($ 4) { lmax = 79 indent = " " line = indent len = length (line) n = split ($ 4, a, " ") for (i = 1; i <= n; i++) { l = length (a[i]) + 1 if (i > 1 && len + l > lmax) { print line line = indent " " a[i] len = length (line) } else { line = line " " a[i] len += l } } if (n) print line } } }' || at_write_fail=1 exit $at_write_fail fi if $at_version_p; then $as_echo "$as_me (mlocate 0.26)" && cat <<\_ATEOF || at_write_fail=1 Copyright (C) 2006, 2008, 2012 Red Hat, Inc. All rights reserved. This copyrighted material is made available to anyone wishing to use, modify, copy, or redistribute it subject to the terms and conditions of the GNU General Public License v.2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Author: Miloslav Trmač Copyright (C) 2010 Free Software Foundation, Inc. This test suite is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ATEOF exit $at_write_fail fi # Should we print banners? Yes if more than one test is run. case $at_groups in #( *$as_nl* ) at_print_banners=: ;; #( * ) at_print_banners=false ;; esac # Text for banner N, set to a single space once printed. # Take any -C into account. if $at_change_dir ; then test x != "x$at_dir" && cd "$at_dir" \ || as_fn_error $? "unable to change directory" at_dir=`pwd` fi # Load the config files for any default variable assignments. for at_file in atconfig atlocal do test -r $at_file || continue . ./$at_file || as_fn_error $? "invalid content: $at_file" done # Autoconf <=2.59b set at_top_builddir instead of at_top_build_prefix: : "${at_top_build_prefix=$at_top_builddir}" # Perform any assignments requested during argument parsing. eval "$at_debug_args" # atconfig delivers names relative to the directory the test suite is # in, but the groups themselves are run in testsuite-dir/group-dir. if test -n "$at_top_srcdir"; then builddir=../.. for at_dir_var in srcdir top_srcdir top_build_prefix do eval at_val=\$at_$at_dir_var case $at_val in [\\/$]* | ?:[\\/]* ) at_prefix= ;; *) at_prefix=../../ ;; esac eval "$at_dir_var=\$at_prefix\$at_val" done fi ## -------------------- ## ## Directory structure. ## ## -------------------- ## # This is the set of directories and files used by this script # (non-literals are capitalized): # # TESTSUITE - the testsuite # TESTSUITE.log - summarizes the complete testsuite run # TESTSUITE.dir/ - created during a run, remains after -d or failed test # + at-groups/ - during a run: status of all groups in run # | + NNN/ - during a run: meta-data about test group NNN # | | + check-line - location (source file and line) of current AT_CHECK # | | + status - exit status of current AT_CHECK # | | + stdout - stdout of current AT_CHECK # | | + stder1 - stderr, including trace # | | + stderr - stderr, with trace filtered out # | | + test-source - portion of testsuite that defines group # | | + times - timestamps for computing duration # | | + pass - created if group passed # | | + xpass - created if group xpassed # | | + fail - created if group failed # | | + xfail - created if group xfailed # | | + skip - created if group skipped # + at-stop - during a run: end the run if this file exists # + at-source-lines - during a run: cache of TESTSUITE line numbers for extraction # + 0..NNN/ - created for each group NNN, remains after -d or failed test # | + TESTSUITE.log - summarizes the group results # | + ... - files created during the group # The directory the whole suite works in. # Should be absolute to let the user `cd' at will. at_suite_dir=$at_dir/$as_me.dir # The file containing the suite ($at_dir might have changed since earlier). at_suite_log=$at_dir/$as_me.log # The directory containing helper files per test group. at_helper_dir=$at_suite_dir/at-groups # Stop file: if it exists, do not start new jobs. at_stop_file=$at_suite_dir/at-stop # The fifo used for the job dispatcher. at_job_fifo=$at_suite_dir/at-job-fifo if $at_clean; then test -d "$at_suite_dir" && find "$at_suite_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \; rm -f -r "$at_suite_dir" "$at_suite_log" exit $? fi # Don't take risks: use only absolute directories in PATH. # # For stand-alone test suites (ie. atconfig was not found), # AUTOTEST_PATH is relative to `.'. # # For embedded test suites, AUTOTEST_PATH is relative to the top level # of the package. Then expand it into build/src parts, since users # may create executables in both places. AUTOTEST_PATH=`$as_echo "$AUTOTEST_PATH" | sed "s|:|$PATH_SEPARATOR|g"` at_path= as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $AUTOTEST_PATH $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -n "$at_path" && as_fn_append at_path $PATH_SEPARATOR case $as_dir in [\\/]* | ?:[\\/]* ) as_fn_append at_path "$as_dir" ;; * ) if test -z "$at_top_build_prefix"; then # Stand-alone test suite. as_fn_append at_path "$as_dir" else # Embedded test suite. as_fn_append at_path "$at_top_build_prefix$as_dir$PATH_SEPARATOR" as_fn_append at_path "$at_top_srcdir/$as_dir" fi ;; esac done IFS=$as_save_IFS # Now build and simplify PATH. # # There might be directories that don't exist, but don't redirect # builtins' (eg., cd) stderr directly: Ultrix's sh hates that. at_new_path= as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $at_path do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -d "$as_dir" || continue case $as_dir in [\\/]* | ?:[\\/]* ) ;; * ) as_dir=`(cd "$as_dir" && pwd) 2>/dev/null` ;; esac case $PATH_SEPARATOR$at_new_path$PATH_SEPARATOR in *$PATH_SEPARATOR$as_dir$PATH_SEPARATOR*) ;; $PATH_SEPARATOR$PATH_SEPARATOR) at_new_path=$as_dir ;; *) as_fn_append at_new_path "$PATH_SEPARATOR$as_dir" ;; esac done IFS=$as_save_IFS PATH=$at_new_path export PATH # Setting up the FDs. # 5 is the log file. Not to be overwritten if `-d'. if $at_debug_p; then at_suite_log=/dev/null else : >"$at_suite_log" fi exec 5>>"$at_suite_log" # Banners and logs. $as_echo "## ------------------------ ## ## mlocate 0.26 test suite. ## ## ------------------------ ##" { $as_echo "## ------------------------ ## ## mlocate 0.26 test suite. ## ## ------------------------ ##" echo $as_echo "$as_me: command line was:" $as_echo " \$ $0 $at_cli_args" echo # If ChangeLog exists, list a few lines in case it might help determining # the exact version. if test -n "$at_top_srcdir" && test -f "$at_top_srcdir/ChangeLog"; then $as_echo "## ---------- ## ## ChangeLog. ## ## ---------- ##" echo sed 's/^/| /;10q' "$at_top_srcdir/ChangeLog" echo fi { 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 } echo # Contents of the config files. for at_file in atconfig atlocal do test -r $at_file || continue $as_echo "$as_me: $at_file:" sed 's/^/| /' $at_file echo done } >&5 ## ------------------------- ## ## Autotest shell functions. ## ## ------------------------- ## # at_fn_banner NUMBER # ------------------- # Output banner NUMBER, provided the testsuite is running multiple groups and # this particular banner has not yet been printed. at_fn_banner () { $at_print_banners || return 0 eval at_banner_text=\$at_banner_text_$1 test "x$at_banner_text" = "x " && return 0 eval "at_banner_text_$1=\" \"" if test -z "$at_banner_text"; then $at_first || echo else $as_echo "$as_nl$at_banner_text$as_nl" fi } # at_fn_banner # at_fn_check_prepare_notrace REASON LINE # --------------------------------------- # Perform AT_CHECK preparations for the command at LINE for an untraceable # command; REASON is the reason for disabling tracing. at_fn_check_prepare_notrace () { $at_trace_echo "Not enabling shell tracing (command contains $1)" $as_echo "$2" >"$at_check_line_file" at_check_trace=: at_check_filter=: : >"$at_stdout"; : >"$at_stderr" } # at_fn_check_prepare_trace LINE # ------------------------------ # Perform AT_CHECK preparations for the command at LINE for a traceable # command. at_fn_check_prepare_trace () { $as_echo "$1" >"$at_check_line_file" at_check_trace=$at_traceon at_check_filter=$at_check_filter_trace : >"$at_stdout"; : >"$at_stderr" } # at_fn_check_prepare_dynamic COMMAND LINE # ---------------------------------------- # Decide if COMMAND at LINE is traceable at runtime, and call the appropriate # preparation function. at_fn_check_prepare_dynamic () { case $1 in *$as_nl*) at_fn_check_prepare_notrace 'an embedded newline' "$2" ;; *) at_fn_check_prepare_trace "$2" ;; esac } # at_fn_filter_trace # ------------------ # Remove the lines in the file "$at_stderr" generated by "set -x" and print # them to stderr. at_fn_filter_trace () { mv "$at_stderr" "$at_stder1" grep '^ *+' "$at_stder1" >&2 grep -v '^ *+' "$at_stder1" >"$at_stderr" } # at_fn_log_failure FILE-LIST # --------------------------- # Copy the files in the list on stdout with a "> " prefix, and exit the shell # with a failure exit code. at_fn_log_failure () { for file do $as_echo "$file:"; sed 's/^/> /' "$file"; done echo 1 > "$at_status_file" exit 1 } # at_fn_check_skip EXIT-CODE LINE # ------------------------------- # Check whether EXIT-CODE is a special exit code (77 or 99), and if so exit # the test group subshell with that same exit code. Use LINE in any report # about test failure. at_fn_check_skip () { case $1 in 99) echo 99 > "$at_status_file"; at_failed=: $as_echo "$2: hard failure"; exit 99;; 77) echo 77 > "$at_status_file"; exit 77;; esac } # at_fn_check_status EXPECTED EXIT-CODE LINE # ------------------------------------------ # Check whether EXIT-CODE is the EXPECTED exit code, and if so do nothing. # Otherwise, if it is 77 or 99, exit the test group subshell with that same # exit code; if it is anything else print an error message referring to LINE, # and fail the test. at_fn_check_status () { case $2 in $1 ) ;; 77) echo 77 > "$at_status_file"; exit 77;; 99) echo 99 > "$at_status_file"; at_failed=: $as_echo "$3: hard failure"; exit 99;; *) $as_echo "$3: exit code was $2, expected $1" at_failed=:;; esac } # at_fn_diff_devnull FILE # ----------------------- # Emit a diff between /dev/null and FILE. Uses "test -s" to avoid useless diff # invocations. at_fn_diff_devnull () { test -s "$1" || return 0 $at_diff "$at_devnull" "$1" } # at_fn_test NUMBER # ----------------- # Parse out test NUMBER from the tail of this file. at_fn_test () { eval at_sed=\$at_sed$1 sed "$at_sed" "$at_myself" > "$at_test_source" } # at_fn_create_debugging_script # ----------------------------- # Create the debugging script $at_group_dir/run which will reproduce the # current test group. at_fn_create_debugging_script () { { echo "#! /bin/sh" && echo 'test "${ZSH_VERSION+set}" = set && alias -g '\''${1+"$@"}'\''='\''"$@"'\''' && $as_echo "cd '$at_dir'" && $as_echo "exec \${CONFIG_SHELL-$SHELL} \"$at_myself\" -v -d $at_debug_args $at_group \${1+\"\$@\"}" && echo 'exit 1' } >"$at_group_dir/run" && chmod +x "$at_group_dir/run" } ## -------------------------------- ## ## End of autotest shell functions. ## ## -------------------------------- ## { $as_echo "## ---------------- ## ## Tested programs. ## ## ---------------- ##" echo } >&5 # Report what programs are being tested. for at_program in : $at_tested do test "$at_program" = : && continue case $at_program in [\\/]* | ?:[\\/]* ) $at_program_=$at_program ;; * ) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -f "$as_dir/$at_program" && break done IFS=$as_save_IFS at_program_=$as_dir/$at_program ;; esac if test -f "$at_program_"; then { $as_echo "$at_srcdir/testsuite.at:17: $at_program_ --version" "$at_program_" --version &5 2>&1 else as_fn_error $? "cannot find $at_program" "$LINENO" 5 fi done { $as_echo "## ------------------ ## ## Running the tests. ## ## ------------------ ##" } >&5 at_start_date=`date` at_start_time=`date +%s 2>/dev/null` $as_echo "$as_me: starting at: $at_start_date" >&5 # Create the master directory if it doesn't already exist. as_dir="$at_suite_dir"; as_fn_mkdir_p || as_fn_error $? "cannot create \`$at_suite_dir'" "$LINENO" 5 # Can we diff with `/dev/null'? DU 5.0 refuses. if diff /dev/null /dev/null >/dev/null 2>&1; then at_devnull=/dev/null else at_devnull=$at_suite_dir/devnull >"$at_devnull" fi # Use `diff -u' when possible. if at_diff=`diff -u "$at_devnull" "$at_devnull" 2>&1` && test -z "$at_diff" then at_diff='diff -u' else at_diff=diff fi # Get the last needed group. for at_group in : $at_groups; do :; done # Extract the start and end lines of each test group at the tail # of this file awk ' BEGIN { FS="" } /^#AT_START_/ { start = NR } /^#AT_STOP_/ { test = substr ($ 0, 10) print "at_sed" test "=\"1," start "d;" (NR-1) "q\"" if (test == "'"$at_group"'") exit }' "$at_myself" > "$at_suite_dir/at-source-lines" && . "$at_suite_dir/at-source-lines" || as_fn_error $? "cannot create test line number cache" "$LINENO" 5 rm -f "$at_suite_dir/at-source-lines" # Set number of jobs for `-j'; avoid more jobs than test groups. set X $at_groups; shift; at_max_jobs=$# if test $at_max_jobs -eq 0; then at_jobs=1 fi if test $at_jobs -ne 1 && { test $at_jobs -eq 0 || test $at_jobs -gt $at_max_jobs; }; then at_jobs=$at_max_jobs fi # If parallel mode, don't output banners, don't split summary lines. if test $at_jobs -ne 1; then at_print_banners=false at_quiet=: fi # Set up helper dirs. rm -rf "$at_helper_dir" && mkdir "$at_helper_dir" && cd "$at_helper_dir" && { test -z "$at_groups" || mkdir $at_groups; } || as_fn_error $? "testsuite directory setup failed" "$LINENO" 5 # Functions for running a test group. We leave the actual # test group execution outside of a shell function in order # to avoid hitting zsh 4.x exit status bugs. # at_fn_group_prepare # ------------------- # Prepare for running a test group. at_fn_group_prepare () { # The directory for additional per-group helper files. at_job_dir=$at_helper_dir/$at_group # The file containing the location of the last AT_CHECK. at_check_line_file=$at_job_dir/check-line # The file containing the exit status of the last command. at_status_file=$at_job_dir/status # The files containing the output of the tested commands. at_stdout=$at_job_dir/stdout at_stder1=$at_job_dir/stder1 at_stderr=$at_job_dir/stderr # The file containing the code for a test group. at_test_source=$at_job_dir/test-source # The file containing dates. at_times_file=$at_job_dir/times # Be sure to come back to the top test directory. cd "$at_suite_dir" # Clearly separate the test groups when verbose. $at_first || $at_verbose echo at_group_normalized=$at_group eval 'while :; do case $at_group_normalized in #( '"$at_format"'*) break;; esac at_group_normalized=0$at_group_normalized done' # Create a fresh directory for the next test group, and enter. # If one already exists, the user may have invoked ./run from # within that directory; we remove the contents, but not the # directory itself, so that we aren't pulling the rug out from # under the shell's notion of the current directory. at_group_dir=$at_suite_dir/$at_group_normalized at_group_log=$at_group_dir/$as_me.log if test -d "$at_group_dir"; then find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx {} \; rm -fr "$at_group_dir"/* "$at_group_dir"/.[!.] "$at_group_dir"/.??* fi || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: test directory for $at_group_normalized could not be cleaned" >&5 $as_echo "$as_me: WARNING: test directory for $at_group_normalized could not be cleaned" >&2;} # Be tolerant if the above `rm' was not able to remove the directory. as_dir="$at_group_dir"; as_fn_mkdir_p echo 0 > "$at_status_file" # In verbose mode, append to the log file *and* show on # the standard output; in quiet mode only write to the log. if test -z "$at_verbose"; then at_tee_pipe='tee -a "$at_group_log"' else at_tee_pipe='cat >> "$at_group_log"' fi } # at_fn_group_banner ORDINAL LINE DESC PAD [BANNER] # ------------------------------------------------- # Declare the test group ORDINAL, located at LINE with group description DESC, # and residing under BANNER. Use PAD to align the status column. at_fn_group_banner () { at_setup_line="$2" test -n "$5" && at_fn_banner $5 at_desc="$3" case $1 in [0-9]) at_desc_line=" $1: ";; [0-9][0-9]) at_desc_line=" $1: " ;; *) at_desc_line="$1: " ;; esac as_fn_append at_desc_line "$3$4" $at_quiet $as_echo_n "$at_desc_line" echo "# -*- compilation -*-" >> "$at_group_log" } # at_fn_group_postprocess # ----------------------- # Perform cleanup after running a test group. at_fn_group_postprocess () { # Be sure to come back to the suite directory, in particular # since below we might `rm' the group directory we are in currently. cd "$at_suite_dir" if test ! -f "$at_check_line_file"; then sed "s/^ */$as_me: WARNING: /" <<_ATEOF A failure happened in a test group before any test could be run. This means that test suite is improperly designed. Please report this failure to . _ATEOF $as_echo "$at_setup_line" >"$at_check_line_file" at_status=99 fi $at_verbose $as_echo_n "$at_group. $at_setup_line: " $as_echo_n "$at_group. $at_setup_line: " >> "$at_group_log" case $at_xfail:$at_status in yes:0) at_msg="UNEXPECTED PASS" at_res=xpass at_errexit=$at_errexit_p at_color=$at_red ;; no:0) at_msg="ok" at_res=pass at_errexit=false at_color=$at_grn ;; *:77) at_msg='skipped ('`cat "$at_check_line_file"`')' at_res=skip at_errexit=false at_color=$at_blu ;; no:* | *:99) at_msg='FAILED ('`cat "$at_check_line_file"`')' at_res=fail at_errexit=$at_errexit_p at_color=$at_red ;; yes:*) at_msg='expected failure ('`cat "$at_check_line_file"`')' at_res=xfail at_errexit=false at_color=$at_lgn ;; esac echo "$at_res" > "$at_job_dir/$at_res" # In parallel mode, output the summary line only afterwards. if test $at_jobs -ne 1 && test -n "$at_verbose"; then $as_echo "$at_desc_line $at_color$at_msg$at_std" else # Make sure there is a separator even with long titles. $as_echo " $at_color$at_msg$at_std" fi at_log_msg="$at_group. $at_desc ($at_setup_line): $at_msg" case $at_status in 0|77) # $at_times_file is only available if the group succeeded. # We're not including the group log, so the success message # is written in the global log separately. But we also # write to the group log in case they're using -d. if test -f "$at_times_file"; then at_log_msg="$at_log_msg ("`sed 1d "$at_times_file"`')' rm -f "$at_times_file" fi $as_echo "$at_log_msg" >> "$at_group_log" $as_echo "$at_log_msg" >&5 # Cleanup the group directory, unless the user wants the files # or the success was unexpected. if $at_debug_p || test $at_res = xpass; then at_fn_create_debugging_script if test $at_res = xpass && $at_errexit; then echo stop > "$at_stop_file" fi else if test -d "$at_group_dir"; then find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \; rm -fr "$at_group_dir" fi rm -f "$at_test_source" fi ;; *) # Upon failure, include the log into the testsuite's global # log. The failure message is written in the group log. It # is later included in the global log. $as_echo "$at_log_msg" >> "$at_group_log" # Upon failure, keep the group directory for autopsy, and create # the debugging script. With -e, do not start any further tests. at_fn_create_debugging_script if $at_errexit; then echo stop > "$at_stop_file" fi ;; esac } ## ------------ ## ## Driver loop. ## ## ------------ ## if (set -m && set +m && set +b) >/dev/null 2>&1; then set +b at_job_control_on='set -m' at_job_control_off='set +m' at_job_group=- else at_job_control_on=: at_job_control_off=: at_job_group= fi for at_signal in 1 2 15; do trap 'set +x; set +e $at_job_control_off at_signal='"$at_signal"' echo stop > "$at_stop_file" trap "" $at_signal at_pgids= for at_pgid in `jobs -p 2>/dev/null`; do at_pgids="$at_pgids $at_job_group$at_pgid" done test -z "$at_pgids" || kill -$at_signal $at_pgids 2>/dev/null wait if test "$at_jobs" -eq 1 || test -z "$at_verbose"; then echo >&2 fi at_signame=`kill -l $at_signal 2>&1 || echo $at_signal` set x $at_signame test 0 -gt 2 && at_signame=$at_signal { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: caught signal $at_signame, bailing out" >&5 $as_echo "$as_me: WARNING: caught signal $at_signame, bailing out" >&2;} as_fn_arith 128 + $at_signal && exit_status=$as_val as_fn_exit $exit_status' $at_signal done rm -f "$at_stop_file" at_first=: if test $at_jobs -ne 1 && rm -f "$at_job_fifo" && test -n "$at_job_group" && ( mkfifo "$at_job_fifo" && trap 'exit 1' PIPE STOP TSTP ) 2>/dev/null then # FIFO job dispatcher. trap 'at_pids= for at_pid in `jobs -p`; do at_pids="$at_pids $at_job_group$at_pid" done if test -n "$at_pids"; then at_sig=TSTP test "${TMOUT+set}" = set && at_sig=STOP kill -$at_sig $at_pids 2>/dev/null fi kill -STOP $$ test -z "$at_pids" || kill -CONT $at_pids 2>/dev/null' TSTP echo # Turn jobs into a list of numbers, starting from 1. at_joblist=`$as_echo "$at_groups" | sed -n 1,${at_jobs}p` set X $at_joblist shift for at_group in $at_groups; do $at_job_control_on 2>/dev/null ( # Start one test group. $at_job_control_off if $at_first; then exec 7>"$at_job_fifo" else exec 6<&- fi trap 'set +x; set +e trap "" PIPE echo stop > "$at_stop_file" echo >&7 as_fn_exit 141' PIPE at_fn_group_prepare if cd "$at_group_dir" && at_fn_test $at_group && . "$at_test_source" then :; else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5 $as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;} at_failed=: fi at_fn_group_postprocess echo >&7 ) & $at_job_control_off if $at_first; then at_first=false exec 6<"$at_job_fifo" 7>"$at_job_fifo" fi shift # Consume one token. if test $# -gt 0; then :; else read at_token <&6 || break set x $* fi test -f "$at_stop_file" && break done exec 7>&- # Read back the remaining ($at_jobs - 1) tokens. set X $at_joblist shift if test $# -gt 0; then shift for at_job do read at_token done <&6 fi exec 6<&- wait else # Run serially, avoid forks and other potential surprises. for at_group in $at_groups; do at_fn_group_prepare if cd "$at_group_dir" && at_fn_test $at_group && . "$at_test_source"; then :; else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5 $as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;} at_failed=: fi at_fn_group_postprocess test -f "$at_stop_file" && break at_first=false done fi # Wrap up the test suite with summary statistics. cd "$at_helper_dir" # Use ?..???? when the list must remain sorted, the faster * otherwise. at_pass_list=`for f in */pass; do echo $f; done | sed '/\*/d; s,/pass,,'` at_skip_list=`for f in */skip; do echo $f; done | sed '/\*/d; s,/skip,,'` at_xfail_list=`for f in */xfail; do echo $f; done | sed '/\*/d; s,/xfail,,'` at_xpass_list=`for f in ?/xpass ??/xpass ???/xpass ????/xpass; do echo $f; done | sed '/?/d; s,/xpass,,'` at_fail_list=`for f in ?/fail ??/fail ???/fail ????/fail; do echo $f; done | sed '/?/d; s,/fail,,'` set X $at_pass_list $at_xpass_list $at_xfail_list $at_fail_list $at_skip_list shift; at_group_count=$# set X $at_xpass_list; shift; at_xpass_count=$#; at_xpass_list=$* set X $at_xfail_list; shift; at_xfail_count=$# set X $at_fail_list; shift; at_fail_count=$#; at_fail_list=$* set X $at_skip_list; shift; at_skip_count=$# as_fn_arith $at_group_count - $at_skip_count && at_run_count=$as_val as_fn_arith $at_xpass_count + $at_fail_count && at_unexpected_count=$as_val as_fn_arith $at_xfail_count + $at_fail_count && at_total_fail_count=$as_val # Back to the top directory. cd "$at_dir" rm -rf "$at_helper_dir" # Compute the duration of the suite. at_stop_date=`date` at_stop_time=`date +%s 2>/dev/null` $as_echo "$as_me: ending at: $at_stop_date" >&5 case $at_start_time,$at_stop_time in [0-9]*,[0-9]*) as_fn_arith $at_stop_time - $at_start_time && at_duration_s=$as_val as_fn_arith $at_duration_s / 60 && at_duration_m=$as_val as_fn_arith $at_duration_m / 60 && at_duration_h=$as_val as_fn_arith $at_duration_s % 60 && at_duration_s=$as_val as_fn_arith $at_duration_m % 60 && at_duration_m=$as_val at_duration="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s" $as_echo "$as_me: test suite duration: $at_duration" >&5 ;; esac echo $as_echo "## ------------- ## ## Test results. ## ## ------------- ##" echo { echo $as_echo "## ------------- ## ## Test results. ## ## ------------- ##" echo } >&5 if test $at_run_count = 1; then at_result="1 test" at_were=was else at_result="$at_run_count tests" at_were=were fi if $at_errexit_p && test $at_unexpected_count != 0; then if test $at_xpass_count = 1; then at_result="$at_result $at_were run, one passed" else at_result="$at_result $at_were run, one failed" fi at_result="$at_result unexpectedly and inhibited subsequent tests." at_color=$at_red else # Don't you just love exponential explosion of the number of cases? at_color=$at_red case $at_xpass_count:$at_fail_count:$at_xfail_count in # So far, so good. 0:0:0) at_result="$at_result $at_were successful." at_color=$at_grn ;; 0:0:*) at_result="$at_result behaved as expected." at_color=$at_lgn ;; # Some unexpected failures 0:*:0) at_result="$at_result $at_were run, $at_fail_count failed unexpectedly." ;; # Some failures, both expected and unexpected 0:*:1) at_result="$at_result $at_were run, $at_total_fail_count failed ($at_xfail_count expected failure)." ;; 0:*:*) at_result="$at_result $at_were run, $at_total_fail_count failed ($at_xfail_count expected failures)." ;; # No unexpected failures, but some xpasses *:0:*) at_result="$at_result $at_were run, $at_xpass_count passed unexpectedly." ;; # No expected failures, but failures and xpasses *:1:0) at_result="$at_result $at_were run, $at_unexpected_count did not behave as expected ($at_fail_count unexpected failure)." ;; *:*:0) at_result="$at_result $at_were run, $at_unexpected_count did not behave as expected ($at_fail_count unexpected failures)." ;; # All of them. *:*:1) at_result="$at_result $at_were run, $at_xpass_count passed unexpectedly, $at_total_fail_count failed ($at_xfail_count expected failure)." ;; *:*:*) at_result="$at_result $at_were run, $at_xpass_count passed unexpectedly, $at_total_fail_count failed ($at_xfail_count expected failures)." ;; esac if test $at_skip_count = 0 && test $at_run_count -gt 1; then at_result="All $at_result" fi fi # Now put skips in the mix. case $at_skip_count in 0) ;; 1) at_result="$at_result 1 test was skipped." ;; *) at_result="$at_result $at_skip_count tests were skipped." ;; esac if test $at_unexpected_count = 0; then echo "$at_color$at_result$at_std" echo "$at_result" >&5 else echo "${at_color}ERROR: $at_result$at_std" >&2 echo "ERROR: $at_result" >&5 { echo $as_echo "## ------------------------ ## ## Summary of the failures. ## ## ------------------------ ##" # Summary of failed and skipped tests. if test $at_fail_count != 0; then echo "Failed tests:" $SHELL "$at_myself" $at_fail_list --list echo fi if test $at_skip_count != 0; then echo "Skipped tests:" $SHELL "$at_myself" $at_skip_list --list echo fi if test $at_xpass_count != 0; then echo "Unexpected passes:" $SHELL "$at_myself" $at_xpass_list --list echo fi if test $at_fail_count != 0; then $as_echo "## ---------------------- ## ## Detailed failed tests. ## ## ---------------------- ##" echo for at_group in $at_fail_list do at_group_normalized=$at_group eval 'while :; do case $at_group_normalized in #( '"$at_format"'*) break;; esac at_group_normalized=0$at_group_normalized done' cat "$at_suite_dir/$at_group_normalized/$as_me.log" echo done echo fi if test -n "$at_top_srcdir"; then sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## ${at_top_build_prefix}config.log ## _ASBOX sed 's/^/| /' ${at_top_build_prefix}config.log echo fi } >&5 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## $as_me.log was created. ## _ASBOX echo if $at_debug_p; then at_msg='per-test log files' else at_msg="\`${at_testdir+${at_testdir}/}$as_me.log'" fi $as_echo "Please send $at_msg and all information you think might help: To: Subject: [mlocate 0.26] $as_me: $at_fail_list${at_fail_list:+ failed${at_xpass_list:+, }}$at_xpass_list${at_xpass_list:+ passed unexpectedly} You may investigate any problem if you feel able to do so, in which case the test suite provides a good starting point. Its output may be found below \`${at_testdir+${at_testdir}/}$as_me.dir'. " exit 1 fi exit 0 ## ------------- ## ## Actual tests. ## ## ------------- ## #AT_START_1 at_fn_group_banner 1 'bind-mount.at:17' \ "bind-mount: Empty mountinfo" " " at_xfail=no ( $as_echo "1. $at_setup_line: testing $at_desc ..." $at_traceon { set +x $as_echo "$at_srcdir/bind-mount.at:20: \$abs_builddir/tests/bind-mount-helper /dev/null /foo" at_fn_check_prepare_dynamic "$abs_builddir/tests/bind-mount-helper /dev/null /foo" "bind-mount.at:20" ( $at_check_trace; $abs_builddir/tests/bind-mount-helper /dev/null /foo ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "no /foo " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/bind-mount.at:20" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_1 #AT_START_2 at_fn_group_banner 2 'config.at:26' \ "config: updatedb.conf" " " at_xfail=no ( $as_echo "2. $at_setup_line: testing $at_desc ..." $at_traceon { set +x $as_echo "$at_srcdir/config.at:26: exit 77" at_fn_check_prepare_trace "config.at:26" ( $at_check_trace; exit 77 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/config.at:26" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_2 #AT_START_3 at_fn_group_banner 3 'config.at:27' \ "config: -f" " " at_xfail=no ( $as_echo "3. $at_setup_line: testing $at_desc ..." $at_traceon { set +x $as_echo "$at_srcdir/config.at:27: exit 77" at_fn_check_prepare_trace "config.at:27" ( $at_check_trace; exit 77 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/config.at:27" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_3 #AT_START_4 at_fn_group_banner 4 'config.at:30' \ "config: -e" " " at_xfail=no ( $as_echo "4. $at_setup_line: testing $at_desc ..." $at_traceon mkdir d for i in 1 2 3; do mkdir d/d$i touch d/d$i/f done { set +x $as_echo "$at_srcdir/config.at:39: updatedb -U \"\$(pwd)/d\" -o db -l 0 -e \"\$(pwd)/d/d1\" \\ --add-prunepaths \"\$(pwd)/d/d3 \$(pwd)/this_doesnt_exist\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "config.at:39" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 -e "$(pwd)/d/d1" \ --add-prunepaths "$(pwd)/d/d3 $(pwd)/this_doesnt_exist" ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/config.at:39" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/config.at:41: locate -d db / | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "config.at:41" ( $at_check_trace; locate -d db / | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/d1 d/d2 d/d3 d/d2/f " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/config.at:41" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_4 #AT_START_5 at_fn_group_banner 5 'config.at:52' \ "config: -h" " " at_xfail=no ( $as_echo "5. $at_setup_line: testing $at_desc ..." $at_traceon cat >expout <<'_ATEOF' Usage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `PATH') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `PATH'. Report bugs to mitr@redhat.com. _ATEOF { set +x $as_echo "$at_srcdir/config.at:80: updatedb -h | sed \"s/\\\`[^']*'/\\\`PATH'/g\"" at_fn_check_prepare_notrace 'a `...` command substitution' "config.at:80" ( $at_check_trace; updatedb -h | sed "s/\`[^']*'/\`PATH'/g" ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: $at_diff expout "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/config.at:80" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/config.at:81: updatedb --help | sed \"s/\\\`[^']*'/\\\`PATH'/g\"" at_fn_check_prepare_notrace 'a `...` command substitution' "config.at:81" ( $at_check_trace; updatedb --help | sed "s/\`[^']*'/\`PATH'/g" ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: $at_diff expout "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/config.at:81" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_5 #AT_START_6 at_fn_group_banner 6 'config.at:86' \ "config: -n" " " at_xfail=no ( $as_echo "6. $at_setup_line: testing $at_desc ..." $at_traceon mkdir d for i in 1 2 3; do mkdir d/e$i touch d/e$i/f done { set +x $as_echo "$at_srcdir/config.at:95: updatedb -U \"\$(pwd)/d\" -o db -l 0 -n e1 \\ --add-prunenames \"this_doesnt_exist e3\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "config.at:95" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 -n e1 \ --add-prunenames "this_doesnt_exist e3" ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/config.at:95" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/config.at:97: locate -d db / | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "config.at:97" ( $at_check_trace; locate -d db / | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/e1 d/e2 d/e3 d/e2/f " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/config.at:97" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_6 #AT_START_7 at_fn_group_banner 7 'config.at:108' \ "config: -o" " " at_xfail=no ( $as_echo "7. $at_setup_line: testing $at_desc ..." $at_traceon { set +x $as_echo "$at_srcdir/config.at:111: updatedb -U \"\$(pwd)\" -o db --output db" at_fn_check_prepare_notrace 'a $(...) command substitution' "config.at:111" ( $at_check_trace; updatedb -U "$(pwd)" -o db --output db ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "updatedb: --output specified twice " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/config.at:111" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_7 #AT_START_8 at_fn_group_banner 8 'config.at:118' \ "config: -l" " " at_xfail=no ( $as_echo "8. $at_setup_line: testing $at_desc ..." $at_traceon { set +x $as_echo "$at_srcdir/config.at:121: updatedb -l 0 --require-visibility 1" at_fn_check_prepare_trace "config.at:121" ( $at_check_trace; updatedb -l 0 --require-visibility 1 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "updatedb: --require-visibility specified twice " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/config.at:121" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/config.at:125: updatedb -l 2" at_fn_check_prepare_trace "config.at:125" ( $at_check_trace; updatedb -l 2 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "updatedb: invalid value \`2' of --require-visibility " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/config.at:125" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/config.at:129: updatedb -l maybe" at_fn_check_prepare_trace "config.at:129" ( $at_check_trace; updatedb -l maybe ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "updatedb: invalid value \`maybe' of --require-visibility " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/config.at:129" $at_failed && at_fn_log_failure $at_traceon; } # Functionality untested set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_8 #AT_START_9 at_fn_group_banner 9 'config.at:138' \ "config: -U" " " at_xfail=no ( $as_echo "9. $at_setup_line: testing $at_desc ..." $at_traceon mkdir d touch d/f ln -s d link # Error message is libc-dependent { set +x $as_echo "$at_srcdir/config.at:146: updatedb -U this_file_doesnt_exist -o db -l 0" at_fn_check_prepare_trace "config.at:146" ( $at_check_trace; updatedb -U this_file_doesnt_exist -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo stderr:; cat "$at_stderr" at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/config.at:146" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/config.at:148: updatedb -U / --database-root / -l 0" at_fn_check_prepare_trace "config.at:148" ( $at_check_trace; updatedb -U / --database-root / -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "updatedb: --database-root specified twice " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/config.at:148" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/config.at:152: updatedb -U \"d\" -o db -l 0" at_fn_check_prepare_trace "config.at:152" ( $at_check_trace; updatedb -U "d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/config.at:152" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/config.at:153: locate -d db / | sed \"s,^\$(pwd),PWD,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "config.at:153" ( $at_check_trace; locate -d db / | sed "s,^$(pwd),PWD," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "PWD/d PWD/d/f " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/config.at:153" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/config.at:158: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "config.at:158" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/config.at:158" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/config.at:159: locate -d db / | sed \"s,^\$(pwd),PWD,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "config.at:159" ( $at_check_trace; locate -d db / | sed "s,^$(pwd),PWD," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "PWD/d PWD/d/f " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/config.at:159" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/config.at:164: updatedb --database-root \"\$(pwd)/link\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "config.at:164" ( $at_check_trace; updatedb --database-root "$(pwd)/link" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/config.at:164" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/config.at:165: locate -d db / | sed \"s,^\$(pwd),PWD,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "config.at:165" ( $at_check_trace; locate -d db / | sed "s,^$(pwd),PWD," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "PWD/d PWD/d/f " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/config.at:165" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_9 #AT_START_10 at_fn_group_banner 10 'config.at:173' \ "config: -v" " " at_xfail=no ( $as_echo "10. $at_setup_line: testing $at_desc ..." $at_traceon mkdir -p d/d1 touch d/f1 d/d1/f # Let updatedb consider $(pwd)/d stable sleep 4 { set +x $as_echo "$at_srcdir/config.at:182: updatedb -U \"\$(pwd)/d\" -o db -l 0 -v | sed \"s,\$(pwd)/,,\" | sort" at_fn_check_prepare_notrace 'a $(...) command substitution' "config.at:182" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 -v | sed "s,$(pwd)/,," | sort ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d/d1 d/d1/f d/f1 " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/config.at:182" $at_failed && at_fn_log_failure $at_traceon; } # Merging doesn't change output { set +x $as_echo "$at_srcdir/config.at:189: updatedb -U \"\$(pwd)/d\" -o db -l 0 --verbose | sed \"s,\$(pwd)/,,\" \\ | sort" at_fn_check_prepare_notrace 'a $(...) command substitution' "config.at:189" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 --verbose | sed "s,$(pwd)/,," \ | sort ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d/d1 d/d1/f d/f1 " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/config.at:189" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_10 #AT_START_11 at_fn_group_banner 11 'config.at:200' \ "config: -V" " " at_xfail=no ( $as_echo "11. $at_setup_line: testing $at_desc ..." $at_traceon { set +x $as_echo "$at_srcdir/config.at:203: updatedb -V | sed '1s/) .*/) /'" at_fn_check_prepare_notrace 'a shell pipeline' "config.at:203" ( $at_check_trace; updatedb -V | sed '1s/) .*/) /' ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "updatedb (mlocate) Copyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law. " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/config.at:203" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/config.at:211: updatedb --version | sed '1s/) .*/) /'" at_fn_check_prepare_notrace 'a shell pipeline' "config.at:211" ( $at_check_trace; updatedb --version | sed '1s/) .*/) /' ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "updatedb (mlocate) Copyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law. " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/config.at:211" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_11 #AT_START_12 at_fn_group_banner 12 'config.at:223' \ "config: --debug-pruning" " " at_xfail=no ( $as_echo "12. $at_setup_line: testing $at_desc ..." $at_traceon { set +x $as_echo "$at_srcdir/config.at:223: exit 77" at_fn_check_prepare_trace "config.at:223" ( $at_check_trace; exit 77 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/config.at:223" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_12 #AT_START_13 at_fn_group_banner 13 'config.at:226' \ "config: --prune-bind-mounts" " " at_xfail=no ( $as_echo "13. $at_setup_line: testing $at_desc ..." $at_traceon { set +x $as_echo "$at_srcdir/config.at:229: updatedb --prune-bind-mounts no --prune-bind-mounts yes" at_fn_check_prepare_trace "config.at:229" ( $at_check_trace; updatedb --prune-bind-mounts no --prune-bind-mounts yes ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "updatedb: --prune-bind-mounts would override earlier command-line argument " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/config.at:229" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/config.at:233: updatedb --prune-bind-mounts maybe" at_fn_check_prepare_trace "config.at:233" ( $at_check_trace; updatedb --prune-bind-mounts maybe ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "updatedb: invalid value \`maybe' of --prune-bind-mounts " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/config.at:233" $at_failed && at_fn_log_failure $at_traceon; } # Functionality untested set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_13 #AT_START_14 at_fn_group_banner 14 'config.at:242' \ "config: --prunefs" " " at_xfail=no ( $as_echo "14. $at_setup_line: testing $at_desc ..." $at_traceon { set +x $as_echo "$at_srcdir/config.at:245: updatedb --prunefs foo --prunefs bar" at_fn_check_prepare_trace "config.at:245" ( $at_check_trace; updatedb --prunefs foo --prunefs bar ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "updatedb: --prunefs would override earlier command-line argument " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/config.at:245" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/config.at:249: updatedb -f foo --prunefs bar" at_fn_check_prepare_trace "config.at:249" ( $at_check_trace; updatedb -f foo --prunefs bar ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "updatedb: --prunefs would override earlier command-line argument " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/config.at:249" $at_failed && at_fn_log_failure $at_traceon; } # Functionality untested set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_14 #AT_START_15 at_fn_group_banner 15 'config.at:258' \ "config: --prunenames" " " at_xfail=no ( $as_echo "15. $at_setup_line: testing $at_desc ..." $at_traceon { set +x $as_echo "$at_srcdir/config.at:261: updatedb --prunenames foo --prunenames bar" at_fn_check_prepare_trace "config.at:261" ( $at_check_trace; updatedb --prunenames foo --prunenames bar ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "updatedb: --prunenames would override earlier command-line argument " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/config.at:261" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/config.at:265: updatedb -n foo --prunenames bar" at_fn_check_prepare_trace "config.at:265" ( $at_check_trace; updatedb -n foo --prunenames bar ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "updatedb: --prunenames would override earlier command-line argument " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/config.at:265" $at_failed && at_fn_log_failure $at_traceon; } mkdir d for i in 1 2 3; do mkdir d/e$i touch d/e$i/f done { set +x $as_echo "$at_srcdir/config.at:275: updatedb -U \"\$(pwd)/d\" -o db -l 0 \\ --prunenames \"e3 this_doesnt_exist e1\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "config.at:275" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 \ --prunenames "e3 this_doesnt_exist e1" ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/config.at:275" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/config.at:277: locate -d db / | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "config.at:277" ( $at_check_trace; locate -d db / | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/e1 d/e2 d/e3 d/e2/f " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/config.at:277" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_15 #AT_START_16 at_fn_group_banner 16 'config.at:288' \ "config: --prunepaths" " " at_xfail=no ( $as_echo "16. $at_setup_line: testing $at_desc ..." $at_traceon { set +x $as_echo "$at_srcdir/config.at:291: updatedb --prunepaths foo --prunepaths bar" at_fn_check_prepare_trace "config.at:291" ( $at_check_trace; updatedb --prunepaths foo --prunepaths bar ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "updatedb: --prunepaths would override earlier command-line argument " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/config.at:291" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/config.at:295: updatedb -e foo --prunepaths bar" at_fn_check_prepare_trace "config.at:295" ( $at_check_trace; updatedb -e foo --prunepaths bar ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "updatedb: --prunepaths would override earlier command-line argument " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/config.at:295" $at_failed && at_fn_log_failure $at_traceon; } mkdir d for i in 1 2 3; do mkdir d/d$i touch d/d$i/f done { set +x $as_echo "$at_srcdir/config.at:305: updatedb -U \"\$(pwd)/d\" -o db -l 0 \\ --prunepaths \"\$(pwd)/d/d3 \$(pwd)/d/d1 \$(pwd)/this_doesnt_exist\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "config.at:305" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 \ --prunepaths "$(pwd)/d/d3 $(pwd)/d/d1 $(pwd)/this_doesnt_exist" ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/config.at:305" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/config.at:307: locate -d db / | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "config.at:307" ( $at_check_trace; locate -d db / | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/d1 d/d2 d/d3 d/d2/f " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/config.at:307" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_16 #AT_START_17 at_fn_group_banner 17 'locate.at:17' \ "locate: Basic" " " at_xfail=no ( $as_echo "17. $at_setup_line: testing $at_desc ..." $at_traceon mkdir d touch d/foo d/bar d/baz { set +x $as_echo "$at_srcdir/locate.at:23: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:23" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:23" $at_failed && at_fn_log_failure $at_traceon; } rm d/bar { set +x $as_echo "$at_srcdir/locate.at:27: locate -d db d/f | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:27" ( $at_check_trace; locate -d db d/f | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d/foo " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:27" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:31: locate -d db '*d/b*' d/baz | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:31" ( $at_check_trace; locate -d db '*d/b*' d/baz | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d/bar d/baz " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:31" $at_failed && at_fn_log_failure $at_traceon; } # Ignored options { set +x $as_echo "$at_srcdir/locate.at:37: locate -d db -m d/f | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:37" ( $at_check_trace; locate -d db -m d/f | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d/foo " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:37" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:40: locate -d db --mmap d/f | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:40" ( $at_check_trace; locate -d db --mmap d/f | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d/foo " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:40" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:43: locate -d db -s d/f | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:43" ( $at_check_trace; locate -d db -s d/f | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d/foo " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:43" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:46: locate -d db --stdio d/f | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:46" ( $at_check_trace; locate -d db --stdio d/f | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d/foo " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:46" $at_failed && at_fn_log_failure $at_traceon; } # Error message is libc-dependent { set +x $as_echo "$at_srcdir/locate.at:51: locate --this-option-doesnt-exist" at_fn_check_prepare_trace "locate.at:51" ( $at_check_trace; locate --this-option-doesnt-exist ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo stderr:; cat "$at_stderr" at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:51" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:53: locate -d db" at_fn_check_prepare_trace "locate.at:53" ( $at_check_trace; locate -d db ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "locate: no pattern to search for specified " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:53" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_17 #AT_START_18 at_fn_group_banner 18 'locate.at:60' \ "locate: -A" " " at_xfail=no ( $as_echo "18. $at_setup_line: testing $at_desc ..." $at_traceon mkdir -p d/ touch d/{a,b}{a,b} { set +x $as_echo "$at_srcdir/locate.at:66: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:66" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:66" $at_failed && at_fn_log_failure $at_traceon; } # Only one pattern needs to match by default { set +x $as_echo "$at_srcdir/locate.at:69: locate -d db '*/a?' '*/?a' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:69" ( $at_check_trace; locate -d db '*/a?' '*/?a' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d/aa d/ab d/ba " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:69" $at_failed && at_fn_log_failure $at_traceon; } # With -A, all patterns need to match { set +x $as_echo "$at_srcdir/locate.at:76: locate -d db -A '*/a?' '*/?a' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:76" ( $at_check_trace; locate -d db -A '*/a?' '*/?a' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d/aa " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:76" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:80: locate -d db --all '*/a?' '*/?a' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:80" ( $at_check_trace; locate -d db --all '*/a?' '*/?a' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d/aa " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:80" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_18 #AT_START_19 at_fn_group_banner 19 'locate.at:87' \ "locate: -b" " " at_xfail=no ( $as_echo "19. $at_setup_line: testing $at_desc ..." $at_traceon mkdir -p d/my_basename touch d/my_basename/f { set +x $as_echo "$at_srcdir/locate.at:93: locate -b --basename" at_fn_check_prepare_trace "locate.at:93" ( $at_check_trace; locate -b --basename ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "locate: --basename would override earlier command-line argument " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:93" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:97: locate -w -b" at_fn_check_prepare_trace "locate.at:97" ( $at_check_trace; locate -w -b ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "locate: --basename would override earlier command-line argument " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:97" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:101: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:101" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:101" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:103: locate -d db -b my_basename | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:103" ( $at_check_trace; locate -d db -b my_basename | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d/my_basename " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:103" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:107: locate -d db --basename my_basename | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:107" ( $at_check_trace; locate -d db --basename my_basename | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d/my_basename " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:107" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:111: locate -d db -b /my_basename" at_fn_check_prepare_trace "locate.at:111" ( $at_check_trace; locate -d db -b /my_basename ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:111" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_19 #AT_START_20 at_fn_group_banner 20 'locate.at:116' \ "locate: -c" " " at_xfail=no ( $as_echo "20. $at_setup_line: testing $at_desc ..." $at_traceon mkdir d touch d/foo d/bar { set +x $as_echo "$at_srcdir/locate.at:122: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:122" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:122" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:124: locate -d db -c '*'" at_fn_check_prepare_trace "locate.at:124" ( $at_check_trace; locate -d db -c '*' ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "3 " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:124" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:128: locate -d db --count foo" at_fn_check_prepare_trace "locate.at:128" ( $at_check_trace; locate -d db --count foo ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "1 " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:128" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:132: locate -d db -c this_doesnt_exist" at_fn_check_prepare_trace "locate.at:132" ( $at_check_trace; locate -d db -c this_doesnt_exist ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "0 " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:132" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_20 #AT_START_21 at_fn_group_banner 21 'locate.at:139' \ "locate: -d" " " at_xfail=no ( $as_echo "21. $at_setup_line: testing $at_desc ..." $at_traceon mkdir d1 d2 touch d1/f d2/f { set +x $as_echo "$at_srcdir/locate.at:145: updatedb -U \"\$(pwd)/d1\" -o db1 -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:145" ( $at_check_trace; updatedb -U "$(pwd)/d1" -o db1 -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:145" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:146: updatedb -U \"\$(pwd)/d2\" -o db2 -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:146" ( $at_check_trace; updatedb -U "$(pwd)/d2" -o db2 -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:146" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:148: locate -d db1 --database db2 '*' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:148" ( $at_check_trace; locate -d db1 --database db2 '*' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d1 d1/f d2 d2/f " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:148" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:155: locate -d db2:db1 '*' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:155" ( $at_check_trace; locate -d db2:db1 '*' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d2 d2/f d1 d1/f " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:155" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:162: locate -d - '*' < db1 | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:162" ( $at_check_trace; locate -d - '*' < db1 | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d1 d1/f " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:162" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:167: locate -d - '*' < db1 | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:167" ( $at_check_trace; locate -d - '*' < db1 | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d1 d1/f " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:167" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:172: locate -d -:- '*' < db1 > out" at_fn_check_prepare_trace "locate.at:172" ( $at_check_trace; locate -d -:- '*' < db1 > out ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "locate: can not read two databases from standard input " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:172" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:175: sed \"s,\$(pwd)/,,\" < out" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:175" ( $at_check_trace; sed "s,$(pwd)/,," < out ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d1 d1/f " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:175" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_21 #AT_START_22 at_fn_group_banner 22 'locate.at:183' \ "locate: -e" " " at_xfail=no ( $as_echo "22. $at_setup_line: testing $at_desc ..." $at_traceon mkdir d touch d/f d/g ln -s f d/symlink ln -s this_doesnt_exist d/danglink { set +x $as_echo "$at_srcdir/locate.at:191: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:191" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:191" $at_failed && at_fn_log_failure $at_traceon; } rm d/g # Existence is not checked by default { set +x $as_echo "$at_srcdir/locate.at:196: locate -d db '*' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:196" ( $at_check_trace; locate -d db '*' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/danglink d/f d/g d/symlink " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:196" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:204: locate -d db -e '*' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:204" ( $at_check_trace; locate -d db -e '*' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/f d/symlink " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:204" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:210: locate -d db --existing '*' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:210" ( $at_check_trace; locate -d db --existing '*' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/f d/symlink " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:210" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_22 #AT_START_23 at_fn_group_banner 23 'locate.at:219' \ "locate: -h" " " at_xfail=no ( $as_echo "23. $at_setup_line: testing $at_desc ..." $at_traceon cat >expout <<'_ATEOF' Usage: locate [OPTION]... [PATTERN]... Search for entries in a mlocate database. -A, --all only print entries that match all patterns -b, --basename match only the base name of path names -c, --count only print number of found entries -d, --database DBPATH use DBPATH instead of default database (which is PATH) -e, --existing only print entries for currently existing files -L, --follow follow trailing symbolic links when checking file existence (default) -h, --help print this help -i, --ignore-case ignore case distinctions when matching patterns -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries -m, --mmap ignored, for backward compatibility -P, --nofollow, -H don't follow trailing symbolic links when checking file existence -0, --null separate entries with NUL on output -S, --statistics don't search for entries, print statistics about each used database -q, --quiet report no error messages about reading databases -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns --regex patterns are extended regexps -s, --stdio ignored, for backward compatibility -V, --version print version information -w, --wholename match whole path name (default) Report bugs to mitr@redhat.com. _ATEOF { set +x $as_echo "$at_srcdir/locate.at:253: locate -h | sed 's,^\\([ ]*\\)/.*)\$,\\1PATH),'" at_fn_check_prepare_notrace 'a shell pipeline' "locate.at:253" ( $at_check_trace; locate -h | sed 's,^\([ ]*\)/.*)$,\1PATH),' ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: $at_diff expout "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:253" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:254: locate --help | sed 's,^\\([ ]*\\)/.*)\$,\\1PATH),'" at_fn_check_prepare_notrace 'a shell pipeline' "locate.at:254" ( $at_check_trace; locate --help | sed 's,^\([ ]*\)/.*)$,\1PATH),' ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: $at_diff expout "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:254" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_23 #AT_START_24 at_fn_group_banner 24 'locate.at:259' \ "locate: -i" " " at_xfail=no ( $as_echo "24. $at_setup_line: testing $at_desc ..." $at_traceon mkdir d touch d/foo d/fOo d/Foo { set +x $as_echo "$at_srcdir/locate.at:265: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:265" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:265" $at_failed && at_fn_log_failure $at_traceon; } # Search is case-sensitive by default { set +x $as_echo "$at_srcdir/locate.at:268: locate -d db foo | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:268" ( $at_check_trace; locate -d db foo | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d/foo " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:268" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:272: locate -d db -i 'foo' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:272" ( $at_check_trace; locate -d db -i 'foo' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d/Foo d/fOo d/foo " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:272" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:278: locate -d db --ignore-case '*oo' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:278" ( $at_check_trace; locate -d db --ignore-case '*oo' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d/Foo d/fOo d/foo " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:278" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_24 #AT_START_25 at_fn_group_banner 25 'locate.at:287' \ "locate: -l, -n" " " at_xfail=no ( $as_echo "25. $at_setup_line: testing $at_desc ..." $at_traceon mkdir d touch d/f d/g { set +x $as_echo "$at_srcdir/locate.at:292: locate -l 0 --limit 1" at_fn_check_prepare_trace "locate.at:292" ( $at_check_trace; locate -l 0 --limit 1 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "locate: --limit specified twice " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:292" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:295: locate --limit 0 -n 1" at_fn_check_prepare_trace "locate.at:295" ( $at_check_trace; locate --limit 0 -n 1 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "locate: --limit specified twice " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:295" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:298: locate --limit invalid_integer" at_fn_check_prepare_trace "locate.at:298" ( $at_check_trace; locate --limit invalid_integer ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "locate: invalid value \`invalid_integer' of --limit " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:298" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:302: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:302" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:302" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:304: locate -d db -l 1 '*' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:304" ( $at_check_trace; locate -d db -l 1 '*' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:304" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:308: locate -d db --limit 99999 '*' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:308" ( $at_check_trace; locate -d db --limit 99999 '*' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/f d/g " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:308" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:314: locate -d db -n 0 this_doesnt_exist" at_fn_check_prepare_trace "locate.at:314" ( $at_check_trace; locate -d db -n 0 this_doesnt_exist ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:314" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_25 #AT_START_26 at_fn_group_banner 26 'locate.at:319' \ "locate: -L" " " at_xfail=no ( $as_echo "26. $at_setup_line: testing $at_desc ..." $at_traceon { set +x $as_echo "$at_srcdir/locate.at:322: locate -L -L" at_fn_check_prepare_trace "locate.at:322" ( $at_check_trace; locate -L -L ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "locate: --follow would override earlier command-line argument " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:322" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:326: locate -H --follow" at_fn_check_prepare_trace "locate.at:326" ( $at_check_trace; locate -H --follow ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "locate: --follow would override earlier command-line argument " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:326" $at_failed && at_fn_log_failure $at_traceon; } mkdir d touch d/f d/g ln -s f d/symlink ln -s this_doesnt_exist d/danglink { set +x $as_echo "$at_srcdir/locate.at:335: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:335" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:335" $at_failed && at_fn_log_failure $at_traceon; } rm d/g # -L is the default { set +x $as_echo "$at_srcdir/locate.at:340: locate -d db -e '*' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:340" ( $at_check_trace; locate -d db -e '*' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/f d/symlink " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:340" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:346: locate -d db -eL '*' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:346" ( $at_check_trace; locate -d db -eL '*' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/f d/symlink " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:346" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:352: locate -d db -e --follow '*' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:352" ( $at_check_trace; locate -d db -e --follow '*' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/f d/symlink " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:352" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_26 #AT_START_27 at_fn_group_banner 27 'locate.at:361' \ "locate: -P" " " at_xfail=no ( $as_echo "27. $at_setup_line: testing $at_desc ..." $at_traceon { set +x $as_echo "$at_srcdir/locate.at:364: locate -P --nofollow" at_fn_check_prepare_trace "locate.at:364" ( $at_check_trace; locate -P --nofollow ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "locate: --nofollow would override earlier command-line argument " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:364" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:368: locate -L -P" at_fn_check_prepare_trace "locate.at:368" ( $at_check_trace; locate -L -P ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "locate: --nofollow would override earlier command-line argument " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:368" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:372: locate -L -H" at_fn_check_prepare_trace "locate.at:372" ( $at_check_trace; locate -L -H ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "locate: --nofollow would override earlier command-line argument " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:372" $at_failed && at_fn_log_failure $at_traceon; } mkdir d touch d/f d/g ln -s f d/symlink ln -s this_doesnt_exist d/danglink { set +x $as_echo "$at_srcdir/locate.at:381: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:381" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:381" $at_failed && at_fn_log_failure $at_traceon; } rm d/g { set +x $as_echo "$at_srcdir/locate.at:385: locate -d db -eH '*' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:385" ( $at_check_trace; locate -d db -eH '*' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/danglink d/f d/symlink " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:385" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:392: locate -d db -e -P '*' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:392" ( $at_check_trace; locate -d db -e -P '*' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/danglink d/f d/symlink " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:392" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:399: locate -d db -e --nofollow '*' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:399" ( $at_check_trace; locate -d db -e --nofollow '*' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/danglink d/f d/symlink " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:399" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_27 #AT_START_28 at_fn_group_banner 28 'locate.at:409' \ "locate: -S" " " at_xfail=no ( $as_echo "28. $at_setup_line: testing $at_desc ..." $at_traceon { set +x $as_echo "$at_srcdir/locate.at:412: locate -S foo" at_fn_check_prepare_trace "locate.at:412" ( $at_check_trace; locate -S foo ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "locate: non-option arguments are not allowed with --statistics " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:412" $at_failed && at_fn_log_failure $at_traceon; } mkdir d touch d/f { set +x $as_echo "$at_srcdir/locate.at:419: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:419" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:419" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:421: locate -d db -S | sed 's/[0123456789]* bytes\\{0,1\\}/BYTES bytes/'" at_fn_check_prepare_notrace 'a shell pipeline' "locate.at:421" ( $at_check_trace; locate -d db -S | sed 's/[0123456789]* bytes\{0,1\}/BYTES bytes/' ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "Database db: 1 directory 2 files BYTES bytes in file names BYTES bytes used to store database " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:421" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:430: locate -d - --statistics < db \\ | sed 's/[0123456789]* bytes\\{0,1\\}/BYTES bytes/'" at_fn_check_prepare_notrace 'an embedded newline' "locate.at:430" ( $at_check_trace; locate -d - --statistics < db \ | sed 's/[0123456789]* bytes\{0,1\}/BYTES bytes/' ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "Database -: 1 directory 2 files BYTES bytes in file names BYTES bytes used to store database " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:430" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_28 #AT_START_29 at_fn_group_banner 29 'locate.at:442' \ "locate: -q" " " at_xfail=no ( $as_echo "29. $at_setup_line: testing $at_desc ..." $at_traceon { set +x $as_echo "$at_srcdir/locate.at:445: locate -d this_doesnt_exist -q '*'" at_fn_check_prepare_trace "locate.at:445" ( $at_check_trace; locate -d this_doesnt_exist -q '*' ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:445" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:446: locate -d this_doesnt_exist --quiet '*'" at_fn_check_prepare_trace "locate.at:446" ( $at_check_trace; locate -d this_doesnt_exist --quiet '*' ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:446" $at_failed && at_fn_log_failure $at_traceon; } printf '\000mlocate\000\000\000\000\000\377xx-' > db { set +x $as_echo "$at_srcdir/locate.at:449: locate -d db -q '*'" at_fn_check_prepare_trace "locate.at:449" ( $at_check_trace; locate -d db -q '*' ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:449" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_29 #AT_START_30 at_fn_group_banner 30 'locate.at:454' \ "locate: -r" " " at_xfail=no ( $as_echo "30. $at_setup_line: testing $at_desc ..." $at_traceon { set +x $as_echo "$at_srcdir/locate.at:457: locate -d db -r '.*' '*'" at_fn_check_prepare_trace "locate.at:457" ( $at_check_trace; locate -d db -r '.*' '*' ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "locate: non-option arguments are not allowed with --regexp " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:457" $at_failed && at_fn_log_failure $at_traceon; } mkdir d touch d/foo d/Foo d/bar { set +x $as_echo "$at_srcdir/locate.at:464: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:464" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:464" $at_failed && at_fn_log_failure $at_traceon; } # Default is not to use regexps { set +x $as_echo "$at_srcdir/locate.at:467: locate -d db '.*f.o'" at_fn_check_prepare_trace "locate.at:467" ( $at_check_trace; locate -d db '.*f.o' ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:467" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:469: locate -d db -r '.*foo' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:469" ( $at_check_trace; locate -d db -r '.*foo' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d/foo " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:469" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:473: locate -d db --regexp '.*foo' -r '.*d/bar' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:473" ( $at_check_trace; locate -d db --regexp '.*foo' -r '.*d/bar' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d/bar d/foo " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:473" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:478: locate -d db --regexp '.*foo' -i | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:478" ( $at_check_trace; locate -d db --regexp '.*foo' -i | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d/Foo d/foo " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:478" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:483: locate -d db --regexp '\\(' 2> err" at_fn_check_prepare_trace "locate.at:483" ( $at_check_trace; locate -d db --regexp '\(' 2> err ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:483" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:484: sed \"s/': .*/': /\" < err" at_fn_check_prepare_trace "locate.at:484" ( $at_check_trace; sed "s/': .*/': /" < err ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "locate: invalid regexp \`\\(': " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:484" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_30 #AT_START_31 at_fn_group_banner 31 'locate.at:491' \ "locate: -V" " " at_xfail=no ( $as_echo "31. $at_setup_line: testing $at_desc ..." $at_traceon { set +x $as_echo "$at_srcdir/locate.at:494: locate -V | sed '1s/ .*/ /'" at_fn_check_prepare_notrace 'a shell pipeline' "locate.at:494" ( $at_check_trace; locate -V | sed '1s/ .*/ /' ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "mlocate Copyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law. " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:494" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:502: locate --version | sed '1s/ .*/ /'" at_fn_check_prepare_notrace 'a shell pipeline' "locate.at:502" ( $at_check_trace; locate --version | sed '1s/ .*/ /' ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "mlocate Copyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law. " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:502" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_31 #AT_START_32 at_fn_group_banner 32 'locate.at:513' \ "locate: -w" " " at_xfail=no ( $as_echo "32. $at_setup_line: testing $at_desc ..." $at_traceon { set +x $as_echo "$at_srcdir/locate.at:516: locate -w --wholename" at_fn_check_prepare_trace "locate.at:516" ( $at_check_trace; locate -w --wholename ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "locate: --wholename would override earlier command-line argument " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:516" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:520: locate -b -w" at_fn_check_prepare_trace "locate.at:520" ( $at_check_trace; locate -b -w ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "locate: --wholename would override earlier command-line argument " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:520" $at_failed && at_fn_log_failure $at_traceon; } mkdir d touch d/f { set +x $as_echo "$at_srcdir/locate.at:527: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:527" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:527" $at_failed && at_fn_log_failure $at_traceon; } # -w is the default { set +x $as_echo "$at_srcdir/locate.at:530: locate -d db '/d' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:530" ( $at_check_trace; locate -d db '/d' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/f " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:530" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:535: locate -d db -w '/d' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:535" ( $at_check_trace; locate -d db -w '/d' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/f " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:535" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:540: locate -d db --wholename '/d' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:540" ( $at_check_trace; locate -d db --wholename '/d' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/f " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:540" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_32 #AT_START_33 at_fn_group_banner 33 'locate.at:548' \ "locate: -0" " " at_xfail=no ( $as_echo "33. $at_setup_line: testing $at_desc ..." $at_traceon mkdir d touch d/bar d/baz { set +x $as_echo "$at_srcdir/locate.at:554: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:554" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:554" $at_failed && at_fn_log_failure $at_traceon; } printf 'd/bar\000d/baz\000' > expout { set +x $as_echo "$at_srcdir/locate.at:558: locate -d db -0 d/b | sed \"s,\$(pwd)/,,g\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:558" ( $at_check_trace; locate -d db -0 d/b | sed "s,$(pwd)/,,g" ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: $at_diff expout "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:558" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:560: locate -d db --null d/b | sed \"s,\$(pwd)/,,g\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:560" ( $at_check_trace; locate -d db --null d/b | sed "s,$(pwd)/,,g" ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: $at_diff expout "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:560" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_33 #AT_START_34 at_fn_group_banner 34 'locate.at:565' \ "locate: --regex" " " at_xfail=no ( $as_echo "34. $at_setup_line: testing $at_desc ..." $at_traceon mkdir d touch d/foo d/Foo d/fOo d/bar d/baz { set +x $as_echo "$at_srcdir/locate.at:571: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:571" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:571" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:573: locate -d db --regex '.*d/baz' '.*d/bar' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:573" ( $at_check_trace; locate -d db --regex '.*d/baz' '.*d/bar' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d/bar d/baz " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:573" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:578: locate -d db --regex '.*d/foo' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:578" ( $at_check_trace; locate -d db --regex '.*d/foo' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d/foo " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:578" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:582: locate -d db --regex -i '.*d/foo' | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:582" ( $at_check_trace; locate -d db --regex -i '.*d/foo' | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d/Foo d/fOo d/foo " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:582" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:588: locate -d db --regex '(' 2> err" at_fn_check_prepare_trace "locate.at:588" ( $at_check_trace; locate -d db --regex '(' 2> err ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:588" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:589: sed \"s/': .*/': /\" < err" at_fn_check_prepare_trace "locate.at:589" ( $at_check_trace; sed "s/': .*/': /" < err ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "locate: invalid regexp \`(': " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:589" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_34 #AT_START_35 at_fn_group_banner 35 'locate.at:596' \ "locate: LOCATE_PATH" " " at_xfail=no ( $as_echo "35. $at_setup_line: testing $at_desc ..." $at_traceon mkdir d1 d2 touch d1/foo d2/foo { set +x $as_echo "$at_srcdir/locate.at:601: updatedb -U \"\$(pwd)/d1\" -o db1 -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:601" ( $at_check_trace; updatedb -U "$(pwd)/d1" -o db1 -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:601" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:602: updatedb -U \"\$(pwd)/d2\" -o db2 -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:602" ( $at_check_trace; updatedb -U "$(pwd)/d2" -o db2 -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:602" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:604: LOCATE_PATH=db1 locate -d db2 /foo | sed \"s,\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "locate.at:604" ( $at_check_trace; LOCATE_PATH=db1 locate -d db2 /foo | sed "s,$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d2/foo d1/foo " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:604" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_35 #AT_START_36 at_fn_group_banner 36 'locate.at:612' \ "locate: Invalid source database" " " at_xfail=no ( $as_echo "36. $at_setup_line: testing $at_desc ..." $at_traceon { set +x $as_echo "$at_srcdir/locate.at:615: locate -d db '*' 2>err" at_fn_check_prepare_trace "locate.at:615" ( $at_check_trace; locate -d db '*' 2>err ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:615" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/locate.at:616: sed \"s/': .*/': /\" < err" at_fn_check_prepare_trace "locate.at:616" ( $at_check_trace; sed "s/': .*/': /" < err ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "locate: can not stat () \`db': " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/locate.at:616" $at_failed && at_fn_log_failure $at_traceon; } > db { set +x $as_echo "$at_srcdir/locate.at:621: locate -d db '*'" at_fn_check_prepare_trace "locate.at:621" ( $at_check_trace; locate -d db '*' ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "locate: unexpected EOF reading \`db' " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:621" $at_failed && at_fn_log_failure $at_traceon; } echo '0123456789abcdef-' > db { set +x $as_echo "$at_srcdir/locate.at:626: locate -d db '*'" at_fn_check_prepare_trace "locate.at:626" ( $at_check_trace; locate -d db '*' ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "locate: \`db' does not seem to be a mlocate database " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:626" $at_failed && at_fn_log_failure $at_traceon; } printf '\000mlocate\000\000\000\000\377\000xx-' > db { set +x $as_echo "$at_srcdir/locate.at:631: locate -d db '*'" at_fn_check_prepare_trace "locate.at:631" ( $at_check_trace; locate -d db '*' ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "locate: \`db' has unknown version 255 " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:631" $at_failed && at_fn_log_failure $at_traceon; } printf '\000mlocate\000\000\000\000\000\377xx-' > db { set +x $as_echo "$at_srcdir/locate.at:636: locate -d db '*'" at_fn_check_prepare_trace "locate.at:636" ( $at_check_trace; locate -d db '*' ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter echo >>"$at_stderr"; $as_echo "locate: \`db' has unknown visibility flag 255 " | \ $at_diff - "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/locate.at:636" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_36 #AT_START_37 at_fn_group_banner 37 'updatedb.at:17' \ "updatedb: File types" " " at_xfail=no ( $as_echo "37. $at_setup_line: testing $at_desc ..." $at_traceon mkdir d touch d/file mkdir d/dir touch d/dir/subfile mkfifo d/fifo ln -s file d/symlink ln -s nonexistent d/danglink touch d/hardlink1 ln d/hardlink1 d/hardlink2 echo | dd > d/largefile bs=1024 seek=5000000 { set +x $as_echo "$at_srcdir/updatedb.at:31: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:31" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:31" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/updatedb.at:33: locate -d db / | sed \"s,^\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:33" ( $at_check_trace; locate -d db / | sed "s,^$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/danglink d/dir d/fifo d/file d/hardlink1 d/hardlink2 d/largefile d/symlink d/dir/subfile " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:33" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_37 #AT_START_38 at_fn_group_banner 38 'updatedb.at:49' \ "updatedb: Output sorting" " " at_xfail=no ( $as_echo "38. $at_setup_line: testing $at_desc ..." $at_traceon # '.', '/' left out allchars='! " # $ % & '\'' ( ) * + , - 0 9 : ; < = > ?' # emacs: " allchars="$allchars"' @ A Z [ \ ] ^ _ ` a z { | } ~' mkdir d echo 'd' > subdirs > subdir_files set -f for dir in $allchars; do mkdir "d/$dir" echo "d/$dir" >> subdirs for file in $allchars; do touch "d/$dir/$file" echo "d/$dir/$file" >> subdir_files done done set +f { set +x $as_echo "$at_srcdir/updatedb.at:72: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:72" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:72" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/updatedb.at:74: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:74" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:74" $at_failed && at_fn_log_failure $at_traceon; } cat subdirs subdir_files > expout { set +x $as_echo "$at_srcdir/updatedb.at:77: locate -d db / | sed \"s,^\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:77" ( $at_check_trace; locate -d db / | sed "s,^$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: $at_diff expout "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:77" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_38 #AT_START_39 at_fn_group_banner 39 'updatedb.at:82' \ "updatedb: Permissions" " " at_xfail=no test "x`id -u`" = x0 && at_xfail=yes ( $as_echo "39. $at_setup_line: testing $at_desc ..." $at_traceon perms='000 100 200 300 400 500 600 700' mkdir d for perm in $perms; do mkdir -p "d/d$perm" "d/d$perm/d" touch "d/f$perm" "d/d$perm/d/f" chmod "$perm" "d/f$perm" "d/d$perm" done { set +x $as_echo "$at_srcdir/updatedb.at:96: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:96" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:96" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/updatedb.at:98: locate -d db / | sed \"s,^\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:98" ( $at_check_trace; locate -d db / | sed "s,^$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/d000 d/d100 d/d200 d/d300 d/d400 d/d500 d/d600 d/d700 d/f000 d/f100 d/f200 d/f300 d/f400 d/f500 d/f600 d/f700 d/d500/d d/d500/d/f d/d700/d d/d700/d/f " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:98" $at_failed && at_fn_log_failure $at_traceon; } # Allow cleaning up chmod -R u+rwx d rm -rf d set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_39 #AT_START_40 at_fn_group_banner 40 'updatedb.at:129' \ "updatedb: Invalid source database" " " at_xfail=no ( $as_echo "40. $at_setup_line: testing $at_desc ..." $at_traceon mkdir d touch d/f cat >expout <<'_ATEOF' d d/f _ATEOF > db { set +x $as_echo "$at_srcdir/updatedb.at:142: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:142" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:142" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/updatedb.at:143: locate -d db / | sed \"s,^\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:143" ( $at_check_trace; locate -d db / | sed "s,^$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: $at_diff expout "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:143" $at_failed && at_fn_log_failure $at_traceon; } echo '0123456789abcdef-' > db { set +x $as_echo "$at_srcdir/updatedb.at:146: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:146" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:146" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/updatedb.at:147: locate -d db / | sed \"s,^\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:147" ( $at_check_trace; locate -d db / | sed "s,^$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: $at_diff expout "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:147" $at_failed && at_fn_log_failure $at_traceon; } printf '\000mlocate\000\000\000\000\377\000xx-' > db { set +x $as_echo "$at_srcdir/updatedb.at:150: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:150" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:150" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/updatedb.at:151: locate -d db / | sed \"s,^\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:151" ( $at_check_trace; locate -d db / | sed "s,^$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: $at_diff expout "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:151" $at_failed && at_fn_log_failure $at_traceon; } printf '\000mlocate\000\000\000\000\000\377xx-' > db { set +x $as_echo "$at_srcdir/updatedb.at:154: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:154" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:154" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/updatedb.at:155: locate -d db / | sed \"s,^\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:155" ( $at_check_trace; locate -d db / | sed "s,^$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: $at_diff expout "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:155" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_40 #AT_START_41 at_fn_group_banner 41 'updatedb.at:160' \ "updatedb: Change detection" " " at_xfail=no ( $as_echo "41. $at_setup_line: testing $at_desc ..." $at_traceon mkdir -p d/d0 touch d/f0 d/d0/f { set +x $as_echo "$at_srcdir/updatedb.at:166: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:166" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:166" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/updatedb.at:167: locate -d db / | sed \"s,^\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:167" ( $at_check_trace; locate -d db / | sed "s,^$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/d0 d/f0 d/d0/f " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:167" $at_failed && at_fn_log_failure $at_traceon; } mv d/d0 d/d1 { set +x $as_echo "$at_srcdir/updatedb.at:176: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:176" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:176" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/updatedb.at:177: locate -d db / | sed \"s,^\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:177" ( $at_check_trace; locate -d db / | sed "s,^$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/d1 d/f0 d/d1/f " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:177" $at_failed && at_fn_log_failure $at_traceon; } mv d/f0 d/f1 { set +x $as_echo "$at_srcdir/updatedb.at:186: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:186" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:186" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/updatedb.at:187: locate -d db / | sed \"s,^\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:187" ( $at_check_trace; locate -d db / | sed "s,^$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/d1 d/f1 d/d1/f " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:187" $at_failed && at_fn_log_failure $at_traceon; } touch d/f2 mkdir d/d2 { set +x $as_echo "$at_srcdir/updatedb.at:197: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:197" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:197" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/updatedb.at:198: locate -d db / | sed \"s,^\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:198" ( $at_check_trace; locate -d db / | sed "s,^$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/d1 d/d2 d/f1 d/f2 d/d1/f " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:198" $at_failed && at_fn_log_failure $at_traceon; } rm -r d/d1 d/f1 { set +x $as_echo "$at_srcdir/updatedb.at:209: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:209" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:209" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/updatedb.at:210: locate -d db / | sed \"s,^\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:210" ( $at_check_trace; locate -d db / | sed "s,^$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/d2 d/f2 " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:210" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_41 #AT_START_42 at_fn_group_banner 42 'updatedb.at:219' \ "updatedb: Concurrent modification" " " at_xfail=no ( $as_echo "42. $at_setup_line: testing $at_desc ..." $at_traceon mkdir d touch d/f1 (cd d; while :; do mv f1 f2; mv f2 f1; done) & bgpid=$! { set +x $as_echo "$at_srcdir/updatedb.at:228: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:228" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:228" $at_failed && at_fn_log_failure $at_traceon; } kill -KILL $bgpid wait $bgpid { set +x $as_echo "$at_srcdir/updatedb.at:233: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:233" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:233" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/updatedb.at:234: locate -d db / -c" at_fn_check_prepare_trace "updatedb.at:234" ( $at_check_trace; locate -d db / -c ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "2 " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:234" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_42 #AT_START_43 at_fn_group_banner 43 'updatedb.at:241' \ "updatedb: Very deep hierarchy" " " at_xfail=no ( $as_echo "43. $at_setup_line: testing $at_desc ..." $at_traceon # updatedb has two limits: # - path name length of OBSTACK_SIZE_MAX, currently limiting the depth to # roughly 29000 # - resource limit on file descriptors, one per directory; site-dependent, # let's assume roughly 1024 are available mkdir d ( cd d for depth in $(seq 1 950); do # $PSW and $OLDPWD eventually become larger than ARG_MAX PWD= OLDPWD= mkdir "depth$depth-abcdefghijklmnopqrstuvwxyz" # bash's cd complains if the path is too long cd "depth$depth-abcdefghijklmnopqrstuvwxyz" 2>/dev/null done ) { set +x $as_echo "$at_srcdir/updatedb.at:260: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:260" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:260" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/updatedb.at:261: locate -d db / -c" at_fn_check_prepare_trace "updatedb.at:261" ( $at_check_trace; locate -d db / -c ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "951 " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:261" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_43 #AT_START_44 at_fn_group_banner 44 'updatedb.at:268' \ "updatedb: Output creation" " " at_xfail=no test "x`id -u`" = x0 && at_xfail=yes ( $as_echo "44. $at_setup_line: testing $at_desc ..." $at_traceon mkdir d out chmod 500 out echo "updatedb: can not open a temporary file for \`$(pwd)/out/db'" > experr { set +x $as_echo "$at_srcdir/updatedb.at:276: updatedb -U \"\$(pwd)/d\" -o out/db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:276" ( $at_check_trace; updatedb -U "$(pwd)/d" -o out/db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter $at_diff experr "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/updatedb.at:276" $at_failed && at_fn_log_failure $at_traceon; } mkdir d2 chmod 600 d2 { set +x $as_echo "$at_srcdir/updatedb.at:281: updatedb -U \"\$(pwd)/d2\" -o db -l 0 2> error" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:281" ( $at_check_trace; updatedb -U "$(pwd)/d2" -o db -l 0 2> error ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 1 $at_status "$at_srcdir/updatedb.at:281" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/updatedb.at:282: sed \"s,\$(pwd)/,DIR/,; s/': .*\$/': /\" < error" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:282" ( $at_check_trace; sed "s,$(pwd)/,DIR/,; s/': .*$/': /" < error ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "updatedb: can not change directory to \`DIR/d2': " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:282" $at_failed && at_fn_log_failure $at_traceon; } ( umask 000 { set +x $as_echo "$at_srcdir/updatedb.at:288: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:288" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:288" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/updatedb.at:289: ls -l db | cut -c 1-10" at_fn_check_prepare_notrace 'a shell pipeline' "updatedb.at:289" ( $at_check_trace; ls -l db | cut -c 1-10 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "-rw-rw-rw- " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:289" $at_failed && at_fn_log_failure $at_traceon; } ) ( umask 777 { set +x $as_echo "$at_srcdir/updatedb.at:296: updatedb -U \"\$(pwd)/d\" -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:296" ( $at_check_trace; updatedb -U "$(pwd)/d" -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:296" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/updatedb.at:297: ls -l db | cut -c 1-10" at_fn_check_prepare_notrace 'a shell pipeline' "updatedb.at:297" ( $at_check_trace; ls -l db | cut -c 1-10 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "---------- " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:297" $at_failed && at_fn_log_failure $at_traceon; } ) chmod 700 out d2 set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_44 #AT_START_45 at_fn_group_banner 45 'updatedb.at:307' \ "updatedb: Path sorting" " " at_xfail=no ( $as_echo "45. $at_setup_line: testing $at_desc ..." $at_traceon mkdir -p d/a/z d/a.b d/a.c touch d/a/z/x d/a.b/x d/a.c/x # The correct sort order of conf_prunepaths is d/a/z d/a.b. An incorrect sort # order, e.g. d/a.b d/a/z, would prune only d/a/z. { set +x $as_echo "$at_srcdir/updatedb.at:314: updatedb --prunepaths \"\$(pwd)/d/a.b \$(pwd)/d/a/z\" -U \"\$(pwd)/d\" \\ -o db -l 0" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:314" ( $at_check_trace; updatedb --prunepaths "$(pwd)/d/a.b $(pwd)/d/a/z" -U "$(pwd)/d" \ -o db -l 0 ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: at_fn_diff_devnull "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:314" $at_failed && at_fn_log_failure $at_traceon; } { set +x $as_echo "$at_srcdir/updatedb.at:316: locate -d db / | sed \"s,^\$(pwd)/,,\"" at_fn_check_prepare_notrace 'a $(...) command substitution' "updatedb.at:316" ( $at_check_trace; locate -d db / | sed "s,^$(pwd)/,," ) >>"$at_stdout" 2>>"$at_stderr" at_status=$? at_failed=false $at_check_filter at_fn_diff_devnull "$at_stderr" || at_failed=: echo >>"$at_stdout"; $as_echo "d d/a d/a.b d/a.c d/a/z d/a.c/x " | \ $at_diff - "$at_stdout" || at_failed=: at_fn_check_status 0 $at_status "$at_srcdir/updatedb.at:316" $at_failed && at_fn_log_failure $at_traceon; } set +x $at_times_p && times >"$at_times_file" ) 5>&1 2>&1 7>&- | eval $at_tee_pipe read at_status <"$at_status_file" #AT_STOP_45 mlocate-0.26/tests/package.m40000664000175000017500000000052612027217354013015 00000000000000# Signature of the current package. m4_define([AT_PACKAGE_NAME], [mlocate]) m4_define([AT_PACKAGE_TARNAME], [mlocate]) m4_define([AT_PACKAGE_VERSION], [0.26]) m4_define([AT_PACKAGE_STRING], [mlocate 0.26]) m4_define([AT_PACKAGE_BUGREPORT], [mitr@redhat.com]) m4_define([AT_PACKAGE_URL], [https://fedorahosted.org/mlocate/]) mlocate-0.26/tests/bind-mount.at0000664000175000017500000000160311762540446013565 00000000000000# Copyright (C) 2012 Red Hat, Inc. All rights reserved. # This copyrighted material is made available to anyone wishing to use, modify, # copy, or redistribute it subject to the terms and conditions of the GNU # General Public License v.2. # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Author: Miloslav Trmač AT_SETUP([bind-mount: Empty mountinfo]) AT_KEYWORDS([bind-mount]) AT_CHECK([$abs_builddir/tests/bind-mount-helper /dev/null /foo], , [no /foo ]) AT_CLEANUP mlocate-0.26/tests/testsuite.at0000664000175000017500000000156411772152421013541 00000000000000AT_COPYRIGHT([Copyright (C) 2006, 2008, 2012 Red Hat, Inc. All rights reserved. This copyrighted material is made available to anyone wishing to use, modify, copy, or redistribute it subject to the terms and conditions of the GNU General Public License v.2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Author: Miloslav Trmač ]) AT_INIT AT_TESTED([locate updatedb]) m4_include([bind-mount.at]) m4_include([config.at]) m4_include([locate.at]) m4_include([updatedb.at]) mlocate-0.26/tests/locate.at0000664000175000017500000003027512027215106012752 00000000000000# Copyright (C) 2007 Red Hat, Inc. All rights reserved. # This copyrighted material is made available to anyone wishing to use, modify, # copy, or redistribute it subject to the terms and conditions of the GNU # General Public License v.2. # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Author: Miloslav Trmac AT_SETUP([locate: Basic]) AT_KEYWORDS([locate]) mkdir d touch d/foo d/bar d/baz AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) rm d/bar AT_CHECK([locate -d db d/f | sed "s,$(pwd)/,,"], , [d/foo ]) AT_CHECK([locate -d db '*d/b*' d/baz | sed "s,$(pwd)/,,"], , [d/bar d/baz ]) # Ignored options AT_CHECK([locate -d db -m d/f | sed "s,$(pwd)/,,"], , [d/foo ]) AT_CHECK([locate -d db --mmap d/f | sed "s,$(pwd)/,,"], , [d/foo ]) AT_CHECK([locate -d db -s d/f | sed "s,$(pwd)/,,"], , [d/foo ]) AT_CHECK([locate -d db --stdio d/f | sed "s,$(pwd)/,,"], , [d/foo ]) # Error message is libc-dependent AT_CHECK([locate --this-option-doesnt-exist], 1, , [ignore]) AT_CHECK([locate -d db], 1, , [locate: no pattern to search for specified ]) AT_CLEANUP AT_SETUP([locate: -A]) AT_KEYWORDS([locate]) mkdir -p d/ touch d/{a,b}{a,b} AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) # Only one pattern needs to match by default AT_CHECK([locate -d db '*/a?' '*/?a' | sed "s,$(pwd)/,,"], , [d/aa d/ab d/ba ]) # With -A, all patterns need to match AT_CHECK([locate -d db -A '*/a?' '*/?a' | sed "s,$(pwd)/,,"], , [d/aa ]) AT_CHECK([locate -d db --all '*/a?' '*/?a' | sed "s,$(pwd)/,,"], , [d/aa ]) AT_CLEANUP AT_SETUP([locate: -b]) AT_KEYWORDS([locate]) mkdir -p d/my_basename touch d/my_basename/f AT_CHECK([locate -b --basename], 1, , [locate: --basename would override earlier command-line argument ]) AT_CHECK([locate -w -b], 1, , [locate: --basename would override earlier command-line argument ]) AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) AT_CHECK([locate -d db -b my_basename | sed "s,$(pwd)/,,"], , [d/my_basename ]) AT_CHECK([locate -d db --basename my_basename | sed "s,$(pwd)/,,"], , [d/my_basename ]) AT_CHECK([locate -d db -b /my_basename], 1) AT_CLEANUP AT_SETUP([locate: -c]) AT_KEYWORDS([locate]) mkdir d touch d/foo d/bar AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) AT_CHECK([locate -d db -c '*'], , [3 ]) AT_CHECK([locate -d db --count foo], , [1 ]) AT_CHECK([locate -d db -c this_doesnt_exist], 1, [0 ]) AT_CLEANUP AT_SETUP([locate: -d]) AT_KEYWORDS([locate]) mkdir d1 d2 touch d1/f d2/f AT_CHECK([updatedb -U "$(pwd)/d1" -o db1 -l 0]) AT_CHECK([updatedb -U "$(pwd)/d2" -o db2 -l 0]) AT_CHECK([locate -d db1 --database db2 '*' | sed "s,$(pwd)/,,"], , [d1 d1/f d2 d2/f ]) AT_CHECK([locate -d db2:db1 '*' | sed "s,$(pwd)/,,"], , [d2 d2/f d1 d1/f ]) AT_CHECK([locate -d - '*' < db1 | sed "s,$(pwd)/,,"], , [d1 d1/f ]) AT_CHECK([locate -d - '*' < db1 | sed "s,$(pwd)/,,"], , [d1 d1/f ]) AT_CHECK([locate -d -:- '*' < db1 > out], 1, , [locate: can not read two databases from standard input ]) AT_CHECK([sed "s,$(pwd)/,," < out], 0, [d1 d1/f ]) AT_CLEANUP AT_SETUP([locate: -e]) AT_KEYWORDS([locate]) mkdir d touch d/f d/g ln -s f d/symlink ln -s this_doesnt_exist d/danglink AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) rm d/g # Existence is not checked by default AT_CHECK([locate -d db '*' | sed "s,$(pwd)/,,"], , [d d/danglink d/f d/g d/symlink ]) AT_CHECK([locate -d db -e '*' | sed "s,$(pwd)/,,"], , [d d/f d/symlink ]) AT_CHECK([locate -d db --existing '*' | sed "s,$(pwd)/,,"], , [d d/f d/symlink ]) AT_CLEANUP AT_SETUP([locate: -h]) AT_KEYWORDS([locate]) AT_DATA([expout], [[Usage: locate [OPTION]... [PATTERN]... Search for entries in a mlocate database. -A, --all only print entries that match all patterns -b, --basename match only the base name of path names -c, --count only print number of found entries -d, --database DBPATH use DBPATH instead of default database (which is PATH) -e, --existing only print entries for currently existing files -L, --follow follow trailing symbolic links when checking file existence (default) -h, --help print this help -i, --ignore-case ignore case distinctions when matching patterns -l, --limit, -n LIMIT limit output (or counting) to LIMIT entries -m, --mmap ignored, for backward compatibility -P, --nofollow, -H don't follow trailing symbolic links when checking file existence -0, --null separate entries with NUL on output -S, --statistics don't search for entries, print statistics about each used database -q, --quiet report no error messages about reading databases -r, --regexp REGEXP search for basic regexp REGEXP instead of patterns --regex patterns are extended regexps -s, --stdio ignored, for backward compatibility -V, --version print version information -w, --wholename match whole path name (default) Report bugs to mitr@redhat.com. ]]) AT_CHECK([[locate -h | sed 's,^\([ ]*\)/.*)$,\1PATH),']], , [expout]) AT_CHECK([[locate --help | sed 's,^\([ ]*\)/.*)$,\1PATH),']], , [expout]) AT_CLEANUP AT_SETUP([locate: -i]) AT_KEYWORDS([locate]) mkdir d touch d/foo d/fOo d/Foo AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) # Search is case-sensitive by default AT_CHECK([locate -d db foo | sed "s,$(pwd)/,,"], , [d/foo ]) AT_CHECK([locate -d db -i 'foo' | sed "s,$(pwd)/,,"], , [d/Foo d/fOo d/foo ]) AT_CHECK([locate -d db --ignore-case '*oo' | sed "s,$(pwd)/,,"], , [d/Foo d/fOo d/foo ]) AT_CLEANUP AT_SETUP([locate: -l, -n]) mkdir d touch d/f d/g AT_CHECK([locate -l 0 --limit 1], 1, , [locate: --limit specified twice ]) AT_CHECK([locate --limit 0 -n 1], 1, , [locate: --limit specified twice ]) AT_CHECK([locate --limit invalid_integer], 1, , [locate: invalid value `invalid_integer' of --limit ]) AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) AT_CHECK([locate -d db -l 1 '*' | sed "s,$(pwd)/,,"], , [d ]) AT_CHECK([locate -d db --limit 99999 '*' | sed "s,$(pwd)/,,"], , [d d/f d/g ]) AT_CHECK([locate -d db -n 0 this_doesnt_exist]) AT_CLEANUP AT_SETUP([locate: -L]) AT_KEYWORDS([locate]) AT_CHECK([locate -L -L], 1, , [locate: --follow would override earlier command-line argument ]) AT_CHECK([locate -H --follow], 1, , [locate: --follow would override earlier command-line argument ]) mkdir d touch d/f d/g ln -s f d/symlink ln -s this_doesnt_exist d/danglink AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) rm d/g # -L is the default AT_CHECK([locate -d db -e '*' | sed "s,$(pwd)/,,"], , [d d/f d/symlink ]) AT_CHECK([locate -d db -eL '*' | sed "s,$(pwd)/,,"], , [d d/f d/symlink ]) AT_CHECK([locate -d db -e --follow '*' | sed "s,$(pwd)/,,"], , [d d/f d/symlink ]) AT_CLEANUP AT_SETUP([locate: -P]) AT_KEYWORDS([locate]) AT_CHECK([locate -P --nofollow], 1, , [locate: --nofollow would override earlier command-line argument ]) AT_CHECK([locate -L -P], 1, , [locate: --nofollow would override earlier command-line argument ]) AT_CHECK([locate -L -H], 1, , [locate: --nofollow would override earlier command-line argument ]) mkdir d touch d/f d/g ln -s f d/symlink ln -s this_doesnt_exist d/danglink AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) rm d/g AT_CHECK([locate -d db -eH '*' | sed "s,$(pwd)/,,"], , [d d/danglink d/f d/symlink ]) AT_CHECK([locate -d db -e -P '*' | sed "s,$(pwd)/,,"], , [d d/danglink d/f d/symlink ]) AT_CHECK([locate -d db -e --nofollow '*' | sed "s,$(pwd)/,,"], , [d d/danglink d/f d/symlink ]) AT_CLEANUP AT_SETUP([locate: -S]) AT_KEYWORDS([locate]) AT_CHECK([locate -S foo], 1, , [locate: non-option arguments are not allowed with --statistics ]) mkdir d touch d/f AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) AT_CHECK([[locate -d db -S | sed 's/[0123456789]* bytes\{0,1\}/BYTES bytes/']], , [Database db: 1 directory 2 files BYTES bytes in file names BYTES bytes used to store database ]) AT_CHECK([[locate -d - --statistics < db \ | sed 's/[0123456789]* bytes\{0,1\}/BYTES bytes/']], , [Database -: 1 directory 2 files BYTES bytes in file names BYTES bytes used to store database ]) AT_CLEANUP AT_SETUP([locate: -q]) AT_KEYWORDS([locate]) AT_CHECK([locate -d this_doesnt_exist -q '*'], 1) AT_CHECK([locate -d this_doesnt_exist --quiet '*'], 1) printf '\000mlocate\000\000\000\000\000\377xx-' > db AT_CHECK([locate -d db -q '*'], 1) AT_CLEANUP AT_SETUP([locate: -r]) AT_KEYWORDS([locate]) AT_CHECK([locate -d db -r '.*' '*'], 1, , [locate: non-option arguments are not allowed with --regexp ]) mkdir d touch d/foo d/Foo d/bar AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) # Default is not to use regexps AT_CHECK([locate -d db '.*f.o'], 1) AT_CHECK([locate -d db -r '.*foo' | sed "s,$(pwd)/,,"], 0, [d/foo ]) AT_CHECK([locate -d db --regexp '.*foo' -r '.*d/bar' | sed "s,$(pwd)/,,"], 0, [d/bar d/foo ]) AT_CHECK([locate -d db --regexp '.*foo' -i | sed "s,$(pwd)/,,"], , [d/Foo d/foo ]) AT_CHECK([locate -d db --regexp '\@{:@' 2> err], 1) AT_CHECK([sed "s/': .*/': /" < err], , [locate: invalid regexp `\@{:@': @&t@ ]) AT_CLEANUP AT_SETUP([locate: -V]) AT_KEYWORDS([locate]) AT_CHECK([locate -V | sed '1s/ .*/ /'], , [mlocate @&t@ Copyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law. ]) AT_CHECK([locate --version | sed '1s/ .*/ /'], , [mlocate @&t@ Copyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law. ]) AT_CLEANUP AT_SETUP([locate: -w]) AT_KEYWORDS([locate]) AT_CHECK([locate -w --wholename], 1, , [locate: --wholename would override earlier command-line argument ]) AT_CHECK([locate -b -w], 1, , [locate: --wholename would override earlier command-line argument ]) mkdir d touch d/f AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) # -w is the default AT_CHECK([locate -d db '/d' | sed "s,$(pwd)/,,"], , [d d/f ]) AT_CHECK([locate -d db -w '/d' | sed "s,$(pwd)/,,"], , [d d/f ]) AT_CHECK([locate -d db --wholename '/d' | sed "s,$(pwd)/,,"], , [d d/f ]) AT_CLEANUP AT_SETUP([locate: -0]) AT_KEYWORDS([locate]) mkdir d touch d/bar d/baz AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) printf 'd/bar\000d/baz\000' > expout AT_CHECK([locate -d db -0 d/b | sed "s,$(pwd)/,,g"], , [expout]) AT_CHECK([locate -d db --null d/b | sed "s,$(pwd)/,,g"], , [expout]) AT_CLEANUP AT_SETUP([locate: --regex]) AT_KEYWORDS([locate]) mkdir d touch d/foo d/Foo d/fOo d/bar d/baz AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) AT_CHECK([locate -d db --regex '.*d/baz' '.*d/bar' | sed "s,$(pwd)/,,"], , [d/bar d/baz ]) AT_CHECK([locate -d db --regex '.*d/foo' | sed "s,$(pwd)/,,"], , [d/foo ]) AT_CHECK([locate -d db --regex -i '.*d/foo' | sed "s,$(pwd)/,,"], , [d/Foo d/fOo d/foo ]) AT_CHECK([locate -d db --regex '@{:@' 2> err], 1) AT_CHECK([sed "s/': .*/': /" < err], , [locate: invalid regexp `@{:@': @&t@ ]) AT_CLEANUP AT_SETUP([locate: LOCATE_PATH]) mkdir d1 d2 touch d1/foo d2/foo AT_CHECK([updatedb -U "$(pwd)/d1" -o db1 -l 0]) AT_CHECK([updatedb -U "$(pwd)/d2" -o db2 -l 0]) AT_CHECK([LOCATE_PATH=db1 locate -d db2 /foo | sed "s,$(pwd)/,,"], , [d2/foo d1/foo ]) AT_CLEANUP AT_SETUP([locate: Invalid source database]) AT_KEYWORDS([locate]) AT_CHECK([locate -d db '*' 2>err], 1) AT_CHECK([sed "s/': .*/': /" < err], , [locate: can not stat () `db': @&t@ ]) > db AT_CHECK([locate -d db '*'], 1, , [locate: unexpected EOF reading `db' ]) echo '0123456789abcdef-' > db AT_CHECK([locate -d db '*'], 1, , [locate: `db' does not seem to be a mlocate database ]) printf '\000mlocate\000\000\000\000\377\000xx-' > db AT_CHECK([locate -d db '*'], 1, , [locate: `db' has unknown version 255 ]) printf '\000mlocate\000\000\000\000\000\377xx-' > db AT_CHECK([locate -d db '*'], 1, , [locate: `db' has unknown visibility flag 255 ]) AT_CLEANUP mlocate-0.26/tests/config.at0000664000175000017500000001546411733117200012752 00000000000000# Copyright (C) 2006, 2007, 2008 Red Hat, Inc. All rights reserved. # This copyrighted material is made available to anyone wishing to use, modify, # copy, or redistribute it subject to the terms and conditions of the GNU # General Public License v.2. # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Author: Miloslav Trmac m4_define([M_CONF_UNTESTED], [AT_SETUP([$1]) AT_KEYWORDS([updatedb]) AT_CHECK([exit 77]) AT_CLEANUP ]) # updatedb.conf path is hardcoded, no way to test... M_CONF_UNTESTED([config: updatedb.conf]) M_CONF_UNTESTED([config: -f]) AT_SETUP([config: -e]) AT_KEYWORDS([updatedb]) mkdir d for i in 1 2 3; do mkdir d/d$i touch d/d$i/f done AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0 -e "$(pwd)/d/d1" \ --add-prunepaths "$(pwd)/d/d3 $(pwd)/this_doesnt_exist"]) AT_CHECK([locate -d db / | sed "s,$(pwd)/,,"], , [d d/d1 d/d2 d/d3 d/d2/f ]) AT_CLEANUP AT_SETUP([config: -h]) AT_KEYWORDS([updatedb]) AT_DATA([expout], [[Usage: updatedb [OPTION]... Update a mlocate database. -f, --add-prunefs FS omit also FS -n, --add-prunenames NAMES omit also NAMES -e, --add-prunepaths PATHS omit also PATHS -U, --database-root PATH the subtree to store in database (default "/") -h, --help print this help -o, --output FILE database to update (default `PATH') --prune-bind-mounts FLAG omit bind mounts (default "no") --prunefs FS filesystems to omit from database --prunenames NAMES directory names to omit from database --prunepaths PATHS paths to omit from database -l, --require-visibility FLAG check visibility before reporting files (default "yes") -v, --verbose print paths of files as they are found -V, --version print version information The configuration defaults to values read from `PATH'. Report bugs to mitr@redhat.com. ]]) AT_CHECK([[updatedb -h | sed "s/\`[^']*'/\`PATH'/g"]], , [expout]) AT_CHECK([[updatedb --help | sed "s/\`[^']*'/\`PATH'/g"]], , [expout]) AT_CLEANUP AT_SETUP([config: -n]) AT_KEYWORDS([updatedb]) mkdir d for i in 1 2 3; do mkdir d/e$i touch d/e$i/f done AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0 -n e1 \ --add-prunenames "this_doesnt_exist e3"]) AT_CHECK([locate -d db / | sed "s,$(pwd)/,,"], , [d d/e1 d/e2 d/e3 d/e2/f ]) AT_CLEANUP AT_SETUP([config: -o]) AT_KEYWORDS([updatedb]) AT_CHECK([updatedb -U "$(pwd)" -o db --output db], 1, , [updatedb: --output specified twice ]) AT_CLEANUP AT_SETUP([config: -l]) AT_KEYWORDS([updatedb]) AT_CHECK([updatedb -l 0 --require-visibility 1], 1, , [updatedb: --require-visibility specified twice ]) AT_CHECK([updatedb -l 2], 1, , [updatedb: invalid value `2' of --require-visibility ]) AT_CHECK([updatedb -l maybe], 1, , [updatedb: invalid value `maybe' of --require-visibility ]) # Functionality untested AT_CLEANUP AT_SETUP([config: -U]) AT_KEYWORDS([updatedb]) mkdir d touch d/f ln -s d link # Error message is libc-dependent AT_CHECK([updatedb -U this_file_doesnt_exist -o db -l 0], 1, , [ignore]) AT_CHECK([updatedb -U / --database-root / -l 0], 1, , [updatedb: --database-root specified twice ]) AT_CHECK([updatedb -U "d" -o db -l 0]) AT_CHECK([locate -d db / | sed "s,^$(pwd),PWD,"], , [PWD/d PWD/d/f ]) AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0]) AT_CHECK([locate -d db / | sed "s,^$(pwd),PWD,"], , [PWD/d PWD/d/f ]) AT_CHECK([updatedb --database-root "$(pwd)/link" -o db -l 0]) AT_CHECK([locate -d db / | sed "s,^$(pwd),PWD,"], , [PWD/d PWD/d/f ]) AT_CLEANUP AT_SETUP([config: -v]) AT_KEYWORDS([updatedb]) mkdir -p d/d1 touch d/f1 d/d1/f # Let updatedb consider $(pwd)/d stable sleep 4 AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0 -v | sed "s,$(pwd)/,," | sort], , [d/d1 d/d1/f d/f1 ]) # Merging doesn't change output AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0 --verbose | sed "s,$(pwd)/,," \ | sort], , [d/d1 d/d1/f d/f1 ]) AT_CLEANUP AT_SETUP([config: -V]) AT_KEYWORDS([updatedb]) AT_CHECK([updatedb -V | sed '1s/) .*/) /'], , [updatedb (mlocate) @&t@ Copyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law. ]) AT_CHECK([updatedb --version | sed '1s/) .*/) /'], , [updatedb (mlocate) @&t@ Copyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law. ]) AT_CLEANUP # Output depends on the local system configuration too much M_CONF_UNTESTED([config: --debug-pruning]) AT_SETUP([config: --prune-bind-mounts]) AT_KEYWORDS([updatedb]) AT_CHECK([updatedb --prune-bind-mounts no --prune-bind-mounts yes], 1, , [updatedb: --prune-bind-mounts would override earlier command-line argument ]) AT_CHECK([updatedb --prune-bind-mounts maybe], 1, , [updatedb: invalid value `maybe' of --prune-bind-mounts ]) # Functionality untested AT_CLEANUP AT_SETUP([config: --prunefs]) AT_KEYWORDS([updatedb]) AT_CHECK([updatedb --prunefs foo --prunefs bar], 1, , [updatedb: --prunefs would override earlier command-line argument ]) AT_CHECK([updatedb -f foo --prunefs bar], 1, , [updatedb: --prunefs would override earlier command-line argument ]) # Functionality untested AT_CLEANUP AT_SETUP([config: --prunenames]) AT_KEYWORDS([updatedb]) AT_CHECK([updatedb --prunenames foo --prunenames bar], 1, , [updatedb: --prunenames would override earlier command-line argument ]) AT_CHECK([updatedb -n foo --prunenames bar], 1, , [updatedb: --prunenames would override earlier command-line argument ]) mkdir d for i in 1 2 3; do mkdir d/e$i touch d/e$i/f done AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0 \ --prunenames "e3 this_doesnt_exist e1"]) AT_CHECK([locate -d db / | sed "s,$(pwd)/,,"], , [d d/e1 d/e2 d/e3 d/e2/f ]) AT_CLEANUP AT_SETUP([config: --prunepaths]) AT_KEYWORDS([updatedb]) AT_CHECK([updatedb --prunepaths foo --prunepaths bar], 1, , [updatedb: --prunepaths would override earlier command-line argument ]) AT_CHECK([updatedb -e foo --prunepaths bar], 1, , [updatedb: --prunepaths would override earlier command-line argument ]) mkdir d for i in 1 2 3; do mkdir d/d$i touch d/d$i/f done AT_CHECK([updatedb -U "$(pwd)/d" -o db -l 0 \ --prunepaths "$(pwd)/d/d3 $(pwd)/d/d1 $(pwd)/this_doesnt_exist"]) AT_CHECK([locate -d db / | sed "s,$(pwd)/,,"], , [d d/d1 d/d2 d/d3 d/d2/f ]) AT_CLEANUP mlocate-0.26/aclocal.m40000664000175000017500000011234412027217340011653 00000000000000# generated automatically by aclocal 1.11.6 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2007, 2008, 2009, 2010, 2011 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_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, [m4_warning([this file was generated for autoconf 2.68. 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, 2003, 2005, 2006, 2007, 2008, 2011 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. # serial 1 # 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.11' 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.11.6], [], [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.11.6])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, 2003, 2005, 2011 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. # serial 1 # 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], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 # 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. # serial 9 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$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, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, # 2010, 2011 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. # serial 12 # 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", "GCJ", or "OBJC". # 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 ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" 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 8's {/usr,}/bin/sh. touch 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, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) 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, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # 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. #serial 5 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Autoconf 2.62 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"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //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' -e 's/\$U/'"$U"'/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, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2008, 2009 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. # serial 16 # 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. # 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.62])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], [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], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, [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([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. 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)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES(OBJC)], [define([AC_PROG_OBJC], defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl dnl The `parallel-tests' driver may need to know about EXEEXT, so add the dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro dnl 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 ]) 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, 2003, 2005, 2008, 2011 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. # serial 1 # 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}" != 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, 2005 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. # serial 2 # 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, 2002, 2003, 2005, 2009 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. # serial 4 # 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 ]) # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008 # 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. # serial 6 # AM_PROG_CC_C_O # -------------- # Like AC_PROG_CC_C_O, but changed for automake. AC_DEFUN([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC_C_O])dnl AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([compile])dnl # FIXME: we rely on the cache variable name because # there is no other way. set dummy $CC am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o if test "$am_t" != 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 dnl Make sure AC_PROG_CC is never called again, or it will override our dnl setting of CC. m4_define([AC_PROG_CC], [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 # 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. # serial 6 # 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 supports --run. # If it does, 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 --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005, 2006, 2011 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. # serial 1 # 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 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, 2002, 2003, 2005, 2008, 2010 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. # serial 5 # _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])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 # 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. # serial 5 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # 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 ( 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 rm -f conftest.file 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 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)]) # Copyright (C) 2001, 2003, 2005, 2011 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. # serial 1 # 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, 2008, 2010 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. # serial 3 # _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, 2005, 2012 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. # serial 2 # _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}']) m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. 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([gnulib/m4/alloca.m4]) m4_include([gnulib/m4/canonicalize-lgpl.m4]) m4_include([gnulib/m4/config-h.m4]) m4_include([gnulib/m4/d-type.m4]) m4_include([gnulib/m4/eealloc.m4]) m4_include([gnulib/m4/error.m4]) m4_include([gnulib/m4/exitfail.m4]) m4_include([gnulib/m4/extensions.m4]) m4_include([gnulib/m4/fnmatch.m4]) m4_include([gnulib/m4/getopt.m4]) m4_include([gnulib/m4/gnulib-common.m4]) m4_include([gnulib/m4/gnulib-comp.m4]) m4_include([gnulib/m4/include_next.m4]) m4_include([gnulib/m4/inline.m4]) m4_include([gnulib/m4/localcharset.m4]) m4_include([gnulib/m4/malloca.m4]) m4_include([gnulib/m4/mbchar.m4]) m4_include([gnulib/m4/mbiter.m4]) m4_include([gnulib/m4/mbrtowc.m4]) m4_include([gnulib/m4/mbslen.m4]) m4_include([gnulib/m4/mbsstr.m4]) m4_include([gnulib/m4/mbstate_t.m4]) m4_include([gnulib/m4/memchr.m4]) m4_include([gnulib/m4/mempcpy.m4]) m4_include([gnulib/m4/pathmax.m4]) m4_include([gnulib/m4/readlink.m4]) m4_include([gnulib/m4/safe-read.m4]) m4_include([gnulib/m4/ssize_t.m4]) m4_include([gnulib/m4/stat-time.m4]) m4_include([gnulib/m4/stdbool.m4]) m4_include([gnulib/m4/stdint.m4]) m4_include([gnulib/m4/stdlib_h.m4]) m4_include([gnulib/m4/strchrnul.m4]) m4_include([gnulib/m4/strerror.m4]) m4_include([gnulib/m4/string_h.m4]) m4_include([gnulib/m4/strnlen.m4]) m4_include([gnulib/m4/time_h.m4]) m4_include([gnulib/m4/timespec.m4]) m4_include([gnulib/m4/unistd_h.m4]) m4_include([gnulib/m4/wchar.m4]) m4_include([gnulib/m4/wctype.m4]) m4_include([gnulib/m4/wcwidth.m4]) m4_include([gnulib/m4/xalloc.m4]) m4_include([m4/codeset.m4]) m4_include([m4/gettext.m4]) m4_include([m4/glibc21.m4]) m4_include([m4/iconv.m4]) m4_include([m4/intlmacosx.m4]) m4_include([m4/lib-ld.m4]) m4_include([m4/lib-link.m4]) m4_include([m4/lib-prefix.m4]) m4_include([m4/longlong.m4]) m4_include([m4/nls.m4]) m4_include([m4/po.m4]) m4_include([m4/progtest.m4]) m4_include([m4/wchar_t.m4]) m4_include([m4/wint_t.m4]) mlocate-0.26/gnulib/0000775000175000017500000000000012027217355011354 500000000000000mlocate-0.26/gnulib/lib/0000775000175000017500000000000012027217355012122 500000000000000mlocate-0.26/gnulib/lib/mbchar.c0000664000175000017500000000227411353206451013443 00000000000000/* Copyright (C) 2001, 2006 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, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include "mbchar.h" #if IS_BASIC_ASCII /* Bit table of characters in the ISO C "basic character set". */ const unsigned int is_basic_table [UCHAR_MAX / 32 + 1] = { 0x00001a00, /* '\t' '\v' '\f' */ 0xffffffef, /* ' '...'#' '%'...'?' */ 0xfffffffe, /* 'A'...'Z' '[' '\\' ']' '^' '_' */ 0x7ffffffe /* 'a'...'z' '{' '|' '}' '~' */ /* The remaining bits are 0. */ }; #endif /* IS_BASIC_ASCII */ mlocate-0.26/gnulib/lib/strnlen.c0000664000175000017500000000227111353206451013671 00000000000000/* Find the length of STRING, but scan at most MAXLEN characters. Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. Written by Simon Josefsson. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include #include /* Find the length of STRING, but scan at most MAXLEN characters. If no '\0' terminator is found in that many characters, return MAXLEN. */ size_t strnlen (const char *string, size_t maxlen) { const char *end = memchr (string, '\0', maxlen); return end ? (size_t) (end - string) : maxlen; } mlocate-0.26/gnulib/lib/strnlen1.c0000664000175000017500000000244311353206451013753 00000000000000/* Find the length of STRING + 1, but scan at most MAXLEN bytes. Copyright (C) 2005-2006 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include /* Specification. */ #include "strnlen1.h" #include /* Find the length of STRING + 1, but scan at most MAXLEN bytes. If no '\0' terminator is found in that many characters, return MAXLEN. */ /* This is the same as strnlen (string, maxlen - 1) + 1. */ size_t strnlen1 (const char *string, size_t maxlen) { const char *end = (const char *) memchr (string, '\0', maxlen); if (end != NULL) return end - string + 1; else return maxlen; } mlocate-0.26/gnulib/lib/xalloc-die.c0000664000175000017500000000254311353206451014227 00000000000000/* Report a memory allocation failure and exit. Copyright (C) 1997, 1998, 1999, 2000, 2002, 2003, 2004, 2006 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include #include "xalloc.h" #include #include "error.h" #include "exitfail.h" #include "gettext.h" #define _(msgid) gettext (msgid) void xalloc_die (void) { error (exit_failure, 0, "%s", _("memory exhausted")); /* The `noreturn' cannot be given to error, since it may return if its first argument is 0. To help compilers understand the xalloc_die does not return, call abort. Also, the abort is a safety feature if exit_failure is 0 (which shouldn't happen). */ abort (); } mlocate-0.26/gnulib/lib/wcwidth.c0000664000175000017500000000305011353206451013651 00000000000000/* Determine the number of screen columns needed for a character. Copyright (C) 2006, 2007 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include /* Specification. */ #include /* Get iswprint. */ #include #include "localcharset.h" #include "streq.h" #include "uniwidth.h" #undef wcwidth int rpl_wcwidth (wchar_t wc) { /* In UTF-8 locales, use a Unicode aware width function. */ const char *encoding = locale_charset (); if (STREQ (encoding, "UTF-8", 'U', 'T', 'F', '-', '8', 0, 0, 0 ,0)) { /* We assume that in a UTF-8 locale, a wide character is the same as a Unicode character. */ return uc_width (wc, encoding); } else { /* Otherwise, fall back to the system's wcwidth function. */ #if HAVE_WCWIDTH return wcwidth (wc); #else return wc == 0 ? 0 : iswprint (wc) ? 1 : -1; #endif } } mlocate-0.26/gnulib/lib/error.h0000664000175000017500000000465711353206451013354 00000000000000/* Declaration for error-reporting function Copyright (C) 1995, 1996, 1997, 2003, 2006 Free Software Foundation, Inc. This file is part of the GNU C Library. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _ERROR_H #define _ERROR_H 1 #ifndef __attribute__ /* This feature is available in gcc versions 2.5 and later. */ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ # define __attribute__(Spec) /* empty */ # endif /* The __-protected variants of `format' and `printf' attributes are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) # define __format__ format # define __printf__ printf # endif #endif #ifdef __cplusplus extern "C" { #endif /* Print a message with `fprintf (stderr, FORMAT, ...)'; if ERRNUM is nonzero, follow it with ": " and strerror (ERRNUM). If STATUS is nonzero, terminate the program with `exit (STATUS)'. */ extern void error (int __status, int __errnum, const char *__format, ...) __attribute__ ((__format__ (__printf__, 3, 4))); extern void error_at_line (int __status, int __errnum, const char *__fname, unsigned int __lineno, const char *__format, ...) __attribute__ ((__format__ (__printf__, 5, 6))); /* If NULL, error will flush stdout, then print on stderr the program name, a colon and a space. Otherwise, error will call this function without parameters instead. */ extern void (*error_print_progname) (void); /* This variable is incremented each time `error' is called. */ extern unsigned int error_message_count; /* Sometimes we want to have at most one error per line. This variable controls whether this mode is selected or not. */ extern int error_one_per_line; #ifdef __cplusplus } #endif #endif /* error.h */ mlocate-0.26/gnulib/lib/stdbool.in.h0000664000175000017500000001124411353206451014264 00000000000000/* Copyright (C) 2001, 2002, 2003, 2006, 2007 Free Software Foundation, Inc. Written by Bruno Haible , 2001. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _GL_STDBOOL_H #define _GL_STDBOOL_H /* ISO C 99 for platforms that lack it. */ /* Usage suggestions: Programs that use should be aware of some limitations and standards compliance issues. Standards compliance: - must be #included before 'bool', 'false', 'true' can be used. - You cannot assume that sizeof (bool) == 1. - Programs should not undefine the macros bool, true, and false, as C99 lists that as an "obsolescent feature". Limitations of this substitute, when used in a C89 environment: - must be #included before the '_Bool' type can be used. - You cannot assume that _Bool is a typedef; it might be a macro. - Bit-fields of type 'bool' are not supported. Portable code should use 'unsigned int foo : 1;' rather than 'bool foo : 1;'. - In C99, casts and automatic conversions to '_Bool' or 'bool' are performed in such a way that every nonzero value gets converted to 'true', and zero gets converted to 'false'. This doesn't work with this substitute. With this substitute, only the values 0 and 1 give the expected result when converted to _Bool' or 'bool'. Also, it is suggested that programs use 'bool' rather than '_Bool'; this isn't required, but 'bool' is more common. */ /* 7.16. Boolean type and values */ /* BeOS already #defines false 0, true 1. We use the same definitions below, but temporarily we have to #undef them. */ #ifdef __BEOS__ # include /* defines bool but not _Bool */ # undef false # undef true #endif /* For the sake of symbolic names in gdb, we define true and false as enum constants, not only as macros. It is tempting to write typedef enum { false = 0, true = 1 } _Bool; so that gdb prints values of type 'bool' symbolically. But if we do this, values of type '_Bool' may promote to 'int' or 'unsigned int' (see ISO C 99 6.7.2.2.(4)); however, '_Bool' must promote to 'int' (see ISO C 99 6.3.1.1.(2)). So we add a negative value to the enum; this ensures that '_Bool' promotes to 'int'. */ #if defined __cplusplus || defined __BEOS__ /* A compiler known to have 'bool'. */ /* If the compiler already has both 'bool' and '_Bool', we can assume they are the same types. */ # if !@HAVE__BOOL@ typedef bool _Bool; # endif #else # if !defined __GNUC__ /* If @HAVE__BOOL@: Some HP-UX cc and AIX IBM C compiler versions have compiler bugs when the built-in _Bool type is used. See http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html Similar bugs are likely with other compilers as well; this file wouldn't be used if was working. So we override the _Bool type. If !@HAVE__BOOL@: Need to define _Bool ourselves. As 'signed char' or as an enum type? Use of a typedef, with SunPRO C, leads to a stupid "warning: _Bool is a keyword in ISO C99". Use of an enum type, with IRIX cc, leads to a stupid "warning(1185): enumerated type mixed with another type". The only benefit of the enum type, debuggability, is not important with these compilers. So use 'signed char' and no typedef. */ # define _Bool signed char enum { false = 0, true = 1 }; # else /* With this compiler, trust the _Bool type if the compiler has it. */ # if !@HAVE__BOOL@ typedef enum { _Bool_must_promote_to_int = -1, false = 0, true = 1 } _Bool; # endif # endif #endif #define bool _Bool /* The other macros must be usable in preprocessor directives. */ #define false 0 #define true 1 #define __bool_true_false_are_defined 1 #endif /* _GL_STDBOOL_H */ mlocate-0.26/gnulib/lib/exitfail.c0000664000175000017500000000164411353206451014014 00000000000000/* Failure exit status Copyright (C) 2002, 2003, 2005, 2006, 2007 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; see the file COPYING. If not, write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include #include "exitfail.h" #include int volatile exit_failure = EXIT_FAILURE; mlocate-0.26/gnulib/lib/malloca.c0000664000175000017500000001135311353206451013615 00000000000000/* Safe automatic memory allocation. Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc. Written by Bruno Haible , 2003. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include /* Specification. */ #include "malloca.h" /* The speed critical point in this file is freea() applied to an alloca() result: it must be fast, to match the speed of alloca(). The speed of mmalloca() and freea() in the other case are not critical, because they are only invoked for big memory sizes. */ #if HAVE_ALLOCA /* Store the mmalloca() results in a hash table. This is needed to reliably distinguish a mmalloca() result and an alloca() result. Although it is possible that the same pointer is returned by alloca() and by mmalloca() at different times in the same application, it does not lead to a bug in freea(), because: - Before a pointer returned by alloca() can point into malloc()ed memory, the function must return, and once this has happened the programmer must not call freea() on it anyway. - Before a pointer returned by mmalloca() can point into the stack, it must be freed. The only function that can free it is freea(), and when freea() frees it, it also removes it from the hash table. */ #define MAGIC_NUMBER 0x1415fb4a #define MAGIC_SIZE sizeof (int) /* This is how the header info would look like without any alignment considerations. */ struct preliminary_header { void *next; char room[MAGIC_SIZE]; }; /* But the header's size must be a multiple of sa_alignment_max. */ #define HEADER_SIZE \ (((sizeof (struct preliminary_header) + sa_alignment_max - 1) / sa_alignment_max) * sa_alignment_max) struct header { void *next; char room[HEADER_SIZE - sizeof (struct preliminary_header) + MAGIC_SIZE]; }; /* Verify that HEADER_SIZE == sizeof (struct header). */ typedef int verify1[2 * (HEADER_SIZE == sizeof (struct header)) - 1]; /* We make the hash table quite big, so that during lookups the probability of empty hash buckets is quite high. There is no need to make the hash table resizable, because when the hash table gets filled so much that the lookup becomes slow, it means that the application has memory leaks. */ #define HASH_TABLE_SIZE 257 static void * mmalloca_results[HASH_TABLE_SIZE]; #endif void * mmalloca (size_t n) { #if HAVE_ALLOCA /* Allocate one more word, that serves as an indicator for malloc()ed memory, so that freea() of an alloca() result is fast. */ size_t nplus = n + HEADER_SIZE; if (nplus >= n) { char *p = (char *) malloc (nplus); if (p != NULL) { size_t slot; p += HEADER_SIZE; /* Put a magic number into the indicator word. */ ((int *) p)[-1] = MAGIC_NUMBER; /* Enter p into the hash table. */ slot = (unsigned long) p % HASH_TABLE_SIZE; ((struct header *) (p - HEADER_SIZE))->next = mmalloca_results[slot]; mmalloca_results[slot] = p; return p; } } /* Out of memory. */ return NULL; #else # if !MALLOC_0_IS_NONNULL if (n == 0) n = 1; # endif return malloc (n); #endif } #if HAVE_ALLOCA void freea (void *p) { /* mmalloca() may have returned NULL. */ if (p != NULL) { /* Attempt to quickly distinguish the mmalloca() result - which has a magic indicator word - and the alloca() result - which has an uninitialized indicator word. It is for this test that sa_increment additional bytes are allocated in the alloca() case. */ if (((int *) p)[-1] == MAGIC_NUMBER) { /* Looks like a mmalloca() result. To see whether it really is one, perform a lookup in the hash table. */ size_t slot = (unsigned long) p % HASH_TABLE_SIZE; void **chain = &mmalloca_results[slot]; for (; *chain != NULL;) { if (*chain == p) { /* Found it. Remove it from the hash table and free it. */ char *p_begin = (char *) p - HEADER_SIZE; *chain = ((struct header *) p_begin)->next; free (p_begin); return; } chain = &((struct header *) ((char *) *chain - HEADER_SIZE))->next; } } /* At this point, we know it was not a mmalloca() result. */ } } #endif mlocate-0.26/gnulib/lib/streq.h0000664000175000017500000000772711353206451013362 00000000000000/* Optimized string comparison. Copyright (C) 2001-2002, 2007 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Bruno Haible . */ #ifndef _GL_STREQ_H #define _GL_STREQ_H #include /* STREQ allows to optimize string comparison with a small literal string. STREQ (s, "EUC-KR", 'E', 'U', 'C', '-', 'K', 'R', 0, 0, 0) is semantically equivalent to strcmp (s, "EUC-KR") == 0 just faster. */ /* Help GCC to generate good code for string comparisons with immediate strings. */ #if defined (__GNUC__) && defined (__OPTIMIZE__) static inline int streq9 (const char *s1, const char *s2) { return strcmp (s1 + 9, s2 + 9) == 0; } static inline int streq8 (const char *s1, const char *s2, char s28) { if (s1[8] == s28) { if (s28 == 0) return 1; else return streq9 (s1, s2); } else return 0; } static inline int streq7 (const char *s1, const char *s2, char s27, char s28) { if (s1[7] == s27) { if (s27 == 0) return 1; else return streq8 (s1, s2, s28); } else return 0; } static inline int streq6 (const char *s1, const char *s2, char s26, char s27, char s28) { if (s1[6] == s26) { if (s26 == 0) return 1; else return streq7 (s1, s2, s27, s28); } else return 0; } static inline int streq5 (const char *s1, const char *s2, char s25, char s26, char s27, char s28) { if (s1[5] == s25) { if (s25 == 0) return 1; else return streq6 (s1, s2, s26, s27, s28); } else return 0; } static inline int streq4 (const char *s1, const char *s2, char s24, char s25, char s26, char s27, char s28) { if (s1[4] == s24) { if (s24 == 0) return 1; else return streq5 (s1, s2, s25, s26, s27, s28); } else return 0; } static inline int streq3 (const char *s1, const char *s2, char s23, char s24, char s25, char s26, char s27, char s28) { if (s1[3] == s23) { if (s23 == 0) return 1; else return streq4 (s1, s2, s24, s25, s26, s27, s28); } else return 0; } static inline int streq2 (const char *s1, const char *s2, char s22, char s23, char s24, char s25, char s26, char s27, char s28) { if (s1[2] == s22) { if (s22 == 0) return 1; else return streq3 (s1, s2, s23, s24, s25, s26, s27, s28); } else return 0; } static inline int streq1 (const char *s1, const char *s2, char s21, char s22, char s23, char s24, char s25, char s26, char s27, char s28) { if (s1[1] == s21) { if (s21 == 0) return 1; else return streq2 (s1, s2, s22, s23, s24, s25, s26, s27, s28); } else return 0; } static inline int streq0 (const char *s1, const char *s2, char s20, char s21, char s22, char s23, char s24, char s25, char s26, char s27, char s28) { if (s1[0] == s20) { if (s20 == 0) return 1; else return streq1 (s1, s2, s21, s22, s23, s24, s25, s26, s27, s28); } else return 0; } #define STREQ(s1,s2,s20,s21,s22,s23,s24,s25,s26,s27,s28) \ streq0 (s1, s2, s20, s21, s22, s23, s24, s25, s26, s27, s28) #else #define STREQ(s1,s2,s20,s21,s22,s23,s24,s25,s26,s27,s28) \ (strcmp (s1, s2) == 0) #endif #endif /* _GL_STREQ_H */ mlocate-0.26/gnulib/lib/time.in.h0000664000175000017500000000705411353206451013560 00000000000000/* A more-standard . Copyright (C) 2007 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Don't get in the way of glibc when it includes time.h merely to declare a few standard symbols, rather than to declare all the symbols. Also, Solaris 8 eventually includes itself recursively; if that is happening, just include the system without adding our own declarations. */ #if (defined __need_time_t || defined __need_clock_t \ || defined __need_timespec \ || defined _GL_TIME_H) # @INCLUDE_NEXT@ @NEXT_TIME_H@ #else # define _GL_TIME_H # @INCLUDE_NEXT@ @NEXT_TIME_H@ # ifdef __cplusplus extern "C" { # endif /* Some systems don't define struct timespec (e.g., AIX 4.1, Ultrix 4.3). Or they define it with the wrong member names or define it in (e.g., FreeBSD circa 1997). */ # if ! @TIME_H_DEFINES_STRUCT_TIMESPEC@ # if @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ # include # else # undef timespec # define timespec rpl_timespec struct timespec { time_t tv_sec; long int tv_nsec; }; # endif # endif /* Sleep for at least RQTP seconds unless interrupted, If interrupted, return -1 and store the remaining time into RMTP. See . */ # if @REPLACE_NANOSLEEP@ # define nanosleep rpl_nanosleep int nanosleep (struct timespec const *__rqtp, struct timespec *__rmtp); # endif /* Convert TIMER to RESULT, assuming local time and UTC respectively. See and . */ # if @REPLACE_LOCALTIME_R@ # undef localtime_r # define localtime_r rpl_localtime_r # undef gmtime_r # define gmtime_r rpl_gmtime_r struct tm *localtime_r (time_t const *restrict __timer, struct tm *restrict __result); struct tm *gmtime_r (time_t const *restrict __timer, struct tm *restrict __result); # endif /* Parse BUF as a time stamp, assuming FORMAT specifies its layout, and store the resulting broken-down time into TM. See . */ # if @REPLACE_STRPTIME@ # undef strptime # define strptime rpl_strptime char *strptime (char const *restrict __buf, char const *restrict __format, struct tm *restrict __tm); # endif /* Convert TM to a time_t value, assuming UTC. */ # if @REPLACE_TIMEGM@ # undef timegm # define timegm rpl_timegm time_t timegm (struct tm *__tm); # endif /* Encourage applications to avoid unsafe functions that can overrun buffers when given outlandish struct tm values. Portable applications should use strftime (or even sprintf) instead. */ # if GNULIB_PORTCHECK # undef asctime # define asctime eschew_asctime # undef asctime_r # define asctime_r eschew_asctime_r # undef ctime # define ctime eschew_ctime # undef ctime_r # define ctime_r eschew_ctime_r # endif # ifdef __cplusplus } # endif #endif mlocate-0.26/gnulib/lib/malloca.h0000664000175000017500000001027311353206451013622 00000000000000/* Safe automatic memory allocation. Copyright (C) 2003-2007 Free Software Foundation, Inc. Written by Bruno Haible , 2003. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _MALLOCA_H #define _MALLOCA_H #include #include #include #ifdef __cplusplus extern "C" { #endif /* safe_alloca(N) is equivalent to alloca(N) when it is safe to call alloca(N); otherwise it returns NULL. It either returns N bytes of memory allocated on the stack, that lasts until the function returns, or NULL. Use of safe_alloca should be avoided: - inside arguments of function calls - undefined behaviour, - in inline functions - the allocation may actually last until the calling function returns. */ #if HAVE_ALLOCA /* The OS usually guarantees only one guard page at the bottom of the stack, and a page size can be as small as 4096 bytes. So we cannot safely allocate anything larger than 4096 bytes. Also care for the possibility of a few compiler-allocated temporary stack slots. This must be a macro, not an inline function. */ # define safe_alloca(N) ((N) < 4032 ? alloca (N) : NULL) #else # define safe_alloca(N) ((void) (N), NULL) #endif /* malloca(N) is a safe variant of alloca(N). It allocates N bytes of memory allocated on the stack, that must be freed using freea() before the function returns. Upon failure, it returns NULL. */ #if HAVE_ALLOCA # define malloca(N) \ ((N) < 4032 - sa_increment \ ? (void *) ((char *) alloca ((N) + sa_increment) + sa_increment) \ : mmalloca (N)) #else # define malloca(N) \ mmalloca (N) #endif extern void * mmalloca (size_t n); /* Free a block of memory allocated through malloca(). */ #if HAVE_ALLOCA extern void freea (void *p); #else # define freea free #endif /* Maybe we should also define a variant nmalloca (size_t n, size_t s) - behaves like malloca (n * s) If this would be useful in your application. please speak up. */ #ifdef __cplusplus } #endif /* ------------------- Auxiliary, non-public definitions ------------------- */ /* Determine the alignment of a type at compile time. */ #if defined __GNUC__ # define sa_alignof __alignof__ #elif defined __cplusplus template struct sa_alignof_helper { char __slot1; type __slot2; }; # define sa_alignof(type) offsetof (sa_alignof_helper, __slot2) #elif defined __hpux /* Work around a HP-UX 10.20 cc bug with enums constants defined as offsetof values. */ # define sa_alignof(type) (sizeof (type) <= 4 ? 4 : 8) #elif defined _AIX /* Work around an AIX 3.2.5 xlc bug with enums constants defined as offsetof values. */ # define sa_alignof(type) (sizeof (type) <= 4 ? 4 : 8) #else # define sa_alignof(type) offsetof (struct { char __slot1; type __slot2; }, __slot2) #endif enum { /* The desired alignment of memory allocations is the maximum alignment among all elementary types. */ sa_alignment_long = sa_alignof (long), sa_alignment_double = sa_alignof (double), #if HAVE_LONG_LONG_INT sa_alignment_longlong = sa_alignof (long long), #endif sa_alignment_longdouble = sa_alignof (long double), sa_alignment_max = ((sa_alignment_long - 1) | (sa_alignment_double - 1) #if HAVE_LONG_LONG_INT | (sa_alignment_longlong - 1) #endif | (sa_alignment_longdouble - 1) ) + 1, /* The increment that guarantees room for a magic word must be >= sizeof (int) and a multiple of sa_alignment_max. */ sa_increment = ((sizeof (int) + sa_alignment_max - 1) / sa_alignment_max) * sa_alignment_max }; #endif /* _MALLOCA_H */ mlocate-0.26/gnulib/lib/canonicalize.h0000664000175000017500000000370411353206451014652 00000000000000/* Return the canonical absolute name of a given file. Copyright (C) 1996-2007 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; see the file COPYING. If not, write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CANONICALIZE_H_ # define CANONICALIZE_H_ # if GNULIB_CANONICALIZE enum canonicalize_mode_t { /* All components must exist. */ CAN_EXISTING = 0, /* All components excluding last one must exist. */ CAN_ALL_BUT_LAST = 1, /* No requirements on components existence. */ CAN_MISSING = 2 }; typedef enum canonicalize_mode_t canonicalize_mode_t; /* Return a malloc'd string containing the canonical absolute name of the named file. This acts like canonicalize_file_name, except that whether components must exist depends on the canonicalize_mode_t argument. */ char *canonicalize_filename_mode (const char *, canonicalize_mode_t); # endif # if HAVE_DECL_CANONICALIZE_FILE_NAME # include # else /* Return a malloc'd string containing the canonical absolute name of the named file. If any file name component does not exist or is a symlink to a nonexistent file, return NULL. A canonical name does not contain any `.', `..' components nor any repeated file name separators ('/') or symlinks. */ char *canonicalize_file_name (const char *); # endif #endif /* !CANONICALIZE_H_ */ mlocate-0.26/gnulib/lib/strerror.c0000664000175000017500000000413511353206451014067 00000000000000/* strerror.c --- ANSI C compatible system error routine Copyright (C) 1986, 1988, 1989, 1991, 2002, 2003, 2006, 2007 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include #if REPLACE_STRERROR # include # include # undef strerror char *rpl_strerror (int n) { static char const fmt[] = "Unknown error (%d)"; static char mesg[sizeof fmt + sizeof n * CHAR_BIT / 3]; char *result = strerror (n); if (! result) { sprintf (mesg, fmt, n); return mesg; } return result; } #elif !HAVE_STRERROR #include /* Don't include , since it may or may not declare sys_errlist and its declarations may collide with ours. Just declare the stuff that we need directly. Standard hosted C89 implementations define strerror and they don't need this strerror function, so take some liberties with the standard to cater to ancient or limited freestanding implementations. */ int sprintf (char *, char const *, ...); extern int sys_nerr; extern char *sys_errlist[]; char * strerror (int n) { static char const fmt[] = "Unknown error (%d)"; static char mesg[sizeof fmt + sizeof n * CHAR_BIT / 3]; if (n < 0 || n >= sys_nerr) { sprintf (mesg, fmt, n); return mesg; } else return sys_errlist[n]; } #else /* This declaration is solely to ensure that after preprocessing this file is never empty. */ typedef int dummy; #endif mlocate-0.26/gnulib/lib/obstack.h0000664000175000017500000004660011353206451013643 00000000000000/* obstack.h - object stack macros Copyright (C) 1988-1994,1996-1999,2003,2004,2005,2006 Free Software Foundation, Inc. This file is part of the GNU C Library. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Summary: All the apparent functions defined here are macros. The idea is that you would use these pre-tested macros to solve a very specific set of problems, and they would run fast. Caution: no side-effects in arguments please!! They may be evaluated MANY times!! These macros operate a stack of objects. Each object starts life small, and may grow to maturity. (Consider building a word syllable by syllable.) An object can move while it is growing. Once it has been "finished" it never changes address again. So the "top of the stack" is typically an immature growing object, while the rest of the stack is of mature, fixed size and fixed address objects. These routines grab large chunks of memory, using a function you supply, called `obstack_chunk_alloc'. On occasion, they free chunks, by calling `obstack_chunk_free'. You must define them and declare them before using any obstack macros. Each independent stack is represented by a `struct obstack'. Each of the obstack macros expects a pointer to such a structure as the first argument. One motivation for this package is the problem of growing char strings in symbol tables. Unless you are "fascist pig with a read-only mind" --Gosper's immortal quote from HAKMEM item 154, out of context--you would not like to put any arbitrary upper limit on the length of your symbols. In practice this often means you will build many short symbols and a few long symbols. At the time you are reading a symbol you don't know how long it is. One traditional method is to read a symbol into a buffer, realloc()ating the buffer every time you try to read a symbol that is longer than the buffer. This is beaut, but you still will want to copy the symbol from the buffer to a more permanent symbol-table entry say about half the time. With obstacks, you can work differently. Use one obstack for all symbol names. As you read a symbol, grow the name in the obstack gradually. When the name is complete, finalize it. Then, if the symbol exists already, free the newly read name. The way we do this is to take a large chunk, allocating memory from low addresses. When you want to build a symbol in the chunk you just add chars above the current "high water mark" in the chunk. When you have finished adding chars, because you got to the end of the symbol, you know how long the chars are, and you can create a new object. Mostly the chars will not burst over the highest address of the chunk, because you would typically expect a chunk to be (say) 100 times as long as an average object. In case that isn't clear, when we have enough chars to make up the object, THEY ARE ALREADY CONTIGUOUS IN THE CHUNK (guaranteed) so we just point to it where it lies. No moving of chars is needed and this is the second win: potentially long strings need never be explicitly shuffled. Once an object is formed, it does not change its address during its lifetime. When the chars burst over a chunk boundary, we allocate a larger chunk, and then copy the partly formed object from the end of the old chunk to the beginning of the new larger chunk. We then carry on accreting characters to the end of the object as we normally would. A special macro is provided to add a single char at a time to a growing object. This allows the use of register variables, which break the ordinary 'growth' macro. Summary: We allocate large chunks. We carve out one object at a time from the current chunk. Once carved, an object never moves. We are free to append data of any size to the currently growing object. Exactly one object is growing in an obstack at any one time. You can run one obstack per control block. You may have as many control blocks as you dare. Because of the way we do it, you can `unwind' an obstack back to a previous state. (You may remove objects much as you would with a stack.) */ /* Don't do the contents of this file more than once. */ #ifndef _OBSTACK_H #define _OBSTACK_H 1 #ifdef __cplusplus extern "C" { #endif /* We need the type of a pointer subtraction. If __PTRDIFF_TYPE__ is defined, as with GNU C, use that; that way we don't pollute the namespace with 's symbols. Otherwise, include and use ptrdiff_t. */ #ifdef __PTRDIFF_TYPE__ # define PTR_INT_TYPE __PTRDIFF_TYPE__ #else # include # define PTR_INT_TYPE ptrdiff_t #endif /* If B is the base of an object addressed by P, return the result of aligning P to the next multiple of A + 1. B and P must be of type char *. A + 1 must be a power of 2. */ #define __BPTR_ALIGN(B, P, A) ((B) + (((P) - (B) + (A)) & ~(A))) /* Similiar to _BPTR_ALIGN (B, P, A), except optimize the common case where pointers can be converted to integers, aligned as integers, and converted back again. If PTR_INT_TYPE is narrower than a pointer (e.g., the AS/400), play it safe and compute the alignment relative to B. Otherwise, use the faster strategy of computing the alignment relative to 0. */ #define __PTR_ALIGN(B, P, A) \ __BPTR_ALIGN (sizeof (PTR_INT_TYPE) < sizeof (void *) ? (B) : (char *) 0, \ P, A) #include struct _obstack_chunk /* Lives at front of each chunk. */ { char *limit; /* 1 past end of this chunk */ struct _obstack_chunk *prev; /* address of prior chunk or NULL */ char contents[4]; /* objects begin here */ }; struct obstack /* control current object in current chunk */ { long chunk_size; /* preferred size to allocate chunks in */ struct _obstack_chunk *chunk; /* address of current struct obstack_chunk */ char *object_base; /* address of object we are building */ char *next_free; /* where to add next char to current object */ char *chunk_limit; /* address of char after current chunk */ union { PTR_INT_TYPE tempint; void *tempptr; } temp; /* Temporary for some macros. */ int alignment_mask; /* Mask of alignment for each object. */ /* These prototypes vary based on `use_extra_arg', and we use casts to the prototypeless function type in all assignments, but having prototypes here quiets -Wstrict-prototypes. */ struct _obstack_chunk *(*chunkfun) (void *, long); void (*freefun) (void *, struct _obstack_chunk *); void *extra_arg; /* first arg for chunk alloc/dealloc funcs */ unsigned use_extra_arg:1; /* chunk alloc/dealloc funcs take extra arg */ unsigned maybe_empty_object:1;/* There is a possibility that the current chunk contains a zero-length object. This prevents freeing the chunk if we allocate a bigger chunk to replace it. */ unsigned alloc_failed:1; /* No longer used, as we now call the failed handler on error, but retained for binary compatibility. */ }; /* Declare the external functions we use; they are in obstack.c. */ extern void _obstack_newchunk (struct obstack *, int); extern int _obstack_begin (struct obstack *, int, int, void *(*) (long), void (*) (void *)); extern int _obstack_begin_1 (struct obstack *, int, int, void *(*) (void *, long), void (*) (void *, void *), void *); extern int _obstack_memory_used (struct obstack *); /* The default name of the function for freeing a chunk is 'obstack_free', but gnulib users can override this by defining '__obstack_free'. */ #ifndef __obstack_free # define __obstack_free obstack_free #endif extern void __obstack_free (struct obstack *obstack, void *block); /* Error handler called when `obstack_chunk_alloc' failed to allocate more memory. This can be set to a user defined function which should either abort gracefully or use longjump - but shouldn't return. The default action is to print a message and abort. */ extern void (*obstack_alloc_failed_handler) (void); /* Exit value used when `print_and_abort' is used. */ extern int obstack_exit_failure; /* Pointer to beginning of object being allocated or to be allocated next. Note that this might not be the final address of the object because a new chunk might be needed to hold the final size. */ #define obstack_base(h) ((void *) (h)->object_base) /* Size for allocating ordinary chunks. */ #define obstack_chunk_size(h) ((h)->chunk_size) /* Pointer to next byte not yet allocated in current chunk. */ #define obstack_next_free(h) ((h)->next_free) /* Mask specifying low bits that should be clear in address of an object. */ #define obstack_alignment_mask(h) ((h)->alignment_mask) /* To prevent prototype warnings provide complete argument list. */ #define obstack_init(h) \ _obstack_begin ((h), 0, 0, \ (void *(*) (long)) obstack_chunk_alloc, \ (void (*) (void *)) obstack_chunk_free) #define obstack_begin(h, size) \ _obstack_begin ((h), (size), 0, \ (void *(*) (long)) obstack_chunk_alloc, \ (void (*) (void *)) obstack_chunk_free) #define obstack_specify_allocation(h, size, alignment, chunkfun, freefun) \ _obstack_begin ((h), (size), (alignment), \ (void *(*) (long)) (chunkfun), \ (void (*) (void *)) (freefun)) #define obstack_specify_allocation_with_arg(h, size, alignment, chunkfun, freefun, arg) \ _obstack_begin_1 ((h), (size), (alignment), \ (void *(*) (void *, long)) (chunkfun), \ (void (*) (void *, void *)) (freefun), (arg)) #define obstack_chunkfun(h, newchunkfun) \ ((h) -> chunkfun = (struct _obstack_chunk *(*)(void *, long)) (newchunkfun)) #define obstack_freefun(h, newfreefun) \ ((h) -> freefun = (void (*)(void *, struct _obstack_chunk *)) (newfreefun)) #define obstack_1grow_fast(h,achar) (*((h)->next_free)++ = (achar)) #define obstack_blank_fast(h,n) ((h)->next_free += (n)) #define obstack_memory_used(h) _obstack_memory_used (h) #if defined __GNUC__ && defined __STDC__ && __STDC__ /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and does not implement __extension__. But that compiler doesn't define __GNUC_MINOR__. */ # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) # define __extension__ # endif /* For GNU C, if not -traditional, we can define these macros to compute all args only once without using a global variable. Also, we can avoid using the `temp' slot, to make faster code. */ # define obstack_object_size(OBSTACK) \ __extension__ \ ({ struct obstack const *__o = (OBSTACK); \ (unsigned) (__o->next_free - __o->object_base); }) # define obstack_room(OBSTACK) \ __extension__ \ ({ struct obstack const *__o = (OBSTACK); \ (unsigned) (__o->chunk_limit - __o->next_free); }) # define obstack_make_room(OBSTACK,length) \ __extension__ \ ({ struct obstack *__o = (OBSTACK); \ int __len = (length); \ if (__o->chunk_limit - __o->next_free < __len) \ _obstack_newchunk (__o, __len); \ (void) 0; }) # define obstack_empty_p(OBSTACK) \ __extension__ \ ({ struct obstack const *__o = (OBSTACK); \ (__o->chunk->prev == 0 \ && __o->next_free == __PTR_ALIGN ((char *) __o->chunk, \ __o->chunk->contents, \ __o->alignment_mask)); }) # define obstack_grow(OBSTACK,where,length) \ __extension__ \ ({ struct obstack *__o = (OBSTACK); \ int __len = (length); \ if (__o->next_free + __len > __o->chunk_limit) \ _obstack_newchunk (__o, __len); \ memcpy (__o->next_free, where, __len); \ __o->next_free += __len; \ (void) 0; }) # define obstack_grow0(OBSTACK,where,length) \ __extension__ \ ({ struct obstack *__o = (OBSTACK); \ int __len = (length); \ if (__o->next_free + __len + 1 > __o->chunk_limit) \ _obstack_newchunk (__o, __len + 1); \ memcpy (__o->next_free, where, __len); \ __o->next_free += __len; \ *(__o->next_free)++ = 0; \ (void) 0; }) # define obstack_1grow(OBSTACK,datum) \ __extension__ \ ({ struct obstack *__o = (OBSTACK); \ if (__o->next_free + 1 > __o->chunk_limit) \ _obstack_newchunk (__o, 1); \ obstack_1grow_fast (__o, datum); \ (void) 0; }) /* These assume that the obstack alignment is good enough for pointers or ints, and that the data added so far to the current object shares that much alignment. */ # define obstack_ptr_grow(OBSTACK,datum) \ __extension__ \ ({ struct obstack *__o = (OBSTACK); \ if (__o->next_free + sizeof (void *) > __o->chunk_limit) \ _obstack_newchunk (__o, sizeof (void *)); \ obstack_ptr_grow_fast (__o, datum); }) \ # define obstack_int_grow(OBSTACK,datum) \ __extension__ \ ({ struct obstack *__o = (OBSTACK); \ if (__o->next_free + sizeof (int) > __o->chunk_limit) \ _obstack_newchunk (__o, sizeof (int)); \ obstack_int_grow_fast (__o, datum); }) # define obstack_ptr_grow_fast(OBSTACK,aptr) \ __extension__ \ ({ struct obstack *__o1 = (OBSTACK); \ *(const void **) __o1->next_free = (aptr); \ __o1->next_free += sizeof (const void *); \ (void) 0; }) # define obstack_int_grow_fast(OBSTACK,aint) \ __extension__ \ ({ struct obstack *__o1 = (OBSTACK); \ *(int *) __o1->next_free = (aint); \ __o1->next_free += sizeof (int); \ (void) 0; }) # define obstack_blank(OBSTACK,length) \ __extension__ \ ({ struct obstack *__o = (OBSTACK); \ int __len = (length); \ if (__o->chunk_limit - __o->next_free < __len) \ _obstack_newchunk (__o, __len); \ obstack_blank_fast (__o, __len); \ (void) 0; }) # define obstack_alloc(OBSTACK,length) \ __extension__ \ ({ struct obstack *__h = (OBSTACK); \ obstack_blank (__h, (length)); \ obstack_finish (__h); }) # define obstack_copy(OBSTACK,where,length) \ __extension__ \ ({ struct obstack *__h = (OBSTACK); \ obstack_grow (__h, (where), (length)); \ obstack_finish (__h); }) # define obstack_copy0(OBSTACK,where,length) \ __extension__ \ ({ struct obstack *__h = (OBSTACK); \ obstack_grow0 (__h, (where), (length)); \ obstack_finish (__h); }) /* The local variable is named __o1 to avoid a name conflict when obstack_blank is called. */ # define obstack_finish(OBSTACK) \ __extension__ \ ({ struct obstack *__o1 = (OBSTACK); \ void *__value = (void *) __o1->object_base; \ if (__o1->next_free == __value) \ __o1->maybe_empty_object = 1; \ __o1->next_free \ = __PTR_ALIGN (__o1->object_base, __o1->next_free, \ __o1->alignment_mask); \ if (__o1->next_free - (char *)__o1->chunk \ > __o1->chunk_limit - (char *)__o1->chunk) \ __o1->next_free = __o1->chunk_limit; \ __o1->object_base = __o1->next_free; \ __value; }) # define obstack_free(OBSTACK, OBJ) \ __extension__ \ ({ struct obstack *__o = (OBSTACK); \ void *__obj = (OBJ); \ if (__obj > (void *)__o->chunk && __obj < (void *)__o->chunk_limit) \ __o->next_free = __o->object_base = (char *)__obj; \ else (__obstack_free) (__o, __obj); }) #else /* not __GNUC__ or not __STDC__ */ # define obstack_object_size(h) \ (unsigned) ((h)->next_free - (h)->object_base) # define obstack_room(h) \ (unsigned) ((h)->chunk_limit - (h)->next_free) # define obstack_empty_p(h) \ ((h)->chunk->prev == 0 \ && (h)->next_free == __PTR_ALIGN ((char *) (h)->chunk, \ (h)->chunk->contents, \ (h)->alignment_mask)) /* Note that the call to _obstack_newchunk is enclosed in (..., 0) so that we can avoid having void expressions in the arms of the conditional expression. Casting the third operand to void was tried before, but some compilers won't accept it. */ # define obstack_make_room(h,length) \ ( (h)->temp.tempint = (length), \ (((h)->next_free + (h)->temp.tempint > (h)->chunk_limit) \ ? (_obstack_newchunk ((h), (h)->temp.tempint), 0) : 0)) # define obstack_grow(h,where,length) \ ( (h)->temp.tempint = (length), \ (((h)->next_free + (h)->temp.tempint > (h)->chunk_limit) \ ? (_obstack_newchunk ((h), (h)->temp.tempint), 0) : 0), \ memcpy ((h)->next_free, where, (h)->temp.tempint), \ (h)->next_free += (h)->temp.tempint) # define obstack_grow0(h,where,length) \ ( (h)->temp.tempint = (length), \ (((h)->next_free + (h)->temp.tempint + 1 > (h)->chunk_limit) \ ? (_obstack_newchunk ((h), (h)->temp.tempint + 1), 0) : 0), \ memcpy ((h)->next_free, where, (h)->temp.tempint), \ (h)->next_free += (h)->temp.tempint, \ *((h)->next_free)++ = 0) # define obstack_1grow(h,datum) \ ( (((h)->next_free + 1 > (h)->chunk_limit) \ ? (_obstack_newchunk ((h), 1), 0) : 0), \ obstack_1grow_fast (h, datum)) # define obstack_ptr_grow(h,datum) \ ( (((h)->next_free + sizeof (char *) > (h)->chunk_limit) \ ? (_obstack_newchunk ((h), sizeof (char *)), 0) : 0), \ obstack_ptr_grow_fast (h, datum)) # define obstack_int_grow(h,datum) \ ( (((h)->next_free + sizeof (int) > (h)->chunk_limit) \ ? (_obstack_newchunk ((h), sizeof (int)), 0) : 0), \ obstack_int_grow_fast (h, datum)) # define obstack_ptr_grow_fast(h,aptr) \ (((const void **) ((h)->next_free += sizeof (void *)))[-1] = (aptr)) # define obstack_int_grow_fast(h,aint) \ (((int *) ((h)->next_free += sizeof (int)))[-1] = (aint)) # define obstack_blank(h,length) \ ( (h)->temp.tempint = (length), \ (((h)->chunk_limit - (h)->next_free < (h)->temp.tempint) \ ? (_obstack_newchunk ((h), (h)->temp.tempint), 0) : 0), \ obstack_blank_fast (h, (h)->temp.tempint)) # define obstack_alloc(h,length) \ (obstack_blank ((h), (length)), obstack_finish ((h))) # define obstack_copy(h,where,length) \ (obstack_grow ((h), (where), (length)), obstack_finish ((h))) # define obstack_copy0(h,where,length) \ (obstack_grow0 ((h), (where), (length)), obstack_finish ((h))) # define obstack_finish(h) \ ( ((h)->next_free == (h)->object_base \ ? (((h)->maybe_empty_object = 1), 0) \ : 0), \ (h)->temp.tempptr = (h)->object_base, \ (h)->next_free \ = __PTR_ALIGN ((h)->object_base, (h)->next_free, \ (h)->alignment_mask), \ (((h)->next_free - (char *) (h)->chunk \ > (h)->chunk_limit - (char *) (h)->chunk) \ ? ((h)->next_free = (h)->chunk_limit) : 0), \ (h)->object_base = (h)->next_free, \ (h)->temp.tempptr) # define obstack_free(h,obj) \ ( (h)->temp.tempint = (char *) (obj) - (char *) (h)->chunk, \ ((((h)->temp.tempint > 0 \ && (h)->temp.tempint < (h)->chunk_limit - (char *) (h)->chunk)) \ ? (int) ((h)->next_free = (h)->object_base \ = (h)->temp.tempint + (char *) (h)->chunk) \ : (((__obstack_free) ((h), (h)->temp.tempint + (char *) (h)->chunk), 0), 0))) #endif /* not __GNUC__ or not __STDC__ */ #ifdef __cplusplus } /* C++ */ #endif #endif /* obstack.h */ mlocate-0.26/gnulib/lib/gettext.h0000664000175000017500000002240611353206451013677 00000000000000/* Convenience header for conditional use of GNU . Copyright (C) 1995-1998, 2000-2002, 2004-2006 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _LIBGETTEXT_H #define _LIBGETTEXT_H 1 /* NLS can be disabled through the configure --disable-nls option. */ #if ENABLE_NLS /* Get declarations of GNU message catalog functions. */ # include /* You can set the DEFAULT_TEXT_DOMAIN macro to specify the domain used by the gettext() and ngettext() macros. This is an alternative to calling textdomain(), and is useful for libraries. */ # ifdef DEFAULT_TEXT_DOMAIN # undef gettext # define gettext(Msgid) \ dgettext (DEFAULT_TEXT_DOMAIN, Msgid) # undef ngettext # define ngettext(Msgid1, Msgid2, N) \ dngettext (DEFAULT_TEXT_DOMAIN, Msgid1, Msgid2, N) # endif #else /* Solaris /usr/include/locale.h includes /usr/include/libintl.h, which chokes if dcgettext is defined as a macro. So include it now, to make later inclusions of a NOP. We don't include as well because people using "gettext.h" will not include , and also including would fail on SunOS 4, whereas is OK. */ #if defined(__sun) # include #endif /* Many header files from the libstdc++ coming with g++ 3.3 or newer include , which chokes if dcgettext is defined as a macro. So include it now, to make later inclusions of a NOP. */ #if defined(__cplusplus) && defined(__GNUG__) && (__GNUC__ >= 3) # include # if (__GLIBC__ >= 2) || _GLIBCXX_HAVE_LIBINTL_H # include # endif #endif /* Disabled NLS. The casts to 'const char *' serve the purpose of producing warnings for invalid uses of the value returned from these functions. On pre-ANSI systems without 'const', the config.h file is supposed to contain "#define const". */ # define gettext(Msgid) ((const char *) (Msgid)) # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) # define dcgettext(Domainname, Msgid, Category) \ ((void) (Category), dgettext (Domainname, Msgid)) # define ngettext(Msgid1, Msgid2, N) \ ((N) == 1 \ ? ((void) (Msgid2), (const char *) (Msgid1)) \ : ((void) (Msgid1), (const char *) (Msgid2))) # define dngettext(Domainname, Msgid1, Msgid2, N) \ ((void) (Domainname), ngettext (Msgid1, Msgid2, N)) # define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \ ((void) (Category), dngettext(Domainname, Msgid1, Msgid2, N)) # define textdomain(Domainname) ((const char *) (Domainname)) # define bindtextdomain(Domainname, Dirname) \ ((void) (Domainname), (const char *) (Dirname)) # define bind_textdomain_codeset(Domainname, Codeset) \ ((void) (Domainname), (const char *) (Codeset)) #endif /* A pseudo function call that serves as a marker for the automated extraction of messages, but does not call gettext(). The run-time translation is done at a different place in the code. The argument, String, should be a literal string. Concatenated strings and other string expressions won't work. The macro's expansion is not parenthesized, so that it is suitable as initializer for static 'char[]' or 'const char[]' variables. */ #define gettext_noop(String) String /* The separator between msgctxt and msgid in a .mo file. */ #define GETTEXT_CONTEXT_GLUE "\004" /* Pseudo function calls, taking a MSGCTXT and a MSGID instead of just a MSGID. MSGCTXT and MSGID must be string literals. MSGCTXT should be short and rarely need to change. The letter 'p' stands for 'particular' or 'special'. */ #ifdef DEFAULT_TEXT_DOMAIN # define pgettext(Msgctxt, Msgid) \ pgettext_aux (DEFAULT_TEXT_DOMAIN, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES) #else # define pgettext(Msgctxt, Msgid) \ pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES) #endif #define dpgettext(Domainname, Msgctxt, Msgid) \ pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES) #define dcpgettext(Domainname, Msgctxt, Msgid, Category) \ pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, Category) #ifdef DEFAULT_TEXT_DOMAIN # define npgettext(Msgctxt, Msgid, MsgidPlural, N) \ npgettext_aux (DEFAULT_TEXT_DOMAIN, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES) #else # define npgettext(Msgctxt, Msgid, MsgidPlural, N) \ npgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES) #endif #define dnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N) \ npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES) #define dcnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N, Category) \ npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, Category) #ifdef __GNUC__ __inline #else #ifdef __cplusplus inline #endif #endif static const char * pgettext_aux (const char *domain, const char *msg_ctxt_id, const char *msgid, int category) { const char *translation = dcgettext (domain, msg_ctxt_id, category); if (translation == msg_ctxt_id) return msgid; else return translation; } #ifdef __GNUC__ __inline #else #ifdef __cplusplus inline #endif #endif static const char * npgettext_aux (const char *domain, const char *msg_ctxt_id, const char *msgid, const char *msgid_plural, unsigned long int n, int category) { const char *translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category); if (translation == msg_ctxt_id || translation == msgid_plural) return (n == 1 ? msgid : msgid_plural); else return translation; } /* The same thing extended for non-constant arguments. Here MSGCTXT and MSGID can be arbitrary expressions. But for string literals these macros are less efficient than those above. */ #include #define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS \ (((__GNUC__ >= 3 || __GNUG__ >= 2) && !__STRICT_ANSI__) \ /* || __STDC_VERSION__ >= 199901L */ ) #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS #include #endif #define pgettext_expr(Msgctxt, Msgid) \ dcpgettext_expr (NULL, Msgctxt, Msgid, LC_MESSAGES) #define dpgettext_expr(Domainname, Msgctxt, Msgid) \ dcpgettext_expr (Domainname, Msgctxt, Msgid, LC_MESSAGES) #ifdef __GNUC__ __inline #else #ifdef __cplusplus inline #endif #endif static const char * dcpgettext_expr (const char *domain, const char *msgctxt, const char *msgid, int category) { size_t msgctxt_len = strlen (msgctxt) + 1; size_t msgid_len = strlen (msgid) + 1; const char *translation; #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS char msg_ctxt_id[msgctxt_len + msgid_len]; #else char buf[1024]; char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof (buf) ? buf : (char *) malloc (msgctxt_len + msgid_len)); if (msg_ctxt_id != NULL) #endif { memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); msg_ctxt_id[msgctxt_len - 1] = '\004'; memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); translation = dcgettext (domain, msg_ctxt_id, category); #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS if (msg_ctxt_id != buf) free (msg_ctxt_id); #endif if (translation != msg_ctxt_id) return translation; } return msgid; } #define npgettext_expr(Msgctxt, Msgid, MsgidPlural, N) \ dcnpgettext_expr (NULL, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES) #define dnpgettext_expr(Domainname, Msgctxt, Msgid, MsgidPlural, N) \ dcnpgettext_expr (Domainname, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES) #ifdef __GNUC__ __inline #else #ifdef __cplusplus inline #endif #endif static const char * dcnpgettext_expr (const char *domain, const char *msgctxt, const char *msgid, const char *msgid_plural, unsigned long int n, int category) { size_t msgctxt_len = strlen (msgctxt) + 1; size_t msgid_len = strlen (msgid) + 1; const char *translation; #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS char msg_ctxt_id[msgctxt_len + msgid_len]; #else char buf[1024]; char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof (buf) ? buf : (char *) malloc (msgctxt_len + msgid_len)); if (msg_ctxt_id != NULL) #endif { memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); msg_ctxt_id[msgctxt_len - 1] = '\004'; memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category); #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS if (msg_ctxt_id != buf) free (msg_ctxt_id); #endif if (!(translation == msg_ctxt_id || translation == msgid_plural)) return translation; } return (n == 1 ? msgid : msgid_plural); } #endif /* _LIBGETTEXT_H */ mlocate-0.26/gnulib/lib/canonicalize-lgpl.c0000664000175000017500000002033111353206451015574 00000000000000/* Return the canonical absolute name of a given file. Copyright (C) 1996-2003, 2005-2007 Free Software Foundation, Inc. This file is part of the GNU C Library. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include /* Avoid a clash of our rpl_realpath() function with the prototype in on Solaris 2.5.1. */ #undef realpath #if !HAVE_CANONICALIZE_FILE_NAME || defined _LIBC #include /* Specification. */ #include "canonicalize.h" #include #include #include #if HAVE_UNISTD_H || defined _LIBC # include #endif #include #if HAVE_SYS_PARAM_H || defined _LIBC # include #endif #ifndef MAXSYMLINKS # define MAXSYMLINKS 20 #endif #include #include #ifndef _LIBC # define __set_errno(e) errno = (e) # ifndef ENAMETOOLONG # define ENAMETOOLONG EINVAL # endif #endif #ifdef _LIBC # include #else # define SHLIB_COMPAT(lib, introduced, obsoleted) 0 # define versioned_symbol(lib, local, symbol, version) # define compat_symbol(lib, local, symbol, version) # define weak_alias(local, symbol) # define __canonicalize_file_name canonicalize_file_name # define __realpath rpl_realpath # include "pathmax.h" # include "malloca.h" # if HAVE_GETCWD # ifdef VMS /* We want the directory in Unix syntax, not in VMS syntax. */ # define __getcwd(buf, max) getcwd (buf, max, 0) # else # define __getcwd getcwd # endif # else # define __getcwd(buf, max) getwd (buf) # endif # define __readlink readlink /* On systems without symbolic links, call stat() instead of lstat(). */ # if !defined S_ISNLK && !HAVE_READLINK # define lstat stat # endif #endif /* Return the canonical absolute name of file NAME. A canonical name does not contain any `.', `..' components nor any repeated path separators ('/') or symlinks. All path components must exist. If RESOLVED is null, the result is malloc'd; otherwise, if the canonical name is PATH_MAX chars or more, returns null with `errno' set to ENAMETOOLONG; if the name fits in fewer than PATH_MAX chars, returns the name in RESOLVED. If the name cannot be resolved and RESOLVED is non-NULL, it contains the path of the first component that cannot be resolved. If the path can be resolved, RESOLVED holds the same value as the value returned. */ char * __realpath (const char *name, char *resolved) { char *rpath, *dest, *extra_buf = NULL; const char *start, *end, *rpath_limit; long int path_max; #if HAVE_READLINK int num_links = 0; #endif if (name == NULL) { /* As per Single Unix Specification V2 we must return an error if either parameter is a null pointer. We extend this to allow the RESOLVED parameter to be NULL in case the we are expected to allocate the room for the return value. */ __set_errno (EINVAL); return NULL; } if (name[0] == '\0') { /* As per Single Unix Specification V2 we must return an error if the name argument points to an empty string. */ __set_errno (ENOENT); return NULL; } #ifdef PATH_MAX path_max = PATH_MAX; #else path_max = pathconf (name, _PC_PATH_MAX); if (path_max <= 0) path_max = 1024; #endif if (resolved == NULL) { rpath = malloc (path_max); if (rpath == NULL) { /* It's easier to set errno to ENOMEM than to rely on the 'malloc-posix' gnulib module. */ errno = ENOMEM; return NULL; } } else rpath = resolved; rpath_limit = rpath + path_max; if (name[0] != '/') { if (!__getcwd (rpath, path_max)) { rpath[0] = '\0'; goto error; } dest = strchr (rpath, '\0'); } else { rpath[0] = '/'; dest = rpath + 1; } for (start = end = name; *start; start = end) { #ifdef _LIBC struct stat64 st; #else struct stat st; #endif /* Skip sequence of multiple path-separators. */ while (*start == '/') ++start; /* Find end of path component. */ for (end = start; *end && *end != '/'; ++end) /* Nothing. */; if (end - start == 0) break; else if (end - start == 1 && start[0] == '.') /* nothing */; else if (end - start == 2 && start[0] == '.' && start[1] == '.') { /* Back up to previous component, ignore if at root already. */ if (dest > rpath + 1) while ((--dest)[-1] != '/'); } else { size_t new_size; if (dest[-1] != '/') *dest++ = '/'; if (dest + (end - start) >= rpath_limit) { ptrdiff_t dest_offset = dest - rpath; char *new_rpath; if (resolved) { __set_errno (ENAMETOOLONG); if (dest > rpath + 1) dest--; *dest = '\0'; goto error; } new_size = rpath_limit - rpath; if (end - start + 1 > path_max) new_size += end - start + 1; else new_size += path_max; new_rpath = (char *) realloc (rpath, new_size); if (new_rpath == NULL) { /* It's easier to set errno to ENOMEM than to rely on the 'realloc-posix' gnulib module. */ errno = ENOMEM; goto error; } rpath = new_rpath; rpath_limit = rpath + new_size; dest = rpath + dest_offset; } #ifdef _LIBC dest = __mempcpy (dest, start, end - start); #else memcpy (dest, start, end - start); dest += end - start; #endif *dest = '\0'; #ifdef _LIBC if (__lxstat64 (_STAT_VER, rpath, &st) < 0) #else if (lstat (rpath, &st) < 0) #endif goto error; #if HAVE_READLINK if (S_ISLNK (st.st_mode)) { char *buf; size_t len; int n; if (++num_links > MAXSYMLINKS) { __set_errno (ELOOP); goto error; } buf = malloca (path_max); if (!buf) { errno = ENOMEM; goto error; } n = __readlink (rpath, buf, path_max); if (n < 0) { int saved_errno = errno; freea (buf); errno = saved_errno; goto error; } buf[n] = '\0'; if (!extra_buf) { extra_buf = malloca (path_max); if (!extra_buf) { freea (buf); errno = ENOMEM; goto error; } } len = strlen (end); if ((long int) (n + len) >= path_max) { freea (buf); __set_errno (ENAMETOOLONG); goto error; } /* Careful here, end may be a pointer into extra_buf... */ memmove (&extra_buf[n], end, len + 1); name = end = memcpy (extra_buf, buf, n); if (buf[0] == '/') dest = rpath + 1; /* It's an absolute symlink */ else /* Back up to previous component, ignore if at root already: */ if (dest > rpath + 1) while ((--dest)[-1] != '/'); } #endif } } if (dest > rpath + 1 && dest[-1] == '/') --dest; *dest = '\0'; if (extra_buf) freea (extra_buf); return resolved ? memcpy (resolved, rpath, dest - rpath + 1) : rpath; error: { int saved_errno = errno; if (extra_buf) freea (extra_buf); if (resolved) strcpy (resolved, rpath); else free (rpath); errno = saved_errno; } return NULL; } #ifdef _LIBC versioned_symbol (libc, __realpath, realpath, GLIBC_2_3); #endif #if SHLIB_COMPAT(libc, GLIBC_2_0, GLIBC_2_3) char * __old_realpath (const char *name, char *resolved) { if (resolved == NULL) { __set_errno (EINVAL); return NULL; } return __realpath (name, resolved); } compat_symbol (libc, __old_realpath, realpath, GLIBC_2_0); #endif char * __canonicalize_file_name (const char *name) { return __realpath (name, NULL); } weak_alias (__canonicalize_file_name, canonicalize_file_name) #else /* This declaration is solely to ensure that after preprocessing this file is never empty. */ typedef int dummy; #endif mlocate-0.26/gnulib/lib/safe-read.h0000664000175000017500000000224011353206451014034 00000000000000/* An interface to read() that retries after interrupts. Copyright (C) 2002, 2006 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include #ifdef __cplusplus extern "C" { #endif #define SAFE_READ_ERROR ((size_t) -1) /* Read up to COUNT bytes at BUF from descriptor FD, retrying if interrupted. Return the actual number of bytes read, zero for EOF, or SAFE_READ_ERROR upon error. */ extern size_t safe_read (int fd, void *buf, size_t count); #ifdef __cplusplus } #endif mlocate-0.26/gnulib/lib/progname.h0000664000175000017500000000354411353206451014025 00000000000000/* Program name management. Copyright (C) 2001-2004, 2006 Free Software Foundation, Inc. Written by Bruno Haible , 2001. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _PROGNAME_H #define _PROGNAME_H /* Programs using this file should do the following in main(): set_program_name (argv[0]); */ #ifdef __cplusplus extern "C" { #endif /* String containing name the program is called with. */ extern const char *program_name; /* Set program_name, based on argv[0]. */ extern void set_program_name (const char *argv0); #if ENABLE_RELOCATABLE /* Set program_name, based on argv[0], and original installation prefix and directory, for relocatability. */ extern void set_program_name_and_installdir (const char *argv0, const char *orig_installprefix, const char *orig_installdir); #undef set_program_name #define set_program_name(ARG0) \ set_program_name_and_installdir (ARG0, INSTALLPREFIX, INSTALLDIR) /* Return the full pathname of the current executable, based on the earlier call to set_program_name_and_installdir. Return NULL if unknown. */ extern char *get_full_program_name (void); #endif #ifdef __cplusplus } #endif #endif /* _PROGNAME_H */ mlocate-0.26/gnulib/lib/Makefile.in0000664000175000017500000012217112027217341014106 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (C) 2004-2007 Free Software Foundation, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General # Public License, this file may be distributed as part of a program # that contains a configuration script generated by Autoconf, under # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. # Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=gnulib/lib --m4-base=gnulib/m4 --doc-base=doc --aux-dir=admin --no-libtool --macro-prefix=gl canonicalize-lgpl config-h d-type error fnmatch-gnu fwriteerror getopt gettext-h mbsstr mempcpy obstack progname safe-read stat-time strchrnul timespec verify xalloc VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } 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 = gnulib/lib DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in alloca.c ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/gnulib/m4/alloca.m4 \ $(top_srcdir)/gnulib/m4/canonicalize-lgpl.m4 \ $(top_srcdir)/gnulib/m4/config-h.m4 \ $(top_srcdir)/gnulib/m4/d-type.m4 \ $(top_srcdir)/gnulib/m4/eealloc.m4 \ $(top_srcdir)/gnulib/m4/error.m4 \ $(top_srcdir)/gnulib/m4/exitfail.m4 \ $(top_srcdir)/gnulib/m4/extensions.m4 \ $(top_srcdir)/gnulib/m4/fnmatch.m4 \ $(top_srcdir)/gnulib/m4/getopt.m4 \ $(top_srcdir)/gnulib/m4/gnulib-common.m4 \ $(top_srcdir)/gnulib/m4/gnulib-comp.m4 \ $(top_srcdir)/gnulib/m4/include_next.m4 \ $(top_srcdir)/gnulib/m4/inline.m4 \ $(top_srcdir)/gnulib/m4/localcharset.m4 \ $(top_srcdir)/gnulib/m4/malloca.m4 \ $(top_srcdir)/gnulib/m4/mbchar.m4 \ $(top_srcdir)/gnulib/m4/mbiter.m4 \ $(top_srcdir)/gnulib/m4/mbrtowc.m4 \ $(top_srcdir)/gnulib/m4/mbslen.m4 \ $(top_srcdir)/gnulib/m4/mbsstr.m4 \ $(top_srcdir)/gnulib/m4/mbstate_t.m4 \ $(top_srcdir)/gnulib/m4/memchr.m4 \ $(top_srcdir)/gnulib/m4/mempcpy.m4 \ $(top_srcdir)/gnulib/m4/pathmax.m4 \ $(top_srcdir)/gnulib/m4/readlink.m4 \ $(top_srcdir)/gnulib/m4/safe-read.m4 \ $(top_srcdir)/gnulib/m4/ssize_t.m4 \ $(top_srcdir)/gnulib/m4/stat-time.m4 \ $(top_srcdir)/gnulib/m4/stdbool.m4 \ $(top_srcdir)/gnulib/m4/stdint.m4 \ $(top_srcdir)/gnulib/m4/stdlib_h.m4 \ $(top_srcdir)/gnulib/m4/strchrnul.m4 \ $(top_srcdir)/gnulib/m4/strerror.m4 \ $(top_srcdir)/gnulib/m4/string_h.m4 \ $(top_srcdir)/gnulib/m4/strnlen.m4 \ $(top_srcdir)/gnulib/m4/time_h.m4 \ $(top_srcdir)/gnulib/m4/timespec.m4 \ $(top_srcdir)/gnulib/m4/unistd_h.m4 \ $(top_srcdir)/gnulib/m4/wchar.m4 \ $(top_srcdir)/gnulib/m4/wctype.m4 \ $(top_srcdir)/gnulib/m4/wcwidth.m4 \ $(top_srcdir)/gnulib/m4/xalloc.m4 $(top_srcdir)/m4/codeset.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc21.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/longlong.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/wchar_t.m4 \ $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/src/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) AR = ar ARFLAGS = cru libgnu_a_AR = $(AR) $(ARFLAGS) am__DEPENDENCIES_1 = am__dirstamp = $(am__leading_dot)dirstamp am_libgnu_a_OBJECTS = fwriteerror.$(OBJEXT) localcharset.$(OBJEXT) \ malloca.$(OBJEXT) mbchar.$(OBJEXT) mbslen.$(OBJEXT) \ mbsstr.$(OBJEXT) progname.$(OBJEXT) strnlen1.$(OBJEXT) \ uniwidth/width.$(OBJEXT) xalloc-die.$(OBJEXT) libgnu_a_OBJECTS = $(am_libgnu_a_OBJECTS) LTLIBRARIES = $(noinst_LTLIBRARIES) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src depcomp = $(SHELL) $(top_srcdir)/admin/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libgnu_a_SOURCES) $(EXTRA_libgnu_a_SOURCES) DIST_SOURCES = $(libgnu_a_SOURCES) $(EXTRA_libgnu_a_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac HEADERS = $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOM4TE = @AUTOM4TE@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@ BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@ BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@ BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@ BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@ 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@ FNMATCH_H = @FNMATCH_H@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ GNULIB_CHOWN = @GNULIB_CHOWN@ GNULIB_DUP2 = @GNULIB_DUP2@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ GNULIB_GETCWD = @GNULIB_GETCWD@ GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ GNULIB_LCHOWN = @GNULIB_LCHOWN@ GNULIB_LSEEK = @GNULIB_LSEEK@ GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ GNULIB_MBSCHR = @GNULIB_MBSCHR@ GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ GNULIB_MBSLEN = @GNULIB_MBSLEN@ GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ GNULIB_MBSSEP = @GNULIB_MBSSEP@ GNULIB_MBSSPN = @GNULIB_MBSSPN@ GNULIB_MBSSTR = @GNULIB_MBSSTR@ GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ GNULIB_MEMMEM = @GNULIB_MEMMEM@ GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ GNULIB_READLINK = @GNULIB_READLINK@ GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ GNULIB_SLEEP = @GNULIB_SLEEP@ GNULIB_STPCPY = @GNULIB_STPCPY@ GNULIB_STPNCPY = @GNULIB_STPNCPY@ GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ GNULIB_STRDUP = @GNULIB_STRDUP@ GNULIB_STRERROR = @GNULIB_STRERROR@ GNULIB_STRNDUP = @GNULIB_STRNDUP@ GNULIB_STRNLEN = @GNULIB_STRNLEN@ GNULIB_STRPBRK = @GNULIB_STRPBRK@ GNULIB_STRSEP = @GNULIB_STRSEP@ GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ GNULIB_WCWIDTH = @GNULIB_WCWIDTH@ GREP = @GREP@ HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ HAVE_DUP2 = @HAVE_DUP2@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ HAVE_READLINK = @HAVE_READLINK@ HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ HAVE_STRNDUP = @HAVE_STRNDUP@ HAVE_STRPBRK = @HAVE_STRPBRK@ HAVE_STRSEP = @HAVE_STRSEP@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE__BOOL = @HAVE__BOOL@ INCLUDE_NEXT = @INCLUDE_NEXT@ 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@ LIBGNU_LIBDEPS = @LIBGNU_LIBDEPS@ LIBGNU_LTLIBDEPS = @LIBGNU_LTLIBDEPS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRING_H = @NEXT_STRING_H@ NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NEXT_WCTYPE_H = @NEXT_WCTYPE_H@ 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@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ REPLACE_CHOWN = @REPLACE_CHOWN@ REPLACE_FCHDIR = @REPLACE_FCHDIR@ REPLACE_GETCWD = @REPLACE_GETCWD@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ REPLACE_STRERROR = @REPLACE_STRERROR@ REPLACE_STRPTIME = @REPLACE_STRPTIME@ REPLACE_TIMEGM = @REPLACE_TIMEGM@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ STDBOOL_H = @STDBOOL_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WCHAR_H = @WCHAR_H@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ WCTYPE_H = @WCTYPE_H@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ 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@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ 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@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.5 gnits subdir-objects noinst_HEADERS = noinst_LIBRARIES = libgnu.a noinst_LTLIBRARIES = EXTRA_DIST = alloca.c alloca.in.h canonicalize-lgpl.c canonicalize.h \ error.c error.h exitfail.c exitfail.h fnmatch.c fnmatch.in.h \ fnmatch_loop.c getopt.c getopt.in.h getopt1.c getopt_int.h \ $(top_srcdir)/admin/link-warning.h config.charset ref-add.sin \ ref-del.sin malloca.h malloca.valgrind mbchar.h memchr.c \ mempcpy.c obstack.c obstack.h pathmax.h readlink.c safe-read.c \ safe-read.h stat-time.h stdbool.in.h stdint.in.h stdlib.in.h \ strchrnul.c streq.h strerror.c string.in.h strnlen.c time.in.h \ timespec.h unistd.in.h unitypes.h localcharset.h uniwidth.h \ uniwidth/cjk.h wchar.in.h wctype.in.h wcwidth.c xalloc.h \ xmalloc.c BUILT_SOURCES = $(ALLOCA_H) configmake.h $(FNMATCH_H) $(GETOPT_H) \ $(STDBOOL_H) $(STDINT_H) stdlib.h string.h time.h unistd.h \ $(WCHAR_H) $(WCTYPE_H) SUFFIXES = .sed .sin MOSTLYCLEANFILES = core *.stackdump alloca.h alloca.h-t fnmatch.h \ fnmatch.h-t getopt.h getopt.h-t stdbool.h stdbool.h-t stdint.h \ stdint.h-t stdlib.h stdlib.h-t string.h string.h-t time.h \ time.h-t unistd.h unistd.h-t wchar.h wchar.h-t wctype.h \ wctype.h-t MOSTLYCLEANDIRS = CLEANFILES = configmake.h configmake.h-t charset.alias ref-add.sed \ ref-del.sed DISTCLEANFILES = MAINTAINERCLEANFILES = AM_CPPFLAGS = libgnu_a_SOURCES = fwriteerror.h fwriteerror.c gettext.h \ localcharset.h localcharset.c malloca.c mbchar.c mbslen.c \ mbsstr.c mbuiter.h progname.h progname.c strnlen1.h strnlen1.c \ uniwidth/width.c verify.h xalloc-die.c libgnu_a_LIBADD = $(gl_LIBOBJS) @ALLOCA@ libgnu_a_DEPENDENCIES = $(gl_LIBOBJS) @ALLOCA@ EXTRA_libgnu_a_SOURCES = alloca.c canonicalize-lgpl.c error.c \ exitfail.c fnmatch.c fnmatch_loop.c getopt.c getopt1.c \ memchr.c mempcpy.c obstack.c readlink.c safe-read.c \ strchrnul.c strerror.c strnlen.c wcwidth.c xmalloc.c # Use this preprocessor expression to decide whether #include_next works. # Do not rely on a 'configure'-time test for this, since the expression # might appear in an installed header, which is used by some other compiler. HAVE_INCLUDE_NEXT = (__GNUC__ || 60000000 <= __DECC_VER) LINK_WARNING_H = $(top_srcdir)/admin/link-warning.h charset_alias = $(DESTDIR)$(libdir)/charset.alias charset_tmp = $(DESTDIR)$(libdir)/charset.tmp all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .sed .sin .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) --gnits gnulib/lib/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnits gnulib/lib/Makefile .PRECIOUS: 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): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) uniwidth/$(am__dirstamp): @$(MKDIR_P) uniwidth @: > uniwidth/$(am__dirstamp) uniwidth/$(DEPDIR)/$(am__dirstamp): @$(MKDIR_P) uniwidth/$(DEPDIR) @: > uniwidth/$(DEPDIR)/$(am__dirstamp) uniwidth/width.$(OBJEXT): uniwidth/$(am__dirstamp) \ uniwidth/$(DEPDIR)/$(am__dirstamp) libgnu.a: $(libgnu_a_OBJECTS) $(libgnu_a_DEPENDENCIES) $(EXTRA_libgnu_a_DEPENDENCIES) -rm -f libgnu.a $(libgnu_a_AR) libgnu.a $(libgnu_a_OBJECTS) $(libgnu_a_LIBADD) $(RANLIB) libgnu.a clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done mostlyclean-compile: -rm -f *.$(OBJEXT) -rm -f uniwidth/width.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/alloca.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alloca.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/canonicalize-lgpl.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/error.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exitfail.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fnmatch.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fnmatch_loop.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fwriteerror.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt1.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/localcharset.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/malloca.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mbchar.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mbslen.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mbsstr.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/memchr.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mempcpy.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/obstack.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/progname.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/readlink.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/safe-read.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strchrnul.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strerror.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strnlen.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strnlen1.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wcwidth.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xalloc-die.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmalloc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@uniwidth/$(DEPDIR)/width.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ 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 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ 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" 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: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) $(HEADERS) all-local installdirs: install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) -rm -f uniwidth/$(DEPDIR)/$(am__dirstamp) -rm -f uniwidth/$(am__dirstamp) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-noinstLIBRARIES clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf $(DEPDIR) ./$(DEPDIR) uniwidth/$(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-exec-local 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) ./$(DEPDIR) uniwidth/$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-local pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-local .MAKE: all check install install-am install-strip .PHONY: CTAGS GTAGS all all-am all-local check check-am clean \ clean-generic clean-noinstLIBRARIES clean-noinstLTLIBRARIES \ ctags 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-local \ install-html install-html-am install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-compile mostlyclean-generic \ mostlyclean-local pdf pdf-am ps ps-am tags uninstall \ uninstall-am uninstall-local # We need the following in order to create when the system # doesn't have one that works with the given compiler. alloca.h: alloca.in.h { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/alloca.in.h; \ } > $@-t mv -f $@-t $@ # Retrieve values of the variables through 'configure' followed by # 'make', not directly through 'configure', so that a user who # sets some of these variables consistently on the 'make' command # line gets correct results. # # One advantage of this approach, compared to the classical # approach of adding -DLIBDIR=\"$(libdir)\" etc. to AM_CPPFLAGS, # is that it protects against the use of undefined variables. # If, say, $(libdir) is not set in the Makefile, LIBDIR is not # defined by this module, and code using LIBDIR gives a # compilation error. # # Another advantage is that 'make' output is shorter. # # Listed in the same order as the GNU makefile conventions. # The Automake-defined pkg* macros are appended, in the order # listed in the Automake 1.10a+ documentation. configmake.h: Makefile rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ echo '#define PREFIX "$(prefix)"'; \ echo '#define EXEC_PREFIX "$(exec_prefix)"'; \ echo '#define BINDIR "$(bindir)"'; \ echo '#define SBINDIR "$(sbindir)"'; \ echo '#define LIBEXECDIR "$(libexecdir)"'; \ echo '#define DATAROOTDIR "$(datarootdir)"'; \ echo '#define DATADIR "$(datadir)"'; \ echo '#define SYSCONFDIR "$(sysconfdir)"'; \ echo '#define SHAREDSTATEDIR "$(sharedstatedir)"'; \ echo '#define LOCALSTATEDIR "$(localstatedir)"'; \ echo '#define INCLUDEDIR "$(includedir)"'; \ echo '#define OLDINCLUDEDIR "$(oldincludedir)"'; \ echo '#define DOCDIR "$(docdir)"'; \ echo '#define INFODIR "$(infodir)"'; \ echo '#define HTMLDIR "$(htmldir)"'; \ echo '#define DVIDIR "$(dvidir)"'; \ echo '#define PDFDIR "$(pdfdir)"'; \ echo '#define PSDIR "$(psdir)"'; \ echo '#define LIBDIR "$(libdir)"'; \ echo '#define LISPDIR "$(lispdir)"'; \ echo '#define LOCALEDIR "$(localedir)"'; \ echo '#define MANDIR "$(mandir)"'; \ echo '#define MANEXT "$(manext)"'; \ echo '#define PKGDATADIR "$(pkgdatadir)"'; \ echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \ echo '#define PKGLIBDIR "$(pkglibdir)"'; \ echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \ } | sed '/""/d' > $@-t mv $@-t $@ # We need the following in order to create when the system # doesn't have one that supports the required API. fnmatch.h: fnmatch.in.h { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/fnmatch.in.h; \ } > $@-t mv -f $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. getopt.h: getopt.in.h { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/getopt.in.h; \ } > $@-t mv -f $@-t $@ # We need the following in order to install a simple file in $(libdir) # which is shared with other installed packages. We use a list of referencing # packages so that "make uninstall" will remove the file if and only if it # is not used by another installed package. # On systems with glibc-2.1 or newer, the file is redundant, therefore we # avoid installing it. all-local: charset.alias ref-add.sed ref-del.sed install-exec-local: all-local test $(GLIBC21) != no || $(mkinstalldirs) $(DESTDIR)$(libdir) if test -f $(charset_alias); then \ sed -f ref-add.sed $(charset_alias) > $(charset_tmp) ; \ $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \ rm -f $(charset_tmp) ; \ else \ if test $(GLIBC21) = no; then \ sed -f ref-add.sed charset.alias > $(charset_tmp) ; \ $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \ rm -f $(charset_tmp) ; \ fi ; \ fi uninstall-local: all-local if test -f $(charset_alias); then \ sed -f ref-del.sed $(charset_alias) > $(charset_tmp); \ if grep '^# Packages using this file: $$' $(charset_tmp) \ > /dev/null; then \ rm -f $(charset_alias); \ else \ $(INSTALL_DATA) $(charset_tmp) $(charset_alias); \ fi; \ rm -f $(charset_tmp); \ fi charset.alias: config.charset rm -f t-$@ $@ $(SHELL) $(srcdir)/config.charset '$(host)' > t-$@ mv t-$@ $@ .sin.sed: rm -f t-$@ $@ sed -e '/^#/d' -e 's/@''PACKAGE''@/$(PACKAGE)/g' $< > t-$@ mv t-$@ $@ # We need the following in order to create when the system # doesn't have one that works. stdbool.h: stdbool.in.h rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \ } > $@-t mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. stdint.h: stdint.in.h rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \ -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \ -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \ -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \ -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \ -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \ -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \ -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \ -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \ -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \ -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \ -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \ -e 's/@''SIG_ATOMIC_T_SUFFIX''@/$(SIG_ATOMIC_T_SUFFIX)/g' \ -e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \ -e 's/@''SIZE_T_SUFFIX''@/$(SIZE_T_SUFFIX)/g' \ -e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \ -e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \ -e 's/@''WCHAR_T_SUFFIX''@/$(WCHAR_T_SUFFIX)/g' \ -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \ -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \ -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \ < $(srcdir)/stdint.in.h; \ } > $@-t mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. stdlib.h: stdlib.in.h rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \ -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \ -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \ -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \ -e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \ -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \ -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \ -e 's|@''HAVE_CALLOC_POSIX''@|$(HAVE_CALLOC_POSIX)|g' \ -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \ -e 's|@''HAVE_MALLOC_POSIX''@|$(HAVE_MALLOC_POSIX)|g' \ -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \ -e 's|@''HAVE_REALLOC_POSIX''@|$(HAVE_REALLOC_POSIX)|g' \ -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \ -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ < $(srcdir)/stdlib.in.h; \ } > $@-t mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. string.h: string.in.h rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ -e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \ -e 's|@''GNULIB_MBSLEN''@|$(GNULIB_MBSLEN)|g' \ -e 's|@''GNULIB_MBSNLEN''@|$(GNULIB_MBSNLEN)|g' \ -e 's|@''GNULIB_MBSCHR''@|$(GNULIB_MBSCHR)|g' \ -e 's|@''GNULIB_MBSRCHR''@|$(GNULIB_MBSRCHR)|g' \ -e 's|@''GNULIB_MBSSTR''@|$(GNULIB_MBSSTR)|g' \ -e 's|@''GNULIB_MBSCASECMP''@|$(GNULIB_MBSCASECMP)|g' \ -e 's|@''GNULIB_MBSNCASECMP''@|$(GNULIB_MBSNCASECMP)|g' \ -e 's|@''GNULIB_MBSPCASECMP''@|$(GNULIB_MBSPCASECMP)|g' \ -e 's|@''GNULIB_MBSCASESTR''@|$(GNULIB_MBSCASESTR)|g' \ -e 's|@''GNULIB_MBSCSPN''@|$(GNULIB_MBSCSPN)|g' \ -e 's|@''GNULIB_MBSPBRK''@|$(GNULIB_MBSPBRK)|g' \ -e 's|@''GNULIB_MBSSPN''@|$(GNULIB_MBSSPN)|g' \ -e 's|@''GNULIB_MBSSEP''@|$(GNULIB_MBSSEP)|g' \ -e 's|@''GNULIB_MBSTOK_R''@|$(GNULIB_MBSTOK_R)|g' \ -e 's|@''GNULIB_MEMMEM''@|$(GNULIB_MEMMEM)|g' \ -e 's|@''GNULIB_MEMPCPY''@|$(GNULIB_MEMPCPY)|g' \ -e 's|@''GNULIB_MEMRCHR''@|$(GNULIB_MEMRCHR)|g' \ -e 's|@''GNULIB_STPCPY''@|$(GNULIB_STPCPY)|g' \ -e 's|@''GNULIB_STPNCPY''@|$(GNULIB_STPNCPY)|g' \ -e 's|@''GNULIB_STRCHRNUL''@|$(GNULIB_STRCHRNUL)|g' \ -e 's|@''GNULIB_STRDUP''@|$(GNULIB_STRDUP)|g' \ -e 's|@''GNULIB_STRNDUP''@|$(GNULIB_STRNDUP)|g' \ -e 's|@''GNULIB_STRNLEN''@|$(GNULIB_STRNLEN)|g' \ -e 's|@''GNULIB_STRPBRK''@|$(GNULIB_STRPBRK)|g' \ -e 's|@''GNULIB_STRSEP''@|$(GNULIB_STRSEP)|g' \ -e 's|@''GNULIB_STRCASESTR''@|$(GNULIB_STRCASESTR)|g' \ -e 's|@''GNULIB_STRTOK_R''@|$(GNULIB_STRTOK_R)|g' \ -e 's|@''GNULIB_STRERROR''@|$(GNULIB_STRERROR)|g' \ -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \ -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \ -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \ -e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \ -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \ -e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \ -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \ -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \ -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \ -e 's|@''HAVE_STRNDUP''@|$(HAVE_STRNDUP)|g' \ -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \ -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \ -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \ -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \ -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \ -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \ -e 's|@''HAVE_DECL_STRERROR''@|$(HAVE_DECL_STRERROR)|g' \ -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \ -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ < $(srcdir)/string.in.h; \ } > $@-t mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. time.h: time.in.h rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ -e 's|@NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \ -e 's|@REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \ -e 's|@REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \ -e 's|@REPLACE_STRPTIME''@|$(REPLACE_STRPTIME)|g' \ -e 's|@REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \ -e 's|@SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ -e 's|@TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ < $(srcdir)/time.in.h; \ } > $@-t mv $@-t $@ # We need the following in order to create an empty placeholder for # when the system doesn't have one. unistd.h: unistd.in.h rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \ -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \ -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \ -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \ -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \ -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \ -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \ -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \ -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \ -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \ -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \ -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \ -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \ -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \ -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \ -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \ -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \ -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \ -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \ -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \ -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \ -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \ < $(srcdir)/unistd.in.h; \ } > $@-t mv $@-t $@ # We need the following in order to create when the system # version does not work standalone. wchar.h: wchar.in.h rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ -e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \ -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \ -e 's|@''GNULIB_WCWIDTH''@|$(GNULIB_WCWIDTH)|g' \ -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \ -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \ -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ < $(srcdir)/wchar.in.h; \ } > $@-t mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. wctype.h: wctype.in.h rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE_WCTYPE_H''@/$(HAVE_WCTYPE_H)/g' \ -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ -e 's|@''NEXT_WCTYPE_H''@|$(NEXT_WCTYPE_H)|g' \ -e 's/@''HAVE_ISWCNTRL''@/$(HAVE_ISWCNTRL)/g' \ -e 's/@''HAVE_WINT_T''@/$(HAVE_WINT_T)/g' \ < $(srcdir)/wctype.in.h; \ } > $@-t mv $@-t $@ mostlyclean-local: mostlyclean-generic @for dir in '' $(MOSTLYCLEANDIRS); do \ if test -n "$$dir" && test -d $$dir; then \ echo "rmdir $$dir"; rmdir $$dir; \ fi; \ done; \ : # 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: mlocate-0.26/gnulib/lib/obstack.c0000664000175000017500000003401311353206451013631 00000000000000/* obstack.c - subroutines used implicitly by object stack macros Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef _LIBC # include # include #else # include # include "obstack.h" #endif /* NOTE BEFORE MODIFYING THIS FILE: This version number must be incremented whenever callers compiled using an old obstack.h can no longer properly call the functions in this obstack.c. */ #define OBSTACK_INTERFACE_VERSION 1 /* Comment out all this code if we are using the GNU C Library, and are not actually compiling the library itself, and the installed library supports the same library interface we do. This code is part of the GNU C Library, but also included in many other GNU distributions. Compiling and linking in this code is a waste when using the GNU C library (especially if it is a shared library). Rather than having every GNU program understand `configure --with-gnu-libc' and omit the object files, it is simpler to just do this in the source for each such file. */ #include /* Random thing to get __GNU_LIBRARY__. */ #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1 # include # if _GNU_OBSTACK_INTERFACE_VERSION == OBSTACK_INTERFACE_VERSION # define ELIDE_CODE # endif #endif #include #ifndef ELIDE_CODE # include /* Determine default alignment. */ union fooround { uintmax_t i; long double d; void *p; }; struct fooalign { char c; union fooround u; }; /* If malloc were really smart, it would round addresses to DEFAULT_ALIGNMENT. But in fact it might be less smart and round addresses to as much as DEFAULT_ROUNDING. So we prepare for it to do that. */ enum { DEFAULT_ALIGNMENT = offsetof (struct fooalign, u), DEFAULT_ROUNDING = sizeof (union fooround) }; /* When we copy a long block of data, this is the unit to do it with. On some machines, copying successive ints does not work; in such a case, redefine COPYING_UNIT to `long' (if that works) or `char' as a last resort. */ # ifndef COPYING_UNIT # define COPYING_UNIT int # endif /* The functions allocating more room by calling `obstack_chunk_alloc' jump to the handler pointed to by `obstack_alloc_failed_handler'. This can be set to a user defined function which should either abort gracefully or use longjump - but shouldn't return. This variable by default points to the internal function `print_and_abort'. */ static void print_and_abort (void); void (*obstack_alloc_failed_handler) (void) = print_and_abort; /* Exit value used when `print_and_abort' is used. */ # include # ifdef _LIBC int obstack_exit_failure = EXIT_FAILURE; # else # include "exitfail.h" # define obstack_exit_failure exit_failure # endif # ifdef _LIBC # if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4) /* A looong time ago (before 1994, anyway; we're not sure) this global variable was used by non-GNU-C macros to avoid multiple evaluation. The GNU C library still exports it because somebody might use it. */ struct obstack *_obstack_compat; compat_symbol (libc, _obstack_compat, _obstack, GLIBC_2_0); # endif # endif /* Define a macro that either calls functions with the traditional malloc/free calling interface, or calls functions with the mmalloc/mfree interface (that adds an extra first argument), based on the state of use_extra_arg. For free, do not use ?:, since some compilers, like the MIPS compilers, do not allow (expr) ? void : void. */ # define CALL_CHUNKFUN(h, size) \ (((h) -> use_extra_arg) \ ? (*(h)->chunkfun) ((h)->extra_arg, (size)) \ : (*(struct _obstack_chunk *(*) (long)) (h)->chunkfun) ((size))) # define CALL_FREEFUN(h, old_chunk) \ do { \ if ((h) -> use_extra_arg) \ (*(h)->freefun) ((h)->extra_arg, (old_chunk)); \ else \ (*(void (*) (void *)) (h)->freefun) ((old_chunk)); \ } while (0) /* Initialize an obstack H for use. Specify chunk size SIZE (0 means default). Objects start on multiples of ALIGNMENT (0 means use default). CHUNKFUN is the function to use to allocate chunks, and FREEFUN the function to free them. Return nonzero if successful, calls obstack_alloc_failed_handler if allocation fails. */ int _obstack_begin (struct obstack *h, int size, int alignment, void *(*chunkfun) (long), void (*freefun) (void *)) { register struct _obstack_chunk *chunk; /* points to new chunk */ if (alignment == 0) alignment = DEFAULT_ALIGNMENT; if (size == 0) /* Default size is what GNU malloc can fit in a 4096-byte block. */ { /* 12 is sizeof (mhead) and 4 is EXTRA from GNU malloc. Use the values for range checking, because if range checking is off, the extra bytes won't be missed terribly, but if range checking is on and we used a larger request, a whole extra 4096 bytes would be allocated. These number are irrelevant to the new GNU malloc. I suspect it is less sensitive to the size of the request. */ int extra = ((((12 + DEFAULT_ROUNDING - 1) & ~(DEFAULT_ROUNDING - 1)) + 4 + DEFAULT_ROUNDING - 1) & ~(DEFAULT_ROUNDING - 1)); size = 4096 - extra; } h->chunkfun = (struct _obstack_chunk * (*)(void *, long)) chunkfun; h->freefun = (void (*) (void *, struct _obstack_chunk *)) freefun; h->chunk_size = size; h->alignment_mask = alignment - 1; h->use_extra_arg = 0; chunk = h->chunk = CALL_CHUNKFUN (h, h -> chunk_size); if (!chunk) (*obstack_alloc_failed_handler) (); h->next_free = h->object_base = __PTR_ALIGN ((char *) chunk, chunk->contents, alignment - 1); h->chunk_limit = chunk->limit = (char *) chunk + h->chunk_size; chunk->prev = 0; /* The initial chunk now contains no empty object. */ h->maybe_empty_object = 0; h->alloc_failed = 0; return 1; } int _obstack_begin_1 (struct obstack *h, int size, int alignment, void *(*chunkfun) (void *, long), void (*freefun) (void *, void *), void *arg) { register struct _obstack_chunk *chunk; /* points to new chunk */ if (alignment == 0) alignment = DEFAULT_ALIGNMENT; if (size == 0) /* Default size is what GNU malloc can fit in a 4096-byte block. */ { /* 12 is sizeof (mhead) and 4 is EXTRA from GNU malloc. Use the values for range checking, because if range checking is off, the extra bytes won't be missed terribly, but if range checking is on and we used a larger request, a whole extra 4096 bytes would be allocated. These number are irrelevant to the new GNU malloc. I suspect it is less sensitive to the size of the request. */ int extra = ((((12 + DEFAULT_ROUNDING - 1) & ~(DEFAULT_ROUNDING - 1)) + 4 + DEFAULT_ROUNDING - 1) & ~(DEFAULT_ROUNDING - 1)); size = 4096 - extra; } h->chunkfun = (struct _obstack_chunk * (*)(void *,long)) chunkfun; h->freefun = (void (*) (void *, struct _obstack_chunk *)) freefun; h->chunk_size = size; h->alignment_mask = alignment - 1; h->extra_arg = arg; h->use_extra_arg = 1; chunk = h->chunk = CALL_CHUNKFUN (h, h -> chunk_size); if (!chunk) (*obstack_alloc_failed_handler) (); h->next_free = h->object_base = __PTR_ALIGN ((char *) chunk, chunk->contents, alignment - 1); h->chunk_limit = chunk->limit = (char *) chunk + h->chunk_size; chunk->prev = 0; /* The initial chunk now contains no empty object. */ h->maybe_empty_object = 0; h->alloc_failed = 0; return 1; } /* Allocate a new current chunk for the obstack *H on the assumption that LENGTH bytes need to be added to the current object, or a new object of length LENGTH allocated. Copies any partial object from the end of the old chunk to the beginning of the new one. */ void _obstack_newchunk (struct obstack *h, int length) { register struct _obstack_chunk *old_chunk = h->chunk; register struct _obstack_chunk *new_chunk; register long new_size; register long obj_size = h->next_free - h->object_base; register long i; long already; char *object_base; /* Compute size for new chunk. */ new_size = (obj_size + length) + (obj_size >> 3) + h->alignment_mask + 100; if (new_size < h->chunk_size) new_size = h->chunk_size; /* Allocate and initialize the new chunk. */ new_chunk = CALL_CHUNKFUN (h, new_size); if (!new_chunk) (*obstack_alloc_failed_handler) (); h->chunk = new_chunk; new_chunk->prev = old_chunk; new_chunk->limit = h->chunk_limit = (char *) new_chunk + new_size; /* Compute an aligned object_base in the new chunk */ object_base = __PTR_ALIGN ((char *) new_chunk, new_chunk->contents, h->alignment_mask); /* Move the existing object to the new chunk. Word at a time is fast and is safe if the object is sufficiently aligned. */ if (h->alignment_mask + 1 >= DEFAULT_ALIGNMENT) { for (i = obj_size / sizeof (COPYING_UNIT) - 1; i >= 0; i--) ((COPYING_UNIT *)object_base)[i] = ((COPYING_UNIT *)h->object_base)[i]; /* We used to copy the odd few remaining bytes as one extra COPYING_UNIT, but that can cross a page boundary on a machine which does not do strict alignment for COPYING_UNITS. */ already = obj_size / sizeof (COPYING_UNIT) * sizeof (COPYING_UNIT); } else already = 0; /* Copy remaining bytes one by one. */ for (i = already; i < obj_size; i++) object_base[i] = h->object_base[i]; /* If the object just copied was the only data in OLD_CHUNK, free that chunk and remove it from the chain. But not if that chunk might contain an empty object. */ if (! h->maybe_empty_object && (h->object_base == __PTR_ALIGN ((char *) old_chunk, old_chunk->contents, h->alignment_mask))) { new_chunk->prev = old_chunk->prev; CALL_FREEFUN (h, old_chunk); } h->object_base = object_base; h->next_free = h->object_base + obj_size; /* The new chunk certainly contains no empty object yet. */ h->maybe_empty_object = 0; } # ifdef _LIBC libc_hidden_def (_obstack_newchunk) # endif /* Return nonzero if object OBJ has been allocated from obstack H. This is here for debugging. If you use it in a program, you are probably losing. */ /* Suppress -Wmissing-prototypes warning. We don't want to declare this in obstack.h because it is just for debugging. */ int _obstack_allocated_p (struct obstack *h, void *obj); int _obstack_allocated_p (struct obstack *h, void *obj) { register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */ register struct _obstack_chunk *plp; /* point to previous chunk if any */ lp = (h)->chunk; /* We use >= rather than > since the object cannot be exactly at the beginning of the chunk but might be an empty object exactly at the end of an adjacent chunk. */ while (lp != 0 && ((void *) lp >= obj || (void *) (lp)->limit < obj)) { plp = lp->prev; lp = plp; } return lp != 0; } /* Free objects in obstack H, including OBJ and everything allocate more recently than OBJ. If OBJ is zero, free everything in H. */ # undef obstack_free void __obstack_free (struct obstack *h, void *obj) { register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */ register struct _obstack_chunk *plp; /* point to previous chunk if any */ lp = h->chunk; /* We use >= because there cannot be an object at the beginning of a chunk. But there can be an empty object at that address at the end of another chunk. */ while (lp != 0 && ((void *) lp >= obj || (void *) (lp)->limit < obj)) { plp = lp->prev; CALL_FREEFUN (h, lp); lp = plp; /* If we switch chunks, we can't tell whether the new current chunk contains an empty object, so assume that it may. */ h->maybe_empty_object = 1; } if (lp) { h->object_base = h->next_free = (char *) (obj); h->chunk_limit = lp->limit; h->chunk = lp; } else if (obj != 0) /* obj is not in any of the chunks! */ abort (); } # ifdef _LIBC /* Older versions of libc used a function _obstack_free intended to be called by non-GCC compilers. */ strong_alias (obstack_free, _obstack_free) # endif int _obstack_memory_used (struct obstack *h) { register struct _obstack_chunk* lp; register int nbytes = 0; for (lp = h->chunk; lp != 0; lp = lp->prev) { nbytes += lp->limit - (char *) lp; } return nbytes; } /* Define the error handler. */ # ifdef _LIBC # include # else # include "gettext.h" # endif # ifndef _ # define _(msgid) gettext (msgid) # endif # ifdef _LIBC # include # endif # ifndef __attribute__ /* This feature is available in gcc versions 2.5 and later. */ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) # define __attribute__(Spec) /* empty */ # endif # endif static void __attribute__ ((noreturn)) print_and_abort (void) { /* Don't change any of these strings. Yes, it would be possible to add the newline to the string and use fputs or so. But this must not happen because the "memory exhausted" message appears in other places like this and the translation should be reused instead of creating a very similar string which requires a separate translation. */ # ifdef _LIBC (void) __fxprintf (NULL, "%s\n", _("memory exhausted")); # else fprintf (stderr, "%s\n", _("memory exhausted")); # endif exit (obstack_exit_failure); } #endif /* !ELIDE_CODE */ mlocate-0.26/gnulib/lib/fnmatch.in.h0000664000175000017500000000452011353206451014235 00000000000000/* Copyright (C) 1991, 1992, 1993, 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2005, 2007 Free Software Foundation, Inc. This file is part of the GNU C Library. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _FNMATCH_H #define _FNMATCH_H 1 #ifdef __cplusplus extern "C" { #endif /* We #undef these before defining them because some losing systems (HP-UX A.08.07 for example) define these in . */ #undef FNM_PATHNAME #undef FNM_NOESCAPE #undef FNM_PERIOD /* Bits set in the FLAGS argument to `fnmatch'. */ #define FNM_PATHNAME (1 << 0) /* No wildcard can ever match `/'. */ #define FNM_NOESCAPE (1 << 1) /* Backslashes don't quote special chars. */ #define FNM_PERIOD (1 << 2) /* Leading `.' is matched only explicitly. */ #if !defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 2 || defined _GNU_SOURCE # define FNM_FILE_NAME FNM_PATHNAME /* Preferred GNU name. */ # define FNM_LEADING_DIR (1 << 3) /* Ignore `/...' after a match. */ # define FNM_CASEFOLD (1 << 4) /* Compare without regard to case. */ # define FNM_EXTMATCH (1 << 5) /* Use ksh-like extended matching. */ #endif /* Value returned by `fnmatch' if STRING does not match PATTERN. */ #define FNM_NOMATCH 1 /* This value is returned if the implementation does not support `fnmatch'. Since this is not the case here it will never be returned but the conformance test suites still require the symbol to be defined. */ #ifdef _XOPEN_SOURCE # define FNM_NOSYS (-1) #endif /* Match NAME against the file name pattern PATTERN, returning zero if it matches, FNM_NOMATCH if not. */ extern int fnmatch (const char *__pattern, const char *__name, int __flags); #ifdef __cplusplus } #endif #endif /* fnmatch.h */ mlocate-0.26/gnulib/lib/mbsstr.c0000664000175000017500000002660711353206451013527 00000000000000/* Searching in a string. Copyright (C) 2005-2007 Free Software Foundation, Inc. Written by Bruno Haible , 2005. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include /* Specification. */ #include #include #include /* for NULL, in case a nonstandard string.h lacks it */ #include "malloca.h" #if HAVE_MBRTOWC # include "mbuiter.h" #endif /* Knuth-Morris-Pratt algorithm. See http://en.wikipedia.org/wiki/Knuth-Morris-Pratt_algorithm Return a boolean indicating success. */ static bool knuth_morris_pratt_unibyte (const char *haystack, const char *needle, const char **resultp) { size_t m = strlen (needle); /* Allocate the table. */ size_t *table = (size_t *) malloca (m * sizeof (size_t)); if (table == NULL) return false; /* Fill the table. For 0 < i < m: 0 < table[i] <= i is defined such that rhaystack[0..i-1] == needle[0..i-1] and rhaystack[i] != needle[i] implies forall 0 <= x < table[i]: rhaystack[x..x+m-1] != needle[0..m-1], and table[i] is as large as possible with this property. table[0] remains uninitialized. */ { size_t i, j; table[1] = 1; j = 0; for (i = 2; i < m; i++) { unsigned char b = (unsigned char) needle[i - 1]; for (;;) { if (b == (unsigned char) needle[j]) { table[i] = i - ++j; break; } if (j == 0) { table[i] = i; break; } j = j - table[j]; } } } /* Search, using the table to accelerate the processing. */ { size_t j; const char *rhaystack; const char *phaystack; *resultp = NULL; j = 0; rhaystack = haystack; phaystack = haystack; /* Invariant: phaystack = rhaystack + j. */ while (*phaystack != '\0') if ((unsigned char) needle[j] == (unsigned char) *phaystack) { j++; phaystack++; if (j == m) { /* The entire needle has been found. */ *resultp = rhaystack; break; } } else if (j > 0) { /* Found a match of needle[0..j-1], mismatch at needle[j]. */ rhaystack += table[j]; j -= table[j]; } else { /* Found a mismatch at needle[0] already. */ rhaystack++; phaystack++; } } freea (table); return true; } #if HAVE_MBRTOWC static bool knuth_morris_pratt_multibyte (const char *haystack, const char *needle, const char **resultp) { size_t m = mbslen (needle); mbchar_t *needle_mbchars; size_t *table; /* Allocate room for needle_mbchars and the table. */ char *memory = (char *) malloca (m * (sizeof (mbchar_t) + sizeof (size_t))); if (memory == NULL) return false; needle_mbchars = (mbchar_t *) memory; table = (size_t *) (memory + m * sizeof (mbchar_t)); /* Fill needle_mbchars. */ { mbui_iterator_t iter; size_t j; j = 0; for (mbui_init (iter, needle); mbui_avail (iter); mbui_advance (iter), j++) mb_copy (&needle_mbchars[j], &mbui_cur (iter)); } /* Fill the table. For 0 < i < m: 0 < table[i] <= i is defined such that rhaystack[0..i-1] == needle[0..i-1] and rhaystack[i] != needle[i] implies forall 0 <= x < table[i]: rhaystack[x..x+m-1] != needle[0..m-1], and table[i] is as large as possible with this property. table[0] remains uninitialized. */ { size_t i, j; table[1] = 1; j = 0; for (i = 2; i < m; i++) { mbchar_t *b = &needle_mbchars[i - 1]; for (;;) { if (mb_equal (*b, needle_mbchars[j])) { table[i] = i - ++j; break; } if (j == 0) { table[i] = i; break; } j = j - table[j]; } } } /* Search, using the table to accelerate the processing. */ { size_t j; mbui_iterator_t rhaystack; mbui_iterator_t phaystack; *resultp = NULL; j = 0; mbui_init (rhaystack, haystack); mbui_init (phaystack, haystack); /* Invariant: phaystack = rhaystack + j. */ while (mbui_avail (phaystack)) if (mb_equal (needle_mbchars[j], mbui_cur (phaystack))) { j++; mbui_advance (phaystack); if (j == m) { /* The entire needle has been found. */ *resultp = mbui_cur_ptr (rhaystack); break; } } else if (j > 0) { /* Found a match of needle[0..j-1], mismatch at needle[j]. */ size_t count = table[j]; j -= count; for (; count > 0; count--) { if (!mbui_avail (rhaystack)) abort (); mbui_advance (rhaystack); } } else { /* Found a mismatch at needle[0] already. */ if (!mbui_avail (rhaystack)) abort (); mbui_advance (rhaystack); mbui_advance (phaystack); } } freea (memory); return true; } #endif /* Find the first occurrence of the character string NEEDLE in the character string HAYSTACK. Return NULL if NEEDLE is not found in HAYSTACK. */ char * mbsstr (const char *haystack, const char *needle) { /* Be careful not to look at the entire extent of haystack or needle until needed. This is useful because of these two cases: - haystack may be very long, and a match of needle found early, - needle may be very long, and not even a short initial segment of needle may be found in haystack. */ #if HAVE_MBRTOWC if (MB_CUR_MAX > 1) { mbui_iterator_t iter_needle; mbui_init (iter_needle, needle); if (mbui_avail (iter_needle)) { /* Minimizing the worst-case complexity: Let n = mbslen(haystack), m = mbslen(needle). The naïve algorithm is O(n*m) worst-case. The Knuth-Morris-Pratt algorithm is O(n) worst-case but it needs a memory allocation. To achieve linear complexity and yet amortize the cost of the memory allocation, we activate the Knuth-Morris-Pratt algorithm only once the naïve algorithm has already run for some time; more precisely, when - the outer loop count is >= 10, - the average number of comparisons per outer loop is >= 5, - the total number of comparisons is >= m. But we try it only once. If the memory allocation attempt failed, we don't retry it. */ bool try_kmp = true; size_t outer_loop_count = 0; size_t comparison_count = 0; size_t last_ccount = 0; /* last comparison count */ mbui_iterator_t iter_needle_last_ccount; /* = needle + last_ccount */ mbui_iterator_t iter_haystack; mbui_init (iter_needle_last_ccount, needle); mbui_init (iter_haystack, haystack); for (;; mbui_advance (iter_haystack)) { if (!mbui_avail (iter_haystack)) /* No match. */ return NULL; /* See whether it's advisable to use an asymptotically faster algorithm. */ if (try_kmp && outer_loop_count >= 10 && comparison_count >= 5 * outer_loop_count) { /* See if needle + comparison_count now reaches the end of needle. */ size_t count = comparison_count - last_ccount; for (; count > 0 && mbui_avail (iter_needle_last_ccount); count--) mbui_advance (iter_needle_last_ccount); last_ccount = comparison_count; if (!mbui_avail (iter_needle_last_ccount)) { /* Try the Knuth-Morris-Pratt algorithm. */ const char *result; bool success = knuth_morris_pratt_multibyte (haystack, needle, &result); if (success) return (char *) result; try_kmp = false; } } outer_loop_count++; comparison_count++; if (mb_equal (mbui_cur (iter_haystack), mbui_cur (iter_needle))) /* The first character matches. */ { mbui_iterator_t rhaystack; mbui_iterator_t rneedle; memcpy (&rhaystack, &iter_haystack, sizeof (mbui_iterator_t)); mbui_advance (rhaystack); mbui_init (rneedle, needle); if (!mbui_avail (rneedle)) abort (); mbui_advance (rneedle); for (;; mbui_advance (rhaystack), mbui_advance (rneedle)) { if (!mbui_avail (rneedle)) /* Found a match. */ return (char *) mbui_cur_ptr (iter_haystack); if (!mbui_avail (rhaystack)) /* No match. */ return NULL; comparison_count++; if (!mb_equal (mbui_cur (rhaystack), mbui_cur (rneedle))) /* Nothing in this round. */ break; } } } } else return (char *) haystack; } else #endif { if (*needle != '\0') { /* Minimizing the worst-case complexity: Let n = strlen(haystack), m = strlen(needle). The naïve algorithm is O(n*m) worst-case. The Knuth-Morris-Pratt algorithm is O(n) worst-case but it needs a memory allocation. To achieve linear complexity and yet amortize the cost of the memory allocation, we activate the Knuth-Morris-Pratt algorithm only once the naïve algorithm has already run for some time; more precisely, when - the outer loop count is >= 10, - the average number of comparisons per outer loop is >= 5, - the total number of comparisons is >= m. But we try it only once. If the memory allocation attempt failed, we don't retry it. */ bool try_kmp = true; size_t outer_loop_count = 0; size_t comparison_count = 0; size_t last_ccount = 0; /* last comparison count */ const char *needle_last_ccount = needle; /* = needle + last_ccount */ /* Speed up the following searches of needle by caching its first character. */ char b = *needle++; for (;; haystack++) { if (*haystack == '\0') /* No match. */ return NULL; /* See whether it's advisable to use an asymptotically faster algorithm. */ if (try_kmp && outer_loop_count >= 10 && comparison_count >= 5 * outer_loop_count) { /* See if needle + comparison_count now reaches the end of needle. */ if (needle_last_ccount != NULL) { needle_last_ccount += strnlen (needle_last_ccount, comparison_count - last_ccount); if (*needle_last_ccount == '\0') needle_last_ccount = NULL; last_ccount = comparison_count; } if (needle_last_ccount == NULL) { /* Try the Knuth-Morris-Pratt algorithm. */ const char *result; bool success = knuth_morris_pratt_unibyte (haystack, needle - 1, &result); if (success) return (char *) result; try_kmp = false; } } outer_loop_count++; comparison_count++; if (*haystack == b) /* The first character matches. */ { const char *rhaystack = haystack + 1; const char *rneedle = needle; for (;; rhaystack++, rneedle++) { if (*rneedle == '\0') /* Found a match. */ return (char *) haystack; if (*rhaystack == '\0') /* No match. */ return NULL; comparison_count++; if (*rhaystack != *rneedle) /* Nothing in this round. */ break; } } } } else return (char *) haystack; } } mlocate-0.26/gnulib/lib/error.c0000664000175000017500000001762611353206451013347 00000000000000/* Error handler for noninteractive utilities Copyright (C) 1990-1998, 2000-2007 Free Software Foundation, Inc. This file is part of the GNU C Library. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by David MacKenzie . */ #if !_LIBC # include #endif #include "error.h" #include #include #include #include #if !_LIBC && ENABLE_NLS # include "gettext.h" # define _(msgid) gettext (msgid) #endif #ifdef _LIBC # include # include # include # include # define mbsrtowcs __mbsrtowcs #endif #if USE_UNLOCKED_IO # include "unlocked-io.h" #endif #ifndef _ # define _(String) String #endif /* If NULL, error will flush stdout, then print on stderr the program name, a colon and a space. Otherwise, error will call this function without parameters instead. */ void (*error_print_progname) (void); /* This variable is incremented each time `error' is called. */ unsigned int error_message_count; #ifdef _LIBC /* In the GNU C library, there is a predefined variable for this. */ # define program_name program_invocation_name # include # include # include /* In GNU libc we want do not want to use the common name `error' directly. Instead make it a weak alias. */ extern void __error (int status, int errnum, const char *message, ...) __attribute__ ((__format__ (__printf__, 3, 4))); extern void __error_at_line (int status, int errnum, const char *file_name, unsigned int line_number, const char *message, ...) __attribute__ ((__format__ (__printf__, 5, 6)));; # define error __error # define error_at_line __error_at_line # include # define fflush(s) INTUSE(_IO_fflush) (s) # undef putc # define putc(c, fp) INTUSE(_IO_putc) (c, fp) # include #else /* not _LIBC */ # if !HAVE_DECL_STRERROR_R && STRERROR_R_CHAR_P # ifndef HAVE_DECL_STRERROR_R "this configure-time declaration test was not run" # endif char *strerror_r (); # endif /* The calling program should define program_name and set it to the name of the executing program. */ extern char *program_name; # if HAVE_STRERROR_R || defined strerror_r # define __strerror_r strerror_r # endif /* HAVE_STRERROR_R || defined strerror_r */ #endif /* not _LIBC */ static void print_errno_message (int errnum) { char const *s; #if defined HAVE_STRERROR_R || _LIBC char errbuf[1024]; # if STRERROR_R_CHAR_P || _LIBC s = __strerror_r (errnum, errbuf, sizeof errbuf); # else if (__strerror_r (errnum, errbuf, sizeof errbuf) == 0) s = errbuf; else s = 0; # endif #else s = strerror (errnum); #endif #if !_LIBC if (! s) s = _("Unknown system error"); #endif #if _LIBC __fxprintf (NULL, ": %s", s); #else fprintf (stderr, ": %s", s); #endif } static void error_tail (int status, int errnum, const char *message, va_list args) { #if _LIBC if (_IO_fwide (stderr, 0) > 0) { # define ALLOCA_LIMIT 2000 size_t len = strlen (message) + 1; wchar_t *wmessage = NULL; mbstate_t st; size_t res; const char *tmp; bool use_malloc = false; while (1) { if (__libc_use_alloca (len * sizeof (wchar_t))) wmessage = (wchar_t *) alloca (len * sizeof (wchar_t)); else { if (!use_malloc) wmessage = NULL; wchar_t *p = (wchar_t *) realloc (wmessage, len * sizeof (wchar_t)); if (p == NULL) { free (wmessage); fputws_unlocked (L"out of memory\n", stderr); return; } wmessage = p; use_malloc = true; } memset (&st, '\0', sizeof (st)); tmp = message; res = mbsrtowcs (wmessage, &tmp, len, &st); if (res != len) break; if (__builtin_expect (len >= SIZE_MAX / 2, 0)) { /* This really should not happen if everything is fine. */ res = (size_t) -1; break; } len *= 2; } if (res == (size_t) -1) { /* The string cannot be converted. */ if (use_malloc) { free (wmessage); use_malloc = false; } wmessage = (wchar_t *) L"???"; } __vfwprintf (stderr, wmessage, args); if (use_malloc) free (wmessage); } else #endif vfprintf (stderr, message, args); va_end (args); ++error_message_count; if (errnum) print_errno_message (errnum); #if _LIBC __fxprintf (NULL, "\n"); #else putc ('\n', stderr); #endif fflush (stderr); if (status) exit (status); } /* Print the program name and error message MESSAGE, which is a printf-style format string with optional args. If ERRNUM is nonzero, print its corresponding system error message. Exit with status STATUS if it is nonzero. */ void error (int status, int errnum, const char *message, ...) { va_list args; #if defined _LIBC && defined __libc_ptf_call /* We do not want this call to be cut short by a thread cancellation. Therefore disable cancellation for now. */ int state = PTHREAD_CANCEL_ENABLE; __libc_ptf_call (pthread_setcancelstate, (PTHREAD_CANCEL_DISABLE, &state), 0); #endif fflush (stdout); #ifdef _LIBC _IO_flockfile (stderr); #endif if (error_print_progname) (*error_print_progname) (); else { #if _LIBC __fxprintf (NULL, "%s: ", program_name); #else fprintf (stderr, "%s: ", program_name); #endif } va_start (args, message); error_tail (status, errnum, message, args); #ifdef _LIBC _IO_funlockfile (stderr); # ifdef __libc_ptf_call __libc_ptf_call (pthread_setcancelstate, (state, NULL), 0); # endif #endif } /* Sometimes we want to have at most one error per line. This variable controls whether this mode is selected or not. */ int error_one_per_line; void error_at_line (int status, int errnum, const char *file_name, unsigned int line_number, const char *message, ...) { va_list args; if (error_one_per_line) { static const char *old_file_name; static unsigned int old_line_number; if (old_line_number == line_number && (file_name == old_file_name || strcmp (old_file_name, file_name) == 0)) /* Simply return and print nothing. */ return; old_file_name = file_name; old_line_number = line_number; } #if defined _LIBC && defined __libc_ptf_call /* We do not want this call to be cut short by a thread cancellation. Therefore disable cancellation for now. */ int state = PTHREAD_CANCEL_ENABLE; __libc_ptf_call (pthread_setcancelstate, (PTHREAD_CANCEL_DISABLE, &state), 0); #endif fflush (stdout); #ifdef _LIBC _IO_flockfile (stderr); #endif if (error_print_progname) (*error_print_progname) (); else { #if _LIBC __fxprintf (NULL, "%s:", program_name); #else fprintf (stderr, "%s:", program_name); #endif } #if _LIBC __fxprintf (NULL, file_name != NULL ? "%s:%d: " : " ", file_name, line_number); #else fprintf (stderr, file_name != NULL ? "%s:%d: " : " ", file_name, line_number); #endif va_start (args, message); error_tail (status, errnum, message, args); #ifdef _LIBC _IO_funlockfile (stderr); # ifdef __libc_ptf_call __libc_ptf_call (pthread_setcancelstate, (state, NULL), 0); # endif #endif } #ifdef _LIBC /* Make the weak alias. */ # undef error # undef error_at_line weak_alias (__error, error) weak_alias (__error_at_line, error_at_line) #endif mlocate-0.26/gnulib/lib/uniwidth.h0000664000175000017500000000373111353206451014046 00000000000000/* Display width functions. Copyright (C) 2001-2002, 2005, 2007 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _UNIWIDTH_H #define _UNIWIDTH_H #include "unitypes.h" /* Get size_t. */ #include /* Get locale_charset() declaration. */ #include "localcharset.h" #ifdef __cplusplus extern "C" { #endif /* Display width. */ /* These functions are locale dependent. The encoding argument identifies the encoding (e.g. "ISO-8859-2" for Polish). */ /* Determine number of column positions required for UC. */ extern int uc_width (ucs4_t uc, const char *encoding); /* Determine number of column positions required for first N units (or fewer if S ends before this) in S. */ extern int u8_width (const uint8_t *s, size_t n, const char *encoding); extern int u16_width (const uint16_t *s, size_t n, const char *encoding); extern int u32_width (const uint32_t *s, size_t n, const char *encoding); /* Determine number of column positions required for S. */ extern int u8_strwidth (const uint8_t *s, const char *encoding); extern int u16_strwidth (const uint16_t *s, const char *encoding); extern int u32_strwidth (const uint32_t *s, const char *encoding); #ifdef __cplusplus } #endif #endif /* _UNIWIDTH_H */ mlocate-0.26/gnulib/lib/wctype.in.h0000664000175000017500000000761711353206451014142 00000000000000/* A substitute for ISO C99 , for platforms that lack it. Copyright (C) 2006, 2007 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Bruno Haible and Paul Eggert. */ /* * ISO C 99 for platforms that lack it. * * * iswctype, towctrans, towlower, towupper, wctrans, wctype, * wctrans_t, and wctype_t are not yet implemented. */ #ifndef _GL_WCTYPE_H #if @HAVE_WINT_T@ /* Solaris 2.5 has a bug: must be included before . Tru64 with Desktop Toolkit C has a bug: must be included before . BSD/OS 4.0.1 has a bug: , and must be included before . */ # include # include # include # include #endif /* Include the original if it exists. BeOS 5 has the functions but no . */ /* The include_next requires a split double-inclusion guard. */ #if @HAVE_WCTYPE_H@ # @INCLUDE_NEXT@ @NEXT_WCTYPE_H@ #endif #ifndef _GL_WCTYPE_H #define _GL_WCTYPE_H #if @HAVE_WINT_T@ typedef wint_t __wctype_wint_t; #else typedef int __wctype_wint_t; #endif /* FreeBSD 4.4 to 4.11 has but lacks the functions. Assume all 12 functions are implemented the same way, or not at all. */ #if ! @HAVE_ISWCNTRL@ /* IRIX 5.3 has macros but no functions, its isw* macros refer to an undefined variable _ctmp_ and to macros like _P, and they refer to system functions like _iswctype that are not in the standard C library. Rather than try to get ancient buggy implementations like this to work, just disable them. */ # undef iswalnum # undef iswalpha # undef iswblank # undef iswcntrl # undef iswdigit # undef iswgraph # undef iswlower # undef iswprint # undef iswpunct # undef iswspace # undef iswupper # undef iswxdigit static inline int iswalnum (__wctype_wint_t wc) { return ((wc >= '0' && wc <= '9') || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'Z')); } static inline int iswalpha (__wctype_wint_t wc) { return (wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'Z'; } static inline int iswblank (__wctype_wint_t wc) { return wc == ' ' || wc == '\t'; } static inline int iswcntrl (__wctype_wint_t wc) { return (wc & ~0x1f) == 0 || wc == 0x7f; } static inline int iswdigit (__wctype_wint_t wc) { return wc >= '0' && wc <= '9'; } static inline int iswgraph (__wctype_wint_t wc) { return wc >= '!' && wc <= '~'; } static inline int iswlower (__wctype_wint_t wc) { return wc >= 'a' && wc <= 'z'; } static inline int iswprint (__wctype_wint_t wc) { return wc >= ' ' && wc <= '~'; } static inline int iswpunct (__wctype_wint_t wc) { return (wc >= '!' && wc <= '~' && !((wc >= '0' && wc <= '9') || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'Z'))); } static inline int iswspace (__wctype_wint_t wc) { return (wc == ' ' || wc == '\t' || wc == '\n' || wc == '\v' || wc == '\f' || wc == '\r'); } static inline int iswupper (__wctype_wint_t wc) { return wc >= 'A' && wc <= 'Z'; } static inline int iswxdigit (__wctype_wint_t wc) { return ((wc >= '0' && wc <= '9') || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'F')); } # endif /* ! HAVE_ISWCNTRL */ #endif /* _GL_WCTYPE_H */ #endif /* _GL_WCTYPE_H */ mlocate-0.26/gnulib/lib/stat-time.h0000664000175000017500000001277411541716534014140 00000000000000/* stat-related time functions. Copyright (C) 2005, 2007 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Paul Eggert. */ #ifndef STAT_TIME_H #define STAT_TIME_H 1 #include #include /* STAT_TIMESPEC (ST, ST_XTIM) is the ST_XTIM member for *ST of type struct timespec, if available. If not, then STAT_TIMESPEC_NS (ST, ST_XTIM) is the nanosecond component of the ST_XTIM member for *ST, if available. ST_XTIM can be st_atim, st_ctim, st_mtim, or st_birthtim for access, status change, data modification, or birth (creation) time respectively. These macros are private to stat-time.h. */ #if defined HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC # ifdef TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC # define STAT_TIMESPEC(st, st_xtim) ((st)->st_xtim) # else # define STAT_TIMESPEC_NS(st, st_xtim) ((st)->st_xtim.tv_nsec) # endif #elif defined HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC # define STAT_TIMESPEC(st, st_xtim) ((st)->st_xtim##espec) #elif defined HAVE_STRUCT_STAT_ST_ATIMENSEC # define STAT_TIMESPEC_NS(st, st_xtim) ((st)->st_xtim##ensec) #elif defined HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC # define STAT_TIMESPEC_NS(st, st_xtim) ((st)->st_xtim.st__tim.tv_nsec) #endif /* Return the nanosecond component of *ST's access time. */ static inline long int get_stat_atime_ns (struct stat const *st) { # if defined STAT_TIMESPEC return STAT_TIMESPEC (st, st_atim).tv_nsec; # elif defined STAT_TIMESPEC_NS return STAT_TIMESPEC_NS (st, st_atim); # else return 0; # endif } /* Return the nanosecond component of *ST's status change time. */ static inline long int get_stat_ctime_ns (struct stat const *st) { # if defined STAT_TIMESPEC return STAT_TIMESPEC (st, st_ctim).tv_nsec; # elif defined STAT_TIMESPEC_NS return STAT_TIMESPEC_NS (st, st_ctim); # else return 0; # endif } /* Return the nanosecond component of *ST's data modification time. */ static inline long int get_stat_mtime_ns (struct stat const *st) { # if defined STAT_TIMESPEC return STAT_TIMESPEC (st, st_mtim).tv_nsec; # elif defined STAT_TIMESPEC_NS return STAT_TIMESPEC_NS (st, st_mtim); # else return 0; # endif } /* Return the nanosecond component of *ST's birth time. */ static inline long int get_stat_birthtime_ns (struct stat const *st) { # if defined HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC return STAT_TIMESPEC (st, st_birthtim).tv_nsec; # elif defined HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC return STAT_TIMESPEC_NS (st, st_birthtim); # else (void)st; return 0; # endif } /* Return *ST's access time. */ static inline struct timespec get_stat_atime (struct stat const *st) { #ifdef STAT_TIMESPEC return STAT_TIMESPEC (st, st_atim); #else struct timespec t; t.tv_sec = st->st_atime; t.tv_nsec = get_stat_atime_ns (st); return t; #endif } /* Return *ST's status change time. */ static inline struct timespec get_stat_ctime (struct stat const *st) { #ifdef STAT_TIMESPEC return STAT_TIMESPEC (st, st_ctim); #else struct timespec t; t.tv_sec = st->st_ctime; t.tv_nsec = get_stat_ctime_ns (st); return t; #endif } /* Return *ST's data modification time. */ static inline struct timespec get_stat_mtime (struct stat const *st) { #ifdef STAT_TIMESPEC return STAT_TIMESPEC (st, st_mtim); #else struct timespec t; t.tv_sec = st->st_mtime; t.tv_nsec = get_stat_mtime_ns (st); return t; #endif } /* Return *ST's birth time, if available; otherwise return a value with negative tv_nsec. */ static inline struct timespec get_stat_birthtime (struct stat const *st) { struct timespec t; #if (defined HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC \ || defined HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC) t = STAT_TIMESPEC (st, st_birthtim); #elif defined HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC t.tv_sec = st->st_birthtime; t.tv_nsec = st->st_birthtimensec; #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ /* Woe32 native platforms (but not Cygwin) put the "file creation time" in st_ctime (!). See . */ t.tv_sec = st->st_ctime; t.tv_nsec = 0; #else /* Birth time is not supported. Set tv_sec to avoid undefined behavior. */ (void)st; t.tv_sec = -1; t.tv_nsec = -1; #endif #if (defined HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC \ || defined HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC \ || defined HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC) /* FreeBSD and NetBSD sometimes signal the absence of knowledge by using zero. Attempt to work around this problem. Alas, this can report failure even for valid time stamps. Also, NetBSD sometimes returns junk in the birth time fields; work around this bug if it it is detected. There's no need to detect negative tv_nsec junk as negative tv_nsec already indicates an error. */ if (t.tv_sec == 0 || 1000000000 <= t.tv_nsec) t.tv_nsec = -1; #endif return t; } #endif mlocate-0.26/gnulib/lib/Makefile.am0000664000175000017500000005362011353206453014102 00000000000000## DO NOT EDIT! GENERATED AUTOMATICALLY! ## Process this file with automake to produce Makefile.in. # Copyright (C) 2004-2007 Free Software Foundation, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General # Public License, this file may be distributed as part of a program # that contains a configuration script generated by Autoconf, under # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. # Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=gnulib/lib --m4-base=gnulib/m4 --doc-base=doc --aux-dir=admin --no-libtool --macro-prefix=gl canonicalize-lgpl config-h d-type error fnmatch-gnu fwriteerror getopt gettext-h mbsstr mempcpy obstack progname safe-read stat-time strchrnul timespec verify xalloc AUTOMAKE_OPTIONS = 1.5 gnits subdir-objects noinst_HEADERS = noinst_LIBRARIES = noinst_LTLIBRARIES = EXTRA_DIST = BUILT_SOURCES = SUFFIXES = MOSTLYCLEANFILES = core *.stackdump MOSTLYCLEANDIRS = CLEANFILES = DISTCLEANFILES = MAINTAINERCLEANFILES = AM_CPPFLAGS = noinst_LIBRARIES += libgnu.a libgnu_a_SOURCES = libgnu_a_LIBADD = $(gl_LIBOBJS) libgnu_a_DEPENDENCIES = $(gl_LIBOBJS) EXTRA_libgnu_a_SOURCES = ## begin gnulib module absolute-header # Use this preprocessor expression to decide whether #include_next works. # Do not rely on a 'configure'-time test for this, since the expression # might appear in an installed header, which is used by some other compiler. HAVE_INCLUDE_NEXT = (__GNUC__ || 60000000 <= __DECC_VER) ## end gnulib module absolute-header ## begin gnulib module alloca EXTRA_DIST += alloca.c EXTRA_libgnu_a_SOURCES += alloca.c libgnu_a_LIBADD += @ALLOCA@ libgnu_a_DEPENDENCIES += @ALLOCA@ ## end gnulib module alloca ## begin gnulib module alloca-opt BUILT_SOURCES += $(ALLOCA_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. alloca.h: alloca.in.h { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/alloca.in.h; \ } > $@-t mv -f $@-t $@ MOSTLYCLEANFILES += alloca.h alloca.h-t EXTRA_DIST += alloca.in.h ## end gnulib module alloca-opt ## begin gnulib module canonicalize-lgpl EXTRA_DIST += canonicalize-lgpl.c canonicalize.h EXTRA_libgnu_a_SOURCES += canonicalize-lgpl.c ## end gnulib module canonicalize-lgpl ## begin gnulib module configmake # Retrieve values of the variables through 'configure' followed by # 'make', not directly through 'configure', so that a user who # sets some of these variables consistently on the 'make' command # line gets correct results. # # One advantage of this approach, compared to the classical # approach of adding -DLIBDIR=\"$(libdir)\" etc. to AM_CPPFLAGS, # is that it protects against the use of undefined variables. # If, say, $(libdir) is not set in the Makefile, LIBDIR is not # defined by this module, and code using LIBDIR gives a # compilation error. # # Another advantage is that 'make' output is shorter. # # Listed in the same order as the GNU makefile conventions. # The Automake-defined pkg* macros are appended, in the order # listed in the Automake 1.10a+ documentation. configmake.h: Makefile rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ echo '#define PREFIX "$(prefix)"'; \ echo '#define EXEC_PREFIX "$(exec_prefix)"'; \ echo '#define BINDIR "$(bindir)"'; \ echo '#define SBINDIR "$(sbindir)"'; \ echo '#define LIBEXECDIR "$(libexecdir)"'; \ echo '#define DATAROOTDIR "$(datarootdir)"'; \ echo '#define DATADIR "$(datadir)"'; \ echo '#define SYSCONFDIR "$(sysconfdir)"'; \ echo '#define SHAREDSTATEDIR "$(sharedstatedir)"'; \ echo '#define LOCALSTATEDIR "$(localstatedir)"'; \ echo '#define INCLUDEDIR "$(includedir)"'; \ echo '#define OLDINCLUDEDIR "$(oldincludedir)"'; \ echo '#define DOCDIR "$(docdir)"'; \ echo '#define INFODIR "$(infodir)"'; \ echo '#define HTMLDIR "$(htmldir)"'; \ echo '#define DVIDIR "$(dvidir)"'; \ echo '#define PDFDIR "$(pdfdir)"'; \ echo '#define PSDIR "$(psdir)"'; \ echo '#define LIBDIR "$(libdir)"'; \ echo '#define LISPDIR "$(lispdir)"'; \ echo '#define LOCALEDIR "$(localedir)"'; \ echo '#define MANDIR "$(mandir)"'; \ echo '#define MANEXT "$(manext)"'; \ echo '#define PKGDATADIR "$(pkgdatadir)"'; \ echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \ echo '#define PKGLIBDIR "$(pkglibdir)"'; \ echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \ } | sed '/""/d' > $@-t mv $@-t $@ BUILT_SOURCES += configmake.h CLEANFILES += configmake.h configmake.h-t ## end gnulib module configmake ## begin gnulib module error EXTRA_DIST += error.c error.h EXTRA_libgnu_a_SOURCES += error.c ## end gnulib module error ## begin gnulib module exitfail EXTRA_DIST += exitfail.c exitfail.h EXTRA_libgnu_a_SOURCES += exitfail.c ## end gnulib module exitfail ## begin gnulib module fnmatch BUILT_SOURCES += $(FNMATCH_H) # We need the following in order to create when the system # doesn't have one that supports the required API. fnmatch.h: fnmatch.in.h { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/fnmatch.in.h; \ } > $@-t mv -f $@-t $@ MOSTLYCLEANFILES += fnmatch.h fnmatch.h-t EXTRA_DIST += fnmatch.c fnmatch.in.h fnmatch_loop.c EXTRA_libgnu_a_SOURCES += fnmatch.c fnmatch_loop.c ## end gnulib module fnmatch ## begin gnulib module fwriteerror libgnu_a_SOURCES += fwriteerror.h fwriteerror.c ## end gnulib module fwriteerror ## begin gnulib module getopt BUILT_SOURCES += $(GETOPT_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. getopt.h: getopt.in.h { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/getopt.in.h; \ } > $@-t mv -f $@-t $@ MOSTLYCLEANFILES += getopt.h getopt.h-t EXTRA_DIST += getopt.c getopt.in.h getopt1.c getopt_int.h EXTRA_libgnu_a_SOURCES += getopt.c getopt1.c ## end gnulib module getopt ## begin gnulib module gettext-h libgnu_a_SOURCES += gettext.h ## end gnulib module gettext-h ## begin gnulib module link-warning LINK_WARNING_H=$(top_srcdir)/admin/link-warning.h EXTRA_DIST += $(top_srcdir)/admin/link-warning.h ## end gnulib module link-warning ## begin gnulib module localcharset libgnu_a_SOURCES += localcharset.h localcharset.c # We need the following in order to install a simple file in $(libdir) # which is shared with other installed packages. We use a list of referencing # packages so that "make uninstall" will remove the file if and only if it # is not used by another installed package. # On systems with glibc-2.1 or newer, the file is redundant, therefore we # avoid installing it. all-local: charset.alias ref-add.sed ref-del.sed charset_alias = $(DESTDIR)$(libdir)/charset.alias charset_tmp = $(DESTDIR)$(libdir)/charset.tmp install-exec-local: all-local test $(GLIBC21) != no || $(mkinstalldirs) $(DESTDIR)$(libdir) if test -f $(charset_alias); then \ sed -f ref-add.sed $(charset_alias) > $(charset_tmp) ; \ $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \ rm -f $(charset_tmp) ; \ else \ if test $(GLIBC21) = no; then \ sed -f ref-add.sed charset.alias > $(charset_tmp) ; \ $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \ rm -f $(charset_tmp) ; \ fi ; \ fi uninstall-local: all-local if test -f $(charset_alias); then \ sed -f ref-del.sed $(charset_alias) > $(charset_tmp); \ if grep '^# Packages using this file: $$' $(charset_tmp) \ > /dev/null; then \ rm -f $(charset_alias); \ else \ $(INSTALL_DATA) $(charset_tmp) $(charset_alias); \ fi; \ rm -f $(charset_tmp); \ fi charset.alias: config.charset rm -f t-$@ $@ $(SHELL) $(srcdir)/config.charset '$(host)' > t-$@ mv t-$@ $@ SUFFIXES += .sed .sin .sin.sed: rm -f t-$@ $@ sed -e '/^#/d' -e 's/@''PACKAGE''@/$(PACKAGE)/g' $< > t-$@ mv t-$@ $@ CLEANFILES += charset.alias ref-add.sed ref-del.sed EXTRA_DIST += config.charset ref-add.sin ref-del.sin ## end gnulib module localcharset ## begin gnulib module malloca libgnu_a_SOURCES += malloca.c EXTRA_DIST += malloca.h malloca.valgrind ## end gnulib module malloca ## begin gnulib module mbchar libgnu_a_SOURCES += mbchar.c EXTRA_DIST += mbchar.h ## end gnulib module mbchar ## begin gnulib module mbslen libgnu_a_SOURCES += mbslen.c ## end gnulib module mbslen ## begin gnulib module mbsstr libgnu_a_SOURCES += mbsstr.c ## end gnulib module mbsstr ## begin gnulib module mbuiter libgnu_a_SOURCES += mbuiter.h ## end gnulib module mbuiter ## begin gnulib module memchr EXTRA_DIST += memchr.c EXTRA_libgnu_a_SOURCES += memchr.c ## end gnulib module memchr ## begin gnulib module mempcpy EXTRA_DIST += mempcpy.c EXTRA_libgnu_a_SOURCES += mempcpy.c ## end gnulib module mempcpy ## begin gnulib module obstack EXTRA_DIST += obstack.c obstack.h EXTRA_libgnu_a_SOURCES += obstack.c ## end gnulib module obstack ## begin gnulib module pathmax EXTRA_DIST += pathmax.h ## end gnulib module pathmax ## begin gnulib module progname libgnu_a_SOURCES += progname.h progname.c ## end gnulib module progname ## begin gnulib module readlink EXTRA_DIST += readlink.c EXTRA_libgnu_a_SOURCES += readlink.c ## end gnulib module readlink ## begin gnulib module safe-read EXTRA_DIST += safe-read.c safe-read.h EXTRA_libgnu_a_SOURCES += safe-read.c ## end gnulib module safe-read ## begin gnulib module stat-time EXTRA_DIST += stat-time.h ## end gnulib module stat-time ## begin gnulib module stdbool BUILT_SOURCES += $(STDBOOL_H) # We need the following in order to create when the system # doesn't have one that works. stdbool.h: stdbool.in.h rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \ } > $@-t mv $@-t $@ MOSTLYCLEANFILES += stdbool.h stdbool.h-t EXTRA_DIST += stdbool.in.h ## end gnulib module stdbool ## begin gnulib module stdint BUILT_SOURCES += $(STDINT_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. stdint.h: stdint.in.h rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \ -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \ -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \ -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \ -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \ -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \ -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \ -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \ -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \ -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \ -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \ -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \ -e 's/@''SIG_ATOMIC_T_SUFFIX''@/$(SIG_ATOMIC_T_SUFFIX)/g' \ -e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \ -e 's/@''SIZE_T_SUFFIX''@/$(SIZE_T_SUFFIX)/g' \ -e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \ -e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \ -e 's/@''WCHAR_T_SUFFIX''@/$(WCHAR_T_SUFFIX)/g' \ -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \ -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \ -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \ < $(srcdir)/stdint.in.h; \ } > $@-t mv $@-t $@ MOSTLYCLEANFILES += stdint.h stdint.h-t EXTRA_DIST += stdint.in.h ## end gnulib module stdint ## begin gnulib module stdlib BUILT_SOURCES += stdlib.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. stdlib.h: stdlib.in.h rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \ -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \ -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \ -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \ -e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \ -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \ -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \ -e 's|@''HAVE_CALLOC_POSIX''@|$(HAVE_CALLOC_POSIX)|g' \ -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \ -e 's|@''HAVE_MALLOC_POSIX''@|$(HAVE_MALLOC_POSIX)|g' \ -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \ -e 's|@''HAVE_REALLOC_POSIX''@|$(HAVE_REALLOC_POSIX)|g' \ -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \ -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ < $(srcdir)/stdlib.in.h; \ } > $@-t mv $@-t $@ MOSTLYCLEANFILES += stdlib.h stdlib.h-t EXTRA_DIST += stdlib.in.h ## end gnulib module stdlib ## begin gnulib module strchrnul EXTRA_DIST += strchrnul.c EXTRA_libgnu_a_SOURCES += strchrnul.c ## end gnulib module strchrnul ## begin gnulib module streq EXTRA_DIST += streq.h ## end gnulib module streq ## begin gnulib module strerror EXTRA_DIST += strerror.c EXTRA_libgnu_a_SOURCES += strerror.c ## end gnulib module strerror ## begin gnulib module string BUILT_SOURCES += string.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. string.h: string.in.h rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ -e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \ -e 's|@''GNULIB_MBSLEN''@|$(GNULIB_MBSLEN)|g' \ -e 's|@''GNULIB_MBSNLEN''@|$(GNULIB_MBSNLEN)|g' \ -e 's|@''GNULIB_MBSCHR''@|$(GNULIB_MBSCHR)|g' \ -e 's|@''GNULIB_MBSRCHR''@|$(GNULIB_MBSRCHR)|g' \ -e 's|@''GNULIB_MBSSTR''@|$(GNULIB_MBSSTR)|g' \ -e 's|@''GNULIB_MBSCASECMP''@|$(GNULIB_MBSCASECMP)|g' \ -e 's|@''GNULIB_MBSNCASECMP''@|$(GNULIB_MBSNCASECMP)|g' \ -e 's|@''GNULIB_MBSPCASECMP''@|$(GNULIB_MBSPCASECMP)|g' \ -e 's|@''GNULIB_MBSCASESTR''@|$(GNULIB_MBSCASESTR)|g' \ -e 's|@''GNULIB_MBSCSPN''@|$(GNULIB_MBSCSPN)|g' \ -e 's|@''GNULIB_MBSPBRK''@|$(GNULIB_MBSPBRK)|g' \ -e 's|@''GNULIB_MBSSPN''@|$(GNULIB_MBSSPN)|g' \ -e 's|@''GNULIB_MBSSEP''@|$(GNULIB_MBSSEP)|g' \ -e 's|@''GNULIB_MBSTOK_R''@|$(GNULIB_MBSTOK_R)|g' \ -e 's|@''GNULIB_MEMMEM''@|$(GNULIB_MEMMEM)|g' \ -e 's|@''GNULIB_MEMPCPY''@|$(GNULIB_MEMPCPY)|g' \ -e 's|@''GNULIB_MEMRCHR''@|$(GNULIB_MEMRCHR)|g' \ -e 's|@''GNULIB_STPCPY''@|$(GNULIB_STPCPY)|g' \ -e 's|@''GNULIB_STPNCPY''@|$(GNULIB_STPNCPY)|g' \ -e 's|@''GNULIB_STRCHRNUL''@|$(GNULIB_STRCHRNUL)|g' \ -e 's|@''GNULIB_STRDUP''@|$(GNULIB_STRDUP)|g' \ -e 's|@''GNULIB_STRNDUP''@|$(GNULIB_STRNDUP)|g' \ -e 's|@''GNULIB_STRNLEN''@|$(GNULIB_STRNLEN)|g' \ -e 's|@''GNULIB_STRPBRK''@|$(GNULIB_STRPBRK)|g' \ -e 's|@''GNULIB_STRSEP''@|$(GNULIB_STRSEP)|g' \ -e 's|@''GNULIB_STRCASESTR''@|$(GNULIB_STRCASESTR)|g' \ -e 's|@''GNULIB_STRTOK_R''@|$(GNULIB_STRTOK_R)|g' \ -e 's|@''GNULIB_STRERROR''@|$(GNULIB_STRERROR)|g' \ -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \ -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \ -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \ -e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \ -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \ -e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \ -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \ -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \ -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \ -e 's|@''HAVE_STRNDUP''@|$(HAVE_STRNDUP)|g' \ -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \ -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \ -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \ -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \ -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \ -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \ -e 's|@''HAVE_DECL_STRERROR''@|$(HAVE_DECL_STRERROR)|g' \ -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \ -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ < $(srcdir)/string.in.h; \ } > $@-t mv $@-t $@ MOSTLYCLEANFILES += string.h string.h-t EXTRA_DIST += string.in.h ## end gnulib module string ## begin gnulib module strnlen EXTRA_DIST += strnlen.c EXTRA_libgnu_a_SOURCES += strnlen.c ## end gnulib module strnlen ## begin gnulib module strnlen1 libgnu_a_SOURCES += strnlen1.h strnlen1.c ## end gnulib module strnlen1 ## begin gnulib module time BUILT_SOURCES += time.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. time.h: time.in.h rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ -e 's|@NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \ -e 's|@REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \ -e 's|@REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \ -e 's|@REPLACE_STRPTIME''@|$(REPLACE_STRPTIME)|g' \ -e 's|@REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \ -e 's|@SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ -e 's|@TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ < $(srcdir)/time.in.h; \ } > $@-t mv $@-t $@ MOSTLYCLEANFILES += time.h time.h-t EXTRA_DIST += time.in.h ## end gnulib module time ## begin gnulib module timespec EXTRA_DIST += timespec.h ## end gnulib module timespec ## begin gnulib module unistd BUILT_SOURCES += unistd.h # We need the following in order to create an empty placeholder for # when the system doesn't have one. unistd.h: unistd.in.h rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \ -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \ -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \ -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \ -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \ -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \ -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \ -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \ -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \ -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \ -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \ -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \ -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \ -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \ -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \ -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \ -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \ -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \ -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \ -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \ -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \ -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \ < $(srcdir)/unistd.in.h; \ } > $@-t mv $@-t $@ MOSTLYCLEANFILES += unistd.h unistd.h-t EXTRA_DIST += unistd.in.h ## end gnulib module unistd ## begin gnulib module unitypes EXTRA_DIST += unitypes.h ## end gnulib module unitypes ## begin gnulib module uniwidth/base EXTRA_DIST += localcharset.h uniwidth.h ## end gnulib module uniwidth/base ## begin gnulib module uniwidth/width libgnu_a_SOURCES += uniwidth/width.c EXTRA_DIST += uniwidth/cjk.h ## end gnulib module uniwidth/width ## begin gnulib module verify libgnu_a_SOURCES += verify.h ## end gnulib module verify ## begin gnulib module wchar BUILT_SOURCES += $(WCHAR_H) # We need the following in order to create when the system # version does not work standalone. wchar.h: wchar.in.h rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ -e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \ -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \ -e 's|@''GNULIB_WCWIDTH''@|$(GNULIB_WCWIDTH)|g' \ -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \ -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \ -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ < $(srcdir)/wchar.in.h; \ } > $@-t mv $@-t $@ MOSTLYCLEANFILES += wchar.h wchar.h-t EXTRA_DIST += wchar.in.h ## end gnulib module wchar ## begin gnulib module wctype BUILT_SOURCES += $(WCTYPE_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. wctype.h: wctype.in.h rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE_WCTYPE_H''@/$(HAVE_WCTYPE_H)/g' \ -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ -e 's|@''NEXT_WCTYPE_H''@|$(NEXT_WCTYPE_H)|g' \ -e 's/@''HAVE_ISWCNTRL''@/$(HAVE_ISWCNTRL)/g' \ -e 's/@''HAVE_WINT_T''@/$(HAVE_WINT_T)/g' \ < $(srcdir)/wctype.in.h; \ } > $@-t mv $@-t $@ MOSTLYCLEANFILES += wctype.h wctype.h-t EXTRA_DIST += wctype.in.h ## end gnulib module wctype ## begin gnulib module wcwidth EXTRA_DIST += wcwidth.c EXTRA_libgnu_a_SOURCES += wcwidth.c ## end gnulib module wcwidth ## begin gnulib module xalloc EXTRA_DIST += xalloc.h xmalloc.c EXTRA_libgnu_a_SOURCES += xmalloc.c ## end gnulib module xalloc ## begin gnulib module xalloc-die libgnu_a_SOURCES += xalloc-die.c ## end gnulib module xalloc-die mostlyclean-local: mostlyclean-generic @for dir in '' $(MOSTLYCLEANDIRS); do \ if test -n "$$dir" && test -d $$dir; then \ echo "rmdir $$dir"; rmdir $$dir; \ fi; \ done; \ : mlocate-0.26/gnulib/lib/config.charset0000775000175000017500000004677211353206451014701 00000000000000#! /bin/sh # Output a system dependent table of character encoding aliases. # # Copyright (C) 2000-2004, 2006 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, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # The table consists of lines of the form # ALIAS CANONICAL # # ALIAS is the (system dependent) result of "nl_langinfo (CODESET)". # ALIAS is compared in a case sensitive way. # # CANONICAL is the GNU canonical name for this character encoding. # It must be an encoding supported by libiconv. Support by GNU libc is # also desirable. CANONICAL is case insensitive. Usually an upper case # MIME charset name is preferred. # The current list of GNU canonical charset names is as follows. # # name MIME? used by which systems # ASCII, ANSI_X3.4-1968 glibc solaris freebsd netbsd darwin # ISO-8859-1 Y glibc aix hpux irix osf solaris freebsd netbsd darwin # ISO-8859-2 Y glibc aix hpux irix osf solaris freebsd netbsd darwin # ISO-8859-3 Y glibc solaris # ISO-8859-4 Y osf solaris freebsd netbsd darwin # ISO-8859-5 Y glibc aix hpux irix osf solaris freebsd netbsd darwin # ISO-8859-6 Y glibc aix hpux solaris # ISO-8859-7 Y glibc aix hpux irix osf solaris netbsd darwin # ISO-8859-8 Y glibc aix hpux osf solaris # ISO-8859-9 Y glibc aix hpux irix osf solaris darwin # ISO-8859-13 glibc netbsd darwin # ISO-8859-14 glibc # ISO-8859-15 glibc aix osf solaris freebsd darwin # KOI8-R Y glibc solaris freebsd netbsd darwin # KOI8-U Y glibc freebsd netbsd darwin # KOI8-T glibc # CP437 dos # CP775 dos # CP850 aix osf dos # CP852 dos # CP855 dos # CP856 aix # CP857 dos # CP861 dos # CP862 dos # CP864 dos # CP865 dos # CP866 freebsd netbsd darwin dos # CP869 dos # CP874 woe32 dos # CP922 aix # CP932 aix woe32 dos # CP943 aix # CP949 osf woe32 dos # CP950 woe32 dos # CP1046 aix # CP1124 aix # CP1125 dos # CP1129 aix # CP1250 woe32 # CP1251 glibc solaris netbsd darwin woe32 # CP1252 aix woe32 # CP1253 woe32 # CP1254 woe32 # CP1255 glibc woe32 # CP1256 woe32 # CP1257 woe32 # GB2312 Y glibc aix hpux irix solaris freebsd netbsd darwin # EUC-JP Y glibc aix hpux irix osf solaris freebsd netbsd darwin # EUC-KR Y glibc aix hpux irix osf solaris freebsd netbsd darwin # EUC-TW glibc aix hpux irix osf solaris netbsd # BIG5 Y glibc aix hpux osf solaris freebsd netbsd darwin # BIG5-HKSCS glibc solaris # GBK glibc aix osf solaris woe32 dos # GB18030 glibc solaris netbsd # SHIFT_JIS Y hpux osf solaris freebsd netbsd darwin # JOHAB glibc solaris woe32 # TIS-620 glibc aix hpux osf solaris # VISCII Y glibc # TCVN5712-1 glibc # GEORGIAN-PS glibc # HP-ROMAN8 hpux # HP-ARABIC8 hpux # HP-GREEK8 hpux # HP-HEBREW8 hpux # HP-TURKISH8 hpux # HP-KANA8 hpux # DEC-KANJI osf # DEC-HANYU osf # UTF-8 Y glibc aix hpux osf solaris netbsd darwin # # Note: Names which are not marked as being a MIME name should not be used in # Internet protocols for information interchange (mail, news, etc.). # # Note: ASCII and ANSI_X3.4-1968 are synonymous canonical names. Applications # must understand both names and treat them as equivalent. # # The first argument passed to this file is the canonical host specification, # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM host="$1" os=`echo "$host" | sed -e 's/^[^-]*-[^-]*-\(.*\)$/\1/'` echo "# This file contains a table of character encoding aliases," echo "# suitable for operating system '${os}'." echo "# It was automatically generated from config.charset." # List of references, updated during installation: echo "# Packages using this file: " case "$os" in linux-gnulibc1*) # Linux libc5 doesn't have nl_langinfo(CODESET); therefore # localcharset.c falls back to using the full locale name # from the environment variables. echo "C ASCII" echo "POSIX ASCII" for l in af af_ZA ca ca_ES da da_DK de de_AT de_BE de_CH de_DE de_LU \ en en_AU en_BW en_CA en_DK en_GB en_IE en_NZ en_US en_ZA \ en_ZW es es_AR es_BO es_CL es_CO es_DO es_EC es_ES es_GT \ es_HN es_MX es_PA es_PE es_PY es_SV es_US es_UY es_VE et \ et_EE eu eu_ES fi fi_FI fo fo_FO fr fr_BE fr_CA fr_CH fr_FR \ fr_LU ga ga_IE gl gl_ES id id_ID in in_ID is is_IS it it_CH \ it_IT kl kl_GL nl nl_BE nl_NL no no_NO pt pt_BR pt_PT sv \ sv_FI sv_SE; do echo "$l ISO-8859-1" echo "$l.iso-8859-1 ISO-8859-1" echo "$l.iso-8859-15 ISO-8859-15" echo "$l.iso-8859-15@euro ISO-8859-15" echo "$l@euro ISO-8859-15" echo "$l.cp-437 CP437" echo "$l.cp-850 CP850" echo "$l.cp-1252 CP1252" echo "$l.cp-1252@euro CP1252" #echo "$l.atari-st ATARI-ST" # not a commonly used encoding echo "$l.utf-8 UTF-8" echo "$l.utf-8@euro UTF-8" done for l in cs cs_CZ hr hr_HR hu hu_HU pl pl_PL ro ro_RO sk sk_SK sl \ sl_SI sr sr_CS sr_YU; do echo "$l ISO-8859-2" echo "$l.iso-8859-2 ISO-8859-2" echo "$l.cp-852 CP852" echo "$l.cp-1250 CP1250" echo "$l.utf-8 UTF-8" done for l in mk mk_MK ru ru_RU; do echo "$l ISO-8859-5" echo "$l.iso-8859-5 ISO-8859-5" echo "$l.koi8-r KOI8-R" echo "$l.cp-866 CP866" echo "$l.cp-1251 CP1251" echo "$l.utf-8 UTF-8" done for l in ar ar_SA; do echo "$l ISO-8859-6" echo "$l.iso-8859-6 ISO-8859-6" echo "$l.cp-864 CP864" #echo "$l.cp-868 CP868" # not a commonly used encoding echo "$l.cp-1256 CP1256" echo "$l.utf-8 UTF-8" done for l in el el_GR gr gr_GR; do echo "$l ISO-8859-7" echo "$l.iso-8859-7 ISO-8859-7" echo "$l.cp-869 CP869" echo "$l.cp-1253 CP1253" echo "$l.cp-1253@euro CP1253" echo "$l.utf-8 UTF-8" echo "$l.utf-8@euro UTF-8" done for l in he he_IL iw iw_IL; do echo "$l ISO-8859-8" echo "$l.iso-8859-8 ISO-8859-8" echo "$l.cp-862 CP862" echo "$l.cp-1255 CP1255" echo "$l.utf-8 UTF-8" done for l in tr tr_TR; do echo "$l ISO-8859-9" echo "$l.iso-8859-9 ISO-8859-9" echo "$l.cp-857 CP857" echo "$l.cp-1254 CP1254" echo "$l.utf-8 UTF-8" done for l in lt lt_LT lv lv_LV; do #echo "$l BALTIC" # not a commonly used encoding, wrong encoding name echo "$l ISO-8859-13" done for l in ru_UA uk uk_UA; do echo "$l KOI8-U" done for l in zh zh_CN; do #echo "$l GB_2312-80" # not a commonly used encoding, wrong encoding name echo "$l GB2312" done for l in ja ja_JP ja_JP.EUC; do echo "$l EUC-JP" done for l in ko ko_KR; do echo "$l EUC-KR" done for l in th th_TH; do echo "$l TIS-620" done for l in fa fa_IR; do #echo "$l ISIRI-3342" # a broken encoding echo "$l.utf-8 UTF-8" done ;; linux* | *-gnu*) # With glibc-2.1 or newer, we don't need any canonicalization, # because glibc has iconv and both glibc and libiconv support all # GNU canonical names directly. Therefore, the Makefile does not # need to install the alias file at all. # The following applies only to glibc-2.0.x and older libcs. echo "ISO_646.IRV:1983 ASCII" ;; aix*) echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-6 ISO-8859-6" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-8 ISO-8859-8" echo "ISO8859-9 ISO-8859-9" echo "ISO8859-15 ISO-8859-15" echo "IBM-850 CP850" echo "IBM-856 CP856" echo "IBM-921 ISO-8859-13" echo "IBM-922 CP922" echo "IBM-932 CP932" echo "IBM-943 CP943" echo "IBM-1046 CP1046" echo "IBM-1124 CP1124" echo "IBM-1129 CP1129" echo "IBM-1252 CP1252" echo "IBM-eucCN GB2312" echo "IBM-eucJP EUC-JP" echo "IBM-eucKR EUC-KR" echo "IBM-eucTW EUC-TW" echo "big5 BIG5" echo "GBK GBK" echo "TIS-620 TIS-620" echo "UTF-8 UTF-8" ;; hpux*) echo "iso88591 ISO-8859-1" echo "iso88592 ISO-8859-2" echo "iso88595 ISO-8859-5" echo "iso88596 ISO-8859-6" echo "iso88597 ISO-8859-7" echo "iso88598 ISO-8859-8" echo "iso88599 ISO-8859-9" echo "iso885915 ISO-8859-15" echo "roman8 HP-ROMAN8" echo "arabic8 HP-ARABIC8" echo "greek8 HP-GREEK8" echo "hebrew8 HP-HEBREW8" echo "turkish8 HP-TURKISH8" echo "kana8 HP-KANA8" echo "tis620 TIS-620" echo "big5 BIG5" echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "eucTW EUC-TW" echo "hp15CN GB2312" #echo "ccdc ?" # what is this? echo "SJIS SHIFT_JIS" echo "utf8 UTF-8" ;; irix*) echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-9 ISO-8859-9" echo "eucCN GB2312" echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "eucTW EUC-TW" ;; osf*) echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-4 ISO-8859-4" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-8 ISO-8859-8" echo "ISO8859-9 ISO-8859-9" echo "ISO8859-15 ISO-8859-15" echo "cp850 CP850" echo "big5 BIG5" echo "dechanyu DEC-HANYU" echo "dechanzi GB2312" echo "deckanji DEC-KANJI" echo "deckorean EUC-KR" echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "eucTW EUC-TW" echo "GBK GBK" echo "KSC5601 CP949" echo "sdeckanji EUC-JP" echo "SJIS SHIFT_JIS" echo "TACTIS TIS-620" echo "UTF-8 UTF-8" ;; solaris*) echo "646 ASCII" echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-3 ISO-8859-3" echo "ISO8859-4 ISO-8859-4" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-6 ISO-8859-6" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-8 ISO-8859-8" echo "ISO8859-9 ISO-8859-9" echo "ISO8859-15 ISO-8859-15" echo "koi8-r KOI8-R" echo "ansi-1251 CP1251" echo "BIG5 BIG5" echo "Big5-HKSCS BIG5-HKSCS" echo "gb2312 GB2312" echo "GBK GBK" echo "GB18030 GB18030" echo "cns11643 EUC-TW" echo "5601 EUC-KR" echo "ko_KR.johap92 JOHAB" echo "eucJP EUC-JP" echo "PCK SHIFT_JIS" echo "TIS620.2533 TIS-620" #echo "sun_eu_greek ?" # what is this? echo "UTF-8 UTF-8" ;; freebsd* | os2*) # FreeBSD 4.2 doesn't have nl_langinfo(CODESET); therefore # localcharset.c falls back to using the full locale name # from the environment variables. # Likewise for OS/2. OS/2 has XFree86 just like FreeBSD. Just # reuse FreeBSD's locale data for OS/2. echo "C ASCII" echo "US-ASCII ASCII" for l in la_LN lt_LN; do echo "$l.ASCII ASCII" done for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT la_LN \ lt_LN nl_BE nl_NL no_NO pt_PT sv_SE; do echo "$l.ISO_8859-1 ISO-8859-1" echo "$l.DIS_8859-15 ISO-8859-15" done for l in cs_CZ hr_HR hu_HU la_LN lt_LN pl_PL sl_SI; do echo "$l.ISO_8859-2 ISO-8859-2" done for l in la_LN lt_LT; do echo "$l.ISO_8859-4 ISO-8859-4" done for l in ru_RU ru_SU; do echo "$l.KOI8-R KOI8-R" echo "$l.ISO_8859-5 ISO-8859-5" echo "$l.CP866 CP866" done echo "uk_UA.KOI8-U KOI8-U" echo "zh_TW.BIG5 BIG5" echo "zh_TW.Big5 BIG5" echo "zh_CN.EUC GB2312" echo "ja_JP.EUC EUC-JP" echo "ja_JP.SJIS SHIFT_JIS" echo "ja_JP.Shift_JIS SHIFT_JIS" echo "ko_KR.EUC EUC-KR" ;; netbsd*) echo "646 ASCII" echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-4 ISO-8859-4" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-13 ISO-8859-13" echo "ISO8859-15 ISO-8859-15" echo "eucCN GB2312" echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "eucTW EUC-TW" echo "BIG5 BIG5" echo "SJIS SHIFT_JIS" ;; darwin[56]*) # Darwin 6.8 doesn't have nl_langinfo(CODESET); therefore # localcharset.c falls back to using the full locale name # from the environment variables. echo "C ASCII" for l in en_AU en_CA en_GB en_US la_LN; do echo "$l.US-ASCII ASCII" done for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE \ nl_NL no_NO pt_PT sv_SE; do echo "$l ISO-8859-1" echo "$l.ISO8859-1 ISO-8859-1" echo "$l.ISO8859-15 ISO-8859-15" done for l in la_LN; do echo "$l.ISO8859-1 ISO-8859-1" echo "$l.ISO8859-15 ISO-8859-15" done for l in cs_CZ hr_HR hu_HU la_LN pl_PL sl_SI; do echo "$l.ISO8859-2 ISO-8859-2" done for l in la_LN lt_LT; do echo "$l.ISO8859-4 ISO-8859-4" done for l in ru_RU; do echo "$l.KOI8-R KOI8-R" echo "$l.ISO8859-5 ISO-8859-5" echo "$l.CP866 CP866" done for l in bg_BG; do echo "$l.CP1251 CP1251" done echo "uk_UA.KOI8-U KOI8-U" echo "zh_TW.BIG5 BIG5" echo "zh_TW.Big5 BIG5" echo "zh_CN.EUC GB2312" echo "ja_JP.EUC EUC-JP" echo "ja_JP.SJIS SHIFT_JIS" echo "ko_KR.EUC EUC-KR" ;; darwin*) # Darwin 7.5 has nl_langinfo(CODESET), but it is useless: # - It returns the empty string when LANG is set to a locale of the # form ll_CC, although ll_CC/LC_CTYPE is a symlink to an UTF-8 # LC_CTYPE file. # - The environment variables LANG, LC_CTYPE, LC_ALL are not set by # the system; nl_langinfo(CODESET) returns "US-ASCII" in this case. # - The documentation says: # "... all code that calls BSD system routines should ensure # that the const *char parameters of these routines are in UTF-8 # encoding. All BSD system functions expect their string # parameters to be in UTF-8 encoding and nothing else." # It also says # "An additional caveat is that string parameters for files, # paths, and other file-system entities must be in canonical # UTF-8. In a canonical UTF-8 Unicode string, all decomposable # characters are decomposed ..." # but this is not true: You can pass non-decomposed UTF-8 strings # to file system functions, and it is the OS which will convert # them to decomposed UTF-8 before accessing the file system. # - The Apple Terminal application displays UTF-8 by default. # - However, other applications are free to use different encodings: # - xterm uses ISO-8859-1 by default. # - TextEdit uses MacRoman by default. # We prefer UTF-8 over decomposed UTF-8-MAC because one should # minimize the use of decomposed Unicode. Unfortunately, through the # Darwin file system, decomposed UTF-8 strings are leaked into user # space nevertheless. echo "* UTF-8" ;; beos*) # BeOS has a single locale, and it has UTF-8 encoding. echo "* UTF-8" ;; msdosdjgpp*) # DJGPP 2.03 doesn't have nl_langinfo(CODESET); therefore # localcharset.c falls back to using the full locale name # from the environment variables. echo "#" echo "# The encodings given here may not all be correct." echo "# If you find that the encoding given for your language and" echo "# country is not the one your DOS machine actually uses, just" echo "# correct it in this file, and send a mail to" echo "# Juan Manuel Guerrero " echo "# and Bruno Haible ." echo "#" echo "C ASCII" # ISO-8859-1 languages echo "ca CP850" echo "ca_ES CP850" echo "da CP865" # not CP850 ?? echo "da_DK CP865" # not CP850 ?? echo "de CP850" echo "de_AT CP850" echo "de_CH CP850" echo "de_DE CP850" echo "en CP850" echo "en_AU CP850" # not CP437 ?? echo "en_CA CP850" echo "en_GB CP850" echo "en_NZ CP437" echo "en_US CP437" echo "en_ZA CP850" # not CP437 ?? echo "es CP850" echo "es_AR CP850" echo "es_BO CP850" echo "es_CL CP850" echo "es_CO CP850" echo "es_CR CP850" echo "es_CU CP850" echo "es_DO CP850" echo "es_EC CP850" echo "es_ES CP850" echo "es_GT CP850" echo "es_HN CP850" echo "es_MX CP850" echo "es_NI CP850" echo "es_PA CP850" echo "es_PY CP850" echo "es_PE CP850" echo "es_SV CP850" echo "es_UY CP850" echo "es_VE CP850" echo "et CP850" echo "et_EE CP850" echo "eu CP850" echo "eu_ES CP850" echo "fi CP850" echo "fi_FI CP850" echo "fr CP850" echo "fr_BE CP850" echo "fr_CA CP850" echo "fr_CH CP850" echo "fr_FR CP850" echo "ga CP850" echo "ga_IE CP850" echo "gd CP850" echo "gd_GB CP850" echo "gl CP850" echo "gl_ES CP850" echo "id CP850" # not CP437 ?? echo "id_ID CP850" # not CP437 ?? echo "is CP861" # not CP850 ?? echo "is_IS CP861" # not CP850 ?? echo "it CP850" echo "it_CH CP850" echo "it_IT CP850" echo "lt CP775" echo "lt_LT CP775" echo "lv CP775" echo "lv_LV CP775" echo "nb CP865" # not CP850 ?? echo "nb_NO CP865" # not CP850 ?? echo "nl CP850" echo "nl_BE CP850" echo "nl_NL CP850" echo "nn CP865" # not CP850 ?? echo "nn_NO CP865" # not CP850 ?? echo "no CP865" # not CP850 ?? echo "no_NO CP865" # not CP850 ?? echo "pt CP850" echo "pt_BR CP850" echo "pt_PT CP850" echo "sv CP850" echo "sv_SE CP850" # ISO-8859-2 languages echo "cs CP852" echo "cs_CZ CP852" echo "hr CP852" echo "hr_HR CP852" echo "hu CP852" echo "hu_HU CP852" echo "pl CP852" echo "pl_PL CP852" echo "ro CP852" echo "ro_RO CP852" echo "sk CP852" echo "sk_SK CP852" echo "sl CP852" echo "sl_SI CP852" echo "sq CP852" echo "sq_AL CP852" echo "sr CP852" # CP852 or CP866 or CP855 ?? echo "sr_CS CP852" # CP852 or CP866 or CP855 ?? echo "sr_YU CP852" # CP852 or CP866 or CP855 ?? # ISO-8859-3 languages echo "mt CP850" echo "mt_MT CP850" # ISO-8859-5 languages echo "be CP866" echo "be_BE CP866" echo "bg CP866" # not CP855 ?? echo "bg_BG CP866" # not CP855 ?? echo "mk CP866" # not CP855 ?? echo "mk_MK CP866" # not CP855 ?? echo "ru CP866" echo "ru_RU CP866" echo "uk CP1125" echo "uk_UA CP1125" # ISO-8859-6 languages echo "ar CP864" echo "ar_AE CP864" echo "ar_DZ CP864" echo "ar_EG CP864" echo "ar_IQ CP864" echo "ar_IR CP864" echo "ar_JO CP864" echo "ar_KW CP864" echo "ar_MA CP864" echo "ar_OM CP864" echo "ar_QA CP864" echo "ar_SA CP864" echo "ar_SY CP864" # ISO-8859-7 languages echo "el CP869" echo "el_GR CP869" # ISO-8859-8 languages echo "he CP862" echo "he_IL CP862" # ISO-8859-9 languages echo "tr CP857" echo "tr_TR CP857" # Japanese echo "ja CP932" echo "ja_JP CP932" # Chinese echo "zh_CN GBK" echo "zh_TW CP950" # not CP938 ?? # Korean echo "kr CP949" # not CP934 ?? echo "kr_KR CP949" # not CP934 ?? # Thai echo "th CP874" echo "th_TH CP874" # Other echo "eo CP850" echo "eo_EO CP850" ;; esac mlocate-0.26/gnulib/lib/stdlib.in.h0000664000175000017500000001257511353206451014107 00000000000000/* A GNU-like . Copyright (C) 1995, 2001-2002, 2006-2007 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #if defined __need_malloc_and_calloc /* Special invocation convention inside glibc header files. */ #@INCLUDE_NEXT@ @NEXT_STDLIB_H@ #else /* Normal invocation convention. */ #ifndef _GL_STDLIB_H /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_STDLIB_H@ #ifndef _GL_STDLIB_H #define _GL_STDLIB_H /* The definition of GL_LINK_WARNING is copied here. */ /* Some systems do not define EXIT_*, despite otherwise supporting C89. */ #ifndef EXIT_SUCCESS # define EXIT_SUCCESS 0 #endif /* Tandem/NSK and other platforms that define EXIT_FAILURE as -1 interfere with proper operation of xargs. */ #ifndef EXIT_FAILURE # define EXIT_FAILURE 1 #elif EXIT_FAILURE != 1 # undef EXIT_FAILURE # define EXIT_FAILURE 1 #endif #ifdef __cplusplus extern "C" { #endif #if @GNULIB_MALLOC_POSIX@ # if !@HAVE_MALLOC_POSIX@ # undef malloc # define malloc rpl_malloc extern void * malloc (size_t size); # endif #elif defined GNULIB_POSIXCHECK # undef malloc # define malloc(s) \ (GL_LINK_WARNING ("malloc is not POSIX compliant everywhere - " \ "use gnulib module malloc-posix for portability"), \ malloc (s)) #endif #if @GNULIB_REALLOC_POSIX@ # if !@HAVE_REALLOC_POSIX@ # undef realloc # define realloc rpl_realloc extern void * realloc (void *ptr, size_t size); # endif #elif defined GNULIB_POSIXCHECK # undef realloc # define realloc(p,s) \ (GL_LINK_WARNING ("realloc is not POSIX compliant everywhere - " \ "use gnulib module realloc-posix for portability"), \ realloc (p, s)) #endif #if @GNULIB_CALLOC_POSIX@ # if !@HAVE_CALLOC_POSIX@ # undef calloc # define calloc rpl_calloc extern void * calloc (size_t nmemb, size_t size); # endif #elif defined GNULIB_POSIXCHECK # undef calloc # define calloc(n,s) \ (GL_LINK_WARNING ("calloc is not POSIX compliant everywhere - " \ "use gnulib module calloc-posix for portability"), \ calloc (n, s)) #endif #if @GNULIB_GETSUBOPT@ /* Assuming *OPTIONP is a comma separated list of elements of the form "token" or "token=value", getsubopt parses the first of these elements. If the first element refers to a "token" that is member of the given NULL-terminated array of tokens: - It replaces the comma with a NUL byte, updates *OPTIONP to point past the first option and the comma, sets *VALUEP to the value of the element (or NULL if it doesn't contain an "=" sign), - It returns the index of the "token" in the given array of tokens. Otherwise it returns -1, and *OPTIONP and *VALUEP are undefined. For more details see the POSIX:2001 specification. http://www.opengroup.org/susv3xsh/getsubopt.html */ # if !@HAVE_GETSUBOPT@ extern int getsubopt (char **optionp, char *const *tokens, char **valuep); # endif #elif defined GNULIB_POSIXCHECK # undef getsubopt # define getsubopt(o,t,v) \ (GL_LINK_WARNING ("getsubopt is unportable - " \ "use gnulib module getsubopt for portability"), \ getsubopt (o, t, v)) #endif #if @GNULIB_MKDTEMP@ # if !@HAVE_MKDTEMP@ /* Create a unique temporary directory from TEMPLATE. The last six characters of TEMPLATE must be "XXXXXX"; they are replaced with a string that makes the directory name unique. Returns TEMPLATE, or a null pointer if it cannot get a unique name. The directory is created mode 700. */ extern char * mkdtemp (char * /*template*/); # endif #elif defined GNULIB_POSIXCHECK # undef mkdtemp # define mkdtemp(t) \ (GL_LINK_WARNING ("mkdtemp is unportable - " \ "use gnulib module mkdtemp for portability"), \ mkdtemp (t)) #endif #if @GNULIB_MKSTEMP@ # if @REPLACE_MKSTEMP@ /* Create a unique temporary file from TEMPLATE. The last six characters of TEMPLATE must be "XXXXXX"; they are replaced with a string that makes the file name unique. The file is then created, ensuring it didn't exist before. The file is created read-write (mask at least 0600 & ~umask), but it may be world-readable and world-writable (mask 0666 & ~umask), depending on the implementation. Returns the open file descriptor if successful, otherwise -1 and errno set. */ # define mkstemp rpl_mkstemp extern int mkstemp (char * /*template*/); # else /* On MacOS X 10.3, only declares mkstemp. */ # include # endif #elif defined GNULIB_POSIXCHECK # undef mkstemp # define mkstemp(t) \ (GL_LINK_WARNING ("mkstemp is unportable - " \ "use gnulib module mkstemp for portability"), \ mkstemp (t)) #endif #ifdef __cplusplus } #endif #endif /* _GL_STDLIB_H */ #endif /* _GL_STDLIB_H */ #endif mlocate-0.26/gnulib/lib/alloca.in.h0000664000175000017500000000345111353206451014052 00000000000000/* Memory allocation on the stack. Copyright (C) 1995, 1999, 2001-2004, 2006-2007 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Avoid using the symbol _ALLOCA_H here, as Bison assumes _ALLOCA_H means there is a real alloca function. */ #ifndef _GL_ALLOCA_H #define _GL_ALLOCA_H /* alloca (N) returns a pointer to N bytes of memory allocated on the stack, which will last until the function returns. Use of alloca should be avoided: - inside arguments of function calls - undefined behaviour, - in inline functions - the allocation may actually last until the calling function returns, - for huge N (say, N >= 65536) - you never know how large (or small) the stack is, and when the stack cannot fulfill the memory allocation request, the program just crashes. */ #ifndef alloca # ifdef __GNUC__ # define alloca __builtin_alloca # elif defined _AIX # define alloca __alloca # elif defined _MSC_VER # include # define alloca _alloca # else # include # ifdef __cplusplus extern "C" # endif void *alloca (size_t); # endif #endif #endif /* _GL_ALLOCA_H */ mlocate-0.26/gnulib/lib/alloca.c0000664000175000017500000003320411353206451013437 00000000000000/* alloca.c -- allocate automatically reclaimed memory (Mostly) portable public-domain implementation -- D A Gwyn This implementation of the PWB library alloca function, which is used to allocate space off the run-time stack so that it is automatically reclaimed upon procedure exit, was inspired by discussions with J. Q. Johnson of Cornell. J.Otto Tennant contributed the Cray support. There are some preprocessor constants that can be defined when compiling for your specific system, for improved efficiency; however, the defaults should be okay. The general concept of this implementation is to keep track of all alloca-allocated blocks, and reclaim any that are found to be deeper in the stack than the current invocation. This heuristic does not reclaim storage as soon as it becomes invalid, but it will do so eventually. As a special case, alloca(0) reclaims storage without allocating any. It is a good idea to use alloca(0) in your main control loop, etc. to force garbage collection. */ #include #include #include #include #ifdef emacs # include "lisp.h" # include "blockinput.h" # ifdef EMACS_FREE # undef free # define free EMACS_FREE # endif #else # define memory_full() abort () #endif /* If compiling with GCC 2, this file's not needed. */ #if !defined (__GNUC__) || __GNUC__ < 2 /* If someone has defined alloca as a macro, there must be some other way alloca is supposed to work. */ # ifndef alloca # ifdef emacs # ifdef static /* actually, only want this if static is defined as "" -- this is for usg, in which emacs must undefine static in order to make unexec workable */ # ifndef STACK_DIRECTION you lose -- must know STACK_DIRECTION at compile-time /* Using #error here is not wise since this file should work for old and obscure compilers. */ # endif /* STACK_DIRECTION undefined */ # endif /* static */ # endif /* emacs */ /* If your stack is a linked list of frames, you have to provide an "address metric" ADDRESS_FUNCTION macro. */ # if defined (CRAY) && defined (CRAY_STACKSEG_END) long i00afunc (); # define ADDRESS_FUNCTION(arg) (char *) i00afunc (&(arg)) # else # define ADDRESS_FUNCTION(arg) &(arg) # endif /* Define STACK_DIRECTION if you know the direction of stack growth for your system; otherwise it will be automatically deduced at run-time. STACK_DIRECTION > 0 => grows toward higher addresses STACK_DIRECTION < 0 => grows toward lower addresses STACK_DIRECTION = 0 => direction of growth unknown */ # ifndef STACK_DIRECTION # define STACK_DIRECTION 0 /* Direction unknown. */ # endif # if STACK_DIRECTION != 0 # define STACK_DIR STACK_DIRECTION /* Known at compile-time. */ # else /* STACK_DIRECTION == 0; need run-time code. */ static int stack_dir; /* 1 or -1 once known. */ # define STACK_DIR stack_dir static void find_stack_direction (void) { static char *addr = NULL; /* Address of first `dummy', once known. */ auto char dummy; /* To get stack address. */ if (addr == NULL) { /* Initial entry. */ addr = ADDRESS_FUNCTION (dummy); find_stack_direction (); /* Recurse once. */ } else { /* Second entry. */ if (ADDRESS_FUNCTION (dummy) > addr) stack_dir = 1; /* Stack grew upward. */ else stack_dir = -1; /* Stack grew downward. */ } } # endif /* STACK_DIRECTION == 0 */ /* An "alloca header" is used to: (a) chain together all alloca'ed blocks; (b) keep track of stack depth. It is very important that sizeof(header) agree with malloc alignment chunk size. The following default should work okay. */ # ifndef ALIGN_SIZE # define ALIGN_SIZE sizeof(double) # endif typedef union hdr { char align[ALIGN_SIZE]; /* To force sizeof(header). */ struct { union hdr *next; /* For chaining headers. */ char *deep; /* For stack depth measure. */ } h; } header; static header *last_alloca_header = NULL; /* -> last alloca header. */ /* Return a pointer to at least SIZE bytes of storage, which will be automatically reclaimed upon exit from the procedure that called alloca. Originally, this space was supposed to be taken from the current stack frame of the caller, but that method cannot be made to work for some implementations of C, for example under Gould's UTX/32. */ void * alloca (size_t size) { auto char probe; /* Probes stack depth: */ register char *depth = ADDRESS_FUNCTION (probe); # if STACK_DIRECTION == 0 if (STACK_DIR == 0) /* Unknown growth direction. */ find_stack_direction (); # endif /* Reclaim garbage, defined as all alloca'd storage that was allocated from deeper in the stack than currently. */ { register header *hp; /* Traverses linked list. */ # ifdef emacs BLOCK_INPUT; # endif for (hp = last_alloca_header; hp != NULL;) if ((STACK_DIR > 0 && hp->h.deep > depth) || (STACK_DIR < 0 && hp->h.deep < depth)) { register header *np = hp->h.next; free (hp); /* Collect garbage. */ hp = np; /* -> next header. */ } else break; /* Rest are not deeper. */ last_alloca_header = hp; /* -> last valid storage. */ # ifdef emacs UNBLOCK_INPUT; # endif } if (size == 0) return NULL; /* No allocation required. */ /* Allocate combined header + user data storage. */ { /* Address of header. */ register header *new; size_t combined_size = sizeof (header) + size; if (combined_size < sizeof (header)) memory_full (); new = malloc (combined_size); if (! new) memory_full (); new->h.next = last_alloca_header; new->h.deep = depth; last_alloca_header = new; /* User storage begins just after header. */ return (void *) (new + 1); } } # if defined (CRAY) && defined (CRAY_STACKSEG_END) # ifdef DEBUG_I00AFUNC # include # endif # ifndef CRAY_STACK # define CRAY_STACK # ifndef CRAY2 /* Stack structures for CRAY-1, CRAY X-MP, and CRAY Y-MP */ struct stack_control_header { long shgrow:32; /* Number of times stack has grown. */ long shaseg:32; /* Size of increments to stack. */ long shhwm:32; /* High water mark of stack. */ long shsize:32; /* Current size of stack (all segments). */ }; /* The stack segment linkage control information occurs at the high-address end of a stack segment. (The stack grows from low addresses to high addresses.) The initial part of the stack segment linkage control information is 0200 (octal) words. This provides for register storage for the routine which overflows the stack. */ struct stack_segment_linkage { long ss[0200]; /* 0200 overflow words. */ long sssize:32; /* Number of words in this segment. */ long ssbase:32; /* Offset to stack base. */ long:32; long sspseg:32; /* Offset to linkage control of previous segment of stack. */ long:32; long sstcpt:32; /* Pointer to task common address block. */ long sscsnm; /* Private control structure number for microtasking. */ long ssusr1; /* Reserved for user. */ long ssusr2; /* Reserved for user. */ long sstpid; /* Process ID for pid based multi-tasking. */ long ssgvup; /* Pointer to multitasking thread giveup. */ long sscray[7]; /* Reserved for Cray Research. */ long ssa0; long ssa1; long ssa2; long ssa3; long ssa4; long ssa5; long ssa6; long ssa7; long sss0; long sss1; long sss2; long sss3; long sss4; long sss5; long sss6; long sss7; }; # else /* CRAY2 */ /* The following structure defines the vector of words returned by the STKSTAT library routine. */ struct stk_stat { long now; /* Current total stack size. */ long maxc; /* Amount of contiguous space which would be required to satisfy the maximum stack demand to date. */ long high_water; /* Stack high-water mark. */ long overflows; /* Number of stack overflow ($STKOFEN) calls. */ long hits; /* Number of internal buffer hits. */ long extends; /* Number of block extensions. */ long stko_mallocs; /* Block allocations by $STKOFEN. */ long underflows; /* Number of stack underflow calls ($STKRETN). */ long stko_free; /* Number of deallocations by $STKRETN. */ long stkm_free; /* Number of deallocations by $STKMRET. */ long segments; /* Current number of stack segments. */ long maxs; /* Maximum number of stack segments so far. */ long pad_size; /* Stack pad size. */ long current_address; /* Current stack segment address. */ long current_size; /* Current stack segment size. This number is actually corrupted by STKSTAT to include the fifteen word trailer area. */ long initial_address; /* Address of initial segment. */ long initial_size; /* Size of initial segment. */ }; /* The following structure describes the data structure which trails any stack segment. I think that the description in 'asdef' is out of date. I only describe the parts that I am sure about. */ struct stk_trailer { long this_address; /* Address of this block. */ long this_size; /* Size of this block (does not include this trailer). */ long unknown2; long unknown3; long link; /* Address of trailer block of previous segment. */ long unknown5; long unknown6; long unknown7; long unknown8; long unknown9; long unknown10; long unknown11; long unknown12; long unknown13; long unknown14; }; # endif /* CRAY2 */ # endif /* not CRAY_STACK */ # ifdef CRAY2 /* Determine a "stack measure" for an arbitrary ADDRESS. I doubt that "lint" will like this much. */ static long i00afunc (long *address) { struct stk_stat status; struct stk_trailer *trailer; long *block, size; long result = 0; /* We want to iterate through all of the segments. The first step is to get the stack status structure. We could do this more quickly and more directly, perhaps, by referencing the $LM00 common block, but I know that this works. */ STKSTAT (&status); /* Set up the iteration. */ trailer = (struct stk_trailer *) (status.current_address + status.current_size - 15); /* There must be at least one stack segment. Therefore it is a fatal error if "trailer" is null. */ if (trailer == 0) abort (); /* Discard segments that do not contain our argument address. */ while (trailer != 0) { block = (long *) trailer->this_address; size = trailer->this_size; if (block == 0 || size == 0) abort (); trailer = (struct stk_trailer *) trailer->link; if ((block <= address) && (address < (block + size))) break; } /* Set the result to the offset in this segment and add the sizes of all predecessor segments. */ result = address - block; if (trailer == 0) { return result; } do { if (trailer->this_size <= 0) abort (); result += trailer->this_size; trailer = (struct stk_trailer *) trailer->link; } while (trailer != 0); /* We are done. Note that if you present a bogus address (one not in any segment), you will get a different number back, formed from subtracting the address of the first block. This is probably not what you want. */ return (result); } # else /* not CRAY2 */ /* Stack address function for a CRAY-1, CRAY X-MP, or CRAY Y-MP. Determine the number of the cell within the stack, given the address of the cell. The purpose of this routine is to linearize, in some sense, stack addresses for alloca. */ static long i00afunc (long address) { long stkl = 0; long size, pseg, this_segment, stack; long result = 0; struct stack_segment_linkage *ssptr; /* Register B67 contains the address of the end of the current stack segment. If you (as a subprogram) store your registers on the stack and find that you are past the contents of B67, you have overflowed the segment. B67 also points to the stack segment linkage control area, which is what we are really interested in. */ stkl = CRAY_STACKSEG_END (); ssptr = (struct stack_segment_linkage *) stkl; /* If one subtracts 'size' from the end of the segment, one has the address of the first word of the segment. If this is not the first segment, 'pseg' will be nonzero. */ pseg = ssptr->sspseg; size = ssptr->sssize; this_segment = stkl - size; /* It is possible that calling this routine itself caused a stack overflow. Discard stack segments which do not contain the target address. */ while (!(this_segment <= address && address <= stkl)) { # ifdef DEBUG_I00AFUNC fprintf (stderr, "%011o %011o %011o\n", this_segment, address, stkl); # endif if (pseg == 0) break; stkl = stkl - pseg; ssptr = (struct stack_segment_linkage *) stkl; size = ssptr->sssize; pseg = ssptr->sspseg; this_segment = stkl - size; } result = address - this_segment; /* If you subtract pseg from the current end of the stack, you get the address of the previous stack segment's end. This seems a little convoluted to me, but I'll bet you save a cycle somewhere. */ while (pseg != 0) { # ifdef DEBUG_I00AFUNC fprintf (stderr, "%011o %011o\n", pseg, size); # endif stkl = stkl - pseg; ssptr = (struct stack_segment_linkage *) stkl; size = ssptr->sssize; pseg = ssptr->sspseg; result += size; } return (result); } # endif /* not CRAY2 */ # endif /* CRAY */ # endif /* no alloca */ #endif /* not GCC version 2 */ mlocate-0.26/gnulib/lib/timespec.h0000664000175000017500000000237711353206451014031 00000000000000/* timespec -- System time interface Copyright (C) 2000, 2002, 2004, 2005, 2007 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #if ! defined TIMESPEC_H # define TIMESPEC_H # include /* Return negative, zero, positive if A < B, A == B, A > B, respectively. Assume the nanosecond components are in range, or close to it. */ static inline int timespec_cmp (struct timespec a, struct timespec b) { return (a.tv_sec < b.tv_sec ? -1 : a.tv_sec > b.tv_sec ? 1 : a.tv_nsec - b.tv_nsec); } void gettime (struct timespec *); int settime (struct timespec const *); #endif mlocate-0.26/gnulib/lib/string.in.h0000664000175000017500000005167611353206451014141 00000000000000/* A GNU-like . Copyright (C) 1995-1996, 2001-2007 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _GL_STRING_H /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_STRING_H@ #ifndef _GL_STRING_H #define _GL_STRING_H /* The definition of GL_LINK_WARNING is copied here. */ #ifdef __cplusplus extern "C" { #endif /* Return the first occurrence of NEEDLE in HAYSTACK. */ #if @GNULIB_MEMMEM@ # if ! @HAVE_DECL_MEMMEM@ extern void *memmem (void const *__haystack, size_t __haystack_len, void const *__needle, size_t __needle_len); # endif #elif defined GNULIB_POSIXCHECK # undef memmem # define memmem(a,al,b,bl) \ (GL_LINK_WARNING ("memmem is unportable - " \ "use gnulib module memmem for portability"), \ memmem (a, al, b, bl)) #endif /* Copy N bytes of SRC to DEST, return pointer to bytes after the last written byte. */ #if @GNULIB_MEMPCPY@ # if ! @HAVE_MEMPCPY@ extern void *mempcpy (void *restrict __dest, void const *restrict __src, size_t __n); # endif #elif defined GNULIB_POSIXCHECK # undef mempcpy # define mempcpy(a,b,n) \ (GL_LINK_WARNING ("mempcpy is unportable - " \ "use gnulib module mempcpy for portability"), \ mempcpy (a, b, n)) #endif /* Search backwards through a block for a byte (specified as an int). */ #if @GNULIB_MEMRCHR@ # if ! @HAVE_DECL_MEMRCHR@ extern void *memrchr (void const *, int, size_t); # endif #elif defined GNULIB_POSIXCHECK # undef memrchr # define memrchr(a,b,c) \ (GL_LINK_WARNING ("memrchr is unportable - " \ "use gnulib module memrchr for portability"), \ memrchr (a, b, c)) #endif /* Copy SRC to DST, returning the address of the terminating '\0' in DST. */ #if @GNULIB_STPCPY@ # if ! @HAVE_STPCPY@ extern char *stpcpy (char *restrict __dst, char const *restrict __src); # endif #elif defined GNULIB_POSIXCHECK # undef stpcpy # define stpcpy(a,b) \ (GL_LINK_WARNING ("stpcpy is unportable - " \ "use gnulib module stpcpy for portability"), \ stpcpy (a, b)) #endif /* Copy no more than N bytes of SRC to DST, returning a pointer past the last non-NUL byte written into DST. */ #if @GNULIB_STPNCPY@ # if ! @HAVE_STPNCPY@ # define stpncpy gnu_stpncpy extern char *stpncpy (char *restrict __dst, char const *restrict __src, size_t __n); # endif #elif defined GNULIB_POSIXCHECK # undef stpncpy # define stpncpy(a,b,n) \ (GL_LINK_WARNING ("stpncpy is unportable - " \ "use gnulib module stpncpy for portability"), \ stpncpy (a, b, n)) #endif /* Compare strings S1 and S2, ignoring case, returning less than, equal to or greater than zero if S1 is lexicographically less than, equal to or greater than S2. Note: This function does not work in multibyte locales. */ #if ! @HAVE_STRCASECMP@ extern int strcasecmp (char const *s1, char const *s2); #endif #if defined GNULIB_POSIXCHECK /* strcasecmp() does not work with multibyte strings: POSIX says that it operates on "strings", and "string" in POSIX is defined as a sequence of bytes, not of characters. */ # undef strcasecmp # define strcasecmp(a,b) \ (GL_LINK_WARNING ("strcasecmp cannot work correctly on character strings " \ "in multibyte locales - " \ "use mbscasecmp if you care about " \ "internationalization, or use c_strcasecmp (from " \ "gnulib module c-strcase) if you want a locale " \ "independent function"), \ strcasecmp (a, b)) #endif /* Compare no more than N bytes of strings S1 and S2, ignoring case, returning less than, equal to or greater than zero if S1 is lexicographically less than, equal to or greater than S2. Note: This function cannot work correctly in multibyte locales. */ #if ! @HAVE_DECL_STRNCASECMP@ extern int strncasecmp (char const *s1, char const *s2, size_t n); #endif #if defined GNULIB_POSIXCHECK /* strncasecmp() does not work with multibyte strings: POSIX says that it operates on "strings", and "string" in POSIX is defined as a sequence of bytes, not of characters. */ # undef strncasecmp # define strncasecmp(a,b,n) \ (GL_LINK_WARNING ("strncasecmp cannot work correctly on character " \ "strings in multibyte locales - " \ "use mbsncasecmp or mbspcasecmp if you care about " \ "internationalization, or use c_strncasecmp (from " \ "gnulib module c-strcase) if you want a locale " \ "independent function"), \ strncasecmp (a, b, n)) #endif #if defined GNULIB_POSIXCHECK /* strchr() does not work with multibyte strings if the locale encoding is GB18030 and the character to be searched is a digit. */ # undef strchr # define strchr(s,c) \ (GL_LINK_WARNING ("strchr cannot work correctly on character strings " \ "in some multibyte locales - " \ "use mbschr if you care about internationalization"), \ strchr (s, c)) #endif /* Find the first occurrence of C in S or the final NUL byte. */ #if @GNULIB_STRCHRNUL@ # if ! @HAVE_STRCHRNUL@ extern char *strchrnul (char const *__s, int __c_in); # endif #elif defined GNULIB_POSIXCHECK # undef strchrnul # define strchrnul(a,b) \ (GL_LINK_WARNING ("strchrnul is unportable - " \ "use gnulib module strchrnul for portability"), \ strchrnul (a, b)) #endif /* Duplicate S, returning an identical malloc'd string. */ #if @GNULIB_STRDUP@ # if ! @HAVE_DECL_STRDUP@ && ! defined strdup extern char *strdup (char const *__s); # endif #elif defined GNULIB_POSIXCHECK # undef strdup # define strdup(a) \ (GL_LINK_WARNING ("strdup is unportable - " \ "use gnulib module strdup for portability"), \ strdup (a)) #endif /* Return a newly allocated copy of at most N bytes of STRING. */ #if @GNULIB_STRNDUP@ # if ! @HAVE_STRNDUP@ # undef strndup # define strndup rpl_strndup # endif # if ! @HAVE_STRNDUP@ || ! @HAVE_DECL_STRNDUP@ extern char *strndup (char const *__string, size_t __n); # endif #elif defined GNULIB_POSIXCHECK # undef strndup # define strndup(a,n) \ (GL_LINK_WARNING ("strndup is unportable - " \ "use gnulib module strndup for portability"), \ strndup (a, n)) #endif /* Find the length (number of bytes) of STRING, but scan at most MAXLEN bytes. If no '\0' terminator is found in that many bytes, return MAXLEN. */ #if @GNULIB_STRNLEN@ # if ! @HAVE_DECL_STRNLEN@ extern size_t strnlen (char const *__string, size_t __maxlen); # endif #elif defined GNULIB_POSIXCHECK # undef strnlen # define strnlen(a,n) \ (GL_LINK_WARNING ("strnlen is unportable - " \ "use gnulib module strnlen for portability"), \ strnlen (a, n)) #endif #if defined GNULIB_POSIXCHECK /* strcspn() assumes the second argument is a list of single-byte characters. Even in this simple case, it does not work with multibyte strings if the locale encoding is GB18030 and one of the characters to be searched is a digit. */ # undef strcspn # define strcspn(s,a) \ (GL_LINK_WARNING ("strcspn cannot work correctly on character strings " \ "in multibyte locales - " \ "use mbscspn if you care about internationalization"), \ strcspn (s, a)) #endif /* Find the first occurrence in S of any character in ACCEPT. */ #if @GNULIB_STRPBRK@ # if ! @HAVE_STRPBRK@ extern char *strpbrk (char const *__s, char const *__accept); # endif # if defined GNULIB_POSIXCHECK /* strpbrk() assumes the second argument is a list of single-byte characters. Even in this simple case, it does not work with multibyte strings if the locale encoding is GB18030 and one of the characters to be searched is a digit. */ # undef strpbrk # define strpbrk(s,a) \ (GL_LINK_WARNING ("strpbrk cannot work correctly on character strings " \ "in multibyte locales - " \ "use mbspbrk if you care about internationalization"), \ strpbrk (s, a)) # endif #elif defined GNULIB_POSIXCHECK # undef strpbrk # define strpbrk(s,a) \ (GL_LINK_WARNING ("strpbrk is unportable - " \ "use gnulib module strpbrk for portability"), \ strpbrk (s, a)) #endif #if defined GNULIB_POSIXCHECK /* strspn() assumes the second argument is a list of single-byte characters. Even in this simple case, it cannot work with multibyte strings. */ # undef strspn # define strspn(s,a) \ (GL_LINK_WARNING ("strspn cannot work correctly on character strings " \ "in multibyte locales - " \ "use mbsspn if you care about internationalization"), \ strspn (s, a)) #endif #if defined GNULIB_POSIXCHECK /* strrchr() does not work with multibyte strings if the locale encoding is GB18030 and the character to be searched is a digit. */ # undef strrchr # define strrchr(s,c) \ (GL_LINK_WARNING ("strrchr cannot work correctly on character strings " \ "in some multibyte locales - " \ "use mbsrchr if you care about internationalization"), \ strrchr (s, c)) #endif /* Search the next delimiter (char listed in DELIM) starting at *STRINGP. If one is found, overwrite it with a NUL, and advance *STRINGP to point to the next char after it. Otherwise, set *STRINGP to NULL. If *STRINGP was already NULL, nothing happens. Return the old value of *STRINGP. This is a variant of strtok() that is multithread-safe and supports empty fields. Caveat: It modifies the original string. Caveat: These functions cannot be used on constant strings. Caveat: The identity of the delimiting character is lost. Caveat: It doesn't work with multibyte strings unless all of the delimiter characters are ASCII characters < 0x30. See also strtok_r(). */ #if @GNULIB_STRSEP@ # if ! @HAVE_STRSEP@ extern char *strsep (char **restrict __stringp, char const *restrict __delim); # endif # if defined GNULIB_POSIXCHECK # undef strsep # define strsep(s,d) \ (GL_LINK_WARNING ("strsep cannot work correctly on character strings " \ "in multibyte locales - " \ "use mbssep if you care about internationalization"), \ strsep (s, d)) # endif #elif defined GNULIB_POSIXCHECK # undef strsep # define strsep(s,d) \ (GL_LINK_WARNING ("strsep is unportable - " \ "use gnulib module strsep for portability"), \ strsep (s, d)) #endif #if defined GNULIB_POSIXCHECK /* strstr() does not work with multibyte strings if the locale encoding is different from UTF-8: POSIX says that it operates on "strings", and "string" in POSIX is defined as a sequence of bytes, not of characters. */ # undef strstr # define strstr(a,b) \ (GL_LINK_WARNING ("strstr cannot work correctly on character strings " \ "in most multibyte locales - " \ "use mbsstr if you care about internationalization"), \ strstr (a, b)) #endif /* Find the first occurrence of NEEDLE in HAYSTACK, using case-insensitive comparison. */ #if ! @HAVE_STRCASESTR@ extern char *strcasestr (const char *haystack, const char *needle); #endif #if defined GNULIB_POSIXCHECK /* strcasestr() does not work with multibyte strings: It is a glibc extension, and glibc implements it only for unibyte locales. */ # undef strcasestr # define strcasestr(a,b) \ (GL_LINK_WARNING ("strcasestr does work correctly on character strings " \ "in multibyte locales - " \ "use mbscasestr if you care about " \ "internationalization, or use c-strcasestr if you want " \ "a locale independent function"), \ strcasestr (a, b)) #endif /* Parse S into tokens separated by characters in DELIM. If S is NULL, the saved pointer in SAVE_PTR is used as the next starting point. For example: char s[] = "-abc-=-def"; char *sp; x = strtok_r(s, "-", &sp); // x = "abc", sp = "=-def" x = strtok_r(NULL, "-=", &sp); // x = "def", sp = NULL x = strtok_r(NULL, "=", &sp); // x = NULL // s = "abc\0-def\0" This is a variant of strtok() that is multithread-safe. For the POSIX documentation for this function, see: http://www.opengroup.org/susv3xsh/strtok.html Caveat: It modifies the original string. Caveat: These functions cannot be used on constant strings. Caveat: The identity of the delimiting character is lost. Caveat: It doesn't work with multibyte strings unless all of the delimiter characters are ASCII characters < 0x30. See also strsep(). */ #if @GNULIB_STRTOK_R@ # if ! @HAVE_DECL_STRTOK_R@ extern char *strtok_r (char *restrict s, char const *restrict delim, char **restrict save_ptr); # endif # if defined GNULIB_POSIXCHECK # undef strtok_r # define strtok_r(s,d,p) \ (GL_LINK_WARNING ("strtok_r cannot work correctly on character strings " \ "in multibyte locales - " \ "use mbstok_r if you care about internationalization"), \ strtok_r (s, d, p)) # endif #elif defined GNULIB_POSIXCHECK # undef strtok_r # define strtok_r(s,d,p) \ (GL_LINK_WARNING ("strtok_r is unportable - " \ "use gnulib module strtok_r for portability"), \ strtok_r (s, d, p)) #endif /* The following functions are not specified by POSIX. They are gnulib extensions. */ #if @GNULIB_MBSLEN@ /* Return the number of multibyte characters in the character string STRING. This considers multibyte characters, unlike strlen, which counts bytes. */ extern size_t mbslen (const char *string); #endif #if @GNULIB_MBSNLEN@ /* Return the number of multibyte characters in the character string starting at STRING and ending at STRING + LEN. */ extern size_t mbsnlen (const char *string, size_t len); #endif #if @GNULIB_MBSCHR@ /* Locate the first single-byte character C in the character string STRING, and return a pointer to it. Return NULL if C is not found in STRING. Unlike strchr(), this function works correctly in multibyte locales with encodings such as GB18030. */ # define mbschr rpl_mbschr /* avoid collision with HP-UX function */ extern char * mbschr (const char *string, int c); #endif #if @GNULIB_MBSRCHR@ /* Locate the last single-byte character C in the character string STRING, and return a pointer to it. Return NULL if C is not found in STRING. Unlike strrchr(), this function works correctly in multibyte locales with encodings such as GB18030. */ # define mbsrchr rpl_mbsrchr /* avoid collision with HP-UX function */ extern char * mbsrchr (const char *string, int c); #endif #if @GNULIB_MBSSTR@ /* Find the first occurrence of the character string NEEDLE in the character string HAYSTACK. Return NULL if NEEDLE is not found in HAYSTACK. Unlike strstr(), this function works correctly in multibyte locales with encodings different from UTF-8. */ extern char * mbsstr (const char *haystack, const char *needle); #endif #if @GNULIB_MBSCASECMP@ /* Compare the character strings S1 and S2, ignoring case, returning less than, equal to or greater than zero if S1 is lexicographically less than, equal to or greater than S2. Note: This function may, in multibyte locales, return 0 for strings of different lengths! Unlike strcasecmp(), this function works correctly in multibyte locales. */ extern int mbscasecmp (const char *s1, const char *s2); #endif #if @GNULIB_MBSNCASECMP@ /* Compare the initial segment of the character string S1 consisting of at most N characters with the initial segment of the character string S2 consisting of at most N characters, ignoring case, returning less than, equal to or greater than zero if the initial segment of S1 is lexicographically less than, equal to or greater than the initial segment of S2. Note: This function may, in multibyte locales, return 0 for initial segments of different lengths! Unlike strncasecmp(), this function works correctly in multibyte locales. But beware that N is not a byte count but a character count! */ extern int mbsncasecmp (const char *s1, const char *s2, size_t n); #endif #if @GNULIB_MBSPCASECMP@ /* Compare the initial segment of the character string STRING consisting of at most mbslen (PREFIX) characters with the character string PREFIX, ignoring case, returning less than, equal to or greater than zero if this initial segment is lexicographically less than, equal to or greater than PREFIX. Note: This function may, in multibyte locales, return 0 if STRING is of smaller length than PREFIX! Unlike strncasecmp(), this function works correctly in multibyte locales. */ extern char * mbspcasecmp (const char *string, const char *prefix); #endif #if @GNULIB_MBSCASESTR@ /* Find the first occurrence of the character string NEEDLE in the character string HAYSTACK, using case-insensitive comparison. Note: This function may, in multibyte locales, return success even if strlen (haystack) < strlen (needle) ! Unlike strcasestr(), this function works correctly in multibyte locales. */ extern char * mbscasestr (const char *haystack, const char *needle); #endif #if @GNULIB_MBSCSPN@ /* Find the first occurrence in the character string STRING of any character in the character string ACCEPT. Return the number of bytes from the beginning of the string to this occurrence, or to the end of the string if none exists. Unlike strcspn(), this function works correctly in multibyte locales. */ extern size_t mbscspn (const char *string, const char *accept); #endif #if @GNULIB_MBSPBRK@ /* Find the first occurrence in the character string STRING of any character in the character string ACCEPT. Return the pointer to it, or NULL if none exists. Unlike strpbrk(), this function works correctly in multibyte locales. */ # define mbspbrk rpl_mbspbrk /* avoid collision with HP-UX function */ extern char * mbspbrk (const char *string, const char *accept); #endif #if @GNULIB_MBSSPN@ /* Find the first occurrence in the character string STRING of any character not in the character string REJECT. Return the number of bytes from the beginning of the string to this occurrence, or to the end of the string if none exists. Unlike strspn(), this function works correctly in multibyte locales. */ extern size_t mbsspn (const char *string, const char *reject); #endif #if @GNULIB_MBSSEP@ /* Search the next delimiter (multibyte character listed in the character string DELIM) starting at the character string *STRINGP. If one is found, overwrite it with a NUL, and advance *STRINGP to point to the next multibyte character after it. Otherwise, set *STRINGP to NULL. If *STRINGP was already NULL, nothing happens. Return the old value of *STRINGP. This is a variant of mbstok_r() that supports empty fields. Caveat: It modifies the original string. Caveat: These functions cannot be used on constant strings. Caveat: The identity of the delimiting character is lost. See also mbstok_r(). */ extern char * mbssep (char **stringp, const char *delim); #endif #if @GNULIB_MBSTOK_R@ /* Parse the character string STRING into tokens separated by characters in the character string DELIM. If STRING is NULL, the saved pointer in SAVE_PTR is used as the next starting point. For example: char s[] = "-abc-=-def"; char *sp; x = mbstok_r(s, "-", &sp); // x = "abc", sp = "=-def" x = mbstok_r(NULL, "-=", &sp); // x = "def", sp = NULL x = mbstok_r(NULL, "=", &sp); // x = NULL // s = "abc\0-def\0" Caveat: It modifies the original string. Caveat: These functions cannot be used on constant strings. Caveat: The identity of the delimiting character is lost. See also mbssep(). */ extern char * mbstok_r (char *string, const char *delim, char **save_ptr); #endif /* Map any int, typically from errno, into an error message. */ #if @GNULIB_STRERROR@ # if @REPLACE_STRERROR@ # undef strerror # define strerror rpl_strerror # endif # if !@HAVE_DECL_STRERROR@ || @REPLACE_STRERROR@ extern char *strerror (int); # endif #elif defined GNULIB_POSIXCHECK # undef strerror # define strerror(e) \ (GL_LINK_WARNING ("strerror is unportable - " \ "use gnulib module strerror to guarantee non-NULL result"), \ strerror (e)) #endif #ifdef __cplusplus } #endif #endif /* _GL_STRING_H */ #endif /* _GL_STRING_H */ mlocate-0.26/gnulib/lib/uniwidth/0000775000175000017500000000000012027217355013755 500000000000000mlocate-0.26/gnulib/lib/uniwidth/width.c0000664000175000017500000004252411353206451015163 00000000000000/* Determine display width of Unicode character. Copyright (C) 2001-2002, 2006-2007 Free Software Foundation, Inc. Written by Bruno Haible , 2002. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include /* Specification. */ #include "uniwidth.h" #include "cjk.h" /* * Non-spacing attribute table. * Consists of: * - Non-spacing characters; generated from PropList.txt or * "grep '^[^;]*;[^;]*;[^;]*;[^;]*;NSM;' UnicodeData.txt" * - Format control characters; generated from * "grep '^[^;]*;[^;]*;Cf;' UnicodeData.txt" * - Zero width characters; generated from * "grep '^[^;]*;ZERO WIDTH ' UnicodeData.txt" */ static const unsigned char nonspacing_table_data[22*64] = { /* 0x0000-0x01ff */ 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, /* 0x0000-0x003f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, /* 0x0040-0x007f */ 0xff, 0xff, 0xff, 0xff, 0x00, 0x08, 0x00, 0x00, /* 0x0080-0x00bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x00c0-0x00ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0100-0x013f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0140-0x017f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0180-0x01bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x01c0-0x01ff */ /* 0x0200-0x03ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0200-0x023f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0240-0x027f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0280-0x02bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x02c0-0x02ff */ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 0x0300-0x033f */ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, /* 0x0340-0x037f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0380-0x03bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x03c0-0x03ff */ /* 0x0400-0x05ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0400-0x043f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0440-0x047f */ 0x78, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0480-0x04bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x04c0-0x04ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0500-0x053f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0540-0x057f */ 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xbf, /* 0x0580-0x05bf */ 0xb6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x05c0-0x05ff */ /* 0x0600-0x07ff */ 0x0f, 0x00, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0600-0x063f */ 0x00, 0xf8, 0xff, 0x7f, 0x00, 0x00, 0x01, 0x00, /* 0x0640-0x067f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0680-0x06bf */ 0x00, 0x00, 0xc0, 0xff, 0x9f, 0x3d, 0x00, 0x00, /* 0x06c0-0x06ff */ 0x00, 0x80, 0x02, 0x00, 0x00, 0x00, 0xff, 0xff, /* 0x0700-0x073f */ 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0740-0x077f */ 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0x01, 0x00, /* 0x0780-0x07bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x0f, 0x00, /* 0x07c0-0x07ff */ /* 0x0800-0x09ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0800-0x083f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0840-0x087f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0880-0x08bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x08c0-0x08ff */ 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, /* 0x0900-0x093f */ 0xfe, 0x21, 0x1e, 0x00, 0x0c, 0x00, 0x00, 0x00, /* 0x0940-0x097f */ 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, /* 0x0980-0x09bf */ 0x1e, 0x20, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, /* 0x09c0-0x09ff */ /* 0x0a00-0x0bff */ 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, /* 0x0a00-0x0a3f */ 0x86, 0x39, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, /* 0x0a40-0x0a7f */ 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, /* 0x0a80-0x0abf */ 0xbe, 0x21, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, /* 0x0ac0-0x0aff */ 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, /* 0x0b00-0x0b3f */ 0x0e, 0x20, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0b40-0x0b7f */ 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0b80-0x0bbf */ 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0bc0-0x0bff */ /* 0x0c00-0x0dff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, /* 0x0c00-0x0c3f */ 0xc1, 0x3d, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0c40-0x0c7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, /* 0x0c80-0x0cbf */ 0x00, 0x30, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, /* 0x0cc0-0x0cff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0d00-0x0d3f */ 0x0e, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0d40-0x0d7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0d80-0x0dbf */ 0x00, 0x04, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0dc0-0x0dff */ /* 0x0e00-0x0fff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf2, 0x07, /* 0x0e00-0x0e3f */ 0x80, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0e40-0x0e7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf2, 0x1b, /* 0x0e80-0x0ebf */ 0x00, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0ec0-0x0eff */ 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0xa0, 0x02, /* 0x0f00-0x0f3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x7f, /* 0x0f40-0x0f7f */ 0xdf, 0x00, 0xff, 0xfe, 0xff, 0xff, 0xff, 0x1f, /* 0x0f80-0x0fbf */ 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0fc0-0x0fff */ /* 0x1000-0x11ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xc5, 0x02, /* 0x1000-0x103f */ 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, /* 0x1040-0x107f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1080-0x10bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10c0-0x10ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1100-0x113f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1140-0x117f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1180-0x11bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x11c0-0x11ff */ /* 0x1200-0x13ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1200-0x123f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1240-0x127f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1280-0x12bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x12c0-0x12ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1300-0x133f */ 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, /* 0x1340-0x137f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1380-0x13bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x13c0-0x13ff */ /* 0x1600-0x17ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1600-0x163f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1640-0x167f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1680-0x16bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x16c0-0x16ff */ 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x1c, 0x00, /* 0x1700-0x173f */ 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x0c, 0x00, /* 0x1740-0x177f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x3f, /* 0x1780-0x17bf */ 0x40, 0xfe, 0x0f, 0x20, 0x00, 0x00, 0x00, 0x00, /* 0x17c0-0x17ff */ /* 0x1800-0x19ff */ 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1800-0x183f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1840-0x187f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, /* 0x1880-0x18bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x18c0-0x18ff */ 0x00, 0x00, 0x00, 0x00, 0x87, 0x0f, 0x04, 0x0e, /* 0x1900-0x193f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1940-0x197f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1980-0x19bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x19c0-0x19ff */ /* 0x1a00-0x1bff */ 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, /* 0x1a00-0x1a3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1a40-0x1a7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1a80-0x1abf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1ac0-0x1aff */ 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd0, 0x17, /* 0x1b00-0x1b3f */ 0x04, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x0f, 0x00, /* 0x1b40-0x1b7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1b80-0x1bbf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1bc0-0x1bff */ /* 0x1c00-0x1dff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1c00-0x1c3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1c40-0x1c7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1c80-0x1cbf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1cc0-0x1cff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d00-0x1d3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d40-0x1d7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d80-0x1dbf */ 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, /* 0x1dc0-0x1dff */ /* 0x2000-0x21ff */ 0x00, 0xf8, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x00, /* 0x2000-0x203f */ 0x00, 0x00, 0x00, 0x00, 0x0f, 0xfc, 0x00, 0x00, /* 0x2040-0x207f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2080-0x20bf */ 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, /* 0x20c0-0x20ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2100-0x213f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2140-0x217f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2180-0x21bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x21c0-0x21ff */ /* 0x3000-0x31ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x00, /* 0x3000-0x303f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x3040-0x307f */ 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, /* 0x3080-0x30bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x30c0-0x30ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x3100-0x313f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x3140-0x317f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x3180-0x31bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x31c0-0x31ff */ /* 0xa800-0xa9ff */ 0x44, 0x08, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, /* 0xa800-0xa83f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa840-0xa87f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa880-0xa8bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa8c0-0xa8ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa900-0xa93f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa940-0xa97f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa980-0xa9bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa9c0-0xa9ff */ /* 0xfa00-0xfbff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfa00-0xfa3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfa40-0xfa7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfa80-0xfabf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfac0-0xfaff */ 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, /* 0xfb00-0xfb3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfb40-0xfb7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfb80-0xfbbf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfbc0-0xfbff */ /* 0xfe00-0xffff */ 0xff, 0xff, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, /* 0xfe00-0xfe3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfe40-0xfe7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfe80-0xfebf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, /* 0xfec0-0xfeff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xff00-0xff3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xff40-0xff7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xff80-0xffbf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, /* 0xffc0-0xffff */ /* 0x10a00-0x10bff */ 0x6e, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x87, /* 0x10a00-0x10a3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10a40-0x10a7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10a80-0x10abf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10ac0-0x10aff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10b00-0x10b3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10b40-0x10b7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10b80-0x10bbf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10bc0-0x10bff */ /* 0x1d000-0x1d1ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d000-0x1d03f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d040-0x1d07f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d080-0x1d0bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d0c0-0x1d0ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d100-0x1d13f */ 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0xf8, /* 0x1d140-0x1d17f */ 0xe7, 0x0f, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, /* 0x1d180-0x1d1bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d1c0-0x1d1ff */ /* 0x1d200-0x1d3ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d200-0x1d23f */ 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d240-0x1d27f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d280-0x1d2bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d2c0-0x1d2ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d300-0x1d33f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d340-0x1d37f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d380-0x1d3bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 /* 0x1d3c0-0x1d3ff */ }; static const signed char nonspacing_table_ind[240] = { 0, 1, 2, 3, 4, 5, 6, 7, /* 0x0000-0x0fff */ 8, 9, -1, 10, 11, 12, 13, -1, /* 0x1000-0x1fff */ 14, -1, -1, -1, -1, -1, -1, -1, /* 0x2000-0x2fff */ 15, -1, -1, -1, -1, -1, -1, -1, /* 0x3000-0x3fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x4000-0x4fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x5000-0x5fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x6000-0x6fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x7000-0x7fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x8000-0x8fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x9000-0x9fff */ -1, -1, -1, -1, 16, -1, -1, -1, /* 0xa000-0xafff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0xb000-0xbfff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0xc000-0xcfff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0xd000-0xdfff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0xe000-0xefff */ -1, -1, -1, -1, -1, 17, -1, 18, /* 0xf000-0xffff */ -1, -1, -1, -1, -1, 19, -1, -1, /* 0x10000-0x10fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x11000-0x11fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x12000-0x12fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x13000-0x13fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x14000-0x14fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x15000-0x15fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x16000-0x16fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x17000-0x17fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x18000-0x18fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x19000-0x19fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x1a000-0x1afff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x1b000-0x1bfff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x1c000-0x1cfff */ 20, 21, -1, -1, -1, -1, -1, -1 /* 0x1d000-0x1dfff */ }; /* Determine number of column positions required for UC. */ int uc_width (ucs4_t uc, const char *encoding) { /* Test for non-spacing or control character. */ if ((uc >> 9) < 240) { int ind = nonspacing_table_ind[uc >> 9]; if (ind >= 0) if ((nonspacing_table_data[64*ind + ((uc >> 3) & 63)] >> (uc & 7)) & 1) { if (uc > 0 && uc < 0xa0) return -1; else return 0; } } else if ((uc >> 9) == (0xe0000 >> 9)) { if (uc >= 0xe0100) { if (uc <= 0xe01ef) return 0; } else { if (uc >= 0xe0020 ? uc <= 0xe007f : uc == 0xe0001) return 0; } } /* Test for double-width character. * Generated from "grep '^....;[WF]' EastAsianWidth.txt" * and "grep '^....;[^WF]' EastAsianWidth.txt" */ if (uc >= 0x1100 && ((uc < 0x1160) /* Hangul Jamo */ || (uc >= 0x2329 && uc < 0x232b) /* Angle Brackets */ || (uc >= 0x2e80 && uc < 0xa4d0 /* CJK ... Yi */ && !(uc == 0x303f) && !(uc >= 0x4dc0 && uc < 0x4e00)) || (uc >= 0xac00 && uc < 0xd7a4) /* Hangul Syllables */ || (uc >= 0xf900 && uc < 0xfb00) /* CJK Compatibility Ideographs */ || (uc >= 0xfe10 && uc < 0xfe20) /* Presentation Forms for Vertical */ || (uc >= 0xfe30 && uc < 0xfe70) /* CJK Compatibility Forms */ || (uc >= 0xff00 && uc < 0xff61) /* Fullwidth Forms */ || (uc >= 0xffe0 && uc < 0xffe7) /* Fullwidth Signs */ || (uc >= 0x20000 && uc <= 0x2a6d6) /* CJK */ || (uc >= 0x2f800 && uc <= 0x2fa1d) /* CJK Compatibility Ideographs */ ) ) return 2; /* In ancient CJK encodings, Cyrillic and most other characters are double-width as well. */ if (uc >= 0x00A1 && uc < 0xFF61 && uc != 0x20A9 && is_cjk_encoding (encoding)) return 2; return 1; } mlocate-0.26/gnulib/lib/uniwidth/cjk.h0000664000175000017500000000321611353206451014613 00000000000000/* Test for CJK encoding. Copyright (C) 2001-2002, 2005-2007 Free Software Foundation, Inc. Written by Bruno Haible , 2002. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "streq.h" static int is_cjk_encoding (const char *encoding) { if (0 /* Legacy Japanese encodings */ || STREQ (encoding, "EUC-JP", 'E', 'U', 'C', '-', 'J', 'P', 0, 0, 0) /* Legacy Chinese encodings */ || STREQ (encoding, "GB2312", 'G', 'B', '2', '3', '1', '2', 0, 0, 0) || STREQ (encoding, "GBK", 'G', 'B', 'K', 0, 0, 0, 0, 0, 0) || STREQ (encoding, "EUC-TW", 'E', 'U', 'C', '-', 'T', 'W', 0, 0, 0) || STREQ (encoding, "BIG5", 'B', 'I', 'G', '5', 0, 0, 0, 0, 0) /* Legacy Korean encodings */ || STREQ (encoding, "EUC-KR", 'E', 'U', 'C', '-', 'K', 'R', 0, 0, 0) || STREQ (encoding, "CP949", 'C', 'P', '9', '4', '9', 0, 0, 0, 0) || STREQ (encoding, "JOHAB", 'J', 'O', 'H', 'A', 'B', 0, 0, 0, 0)) return 1; return 0; } mlocate-0.26/gnulib/lib/memchr.c0000664000175000017500000001431111353206451013455 00000000000000/* Copyright (C) 1991, 1993, 1996, 1997, 1999, 2000, 2003, 2004, 2006 Free Software Foundation, Inc. Based on strlen implementation by Torbjorn Granlund (tege@sics.se), with help from Dan Sahlin (dan@sics.se) and commentary by Jim Blandy (jimb@ai.mit.edu); adaptation to memchr suggested by Dick Karpinski (dick@cca.ucsf.edu), and implemented by Roland McGrath (roland@ai.mit.edu). NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _LIBC # include #endif #include #include #if defined _LIBC # include #else # define reg_char char #endif #include #if HAVE_BP_SYM_H || defined _LIBC # include #else # define BP_SYM(sym) sym #endif #undef memchr #undef __memchr /* Search no more than N bytes of S for C. */ void * __memchr (void const *s, int c_in, size_t n) { const unsigned char *char_ptr; const unsigned long int *longword_ptr; unsigned long int longword, magic_bits, charmask; unsigned reg_char c; int i; c = (unsigned char) c_in; /* Handle the first few characters by reading one character at a time. Do this until CHAR_PTR is aligned on a longword boundary. */ for (char_ptr = (const unsigned char *) s; n > 0 && (size_t) char_ptr % sizeof longword != 0; --n, ++char_ptr) if (*char_ptr == c) return (void *) char_ptr; /* All these elucidatory comments refer to 4-byte longwords, but the theory applies equally well to any size longwords. */ longword_ptr = (const unsigned long int *) char_ptr; /* Bits 31, 24, 16, and 8 of this number are zero. Call these bits the "holes." Note that there is a hole just to the left of each byte, with an extra at the end: bits: 01111110 11111110 11111110 11111111 bytes: AAAAAAAA BBBBBBBB CCCCCCCC DDDDDDDD The 1-bits make sure that carries propagate to the next 0-bit. The 0-bits provide holes for carries to fall into. */ /* Set MAGIC_BITS to be this pattern of 1 and 0 bits. Set CHARMASK to be a longword, each of whose bytes is C. */ magic_bits = 0xfefefefe; charmask = c | (c << 8); charmask |= charmask << 16; #if 0xffffffffU < ULONG_MAX magic_bits |= magic_bits << 32; charmask |= charmask << 32; if (8 < sizeof longword) for (i = 64; i < sizeof longword * 8; i *= 2) { magic_bits |= magic_bits << i; charmask |= charmask << i; } #endif magic_bits = (ULONG_MAX >> 1) & (magic_bits | 1); /* Instead of the traditional loop which tests each character, we will test a longword at a time. The tricky part is testing if *any of the four* bytes in the longword in question are zero. */ while (n >= sizeof longword) { /* We tentatively exit the loop if adding MAGIC_BITS to LONGWORD fails to change any of the hole bits of LONGWORD. 1) Is this safe? Will it catch all the zero bytes? Suppose there is a byte with all zeros. Any carry bits propagating from its left will fall into the hole at its least significant bit and stop. Since there will be no carry from its most significant bit, the LSB of the byte to the left will be unchanged, and the zero will be detected. 2) Is this worthwhile? Will it ignore everything except zero bytes? Suppose every byte of LONGWORD has a bit set somewhere. There will be a carry into bit 8. If bit 8 is set, this will carry into bit 16. If bit 8 is clear, one of bits 9-15 must be set, so there will be a carry into bit 16. Similarly, there will be a carry into bit 24. If one of bits 24-30 is set, there will be a carry into bit 31, so all of the hole bits will be changed. The one misfire occurs when bits 24-30 are clear and bit 31 is set; in this case, the hole at bit 31 is not changed. If we had access to the processor carry flag, we could close this loophole by putting the fourth hole at bit 32! So it ignores everything except 128's, when they're aligned properly. 3) But wait! Aren't we looking for C, not zero? Good point. So what we do is XOR LONGWORD with a longword, each of whose bytes is C. This turns each byte that is C into a zero. */ longword = *longword_ptr++ ^ charmask; /* Add MAGIC_BITS to LONGWORD. */ if ((((longword + magic_bits) /* Set those bits that were unchanged by the addition. */ ^ ~longword) /* Look at only the hole bits. If any of the hole bits are unchanged, most likely one of the bytes was a zero. */ & ~magic_bits) != 0) { /* Which of the bytes was C? If none of them were, it was a misfire; continue the search. */ const unsigned char *cp = (const unsigned char *) (longword_ptr - 1); if (cp[0] == c) return (void *) cp; if (cp[1] == c) return (void *) &cp[1]; if (cp[2] == c) return (void *) &cp[2]; if (cp[3] == c) return (void *) &cp[3]; if (4 < sizeof longword && cp[4] == c) return (void *) &cp[4]; if (5 < sizeof longword && cp[5] == c) return (void *) &cp[5]; if (6 < sizeof longword && cp[6] == c) return (void *) &cp[6]; if (7 < sizeof longword && cp[7] == c) return (void *) &cp[7]; if (8 < sizeof longword) for (i = 8; i < sizeof longword; i++) if (cp[i] == c) return (void *) &cp[i]; } n -= sizeof longword; } char_ptr = (const unsigned char *) longword_ptr; while (n-- > 0) { if (*char_ptr == c) return (void *) char_ptr; else ++char_ptr; } return 0; } #ifdef weak_alias weak_alias (__memchr, BP_SYM (memchr)) #endif mlocate-0.26/gnulib/lib/stdint.in.h0000664000175000017500000003400411353206451014122 00000000000000/* Copyright (C) 2001-2002, 2004-2007 Free Software Foundation, Inc. Written by Paul Eggert, Bruno Haible, Sam Steingold, Peter Burwood. This file is part of gnulib. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* * ISO C 99 for platforms that lack it. * */ #ifndef _GL_STDINT_H /* Get those types that are already defined in other system include files, so that we can "#define int8_t signed char" below without worrying about a later system include file containing a "typedef signed char int8_t;" that will get messed up by our macro. Our macros should all be consistent with the system versions, except for the "fast" types and macros, which we recommend against using in public interfaces due to compiler differences. */ #if @HAVE_STDINT_H@ # if defined __sgi && ! defined __c99 /* Bypass IRIX's if in C89 mode, since it merely annoys users with "This header file is to be used only for c99 mode compilations" diagnostics. */ # define __STDINT_H__ # endif /* Other systems may have an incomplete or buggy . Include it before , since any "#include " in would reinclude us, skipping our contents because _GL_STDINT_H is defined. The include_next requires a split double-inclusion guard. */ # @INCLUDE_NEXT@ @NEXT_STDINT_H@ #endif #if ! defined _GL_STDINT_H && ! defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H #define _GL_STDINT_H /* defines some of the stdint.h types as well, on glibc, IRIX 6.5, and OpenBSD 3.8 (via ). AIX 5.2 isn't needed and causes troubles. MacOS X 10.4.6 includes (which is us), but relies on the system definitions, so include after @NEXT_STDINT_H@. */ #if @HAVE_SYS_TYPES_H@ && ! defined _AIX # include #endif /* Get LONG_MIN, LONG_MAX, ULONG_MAX. */ #include #if @HAVE_INTTYPES_H@ /* In OpenBSD 3.8, includes , which defines int{8,16,32,64}_t, uint{8,16,32,64}_t and __BIT_TYPES_DEFINED__. also defines intptr_t and uintptr_t. */ # define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H # include # undef _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H #elif @HAVE_SYS_INTTYPES_H@ /* Solaris 7 has the types except the *_fast*_t types, and the macros except for *_FAST*_*, INTPTR_MIN, PTRDIFF_MIN, PTRDIFF_MAX. */ # include #endif #if @HAVE_SYS_BITYPES_H@ && ! defined __BIT_TYPES_DEFINED__ /* Linux libc4 >= 4.6.7 and libc5 have a that defines int{8,16,32,64}_t and __BIT_TYPES_DEFINED__. In libc5 >= 5.2.2 it is included by . */ # include #endif #if ! defined __cplusplus || defined __STDC_CONSTANT_MACROS /* Get WCHAR_MIN, WCHAR_MAX. */ # if ! (defined WCHAR_MIN && defined WCHAR_MAX) # include # endif #endif /* Minimum and maximum values for a integer type under the usual assumption. Return an unspecified value if BITS == 0, adding a check to pacify picky compilers. */ #define _STDINT_MIN(signed, bits, zero) \ ((signed) ? (- ((zero) + 1) << ((bits) ? (bits) - 1 : 0)) : (zero)) #define _STDINT_MAX(signed, bits, zero) \ ((signed) \ ? ~ _STDINT_MIN (signed, bits, zero) \ : ((((zero) + 1) << ((bits) ? (bits) - 1 : 0)) - 1) * 2 + 1) /* 7.18.1.1. Exact-width integer types */ /* Here we assume a standard architecture where the hardware integer types have 8, 16, 32, optionally 64 bits. */ #undef int8_t #undef uint8_t #define int8_t signed char #define uint8_t unsigned char #undef int16_t #undef uint16_t #define int16_t short int #define uint16_t unsigned short int #undef int32_t #undef uint32_t #define int32_t int #define uint32_t unsigned int /* Do not undefine int64_t if gnulib is not being used with 64-bit types, since otherwise it breaks platforms like Tandem/NSK. */ #if LONG_MAX >> 31 >> 31 == 1 # undef int64_t # define int64_t long int # define GL_INT64_T #elif defined _MSC_VER # undef int64_t # define int64_t __int64 # define GL_INT64_T #elif @HAVE_LONG_LONG_INT@ # undef int64_t # define int64_t long long int # define GL_INT64_T #endif #if ULONG_MAX >> 31 >> 31 >> 1 == 1 # undef uint64_t # define uint64_t unsigned long int # define GL_UINT64_T #elif defined _MSC_VER # undef uint64_t # define uint64_t unsigned __int64 # define GL_UINT64_T #elif @HAVE_UNSIGNED_LONG_LONG_INT@ # undef uint64_t # define uint64_t unsigned long long int # define GL_UINT64_T #endif /* Avoid collision with Solaris 2.5.1 etc. */ #define _UINT8_T #define _UINT32_T #define _UINT64_T /* 7.18.1.2. Minimum-width integer types */ /* Here we assume a standard architecture where the hardware integer types have 8, 16, 32, optionally 64 bits. Therefore the leastN_t types are the same as the corresponding N_t types. */ #undef int_least8_t #undef uint_least8_t #undef int_least16_t #undef uint_least16_t #undef int_least32_t #undef uint_least32_t #undef int_least64_t #undef uint_least64_t #define int_least8_t int8_t #define uint_least8_t uint8_t #define int_least16_t int16_t #define uint_least16_t uint16_t #define int_least32_t int32_t #define uint_least32_t uint32_t #ifdef GL_INT64_T # define int_least64_t int64_t #endif #ifdef GL_UINT64_T # define uint_least64_t uint64_t #endif /* 7.18.1.3. Fastest minimum-width integer types */ /* Note: Other substitutes may define these types differently. It is not recommended to use these types in public header files. */ /* Here we assume a standard architecture where the hardware integer types have 8, 16, 32, optionally 64 bits. Therefore the fastN_t types are taken from the same list of types. Assume that 'long int' is fast enough for all narrower integers. */ #undef int_fast8_t #undef uint_fast8_t #undef int_fast16_t #undef uint_fast16_t #undef int_fast32_t #undef uint_fast32_t #undef int_fast64_t #undef uint_fast64_t #define int_fast8_t long int #define uint_fast8_t unsigned int_fast8_t #define int_fast16_t long int #define uint_fast16_t unsigned int_fast16_t #define int_fast32_t long int #define uint_fast32_t unsigned int_fast32_t #ifdef GL_INT64_T # define int_fast64_t int64_t #endif #ifdef GL_UINT64_T # define uint_fast64_t uint64_t #endif /* 7.18.1.4. Integer types capable of holding object pointers */ #undef intptr_t #undef uintptr_t #define intptr_t long int #define uintptr_t unsigned long int /* 7.18.1.5. Greatest-width integer types */ /* Note: These types are compiler dependent. It may be unwise to use them in public header files. */ #undef intmax_t #if @HAVE_LONG_LONG_INT@ && LONG_MAX >> 30 == 1 # define intmax_t long long int #elif defined GL_INT64_T # define intmax_t int64_t #else # define intmax_t long int #endif #undef uintmax_t #if @HAVE_UNSIGNED_LONG_LONG_INT@ && ULONG_MAX >> 31 == 1 # define uintmax_t unsigned long long int #elif defined GL_UINT64_T # define uintmax_t uint64_t #else # define uintmax_t unsigned long int #endif /* 7.18.2. Limits of specified-width integer types */ #if ! defined __cplusplus || defined __STDC_LIMIT_MACROS /* 7.18.2.1. Limits of exact-width integer types */ /* Here we assume a standard architecture where the hardware integer types have 8, 16, 32, optionally 64 bits. */ #undef INT8_MIN #undef INT8_MAX #undef UINT8_MAX #define INT8_MIN (~ INT8_MAX) #define INT8_MAX 127 #define UINT8_MAX 255 #undef INT16_MIN #undef INT16_MAX #undef UINT16_MAX #define INT16_MIN (~ INT16_MAX) #define INT16_MAX 32767 #define UINT16_MAX 65535 #undef INT32_MIN #undef INT32_MAX #undef UINT32_MAX #define INT32_MIN (~ INT32_MAX) #define INT32_MAX 2147483647 #define UINT32_MAX 4294967295U #undef INT64_MIN #undef INT64_MAX #ifdef GL_INT64_T /* Prefer (- INTMAX_C (1) << 63) over (~ INT64_MAX) because SunPRO C 5.0 evaluates the latter incorrectly in preprocessor expressions. */ # define INT64_MIN (- INTMAX_C (1) << 63) # define INT64_MAX INTMAX_C (9223372036854775807) #endif #undef UINT64_MAX #ifdef GL_UINT64_T # define UINT64_MAX UINTMAX_C (18446744073709551615) #endif /* 7.18.2.2. Limits of minimum-width integer types */ /* Here we assume a standard architecture where the hardware integer types have 8, 16, 32, optionally 64 bits. Therefore the leastN_t types are the same as the corresponding N_t types. */ #undef INT_LEAST8_MIN #undef INT_LEAST8_MAX #undef UINT_LEAST8_MAX #define INT_LEAST8_MIN INT8_MIN #define INT_LEAST8_MAX INT8_MAX #define UINT_LEAST8_MAX UINT8_MAX #undef INT_LEAST16_MIN #undef INT_LEAST16_MAX #undef UINT_LEAST16_MAX #define INT_LEAST16_MIN INT16_MIN #define INT_LEAST16_MAX INT16_MAX #define UINT_LEAST16_MAX UINT16_MAX #undef INT_LEAST32_MIN #undef INT_LEAST32_MAX #undef UINT_LEAST32_MAX #define INT_LEAST32_MIN INT32_MIN #define INT_LEAST32_MAX INT32_MAX #define UINT_LEAST32_MAX UINT32_MAX #undef INT_LEAST64_MIN #undef INT_LEAST64_MAX #ifdef GL_INT64_T # define INT_LEAST64_MIN INT64_MIN # define INT_LEAST64_MAX INT64_MAX #endif #undef UINT_LEAST64_MAX #ifdef GL_UINT64_T # define UINT_LEAST64_MAX UINT64_MAX #endif /* 7.18.2.3. Limits of fastest minimum-width integer types */ /* Here we assume a standard architecture where the hardware integer types have 8, 16, 32, optionally 64 bits. Therefore the fastN_t types are taken from the same list of types. */ #undef INT_FAST8_MIN #undef INT_FAST8_MAX #undef UINT_FAST8_MAX #define INT_FAST8_MIN LONG_MIN #define INT_FAST8_MAX LONG_MAX #define UINT_FAST8_MAX ULONG_MAX #undef INT_FAST16_MIN #undef INT_FAST16_MAX #undef UINT_FAST16_MAX #define INT_FAST16_MIN LONG_MIN #define INT_FAST16_MAX LONG_MAX #define UINT_FAST16_MAX ULONG_MAX #undef INT_FAST32_MIN #undef INT_FAST32_MAX #undef UINT_FAST32_MAX #define INT_FAST32_MIN LONG_MIN #define INT_FAST32_MAX LONG_MAX #define UINT_FAST32_MAX ULONG_MAX #undef INT_FAST64_MIN #undef INT_FAST64_MAX #ifdef GL_INT64_T # define INT_FAST64_MIN INT64_MIN # define INT_FAST64_MAX INT64_MAX #endif #undef UINT_FAST64_MAX #ifdef GL_UINT64_T # define UINT_FAST64_MAX UINT64_MAX #endif /* 7.18.2.4. Limits of integer types capable of holding object pointers */ #undef INTPTR_MIN #undef INTPTR_MAX #undef UINTPTR_MAX #define INTPTR_MIN LONG_MIN #define INTPTR_MAX LONG_MAX #define UINTPTR_MAX ULONG_MAX /* 7.18.2.5. Limits of greatest-width integer types */ #undef INTMAX_MIN #undef INTMAX_MAX #ifdef INT64_MAX # define INTMAX_MIN INT64_MIN # define INTMAX_MAX INT64_MAX #else # define INTMAX_MIN INT32_MIN # define INTMAX_MAX INT32_MAX #endif #undef UINTMAX_MAX #ifdef UINT64_MAX # define UINTMAX_MAX UINT64_MAX #else # define UINTMAX_MAX UINT32_MAX #endif /* 7.18.3. Limits of other integer types */ /* ptrdiff_t limits */ #undef PTRDIFF_MIN #undef PTRDIFF_MAX #define PTRDIFF_MIN \ _STDINT_MIN (1, @BITSIZEOF_PTRDIFF_T@, 0@PTRDIFF_T_SUFFIX@) #define PTRDIFF_MAX \ _STDINT_MAX (1, @BITSIZEOF_PTRDIFF_T@, 0@PTRDIFF_T_SUFFIX@) /* sig_atomic_t limits */ #undef SIG_ATOMIC_MIN #undef SIG_ATOMIC_MAX #define SIG_ATOMIC_MIN \ _STDINT_MIN (@HAVE_SIGNED_SIG_ATOMIC_T@, @BITSIZEOF_SIG_ATOMIC_T@, \ 0@SIG_ATOMIC_T_SUFFIX@) #define SIG_ATOMIC_MAX \ _STDINT_MAX (@HAVE_SIGNED_SIG_ATOMIC_T@, @BITSIZEOF_SIG_ATOMIC_T@, \ 0@SIG_ATOMIC_T_SUFFIX@) /* size_t limit */ #undef SIZE_MAX #define SIZE_MAX _STDINT_MAX (0, @BITSIZEOF_SIZE_T@, 0@SIZE_T_SUFFIX@) /* wchar_t limits */ #undef WCHAR_MIN #undef WCHAR_MAX #define WCHAR_MIN \ _STDINT_MIN (@HAVE_SIGNED_WCHAR_T@, @BITSIZEOF_WCHAR_T@, 0@WCHAR_T_SUFFIX@) #define WCHAR_MAX \ _STDINT_MAX (@HAVE_SIGNED_WCHAR_T@, @BITSIZEOF_WCHAR_T@, 0@WCHAR_T_SUFFIX@) /* wint_t limits */ #undef WINT_MIN #undef WINT_MAX #define WINT_MIN \ _STDINT_MIN (@HAVE_SIGNED_WINT_T@, @BITSIZEOF_WINT_T@, 0@WINT_T_SUFFIX@) #define WINT_MAX \ _STDINT_MAX (@HAVE_SIGNED_WINT_T@, @BITSIZEOF_WINT_T@, 0@WINT_T_SUFFIX@) #endif /* !defined __cplusplus || defined __STDC_LIMIT_MACROS */ /* 7.18.4. Macros for integer constants */ #if ! defined __cplusplus || defined __STDC_CONSTANT_MACROS /* 7.18.4.1. Macros for minimum-width integer constants */ /* According to ISO C 99 Technical Corrigendum 1 */ /* Here we assume a standard architecture where the hardware integer types have 8, 16, 32, optionally 64 bits, and int is 32 bits. */ #undef INT8_C #undef UINT8_C #define INT8_C(x) x #define UINT8_C(x) x #undef INT16_C #undef UINT16_C #define INT16_C(x) x #define UINT16_C(x) x #undef INT32_C #undef UINT32_C #define INT32_C(x) x #define UINT32_C(x) x ## U #undef INT64_C #undef UINT64_C #if LONG_MAX >> 31 >> 31 == 1 # define INT64_C(x) x##L #elif defined _MSC_VER # define INT64_C(x) x##i64 #elif @HAVE_LONG_LONG_INT@ # define INT64_C(x) x##LL #endif #if ULONG_MAX >> 31 >> 31 >> 1 == 1 # define UINT64_C(x) x##UL #elif defined _MSC_VER # define UINT64_C(x) x##ui64 #elif @HAVE_UNSIGNED_LONG_LONG_INT@ # define UINT64_C(x) x##ULL #endif /* 7.18.4.2. Macros for greatest-width integer constants */ #undef INTMAX_C #if @HAVE_LONG_LONG_INT@ && LONG_MAX >> 30 == 1 # define INTMAX_C(x) x##LL #elif defined GL_INT64_T # define INTMAX_C(x) INT64_C(x) #else # define INTMAX_C(x) x##L #endif #undef UINTMAX_C #if @HAVE_UNSIGNED_LONG_LONG_INT@ && ULONG_MAX >> 31 == 1 # define UINTMAX_C(x) x##ULL #elif defined GL_UINT64_T # define UINTMAX_C(x) UINT64_C(x) #else # define UINTMAX_C(x) x##UL #endif #endif /* !defined __cplusplus || defined __STDC_CONSTANT_MACROS */ #endif /* _GL_STDINT_H */ #endif /* !defined _GL_STDINT_H && !defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H */ mlocate-0.26/gnulib/lib/getopt.in.h0000664000175000017500000001760711353206451014131 00000000000000/* Declarations for getopt. Copyright (C) 1989-1994,1996-1999,2001,2003,2004,2005,2006,2007 Free Software Foundation, Inc. This file is part of the GNU C Library. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _GETOPT_H #ifndef __need_getopt # define _GETOPT_H 1 #endif /* Standalone applications should #define __GETOPT_PREFIX to an identifier that prefixes the external functions and variables defined in this header. When this happens, include the headers that might declare getopt so that they will not cause confusion if included after this file. Then systematically rename identifiers so that they do not collide with the system functions and variables. Renaming avoids problems with some compilers and linkers. */ #if defined __GETOPT_PREFIX && !defined __need_getopt # include # include # include # undef __need_getopt # undef getopt # undef getopt_long # undef getopt_long_only # undef optarg # undef opterr # undef optind # undef optopt # define __GETOPT_CONCAT(x, y) x ## y # define __GETOPT_XCONCAT(x, y) __GETOPT_CONCAT (x, y) # define __GETOPT_ID(y) __GETOPT_XCONCAT (__GETOPT_PREFIX, y) # define getopt __GETOPT_ID (getopt) # define getopt_long __GETOPT_ID (getopt_long) # define getopt_long_only __GETOPT_ID (getopt_long_only) # define optarg __GETOPT_ID (optarg) # define opterr __GETOPT_ID (opterr) # define optind __GETOPT_ID (optind) # define optopt __GETOPT_ID (optopt) #endif /* Standalone applications get correct prototypes for getopt_long and getopt_long_only; they declare "char **argv". libc uses prototypes with "char *const *argv" that are incorrect because getopt_long and getopt_long_only can permute argv; this is required for backward compatibility (e.g., for LSB 2.0.1). This used to be `#if defined __GETOPT_PREFIX && !defined __need_getopt', but it caused redefinition warnings if both unistd.h and getopt.h were included, since unistd.h includes getopt.h having previously defined __need_getopt. The only place where __getopt_argv_const is used is in definitions of getopt_long and getopt_long_only below, but these are visible only if __need_getopt is not defined, so it is quite safe to rewrite the conditional as follows: */ #if !defined __need_getopt # if defined __GETOPT_PREFIX # define __getopt_argv_const /* empty */ # else # define __getopt_argv_const const # endif #endif /* If __GNU_LIBRARY__ is not already defined, either we are being used standalone, or this is the first header included in the source file. If we are being used with glibc, we need to include , but that does not exist if we are standalone. So: if __GNU_LIBRARY__ is not defined, include , which will pull in for us if it's from glibc. (Why ctype.h? It's guaranteed to exist and it doesn't flood the namespace with stuff the way some other headers do.) */ #if !defined __GNU_LIBRARY__ # include #endif #ifndef __THROW # ifndef __GNUC_PREREQ # define __GNUC_PREREQ(maj, min) (0) # endif # if defined __cplusplus && __GNUC_PREREQ (2,8) # define __THROW throw () # else # define __THROW # endif #endif #ifdef __cplusplus extern "C" { #endif /* For communication from `getopt' to the caller. When `getopt' finds an option that takes an argument, the argument value is returned here. Also, when `ordering' is RETURN_IN_ORDER, each non-option ARGV-element is returned here. */ extern char *optarg; /* Index in ARGV of the next element to be scanned. This is used for communication to and from the caller and for communication between successive calls to `getopt'. On entry to `getopt', zero means this is the first call; initialize. When `getopt' returns -1, this is the index of the first of the non-option elements that the caller should itself scan. Otherwise, `optind' communicates from one call to the next how much of ARGV has been scanned so far. */ extern int optind; /* Callers store zero here to inhibit the error message `getopt' prints for unrecognized options. */ extern int opterr; /* Set to an option character which was unrecognized. */ extern int optopt; #ifndef __need_getopt /* Describe the long-named options requested by the application. The LONG_OPTIONS argument to getopt_long or getopt_long_only is a vector of `struct option' terminated by an element containing a name which is zero. The field `has_arg' is: no_argument (or 0) if the option does not take an argument, required_argument (or 1) if the option requires an argument, optional_argument (or 2) if the option takes an optional argument. If the field `flag' is not NULL, it points to a variable that is set to the value given in the field `val' when the option is found, but left unchanged if the option is not found. To have a long-named option do something other than set an `int' to a compiled-in constant, such as set a value from `optarg', set the option's `flag' field to zero and its `val' field to a nonzero value (the equivalent single-letter option character, if there is one). For long options that have a zero `flag' field, `getopt' returns the contents of the `val' field. */ struct option { const char *name; /* has_arg can't be an enum because some compilers complain about type mismatches in all the code that assumes it is an int. */ int has_arg; int *flag; int val; }; /* Names for the values of the `has_arg' field of `struct option'. */ # define no_argument 0 # define required_argument 1 # define optional_argument 2 #endif /* need getopt */ /* Get definitions and prototypes for functions to process the arguments in ARGV (ARGC of them, minus the program name) for options given in OPTS. Return the option character from OPTS just read. Return -1 when there are no more options. For unrecognized options, or options missing arguments, `optopt' is set to the option letter, and '?' is returned. The OPTS string is a list of characters which are recognized option letters, optionally followed by colons, specifying that that letter takes an argument, to be placed in `optarg'. If a letter in OPTS is followed by two colons, its argument is optional. This behavior is specific to the GNU `getopt'. The argument `--' causes premature termination of argument scanning, explicitly telling `getopt' that there are no more options. If OPTS begins with `-', then non-option arguments are treated as arguments to the option '\1'. This behavior is specific to the GNU `getopt'. If OPTS begins with `+', or POSIXLY_CORRECT is set in the environment, then do not permute arguments. */ extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) __THROW; #ifndef __need_getopt extern int getopt_long (int ___argc, char *__getopt_argv_const *___argv, const char *__shortopts, const struct option *__longopts, int *__longind) __THROW; extern int getopt_long_only (int ___argc, char *__getopt_argv_const *___argv, const char *__shortopts, const struct option *__longopts, int *__longind) __THROW; #endif #ifdef __cplusplus } #endif /* Make sure we later can get all the definitions and declarations. */ #undef __need_getopt #endif /* getopt.h */ mlocate-0.26/gnulib/lib/mbchar.h0000664000175000017500000003111011353206451013437 00000000000000/* Multibyte character data type. Copyright (C) 2001, 2005-2007 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, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Written by Bruno Haible . */ /* A multibyte character is a short subsequence of a char* string, representing a single wide character. We use multibyte characters instead of wide characters because of the following goals: 1) correct multibyte handling, i.e. operate according to the LC_CTYPE locale, 2) ease of maintenance, i.e. the maintainer needs not know all details of the ISO C 99 standard, 3) don't fail grossly if the input is not in the encoding set by the locale, because often different encodings are in use in the same countries (ISO-8859-1/UTF-8, EUC-JP/Shift_JIS, ...), 4) fast in the case of ASCII characters, 5) portability, i.e. don't make unportable assumptions about wchar_t. Multibyte characters are only accessed through the mb* macros. mb_ptr (mbc) return a pointer to the beginning of the multibyte sequence. mb_len (mbc) returns the number of bytes occupied by the multibyte sequence. Always > 0. mb_iseq (mbc, sc) returns true if mbc is the standard ASCII character sc. mb_isnul (mbc) returns true if mbc is the nul character. mb_cmp (mbc1, mbc2) returns a positive, zero, or negative value depending on whether mbc1 sorts after, same or before mbc2. mb_casecmp (mbc1, mbc2) returns a positive, zero, or negative value depending on whether mbc1 sorts after, same or before mbc2, modulo upper/lowercase conversion. mb_equal (mbc1, mbc2) returns true if mbc1 and mbc2 are equal. mb_caseequal (mbc1, mbc2) returns true if mbc1 and mbc2 are equal modulo upper/lowercase conversion. mb_isalnum (mbc) returns true if mbc is alphanumeric. mb_isalpha (mbc) returns true if mbc is alphabetic. mb_isascii(mbc) returns true if mbc is plain ASCII. mb_isblank (mbc) returns true if mbc is a blank. mb_iscntrl (mbc) returns true if mbc is a control character. mb_isdigit (mbc) returns true if mbc is a decimal digit. mb_isgraph (mbc) returns true if mbc is a graphic character. mb_islower (mbc) returns true if mbc is lowercase. mb_isprint (mbc) returns true if mbc is a printable character. mb_ispunct (mbc) returns true if mbc is a punctuation character. mb_isspace (mbc) returns true if mbc is a space character. mb_isupper (mbc) returns true if mbc is uppercase. mb_isxdigit (mbc) returns true if mbc is a hexadecimal digit. mb_width (mbc) returns the number of columns on the output device occupied by mbc. Always >= 0. mb_putc (mbc, stream) outputs mbc on stream, a byte oriented FILE stream opened for output. mb_setascii (&mbc, sc) assigns the standard ASCII character sc to mbc. mb_copy (&destmbc, &srcmbc) copies srcmbc to destmbc. Here are the function prototypes of the macros. extern const char * mb_ptr (const mbchar_t mbc); extern size_t mb_len (const mbchar_t mbc); extern bool mb_iseq (const mbchar_t mbc, char sc); extern bool mb_isnul (const mbchar_t mbc); extern int mb_cmp (const mbchar_t mbc1, const mbchar_t mbc2); extern int mb_casecmp (const mbchar_t mbc1, const mbchar_t mbc2); extern bool mb_equal (const mbchar_t mbc1, const mbchar_t mbc2); extern bool mb_caseequal (const mbchar_t mbc1, const mbchar_t mbc2); extern bool mb_isalnum (const mbchar_t mbc); extern bool mb_isalpha (const mbchar_t mbc); extern bool mb_isascii (const mbchar_t mbc); extern bool mb_isblank (const mbchar_t mbc); extern bool mb_iscntrl (const mbchar_t mbc); extern bool mb_isdigit (const mbchar_t mbc); extern bool mb_isgraph (const mbchar_t mbc); extern bool mb_islower (const mbchar_t mbc); extern bool mb_isprint (const mbchar_t mbc); extern bool mb_ispunct (const mbchar_t mbc); extern bool mb_isspace (const mbchar_t mbc); extern bool mb_isupper (const mbchar_t mbc); extern bool mb_isxdigit (const mbchar_t mbc); extern int mb_width (const mbchar_t mbc); extern void mb_putc (const mbchar_t mbc, FILE *stream); extern void mb_setascii (mbchar_t *new, char sc); extern void mb_copy (mbchar_t *new, const mbchar_t *old); */ #ifndef _MBCHAR_H #define _MBCHAR_H 1 #include #include /* Tru64 with Desktop Toolkit C has a bug: must be included before . BSD/OS 4.1 has a bug: and must be included before . */ #include #include #include #include #define MBCHAR_BUF_SIZE 24 struct mbchar { const char *ptr; /* pointer to current character */ size_t bytes; /* number of bytes of current character, > 0 */ bool wc_valid; /* true if wc is a valid wide character */ wchar_t wc; /* if wc_valid: the current character */ char buf[MBCHAR_BUF_SIZE]; /* room for the bytes, used for file input only */ }; /* EOF (not a real character) is represented with bytes = 0 and wc_valid = false. */ typedef struct mbchar mbchar_t; /* Access the current character. */ #define mb_ptr(mbc) ((mbc).ptr) #define mb_len(mbc) ((mbc).bytes) /* Comparison of characters. */ #define mb_iseq(mbc, sc) ((mbc).wc_valid && (mbc).wc == (sc)) #define mb_isnul(mbc) ((mbc).wc_valid && (mbc).wc == 0) #define mb_cmp(mbc1, mbc2) \ ((mbc1).wc_valid \ ? ((mbc2).wc_valid \ ? (int) (mbc1).wc - (int) (mbc2).wc \ : -1) \ : ((mbc2).wc_valid \ ? 1 \ : (mbc1).bytes == (mbc2).bytes \ ? memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) \ : (mbc1).bytes < (mbc2).bytes \ ? (memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) > 0 ? 1 : -1) \ : (memcmp ((mbc1).ptr, (mbc2).ptr, (mbc2).bytes) >= 0 ? 1 : -1))) #define mb_casecmp(mbc1, mbc2) \ ((mbc1).wc_valid \ ? ((mbc2).wc_valid \ ? (int) towlower ((mbc1).wc) - (int) towlower ((mbc2).wc) \ : -1) \ : ((mbc2).wc_valid \ ? 1 \ : (mbc1).bytes == (mbc2).bytes \ ? memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) \ : (mbc1).bytes < (mbc2).bytes \ ? (memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) > 0 ? 1 : -1) \ : (memcmp ((mbc1).ptr, (mbc2).ptr, (mbc2).bytes) >= 0 ? 1 : -1))) #define mb_equal(mbc1, mbc2) \ ((mbc1).wc_valid && (mbc2).wc_valid \ ? (mbc1).wc == (mbc2).wc \ : (mbc1).bytes == (mbc2).bytes \ && memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) == 0) #define mb_caseequal(mbc1, mbc2) \ ((mbc1).wc_valid && (mbc2).wc_valid \ ? towlower ((mbc1).wc) == towlower ((mbc2).wc) \ : (mbc1).bytes == (mbc2).bytes \ && memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) == 0) /* , classification. */ #define mb_isascii(mbc) \ ((mbc).wc_valid && (mbc).wc >= 0 && (mbc).wc <= 127) #define mb_isalnum(mbc) ((mbc).wc_valid && iswalnum ((mbc).wc)) #define mb_isalpha(mbc) ((mbc).wc_valid && iswalpha ((mbc).wc)) #define mb_isblank(mbc) ((mbc).wc_valid && iswblank ((mbc).wc)) #define mb_iscntrl(mbc) ((mbc).wc_valid && iswcntrl ((mbc).wc)) #define mb_isdigit(mbc) ((mbc).wc_valid && iswdigit ((mbc).wc)) #define mb_isgraph(mbc) ((mbc).wc_valid && iswgraph ((mbc).wc)) #define mb_islower(mbc) ((mbc).wc_valid && iswlower ((mbc).wc)) #define mb_isprint(mbc) ((mbc).wc_valid && iswprint ((mbc).wc)) #define mb_ispunct(mbc) ((mbc).wc_valid && iswpunct ((mbc).wc)) #define mb_isspace(mbc) ((mbc).wc_valid && iswspace ((mbc).wc)) #define mb_isupper(mbc) ((mbc).wc_valid && iswupper ((mbc).wc)) #define mb_isxdigit(mbc) ((mbc).wc_valid && iswxdigit ((mbc).wc)) /* Extra function. */ /* Unprintable characters appear as a small box of width 1. */ #define MB_UNPRINTABLE_WIDTH 1 static inline int mb_width_aux (wint_t wc) { int w = wcwidth (wc); /* For unprintable characters, arbitrarily return 0 for control characters and MB_UNPRINTABLE_WIDTH otherwise. */ return (w >= 0 ? w : iswcntrl (wc) ? 0 : MB_UNPRINTABLE_WIDTH); } #define mb_width(mbc) \ ((mbc).wc_valid ? mb_width_aux ((mbc).wc) : MB_UNPRINTABLE_WIDTH) /* Output. */ #define mb_putc(mbc, stream) fwrite ((mbc).ptr, 1, (mbc).bytes, (stream)) /* Assignment. */ #define mb_setascii(mbc, sc) \ ((mbc)->ptr = (mbc)->buf, (mbc)->bytes = 1, (mbc)->wc_valid = 1, \ (mbc)->wc = (mbc)->buf[0] = (sc)) /* Copying a character. */ static inline void mb_copy (mbchar_t *new_mbc, const mbchar_t *old_mbc) { if (old_mbc->ptr == &old_mbc->buf[0]) { memcpy (&new_mbc->buf[0], &old_mbc->buf[0], old_mbc->bytes); new_mbc->ptr = &new_mbc->buf[0]; } else new_mbc->ptr = old_mbc->ptr; new_mbc->bytes = old_mbc->bytes; if ((new_mbc->wc_valid = old_mbc->wc_valid)) new_mbc->wc = old_mbc->wc; } /* is_basic(c) tests whether the single-byte character c is in the ISO C "basic character set". This is a convenience function, and is in this file only to share code between mbiter_multi.h and mbfile_multi.h. */ #if (' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \ && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \ && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \ && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \ && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \ && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \ && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \ && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \ && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \ && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \ && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \ && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \ && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \ && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \ && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \ && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \ && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \ && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \ && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \ && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \ && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \ && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126) /* The character set is ISO-646, not EBCDIC. */ # define IS_BASIC_ASCII 1 extern const unsigned int is_basic_table[]; static inline bool is_basic (char c) { return (is_basic_table [(unsigned char) c >> 5] >> ((unsigned char) c & 31)) & 1; } #else static inline bool is_basic (char c) { switch (c) { case '\t': case '\v': case '\f': case ' ': case '!': case '"': case '#': case '%': case '&': case '\'': case '(': case ')': case '*': case '+': case ',': case '-': case '.': case '/': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case ':': case ';': case '<': case '=': case '>': case '?': case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': case '[': case '\\': case ']': case '^': case '_': case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': case '{': case '|': case '}': case '~': return 1; default: return 0; } } #endif #endif /* _MBCHAR_H */ mlocate-0.26/gnulib/lib/progname.c0000664000175000017500000000333211353206451014013 00000000000000/* Program name management. Copyright (C) 2001-2003, 2005-2006 Free Software Foundation, Inc. Written by Bruno Haible , 2001. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include /* Specification. */ #undef ENABLE_RELOCATABLE /* avoid defining set_program_name as a macro */ #include "progname.h" #include /* String containing name the program is called with. To be initialized by main(). */ const char *program_name = NULL; /* Set program_name, based on argv[0]. */ void set_program_name (const char *argv0) { /* libtool creates a temporary executable whose name is sometimes prefixed with "lt-" (depends on the platform). It also makes argv[0] absolute. Remove this "/.libs/" or "/.libs/lt-" prefix here. */ const char *slash; const char *base; slash = strrchr (argv0, '/'); base = (slash != NULL ? slash + 1 : argv0); if (base - argv0 >= 7 && memcmp (base - 7, "/.libs/", 7) == 0) argv0 = base; if (strncmp (base, "lt-", 3) == 0) argv0 = base + 3; program_name = argv0; } mlocate-0.26/gnulib/lib/localcharset.h0000664000175000017500000000253011353206451014653 00000000000000/* Determine a canonical name for the current locale's character encoding. Copyright (C) 2000-2003 Free Software Foundation, Inc. This file is part of the GNU CHARSET Library. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _LOCALCHARSET_H #define _LOCALCHARSET_H #ifdef __cplusplus extern "C" { #endif /* Determine the current locale's character encoding, and canonicalize it into one of the canonical names listed in config.charset. The result must not be freed; it is statically allocated. If the canonical name cannot be determined, the result is a non-canonical name. */ extern const char * locale_charset (void); #ifdef __cplusplus } #endif #endif /* _LOCALCHARSET_H */ mlocate-0.26/gnulib/lib/strchrnul.c0000664000175000017500000000202111353206451014221 00000000000000/* Searching in a string. Copyright (C) 2003, 2007 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include /* Specification. */ #include /* Find the first occurrence of C in S or the final NUL byte. */ char * strchrnul (const char *s, int c_in) { char c = c_in; while (*s && (*s != c)) s++; return (char *) s; } mlocate-0.26/gnulib/lib/wchar.in.h0000664000175000017500000000445011353206451013723 00000000000000/* A substitute for ISO C99 , for platforms that have issues. Copyright (C) 2007 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Eric Blake. */ /* * ISO C 99 for platforms that have issues. * * * For now, this just ensures proper prerequisite inclusion order and * the declaration of wcwidth(). */ #ifndef _GL_WCHAR_H /* Tru64 with Desktop Toolkit C has a bug: must be included before . BSD/OS 4.0.1 has a bug: , and must be included before . */ #include #include #include /* Include the original if it exists. Some builds of uClibc lack it. */ /* The include_next requires a split double-inclusion guard. */ #if @HAVE_WCHAR_H@ # @INCLUDE_NEXT@ @NEXT_WCHAR_H@ #endif #ifndef _GL_WCHAR_H #define _GL_WCHAR_H /* The definition of GL_LINK_WARNING is copied here. */ #ifdef __cplusplus extern "C" { #endif /* Return the number of screen columns needed for WC. */ #if @GNULIB_WCWIDTH@ # if @REPLACE_WCWIDTH@ # undef wcwidth # define wcwidth rpl_wcwidth extern int wcwidth (wchar_t); # else # if !defined wcwidth && !@HAVE_DECL_WCWIDTH@ /* wcwidth exists but is not declared. */ extern int wcwidth (int /* actually wchar_t */); # endif # endif #elif defined GNULIB_POSIXCHECK # undef wcwidth # define wcwidth(w) \ (GL_LINK_WARNING ("wcwidth is unportable - " \ "use gnulib module wcwidth for portability"), \ wcwidth (w)) #endif #ifdef __cplusplus } #endif #endif /* _GL_WCHAR_H */ #endif /* _GL_WCHAR_H */ mlocate-0.26/gnulib/lib/pathmax.h0000664000175000017500000000270011353206451013650 00000000000000/* Define PATH_MAX somehow. Requires sys/types.h. Copyright (C) 1992, 1999, 2001, 2003, 2005 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _PATHMAX_H # define _PATHMAX_H # include # include # ifndef _POSIX_PATH_MAX # define _POSIX_PATH_MAX 256 # endif # if !defined PATH_MAX && defined _PC_PATH_MAX # define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 \ : pathconf ("/", _PC_PATH_MAX)) # endif /* Don't include sys/param.h if it already has been. */ # if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN # include # endif # if !defined PATH_MAX && defined MAXPATHLEN # define PATH_MAX MAXPATHLEN # endif # ifndef PATH_MAX # define PATH_MAX _POSIX_PATH_MAX # endif #endif /* _PATHMAX_H */ mlocate-0.26/gnulib/lib/mbslen.c0000664000175000017500000000254311353206451013466 00000000000000/* Counting the multibyte characters in a string. Copyright (C) 2007 Free Software Foundation, Inc. Written by Bruno Haible , 2007. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include /* Specification. */ #include #include #if HAVE_MBRTOWC # include "mbuiter.h" #endif /* Return the number of multibyte characters in the character string STRING. */ size_t mbslen (const char *string) { #if HAVE_MBRTOWC if (MB_CUR_MAX > 1) { size_t count; mbui_iterator_t iter; count = 0; for (mbui_init (iter, string); mbui_avail (iter); mbui_advance (iter)) count++; return count; } else #endif return strlen (string); } mlocate-0.26/gnulib/lib/mempcpy.c0000664000175000017500000000210011353206451013645 00000000000000/* Copy memory area and return pointer after last written byte. Copyright (C) 2003, 2007 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include /* Specification. */ #include /* Copy N bytes of SRC to DEST, return pointer to bytes after the last written byte. */ void * mempcpy (void *dest, const void *src, size_t n) { return (char *) memcpy (dest, src, n) + n; } mlocate-0.26/gnulib/lib/unistd.in.h0000664000175000017500000002020511353206451014121 00000000000000/* Substitute for and wrapper around . Copyright (C) 2004-2007 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _GL_UNISTD_H /* The include_next requires a split double-inclusion guard. */ #if @HAVE_UNISTD_H@ # @INCLUDE_NEXT@ @NEXT_UNISTD_H@ #endif #ifndef _GL_UNISTD_H #define _GL_UNISTD_H /* mingw doesn't define the SEEK_* macros in . */ #if !(defined SEEK_CUR && defined SEEK_END && defined SEEK_SET) # include #endif /* mingw fails to declare _exit in . */ #include /* The definition of GL_LINK_WARNING is copied here. */ /* Declare overridden functions. */ #ifdef __cplusplus extern "C" { #endif #if @GNULIB_CHOWN@ # if @REPLACE_CHOWN@ # ifndef REPLACE_CHOWN # define REPLACE_CHOWN 1 # endif # if REPLACE_CHOWN /* Change the owner of FILE to UID (if UID is not -1) and the group of FILE to GID (if GID is not -1). Follow symbolic links. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ # define chown rpl_chown extern int chown (const char *file, uid_t uid, gid_t gid); # endif # endif #elif defined GNULIB_POSIXCHECK # undef chown # define chown(f,u,g) \ (GL_LINK_WARNING ("chown fails to follow symlinks on some systems and " \ "doesn't treat a uid or gid of -1 on some systems - " \ "use gnulib module chown for portability"), \ chown (f, u, g)) #endif #if @GNULIB_DUP2@ # if !@HAVE_DUP2@ /* Copy the file descriptor OLDFD into file descriptor NEWFD. Do nothing if NEWFD = OLDFD, otherwise close NEWFD first if it is open. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ extern int dup2 (int oldfd, int newfd); # endif #elif defined GNULIB_POSIXCHECK # undef dup2 # define dup2(o,n) \ (GL_LINK_WARNING ("dup2 is unportable - " \ "use gnulib module dup2 for portability"), \ dup2 (o, n)) #endif #if @GNULIB_FCHDIR@ # if @REPLACE_FCHDIR@ /* Change the process' current working directory to the directory on which the given file descriptor is open. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ extern int fchdir (int /*fd*/); # define close rpl_close extern int close (int); # define dup rpl_dup extern int dup (int); # define dup2 rpl_dup2 extern int dup2 (int, int); # endif #elif defined GNULIB_POSIXCHECK # undef fchdir # define fchdir(f) \ (GL_LINK_WARNING ("fchdir is unportable - " \ "use gnulib module fchdir for portability"), \ fchdir (f)) #endif #if @GNULIB_FTRUNCATE@ # if !@HAVE_FTRUNCATE@ /* Change the size of the file to which FD is opened to become equal to LENGTH. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ extern int ftruncate (int fd, off_t length); # endif #elif defined GNULIB_POSIXCHECK # undef ftruncate # define ftruncate(f,l) \ (GL_LINK_WARNING ("ftruncate is unportable - " \ "use gnulib module ftruncate for portability"), \ ftruncate (f, l)) #endif #if @GNULIB_GETCWD@ /* Include the headers that might declare getcwd so that they will not cause confusion if included after this file. */ # include # if @REPLACE_GETCWD@ /* Get the name of the current working directory, and put it in SIZE bytes of BUF. Return BUF if successful, or NULL if the directory couldn't be determined or SIZE was too small. See the POSIX:2001 specification . Additionally, the gnulib module 'getcwd' guarantees the following GNU extension: If BUF is NULL, an array is allocated with 'malloc'; the array is SIZE bytes long, unless SIZE == 0, in which case it is as big as necessary. */ # define getcwd rpl_getcwd extern char * getcwd (char *buf, size_t size); # endif #elif defined GNULIB_POSIXCHECK # undef getcwd # define getcwd(b,s) \ (GL_LINK_WARNING ("getcwd is unportable - " \ "use gnulib module getcwd for portability"), \ getcwd (b, s)) #endif #if @GNULIB_GETLOGIN_R@ /* Copies the user's login name to NAME. The array pointed to by NAME has room for SIZE bytes. Returns 0 if successful. Upon error, an error number is returned, or -1 in the case that the login name cannot be found but no specific error is provided (this case is hopefully rare but is left open by the POSIX spec). See . */ # if !@HAVE_DECL_GETLOGIN_R@ # include extern int getlogin_r (char *name, size_t size); # endif #elif defined GNULIB_POSIXCHECK # undef getlogin_r # define getlogin_r(n,s) \ (GL_LINK_WARNING ("getlogin_r is unportable - " \ "use gnulib module getlogin_r for portability"), \ getlogin_r (n, s)) #endif #if @GNULIB_LCHOWN@ # if @REPLACE_LCHOWN@ /* Change the owner of FILE to UID (if UID is not -1) and the group of FILE to GID (if GID is not -1). Do not follow symbolic links. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ # define lchown rpl_lchown extern int lchown (char const *file, uid_t owner, gid_t group); # endif #elif defined GNULIB_POSIXCHECK # undef lchown # define lchown(f,u,g) \ (GL_LINK_WARNING ("lchown is unportable to pre-POSIX.1-2001 " \ "systems - use gnulib module lchown for portability"), \ lchown (f, u, g)) #endif #if @GNULIB_LSEEK@ # if @REPLACE_LSEEK@ /* Set the offset of FD relative to SEEK_SET, SEEK_CUR, or SEEK_END. Return the new offset if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ # define lseek rpl_lseek extern off_t lseek (int fd, off_t offset, int whence); # endif #elif defined GNULIB_POSIXCHECK # undef lseek # define lseek(f,o,w) \ (GL_LINK_WARNING ("lseek does not fail with ESPIPE on pipes on some " \ "systems - use gnulib module lseek for portability"), \ lseek (f, o, w)) #endif #if @GNULIB_READLINK@ /* Read the contents of the symbolic link FILE and place the first BUFSIZE bytes of it into BUF. Return the number of bytes placed into BUF if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ # if !@HAVE_READLINK@ # include extern int readlink (const char *file, char *buf, size_t bufsize); # endif #elif defined GNULIB_POSIXCHECK # undef readlink # define readlink(f,b,s) \ (GL_LINK_WARNING ("readlink is unportable - " \ "use gnulib module readlink for portability"), \ readlink (f, b, s)) #endif #if @GNULIB_SLEEP@ /* Pause the execution of the current thread for N seconds. Returns the number of seconds left to sleep. See the POSIX:2001 specification . */ # if !@HAVE_SLEEP@ extern unsigned int sleep (unsigned int n); # endif #elif defined GNULIB_POSIXCHECK # undef sleep # define sleep(n) \ (GL_LINK_WARNING ("sleep is unportable - " \ "use gnulib module sleep for portability"), \ sleep (n)) #endif #ifdef __cplusplus } #endif #endif /* _GL_UNISTD_H */ #endif /* _GL_UNISTD_H */ mlocate-0.26/gnulib/lib/readlink.c0000664000175000017500000000313311353206451013773 00000000000000/* Stub for readlink(). Copyright (C) 2003-2007 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include /* Specification. */ #include #include #include #include #include #if !HAVE_READLINK /* readlink() substitute for systems that don't have a readlink() function, such as DJGPP 2.03 and mingw32. */ /* The official POSIX return type of readlink() is ssize_t, but since here we have no declaration in a public header file, we use 'int' as return type. */ int readlink (const char *path, char *buf, size_t bufsize) { struct stat statbuf; /* In general we should use lstat() here, not stat(). But on platforms without symbolic links lstat() - if it exists - would be equivalent to stat(), therefore we can use stat(). This saves us a configure check. */ if (stat (path, &statbuf) >= 0) errno = EINVAL; return -1; } #endif mlocate-0.26/gnulib/lib/getopt_int.h0000664000175000017500000001127411353206451014370 00000000000000/* Internal declarations for getopt. Copyright (C) 1989-1994,1996-1999,2001,2003,2004 Free Software Foundation, Inc. This file is part of the GNU C Library. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _GETOPT_INT_H #define _GETOPT_INT_H 1 extern int _getopt_internal (int ___argc, char **___argv, const char *__shortopts, const struct option *__longopts, int *__longind, int __long_only, int __posixly_correct); /* Reentrant versions which can handle parsing multiple argument vectors at the same time. */ /* Data type for reentrant functions. */ struct _getopt_data { /* These have exactly the same meaning as the corresponding global variables, except that they are used for the reentrant versions of getopt. */ int optind; int opterr; int optopt; char *optarg; /* Internal members. */ /* True if the internal members have been initialized. */ int __initialized; /* The next char to be scanned in the option-element in which the last option character we returned was found. This allows us to pick up the scan where we left off. If this is zero, or a null string, it means resume the scan by advancing to the next ARGV-element. */ char *__nextchar; /* Describe how to deal with options that follow non-option ARGV-elements. If the caller did not specify anything, the default is REQUIRE_ORDER if the environment variable POSIXLY_CORRECT is defined, PERMUTE otherwise. REQUIRE_ORDER means don't recognize them as options; stop option processing when the first non-option is seen. This is what Unix does. This mode of operation is selected by either setting the environment variable POSIXLY_CORRECT, or using `+' as the first character of the list of option characters, or by calling getopt. PERMUTE is the default. We permute the contents of ARGV as we scan, so that eventually all the non-options are at the end. This allows options to be given in any order, even with programs that were not written to expect this. RETURN_IN_ORDER is an option available to programs that were written to expect options and other ARGV-elements in any order and that care about the ordering of the two. We describe each non-option ARGV-element as if it were the argument of an option with character code 1. Using `-' as the first character of the list of option characters selects this mode of operation. The special argument `--' forces an end of option-scanning regardless of the value of `ordering'. In the case of RETURN_IN_ORDER, only `--' can cause `getopt' to return -1 with `optind' != ARGC. */ enum { REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER } __ordering; /* If the POSIXLY_CORRECT environment variable is set or getopt was called. */ int __posixly_correct; /* Handle permutation of arguments. */ /* Describe the part of ARGV that contains non-options that have been skipped. `first_nonopt' is the index in ARGV of the first of them; `last_nonopt' is the index after the last of them. */ int __first_nonopt; int __last_nonopt; #if defined _LIBC && defined USE_NONOPTION_FLAGS int __nonoption_flags_max_len; int __nonoption_flags_len; # endif }; /* The initializer is necessary to set OPTIND and OPTERR to their default values and to clear the initialization flag. */ #define _GETOPT_DATA_INITIALIZER { 1, 1 } extern int _getopt_internal_r (int ___argc, char **___argv, const char *__shortopts, const struct option *__longopts, int *__longind, int __long_only, int __posixly_correct, struct _getopt_data *__data); extern int _getopt_long_r (int ___argc, char **___argv, const char *__shortopts, const struct option *__longopts, int *__longind, struct _getopt_data *__data); extern int _getopt_long_only_r (int ___argc, char **___argv, const char *__shortopts, const struct option *__longopts, int *__longind, struct _getopt_data *__data); #endif /* getopt_int.h */ mlocate-0.26/gnulib/lib/malloca.valgrind0000664000175000017500000000025711353206451015202 00000000000000# Suppress a valgrind message about use of uninitialized memory in freea(). # This use is OK because it provides only a speedup. { freea Memcheck:Cond fun:freea } mlocate-0.26/gnulib/lib/strnlen1.h0000664000175000017500000000234011353206451013754 00000000000000/* Find the length of STRING + 1, but scan at most MAXLEN bytes. Copyright (C) 2005 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _STRNLEN1_H #define _STRNLEN1_H #include #ifdef __cplusplus extern "C" { #endif /* Find the length of STRING + 1, but scan at most MAXLEN bytes. If no '\0' terminator is found in that many characters, return MAXLEN. */ /* This is the same as strnlen (string, maxlen - 1) + 1. */ extern size_t strnlen1 (const char *string, size_t maxlen); #ifdef __cplusplus } #endif #endif /* _STRNLEN1_H */ mlocate-0.26/gnulib/lib/safe-read.c0000664000175000017500000000421511353206451014033 00000000000000/* An interface to read and write that retries after interrupts. Copyright (C) 1993, 1994, 1998, 2002, 2003, 2004, 2005, 2006 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include /* Specification. */ #ifdef SAFE_WRITE # include "safe-write.h" #else # include "safe-read.h" #endif /* Get ssize_t. */ #include #include #include #ifdef EINTR # define IS_EINTR(x) ((x) == EINTR) #else # define IS_EINTR(x) 0 #endif #include #ifdef SAFE_WRITE # define safe_rw safe_write # define rw write #else # define safe_rw safe_read # define rw read # undef const # define const /* empty */ #endif /* Read(write) up to COUNT bytes at BUF from(to) descriptor FD, retrying if interrupted. Return the actual number of bytes read(written), zero for EOF, or SAFE_READ_ERROR(SAFE_WRITE_ERROR) upon error. */ size_t safe_rw (int fd, void const *buf, size_t count) { /* Work around a bug in Tru64 5.1. Attempting to read more than INT_MAX bytes fails with errno == EINVAL. See . When decreasing COUNT, keep it block-aligned. */ enum { BUGGY_READ_MAXIMUM = INT_MAX & ~8191 }; for (;;) { ssize_t result = rw (fd, buf, count); if (0 <= result) return result; else if (IS_EINTR (errno)) continue; else if (errno == EINVAL && BUGGY_READ_MAXIMUM < count) count = BUGGY_READ_MAXIMUM; else return result; } } mlocate-0.26/gnulib/lib/mbuiter.h0000664000175000017500000001641311353206451013663 00000000000000/* Iterating through multibyte strings: macros for multi-byte encodings. Copyright (C) 2001, 2005, 2007 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, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Written by Bruno Haible . */ /* The macros in this file implement forward iteration through a multi-byte string, without knowing its length a-priori. With these macros, an iteration loop that looks like char *iter; for (iter = buf; *iter != '\0'; iter++) { do_something (*iter); } becomes mbui_iterator_t iter; for (mbui_init (iter, buf); mbui_avail (iter); mbui_advance (iter)) { do_something (mbui_cur_ptr (iter), mb_len (mbui_cur (iter))); } The benefit of these macros over plain use of mbrtowc is: - Handling of invalid multibyte sequences is possible without making the code more complicated, while still preserving the invalid multibyte sequences. Compared to mbiter.h, the macros here don't need to know the string's length a-priori. The downside is that at each step, the look-ahead that guards against overrunning the terminating '\0' is more expensive. The mbui_* macros are therefore suitable when there is a high probability that only the first few multibyte characters need to be inspected. Whereas the mbi_* macros are better if usually the iteration runs through the entire string. mbui_iterator_t is a type usable for variable declarations. mbui_init (iter, startptr) initializes the iterator, starting at startptr. mbui_avail (iter) returns true if there are more multibyte chracters available before the end of string is reached. In this case, mbui_cur (iter) is initialized to the next multibyte chracter. mbui_advance (iter) advances the iterator by one multibyte character. mbui_cur (iter) returns the current multibyte character, of type mbchar_t. All the macros defined in mbchar.h can be used on it. mbui_cur_ptr (iter) return a pointer to the beginning of the current multibyte character. mbui_reloc (iter, ptrdiff) relocates iterator when the string is moved by ptrdiff bytes. mbui_copy (&destiter, &srciter) copies srciter to destiter. Here are the function prototypes of the macros. extern void mbui_init (mbui_iterator_t iter, const char *startptr); extern bool mbui_avail (mbui_iterator_t iter); extern void mbui_advance (mbui_iterator_t iter); extern mbchar_t mbui_cur (mbui_iterator_t iter); extern const char * mbui_cur_ptr (mbui_iterator_t iter); extern void mbui_reloc (mbui_iterator_t iter, ptrdiff_t ptrdiff); extern void mbui_copy (mbui_iterator_t *new, const mbui_iterator_t *old); */ #ifndef _MBUITER_H #define _MBUITER_H 1 #include #include #include #include #include /* Tru64 with Desktop Toolkit C has a bug: must be included before . BSD/OS 4.1 has a bug: and must be included before . */ #include #include #include #include "mbchar.h" #include "strnlen1.h" struct mbuiter_multi { bool in_shift; /* true if next byte may not be interpreted as ASCII */ mbstate_t state; /* if in_shift: current shift state */ bool next_done; /* true if mbui_avail has already filled the following */ struct mbchar cur; /* the current character: const char *cur.ptr pointer to current character The following are only valid after mbui_avail. size_t cur.bytes number of bytes of current character bool cur.wc_valid true if wc is a valid wide character wchar_t cur.wc if wc_valid: the current character */ }; static inline void mbuiter_multi_next (struct mbuiter_multi *iter) { if (iter->next_done) return; if (iter->in_shift) goto with_shift; /* Handle most ASCII characters quickly, without calling mbrtowc(). */ if (is_basic (*iter->cur.ptr)) { /* These characters are part of the basic character set. ISO C 99 guarantees that their wide character code is identical to their char code. */ iter->cur.bytes = 1; iter->cur.wc = *iter->cur.ptr; iter->cur.wc_valid = true; } else { assert (mbsinit (&iter->state)); iter->in_shift = true; with_shift: iter->cur.bytes = mbrtowc (&iter->cur.wc, iter->cur.ptr, strnlen1 (iter->cur.ptr, MB_CUR_MAX), &iter->state); if (iter->cur.bytes == (size_t) -1) { /* An invalid multibyte sequence was encountered. */ iter->cur.bytes = 1; iter->cur.wc_valid = false; /* Whether to set iter->in_shift = false and reset iter->state or not is not very important; the string is bogus anyway. */ } else if (iter->cur.bytes == (size_t) -2) { /* An incomplete multibyte character at the end. */ iter->cur.bytes = strlen (iter->cur.ptr); iter->cur.wc_valid = false; /* Whether to set iter->in_shift = false and reset iter->state or not is not important; the string end is reached anyway. */ } else { if (iter->cur.bytes == 0) { /* A null wide character was encountered. */ iter->cur.bytes = 1; assert (*iter->cur.ptr == '\0'); assert (iter->cur.wc == 0); } iter->cur.wc_valid = true; /* When in the initial state, we can go back treating ASCII characters more quickly. */ if (mbsinit (&iter->state)) iter->in_shift = false; } } iter->next_done = true; } static inline void mbuiter_multi_reloc (struct mbuiter_multi *iter, ptrdiff_t ptrdiff) { iter->cur.ptr += ptrdiff; } static inline void mbuiter_multi_copy (struct mbuiter_multi *new_iter, const struct mbuiter_multi *old_iter) { if ((new_iter->in_shift = old_iter->in_shift)) memcpy (&new_iter->state, &old_iter->state, sizeof (mbstate_t)); else memset (&new_iter->state, 0, sizeof (mbstate_t)); new_iter->next_done = old_iter->next_done; mb_copy (&new_iter->cur, &old_iter->cur); } /* Iteration macros. */ typedef struct mbuiter_multi mbui_iterator_t; #define mbui_init(iter, startptr) \ ((iter).cur.ptr = (startptr), \ (iter).in_shift = false, memset (&(iter).state, '\0', sizeof (mbstate_t)), \ (iter).next_done = false) #define mbui_avail(iter) \ (mbuiter_multi_next (&(iter)), !mb_isnul ((iter).cur)) #define mbui_advance(iter) \ ((iter).cur.ptr += (iter).cur.bytes, (iter).next_done = false) /* Access to the current character. */ #define mbui_cur(iter) (iter).cur #define mbui_cur_ptr(iter) (iter).cur.ptr /* Relocation. */ #define mbui_reloc(iter, ptrdiff) mbuiter_multi_reloc (&iter, ptrdiff) /* Copying an iterator. */ #define mbui_copy mbuiter_multi_copy #endif /* _MBUITER_H */ mlocate-0.26/gnulib/lib/ref-del.sin0000664000175000017500000000177411353206451014100 00000000000000# Remove this package from a list of references stored in a text file. # # Copyright (C) 2000 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, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # Written by Bruno Haible . # /^# Packages using this file: / { s/# Packages using this file:// s/ @PACKAGE@ / / s/^/# Packages using this file:/ } mlocate-0.26/gnulib/lib/fwriteerror.h0000664000175000017500000000514011353206451014561 00000000000000/* Detect write error on a stream. Copyright (C) 2003, 2005-2006 Free Software Foundation, Inc. Written by Bruno Haible , 2003. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* There are two approaches for detecting a write error on a stream opened for writing: (a) Test the return value of every fwrite() or fprintf() call, and react immediately. (b) Just before fclose(), test the error indicator in the stream and the return value of the final fclose() call. The benefit of (a) is that non file related errors (such that ENOMEM during fprintf) and temporary error conditions can be diagnosed accurately. A theoretical benefit of (a) is also that, on POSIX systems, in the case of an ENOSPC error, errno is set and can be used by error() to provide a more accurate error message. But in practice, this benefit is not big because users can easily figure out by themselves why a file cannot be written to, and furthermore the function fwriteerror() can provide errno as well. The big drawback of (a) is extensive error checking code: Every function which does stream output must return an error indicator. This file provides support for (b). */ #include #ifdef __cplusplus extern "C" { #endif /* Write out the not yet written buffered contents of the stream FP, close the stream FP, and test whether some error occurred on the stream FP. FP must be a stream opened for writing. Return 0 if no error occurred and fclose (fp) succeeded. Return -1 and set errno if there was an error. The errno value will be 0 if the cause of the error cannot be determined. For any given stream FP other than stdout, fwriteerror (FP) may only be called once. */ extern int fwriteerror (FILE *fp); /* Likewise, but don't consider it an error if FP has an invalid file descriptor and no output was done to FP. */ extern int fwriteerror_no_ebadf (FILE *fp); #ifdef __cplusplus } #endif mlocate-0.26/gnulib/lib/exitfail.h0000664000175000017500000000150311353206451014013 00000000000000/* Failure exit status Copyright (C) 2002 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; see the file COPYING. If not, write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ extern int volatile exit_failure; mlocate-0.26/gnulib/lib/getopt.c0000664000175000017500000007656511353206451013527 00000000000000/* Getopt for GNU. NOTE: getopt is now part of the C library, so if you don't know what "Keep this file name-space clean" means, talk to drepper@gnu.org before changing it! Copyright (C) 1987,88,89,90,91,92,93,94,95,96,98,99,2000,2001,2002,2003,2004,2006 Free Software Foundation, Inc. This file is part of the GNU C Library. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _LIBC # include #endif #include "getopt.h" #include #include #include #include #ifdef __VMS # include #endif #ifdef _LIBC # include #else # include "gettext.h" # define _(msgid) gettext (msgid) #endif #if defined _LIBC && defined USE_IN_LIBIO # include #endif #ifndef attribute_hidden # define attribute_hidden #endif /* Unlike standard Unix `getopt', functions like `getopt_long' let the user intersperse the options with the other arguments. As `getopt_long' works, it permutes the elements of ARGV so that, when it is done, all the options precede everything else. Thus all application programs are extended to handle flexible argument order. Using `getopt' or setting the environment variable POSIXLY_CORRECT disables permutation. Then the application's behavior is completely standard. GNU application programs can use a third alternative mode in which they can distinguish the relative order of options and other arguments. */ #include "getopt_int.h" /* For communication from `getopt' to the caller. When `getopt' finds an option that takes an argument, the argument value is returned here. Also, when `ordering' is RETURN_IN_ORDER, each non-option ARGV-element is returned here. */ char *optarg; /* Index in ARGV of the next element to be scanned. This is used for communication to and from the caller and for communication between successive calls to `getopt'. On entry to `getopt', zero means this is the first call; initialize. When `getopt' returns -1, this is the index of the first of the non-option elements that the caller should itself scan. Otherwise, `optind' communicates from one call to the next how much of ARGV has been scanned so far. */ /* 1003.2 says this must be 1 before any call. */ int optind = 1; /* Callers store zero here to inhibit the error message for unrecognized options. */ int opterr = 1; /* Set to an option character which was unrecognized. This must be initialized on some systems to avoid linking in the system's own getopt implementation. */ int optopt = '?'; /* Keep a global copy of all internal members of getopt_data. */ static struct _getopt_data getopt_data; #if defined HAVE_DECL_GETENV && !HAVE_DECL_GETENV extern char *getenv (); #endif #ifdef _LIBC /* Stored original parameters. XXX This is no good solution. We should rather copy the args so that we can compare them later. But we must not use malloc(3). */ extern int __libc_argc; extern char **__libc_argv; /* Bash 2.0 gives us an environment variable containing flags indicating ARGV elements that should not be considered arguments. */ # ifdef USE_NONOPTION_FLAGS /* Defined in getopt_init.c */ extern char *__getopt_nonoption_flags; # endif # ifdef USE_NONOPTION_FLAGS # define SWAP_FLAGS(ch1, ch2) \ if (d->__nonoption_flags_len > 0) \ { \ char __tmp = __getopt_nonoption_flags[ch1]; \ __getopt_nonoption_flags[ch1] = __getopt_nonoption_flags[ch2]; \ __getopt_nonoption_flags[ch2] = __tmp; \ } # else # define SWAP_FLAGS(ch1, ch2) # endif #else /* !_LIBC */ # define SWAP_FLAGS(ch1, ch2) #endif /* _LIBC */ /* Exchange two adjacent subsequences of ARGV. One subsequence is elements [first_nonopt,last_nonopt) which contains all the non-options that have been skipped so far. The other is elements [last_nonopt,optind), which contains all the options processed since those non-options were skipped. `first_nonopt' and `last_nonopt' are relocated so that they describe the new indices of the non-options in ARGV after they are moved. */ static void exchange (char **argv, struct _getopt_data *d) { int bottom = d->__first_nonopt; int middle = d->__last_nonopt; int top = d->optind; char *tem; /* Exchange the shorter segment with the far end of the longer segment. That puts the shorter segment into the right place. It leaves the longer segment in the right place overall, but it consists of two parts that need to be swapped next. */ #if defined _LIBC && defined USE_NONOPTION_FLAGS /* First make sure the handling of the `__getopt_nonoption_flags' string can work normally. Our top argument must be in the range of the string. */ if (d->__nonoption_flags_len > 0 && top >= d->__nonoption_flags_max_len) { /* We must extend the array. The user plays games with us and presents new arguments. */ char *new_str = malloc (top + 1); if (new_str == NULL) d->__nonoption_flags_len = d->__nonoption_flags_max_len = 0; else { memset (__mempcpy (new_str, __getopt_nonoption_flags, d->__nonoption_flags_max_len), '\0', top + 1 - d->__nonoption_flags_max_len); d->__nonoption_flags_max_len = top + 1; __getopt_nonoption_flags = new_str; } } #endif while (top > middle && middle > bottom) { if (top - middle > middle - bottom) { /* Bottom segment is the short one. */ int len = middle - bottom; register int i; /* Swap it with the top part of the top segment. */ for (i = 0; i < len; i++) { tem = argv[bottom + i]; argv[bottom + i] = argv[top - (middle - bottom) + i]; argv[top - (middle - bottom) + i] = tem; SWAP_FLAGS (bottom + i, top - (middle - bottom) + i); } /* Exclude the moved bottom segment from further swapping. */ top -= len; } else { /* Top segment is the short one. */ int len = top - middle; register int i; /* Swap it with the bottom part of the bottom segment. */ for (i = 0; i < len; i++) { tem = argv[bottom + i]; argv[bottom + i] = argv[middle + i]; argv[middle + i] = tem; SWAP_FLAGS (bottom + i, middle + i); } /* Exclude the moved top segment from further swapping. */ bottom += len; } } /* Update records for the slots the non-options now occupy. */ d->__first_nonopt += (d->optind - d->__last_nonopt); d->__last_nonopt = d->optind; } /* Initialize the internal data when the first call is made. */ static const char * _getopt_initialize (int argc, char **argv, const char *optstring, int posixly_correct, struct _getopt_data *d) { /* Start processing options with ARGV-element 1 (since ARGV-element 0 is the program name); the sequence of previously skipped non-option ARGV-elements is empty. */ d->__first_nonopt = d->__last_nonopt = d->optind; d->__nextchar = NULL; d->__posixly_correct = posixly_correct || !!getenv ("POSIXLY_CORRECT"); /* Determine how to handle the ordering of options and nonoptions. */ if (optstring[0] == '-') { d->__ordering = RETURN_IN_ORDER; ++optstring; } else if (optstring[0] == '+') { d->__ordering = REQUIRE_ORDER; ++optstring; } else if (d->__posixly_correct) d->__ordering = REQUIRE_ORDER; else d->__ordering = PERMUTE; #if defined _LIBC && defined USE_NONOPTION_FLAGS if (!d->__posixly_correct && argc == __libc_argc && argv == __libc_argv) { if (d->__nonoption_flags_max_len == 0) { if (__getopt_nonoption_flags == NULL || __getopt_nonoption_flags[0] == '\0') d->__nonoption_flags_max_len = -1; else { const char *orig_str = __getopt_nonoption_flags; int len = d->__nonoption_flags_max_len = strlen (orig_str); if (d->__nonoption_flags_max_len < argc) d->__nonoption_flags_max_len = argc; __getopt_nonoption_flags = (char *) malloc (d->__nonoption_flags_max_len); if (__getopt_nonoption_flags == NULL) d->__nonoption_flags_max_len = -1; else memset (__mempcpy (__getopt_nonoption_flags, orig_str, len), '\0', d->__nonoption_flags_max_len - len); } } d->__nonoption_flags_len = d->__nonoption_flags_max_len; } else d->__nonoption_flags_len = 0; #endif return optstring; } /* Scan elements of ARGV (whose length is ARGC) for option characters given in OPTSTRING. If an element of ARGV starts with '-', and is not exactly "-" or "--", then it is an option element. The characters of this element (aside from the initial '-') are option characters. If `getopt' is called repeatedly, it returns successively each of the option characters from each of the option elements. If `getopt' finds another option character, it returns that character, updating `optind' and `nextchar' so that the next call to `getopt' can resume the scan with the following option character or ARGV-element. If there are no more option characters, `getopt' returns -1. Then `optind' is the index in ARGV of the first ARGV-element that is not an option. (The ARGV-elements have been permuted so that those that are not options now come last.) OPTSTRING is a string containing the legitimate option characters. If an option character is seen that is not listed in OPTSTRING, return '?' after printing an error message. If you set `opterr' to zero, the error message is suppressed but we still return '?'. If a char in OPTSTRING is followed by a colon, that means it wants an arg, so the following text in the same ARGV-element, or the text of the following ARGV-element, is returned in `optarg'. Two colons mean an option that wants an optional arg; if there is text in the current ARGV-element, it is returned in `optarg', otherwise `optarg' is set to zero. If OPTSTRING starts with `-' or `+', it requests different methods of handling the non-option ARGV-elements. See the comments about RETURN_IN_ORDER and REQUIRE_ORDER, above. Long-named options begin with `--' instead of `-'. Their names may be abbreviated as long as the abbreviation is unique or is an exact match for some defined option. If they have an argument, it follows the option name in the same ARGV-element, separated from the option name by a `=', or else the in next ARGV-element. When `getopt' finds a long-named option, it returns 0 if that option's `flag' field is nonzero, the value of the option's `val' field if the `flag' field is zero. LONGOPTS is a vector of `struct option' terminated by an element containing a name which is zero. LONGIND returns the index in LONGOPT of the long-named option found. It is only valid when a long-named option has been found by the most recent call. If LONG_ONLY is nonzero, '-' as well as '--' can introduce long-named options. If POSIXLY_CORRECT is nonzero, behave as if the POSIXLY_CORRECT environment variable were set. */ int _getopt_internal_r (int argc, char **argv, const char *optstring, const struct option *longopts, int *longind, int long_only, int posixly_correct, struct _getopt_data *d) { int print_errors = d->opterr; if (optstring[0] == ':') print_errors = 0; if (argc < 1) return -1; d->optarg = NULL; if (d->optind == 0 || !d->__initialized) { if (d->optind == 0) d->optind = 1; /* Don't scan ARGV[0], the program name. */ optstring = _getopt_initialize (argc, argv, optstring, posixly_correct, d); d->__initialized = 1; } /* Test whether ARGV[optind] points to a non-option argument. Either it does not have option syntax, or there is an environment flag from the shell indicating it is not an option. The later information is only used when the used in the GNU libc. */ #if defined _LIBC && defined USE_NONOPTION_FLAGS # define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0' \ || (d->optind < d->__nonoption_flags_len \ && __getopt_nonoption_flags[d->optind] == '1')) #else # define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0') #endif if (d->__nextchar == NULL || *d->__nextchar == '\0') { /* Advance to the next ARGV-element. */ /* Give FIRST_NONOPT & LAST_NONOPT rational values if OPTIND has been moved back by the user (who may also have changed the arguments). */ if (d->__last_nonopt > d->optind) d->__last_nonopt = d->optind; if (d->__first_nonopt > d->optind) d->__first_nonopt = d->optind; if (d->__ordering == PERMUTE) { /* If we have just processed some options following some non-options, exchange them so that the options come first. */ if (d->__first_nonopt != d->__last_nonopt && d->__last_nonopt != d->optind) exchange ((char **) argv, d); else if (d->__last_nonopt != d->optind) d->__first_nonopt = d->optind; /* Skip any additional non-options and extend the range of non-options previously skipped. */ while (d->optind < argc && NONOPTION_P) d->optind++; d->__last_nonopt = d->optind; } /* The special ARGV-element `--' means premature end of options. Skip it like a null option, then exchange with previous non-options as if it were an option, then skip everything else like a non-option. */ if (d->optind != argc && !strcmp (argv[d->optind], "--")) { d->optind++; if (d->__first_nonopt != d->__last_nonopt && d->__last_nonopt != d->optind) exchange ((char **) argv, d); else if (d->__first_nonopt == d->__last_nonopt) d->__first_nonopt = d->optind; d->__last_nonopt = argc; d->optind = argc; } /* If we have done all the ARGV-elements, stop the scan and back over any non-options that we skipped and permuted. */ if (d->optind == argc) { /* Set the next-arg-index to point at the non-options that we previously skipped, so the caller will digest them. */ if (d->__first_nonopt != d->__last_nonopt) d->optind = d->__first_nonopt; return -1; } /* If we have come to a non-option and did not permute it, either stop the scan or describe it to the caller and pass it by. */ if (NONOPTION_P) { if (d->__ordering == REQUIRE_ORDER) return -1; d->optarg = argv[d->optind++]; return 1; } /* We have found another option-ARGV-element. Skip the initial punctuation. */ d->__nextchar = (argv[d->optind] + 1 + (longopts != NULL && argv[d->optind][1] == '-')); } /* Decode the current option-ARGV-element. */ /* Check whether the ARGV-element is a long option. If long_only and the ARGV-element has the form "-f", where f is a valid short option, don't consider it an abbreviated form of a long option that starts with f. Otherwise there would be no way to give the -f short option. On the other hand, if there's a long option "fubar" and the ARGV-element is "-fu", do consider that an abbreviation of the long option, just like "--fu", and not "-f" with arg "u". This distinction seems to be the most useful approach. */ if (longopts != NULL && (argv[d->optind][1] == '-' || (long_only && (argv[d->optind][2] || !strchr (optstring, argv[d->optind][1]))))) { char *nameend; const struct option *p; const struct option *pfound = NULL; int exact = 0; int ambig = 0; int indfound = -1; int option_index; for (nameend = d->__nextchar; *nameend && *nameend != '='; nameend++) /* Do nothing. */ ; /* Test all long options for either exact match or abbreviated matches. */ for (p = longopts, option_index = 0; p->name; p++, option_index++) if (!strncmp (p->name, d->__nextchar, nameend - d->__nextchar)) { if ((unsigned int) (nameend - d->__nextchar) == (unsigned int) strlen (p->name)) { /* Exact match found. */ pfound = p; indfound = option_index; exact = 1; break; } else if (pfound == NULL) { /* First nonexact match found. */ pfound = p; indfound = option_index; } else if (long_only || pfound->has_arg != p->has_arg || pfound->flag != p->flag || pfound->val != p->val) /* Second or later nonexact match found. */ ambig = 1; } if (ambig && !exact) { if (print_errors) { #if defined _LIBC && defined USE_IN_LIBIO char *buf; if (__asprintf (&buf, _("%s: option `%s' is ambiguous\n"), argv[0], argv[d->optind]) >= 0) { _IO_flockfile (stderr); int old_flags2 = ((_IO_FILE *) stderr)->_flags2; ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; __fxprintf (NULL, "%s", buf); ((_IO_FILE *) stderr)->_flags2 = old_flags2; _IO_funlockfile (stderr); free (buf); } #else fprintf (stderr, _("%s: option `%s' is ambiguous\n"), argv[0], argv[d->optind]); #endif } d->__nextchar += strlen (d->__nextchar); d->optind++; d->optopt = 0; return '?'; } if (pfound != NULL) { option_index = indfound; d->optind++; if (*nameend) { /* Don't test has_arg with >, because some C compilers don't allow it to be used on enums. */ if (pfound->has_arg) d->optarg = nameend + 1; else { if (print_errors) { #if defined _LIBC && defined USE_IN_LIBIO char *buf; int n; #endif if (argv[d->optind - 1][1] == '-') { /* --option */ #if defined _LIBC && defined USE_IN_LIBIO n = __asprintf (&buf, _("\ %s: option `--%s' doesn't allow an argument\n"), argv[0], pfound->name); #else fprintf (stderr, _("\ %s: option `--%s' doesn't allow an argument\n"), argv[0], pfound->name); #endif } else { /* +option or -option */ #if defined _LIBC && defined USE_IN_LIBIO n = __asprintf (&buf, _("\ %s: option `%c%s' doesn't allow an argument\n"), argv[0], argv[d->optind - 1][0], pfound->name); #else fprintf (stderr, _("\ %s: option `%c%s' doesn't allow an argument\n"), argv[0], argv[d->optind - 1][0], pfound->name); #endif } #if defined _LIBC && defined USE_IN_LIBIO if (n >= 0) { _IO_flockfile (stderr); int old_flags2 = ((_IO_FILE *) stderr)->_flags2; ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; __fxprintf (NULL, "%s", buf); ((_IO_FILE *) stderr)->_flags2 = old_flags2; _IO_funlockfile (stderr); free (buf); } #endif } d->__nextchar += strlen (d->__nextchar); d->optopt = pfound->val; return '?'; } } else if (pfound->has_arg == 1) { if (d->optind < argc) d->optarg = argv[d->optind++]; else { if (print_errors) { #if defined _LIBC && defined USE_IN_LIBIO char *buf; if (__asprintf (&buf, _("\ %s: option `%s' requires an argument\n"), argv[0], argv[d->optind - 1]) >= 0) { _IO_flockfile (stderr); int old_flags2 = ((_IO_FILE *) stderr)->_flags2; ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; __fxprintf (NULL, "%s", buf); ((_IO_FILE *) stderr)->_flags2 = old_flags2; _IO_funlockfile (stderr); free (buf); } #else fprintf (stderr, _("%s: option `%s' requires an argument\n"), argv[0], argv[d->optind - 1]); #endif } d->__nextchar += strlen (d->__nextchar); d->optopt = pfound->val; return optstring[0] == ':' ? ':' : '?'; } } d->__nextchar += strlen (d->__nextchar); if (longind != NULL) *longind = option_index; if (pfound->flag) { *(pfound->flag) = pfound->val; return 0; } return pfound->val; } /* Can't find it as a long option. If this is not getopt_long_only, or the option starts with '--' or is not a valid short option, then it's an error. Otherwise interpret it as a short option. */ if (!long_only || argv[d->optind][1] == '-' || strchr (optstring, *d->__nextchar) == NULL) { if (print_errors) { #if defined _LIBC && defined USE_IN_LIBIO char *buf; int n; #endif if (argv[d->optind][1] == '-') { /* --option */ #if defined _LIBC && defined USE_IN_LIBIO n = __asprintf (&buf, _("%s: unrecognized option `--%s'\n"), argv[0], d->__nextchar); #else fprintf (stderr, _("%s: unrecognized option `--%s'\n"), argv[0], d->__nextchar); #endif } else { /* +option or -option */ #if defined _LIBC && defined USE_IN_LIBIO n = __asprintf (&buf, _("%s: unrecognized option `%c%s'\n"), argv[0], argv[d->optind][0], d->__nextchar); #else fprintf (stderr, _("%s: unrecognized option `%c%s'\n"), argv[0], argv[d->optind][0], d->__nextchar); #endif } #if defined _LIBC && defined USE_IN_LIBIO if (n >= 0) { _IO_flockfile (stderr); int old_flags2 = ((_IO_FILE *) stderr)->_flags2; ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; __fxprintf (NULL, "%s", buf); ((_IO_FILE *) stderr)->_flags2 = old_flags2; _IO_funlockfile (stderr); free (buf); } #endif } d->__nextchar = (char *) ""; d->optind++; d->optopt = 0; return '?'; } } /* Look at and handle the next short option-character. */ { char c = *d->__nextchar++; char *temp = strchr (optstring, c); /* Increment `optind' when we start to process its last character. */ if (*d->__nextchar == '\0') ++d->optind; if (temp == NULL || c == ':') { if (print_errors) { #if defined _LIBC && defined USE_IN_LIBIO char *buf; int n; #endif if (d->__posixly_correct) { /* 1003.2 specifies the format of this message. */ #if defined _LIBC && defined USE_IN_LIBIO n = __asprintf (&buf, _("%s: illegal option -- %c\n"), argv[0], c); #else fprintf (stderr, _("%s: illegal option -- %c\n"), argv[0], c); #endif } else { #if defined _LIBC && defined USE_IN_LIBIO n = __asprintf (&buf, _("%s: invalid option -- %c\n"), argv[0], c); #else fprintf (stderr, _("%s: invalid option -- %c\n"), argv[0], c); #endif } #if defined _LIBC && defined USE_IN_LIBIO if (n >= 0) { _IO_flockfile (stderr); int old_flags2 = ((_IO_FILE *) stderr)->_flags2; ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; __fxprintf (NULL, "%s", buf); ((_IO_FILE *) stderr)->_flags2 = old_flags2; _IO_funlockfile (stderr); free (buf); } #endif } d->optopt = c; return '?'; } /* Convenience. Treat POSIX -W foo same as long option --foo */ if (temp[0] == 'W' && temp[1] == ';') { char *nameend; const struct option *p; const struct option *pfound = NULL; int exact = 0; int ambig = 0; int indfound = 0; int option_index; /* This is an option that requires an argument. */ if (*d->__nextchar != '\0') { d->optarg = d->__nextchar; /* If we end this ARGV-element by taking the rest as an arg, we must advance to the next element now. */ d->optind++; } else if (d->optind == argc) { if (print_errors) { /* 1003.2 specifies the format of this message. */ #if defined _LIBC && defined USE_IN_LIBIO char *buf; if (__asprintf (&buf, _("%s: option requires an argument -- %c\n"), argv[0], c) >= 0) { _IO_flockfile (stderr); int old_flags2 = ((_IO_FILE *) stderr)->_flags2; ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; __fxprintf (NULL, "%s", buf); ((_IO_FILE *) stderr)->_flags2 = old_flags2; _IO_funlockfile (stderr); free (buf); } #else fprintf (stderr, _("%s: option requires an argument -- %c\n"), argv[0], c); #endif } d->optopt = c; if (optstring[0] == ':') c = ':'; else c = '?'; return c; } else /* We already incremented `d->optind' once; increment it again when taking next ARGV-elt as argument. */ d->optarg = argv[d->optind++]; /* optarg is now the argument, see if it's in the table of longopts. */ for (d->__nextchar = nameend = d->optarg; *nameend && *nameend != '='; nameend++) /* Do nothing. */ ; /* Test all long options for either exact match or abbreviated matches. */ for (p = longopts, option_index = 0; p->name; p++, option_index++) if (!strncmp (p->name, d->__nextchar, nameend - d->__nextchar)) { if ((unsigned int) (nameend - d->__nextchar) == strlen (p->name)) { /* Exact match found. */ pfound = p; indfound = option_index; exact = 1; break; } else if (pfound == NULL) { /* First nonexact match found. */ pfound = p; indfound = option_index; } else /* Second or later nonexact match found. */ ambig = 1; } if (ambig && !exact) { if (print_errors) { #if defined _LIBC && defined USE_IN_LIBIO char *buf; if (__asprintf (&buf, _("%s: option `-W %s' is ambiguous\n"), argv[0], argv[d->optind]) >= 0) { _IO_flockfile (stderr); int old_flags2 = ((_IO_FILE *) stderr)->_flags2; ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; __fxprintf (NULL, "%s", buf); ((_IO_FILE *) stderr)->_flags2 = old_flags2; _IO_funlockfile (stderr); free (buf); } #else fprintf (stderr, _("%s: option `-W %s' is ambiguous\n"), argv[0], argv[d->optind]); #endif } d->__nextchar += strlen (d->__nextchar); d->optind++; return '?'; } if (pfound != NULL) { option_index = indfound; if (*nameend) { /* Don't test has_arg with >, because some C compilers don't allow it to be used on enums. */ if (pfound->has_arg) d->optarg = nameend + 1; else { if (print_errors) { #if defined _LIBC && defined USE_IN_LIBIO char *buf; if (__asprintf (&buf, _("\ %s: option `-W %s' doesn't allow an argument\n"), argv[0], pfound->name) >= 0) { _IO_flockfile (stderr); int old_flags2 = ((_IO_FILE *) stderr)->_flags2; ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; __fxprintf (NULL, "%s", buf); ((_IO_FILE *) stderr)->_flags2 = old_flags2; _IO_funlockfile (stderr); free (buf); } #else fprintf (stderr, _("\ %s: option `-W %s' doesn't allow an argument\n"), argv[0], pfound->name); #endif } d->__nextchar += strlen (d->__nextchar); return '?'; } } else if (pfound->has_arg == 1) { if (d->optind < argc) d->optarg = argv[d->optind++]; else { if (print_errors) { #if defined _LIBC && defined USE_IN_LIBIO char *buf; if (__asprintf (&buf, _("\ %s: option `%s' requires an argument\n"), argv[0], argv[d->optind - 1]) >= 0) { _IO_flockfile (stderr); int old_flags2 = ((_IO_FILE *) stderr)->_flags2; ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; __fxprintf (NULL, "%s", buf); ((_IO_FILE *) stderr)->_flags2 = old_flags2; _IO_funlockfile (stderr); free (buf); } #else fprintf (stderr, _("%s: option `%s' requires an argument\n"), argv[0], argv[d->optind - 1]); #endif } d->__nextchar += strlen (d->__nextchar); return optstring[0] == ':' ? ':' : '?'; } } d->__nextchar += strlen (d->__nextchar); if (longind != NULL) *longind = option_index; if (pfound->flag) { *(pfound->flag) = pfound->val; return 0; } return pfound->val; } d->__nextchar = NULL; return 'W'; /* Let the application handle it. */ } if (temp[1] == ':') { if (temp[2] == ':') { /* This is an option that accepts an argument optionally. */ if (*d->__nextchar != '\0') { d->optarg = d->__nextchar; d->optind++; } else d->optarg = NULL; d->__nextchar = NULL; } else { /* This is an option that requires an argument. */ if (*d->__nextchar != '\0') { d->optarg = d->__nextchar; /* If we end this ARGV-element by taking the rest as an arg, we must advance to the next element now. */ d->optind++; } else if (d->optind == argc) { if (print_errors) { /* 1003.2 specifies the format of this message. */ #if defined _LIBC && defined USE_IN_LIBIO char *buf; if (__asprintf (&buf, _("\ %s: option requires an argument -- %c\n"), argv[0], c) >= 0) { _IO_flockfile (stderr); int old_flags2 = ((_IO_FILE *) stderr)->_flags2; ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; __fxprintf (NULL, "%s", buf); ((_IO_FILE *) stderr)->_flags2 = old_flags2; _IO_funlockfile (stderr); free (buf); } #else fprintf (stderr, _("%s: option requires an argument -- %c\n"), argv[0], c); #endif } d->optopt = c; if (optstring[0] == ':') c = ':'; else c = '?'; } else /* We already incremented `optind' once; increment it again when taking next ARGV-elt as argument. */ d->optarg = argv[d->optind++]; d->__nextchar = NULL; } } return c; } } int _getopt_internal (int argc, char **argv, const char *optstring, const struct option *longopts, int *longind, int long_only, int posixly_correct) { int result; getopt_data.optind = optind; getopt_data.opterr = opterr; result = _getopt_internal_r (argc, argv, optstring, longopts, longind, long_only, posixly_correct, &getopt_data); optind = getopt_data.optind; optarg = getopt_data.optarg; optopt = getopt_data.optopt; return result; } /* glibc gets a LSB-compliant getopt. Standalone applications get a POSIX-compliant getopt. */ #if _LIBC enum { POSIXLY_CORRECT = 0 }; #else enum { POSIXLY_CORRECT = 1 }; #endif int getopt (int argc, char *const *argv, const char *optstring) { return _getopt_internal (argc, (char **) argv, optstring, NULL, NULL, 0, POSIXLY_CORRECT); } #ifdef TEST /* Compile with -DTEST to make an executable for use in testing the above definition of `getopt'. */ int main (int argc, char **argv) { int c; int digit_optind = 0; while (1) { int this_option_optind = optind ? optind : 1; c = getopt (argc, argv, "abc:d:0123456789"); if (c == -1) break; switch (c) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': if (digit_optind != 0 && digit_optind != this_option_optind) printf ("digits occur in two different argv-elements.\n"); digit_optind = this_option_optind; printf ("option %c\n", c); break; case 'a': printf ("option a\n"); break; case 'b': printf ("option b\n"); break; case 'c': printf ("option c with value `%s'\n", optarg); break; case '?': break; default: printf ("?? getopt returned character code 0%o ??\n", c); } } if (optind < argc) { printf ("non-option ARGV-elements: "); while (optind < argc) printf ("%s ", argv[optind++]); printf ("\n"); } exit (0); } #endif /* TEST */ mlocate-0.26/gnulib/lib/verify.h0000664000175000017500000001301011353206451013506 00000000000000/* Compile-time assert-like macros. Copyright (C) 2005, 2006 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Paul Eggert, Bruno Haible, and Jim Meyering. */ #ifndef VERIFY_H # define VERIFY_H 1 /* Each of these macros verifies that its argument R is nonzero. To be portable, R should be an integer constant expression. Unlike assert (R), there is no run-time overhead. There are two macros, since no single macro can be used in all contexts in C. verify_true (R) is for scalar contexts, including integer constant expression contexts. verify (R) is for declaration contexts, e.g., the top level. Symbols ending in "__" are private to this header. The code below uses several ideas. * The first step is ((R) ? 1 : -1). Given an expression R, of integral or boolean or floating-point type, this yields an expression of integral type, whose value is later verified to be constant and nonnegative. * Next this expression W is wrapped in a type struct verify_type__ { unsigned int verify_error_if_negative_size__: W; }. If W is negative, this yields a compile-time error. No compiler can deal with a bit-field of negative size. One might think that an array size check would have the same effect, that is, that the type struct { unsigned int dummy[W]; } would work as well. However, inside a function, some compilers (such as C++ compilers and GNU C) allow local parameters and variables inside array size expressions. With these compilers, an array size check would not properly diagnose this misuse of the verify macro: void function (int n) { verify (n < 0); } * For the verify macro, the struct verify_type__ will need to somehow be embedded into a declaration. To be portable, this declaration must declare an object, a constant, a function, or a typedef name. If the declared entity uses the type directly, such as in struct dummy {...}; typedef struct {...} dummy; extern struct {...} *dummy; extern void dummy (struct {...} *); extern struct {...} *dummy (void); two uses of the verify macro would yield colliding declarations if the entity names are not disambiguated. A workaround is to attach the current line number to the entity name: #define GL_CONCAT0(x, y) x##y #define GL_CONCAT(x, y) GL_CONCAT0 (x, y) extern struct {...} * GL_CONCAT(dummy,__LINE__); But this has the problem that two invocations of verify from within the same macro would collide, since the __LINE__ value would be the same for both invocations. A solution is to use the sizeof operator. It yields a number, getting rid of the identity of the type. Declarations like extern int dummy [sizeof (struct {...})]; extern void dummy (int [sizeof (struct {...})]); extern int (*dummy (void)) [sizeof (struct {...})]; can be repeated. * Should the implementation use a named struct or an unnamed struct? Which of the following alternatives can be used? extern int dummy [sizeof (struct {...})]; extern int dummy [sizeof (struct verify_type__ {...})]; extern void dummy (int [sizeof (struct {...})]); extern void dummy (int [sizeof (struct verify_type__ {...})]); extern int (*dummy (void)) [sizeof (struct {...})]; extern int (*dummy (void)) [sizeof (struct verify_type__ {...})]; In the second and sixth case, the struct type is exported to the outer scope; two such declarations therefore collide. GCC warns about the first, third, and fourth cases. So the only remaining possibility is the fifth case: extern int (*dummy (void)) [sizeof (struct {...})]; * This implementation exploits the fact that GCC does not warn about the last declaration mentioned above. If a future version of GCC introduces a warning for this, the problem could be worked around by using code specialized to GCC, e.g.,: #if 4 <= __GNUC__ # define verify(R) \ extern int (* verify_function__ (void)) \ [__builtin_constant_p (R) && (R) ? 1 : -1] #endif * In C++, any struct definition inside sizeof is invalid. Use a template type to work around the problem. */ /* Verify requirement R at compile-time, as an integer constant expression. Return 1. */ # ifdef __cplusplus template struct verify_type__ { unsigned int verify_error_if_negative_size__: w; }; # define verify_true(R) \ (!!sizeof (verify_type__<(R) ? 1 : -1>)) # else # define verify_true(R) \ (!!sizeof \ (struct { unsigned int verify_error_if_negative_size__: (R) ? 1 : -1; })) # endif /* Verify requirement R at compile-time, as a declaration without a trailing ';'. */ # define verify(R) extern int (* verify_function__ (void)) [verify_true (R)] #endif mlocate-0.26/gnulib/lib/getopt1.c0000664000175000017500000000762311353206451013575 00000000000000/* getopt_long and getopt_long_only entry points for GNU getopt. Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98,2004,2006 Free Software Foundation, Inc. This file is part of the GNU C Library. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef _LIBC # include #else # include # include "getopt.h" #endif #include "getopt_int.h" #include /* This needs to come after some library #include to get __GNU_LIBRARY__ defined. */ #ifdef __GNU_LIBRARY__ #include #endif #ifndef NULL #define NULL 0 #endif int getopt_long (int argc, char *__getopt_argv_const *argv, const char *options, const struct option *long_options, int *opt_index) { return _getopt_internal (argc, (char **) argv, options, long_options, opt_index, 0, 0); } int _getopt_long_r (int argc, char **argv, const char *options, const struct option *long_options, int *opt_index, struct _getopt_data *d) { return _getopt_internal_r (argc, argv, options, long_options, opt_index, 0, 0, d); } /* Like getopt_long, but '-' as well as '--' can indicate a long option. If an option that starts with '-' (not '--') doesn't match a long option, but does match a short option, it is parsed as a short option instead. */ int getopt_long_only (int argc, char *__getopt_argv_const *argv, const char *options, const struct option *long_options, int *opt_index) { return _getopt_internal (argc, (char **) argv, options, long_options, opt_index, 1, 0); } int _getopt_long_only_r (int argc, char **argv, const char *options, const struct option *long_options, int *opt_index, struct _getopt_data *d) { return _getopt_internal_r (argc, argv, options, long_options, opt_index, 1, 0, d); } #ifdef TEST #include int main (int argc, char **argv) { int c; int digit_optind = 0; while (1) { int this_option_optind = optind ? optind : 1; int option_index = 0; static struct option long_options[] = { {"add", 1, 0, 0}, {"append", 0, 0, 0}, {"delete", 1, 0, 0}, {"verbose", 0, 0, 0}, {"create", 0, 0, 0}, {"file", 1, 0, 0}, {0, 0, 0, 0} }; c = getopt_long (argc, argv, "abc:d:0123456789", long_options, &option_index); if (c == -1) break; switch (c) { case 0: printf ("option %s", long_options[option_index].name); if (optarg) printf (" with arg %s", optarg); printf ("\n"); break; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': if (digit_optind != 0 && digit_optind != this_option_optind) printf ("digits occur in two different argv-elements.\n"); digit_optind = this_option_optind; printf ("option %c\n", c); break; case 'a': printf ("option a\n"); break; case 'b': printf ("option b\n"); break; case 'c': printf ("option c with value `%s'\n", optarg); break; case 'd': printf ("option d with value `%s'\n", optarg); break; case '?': break; default: printf ("?? getopt returned character code 0%o ??\n", c); } } if (optind < argc) { printf ("non-option ARGV-elements: "); while (optind < argc) printf ("%s ", argv[optind++]); printf ("\n"); } exit (0); } #endif /* TEST */ mlocate-0.26/gnulib/lib/fnmatch.c0000664000175000017500000002506611353206451013633 00000000000000/* Copyright (C) 1991,1992,1993,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _LIBC # include #endif /* Enable GNU extensions in fnmatch.h. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #if ! defined __builtin_expect && __GNUC__ < 3 # define __builtin_expect(expr, expected) (expr) #endif #include #include #include #include #include #include #include #include #include #define WIDE_CHAR_SUPPORT \ (HAVE_WCTYPE_H && HAVE_BTOWC && HAVE_ISWCTYPE \ && HAVE_WMEMCHR && (HAVE_WMEMCPY || HAVE_WMEMPCPY)) /* For platform which support the ISO C amendement 1 functionality we support user defined character classes. */ #if defined _LIBC || WIDE_CHAR_SUPPORT # include # include #endif /* We need some of the locale data (the collation sequence information) but there is no interface to get this information in general. Therefore we support a correct implementation only in glibc. */ #ifdef _LIBC # include "../locale/localeinfo.h" # include "../locale/elem-hash.h" # include "../locale/coll-lookup.h" # include # define CONCAT(a,b) __CONCAT(a,b) # define mbsrtowcs __mbsrtowcs # define fnmatch __fnmatch extern int fnmatch (const char *pattern, const char *string, int flags); #endif #ifndef SIZE_MAX # define SIZE_MAX ((size_t) -1) #endif /* We often have to test for FNM_FILE_NAME and FNM_PERIOD being both set. */ #define NO_LEADING_PERIOD(flags) \ ((flags & (FNM_FILE_NAME | FNM_PERIOD)) == (FNM_FILE_NAME | FNM_PERIOD)) /* Comment out all this code if we are using the GNU C Library, and are not actually compiling the library itself, and have not detected a bug in the library. This code is part of the GNU C Library, but also included in many other GNU distributions. Compiling and linking in this code is a waste when using the GNU C library (especially if it is a shared library). Rather than having every GNU program understand `configure --with-gnu-libc' and omit the object files, it is simpler to just do this in the source for each such file. */ #if defined _LIBC || !defined __GNU_LIBRARY__ || !HAVE_FNMATCH_GNU # if ! (defined isblank || (HAVE_ISBLANK && HAVE_DECL_ISBLANK)) # define isblank(c) ((c) == ' ' || (c) == '\t') # endif # define STREQ(s1, s2) ((strcmp (s1, s2) == 0)) # if defined _LIBC || WIDE_CHAR_SUPPORT /* The GNU C library provides support for user-defined character classes and the functions from ISO C amendement 1. */ # ifdef CHARCLASS_NAME_MAX # define CHAR_CLASS_MAX_LENGTH CHARCLASS_NAME_MAX # else /* This shouldn't happen but some implementation might still have this problem. Use a reasonable default value. */ # define CHAR_CLASS_MAX_LENGTH 256 # endif # ifdef _LIBC # define IS_CHAR_CLASS(string) __wctype (string) # else # define IS_CHAR_CLASS(string) wctype (string) # endif # ifdef _LIBC # define ISWCTYPE(WC, WT) __iswctype (WC, WT) # else # define ISWCTYPE(WC, WT) iswctype (WC, WT) # endif # if (HAVE_MBSTATE_T && HAVE_MBSRTOWCS) || _LIBC /* In this case we are implementing the multibyte character handling. */ # define HANDLE_MULTIBYTE 1 # endif # else # define CHAR_CLASS_MAX_LENGTH 6 /* Namely, `xdigit'. */ # define IS_CHAR_CLASS(string) \ (STREQ (string, "alpha") || STREQ (string, "upper") \ || STREQ (string, "lower") || STREQ (string, "digit") \ || STREQ (string, "alnum") || STREQ (string, "xdigit") \ || STREQ (string, "space") || STREQ (string, "print") \ || STREQ (string, "punct") || STREQ (string, "graph") \ || STREQ (string, "cntrl") || STREQ (string, "blank")) # endif /* Avoid depending on library functions or files whose names are inconsistent. */ /* Global variable. */ static int posixly_correct; # ifndef internal_function /* Inside GNU libc we mark some function in a special way. In other environments simply ignore the marking. */ # define internal_function # endif /* Note that this evaluates C many times. */ # define FOLD(c) ((flags & FNM_CASEFOLD) ? tolower (c) : (c)) # define CHAR char # define UCHAR unsigned char # define INT int # define FCT internal_fnmatch # define EXT ext_match # define END end_pattern # define L_(CS) CS # ifdef _LIBC # define BTOWC(C) __btowc (C) # else # define BTOWC(C) btowc (C) # endif # define STRLEN(S) strlen (S) # define STRCAT(D, S) strcat (D, S) # ifdef _LIBC # define MEMPCPY(D, S, N) __mempcpy (D, S, N) # else # if HAVE_MEMPCPY # define MEMPCPY(D, S, N) mempcpy (D, S, N) # else # define MEMPCPY(D, S, N) ((void *) ((char *) memcpy (D, S, N) + (N))) # endif # endif # define MEMCHR(S, C, N) memchr (S, C, N) # define STRCOLL(S1, S2) strcoll (S1, S2) # include "fnmatch_loop.c" # if HANDLE_MULTIBYTE # define FOLD(c) ((flags & FNM_CASEFOLD) ? towlower (c) : (c)) # define CHAR wchar_t # define UCHAR wint_t # define INT wint_t # define FCT internal_fnwmatch # define EXT ext_wmatch # define END end_wpattern # define L_(CS) L##CS # define BTOWC(C) (C) # ifdef _LIBC # define STRLEN(S) __wcslen (S) # define STRCAT(D, S) __wcscat (D, S) # define MEMPCPY(D, S, N) __wmempcpy (D, S, N) # else # define STRLEN(S) wcslen (S) # define STRCAT(D, S) wcscat (D, S) # if HAVE_WMEMPCPY # define MEMPCPY(D, S, N) wmempcpy (D, S, N) # else # define MEMPCPY(D, S, N) (wmemcpy (D, S, N) + (N)) # endif # endif # define MEMCHR(S, C, N) wmemchr (S, C, N) # define STRCOLL(S1, S2) wcscoll (S1, S2) # define WIDE_CHAR_VERSION 1 # undef IS_CHAR_CLASS /* We have to convert the wide character string in a multibyte string. But we know that the character class names consist of alphanumeric characters from the portable character set, and since the wide character encoding for a member of the portable character set is the same code point as its single-byte encoding, we can use a simplified method to convert the string to a multibyte character string. */ static wctype_t is_char_class (const wchar_t *wcs) { char s[CHAR_CLASS_MAX_LENGTH + 1]; char *cp = s; do { /* Test for a printable character from the portable character set. */ # ifdef _LIBC if (*wcs < 0x20 || *wcs > 0x7e || *wcs == 0x24 || *wcs == 0x40 || *wcs == 0x60) return (wctype_t) 0; # else switch (*wcs) { case L' ': case L'!': case L'"': case L'#': case L'%': case L'&': case L'\'': case L'(': case L')': case L'*': case L'+': case L',': case L'-': case L'.': case L'/': case L'0': case L'1': case L'2': case L'3': case L'4': case L'5': case L'6': case L'7': case L'8': case L'9': case L':': case L';': case L'<': case L'=': case L'>': case L'?': case L'A': case L'B': case L'C': case L'D': case L'E': case L'F': case L'G': case L'H': case L'I': case L'J': case L'K': case L'L': case L'M': case L'N': case L'O': case L'P': case L'Q': case L'R': case L'S': case L'T': case L'U': case L'V': case L'W': case L'X': case L'Y': case L'Z': case L'[': case L'\\': case L']': case L'^': case L'_': case L'a': case L'b': case L'c': case L'd': case L'e': case L'f': case L'g': case L'h': case L'i': case L'j': case L'k': case L'l': case L'm': case L'n': case L'o': case L'p': case L'q': case L'r': case L's': case L't': case L'u': case L'v': case L'w': case L'x': case L'y': case L'z': case L'{': case L'|': case L'}': case L'~': break; default: return (wctype_t) 0; } # endif /* Avoid overrunning the buffer. */ if (cp == s + CHAR_CLASS_MAX_LENGTH) return (wctype_t) 0; *cp++ = (char) *wcs++; } while (*wcs != L'\0'); *cp = '\0'; # ifdef _LIBC return __wctype (s); # else return wctype (s); # endif } # define IS_CHAR_CLASS(string) is_char_class (string) # include "fnmatch_loop.c" # endif int fnmatch (const char *pattern, const char *string, int flags) { # if HANDLE_MULTIBYTE # define ALLOCA_LIMIT 2000 if (__builtin_expect (MB_CUR_MAX, 1) != 1) { mbstate_t ps; size_t patsize; size_t strsize; size_t totsize; wchar_t *wpattern; wchar_t *wstring; int res; /* Calculate the size needed to convert the strings to wide characters. */ memset (&ps, '\0', sizeof (ps)); patsize = mbsrtowcs (NULL, &pattern, 0, &ps) + 1; if (__builtin_expect (patsize != 0, 1)) { assert (mbsinit (&ps)); strsize = mbsrtowcs (NULL, &string, 0, &ps) + 1; if (__builtin_expect (strsize != 0, 1)) { assert (mbsinit (&ps)); totsize = patsize + strsize; if (__builtin_expect (! (patsize <= totsize && totsize <= SIZE_MAX / sizeof (wchar_t)), 0)) { errno = ENOMEM; return -1; } /* Allocate room for the wide characters. */ if (__builtin_expect (totsize < ALLOCA_LIMIT, 1)) wpattern = (wchar_t *) alloca (totsize * sizeof (wchar_t)); else { wpattern = malloc (totsize * sizeof (wchar_t)); if (__builtin_expect (! wpattern, 0)) { errno = ENOMEM; return -1; } } wstring = wpattern + patsize; /* Convert the strings into wide characters. */ mbsrtowcs (wpattern, &pattern, patsize, &ps); assert (mbsinit (&ps)); mbsrtowcs (wstring, &string, strsize, &ps); res = internal_fnwmatch (wpattern, wstring, wstring + strsize - 1, flags & FNM_PERIOD, flags); if (__builtin_expect (! (totsize < ALLOCA_LIMIT), 0)) free (wpattern); return res; } } } # endif /* HANDLE_MULTIBYTE */ return internal_fnmatch (pattern, string, string + strlen (string), flags & FNM_PERIOD, flags); } # ifdef _LIBC # undef fnmatch versioned_symbol (libc, __fnmatch, fnmatch, GLIBC_2_2_3); # if SHLIB_COMPAT(libc, GLIBC_2_0, GLIBC_2_2_3) strong_alias (__fnmatch, __fnmatch_old) compat_symbol (libc, __fnmatch_old, fnmatch, GLIBC_2_0); # endif libc_hidden_ver (__fnmatch, fnmatch) # endif #endif /* _LIBC or not __GNU_LIBRARY__. */ mlocate-0.26/gnulib/lib/localcharset.c0000664000175000017500000003026111353206451014650 00000000000000/* Determine a canonical name for the current locale's character encoding. Copyright (C) 2000-2006 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Bruno Haible . */ #include /* Specification. */ #include "localcharset.h" #include #include #include #include #if defined _WIN32 || defined __WIN32__ # define WIN32_NATIVE #endif #if defined __EMX__ /* Assume EMX program runs on OS/2, even if compiled under DOS. */ # define OS2 #endif #if !defined WIN32_NATIVE # if HAVE_LANGINFO_CODESET # include # else # if 0 /* see comment below */ # include # endif # endif # ifdef __CYGWIN__ # define WIN32_LEAN_AND_MEAN # include # endif #elif defined WIN32_NATIVE # define WIN32_LEAN_AND_MEAN # include #endif #if defined OS2 # define INCL_DOS # include #endif #if ENABLE_RELOCATABLE # include "relocatable.h" #else # define relocate(pathname) (pathname) #endif /* Get LIBDIR. */ #ifndef LIBDIR # include "configmake.h" #endif #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ /* Win32, Cygwin, OS/2, DOS */ # define ISSLASH(C) ((C) == '/' || (C) == '\\') #endif #ifndef DIRECTORY_SEPARATOR # define DIRECTORY_SEPARATOR '/' #endif #ifndef ISSLASH # define ISSLASH(C) ((C) == DIRECTORY_SEPARATOR) #endif #if HAVE_DECL_GETC_UNLOCKED # undef getc # define getc getc_unlocked #endif /* The following static variable is declared 'volatile' to avoid a possible multithread problem in the function get_charset_aliases. If we are running in a threaded environment, and if two threads initialize 'charset_aliases' simultaneously, both will produce the same value, and everything will be ok if the two assignments to 'charset_aliases' are atomic. But I don't know what will happen if the two assignments mix. */ #if __STDC__ != 1 # define volatile /* empty */ #endif /* Pointer to the contents of the charset.alias file, if it has already been read, else NULL. Its format is: ALIAS_1 '\0' CANONICAL_1 '\0' ... ALIAS_n '\0' CANONICAL_n '\0' '\0' */ static const char * volatile charset_aliases; /* Return a pointer to the contents of the charset.alias file. */ static const char * get_charset_aliases (void) { const char *cp; cp = charset_aliases; if (cp == NULL) { #if !(defined VMS || defined WIN32_NATIVE || defined __CYGWIN__) FILE *fp; const char *dir; const char *base = "charset.alias"; char *file_name; /* Make it possible to override the charset.alias location. This is necessary for running the testsuite before "make install". */ dir = getenv ("CHARSETALIASDIR"); if (dir == NULL || dir[0] == '\0') dir = relocate (LIBDIR); /* Concatenate dir and base into freshly allocated file_name. */ { size_t dir_len = strlen (dir); size_t base_len = strlen (base); int add_slash = (dir_len > 0 && !ISSLASH (dir[dir_len - 1])); file_name = (char *) malloc (dir_len + add_slash + base_len + 1); if (file_name != NULL) { memcpy (file_name, dir, dir_len); if (add_slash) file_name[dir_len] = DIRECTORY_SEPARATOR; memcpy (file_name + dir_len + add_slash, base, base_len + 1); } } if (file_name == NULL || (fp = fopen (file_name, "r")) == NULL) /* Out of memory or file not found, treat it as empty. */ cp = ""; else { /* Parse the file's contents. */ char *res_ptr = NULL; size_t res_size = 0; for (;;) { int c; char buf1[50+1]; char buf2[50+1]; size_t l1, l2; char *old_res_ptr; c = getc (fp); if (c == EOF) break; if (c == '\n' || c == ' ' || c == '\t') continue; if (c == '#') { /* Skip comment, to end of line. */ do c = getc (fp); while (!(c == EOF || c == '\n')); if (c == EOF) break; continue; } ungetc (c, fp); if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) break; l1 = strlen (buf1); l2 = strlen (buf2); old_res_ptr = res_ptr; if (res_size == 0) { res_size = l1 + 1 + l2 + 1; res_ptr = (char *) malloc (res_size + 1); } else { res_size += l1 + 1 + l2 + 1; res_ptr = (char *) realloc (res_ptr, res_size + 1); } if (res_ptr == NULL) { /* Out of memory. */ res_size = 0; if (old_res_ptr != NULL) free (old_res_ptr); break; } strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); strcpy (res_ptr + res_size - (l2 + 1), buf2); } fclose (fp); if (res_size == 0) cp = ""; else { *(res_ptr + res_size) = '\0'; cp = res_ptr; } } if (file_name != NULL) free (file_name); #else # if defined VMS /* To avoid the troubles of an extra file charset.alias_vms in the sources of many GNU packages, simply inline the aliases here. */ /* The list of encodings is taken from the OpenVMS 7.3-1 documentation "Compaq C Run-Time Library Reference Manual for OpenVMS systems" section 10.7 "Handling Different Character Sets". */ cp = "ISO8859-1" "\0" "ISO-8859-1" "\0" "ISO8859-2" "\0" "ISO-8859-2" "\0" "ISO8859-5" "\0" "ISO-8859-5" "\0" "ISO8859-7" "\0" "ISO-8859-7" "\0" "ISO8859-8" "\0" "ISO-8859-8" "\0" "ISO8859-9" "\0" "ISO-8859-9" "\0" /* Japanese */ "eucJP" "\0" "EUC-JP" "\0" "SJIS" "\0" "SHIFT_JIS" "\0" "DECKANJI" "\0" "DEC-KANJI" "\0" "SDECKANJI" "\0" "EUC-JP" "\0" /* Chinese */ "eucTW" "\0" "EUC-TW" "\0" "DECHANYU" "\0" "DEC-HANYU" "\0" "DECHANZI" "\0" "GB2312" "\0" /* Korean */ "DECKOREAN" "\0" "EUC-KR" "\0"; # endif # if defined WIN32_NATIVE || defined __CYGWIN__ /* To avoid the troubles of installing a separate file in the same directory as the DLL and of retrieving the DLL's directory at runtime, simply inline the aliases here. */ cp = "CP936" "\0" "GBK" "\0" "CP1361" "\0" "JOHAB" "\0" "CP20127" "\0" "ASCII" "\0" "CP20866" "\0" "KOI8-R" "\0" "CP20936" "\0" "GB2312" "\0" "CP21866" "\0" "KOI8-RU" "\0" "CP28591" "\0" "ISO-8859-1" "\0" "CP28592" "\0" "ISO-8859-2" "\0" "CP28593" "\0" "ISO-8859-3" "\0" "CP28594" "\0" "ISO-8859-4" "\0" "CP28595" "\0" "ISO-8859-5" "\0" "CP28596" "\0" "ISO-8859-6" "\0" "CP28597" "\0" "ISO-8859-7" "\0" "CP28598" "\0" "ISO-8859-8" "\0" "CP28599" "\0" "ISO-8859-9" "\0" "CP28605" "\0" "ISO-8859-15" "\0" "CP38598" "\0" "ISO-8859-8" "\0" "CP51932" "\0" "EUC-JP" "\0" "CP51936" "\0" "GB2312" "\0" "CP51949" "\0" "EUC-KR" "\0" "CP51950" "\0" "EUC-TW" "\0" "CP54936" "\0" "GB18030" "\0" "CP65001" "\0" "UTF-8" "\0"; # endif #endif charset_aliases = cp; } return cp; } /* Determine the current locale's character encoding, and canonicalize it into one of the canonical names listed in config.charset. The result must not be freed; it is statically allocated. If the canonical name cannot be determined, the result is a non-canonical name. */ #ifdef STATIC STATIC #endif const char * locale_charset (void) { const char *codeset; const char *aliases; #if !(defined WIN32_NATIVE || defined OS2) # if HAVE_LANGINFO_CODESET /* Most systems support nl_langinfo (CODESET) nowadays. */ codeset = nl_langinfo (CODESET); # ifdef __CYGWIN__ /* Cygwin 2006 does not have locales. nl_langinfo (CODESET) always returns "US-ASCII". As long as this is not fixed, return the suffix of the locale name from the environment variables (if present) or the codepage as a number. */ if (codeset != NULL && strcmp (codeset, "US-ASCII") == 0) { const char *locale; static char buf[2 + 10 + 1]; locale = getenv ("LC_ALL"); if (locale == NULL || locale[0] == '\0') { locale = getenv ("LC_CTYPE"); if (locale == NULL || locale[0] == '\0') locale = getenv ("LANG"); } if (locale != NULL && locale[0] != '\0') { /* If the locale name contains an encoding after the dot, return it. */ const char *dot = strchr (locale, '.'); if (dot != NULL) { const char *modifier; dot++; /* Look for the possible @... trailer and remove it, if any. */ modifier = strchr (dot, '@'); if (modifier == NULL) return dot; if (modifier - dot < sizeof (buf)) { memcpy (buf, dot, modifier - dot); buf [modifier - dot] = '\0'; return buf; } } } /* Woe32 has a function returning the locale's codepage as a number. */ sprintf (buf, "CP%u", GetACP ()); codeset = buf; } # endif # else /* On old systems which lack it, use setlocale or getenv. */ const char *locale = NULL; /* But most old systems don't have a complete set of locales. Some (like SunOS 4 or DJGPP) have only the C locale. Therefore we don't use setlocale here; it would return "C" when it doesn't support the locale name the user has set. */ # if 0 locale = setlocale (LC_CTYPE, NULL); # endif if (locale == NULL || locale[0] == '\0') { locale = getenv ("LC_ALL"); if (locale == NULL || locale[0] == '\0') { locale = getenv ("LC_CTYPE"); if (locale == NULL || locale[0] == '\0') locale = getenv ("LANG"); } } /* On some old systems, one used to set locale = "iso8859_1". On others, you set it to "language_COUNTRY.charset". In any case, we resolve it through the charset.alias file. */ codeset = locale; # endif #elif defined WIN32_NATIVE static char buf[2 + 10 + 1]; /* Woe32 has a function returning the locale's codepage as a number. */ sprintf (buf, "CP%u", GetACP ()); codeset = buf; #elif defined OS2 const char *locale; static char buf[2 + 10 + 1]; ULONG cp[3]; ULONG cplen; /* Allow user to override the codeset, as set in the operating system, with standard language environment variables. */ locale = getenv ("LC_ALL"); if (locale == NULL || locale[0] == '\0') { locale = getenv ("LC_CTYPE"); if (locale == NULL || locale[0] == '\0') locale = getenv ("LANG"); } if (locale != NULL && locale[0] != '\0') { /* If the locale name contains an encoding after the dot, return it. */ const char *dot = strchr (locale, '.'); if (dot != NULL) { const char *modifier; dot++; /* Look for the possible @... trailer and remove it, if any. */ modifier = strchr (dot, '@'); if (modifier == NULL) return dot; if (modifier - dot < sizeof (buf)) { memcpy (buf, dot, modifier - dot); buf [modifier - dot] = '\0'; return buf; } } /* Resolve through the charset.alias file. */ codeset = locale; } else { /* OS/2 has a function returning the locale's codepage as a number. */ if (DosQueryCp (sizeof (cp), cp, &cplen)) codeset = ""; else { sprintf (buf, "CP%u", cp[0]); codeset = buf; } } #endif if (codeset == NULL) /* The canonical name cannot be determined. */ codeset = ""; /* Resolve alias. */ for (aliases = get_charset_aliases (); *aliases != '\0'; aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) if (strcmp (codeset, aliases) == 0 || (aliases[0] == '*' && aliases[1] == '\0')) { codeset = aliases + strlen (aliases) + 1; break; } /* Don't return an empty string. GNU libc and GNU libiconv interpret the empty string as denoting "the locale's character encoding", thus GNU libiconv would call this function a second time. */ if (codeset[0] == '\0') codeset = "ASCII"; return codeset; } mlocate-0.26/gnulib/lib/xmalloc.c0000664000175000017500000000646211353206451013651 00000000000000/* xmalloc.c -- malloc with out of memory checking Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2002, 2003, 2004, 2005, 2006 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include #if ! HAVE_INLINE # define static_inline #endif #include "xalloc.h" #undef static_inline #include #include #ifndef SIZE_MAX # define SIZE_MAX ((size_t) -1) #endif /* 1 if calloc is known to be compatible with GNU calloc. This matters if we are not also using the calloc module, which defines HAVE_CALLOC and supports the GNU API even on non-GNU platforms. */ #if defined HAVE_CALLOC || defined __GLIBC__ enum { HAVE_GNU_CALLOC = 1 }; #else enum { HAVE_GNU_CALLOC = 0 }; #endif /* Allocate N bytes of memory dynamically, with error checking. */ void * xmalloc (size_t n) { void *p = malloc (n); if (!p && n != 0) xalloc_die (); return p; } /* Change the size of an allocated block of memory P to N bytes, with error checking. */ void * xrealloc (void *p, size_t n) { p = realloc (p, n); if (!p && n != 0) xalloc_die (); return p; } /* If P is null, allocate a block of at least *PN bytes; otherwise, reallocate P so that it contains more than *PN bytes. *PN must be nonzero unless P is null. Set *PN to the new block's size, and return the pointer to the new block. *PN is never set to zero, and the returned pointer is never null. */ void * x2realloc (void *p, size_t *pn) { return x2nrealloc (p, pn, 1); } /* Allocate S bytes of zeroed memory dynamically, with error checking. There's no need for xnzalloc (N, S), since it would be equivalent to xcalloc (N, S). */ void * xzalloc (size_t s) { return memset (xmalloc (s), 0, s); } /* Allocate zeroed memory for N elements of S bytes, with error checking. S must be nonzero. */ void * xcalloc (size_t n, size_t s) { void *p; /* Test for overflow, since some calloc implementations don't have proper overflow checks. But omit overflow and size-zero tests if HAVE_GNU_CALLOC, since GNU calloc catches overflow and never returns NULL if successful. */ if ((! HAVE_GNU_CALLOC && xalloc_oversized (n, s)) || (! (p = calloc (n, s)) && (HAVE_GNU_CALLOC || n != 0))) xalloc_die (); return p; } /* Clone an object P of size S, with error checking. There's no need for xnmemdup (P, N, S), since xmemdup (P, N * S) works without any need for an arithmetic overflow check. */ void * xmemdup (void const *p, size_t s) { return memcpy (xmalloc (s), p, s); } /* Clone STRING. */ char * xstrdup (char const *string) { return xmemdup (string, strlen (string) + 1); } mlocate-0.26/gnulib/lib/xalloc.h0000664000175000017500000001721211353206451013474 00000000000000/* xalloc.h -- malloc with out-of-memory checking Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2003, 2004, 2006, 2007 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef XALLOC_H_ # define XALLOC_H_ # include # ifdef __cplusplus extern "C" { # endif # ifndef __attribute__ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__ # define __attribute__(x) # endif # endif # ifndef ATTRIBUTE_NORETURN # define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__)) # endif /* This function is always triggered when memory is exhausted. It must be defined by the application, either explicitly or by using gnulib's xalloc-die module. This is the function to call when one wants the program to die because of a memory allocation failure. */ extern void xalloc_die (void) ATTRIBUTE_NORETURN; void *xmalloc (size_t s); void *xzalloc (size_t s); void *xcalloc (size_t n, size_t s); void *xrealloc (void *p, size_t s); void *x2realloc (void *p, size_t *pn); void *xmemdup (void const *p, size_t s); char *xstrdup (char const *str); /* Return 1 if an array of N objects, each of size S, cannot exist due to size arithmetic overflow. S must be positive and N must be nonnegative. This is a macro, not an inline function, so that it works correctly even when SIZE_MAX < N. By gnulib convention, SIZE_MAX represents overflow in size calculations, so the conservative dividend to use here is SIZE_MAX - 1, since SIZE_MAX might represent an overflowed value. However, malloc (SIZE_MAX) fails on all known hosts where sizeof (ptrdiff_t) <= sizeof (size_t), so do not bother to test for exactly-SIZE_MAX allocations on such hosts; this avoids a test and branch when S is known to be 1. */ # define xalloc_oversized(n, s) \ ((size_t) (sizeof (ptrdiff_t) <= sizeof (size_t) ? -1 : -2) / (s) < (n)) /* In the following macros, T must be an elementary or structure/union or typedef'ed type, or a pointer to such a type. To apply one of the following macros to a function pointer or array type, you need to typedef it first and use the typedef name. */ /* Allocate an object of type T dynamically, with error checking. */ /* extern t *XMALLOC (typename t); */ # define XMALLOC(t) ((t *) xmalloc (sizeof (t))) /* Allocate memory for N elements of type T, with error checking. */ /* extern t *XNMALLOC (size_t n, typename t); */ # define XNMALLOC(n, t) \ ((t *) (sizeof (t) == 1 ? xmalloc (n) : xnmalloc (n, sizeof (t)))) /* Allocate an object of type T dynamically, with error checking, and zero it. */ /* extern t *XZALLOC (typename t); */ # define XZALLOC(t) ((t *) xzalloc (sizeof (t))) /* Allocate memory for N elements of type T, with error checking, and zero it. */ /* extern t *XCALLOC (size_t n, typename t); */ # define XCALLOC(n, t) \ ((t *) (sizeof (t) == 1 ? xzalloc (n) : xcalloc (n, sizeof (t)))) # if HAVE_INLINE # define static_inline static inline # else void *xnmalloc (size_t n, size_t s); void *xnrealloc (void *p, size_t n, size_t s); void *x2nrealloc (void *p, size_t *pn, size_t s); char *xcharalloc (size_t n); # endif # ifdef static_inline /* Allocate an array of N objects, each with S bytes of memory, dynamically, with error checking. S must be nonzero. */ static_inline void * xnmalloc (size_t n, size_t s) { if (xalloc_oversized (n, s)) xalloc_die (); return xmalloc (n * s); } /* Change the size of an allocated block of memory P to an array of N objects each of S bytes, with error checking. S must be nonzero. */ static_inline void * xnrealloc (void *p, size_t n, size_t s) { if (xalloc_oversized (n, s)) xalloc_die (); return xrealloc (p, n * s); } /* If P is null, allocate a block of at least *PN such objects; otherwise, reallocate P so that it contains more than *PN objects each of S bytes. *PN must be nonzero unless P is null, and S must be nonzero. Set *PN to the new number of objects, and return the pointer to the new block. *PN is never set to zero, and the returned pointer is never null. Repeated reallocations are guaranteed to make progress, either by allocating an initial block with a nonzero size, or by allocating a larger block. In the following implementation, nonzero sizes are increased by a factor of approximately 1.5 so that repeated reallocations have O(N) overall cost rather than O(N**2) cost, but the specification for this function does not guarantee that rate. Here is an example of use: int *p = NULL; size_t used = 0; size_t allocated = 0; void append_int (int value) { if (used == allocated) p = x2nrealloc (p, &allocated, sizeof *p); p[used++] = value; } This causes x2nrealloc to allocate a block of some nonzero size the first time it is called. To have finer-grained control over the initial size, set *PN to a nonzero value before calling this function with P == NULL. For example: int *p = NULL; size_t used = 0; size_t allocated = 0; size_t allocated1 = 1000; void append_int (int value) { if (used == allocated) { p = x2nrealloc (p, &allocated1, sizeof *p); allocated = allocated1; } p[used++] = value; } */ static_inline void * x2nrealloc (void *p, size_t *pn, size_t s) { size_t n = *pn; if (! p) { if (! n) { /* The approximate size to use for initial small allocation requests, when the invoking code specifies an old size of zero. 64 bytes is the largest "small" request for the GNU C library malloc. */ enum { DEFAULT_MXFAST = 64 }; n = DEFAULT_MXFAST / s; n += !n; } } else { /* Set N = ceil (1.5 * N) so that progress is made if N == 1. Check for overflow, so that N * S stays in size_t range. The check is slightly conservative, but an exact check isn't worth the trouble. */ if ((size_t) -1 / 3 * 2 / s <= n) xalloc_die (); n += (n + 1) / 2; } *pn = n; return xrealloc (p, n * s); } /* Return a pointer to a new buffer of N bytes. This is like xmalloc, except it returns char *. */ static_inline char * xcharalloc (size_t n) { return XNMALLOC (n, char); } # endif # ifdef __cplusplus } /* C++ does not allow conversions from void * to other pointer types without a cast. Use templates to work around the problem when possible. */ template inline T * xrealloc (T *p, size_t s) { return (T *) xrealloc ((void *) p, s); } template inline T * xnrealloc (T *p, size_t n, size_t s) { return (T *) xnrealloc ((void *) p, n, s); } template inline T * x2realloc (T *p, size_t *pn) { return (T *) x2realloc ((void *) p, pn); } template inline T * x2nrealloc (T *p, size_t *pn, size_t s) { return (T *) x2nrealloc ((void *) p, pn, s); } template inline T * xmemdup (T const *p, size_t s) { return (T *) xmemdup ((void const *) p, s); } # endif #endif /* !XALLOC_H_ */ mlocate-0.26/gnulib/lib/unitypes.h0000664000175000017500000000202611353206451014067 00000000000000/* Elementary types for the GNU UniString library. Copyright (C) 2002, 2005-2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _UNITYPES_H #define _UNITYPES_H /* Get uint8_t, uint16_t, uint32_t. */ #include /* Type representing a Unicode character. */ typedef uint32_t ucs4_t; #endif /* _UNITYPES_H */ mlocate-0.26/gnulib/lib/ref-add.sin0000664000175000017500000000205111353206451014051 00000000000000# Add this package to a list of references stored in a text file. # # Copyright (C) 2000 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, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # Written by Bruno Haible . # /^# Packages using this file: / { s/# Packages using this file:// ta :a s/ @PACKAGE@ / @PACKAGE@ / tb s/ $/ @PACKAGE@ / :b s/^/# Packages using this file:/ } mlocate-0.26/gnulib/lib/fnmatch_loop.c0000664000175000017500000007221111353206451014656 00000000000000/* Copyright (C) 1991,1992,1993,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. This file is part of the GNU C Library. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Match STRING against the file name pattern PATTERN, returning zero if it matches, nonzero if not. */ static int EXT (INT opt, const CHAR *pattern, const CHAR *string, const CHAR *string_end, bool no_leading_period, int flags) internal_function; static const CHAR *END (const CHAR *patternp) internal_function; static int internal_function FCT (const CHAR *pattern, const CHAR *string, const CHAR *string_end, bool no_leading_period, int flags) { register const CHAR *p = pattern, *n = string; register UCHAR c; #ifdef _LIBC # if WIDE_CHAR_VERSION const char *collseq = (const char *) _NL_CURRENT(LC_COLLATE, _NL_COLLATE_COLLSEQWC); # else const UCHAR *collseq = (const UCHAR *) _NL_CURRENT(LC_COLLATE, _NL_COLLATE_COLLSEQMB); # endif #endif while ((c = *p++) != L_('\0')) { bool new_no_leading_period = false; c = FOLD (c); switch (c) { case L_('?'): if (__builtin_expect (flags & FNM_EXTMATCH, 0) && *p == '(') { int res; res = EXT (c, p, n, string_end, no_leading_period, flags); if (res != -1) return res; } if (n == string_end) return FNM_NOMATCH; else if (*n == L_('/') && (flags & FNM_FILE_NAME)) return FNM_NOMATCH; else if (*n == L_('.') && no_leading_period) return FNM_NOMATCH; break; case L_('\\'): if (!(flags & FNM_NOESCAPE)) { c = *p++; if (c == L_('\0')) /* Trailing \ loses. */ return FNM_NOMATCH; c = FOLD (c); } if (n == string_end || FOLD ((UCHAR) *n) != c) return FNM_NOMATCH; break; case L_('*'): if (__builtin_expect (flags & FNM_EXTMATCH, 0) && *p == '(') { int res; res = EXT (c, p, n, string_end, no_leading_period, flags); if (res != -1) return res; } if (n != string_end && *n == L_('.') && no_leading_period) return FNM_NOMATCH; for (c = *p++; c == L_('?') || c == L_('*'); c = *p++) { if (*p == L_('(') && (flags & FNM_EXTMATCH) != 0) { const CHAR *endp = END (p); if (endp != p) { /* This is a pattern. Skip over it. */ p = endp; continue; } } if (c == L_('?')) { /* A ? needs to match one character. */ if (n == string_end) /* There isn't another character; no match. */ return FNM_NOMATCH; else if (*n == L_('/') && __builtin_expect (flags & FNM_FILE_NAME, 0)) /* A slash does not match a wildcard under FNM_FILE_NAME. */ return FNM_NOMATCH; else /* One character of the string is consumed in matching this ? wildcard, so *??? won't match if there are less than three characters. */ ++n; } } if (c == L_('\0')) /* The wildcard(s) is/are the last element of the pattern. If the name is a file name and contains another slash this means it cannot match, unless the FNM_LEADING_DIR flag is set. */ { int result = (flags & FNM_FILE_NAME) == 0 ? 0 : FNM_NOMATCH; if (flags & FNM_FILE_NAME) { if (flags & FNM_LEADING_DIR) result = 0; else { if (MEMCHR (n, L_('/'), string_end - n) == NULL) result = 0; } } return result; } else { const CHAR *endp; endp = MEMCHR (n, (flags & FNM_FILE_NAME) ? L_('/') : L_('\0'), string_end - n); if (endp == NULL) endp = string_end; if (c == L_('[') || (__builtin_expect (flags & FNM_EXTMATCH, 0) != 0 && (c == L_('@') || c == L_('+') || c == L_('!')) && *p == L_('('))) { int flags2 = ((flags & FNM_FILE_NAME) ? flags : (flags & ~FNM_PERIOD)); bool no_leading_period2 = no_leading_period; for (--p; n < endp; ++n, no_leading_period2 = false) if (FCT (p, n, string_end, no_leading_period2, flags2) == 0) return 0; } else if (c == L_('/') && (flags & FNM_FILE_NAME)) { while (n < string_end && *n != L_('/')) ++n; if (n < string_end && *n == L_('/') && (FCT (p, n + 1, string_end, flags & FNM_PERIOD, flags) == 0)) return 0; } else { int flags2 = ((flags & FNM_FILE_NAME) ? flags : (flags & ~FNM_PERIOD)); int no_leading_period2 = no_leading_period; if (c == L_('\\') && !(flags & FNM_NOESCAPE)) c = *p; c = FOLD (c); for (--p; n < endp; ++n, no_leading_period2 = false) if (FOLD ((UCHAR) *n) == c && (FCT (p, n, string_end, no_leading_period2, flags2) == 0)) return 0; } } /* If we come here no match is possible with the wildcard. */ return FNM_NOMATCH; case L_('['): { /* Nonzero if the sense of the character class is inverted. */ register bool not; CHAR cold; UCHAR fn; if (posixly_correct == 0) posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1; if (n == string_end) return FNM_NOMATCH; if (*n == L_('.') && no_leading_period) return FNM_NOMATCH; if (*n == L_('/') && (flags & FNM_FILE_NAME)) /* `/' cannot be matched. */ return FNM_NOMATCH; not = (*p == L_('!') || (posixly_correct < 0 && *p == L_('^'))); if (not) ++p; fn = FOLD ((UCHAR) *n); c = *p++; for (;;) { if (!(flags & FNM_NOESCAPE) && c == L_('\\')) { if (*p == L_('\0')) return FNM_NOMATCH; c = FOLD ((UCHAR) *p); ++p; goto normal_bracket; } else if (c == L_('[') && *p == L_(':')) { /* Leave room for the null. */ CHAR str[CHAR_CLASS_MAX_LENGTH + 1]; size_t c1 = 0; #if defined _LIBC || WIDE_CHAR_SUPPORT wctype_t wt; #endif const CHAR *startp = p; for (;;) { if (c1 == CHAR_CLASS_MAX_LENGTH) /* The name is too long and therefore the pattern is ill-formed. */ return FNM_NOMATCH; c = *++p; if (c == L_(':') && p[1] == L_(']')) { p += 2; break; } if (c < L_('a') || c >= L_('z')) { /* This cannot possibly be a character class name. Match it as a normal range. */ p = startp; c = L_('['); goto normal_bracket; } str[c1++] = c; } str[c1] = L_('\0'); #if defined _LIBC || WIDE_CHAR_SUPPORT wt = IS_CHAR_CLASS (str); if (wt == 0) /* Invalid character class name. */ return FNM_NOMATCH; # if defined _LIBC && ! WIDE_CHAR_VERSION /* The following code is glibc specific but does there a good job in speeding up the code since we can avoid the btowc() call. */ if (_ISCTYPE ((UCHAR) *n, wt)) goto matched; # else if (ISWCTYPE (BTOWC ((UCHAR) *n), wt)) goto matched; # endif #else if ((STREQ (str, L_("alnum")) && isalnum ((UCHAR) *n)) || (STREQ (str, L_("alpha")) && isalpha ((UCHAR) *n)) || (STREQ (str, L_("blank")) && isblank ((UCHAR) *n)) || (STREQ (str, L_("cntrl")) && iscntrl ((UCHAR) *n)) || (STREQ (str, L_("digit")) && isdigit ((UCHAR) *n)) || (STREQ (str, L_("graph")) && isgraph ((UCHAR) *n)) || (STREQ (str, L_("lower")) && islower ((UCHAR) *n)) || (STREQ (str, L_("print")) && isprint ((UCHAR) *n)) || (STREQ (str, L_("punct")) && ispunct ((UCHAR) *n)) || (STREQ (str, L_("space")) && isspace ((UCHAR) *n)) || (STREQ (str, L_("upper")) && isupper ((UCHAR) *n)) || (STREQ (str, L_("xdigit")) && isxdigit ((UCHAR) *n))) goto matched; #endif c = *p++; } #ifdef _LIBC else if (c == L_('[') && *p == L_('=')) { UCHAR str[1]; uint32_t nrules = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES); const CHAR *startp = p; c = *++p; if (c == L_('\0')) { p = startp; c = L_('['); goto normal_bracket; } str[0] = c; c = *++p; if (c != L_('=') || p[1] != L_(']')) { p = startp; c = L_('['); goto normal_bracket; } p += 2; if (nrules == 0) { if ((UCHAR) *n == str[0]) goto matched; } else { const int32_t *table; # if WIDE_CHAR_VERSION const int32_t *weights; const int32_t *extra; # else const unsigned char *weights; const unsigned char *extra; # endif const int32_t *indirect; int32_t idx; const UCHAR *cp = (const UCHAR *) str; /* This #include defines a local function! */ # if WIDE_CHAR_VERSION # include # else # include # endif # if WIDE_CHAR_VERSION table = (const int32_t *) _NL_CURRENT (LC_COLLATE, _NL_COLLATE_TABLEWC); weights = (const int32_t *) _NL_CURRENT (LC_COLLATE, _NL_COLLATE_WEIGHTWC); extra = (const int32_t *) _NL_CURRENT (LC_COLLATE, _NL_COLLATE_EXTRAWC); indirect = (const int32_t *) _NL_CURRENT (LC_COLLATE, _NL_COLLATE_INDIRECTWC); # else table = (const int32_t *) _NL_CURRENT (LC_COLLATE, _NL_COLLATE_TABLEMB); weights = (const unsigned char *) _NL_CURRENT (LC_COLLATE, _NL_COLLATE_WEIGHTMB); extra = (const unsigned char *) _NL_CURRENT (LC_COLLATE, _NL_COLLATE_EXTRAMB); indirect = (const int32_t *) _NL_CURRENT (LC_COLLATE, _NL_COLLATE_INDIRECTMB); # endif idx = findidx (&cp); if (idx != 0) { /* We found a table entry. Now see whether the character we are currently at has the same equivalance class value. */ int len = weights[idx]; int32_t idx2; const UCHAR *np = (const UCHAR *) n; idx2 = findidx (&np); if (idx2 != 0 && len == weights[idx2]) { int cnt = 0; while (cnt < len && (weights[idx + 1 + cnt] == weights[idx2 + 1 + cnt])) ++cnt; if (cnt == len) goto matched; } } } c = *p++; } #endif else if (c == L_('\0')) /* [ (unterminated) loses. */ return FNM_NOMATCH; else { bool is_range = false; #ifdef _LIBC bool is_seqval = false; if (c == L_('[') && *p == L_('.')) { uint32_t nrules = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES); const CHAR *startp = p; size_t c1 = 0; while (1) { c = *++p; if (c == L_('.') && p[1] == L_(']')) { p += 2; break; } if (c == '\0') return FNM_NOMATCH; ++c1; } /* We have to handling the symbols differently in ranges since then the collation sequence is important. */ is_range = *p == L_('-') && p[1] != L_('\0'); if (nrules == 0) { /* There are no names defined in the collation data. Therefore we only accept the trivial names consisting of the character itself. */ if (c1 != 1) return FNM_NOMATCH; if (!is_range && *n == startp[1]) goto matched; cold = startp[1]; c = *p++; } else { int32_t table_size; const int32_t *symb_table; # ifdef WIDE_CHAR_VERSION char str[c1]; size_t strcnt; # else # define str (startp + 1) # endif const unsigned char *extra; int32_t idx; int32_t elem; int32_t second; int32_t hash; # ifdef WIDE_CHAR_VERSION /* We have to convert the name to a single-byte string. This is possible since the names consist of ASCII characters and the internal representation is UCS4. */ for (strcnt = 0; strcnt < c1; ++strcnt) str[strcnt] = startp[1 + strcnt]; # endif table_size = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_SYMB_HASH_SIZEMB); symb_table = (const int32_t *) _NL_CURRENT (LC_COLLATE, _NL_COLLATE_SYMB_TABLEMB); extra = (const unsigned char *) _NL_CURRENT (LC_COLLATE, _NL_COLLATE_SYMB_EXTRAMB); /* Locate the character in the hashing table. */ hash = elem_hash (str, c1); idx = 0; elem = hash % table_size; if (symb_table[2 * elem] != 0) { second = hash % (table_size - 2) + 1; do { /* First compare the hashing value. */ if (symb_table[2 * elem] == hash && (c1 == extra[symb_table[2 * elem + 1]]) && memcmp (str, &extra[symb_table[2 * elem + 1] + 1], c1) == 0) { /* Yep, this is the entry. */ idx = symb_table[2 * elem + 1]; idx += 1 + extra[idx]; break; } /* Next entry. */ elem += second; } while (symb_table[2 * elem] != 0); } if (symb_table[2 * elem] != 0) { /* Compare the byte sequence but only if this is not part of a range. */ # ifdef WIDE_CHAR_VERSION int32_t *wextra; idx += 1 + extra[idx]; /* Adjust for the alignment. */ idx = (idx + 3) & ~3; wextra = (int32_t *) &extra[idx + 4]; # endif if (! is_range) { # ifdef WIDE_CHAR_VERSION for (c1 = 0; (int32_t) c1 < wextra[idx]; ++c1) if (n[c1] != wextra[1 + c1]) break; if ((int32_t) c1 == wextra[idx]) goto matched; # else for (c1 = 0; c1 < extra[idx]; ++c1) if (n[c1] != extra[1 + c1]) break; if (c1 == extra[idx]) goto matched; # endif } /* Get the collation sequence value. */ is_seqval = true; # ifdef WIDE_CHAR_VERSION cold = wextra[1 + wextra[idx]]; # else /* Adjust for the alignment. */ idx += 1 + extra[idx]; idx = (idx + 3) & ~4; cold = *((int32_t *) &extra[idx]); # endif c = *p++; } else if (c1 == 1) { /* No valid character. Match it as a single byte. */ if (!is_range && *n == str[0]) goto matched; cold = str[0]; c = *p++; } else return FNM_NOMATCH; } } else # undef str #endif { c = FOLD (c); normal_bracket: /* We have to handling the symbols differently in ranges since then the collation sequence is important. */ is_range = (*p == L_('-') && p[1] != L_('\0') && p[1] != L_(']')); if (!is_range && c == fn) goto matched; #if _LIBC /* This is needed if we goto normal_bracket; from outside of is_seqval's scope. */ is_seqval = false; #endif cold = c; c = *p++; } if (c == L_('-') && *p != L_(']')) { #if _LIBC /* We have to find the collation sequence value for C. Collation sequence is nothing we can regularly access. The sequence value is defined by the order in which the definitions of the collation values for the various characters appear in the source file. A strange concept, nowhere documented. */ uint32_t fcollseq; uint32_t lcollseq; UCHAR cend = *p++; # ifdef WIDE_CHAR_VERSION /* Search in the `names' array for the characters. */ fcollseq = __collseq_table_lookup (collseq, fn); if (fcollseq == ~((uint32_t) 0)) /* XXX We don't know anything about the character we are supposed to match. This means we are failing. */ goto range_not_matched; if (is_seqval) lcollseq = cold; else lcollseq = __collseq_table_lookup (collseq, cold); # else fcollseq = collseq[fn]; lcollseq = is_seqval ? cold : collseq[(UCHAR) cold]; # endif is_seqval = false; if (cend == L_('[') && *p == L_('.')) { uint32_t nrules = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES); const CHAR *startp = p; size_t c1 = 0; while (1) { c = *++p; if (c == L_('.') && p[1] == L_(']')) { p += 2; break; } if (c == '\0') return FNM_NOMATCH; ++c1; } if (nrules == 0) { /* There are no names defined in the collation data. Therefore we only accept the trivial names consisting of the character itself. */ if (c1 != 1) return FNM_NOMATCH; cend = startp[1]; } else { int32_t table_size; const int32_t *symb_table; # ifdef WIDE_CHAR_VERSION char str[c1]; size_t strcnt; # else # define str (startp + 1) # endif const unsigned char *extra; int32_t idx; int32_t elem; int32_t second; int32_t hash; # ifdef WIDE_CHAR_VERSION /* We have to convert the name to a single-byte string. This is possible since the names consist of ASCII characters and the internal representation is UCS4. */ for (strcnt = 0; strcnt < c1; ++strcnt) str[strcnt] = startp[1 + strcnt]; # endif table_size = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_SYMB_HASH_SIZEMB); symb_table = (const int32_t *) _NL_CURRENT (LC_COLLATE, _NL_COLLATE_SYMB_TABLEMB); extra = (const unsigned char *) _NL_CURRENT (LC_COLLATE, _NL_COLLATE_SYMB_EXTRAMB); /* Locate the character in the hashing table. */ hash = elem_hash (str, c1); idx = 0; elem = hash % table_size; if (symb_table[2 * elem] != 0) { second = hash % (table_size - 2) + 1; do { /* First compare the hashing value. */ if (symb_table[2 * elem] == hash && (c1 == extra[symb_table[2 * elem + 1]]) && memcmp (str, &extra[symb_table[2 * elem + 1] + 1], c1) == 0) { /* Yep, this is the entry. */ idx = symb_table[2 * elem + 1]; idx += 1 + extra[idx]; break; } /* Next entry. */ elem += second; } while (symb_table[2 * elem] != 0); } if (symb_table[2 * elem] != 0) { /* Compare the byte sequence but only if this is not part of a range. */ # ifdef WIDE_CHAR_VERSION int32_t *wextra; idx += 1 + extra[idx]; /* Adjust for the alignment. */ idx = (idx + 3) & ~4; wextra = (int32_t *) &extra[idx + 4]; # endif /* Get the collation sequence value. */ is_seqval = true; # ifdef WIDE_CHAR_VERSION cend = wextra[1 + wextra[idx]]; # else /* Adjust for the alignment. */ idx += 1 + extra[idx]; idx = (idx + 3) & ~4; cend = *((int32_t *) &extra[idx]); # endif } else if (symb_table[2 * elem] != 0 && c1 == 1) { cend = str[0]; c = *p++; } else return FNM_NOMATCH; } # undef str } else { if (!(flags & FNM_NOESCAPE) && cend == L_('\\')) cend = *p++; if (cend == L_('\0')) return FNM_NOMATCH; cend = FOLD (cend); } /* XXX It is not entirely clear to me how to handle characters which are not mentioned in the collation specification. */ if ( # ifdef WIDE_CHAR_VERSION lcollseq == 0xffffffff || # endif lcollseq <= fcollseq) { /* We have to look at the upper bound. */ uint32_t hcollseq; if (is_seqval) hcollseq = cend; else { # ifdef WIDE_CHAR_VERSION hcollseq = __collseq_table_lookup (collseq, cend); if (hcollseq == ~((uint32_t) 0)) { /* Hum, no information about the upper bound. The matching succeeds if the lower bound is matched exactly. */ if (lcollseq != fcollseq) goto range_not_matched; goto matched; } # else hcollseq = collseq[cend]; # endif } if (lcollseq <= hcollseq && fcollseq <= hcollseq) goto matched; } # ifdef WIDE_CHAR_VERSION range_not_matched: # endif #else /* We use a boring value comparison of the character values. This is better than comparing using `strcoll' since the latter would have surprising and sometimes fatal consequences. */ UCHAR cend = *p++; if (!(flags & FNM_NOESCAPE) && cend == L_('\\')) cend = *p++; if (cend == L_('\0')) return FNM_NOMATCH; /* It is a range. */ if (cold <= fn && fn <= cend) goto matched; #endif c = *p++; } } if (c == L_(']')) break; } if (!not) return FNM_NOMATCH; break; matched: /* Skip the rest of the [...] that already matched. */ do { ignore_next: c = *p++; if (c == L_('\0')) /* [... (unterminated) loses. */ return FNM_NOMATCH; if (!(flags & FNM_NOESCAPE) && c == L_('\\')) { if (*p == L_('\0')) return FNM_NOMATCH; /* XXX 1003.2d11 is unclear if this is right. */ ++p; } else if (c == L_('[') && *p == L_(':')) { int c1 = 0; const CHAR *startp = p; while (1) { c = *++p; if (++c1 == CHAR_CLASS_MAX_LENGTH) return FNM_NOMATCH; if (*p == L_(':') && p[1] == L_(']')) break; if (c < L_('a') || c >= L_('z')) { p = startp; goto ignore_next; } } p += 2; c = *p++; } else if (c == L_('[') && *p == L_('=')) { c = *++p; if (c == L_('\0')) return FNM_NOMATCH; c = *++p; if (c != L_('=') || p[1] != L_(']')) return FNM_NOMATCH; p += 2; c = *p++; } else if (c == L_('[') && *p == L_('.')) { ++p; while (1) { c = *++p; if (c == '\0') return FNM_NOMATCH; if (*p == L_('.') && p[1] == L_(']')) break; } p += 2; c = *p++; } } while (c != L_(']')); if (not) return FNM_NOMATCH; } break; case L_('+'): case L_('@'): case L_('!'): if (__builtin_expect (flags & FNM_EXTMATCH, 0) && *p == '(') { int res; res = EXT (c, p, n, string_end, no_leading_period, flags); if (res != -1) return res; } goto normal_match; case L_('/'): if (NO_LEADING_PERIOD (flags)) { if (n == string_end || c != (UCHAR) *n) return FNM_NOMATCH; new_no_leading_period = true; break; } /* FALLTHROUGH */ default: normal_match: if (n == string_end || c != FOLD ((UCHAR) *n)) return FNM_NOMATCH; } no_leading_period = new_no_leading_period; ++n; } if (n == string_end) return 0; if ((flags & FNM_LEADING_DIR) && n != string_end && *n == L_('/')) /* The FNM_LEADING_DIR flag says that "foo*" matches "foobar/frobozz". */ return 0; return FNM_NOMATCH; } static const CHAR * internal_function END (const CHAR *pattern) { const CHAR *p = pattern; while (1) if (*++p == L_('\0')) /* This is an invalid pattern. */ return pattern; else if (*p == L_('[')) { /* Handle brackets special. */ if (posixly_correct == 0) posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1; /* Skip the not sign. We have to recognize it because of a possibly following ']'. */ if (*++p == L_('!') || (posixly_correct < 0 && *p == L_('^'))) ++p; /* A leading ']' is recognized as such. */ if (*p == L_(']')) ++p; /* Skip over all characters of the list. */ while (*p != L_(']')) if (*p++ == L_('\0')) /* This is no valid pattern. */ return pattern; } else if ((*p == L_('?') || *p == L_('*') || *p == L_('+') || *p == L_('@') || *p == L_('!')) && p[1] == L_('(')) p = END (p + 1); else if (*p == L_(')')) break; return p + 1; } static int internal_function EXT (INT opt, const CHAR *pattern, const CHAR *string, const CHAR *string_end, bool no_leading_period, int flags) { const CHAR *startp; size_t level; struct patternlist { struct patternlist *next; CHAR str[1]; } *list = NULL; struct patternlist **lastp = &list; size_t pattern_len = STRLEN (pattern); const CHAR *p; const CHAR *rs; enum { ALLOCA_LIMIT = 8000 }; /* Parse the pattern. Store the individual parts in the list. */ level = 0; for (startp = p = pattern + 1; ; ++p) if (*p == L_('\0')) /* This is an invalid pattern. */ return -1; else if (*p == L_('[')) { /* Handle brackets special. */ if (posixly_correct == 0) posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1; /* Skip the not sign. We have to recognize it because of a possibly following ']'. */ if (*++p == L_('!') || (posixly_correct < 0 && *p == L_('^'))) ++p; /* A leading ']' is recognized as such. */ if (*p == L_(']')) ++p; /* Skip over all characters of the list. */ while (*p != L_(']')) if (*p++ == L_('\0')) /* This is no valid pattern. */ return -1; } else if ((*p == L_('?') || *p == L_('*') || *p == L_('+') || *p == L_('@') || *p == L_('!')) && p[1] == L_('(')) /* Remember the nesting level. */ ++level; else if (*p == L_(')')) { if (level-- == 0) { /* This means we found the end of the pattern. */ #define NEW_PATTERN \ struct patternlist *newp; \ size_t plen; \ size_t plensize; \ size_t newpsize; \ \ plen = (opt == L_('?') || opt == L_('@') \ ? pattern_len \ : p - startp + 1); \ plensize = plen * sizeof (CHAR); \ newpsize = offsetof (struct patternlist, str) + plensize; \ if ((size_t) -1 / sizeof (CHAR) < plen \ || newpsize < offsetof (struct patternlist, str) \ || ALLOCA_LIMIT <= newpsize) \ return -1; \ newp = (struct patternlist *) alloca (newpsize); \ *((CHAR *) MEMPCPY (newp->str, startp, p - startp)) = L_('\0'); \ newp->next = NULL; \ *lastp = newp; \ lastp = &newp->next NEW_PATTERN; break; } } else if (*p == L_('|')) { if (level == 0) { NEW_PATTERN; startp = p + 1; } } assert (list != NULL); assert (p[-1] == L_(')')); #undef NEW_PATTERN switch (opt) { case L_('*'): if (FCT (p, string, string_end, no_leading_period, flags) == 0) return 0; /* FALLTHROUGH */ case L_('+'): do { for (rs = string; rs <= string_end; ++rs) /* First match the prefix with the current pattern with the current pattern. */ if (FCT (list->str, string, rs, no_leading_period, flags & FNM_FILE_NAME ? flags : flags & ~FNM_PERIOD) == 0 /* This was successful. Now match the rest with the rest of the pattern. */ && (FCT (p, rs, string_end, rs == string ? no_leading_period : rs[-1] == '/' && NO_LEADING_PERIOD (flags), flags & FNM_FILE_NAME ? flags : flags & ~FNM_PERIOD) == 0 /* This didn't work. Try the whole pattern. */ || (rs != string && FCT (pattern - 1, rs, string_end, rs == string ? no_leading_period : rs[-1] == '/' && NO_LEADING_PERIOD (flags), flags & FNM_FILE_NAME ? flags : flags & ~FNM_PERIOD) == 0))) /* It worked. Signal success. */ return 0; } while ((list = list->next) != NULL); /* None of the patterns lead to a match. */ return FNM_NOMATCH; case L_('?'): if (FCT (p, string, string_end, no_leading_period, flags) == 0) return 0; /* FALLTHROUGH */ case L_('@'): do /* I cannot believe it but `strcat' is actually acceptable here. Match the entire string with the prefix from the pattern list and the rest of the pattern following the pattern list. */ if (FCT (STRCAT (list->str, p), string, string_end, no_leading_period, flags & FNM_FILE_NAME ? flags : flags & ~FNM_PERIOD) == 0) /* It worked. Signal success. */ return 0; while ((list = list->next) != NULL); /* None of the patterns lead to a match. */ return FNM_NOMATCH; case L_('!'): for (rs = string; rs <= string_end; ++rs) { struct patternlist *runp; for (runp = list; runp != NULL; runp = runp->next) if (FCT (runp->str, string, rs, no_leading_period, flags & FNM_FILE_NAME ? flags : flags & ~FNM_PERIOD) == 0) break; /* If none of the patterns matched see whether the rest does. */ if (runp == NULL && (FCT (p, rs, string_end, rs == string ? no_leading_period : rs[-1] == '/' && NO_LEADING_PERIOD (flags), flags & FNM_FILE_NAME ? flags : flags & ~FNM_PERIOD) == 0)) /* This is successful. */ return 0; } /* None of the patterns together with the rest of the pattern lead to a match. */ return FNM_NOMATCH; default: assert (! "Invalid extended matching operator"); break; } return -1; } #undef FOLD #undef CHAR #undef UCHAR #undef INT #undef FCT #undef EXT #undef END #undef MEMPCPY #undef MEMCHR #undef STRCOLL #undef STRLEN #undef STRCAT #undef L_ #undef BTOWC mlocate-0.26/gnulib/lib/fwriteerror.c0000664000175000017500000001005011353206451014550 00000000000000/* Detect write error on a stream. Copyright (C) 2003-2006 Free Software Foundation, Inc. Written by Bruno Haible , 2003. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include /* Specification. */ #include "fwriteerror.h" #include #include static int do_fwriteerror (FILE *fp, bool ignore_ebadf) { /* State to allow multiple calls to fwriteerror (stdout). */ static bool stdout_closed = false; if (fp == stdout) { if (stdout_closed) return 0; /* If we are closing stdout, don't attempt to do it later again. */ stdout_closed = true; } /* Need to 1. test the error indicator of the stream, 2. flush the buffers both in userland and in the kernel, through fclose, testing for error again. */ /* Clear errno, so that on non-POSIX systems the caller doesn't see a wrong value of errno when we return -1. */ errno = 0; if (ferror (fp)) { if (fflush (fp)) goto close_preserving_errno; /* errno is set here */ /* The stream had an error earlier, but its errno was lost. If the error was not temporary, we can get the same errno by writing and flushing one more byte. We can do so because at this point the stream's contents is garbage anyway. */ if (fputc ('\0', fp) == EOF) goto close_preserving_errno; /* errno is set here */ if (fflush (fp)) goto close_preserving_errno; /* errno is set here */ /* Give up on errno. */ errno = 0; goto close_preserving_errno; } if (ignore_ebadf) { /* We need an explicit fflush to tell whether some output was already done on FP. */ if (fflush (fp)) goto close_preserving_errno; /* errno is set here */ if (fclose (fp) && errno != EBADF) return -1; /* errno is set here */ } else { if (fclose (fp)) return -1; /* errno is set here */ } return 0; close_preserving_errno: /* There's an error. Nevertheless call fclose(fp), for consistency with the other cases. */ { int saved_errno = errno; fclose (fp); errno = saved_errno; return -1; } } int fwriteerror (FILE *fp) { return do_fwriteerror (fp, false); } int fwriteerror_no_ebadf (FILE *fp) { return do_fwriteerror (fp, true); } #if TEST /* Name of a file on which writing fails. On systems without /dev/full, you can choose a filename on a full filesystem. */ #define UNWRITABLE_FILE "/dev/full" int main () { static int sizes[] = { 511, 512, 513, 1023, 1024, 1025, 2047, 2048, 2049, 4095, 4096, 4097, 8191, 8192, 8193 }; static char dummy[8193]; unsigned int i, j; for (i = 0; i < sizeof (sizes) / sizeof (sizes[0]); i++) { size_t size = sizes[i]; for (j = 0; j < 2; j++) { /* Run a test depending on i and j: Write size bytes and then calls fflush if j==1. */ FILE *stream = fopen (UNWRITABLE_FILE, "w"); if (stream == NULL) { fprintf (stderr, "Test %u:%u: could not open file\n", i, j); continue; } fwrite (dummy, 347, 1, stream); fwrite (dummy, size - 347, 1, stream); if (j) fflush (stream); if (fwriteerror (stream) == -1) { if (errno != ENOSPC) fprintf (stderr, "Test %u:%u: fwriteerror ok, errno = %d\n", i, j, errno); } else fprintf (stderr, "Test %u:%u: fwriteerror found no error!\n", i, j); } } return 0; } #endif mlocate-0.26/gnulib/m4/0000775000175000017500000000000012027217355011674 500000000000000mlocate-0.26/gnulib/m4/exitfail.m40000664000175000017500000000060611353206451013661 00000000000000# exitfail.m4 serial 6 dnl Copyright (C) 2002, 2003, 2005, 2006 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. AC_DEFUN([gl_EXITFAIL], [ AC_LIBOBJ([exitfail]) dnl No prerequisites of lib/exitfail.c. : ]) mlocate-0.26/gnulib/m4/gnulib-common.m40000664000175000017500000000156011353206451014622 00000000000000# gnulib-common.m4 serial 2 dnl Copyright (C) 2007 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. # gl_MODULE_INDICATOR([modulename]) # defines a C macro indicating the presence of the given module. AC_DEFUN([gl_MODULE_INDICATOR], [ AC_DEFINE([GNULIB_]translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___]), [1], [Define to 1 when using the gnulib module ]$1[.]) ]) # AC_PROG_MKDIR_P # is a backport of autoconf-2.60's AC_PROG_MKDIR_P. # Remove this macro when we can assume autoconf >= 2.60. m4_ifdef([AC_PROG_MKDIR_P], [], [ AC_DEFUN([AC_PROG_MKDIR_P], [AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake MKDIR_P='$(mkdir_p)' AC_SUBST([MKDIR_P])])]) mlocate-0.26/gnulib/m4/mbiter.m40000664000175000017500000000105311353206451013333 00000000000000# mbiter.m4 serial 2 dnl Copyright (C) 2005 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 autoconf tests required for use of mbiter.h dnl From Bruno Haible. AC_DEFUN([gl_MBITER], [ AC_REQUIRE([AC_TYPE_MBSTATE_T]) dnl The following line is that so the user can test HAVE_MBRTOWC before dnl #include "mbiter.h" or "mbuiter.h". AC_REQUIRE([gl_FUNC_MBRTOWC]) : ]) mlocate-0.26/gnulib/m4/strnlen.m40000664000175000017500000000200011353206452013530 00000000000000# strnlen.m4 serial 9 dnl Copyright (C) 2002-2003, 2005-2007 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. AC_DEFUN([gl_FUNC_STRNLEN], [ dnl Persuade glibc to declare strnlen(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) AC_CHECK_DECLS_ONCE([strnlen]) if test $ac_cv_have_decl_strnlen = no; then HAVE_DECL_STRNLEN=0 fi AC_FUNC_STRNLEN if test $ac_cv_func_strnlen_working = no; then # This is necessary because automake-1.6.1 doesn't understand # that the above use of AC_FUNC_STRNLEN means we may have to use # lib/strnlen.c. #AC_LIBOBJ(strnlen) AC_DEFINE(strnlen, rpl_strnlen, [Define to rpl_strnlen if the replacement function should be used.]) gl_PREREQ_STRNLEN fi ]) # Prerequisites of lib/strnlen.c. AC_DEFUN([gl_PREREQ_STRNLEN], [:]) mlocate-0.26/gnulib/m4/extensions.m40000664000175000017500000000561011353206451014253 00000000000000# serial 5 -*- Autoconf -*- # Enable extensions on systems that normally disable them. # Copyright (C) 2003, 2006, 2007 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 definition of AC_USE_SYSTEM_EXTENSIONS is stolen from CVS # Autoconf. Perhaps we can remove this once we can assume Autoconf # 2.62 or later everywhere, but since CVS Autoconf mutates rapidly # enough in this area it's likely we'll need to redefine # AC_USE_SYSTEM_EXTENSIONS for quite some time. # AC_USE_SYSTEM_EXTENSIONS # ------------------------ # Enable extensions on systems that normally disable them, # typically due to standards-conformance issues. # Remember that #undef in AH_VERBATIM gets replaced with #define by # AC_DEFINE. The goal here is to define all known feature-enabling # macros, then, if reports of conflicts are made, disable macros that # cause problems on some platforms (such as __EXTENSIONS__). AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], [AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl AC_BEFORE([$0], [AC_RUN_IFELSE])dnl AC_CHECK_HEADER([minix/config.h], [MINIX=yes], [MINIX=]) if test "$MINIX" = yes; then AC_DEFINE([_POSIX_SOURCE], [1], [Define to 1 if you need to in order for `stat' and other things to work.]) AC_DEFINE([_POSIX_1_SOURCE], [2], [Define to 2 if the system does not provide POSIX.1 features except with this defined.]) AC_DEFINE([_MINIX], [1], [Define to 1 if on MINIX.]) fi AH_VERBATIM([__EXTENSIONS__], [/* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # undef _ALL_SOURCE #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # undef _GNU_SOURCE #endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # undef _POSIX_PTHREAD_SEMANTICS #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # undef _TANDEM_SOURCE #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # undef __EXTENSIONS__ #endif ]) AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__], [ac_cv_safe_to_define___extensions__], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([ # define __EXTENSIONS__ 1 AC_INCLUDES_DEFAULT])], [ac_cv_safe_to_define___extensions__=yes], [ac_cv_safe_to_define___extensions__=no])]) test $ac_cv_safe_to_define___extensions__ = yes && AC_DEFINE([__EXTENSIONS__]) AC_DEFINE([_ALL_SOURCE]) AC_DEFINE([_GNU_SOURCE]) AC_DEFINE([_POSIX_PTHREAD_SEMANTICS]) AC_DEFINE([_TANDEM_SOURCE]) ])# AC_USE_SYSTEM_EXTENSIONS # gl_USE_SYSTEM_EXTENSIONS # ------------------------ # Enable extensions on systems that normally disable them, # typically due to standards-conformance issues. AC_DEFUN([gl_USE_SYSTEM_EXTENSIONS], [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])]) mlocate-0.26/gnulib/m4/mbslen.m40000664000175000017500000000065111353206451013334 00000000000000# mbslen.m4 serial 1 dnl Copyright (C) 2007 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. AC_DEFUN([gl_FUNC_MBSLEN], [ gl_PREREQ_MBSLEN ]) # Prerequisites of lib/mbslen.c. AC_DEFUN([gl_PREREQ_MBSLEN], [ AC_REQUIRE([gl_FUNC_MBRTOWC]) : ]) mlocate-0.26/gnulib/m4/error.m40000664000175000017500000000103411353206451013201 00000000000000#serial 11 # Copyright (C) 1996, 1997, 1998, 2001, 2002, 2003, 2004 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. AC_DEFUN([gl_ERROR], [ AC_FUNC_ERROR_AT_LINE dnl Note: AC_FUNC_ERROR_AT_LINE does AC_LIBSOURCES([error.h, error.c]). gl_PREREQ_ERROR ]) # Prerequisites of lib/error.c. AC_DEFUN([gl_PREREQ_ERROR], [ AC_REQUIRE([AC_FUNC_STRERROR_R]) : ]) mlocate-0.26/gnulib/m4/readlink.m40000664000175000017500000000136111353206452013645 00000000000000# readlink.m4 serial 4 dnl Copyright (C) 2003, 2007 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. AC_DEFUN([gl_FUNC_READLINK], [ AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) AC_CHECK_FUNCS_ONCE([readlink]) if test $ac_cv_func_readlink = no; then HAVE_READLINK=0 AC_LIBOBJ(readlink) gl_PREREQ_READLINK fi ]) # Like gl_FUNC_READLINK, except prepare for separate compilation (no AC_LIBOBJ). AC_DEFUN([gl_FUNC_READLINK_SEPARATE], [ AC_CHECK_FUNCS_ONCE([readlink]) gl_PREREQ_READLINK ]) # Prerequisites of lib/readlink.c. AC_DEFUN([gl_PREREQ_READLINK], [ : ]) mlocate-0.26/gnulib/m4/mbsstr.m40000664000175000017500000000065111353206452013367 00000000000000# mbsstr.m4 serial 1 dnl Copyright (C) 2007 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. AC_DEFUN([gl_FUNC_MBSSTR], [ gl_PREREQ_MBSSTR ]) # Prerequisites of lib/mbsstr.c. AC_DEFUN([gl_PREREQ_MBSSTR], [ AC_REQUIRE([gl_FUNC_MBRTOWC]) : ]) mlocate-0.26/gnulib/m4/gnulib-comp.m40000664000175000017500000001507511353206454014301 00000000000000# DO NOT EDIT! GENERATED AUTOMATICALLY! # Copyright (C) 2004-2007 Free Software Foundation, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General # Public License, this file may be distributed as part of a program # that contains a configuration script generated by Autoconf, under # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. # # This file represents the compiled summary of the specification in # gnulib-cache.m4. It lists the computed macro invocations that need # to be invoked from configure.ac. # In projects using CVS, this file can be treated like other built files. # This macro should be invoked from ./configure.ac, in the section # "Checks for programs", right after AC_PROG_CC, and certainly before # any checks for libraries, header files, types and library functions. AC_DEFUN([gl_EARLY], [ m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace m4_pattern_allow([^gl_ES$])dnl a valid locale name m4_pattern_allow([^gl_LIBOBJS$])dnl a variable m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable AC_REQUIRE([AC_PROG_RANLIB]) AC_REQUIRE([AM_PROG_CC_C_O]) AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) ]) # This macro should be invoked from ./configure.ac, in the section # "Check for header files, types and library functions". AC_DEFUN([gl_INIT], [ m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ])) m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS])) m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES])) AM_CONDITIONAL([GL_COND_LIBTOOL], [false]) gl_cond_libtool=false gl_libdeps= gl_ltlibdeps= gl_source_base='gnulib/lib' gl_FUNC_ALLOCA gl_CANONICALIZE_LGPL gl_CONFIG_H gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE gl_ERROR gl_EXITFAIL # No macro. You should also use one of fnmatch-posix or fnmatch-gnu. gl_FUNC_FNMATCH_GNU gl_MODULE_INDICATOR([fwriteerror]) gl_GETOPT AC_SUBST([LIBINTL]) AC_SUBST([LTLIBINTL]) gl_INLINE gl_LOCALCHARSET gl_MALLOCA gl_MBCHAR gl_FUNC_MBSLEN gl_STRING_MODULE_INDICATOR([mbslen]) gl_FUNC_MBSSTR gl_STRING_MODULE_INDICATOR([mbsstr]) gl_MBITER gl_FUNC_MEMCHR gl_FUNC_MEMPCPY gl_STRING_MODULE_INDICATOR([mempcpy]) AC_FUNC_OBSTACK dnl Note: AC_FUNC_OBSTACK does AC_LIBSOURCES([obstack.h, obstack.c]). gl_PATHMAX gl_FUNC_READLINK gl_UNISTD_MODULE_INDICATOR([readlink]) gl_SAFE_READ gt_TYPE_SSIZE_T gl_STAT_TIME gl_STAT_BIRTHTIME AM_STDBOOL_H gl_STDINT_H gl_STDLIB_H gl_FUNC_STRCHRNUL gl_STRING_MODULE_INDICATOR([strchrnul]) gl_FUNC_STRERROR gl_STRING_MODULE_INDICATOR([strerror]) gl_HEADER_STRING_H gl_FUNC_STRNLEN gl_STRING_MODULE_INDICATOR([strnlen]) gl_HEADER_TIME_H gl_TIMESPEC gl_UNISTD_H gl_WCHAR_H gl_WCTYPE_H gl_FUNC_WCWIDTH gl_WCHAR_MODULE_INDICATOR([wcwidth]) gl_XALLOC LIBGNU_LIBDEPS="$gl_libdeps" AC_SUBST([LIBGNU_LIBDEPS]) LIBGNU_LTLIBDEPS="$gl_ltlibdeps" AC_SUBST([LIBGNU_LTLIBDEPS]) m4_popdef([AC_LIBSOURCES]) m4_popdef([AC_REPLACE_FUNCS]) m4_popdef([AC_LIBOBJ]) AC_CONFIG_COMMANDS_PRE([ gl_libobjs= gl_ltlibobjs= if test -n "$gl_LIBOBJS"; then # Remove the extension. sed_drop_objext='s/\.o$//;s/\.obj$//' for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do gl_libobjs="$gl_libobjs $i.$ac_objext" gl_ltlibobjs="$gl_ltlibobjs $i.lo" done fi AC_SUBST([gl_LIBOBJS], [$gl_libobjs]) AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs]) ]) ]) # Like AC_LIBOBJ, except that the module name goes # into gl_LIBOBJS instead of into LIBOBJS. AC_DEFUN([gl_LIBOBJ], [ AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext" ]) # Like AC_REPLACE_FUNCS, except that the module name goes # into gl_LIBOBJS instead of into LIBOBJS. AC_DEFUN([gl_REPLACE_FUNCS], [ m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)]) ]) # Like AC_LIBSOURCES, except the directory where the source file is # expected is derived from the gnulib-tool parametrization, # and alloca is special cased (for the alloca-opt module). # We could also entirely rely on EXTRA_lib..._SOURCES. AC_DEFUN([gl_LIBSOURCES], [ m4_foreach([_gl_NAME], [$1], [ m4_if(_gl_NAME, [alloca.c], [], [ m4_syscmd([test -r gnulib/lib/]_gl_NAME[ || test ! -d gnulib/lib])dnl m4_if(m4_sysval, [0], [], [AC_FATAL([missing gnulib/lib/]_gl_NAME)]) ]) ]) ]) # This macro records the list of files which have been installed by # gnulib-tool and may be removed by future gnulib-tool invocations. AC_DEFUN([gl_FILE_LIST], [ build-aux/link-warning.h lib/alloca.c lib/alloca.in.h lib/canonicalize-lgpl.c lib/canonicalize.h lib/config.charset lib/error.c lib/error.h lib/exitfail.c lib/exitfail.h lib/fnmatch.c lib/fnmatch.in.h lib/fnmatch_loop.c lib/fwriteerror.c lib/fwriteerror.h lib/getopt.c lib/getopt.in.h lib/getopt1.c lib/getopt_int.h lib/gettext.h lib/localcharset.c lib/localcharset.h lib/malloca.c lib/malloca.h lib/malloca.valgrind lib/mbchar.c lib/mbchar.h lib/mbslen.c lib/mbsstr.c lib/mbuiter.h lib/memchr.c lib/mempcpy.c lib/obstack.c lib/obstack.h lib/pathmax.h lib/progname.c lib/progname.h lib/readlink.c lib/ref-add.sin lib/ref-del.sin lib/safe-read.c lib/safe-read.h lib/stat-time.h lib/stdbool.in.h lib/stdint.in.h lib/stdlib.in.h lib/strchrnul.c lib/streq.h lib/strerror.c lib/string.in.h lib/strnlen.c lib/strnlen1.c lib/strnlen1.h lib/time.in.h lib/timespec.h lib/unistd.in.h lib/unitypes.h lib/uniwidth.h lib/uniwidth/cjk.h lib/uniwidth/width.c lib/verify.h lib/wchar.in.h lib/wctype.in.h lib/wcwidth.c lib/xalloc-die.c lib/xalloc.h lib/xmalloc.c m4/absolute-header.m4 m4/alloca.m4 m4/canonicalize-lgpl.m4 m4/codeset.m4 m4/config-h.m4 m4/d-type.m4 m4/eealloc.m4 m4/error.m4 m4/exitfail.m4 m4/extensions.m4 m4/fnmatch.m4 m4/getopt.m4 m4/glibc21.m4 m4/gnulib-common.m4 m4/include_next.m4 m4/inline.m4 m4/localcharset.m4 m4/longlong.m4 m4/malloca.m4 m4/mbchar.m4 m4/mbiter.m4 m4/mbrtowc.m4 m4/mbslen.m4 m4/mbsstr.m4 m4/mbstate_t.m4 m4/memchr.m4 m4/mempcpy.m4 m4/pathmax.m4 m4/readlink.m4 m4/safe-read.m4 m4/ssize_t.m4 m4/stat-time.m4 m4/stdbool.m4 m4/stdint.m4 m4/stdlib_h.m4 m4/strchrnul.m4 m4/strerror.m4 m4/string_h.m4 m4/strnlen.m4 m4/time_h.m4 m4/timespec.m4 m4/ulonglong.m4 m4/unistd_h.m4 m4/wchar.m4 m4/wchar_t.m4 m4/wctype.m4 m4/wcwidth.m4 m4/wint_t.m4 m4/xalloc.m4 ]) mlocate-0.26/gnulib/m4/safe-read.m40000664000175000017500000000073311353206452013705 00000000000000# safe-read.m4 serial 5 dnl Copyright (C) 2002, 2003, 2005, 2006 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. AC_DEFUN([gl_SAFE_READ], [ AC_LIBOBJ([safe-read]) gl_PREREQ_SAFE_READ ]) # Prerequisites of lib/safe-read.c. AC_DEFUN([gl_PREREQ_SAFE_READ], [ AC_REQUIRE([gt_TYPE_SSIZE_T]) ]) mlocate-0.26/gnulib/m4/getopt.m40000664000175000017500000000471611353206451013364 00000000000000# getopt.m4 serial 13 dnl Copyright (C) 2002, 2003, 2004, 2005, 2006 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. # The getopt module assume you want GNU getopt, with getopt_long etc, # rather than vanilla POSIX getopt. This means your code should # always include for the getopt prototypes. AC_DEFUN([gl_GETOPT_SUBSTITUTE], [ AC_LIBOBJ([getopt]) AC_LIBOBJ([getopt1]) gl_GETOPT_SUBSTITUTE_HEADER gl_PREREQ_GETOPT ]) AC_DEFUN([gl_GETOPT_SUBSTITUTE_HEADER], [ GETOPT_H=getopt.h AC_DEFINE([__GETOPT_PREFIX], [[rpl_]], [Define to rpl_ if the getopt replacement functions and variables should be used.]) AC_SUBST([GETOPT_H]) ]) AC_DEFUN([gl_GETOPT_CHECK_HEADERS], [ if test -z "$GETOPT_H"; then AC_CHECK_HEADERS([getopt.h], [], [GETOPT_H=getopt.h]) fi if test -z "$GETOPT_H"; then AC_CHECK_FUNCS([getopt_long_only], [], [GETOPT_H=getopt.h]) fi dnl BSD getopt_long uses an incompatible method to reset option processing, dnl and (as of 2004-10-15) mishandles optional option-arguments. if test -z "$GETOPT_H"; then AC_CHECK_DECL([optreset], [GETOPT_H=getopt.h], [], [#include ]) fi dnl Solaris 10 getopt doesn't handle `+' as a leading character in an dnl option string (as of 2005-05-05). if test -z "$GETOPT_H"; then AC_CACHE_CHECK([for working GNU getopt function], [gl_cv_func_gnu_getopt], [AC_RUN_IFELSE( [AC_LANG_PROGRAM([#include ], [[ char *myargv[3]; myargv[0] = "conftest"; myargv[1] = "-+"; myargv[2] = 0; return getopt (2, myargv, "+a") != '?'; ]])], [gl_cv_func_gnu_getopt=yes], [gl_cv_func_gnu_getopt=no], [dnl cross compiling - pessimistically guess based on decls dnl Solaris 10 getopt doesn't handle `+' as a leading character in an dnl option string (as of 2005-05-05). AC_CHECK_DECL([getopt_clip], [gl_cv_func_gnu_getopt=no], [gl_cv_func_gnu_getopt=yes], [#include ])])]) if test "$gl_cv_func_gnu_getopt" = "no"; then GETOPT_H=getopt.h fi fi ]) AC_DEFUN([gl_GETOPT_IFELSE], [ AC_REQUIRE([gl_GETOPT_CHECK_HEADERS]) AS_IF([test -n "$GETOPT_H"], [$1], [$2]) ]) AC_DEFUN([gl_GETOPT], [gl_GETOPT_IFELSE([gl_GETOPT_SUBSTITUTE])]) # Prerequisites of lib/getopt*. AC_DEFUN([gl_PREREQ_GETOPT], [ AC_CHECK_DECLS_ONCE([getenv]) ]) mlocate-0.26/gnulib/m4/malloca.m40000664000175000017500000000106211353206451013461 00000000000000# malloca.m4 serial 1 dnl Copyright (C) 2003-2004, 2006-2007 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. AC_DEFUN([gl_MALLOCA], [ dnl Use the autoconf tests for alloca(), but not the AC_SUBSTed variables dnl @ALLOCA@ and @LTALLOCA@. dnl gl_FUNC_ALLOCA dnl Already brought in by the module dependencies. AC_REQUIRE([gl_EEMALLOC]) AC_REQUIRE([AC_TYPE_LONG_LONG_INT]) ]) mlocate-0.26/gnulib/m4/timespec.m40000664000175000017500000000063311353206452013666 00000000000000#serial 14 # Copyright (C) 2000, 2001, 2003, 2004, 2005, 2006, 2007 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. dnl From Jim Meyering AC_DEFUN([gl_TIMESPEC], [ dnl Prerequisites of lib/timespec.h. AC_REQUIRE([AC_C_INLINE]) ]) mlocate-0.26/gnulib/m4/mbrtowc.m40000664000175000017500000000212511353206451013527 00000000000000# mbrtowc.m4 serial 8 dnl Copyright (C) 2001-2002, 2004-2005 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 Paul Eggert dnl This file can be removed, and gl_FUNC_MBRTOWC replaced with dnl AC_FUNC_MBRTOWC, when autoconf 2.60 can be assumed everywhere. AC_DEFUN([gl_FUNC_MBRTOWC], [ dnl Same as AC_FUNC_MBRTOWC in autoconf-2.60. AC_CACHE_CHECK([whether mbrtowc and mbstate_t are properly declared], gl_cv_func_mbrtowc, [AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[wchar_t wc; char const s[] = ""; size_t n = 1; mbstate_t state; return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));]])], gl_cv_func_mbrtowc=yes, gl_cv_func_mbrtowc=no)]) if test $gl_cv_func_mbrtowc = yes; then AC_DEFINE([HAVE_MBRTOWC], 1, [Define to 1 if mbrtowc and mbstate_t are properly declared.]) fi ]) mlocate-0.26/gnulib/m4/wcwidth.m40000664000175000017500000000442211353206452013526 00000000000000# wcwidth.m4 serial 12 dnl Copyright (C) 2006, 2007 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. AC_DEFUN([gl_FUNC_WCWIDTH], [ AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) dnl Persuade glibc to declare wcwidth(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([gt_TYPE_WCHAR_T]) AC_REQUIRE([gt_TYPE_WINT_T]) AC_CHECK_HEADERS_ONCE([wchar.h]) AC_CHECK_FUNCS_ONCE([wcwidth]) AC_CHECK_DECLS([wcwidth], [], [], [ /* AIX 3.2.5 declares wcwidth in . */ #include /* Tru64 with Desktop Toolkit C has a bug: must be included before . BSD/OS 4.0.1 has a bug: , and must be included before . */ #include #include #include #include ]) if test $ac_cv_have_decl_wcwidth != yes; then HAVE_DECL_WCWIDTH=0 fi if test $ac_cv_func_wcwidth = no; then REPLACE_WCWIDTH=1 else dnl On MacOS X 10.3, wcwidth(0x0301) (COMBINING ACUTE ACCENT) returns 1. dnl This leads to bugs in 'ls' (coreutils). AC_CACHE_CHECK([whether wcwidth works reasonably in UTF-8 locales], [gl_cv_func_wcwidth_works], [ AC_TRY_RUN([ #include /* AIX 3.2.5 declares wcwidth in . */ #include /* Tru64 with Desktop Toolkit C has a bug: must be included before . BSD/OS 4.0.1 has a bug: , and must be included before . */ #include #include #include #include #if !HAVE_DECL_WCWIDTH extern # ifdef __cplusplus "C" # endif int wcwidth (int); #endif int main () { if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL) if (wcwidth (0x0301) > 0) return 1; return 0; }], [gl_cv_func_wcwidth_works=yes], [gl_cv_func_wcwidth_works=no], [gl_cv_func_wcwidth_works="guessing no"]) ]) case "$gl_cv_func_wcwidth_works" in *yes) ;; *no) REPLACE_WCWIDTH=1 ;; esac fi if test $REPLACE_WCWIDTH = 1; then AC_LIBOBJ([wcwidth]) fi if test $REPLACE_WCWIDTH = 1 || test $HAVE_DECL_WCWIDTH = 0; then WCHAR_H=wchar.h fi ]) mlocate-0.26/gnulib/m4/alloca.m40000664000175000017500000000331511353206451013307 00000000000000# alloca.m4 serial 7 dnl Copyright (C) 2002-2004, 2006 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. AC_DEFUN([gl_FUNC_ALLOCA], [ dnl Work around a bug of AC_EGREP_CPP in autoconf-2.57. AC_REQUIRE([AC_PROG_CPP]) AC_REQUIRE([AC_PROG_EGREP]) AC_REQUIRE([AC_FUNC_ALLOCA]) if test $ac_cv_func_alloca_works = no; then gl_PREREQ_ALLOCA fi # Define an additional variable used in the Makefile substitution. if test $ac_cv_working_alloca_h = yes; then AC_CACHE_CHECK([for alloca as a compiler built-in], [gl_cv_rpl_alloca], [ AC_EGREP_CPP([Need own alloca], [ #if defined __GNUC__ || defined _AIX || defined _MSC_VER Need own alloca #endif ], [gl_cv_rpl_alloca=yes], [gl_cv_rpl_alloca=no]) ]) if test $gl_cv_rpl_alloca = yes; then dnl OK, alloca can be implemented through a compiler built-in. AC_DEFINE([HAVE_ALLOCA], 1, [Define to 1 if you have 'alloca' after including , a header that may be supplied by this distribution.]) ALLOCA_H=alloca.h else dnl alloca exists as a library function, i.e. it is slow and probably dnl a memory leak. Don't define HAVE_ALLOCA in this case. ALLOCA_H= fi else ALLOCA_H=alloca.h fi AC_SUBST([ALLOCA_H]) AC_DEFINE(HAVE_ALLOCA_H, 1, [Define HAVE_ALLOCA_H for backward compatibility with older code that includes only if HAVE_ALLOCA_H is defined.]) ]) # Prerequisites of lib/alloca.c. # STACK_DIRECTION is already handled by AC_FUNC_ALLOCA. AC_DEFUN([gl_PREREQ_ALLOCA], [:]) mlocate-0.26/gnulib/m4/mbchar.m40000664000175000017500000000064011353206451013306 00000000000000# mbchar.m4 serial 7 dnl Copyright (C) 2005-2007 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 autoconf tests required for use of mbchar.m4 dnl From Bruno Haible. AC_DEFUN([gl_MBCHAR], [ AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) ]) mlocate-0.26/gnulib/m4/fnmatch.m40000664000175000017500000001102111353206451013465 00000000000000# Check for fnmatch - serial 2. # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 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. # Autoconf defines AC_FUNC_FNMATCH, but that is obsolescent. # New applications should use the macros below instead. # _AC_FUNC_FNMATCH_IF(STANDARD = GNU | POSIX, CACHE_VAR, IF-TRUE, IF-FALSE) # ------------------------------------------------------------------------- # If a STANDARD compliant fnmatch is found, run IF-TRUE, otherwise # IF-FALSE. Use CACHE_VAR. AC_DEFUN([_AC_FUNC_FNMATCH_IF], [AC_CACHE_CHECK( [for working $1 fnmatch], [$2], [dnl Some versions of Solaris, SCO, and the GNU C Library dnl have a broken or incompatible fnmatch. dnl So we run a test program. If we are cross-compiling, take no chance. dnl Thanks to John Oleynick, François Pinard, and Paul Eggert for this test. AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[#include static int y (char const *pattern, char const *string, int flags) { return fnmatch (pattern, string, flags) == 0; } static int n (char const *pattern, char const *string, int flags) { return fnmatch (pattern, string, flags) == FNM_NOMATCH; } ]], [[char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]"; char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]"; static char const A_1[] = { 'A' - 1, 0 }; static char const A01[] = { 'A' + 1, 0 }; static char const a_1[] = { 'a' - 1, 0 }; static char const a01[] = { 'a' + 1, 0 }; static char const bs_1[] = { '\\\\' - 1, 0 }; static char const bs01[] = { '\\\\' + 1, 0 }; return !(n ("a*", "", 0) && y ("a*", "abc", 0) && n ("d*/*1", "d/s/1", FNM_PATHNAME) && y ("a\\\\bc", "abc", 0) && n ("a\\\\bc", "abc", FNM_NOESCAPE) && y ("*x", ".x", 0) && n ("*x", ".x", FNM_PERIOD) && y (Apat, "\\\\", 0) && y (Apat, "A", 0) && y (apat, "\\\\", 0) && y (apat, "a", 0) && n (Apat, A_1, 0) == ('A' < '\\\\') && n (apat, a_1, 0) == ('a' < '\\\\') && y (Apat, A01, 0) == ('A' < '\\\\') && y (apat, a01, 0) == ('a' < '\\\\') && y (Apat, bs_1, 0) == ('A' < '\\\\') && y (apat, bs_1, 0) == ('a' < '\\\\') && n (Apat, bs01, 0) == ('A' < '\\\\') && n (apat, bs01, 0) == ('a' < '\\\\') && ]m4_if([$1], [GNU], [y ("xxXX", "xXxX", FNM_CASEFOLD) && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH) && n ("d*/*1", "d/s/1", FNM_FILE_NAME) && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR) && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR) && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)], 1))[;]])], [$2=yes], [$2=no], [$2=cross])]) AS_IF([test $$2 = yes], [$3], [$4]) ])# _AC_FUNC_FNMATCH_IF # _AC_LIBOBJ_FNMATCH # ------------------ # Prepare the replacement of fnmatch. AC_DEFUN([_AC_LIBOBJ_FNMATCH], [AC_REQUIRE([AC_FUNC_ALLOCA])dnl AC_REQUIRE([AC_TYPE_MBSTATE_T])dnl AC_CHECK_DECLS([isblank], [], [], [#include ]) AC_CHECK_FUNCS_ONCE([btowc isblank iswctype mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy]) AC_CHECK_HEADERS_ONCE([wctype.h]) AC_LIBOBJ([fnmatch]) FNMATCH_H=fnmatch.h ])# _AC_LIBOBJ_FNMATCH AC_DEFUN([gl_FUNC_FNMATCH_POSIX], [ FNMATCH_H= _AC_FUNC_FNMATCH_IF([POSIX], [ac_cv_func_fnmatch_posix], [rm -f lib/fnmatch.h], [_AC_LIBOBJ_FNMATCH]) if test $ac_cv_func_fnmatch_posix != yes; then dnl We must choose a different name for our function, since on ELF systems dnl a broken fnmatch() in libc.so would override our fnmatch() if it is dnl compiled into a shared library. AC_DEFINE([fnmatch], [posix_fnmatch], [Define to a replacement function name for fnmatch().]) fi AC_SUBST([FNMATCH_H]) ]) AC_DEFUN([gl_FUNC_FNMATCH_GNU], [ dnl Persuade glibc to declare FNM_CASEFOLD etc. AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) FNMATCH_H= _AC_FUNC_FNMATCH_IF([GNU], [ac_cv_func_fnmatch_gnu], [rm -f lib/fnmatch.h], [_AC_LIBOBJ_FNMATCH]) if test $ac_cv_func_fnmatch_gnu != yes; then dnl We must choose a different name for our function, since on ELF systems dnl a broken fnmatch() in libc.so would override our fnmatch() if it is dnl compiled into a shared library. AC_DEFINE([fnmatch], [gnu_fnmatch], [Define to a replacement function name for fnmatch().]) fi AC_SUBST([FNMATCH_H]) ]) mlocate-0.26/gnulib/m4/string_h.m40000664000175000017500000000652211353206452013675 00000000000000# Configure a GNU-like replacement for . # Copyright (C) 2007 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. # Written by Paul Eggert. AC_DEFUN([gl_HEADER_STRING_H], [ dnl Use AC_REQUIRE here, so that the default behavior below is expanded dnl once only, before all statements that occur in other macros. AC_REQUIRE([gl_HEADER_STRING_H_BODY]) ]) AC_DEFUN([gl_HEADER_STRING_H_BODY], [ AC_REQUIRE([AC_C_RESTRICT]) AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) gl_CHECK_NEXT_HEADERS([string.h]) ]) AC_DEFUN([gl_STRING_MODULE_INDICATOR], [ dnl Use AC_REQUIRE here, so that the default settings are expanded once only. AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1 ]) AC_DEFUN([gl_HEADER_STRING_H_DEFAULTS], [ GNULIB_MEMMEM=0; AC_SUBST([GNULIB_MEMMEM]) GNULIB_MEMPCPY=0; AC_SUBST([GNULIB_MEMPCPY]) GNULIB_MEMRCHR=0; AC_SUBST([GNULIB_MEMRCHR]) GNULIB_STPCPY=0; AC_SUBST([GNULIB_STPCPY]) GNULIB_STPNCPY=0; AC_SUBST([GNULIB_STPNCPY]) GNULIB_STRCHRNUL=0; AC_SUBST([GNULIB_STRCHRNUL]) GNULIB_STRDUP=0; AC_SUBST([GNULIB_STRDUP]) GNULIB_STRNDUP=0; AC_SUBST([GNULIB_STRNDUP]) GNULIB_STRNLEN=0; AC_SUBST([GNULIB_STRNLEN]) GNULIB_STRPBRK=0; AC_SUBST([GNULIB_STRPBRK]) GNULIB_STRSEP=0; AC_SUBST([GNULIB_STRSEP]) GNULIB_STRCASESTR=0; AC_SUBST([GNULIB_STRCASESTR]) GNULIB_STRTOK_R=0; AC_SUBST([GNULIB_STRTOK_R]) GNULIB_MBSLEN=0; AC_SUBST([GNULIB_MBSLEN]) GNULIB_MBSNLEN=0; AC_SUBST([GNULIB_MBSNLEN]) GNULIB_MBSCHR=0; AC_SUBST([GNULIB_MBSCHR]) GNULIB_MBSRCHR=0; AC_SUBST([GNULIB_MBSRCHR]) GNULIB_MBSSTR=0; AC_SUBST([GNULIB_MBSSTR]) GNULIB_MBSCASECMP=0; AC_SUBST([GNULIB_MBSCASECMP]) GNULIB_MBSNCASECMP=0; AC_SUBST([GNULIB_MBSNCASECMP]) GNULIB_MBSPCASECMP=0; AC_SUBST([GNULIB_MBSPCASECMP]) GNULIB_MBSCASESTR=0; AC_SUBST([GNULIB_MBSCASESTR]) GNULIB_MBSCSPN=0; AC_SUBST([GNULIB_MBSCSPN]) GNULIB_MBSPBRK=0; AC_SUBST([GNULIB_MBSPBRK]) GNULIB_MBSSPN=0; AC_SUBST([GNULIB_MBSSPN]) GNULIB_MBSSEP=0; AC_SUBST([GNULIB_MBSSEP]) GNULIB_MBSTOK_R=0; AC_SUBST([GNULIB_MBSTOK_R]) GNULIB_STRERROR=0; AC_SUBST([GNULIB_STRERROR]) dnl Assume proper GNU behavior unless another module says otherwise. HAVE_DECL_MEMMEM=1; AC_SUBST([HAVE_DECL_MEMMEM]) HAVE_MEMPCPY=1; AC_SUBST([HAVE_MEMPCPY]) HAVE_DECL_MEMRCHR=1; AC_SUBST([HAVE_DECL_MEMRCHR]) HAVE_STPCPY=1; AC_SUBST([HAVE_STPCPY]) HAVE_STPNCPY=1; AC_SUBST([HAVE_STPNCPY]) HAVE_STRCASECMP=1; AC_SUBST([HAVE_STRCASECMP]) HAVE_DECL_STRNCASECMP=1; AC_SUBST([HAVE_DECL_STRNCASECMP]) HAVE_STRCHRNUL=1; AC_SUBST([HAVE_STRCHRNUL]) HAVE_DECL_STRDUP=1; AC_SUBST([HAVE_DECL_STRDUP]) HAVE_STRNDUP=1; AC_SUBST([HAVE_STRNDUP]) HAVE_DECL_STRNDUP=1; AC_SUBST([HAVE_DECL_STRNDUP]) HAVE_DECL_STRNLEN=1; AC_SUBST([HAVE_DECL_STRNLEN]) HAVE_STRPBRK=1; AC_SUBST([HAVE_STRPBRK]) HAVE_STRSEP=1; AC_SUBST([HAVE_STRSEP]) HAVE_STRCASESTR=1; AC_SUBST([HAVE_STRCASESTR]) HAVE_DECL_STRTOK_R=1; AC_SUBST([HAVE_DECL_STRTOK_R]) HAVE_DECL_STRERROR=1; AC_SUBST([HAVE_DECL_STRERROR]) REPLACE_STRERROR=0; AC_SUBST([REPLACE_STRERROR]) ]) mlocate-0.26/gnulib/m4/xalloc.m40000664000175000017500000000105511353206452013336 00000000000000# xalloc.m4 serial 16 dnl Copyright (C) 2002, 2003, 2004, 2005, 2006 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. AC_DEFUN([gl_XALLOC], [ AC_LIBOBJ([xmalloc]) gl_PREREQ_XALLOC gl_PREREQ_XMALLOC ]) # Prerequisites of lib/xalloc.h. AC_DEFUN([gl_PREREQ_XALLOC], [ AC_REQUIRE([gl_INLINE]) : ]) # Prerequisites of lib/xmalloc.c. AC_DEFUN([gl_PREREQ_XMALLOC], [ : ]) mlocate-0.26/gnulib/m4/localcharset.m40000664000175000017500000000104711353206451014520 00000000000000# localcharset.m4 serial 5 dnl Copyright (C) 2002, 2004, 2006 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. AC_DEFUN([gl_LOCALCHARSET], [ dnl Prerequisites of lib/localcharset.c. AC_REQUIRE([AM_LANGINFO_CODESET]) AC_CHECK_DECLS_ONCE(getc_unlocked) dnl Prerequisites of the lib/Makefile.am snippet. AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([gl_GLIBC21]) ]) mlocate-0.26/gnulib/m4/wchar.m40000664000175000017500000000326311353206452013163 00000000000000dnl A placeholder for ISO C99 , for platforms that have issues. dnl Copyright (C) 2007 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 Written by Eric Blake. # wchar.m4 serial 4 AC_DEFUN([gl_WCHAR_H], [ AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) AC_CACHE_CHECK([whether is standalone], [gl_cv_header_wchar_h_standalone], [AC_COMPILE_IFELSE([[#include wchar_t w;]], [gl_cv_header_wchar_h_standalone=yes], [gl_cv_header_wchar_h_standalone=no])]) if test $gl_cv_header_wchar_h_standalone != yes; then WCHAR_H=wchar.h fi dnl Prepare for creating substitute . dnl Do it always: WCHAR_H may be empty here but can be set later. dnl Check for (missing in Linux uClibc when built without wide dnl character support). AC_CHECK_HEADERS_ONCE([wchar.h]) if test $ac_cv_header_wchar_h = yes; then HAVE_WCHAR_H=1 else HAVE_WCHAR_H=0 fi AC_SUBST([HAVE_WCHAR_H]) gl_CHECK_NEXT_HEADERS([wchar.h]) ]) AC_DEFUN([gl_WCHAR_MODULE_INDICATOR], [ dnl Use AC_REQUIRE here, so that the default settings are expanded once only. AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1 ]) AC_DEFUN([gl_WCHAR_H_DEFAULTS], [ GNULIB_WCWIDTH=0; AC_SUBST([GNULIB_WCWIDTH]) dnl Assume proper GNU behavior unless another module says otherwise. HAVE_DECL_WCWIDTH=1; AC_SUBST([HAVE_DECL_WCWIDTH]) REPLACE_WCWIDTH=0; AC_SUBST([REPLACE_WCWIDTH]) WCHAR_H= AC_SUBST([WCHAR_H]) ]) mlocate-0.26/gnulib/m4/stdlib_h.m40000664000175000017500000000257411353206452013653 00000000000000# stdlib_h.m4 serial 3 dnl Copyright (C) 2007 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. AC_DEFUN([gl_STDLIB_H], [ AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) gl_CHECK_NEXT_HEADERS([stdlib.h]) ]) AC_DEFUN([gl_STDLIB_MODULE_INDICATOR], [ dnl Use AC_REQUIRE here, so that the default settings are expanded once only. AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1 ]) AC_DEFUN([gl_STDLIB_H_DEFAULTS], [ GNULIB_MALLOC_POSIX=0; AC_SUBST([GNULIB_MALLOC_POSIX]) GNULIB_REALLOC_POSIX=0; AC_SUBST([GNULIB_REALLOC_POSIX]) GNULIB_CALLOC_POSIX=0; AC_SUBST([GNULIB_CALLOC_POSIX]) GNULIB_GETSUBOPT=0; AC_SUBST([GNULIB_GETSUBOPT]) GNULIB_MKDTEMP=0; AC_SUBST([GNULIB_MKDTEMP]) GNULIB_MKSTEMP=0; AC_SUBST([GNULIB_MKSTEMP]) dnl Assume proper GNU behavior unless another module says otherwise. HAVE_CALLOC_POSIX=1; AC_SUBST([HAVE_CALLOC_POSIX]) HAVE_GETSUBOPT=1; AC_SUBST([HAVE_GETSUBOPT]) HAVE_MALLOC_POSIX=1; AC_SUBST([HAVE_MALLOC_POSIX]) HAVE_MKDTEMP=1; AC_SUBST([HAVE_MKDTEMP]) HAVE_REALLOC_POSIX=1; AC_SUBST([HAVE_REALLOC_POSIX]) REPLACE_MKSTEMP=0; AC_SUBST([REPLACE_MKSTEMP]) ]) mlocate-0.26/gnulib/m4/mbstate_t.m40000664000175000017500000000177611353206452014050 00000000000000# mbstate_t.m4 serial 9 dnl Copyright (C) 2000, 2001, 2002 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. # From Paul Eggert. # BeOS 5 has but does not define mbstate_t, # so you can't declare an object of that type. # Check for this incompatibility with Standard C. # AC_TYPE_MBSTATE_T # ----------------- AC_DEFUN([AC_TYPE_MBSTATE_T], [AC_CACHE_CHECK([for mbstate_t], ac_cv_type_mbstate_t, [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [AC_INCLUDES_DEFAULT # include ], [mbstate_t x; return sizeof x;])], [ac_cv_type_mbstate_t=yes], [ac_cv_type_mbstate_t=no])]) if test $ac_cv_type_mbstate_t = yes; then AC_DEFINE([HAVE_MBSTATE_T], 1, [Define to 1 if declares mbstate_t.]) else AC_DEFINE([mbstate_t], int, [Define to a type if does not define.]) fi]) mlocate-0.26/gnulib/m4/canonicalize-lgpl.m40000664000175000017500000000224511353206451015450 00000000000000# canonicalize-lgpl.m4 serial 4 dnl Copyright (C) 2003, 2006-2007 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. AC_DEFUN([gl_CANONICALIZE_LGPL], [ dnl Do this replacement check manually because the file name is shorter dnl than the function name. AC_CHECK_DECLS_ONCE(canonicalize_file_name) AC_CHECK_FUNCS_ONCE(canonicalize_file_name) if test $ac_cv_func_canonicalize_file_name = no; then AC_LIBOBJ(canonicalize-lgpl) AC_DEFINE([realpath], [rpl_realpath], [Define to a replacement function name for realpath().]) gl_PREREQ_CANONICALIZE_LGPL fi ]) # Like gl_CANONICALIZE_LGPL, except prepare for separate compilation # (no AC_LIBOBJ). AC_DEFUN([gl_CANONICALIZE_LGPL_SEPARATE], [ AC_CHECK_DECLS_ONCE(canonicalize_file_name) AC_CHECK_FUNCS_ONCE(canonicalize_file_name) gl_PREREQ_CANONICALIZE_LGPL ]) # Prerequisites of lib/canonicalize-lgpl.c. AC_DEFUN([gl_PREREQ_CANONICALIZE_LGPL], [ AC_CHECK_HEADERS_ONCE(sys/param.h unistd.h) AC_CHECK_FUNCS_ONCE(getcwd readlink) ]) mlocate-0.26/gnulib/m4/strchrnul.m40000664000175000017500000000121511353206452014076 00000000000000# strchrnul.m4 serial 6 dnl Copyright (C) 2003, 2007 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. AC_DEFUN([gl_FUNC_STRCHRNUL], [ dnl Persuade glibc to declare strchrnul(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) AC_REPLACE_FUNCS(strchrnul) if test $ac_cv_func_strchrnul = no; then HAVE_STRCHRNUL=0 gl_PREREQ_STRCHRNUL fi ]) # Prerequisites of lib/strchrnul.c. AC_DEFUN([gl_PREREQ_STRCHRNUL], [:]) mlocate-0.26/gnulib/m4/inline.m40000664000175000017500000000313711353206451013334 00000000000000# inline.m4 serial 3 dnl Copyright (C) 2006 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 Test for the 'inline' keyword or equivalent. dnl Define 'inline' to a supported equivalent, or to nothing if not supported, dnl like AC_C_INLINE does. Also, define HAVE_INLINE if 'inline' or an dnl equivalent is effectively supported, i.e. if the compiler is likely to dnl drop unused 'static inline' functions. AC_DEFUN([gl_INLINE], [ AC_REQUIRE([AC_C_INLINE]) AC_CACHE_CHECK([whether the compiler generally respects inline], [gl_cv_c_inline_effective], [if test $ac_cv_c_inline = no; then gl_cv_c_inline_effective=no else dnl GCC defines __NO_INLINE__ if not optimizing or if -fno-inline is dnl specified. dnl Use AC_COMPILE_IFELSE here, not AC_EGREP_CPP, because the result dnl depends on optimization flags, which can be in CFLAGS. dnl (AC_EGREP_CPP looks only at the CPPFLAGS.) AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[]], [[#ifdef __NO_INLINE__ #error "inline is not effective" #endif]])], [gl_cv_c_inline_effective=yes], [gl_cv_c_inline_effective=no]) fi ]) if test $gl_cv_c_inline_effective = yes; then AC_DEFINE([HAVE_INLINE], 1, [Define to 1 if the compiler supports one of the keywords 'inline', '__inline__', '__inline' and effectively inlines functions marked as such.]) fi ]) mlocate-0.26/gnulib/m4/stdbool.m40000664000175000017500000000722211353206452013524 00000000000000# Check for stdbool.h that conforms to C99. dnl Copyright (C) 2002-2006 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. # Prepare for substituting if it is not supported. AC_DEFUN([AM_STDBOOL_H], [ AC_REQUIRE([AC_HEADER_STDBOOL]) # Define two additional variables used in the Makefile substitution. if test "$ac_cv_header_stdbool_h" = yes; then STDBOOL_H='' else STDBOOL_H='stdbool.h' fi AC_SUBST([STDBOOL_H]) if test "$ac_cv_type__Bool" = yes; then HAVE__BOOL=1 else HAVE__BOOL=0 fi AC_SUBST([HAVE__BOOL]) ]) # AM_STDBOOL_H will be renamed to gl_STDBOOL_H in the future. AC_DEFUN([gl_STDBOOL_H], [AM_STDBOOL_H]) # This macro is only needed in autoconf <= 2.59. Newer versions of autoconf # have this macro built-in. AC_DEFUN([AC_HEADER_STDBOOL], [AC_CACHE_CHECK([for stdbool.h that conforms to C99], [ac_cv_header_stdbool_h], [AC_TRY_COMPILE( [ #include #ifndef bool "error: bool is not defined" #endif #ifndef false "error: false is not defined" #endif #if false "error: false is not 0" #endif #ifndef true "error: true is not defined" #endif #if true != 1 "error: true is not 1" #endif #ifndef __bool_true_false_are_defined "error: __bool_true_false_are_defined is not defined" #endif struct s { _Bool s: 1; _Bool t; } s; char a[true == 1 ? 1 : -1]; char b[false == 0 ? 1 : -1]; char c[__bool_true_false_are_defined == 1 ? 1 : -1]; char d[(bool) 0.5 == true ? 1 : -1]; bool e = &s; char f[(_Bool) 0.0 == false ? 1 : -1]; char g[true]; char h[sizeof (_Bool)]; char i[sizeof s.t]; enum { j = false, k = true, l = false * true, m = true * 256 }; _Bool n[m]; char o[sizeof n == m * sizeof n[0] ? 1 : -1]; char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; #if defined __xlc__ || defined __GNUC__ /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 reported by James Lemley on 2005-10-05; see http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html This test is not quite right, since xlc is allowed to reject this program, as the initializer for xlcbug is not one of the forms that C requires support for. However, doing the test right would require a run-time test, and that would make cross-compilation harder. Let us hope that IBM fixes the xlc bug, and also adds support for this kind of constant expression. In the meantime, this test will reject xlc, which is OK, since our stdbool.h substitute should suffice. We also test this with GCC, where it should work, to detect more quickly whether someone messes up the test in the future. */ char digs[] = "0123456789"; int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); #endif /* Catch a bug in an HP-UX C compiler. See http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html */ _Bool q = true; _Bool *pq = &q; ], [ *pq |= q; *pq |= ! q; /* Refer to every declared value, to avoid compiler optimizations. */ return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + !m + !n + !o + !p + !q + !pq); ], [ac_cv_header_stdbool_h=yes], [ac_cv_header_stdbool_h=no])]) AC_CHECK_TYPES([_Bool]) if test $ac_cv_header_stdbool_h = yes; then AC_DEFINE(HAVE_STDBOOL_H, 1, [Define to 1 if stdbool.h conforms to C99.]) fi]) mlocate-0.26/gnulib/m4/time_h.m40000664000175000017500000000500011353206452013313 00000000000000# Configure a more-standard replacement for . # Copyright (C) 2000, 2001, 2003, 2004, 2005, 2006, 2007 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. # Written by Paul Eggert and Jim Meyering. AC_DEFUN([gl_HEADER_TIME_H], [ dnl Use AC_REQUIRE here, so that the default behavior below is expanded dnl once only, before all statements that occur in other macros. AC_REQUIRE([gl_HEADER_TIME_H_BODY]) ]) AC_DEFUN([gl_HEADER_TIME_H_BODY], [ AC_REQUIRE([AC_C_RESTRICT]) AC_REQUIRE([gl_HEADER_TIME_H_DEFAULTS]) gl_CHECK_NEXT_HEADERS([time.h]) AC_REQUIRE([gl_CHECK_TYPE_STRUCT_TIMESPEC]) ]) AC_DEFUN([gl_HEADER_TIME_H_DEFAULTS], [ dnl If another module says to replace or to not replace, do that. dnl Otherwise, replace only if someone compiles with -DGNULIB_PORTCHECK; dnl this lets maintainers check for portability. REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; AC_SUBST([REPLACE_LOCALTIME_R]) REPLACE_NANOSLEEP=GNULIB_PORTCHECK; AC_SUBST([REPLACE_NANOSLEEP]) REPLACE_STRPTIME=GNULIB_PORTCHECK; AC_SUBST([REPLACE_STRPTIME]) REPLACE_TIMEGM=GNULIB_PORTCHECK; AC_SUBST([REPLACE_TIMEGM]) ]) dnl Define HAVE_STRUCT_TIMESPEC if `struct timespec' is declared dnl in time.h or sys/time.h. AC_DEFUN([gl_CHECK_TYPE_STRUCT_TIMESPEC], [ AC_CHECK_HEADERS_ONCE([sys/time.h]) AC_CACHE_CHECK([for struct timespec in ], [gl_cv_sys_struct_timespec_in_time_h], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[static struct timespec x; x.tv_sec = x.tv_nsec;]])], [gl_cv_sys_struct_timespec_in_time_h=yes], [gl_cv_sys_struct_timespec_in_time_h=no])]) TIME_H_DEFINES_STRUCT_TIMESPEC=0 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then TIME_H_DEFINES_STRUCT_TIMESPEC=1 else AC_CACHE_CHECK([for struct timespec in ], [gl_cv_sys_struct_timespec_in_sys_time_h], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[static struct timespec x; x.tv_sec = x.tv_nsec;]])], [gl_cv_sys_struct_timespec_in_sys_time_h=yes], [gl_cv_sys_struct_timespec_in_sys_time_h=no])]) if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 fi fi AC_SUBST([TIME_H_DEFINES_STRUCT_TIMESPEC]) AC_SUBST([SYS_TIME_H_DEFINES_STRUCT_TIMESPEC]) ]) mlocate-0.26/gnulib/m4/config-h.m40000664000175000017500000000104411353206451013543 00000000000000# Say that -DHAVE_CONFIG_H is not needed. dnl Copyright (C) 2006 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 Written by Paul Eggert. # This package's source files all include config.h unconditionally, # so there's no need to pass -DHAVE_CONFIG_H to the compiler. AC_DEFUN([gl_CONFIG_H], [AC_CONFIG_COMMANDS_PRE([test "X$DEFS" = X-DHAVE_CONFIG_H && DEFS=])]) mlocate-0.26/gnulib/m4/d-type.m40000664000175000017500000000167311353206451013263 00000000000000#serial 9 dnl From Jim Meyering. dnl dnl Check whether struct dirent has a member named d_type. dnl # Copyright (C) 1997, 1999, 2000, 2001, 2002, 2003, 2004, 2006 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. AC_DEFUN([gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE], [AC_CACHE_CHECK([for d_type member in directory struct], jm_cv_struct_dirent_d_type, [AC_TRY_LINK(dnl [ #include #include ], [struct dirent dp; dp.d_type = 0;], jm_cv_struct_dirent_d_type=yes, jm_cv_struct_dirent_d_type=no) ] ) if test $jm_cv_struct_dirent_d_type = yes; then AC_DEFINE(HAVE_STRUCT_DIRENT_D_TYPE, 1, [Define if there is a member named d_type in the struct describing directory headers.]) fi ] ) mlocate-0.26/gnulib/m4/pathmax.m40000664000175000017500000000061011353206452013512 00000000000000# pathmax.m4 serial 6 dnl Copyright (C) 2002, 2003, 2005, 2006 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. AC_DEFUN([gl_PATHMAX], [ dnl Prerequisites of lib/pathmax.h. AC_CHECK_HEADERS_ONCE(sys/param.h) ]) mlocate-0.26/gnulib/m4/strerror.m40000664000175000017500000000267711353206452013751 00000000000000# strerror.m4 serial 4 dnl Copyright (C) 2002, 2007 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. AC_DEFUN([gl_FUNC_STRERROR], [ AC_REQUIRE([gl_FUNC_STRERROR_SEPARATE]) if test $gl_cv_func_working_strerror = no; then AC_LIBOBJ([strerror]) AC_DEFINE_UNQUOTED([REPLACE_STRERROR], [$REPLACE_STRERROR], [Define this to 1 if strerror is broken.]) fi ]) # Like gl_FUNC_STRERROR, except prepare for separate compilation (no AC_LIBOBJ). AC_DEFUN([gl_FUNC_STRERROR_SEPARATE], [ AC_CHECK_FUNCS_ONCE([strerror]) gl_PREREQ_STRERROR if test $ac_cv_func_strerror = no; then HAVE_DECL_STRERROR=0 gl_cv_func_working_strerror=no else AC_CACHE_CHECK([for working strerror function], [gl_cv_func_working_strerror], [AC_RUN_IFELSE( [AC_LANG_PROGRAM([ #include ], [return !*strerror (-2);])], [gl_cv_func_working_strerror=yes], [gl_cv_func_working_strerror=no], [dnl assume success except on Interix AC_EGREP_CPP([assuming success], [ #ifndef __INTERIX assuming success #endif ], [gl_cv_func_working_strerror=yes], [gl_cv_func_working_strerror=no])])]) if test $gl_cv_func_working_strerror = no ; then REPLACE_STRERROR=1 fi fi ]) # Prerequisites of lib/strerror.c. AC_DEFUN([gl_PREREQ_STRERROR], [ : ]) mlocate-0.26/gnulib/m4/stat-time.m40000664000175000017500000000562211353206452013767 00000000000000# Checks for stat-related time functions. # Copyright (C) 1998, 1999, 2001, 2003, 2005, 2006, 2007 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. dnl From Paul Eggert. # st_atim.tv_nsec - Linux, Solaris, Cygwin # st_atimespec.tv_nsec - FreeBSD, NetBSD, if ! defined _POSIX_SOURCE # st_atimensec - FreeBSD, NetBSD, if defined _POSIX_SOURCE # st_atim.st__tim.tv_nsec - UnixWare (at least 2.1.2 through 7.1) # st_birthtimespec - FreeBSD, NetBSD (hidden on OpenBSD 3.9, anyway) # st_birthtim - Cygwin 1.7.0+ AC_DEFUN([gl_STAT_TIME], [ AC_REQUIRE([AC_C_INLINE]) AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_CHECK_HEADERS_ONCE([sys/time.h]) AC_CHECK_MEMBERS([struct stat.st_atim.tv_nsec], [AC_CACHE_CHECK([whether struct stat.st_atim is of type struct timespec], [ac_cv_typeof_struct_stat_st_atim_is_struct_timespec], [AC_TRY_COMPILE( [ #include #include #if HAVE_SYS_TIME_H # include #endif #include struct timespec ts; struct stat st; ], [ st.st_atim = ts; ], [ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes], [ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no])]) if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then AC_DEFINE([TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC], 1, [Define to 1 if the type of the st_atim member of a struct stat is struct timespec.]) fi], [AC_CHECK_MEMBERS([struct stat.st_atimespec.tv_nsec], [], [AC_CHECK_MEMBERS([struct stat.st_atimensec], [], [AC_CHECK_MEMBERS([struct stat.st_atim.st__tim.tv_nsec], [], [], [#include #include ])], [#include #include ])], [#include #include ])], [#include #include ]) ]) # Check for st_birthtime, a feature from UFS2 (FreeBSD, NetBSD, OpenBSD, etc.) # and NTFS (Cygwin). # There was a time when this field was named st_createtime (21 June # 2002 to 16 July 2002) But that window is very small and applied only # to development code, so systems still using that configuration are # not supported. See revisions 1.10 and 1.11 of FreeBSD's # src/sys/ufs/ufs/dinode.h. # AC_DEFUN([gl_STAT_BIRTHTIME], [ AC_REQUIRE([AC_C_INLINE]) AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_CHECK_HEADERS_ONCE([sys/time.h]) AC_CHECK_MEMBERS([struct stat.st_birthtimespec.tv_nsec], [], [AC_CHECK_MEMBERS([struct stat.st_birthtimensec], [], [AC_CHECK_MEMBERS([struct stat.st_birthtim.tv_nsec], [], [], [#include #include ])], [#include #include ])], [#include #include ]) ]) mlocate-0.26/gnulib/m4/unistd_h.m40000664000175000017500000000414111353206452013670 00000000000000# unistd_h.m4 serial 9 dnl Copyright (C) 2006-2007 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 Written by Simon Josefsson, Bruno Haible. AC_DEFUN([gl_UNISTD_H], [ dnl Use AC_REQUIRE here, so that the default behavior below is expanded dnl once only, before all statements that occur in other macros. AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) gl_CHECK_NEXT_HEADERS([unistd.h]) AC_CHECK_HEADERS_ONCE([unistd.h]) if test $ac_cv_header_unistd_h = yes; then HAVE_UNISTD_H=1 else HAVE_UNISTD_H=0 fi AC_SUBST([HAVE_UNISTD_H]) ]) AC_DEFUN([gl_UNISTD_MODULE_INDICATOR], [ dnl Use AC_REQUIRE here, so that the default settings are expanded once only. AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1 ]) AC_DEFUN([gl_UNISTD_H_DEFAULTS], [ GNULIB_CHOWN=0; AC_SUBST([GNULIB_CHOWN]) GNULIB_DUP2=0; AC_SUBST([GNULIB_DUP2]) GNULIB_FCHDIR=0; AC_SUBST([GNULIB_FCHDIR]) GNULIB_FTRUNCATE=0; AC_SUBST([GNULIB_FTRUNCATE]) GNULIB_GETCWD=0; AC_SUBST([GNULIB_GETCWD]) GNULIB_GETLOGIN_R=0; AC_SUBST([GNULIB_GETLOGIN_R]) GNULIB_LCHOWN=0; AC_SUBST([GNULIB_LCHOWN]) GNULIB_LSEEK=0; AC_SUBST([GNULIB_LSEEK]) GNULIB_READLINK=0; AC_SUBST([GNULIB_READLINK]) GNULIB_SLEEP=0; AC_SUBST([GNULIB_SLEEP]) dnl Assume proper GNU behavior unless another module says otherwise. HAVE_DUP2=1; AC_SUBST([HAVE_DUP2]) HAVE_FTRUNCATE=1; AC_SUBST([HAVE_FTRUNCATE]) HAVE_READLINK=1; AC_SUBST([HAVE_READLINK]) HAVE_SLEEP=1; AC_SUBST([HAVE_SLEEP]) HAVE_DECL_GETLOGIN_R=1; AC_SUBST([HAVE_DECL_GETLOGIN_R]) REPLACE_CHOWN=0; AC_SUBST([REPLACE_CHOWN]) REPLACE_FCHDIR=0; AC_SUBST([REPLACE_FCHDIR]) REPLACE_GETCWD=0; AC_SUBST([REPLACE_GETCWD]) REPLACE_LCHOWN=0; AC_SUBST([REPLACE_LCHOWN]) REPLACE_LSEEK=0; AC_SUBST([REPLACE_LSEEK]) ]) mlocate-0.26/gnulib/m4/mempcpy.m40000664000175000017500000000135611353206452013532 00000000000000# mempcpy.m4 serial 9 dnl Copyright (C) 2003, 2004, 2006, 2007 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. AC_DEFUN([gl_FUNC_MEMPCPY], [ dnl Persuade glibc to declare mempcpy(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) dnl The mempcpy() declaration in lib/string.in.h uses 'restrict'. AC_REQUIRE([AC_C_RESTRICT]) AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) AC_REPLACE_FUNCS(mempcpy) if test $ac_cv_func_mempcpy = no; then HAVE_MEMPCPY=0 gl_PREREQ_MEMPCPY fi ]) # Prerequisites of lib/mempcpy.c. AC_DEFUN([gl_PREREQ_MEMPCPY], [ : ]) mlocate-0.26/gnulib/m4/memchr.m40000664000175000017500000000077011353206452013332 00000000000000# memchr.m4 serial 4 dnl Copyright (C) 2002, 2003, 2004 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. AC_DEFUN([gl_FUNC_MEMCHR], [ AC_REPLACE_FUNCS(memchr) if test $ac_cv_func_memchr = no; then gl_PREREQ_MEMCHR fi ]) # Prerequisites of lib/memchr.c. AC_DEFUN([gl_PREREQ_MEMCHR], [ AC_CHECK_HEADERS(bp-sym.h) ]) mlocate-0.26/gnulib/m4/stdint.m40000664000175000017500000003220111353206452013356 00000000000000# stdint.m4 serial 29 dnl Copyright (C) 2001-2007 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 Paul Eggert and Bruno Haible. dnl Test whether is supported or must be substituted. AC_DEFUN([gl_STDINT_H], [ AC_PREREQ(2.59)dnl dnl Check for long long int and unsigned long long int. AC_REQUIRE([AC_TYPE_LONG_LONG_INT]) if test $ac_cv_type_long_long_int = yes; then HAVE_LONG_LONG_INT=1 else HAVE_LONG_LONG_INT=0 fi AC_SUBST([HAVE_LONG_LONG_INT]) AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT]) if test $ac_cv_type_unsigned_long_long_int = yes; then HAVE_UNSIGNED_LONG_LONG_INT=1 else HAVE_UNSIGNED_LONG_LONG_INT=0 fi AC_SUBST([HAVE_UNSIGNED_LONG_LONG_INT]) dnl Check for . dnl AC_INCLUDES_DEFAULT defines $ac_cv_header_inttypes_h. if test $ac_cv_header_inttypes_h = yes; then HAVE_INTTYPES_H=1 else HAVE_INTTYPES_H=0 fi AC_SUBST([HAVE_INTTYPES_H]) dnl Check for . dnl AC_INCLUDES_DEFAULT defines $ac_cv_header_sys_types_h. if test $ac_cv_header_sys_types_h = yes; then HAVE_SYS_TYPES_H=1 else HAVE_SYS_TYPES_H=0 fi AC_SUBST([HAVE_SYS_TYPES_H]) gl_CHECK_NEXT_HEADERS([stdint.h]) if test $ac_cv_header_stdint_h = yes; then HAVE_STDINT_H=1 else HAVE_STDINT_H=0 fi AC_SUBST([HAVE_STDINT_H]) dnl Now see whether we need a substitute . if test $ac_cv_header_stdint_h = yes; then AC_CACHE_CHECK([whether stdint.h conforms to C99], [gl_cv_header_working_stdint_h], [gl_cv_header_working_stdint_h=no AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([[ #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ #include /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in . */ #if !(defined WCHAR_MIN && defined WCHAR_MAX) #error "WCHAR_MIN, WCHAR_MAX not defined in " #endif ] gl_STDINT_INCLUDES [ #ifdef INT8_MAX int8_t a1 = INT8_MAX; int8_t a1min = INT8_MIN; #endif #ifdef INT16_MAX int16_t a2 = INT16_MAX; int16_t a2min = INT16_MIN; #endif #ifdef INT32_MAX int32_t a3 = INT32_MAX; int32_t a3min = INT32_MIN; #endif #ifdef INT64_MAX int64_t a4 = INT64_MAX; int64_t a4min = INT64_MIN; #endif #ifdef UINT8_MAX uint8_t b1 = UINT8_MAX; #else typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; #endif #ifdef UINT16_MAX uint16_t b2 = UINT16_MAX; #endif #ifdef UINT32_MAX uint32_t b3 = UINT32_MAX; #endif #ifdef UINT64_MAX uint64_t b4 = UINT64_MAX; #endif int_least8_t c1 = INT8_C (0x7f); int_least8_t c1max = INT_LEAST8_MAX; int_least8_t c1min = INT_LEAST8_MIN; int_least16_t c2 = INT16_C (0x7fff); int_least16_t c2max = INT_LEAST16_MAX; int_least16_t c2min = INT_LEAST16_MIN; int_least32_t c3 = INT32_C (0x7fffffff); int_least32_t c3max = INT_LEAST32_MAX; int_least32_t c3min = INT_LEAST32_MIN; int_least64_t c4 = INT64_C (0x7fffffffffffffff); int_least64_t c4max = INT_LEAST64_MAX; int_least64_t c4min = INT_LEAST64_MIN; uint_least8_t d1 = UINT8_C (0xff); uint_least8_t d1max = UINT_LEAST8_MAX; uint_least16_t d2 = UINT16_C (0xffff); uint_least16_t d2max = UINT_LEAST16_MAX; uint_least32_t d3 = UINT32_C (0xffffffff); uint_least32_t d3max = UINT_LEAST32_MAX; uint_least64_t d4 = UINT64_C (0xffffffffffffffff); uint_least64_t d4max = UINT_LEAST64_MAX; int_fast8_t e1 = INT_FAST8_MAX; int_fast8_t e1min = INT_FAST8_MIN; int_fast16_t e2 = INT_FAST16_MAX; int_fast16_t e2min = INT_FAST16_MIN; int_fast32_t e3 = INT_FAST32_MAX; int_fast32_t e3min = INT_FAST32_MIN; int_fast64_t e4 = INT_FAST64_MAX; int_fast64_t e4min = INT_FAST64_MIN; uint_fast8_t f1 = UINT_FAST8_MAX; uint_fast16_t f2 = UINT_FAST16_MAX; uint_fast32_t f3 = UINT_FAST32_MAX; uint_fast64_t f4 = UINT_FAST64_MAX; #ifdef INTPTR_MAX intptr_t g = INTPTR_MAX; intptr_t gmin = INTPTR_MIN; #endif #ifdef UINTPTR_MAX uintptr_t h = UINTPTR_MAX; #endif intmax_t i = INTMAX_MAX; uintmax_t j = UINTMAX_MAX; #include /* for CHAR_BIT */ #define TYPE_MINIMUM(t) \ ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) #define TYPE_MAXIMUM(t) \ ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) struct s { int check_PTRDIFF: PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) ? 1 : -1; /* Detect bug in FreeBSD 6.0 / ia64. */ int check_SIG_ATOMIC: SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) ? 1 : -1; int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; int check_WCHAR: WCHAR_MIN == TYPE_MINIMUM (wchar_t) && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) ? 1 : -1; /* Detect bug in mingw. */ int check_WINT: WINT_MIN == TYPE_MINIMUM (wint_t) && WINT_MAX == TYPE_MAXIMUM (wint_t) ? 1 : -1; /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ int check_UINT8_C: (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; int check_UINT16_C: (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; /* Detect bugs in OpenBSD 3.9 stdint.h. */ #ifdef UINT8_MAX int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; #endif #ifdef UINT16_MAX int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; #endif #ifdef UINT32_MAX int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; #endif #ifdef UINT64_MAX int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; #endif int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; }; ]])], [gl_cv_header_working_stdint_h=yes])]) fi if test "$gl_cv_header_working_stdint_h" = yes; then STDINT_H= else dnl Check for , and for dnl (used in Linux libc4 >= 4.6.7 and libc5). AC_CHECK_HEADERS([sys/inttypes.h sys/bitypes.h]) if test $ac_cv_header_sys_inttypes_h = yes; then HAVE_SYS_INTTYPES_H=1 else HAVE_SYS_INTTYPES_H=0 fi AC_SUBST([HAVE_SYS_INTTYPES_H]) if test $ac_cv_header_sys_bitypes_h = yes; then HAVE_SYS_BITYPES_H=1 else HAVE_SYS_BITYPES_H=0 fi AC_SUBST([HAVE_SYS_BITYPES_H]) dnl Check for (missing in Linux uClibc when built without wide dnl character support). AC_CHECK_HEADERS_ONCE([wchar.h]) gl_STDINT_TYPE_PROPERTIES STDINT_H=stdint.h fi AC_SUBST(STDINT_H) ]) dnl gl_STDINT_BITSIZEOF(TYPES, INCLUDES) dnl Determine the size of each of the given types in bits. AC_DEFUN([gl_STDINT_BITSIZEOF], [ dnl Use a shell loop, to avoid bloating configure, and dnl - extra AH_TEMPLATE calls, so that autoheader knows what to put into dnl config.h.in, dnl - extra AC_SUBST calls, so that the right substitutions are made. AC_FOREACH([gltype], [$1], [AH_TEMPLATE([BITSIZEOF_]translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]), [Define to the number of bits in type ']gltype['.])]) for gltype in $1 ; do AC_CACHE_CHECK([for bit size of $gltype], [gl_cv_bitsizeof_${gltype}], [AC_COMPUTE_INT([result], [sizeof ($gltype) * CHAR_BIT], [$2 #include ], [result=unknown]) eval gl_cv_bitsizeof_${gltype}=\$result ]) eval result=\$gl_cv_bitsizeof_${gltype} if test $result = unknown; then dnl Use a nonempty default, because some compilers, such as IRIX 5 cc, dnl do a syntax check even on unused #if conditions and give an error dnl on valid C code like this: dnl #if 0 dnl # if > 32 dnl # endif dnl #endif result=0 fi GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` AC_DEFINE_UNQUOTED([BITSIZEOF_${GLTYPE}], [$result]) eval BITSIZEOF_${GLTYPE}=\$result done AC_FOREACH([gltype], [$1], [AC_SUBST([BITSIZEOF_]translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]))]) ]) dnl gl_CHECK_TYPES_SIGNED(TYPES, INCLUDES) dnl Determine the signedness of each of the given types. dnl Define HAVE_SIGNED_TYPE if type is signed. AC_DEFUN([gl_CHECK_TYPES_SIGNED], [ dnl Use a shell loop, to avoid bloating configure, and dnl - extra AH_TEMPLATE calls, so that autoheader knows what to put into dnl config.h.in, dnl - extra AC_SUBST calls, so that the right substitutions are made. AC_FOREACH([gltype], [$1], [AH_TEMPLATE([HAVE_SIGNED_]translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]), [Define to 1 if ']gltype[' is a signed integer type.])]) for gltype in $1 ; do AC_CACHE_CHECK([whether $gltype is signed], [gl_cv_type_${gltype}_signed], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([$2[ int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];]])], result=yes, result=no) eval gl_cv_type_${gltype}_signed=\$result ]) eval result=\$gl_cv_type_${gltype}_signed GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` if test "$result" = yes; then AC_DEFINE_UNQUOTED([HAVE_SIGNED_${GLTYPE}], 1) eval HAVE_SIGNED_${GLTYPE}=1 else eval HAVE_SIGNED_${GLTYPE}=0 fi done AC_FOREACH([gltype], [$1], [AC_SUBST([HAVE_SIGNED_]translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]))]) ]) dnl gl_INTEGER_TYPE_SUFFIX(TYPES, INCLUDES) dnl Determine the suffix to use for integer constants of the given types. dnl Define t_SUFFIX for each such type. AC_DEFUN([gl_INTEGER_TYPE_SUFFIX], [ dnl Use a shell loop, to avoid bloating configure, and dnl - extra AH_TEMPLATE calls, so that autoheader knows what to put into dnl config.h.in, dnl - extra AC_SUBST calls, so that the right substitutions are made. AC_FOREACH([gltype], [$1], [AH_TEMPLATE(translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_])[_SUFFIX], [Define to l, ll, u, ul, ull, etc., as suitable for constants of type ']gltype['.])]) for gltype in $1 ; do AC_CACHE_CHECK([for $gltype integer literal suffix], [gl_cv_type_${gltype}_suffix], [eval gl_cv_type_${gltype}_suffix=no eval result=\$gl_cv_type_${gltype}_signed if test "$result" = yes; then glsufu= else glsufu=u fi for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do case $glsuf in '') gltype1='int';; l) gltype1='long int';; ll) gltype1='long long int';; i64) gltype1='__int64';; u) gltype1='unsigned int';; ul) gltype1='unsigned long int';; ull) gltype1='unsigned long long int';; ui64)gltype1='unsigned __int64';; esac AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([$2 extern $gltype foo; extern $gltype1 foo;])], [eval gl_cv_type_${gltype}_suffix=\$glsuf]) eval result=\$gl_cv_type_${gltype}_suffix test "$result" != no && break done]) GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` eval result=\$gl_cv_type_${gltype}_suffix test "$result" = no && result= eval ${GLTYPE}_SUFFIX=\$result AC_DEFINE_UNQUOTED([${GLTYPE}_SUFFIX], $result) done AC_FOREACH([gltype], [$1], [AC_SUBST(translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_])[_SUFFIX])]) ]) dnl gl_STDINT_INCLUDES AC_DEFUN([gl_STDINT_INCLUDES], [[ /* BSD/OS 4.0.1 has a bug: , and must be included before . */ #include #include #if HAVE_WCHAR_H # include # include # include #endif ]]) dnl gl_STDINT_TYPE_PROPERTIES dnl Compute HAVE_SIGNED_t, BITSIZEOF_t and t_SUFFIX, for all the types t dnl of interest to stdint.in.h. AC_DEFUN([gl_STDINT_TYPE_PROPERTIES], [ gl_STDINT_BITSIZEOF([ptrdiff_t sig_atomic_t size_t wchar_t wint_t], [gl_STDINT_INCLUDES]) gl_CHECK_TYPES_SIGNED([sig_atomic_t wchar_t wint_t], [gl_STDINT_INCLUDES]) gl_cv_type_ptrdiff_t_signed=yes gl_cv_type_size_t_signed=no gl_INTEGER_TYPE_SUFFIX([ptrdiff_t sig_atomic_t size_t wchar_t wint_t], [gl_STDINT_INCLUDES]) ]) dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in. dnl Remove this when we can assume autoconf >= 2.61. m4_ifdef([AC_COMPUTE_INT], [], [ AC_DEFUN([AC_COMPUTE_INT], [_AC_COMPUTE_INT([$2],[$1],[$3],[$4])]) ]) # Hey Emacs! # Local Variables: # indent-tabs-mode: nil # End: mlocate-0.26/gnulib/m4/eealloc.m40000664000175000017500000000170411353206451013460 00000000000000# eealloc.m4 serial 1 dnl Copyright (C) 2003 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. AC_DEFUN([gl_EEALLOC], [ AC_REQUIRE([gl_EEMALLOC]) AC_REQUIRE([gl_EEREALLOC]) AC_REQUIRE([AC_C_INLINE]) ]) AC_DEFUN([gl_EEMALLOC], [ _AC_FUNC_MALLOC_IF( [gl_cv_func_malloc_0_nonnull=1], [gl_cv_func_malloc_0_nonnull=0]) AC_DEFINE_UNQUOTED([MALLOC_0_IS_NONNULL], $gl_cv_func_malloc_0_nonnull, [If malloc(0) is != NULL, define this to 1. Otherwise define this to 0.]) ]) AC_DEFUN([gl_EEREALLOC], [ _AC_FUNC_REALLOC_IF( [gl_cv_func_realloc_0_nonnull=1], [gl_cv_func_realloc_0_nonnull=0]) AC_DEFINE_UNQUOTED([REALLOC_0_IS_NONNULL], $gl_cv_func_realloc_0_nonnull, [If realloc(NULL,0) is != NULL, define this to 1. Otherwise define this to 0.]) ]) mlocate-0.26/gnulib/m4/include_next.m40000664000175000017500000000707711353206451014546 00000000000000# include_next.m4 serial 4 dnl Copyright (C) 2006, 2007 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 Paul Eggert and Derek Price. AC_DEFUN([gl_INCLUDE_NEXT], [ AC_LANG_PREPROC_REQUIRE() AC_CACHE_CHECK([whether the preprocessor supports include_next], [gl_cv_have_include_next], [rm -rf conftestd1 conftestd2 mkdir conftestd1 conftestd2 cat < conftestd1/conftest.h #define DEFINED_IN_CONFTESTD1 #include_next #ifdef DEFINED_IN_CONFTESTD2 int foo; #else #error "include_next doesn't work" #endif EOF cat < conftestd2/conftest.h #ifndef DEFINED_IN_CONFTESTD1 #error "include_next test doesn't work" #endif #define DEFINED_IN_CONFTESTD2 EOF save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2" AC_COMPILE_IFELSE([#include ], [gl_cv_have_include_next=yes], [gl_cv_have_include_next=no]) CPPFLAGS="$save_CPPFLAGS" rm -rf conftestd1 conftestd2 ]) if test $gl_cv_have_include_next = yes; then dnl FIXME: Remove HAVE_INCLUDE_NEXT and update everything that uses it dnl to use @INCLUDE_NEXT@ instead. AC_DEFINE([HAVE_INCLUDE_NEXT], 1, [Define if your compiler supports the #include_next directive.]) INCLUDE_NEXT=include_next else INCLUDE_NEXT=include fi AC_SUBST([INCLUDE_NEXT]) ]) # gl_CHECK_NEXT_HEADERS(HEADER1 HEADER2 ...) # ------------------------------------------ # For each arg foo.h, if #include_next works, define NEXT_FOO_H to be # ''; otherwise define it to be # '"///usr/include/foo.h"', or whatever other absolute file name is suitable. # That way, a header file with the following line: # #@INCLUDE_NEXT@ @NEXT_FOO_H@ # behaves (after sed substitution) as if it contained # #include_next # even if the compiler does not support include_next. # The three "///" are to pacify Sun C 5.8, which otherwise would say # "warning: #include of /usr/include/... may be non-portable". # Use `""', not `<>', so that the /// cannot be confused with a C99 comment. AC_DEFUN([gl_CHECK_NEXT_HEADERS], [ AC_REQUIRE([gl_INCLUDE_NEXT]) AC_CHECK_HEADERS_ONCE([$1]) AC_FOREACH([gl_HEADER_NAME], [$1], [AS_VAR_PUSHDEF([gl_next_header], [gl_cv_next_]m4_quote(m4_defn([gl_HEADER_NAME]))) if test $gl_cv_have_include_next = yes; then AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>']) else AC_CACHE_CHECK( [absolute name of <]m4_quote(m4_defn([gl_HEADER_NAME]))[>], m4_quote(m4_defn([gl_next_header])), [AS_VAR_PUSHDEF([gl_header_exists], [ac_cv_header_]m4_quote(m4_defn([gl_HEADER_NAME]))) if test AS_VAR_GET(gl_header_exists) = yes; then AC_LANG_CONFTEST( [AC_LANG_SOURCE( [[#include <]]m4_dquote(m4_defn([gl_HEADER_NAME]))[[>]] )]) dnl eval is necessary to expand ac_cpp. dnl Ultrix and Pyramid sh refuse to redirect output of eval, dnl so use subshell. AS_VAR_SET([gl_next_header], ['"'`(eval "$ac_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD | sed -n '\#/]m4_quote(m4_defn([gl_HEADER_NAME]))[#{ s#.*"\(.*/]m4_quote(m4_defn([gl_HEADER_NAME]))[\)".*#\1# s#^/[^/]#//&# p q }'`'"']) else AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>']) fi AS_VAR_POPDEF([gl_header_exists])]) fi AC_SUBST( AS_TR_CPP([NEXT_]m4_quote(m4_defn([gl_HEADER_NAME]))), [AS_VAR_GET([gl_next_header])]) AS_VAR_POPDEF([gl_next_header])]) ]) mlocate-0.26/gnulib/m4/ssize_t.m40000664000175000017500000000136211353206452013535 00000000000000# ssize_t.m4 serial 4 (gettext-0.15) dnl Copyright (C) 2001-2003, 2006 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 Test whether ssize_t is defined. AC_DEFUN([gt_TYPE_SSIZE_T], [ AC_CACHE_CHECK([for ssize_t], [gt_cv_ssize_t], [AC_TRY_COMPILE([#include ], [int x = sizeof (ssize_t *) + sizeof (ssize_t); return !x;], [gt_cv_ssize_t=yes], [gt_cv_ssize_t=no])]) if test $gt_cv_ssize_t = no; then AC_DEFINE([ssize_t], [int], [Define as a signed type of the same size as size_t.]) fi ]) mlocate-0.26/gnulib/m4/wctype.m40000664000175000017500000000217311353206452013371 00000000000000dnl A placeholder for ISO C99 , for platforms that lack it. dnl Copyright (C) 2006, 2007 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 Written by Paul Eggert. AC_DEFUN([gl_WCTYPE_H], [ AC_CHECK_FUNCS_ONCE([iswcntrl]) if test $ac_cv_func_iswcntrl = yes; then HAVE_ISWCNTRL=1 else HAVE_ISWCNTRL=0 fi AC_SUBST([HAVE_ISWCNTRL]) AC_CHECK_HEADERS_ONCE([wctype.h]) AC_REQUIRE([AC_C_INLINE]) AC_REQUIRE([gt_TYPE_WINT_T]) if test $gt_cv_c_wint_t = yes; then HAVE_WINT_T=1 else HAVE_WINT_T=0 fi AC_SUBST([HAVE_WINT_T]) WCTYPE_H=wctype.h if test $ac_cv_header_wctype_h = yes; then if test $ac_cv_func_iswcntrl = yes; then WCTYPE_H= fi dnl Compute NEXT_WCTYPE_H even if WCTYPE_H is empty, dnl for the benefit of builds from non-distclean directories. gl_CHECK_NEXT_HEADERS([wctype.h]) HAVE_WCTYPE_H=1 else HAVE_WCTYPE_H=0 fi AC_SUBST([HAVE_WCTYPE_H]) AC_SUBST([WCTYPE_H]) ])