diff -Nru fpart-1.2.0/aclocal.m4 fpart-1.4.0/aclocal.m4 --- fpart-1.2.0/aclocal.m4 2020-01-10 21:36:09.000000000 +0000 +++ fpart-1.4.0/aclocal.m4 2021-09-26 21:01:04.000000000 +0000 @@ -1,6 +1,6 @@ -# generated automatically by aclocal 1.16.1 -*- Autoconf -*- +# generated automatically by aclocal 1.16.3 -*- Autoconf -*- -# Copyright (C) 1996-2018 Free Software Foundation, Inc. +# Copyright (C) 1996-2020 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -20,7 +20,7 @@ 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-2018 Free Software Foundation, Inc. +# Copyright (C) 2002-2020 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -35,7 +35,7 @@ [am__api_version='1.16' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.16.1], [], +m4_if([$1], [1.16.3], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) @@ -51,14 +51,14 @@ # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.16.1])dnl +[AM_AUTOMAKE_VERSION([1.16.3])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-2018 Free Software Foundation, Inc. +# Copyright (C) 2001-2020 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -110,7 +110,7 @@ # AM_CONDITIONAL -*- Autoconf -*- -# Copyright (C) 1997-2018 Free Software Foundation, Inc. +# Copyright (C) 1997-2020 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -141,7 +141,7 @@ Usually this means the macro was only invoked conditionally.]]) fi])]) -# Copyright (C) 1999-2018 Free Software Foundation, Inc. +# Copyright (C) 1999-2020 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -332,7 +332,7 @@ # Generate code to set up dependency tracking. -*- Autoconf -*- -# Copyright (C) 1999-2018 Free Software Foundation, Inc. +# Copyright (C) 1999-2020 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -371,7 +371,9 @@ done if test $am_rc -ne 0; then AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments - for automatic dependency tracking. Try re-running configure with the + for automatic dependency tracking. If GNU make was not used, consider + re-running the configure script with MAKE="gmake" (or whatever is + necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking).]) fi @@ -398,7 +400,7 @@ # Do all the work for Automake. -*- Autoconf -*- -# Copyright (C) 1996-2018 Free Software Foundation, Inc. +# Copyright (C) 1996-2020 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -595,7 +597,7 @@ done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) -# Copyright (C) 2001-2018 Free Software Foundation, Inc. +# Copyright (C) 2001-2020 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -616,7 +618,7 @@ fi AC_SUBST([install_sh])]) -# Copyright (C) 2003-2018 Free Software Foundation, Inc. +# Copyright (C) 2003-2020 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -637,7 +639,7 @@ # Check to see how 'make' treats includes. -*- Autoconf -*- -# Copyright (C) 2001-2018 Free Software Foundation, Inc. +# Copyright (C) 2001-2020 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -680,7 +682,7 @@ # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- -# Copyright (C) 1997-2018 Free Software Foundation, Inc. +# Copyright (C) 1997-2020 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -701,12 +703,7 @@ [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 + MISSING="\${SHELL} '$am_aux_dir/missing'" fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then @@ -719,7 +716,7 @@ # Helper functions for option handling. -*- Autoconf -*- -# Copyright (C) 2001-2018 Free Software Foundation, Inc. +# Copyright (C) 2001-2020 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -748,7 +745,7 @@ AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) -# Copyright (C) 1999-2018 Free Software Foundation, Inc. +# Copyright (C) 1999-2020 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -795,7 +792,7 @@ # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) -# Copyright (C) 2001-2018 Free Software Foundation, Inc. +# Copyright (C) 2001-2020 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -814,7 +811,7 @@ # Check to make sure that the build environment is sane. -*- Autoconf -*- -# Copyright (C) 1996-2018 Free Software Foundation, Inc. +# Copyright (C) 1996-2020 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -895,7 +892,7 @@ rm -f conftest.file ]) -# Copyright (C) 2009-2018 Free Software Foundation, Inc. +# Copyright (C) 2009-2020 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -955,7 +952,7 @@ _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) -# Copyright (C) 2001-2018 Free Software Foundation, Inc. +# Copyright (C) 2001-2020 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -983,7 +980,7 @@ INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) -# Copyright (C) 2006-2018 Free Software Foundation, Inc. +# Copyright (C) 2006-2020 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1002,7 +999,7 @@ # Check how to create a tarball. -*- Autoconf -*- -# Copyright (C) 2004-2018 Free Software Foundation, Inc. +# Copyright (C) 2004-2020 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, diff -Nru fpart-1.2.0/autom4te.cache/output.0 fpart-1.4.0/autom4te.cache/output.0 --- fpart-1.2.0/autom4te.cache/output.0 2020-01-10 21:36:09.000000000 +0000 +++ fpart-1.4.0/autom4te.cache/output.0 1970-01-01 00:00:00.000000000 +0000 @@ -1,6498 +0,0 @@ -@%:@! /bin/sh -@%:@ Guess values for system-dependent variables and create Makefiles. -@%:@ Generated by GNU Autoconf 2.69 for fpart 1.2.0. -@%:@ -@%:@ Report bugs to . -@%:@ -@%:@ -@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. -@%:@ -@%:@ -@%:@ This configure script is free software; the Free Software Foundation -@%:@ gives unlimited permission to copy, distribute and modify it. -## -------------------- ## -## M4sh Initialization. ## -## -------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in @%:@( - *posix*) : - set -o posix ;; @%:@( - *) : - ;; -esac -fi - - -as_nl=' -' -export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in @%:@( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || - PATH_SEPARATOR=';' - } -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -as_myself= -case $0 in @%:@(( - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break - done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - exit 1 -fi - -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# Use a proper internal environment variable to ensure we don't fall - # into an infinite loop, continuously re-executing ourselves. - if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then - _as_can_reexec=no; export _as_can_reexec; - # We cannot yet assume a decent shell, so we have to provide a -# neutralization value for shells without unset; and this also -# works around shells that cannot unset nonexistent variables. -# Preserve -v and -x to the replacement shell. -BASH_ENV=/dev/null -ENV=/dev/null -(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV -case $- in @%:@ (((( - *v*x* | *x*v* ) as_opts=-vx ;; - *v* ) as_opts=-v ;; - *x* ) as_opts=-x ;; - * ) as_opts= ;; -esac -exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} -# Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -as_fn_exit 255 - fi - # We don't want this to propagate to other subprocesses. - { _as_can_reexec=; unset _as_can_reexec;} -if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which - # is contrary to our usage. Disable this feature. - alias -g '\${1+\"\$@\"}'='\"\$@\"' - setopt NO_GLOB_SUBST -else - case \`(set -o) 2>/dev/null\` in @%:@( - *posix*) : - set -o posix ;; @%:@( - *) : - ;; -esac -fi -" - as_required="as_fn_return () { (exit \$1); } -as_fn_success () { as_fn_return 0; } -as_fn_failure () { as_fn_return 1; } -as_fn_ret_success () { return 0; } -as_fn_ret_failure () { return 1; } - -exitcode=0 -as_fn_success || { exitcode=1; echo as_fn_success failed.; } -as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } -as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } -as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } -if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : - -else - exitcode=1; echo positional parameters were not saved. -fi -test x\$exitcode = x0 || exit 1 -test -x / || exit 1" - as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO - as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO - eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && - test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 -test \$(( 1 + 1 )) = 2 || exit 1" - if (eval "$as_required") 2>/dev/null; then : - as_have_required=yes -else - as_have_required=no -fi - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : - -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -as_found=false -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - as_found=: - case $as_dir in @%:@( - /*) - for as_base in sh bash ksh sh5; do - # Try only shells that exist, to save several forks. - as_shell=$as_dir/$as_base - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : - CONFIG_SHELL=$as_shell as_have_required=yes - if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : - break 2 -fi -fi - done;; - esac - as_found=false -done -$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : - CONFIG_SHELL=$SHELL as_have_required=yes -fi; } -IFS=$as_save_IFS - - - if test "x$CONFIG_SHELL" != x; then : - export CONFIG_SHELL - # We cannot yet assume a decent shell, so we have to provide a -# neutralization value for shells without unset; and this also -# works around shells that cannot unset nonexistent variables. -# Preserve -v and -x to the replacement shell. -BASH_ENV=/dev/null -ENV=/dev/null -(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV -case $- in @%:@ (((( - *v*x* | *x*v* ) as_opts=-vx ;; - *v* ) as_opts=-v ;; - *x* ) as_opts=-x ;; - * ) as_opts= ;; -esac -exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} -# Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -exit 255 -fi - - if test x$as_have_required = xno; then : - $as_echo "$0: This script requires a shell more modern than all" - $as_echo "$0: the shells that I found on your system." - if test x${ZSH_VERSION+set} = xset ; then - $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" - $as_echo "$0: be upgraded to zsh 4.3.4 or later." - else - $as_echo "$0: Please tell bug-autoconf@gnu.org and -$0: ganael.laplanche@martymac.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 @S|@? 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 "@S|@as_dir" as a directory, including parents if necessary. -as_fn_mkdir_p () -{ - - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || eval $as_mkdir_p || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" - - -} @%:@ as_fn_mkdir_p - -@%:@ as_fn_executable_p FILE -@%:@ ----------------------- -@%:@ Test if FILE is an executable regular file. -as_fn_executable_p () -{ - test -f "$1" && test -x "$1" -} @%:@ as_fn_executable_p -@%:@ as_fn_append VAR VALUE -@%:@ ---------------------- -@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take -@%:@ advantage of any shell optimizations that allow amortized linear growth over -@%:@ repeated appends, instead of the typical quadratic growth present in naive -@%:@ implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : - eval 'as_fn_append () - { - eval $1+=\$2 - }' -else - as_fn_append () - { - eval $1=\$$1\$2 - } -fi # as_fn_append - -@%:@ as_fn_arith ARG... -@%:@ ------------------ -@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the -@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments -@%:@ must be portable across @S|@(()) 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 @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are -@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the -@%:@ script with STATUS, using 1 if that was 0. -as_fn_error () -{ - as_status=$1; test $as_status -eq 0 && as_status=1 - if test "$4"; then - as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 - fi - $as_echo "$as_me: error: $2" >&2 - as_fn_exit $as_status -} @%:@ as_fn_error - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - - - as_lineno_1=$LINENO as_lineno_1a=$LINENO - as_lineno_2=$LINENO as_lineno_2a=$LINENO - eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && - test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { - # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } - - # If we had to re-execute with $CONFIG_SHELL, we're ensured to have - # already done that, so ensure we don't try to do so again and fall - # in an infinite loop. This has already happened in practice. - _as_can_reexec=no; export _as_can_reexec - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in @%:@((((( --n*) - case `echo 'xy\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - xy) ECHO_C='\c';; - *) echo `echo ksh88 bug on AIX 6.1` > /dev/null - ECHO_T=' ';; - esac;; -*) - ECHO_N='-n';; -esac - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir 2>/dev/null -fi -if (echo >conf$$.file) 2>/dev/null; then - if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -pR' - elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln - else - as_ln_s='cp -pR' - fi -else - as_ln_s='cp -pR' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p='mkdir -p "$as_dir"' -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -as_test_x='test -x' -as_executable_p=as_fn_executable_p - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -test -n "$DJDIR" || exec 7<&0 &1 - -# Name of the host. -# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -# -# Initializations. -# -ac_default_prefix=/usr/local -ac_clean_files= -ac_config_libobj_dir=. -LIB@&t@OBJS= -cross_compiling=no -subdirs= -MFLAGS= -MAKEFLAGS= - -# Identity of this package. -PACKAGE_NAME='fpart' -PACKAGE_TARNAME='fpart' -PACKAGE_VERSION='1.2.0' -PACKAGE_STRING='fpart 1.2.0' -PACKAGE_BUGREPORT='ganael.laplanche@martymac.org' -PACKAGE_URL='' - -ac_unique_file="src/fpart.h" -# 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_subst_vars='am__EXEEXT_FALSE -am__EXEEXT_TRUE -LTLIBOBJS -STATIC_FALSE -STATIC_TRUE -LINUX_FALSE -LINUX_TRUE -SOLARIS_FALSE -SOLARIS_TRUE -EXTERNAL_FTS_FALSE -EXTERNAL_FTS_TRUE -EMBEDDED_FTS_FALSE -EMBEDDED_FTS_TRUE -DEBUG_FALSE -DEBUG_TRUE -host_os -host_vendor -host_cpu -host -build_os -build_vendor -build_cpu -build -LIB@&t@OBJS -EGREP -GREP -CPP -am__fastdepCC_FALSE -am__fastdepCC_TRUE -CCDEPMODE -am__nodep -AMDEPBACKSLASH -AMDEP_FALSE -AMDEP_TRUE -am__include -DEPDIR -OBJEXT -EXEEXT -ac_ct_CC -CPPFLAGS -LDFLAGS -CFLAGS -CC -AM_BACKSLASH -AM_DEFAULT_VERBOSITY -AM_DEFAULT_V -AM_V -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 -am__quote' -ac_subst_files='' -ac_user_opts=' -enable_option_checking -enable_silent_rules -enable_dependency_tracking -enable_embfts -enable_static -enable_debug -enable_largefile -' - 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 - 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 fpart 1.2.0 to adapt to many kinds of systems. - -Usage: $0 [OPTION]... [VAR=VALUE]... - -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. - -Defaults for the options are specified in brackets. - -Configuration: - -h, --help display this help and exit - --help=short display options specific to this package - --help=recursive display the short help of all the included packages - -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking ...' messages - --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' - -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] - -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - @<:@@S|@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/fpart@:>@ - --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 fpart 1.2.0:";; - esac - cat <<\_ACEOF - -Optional Features: - --disable-option-checking ignore unrecognized --enable/--with options - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --enable-silent-rules less verbose build output (undo: "make V=1") - --disable-silent-rules verbose build output (undo: "make V=0") - --enable-dependency-tracking - do not reject slow dependency extractors - --disable-dependency-tracking - speeds up one-time build - --enable-embfts enable embedded fts - --enable-static build static binary - --enable-debug turn on debugging - --disable-largefile omit support for large files - -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 . -_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 -fpart configure 1.2.0 -generated by GNU Autoconf 2.69 - -Copyright (C) 2012 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -_ACEOF - exit -fi - -## ------------------------ ## -## Autoconf initialization. ## -## ------------------------ ## - -@%:@ ac_fn_c_try_compile LINENO -@%:@ -------------------------- -@%:@ Try to compile conftest.@S|@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_link LINENO -@%:@ ----------------------- -@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. -ac_fn_c_try_link () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest$ac_exeext - if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - test -x conftest$ac_exeext - }; then : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information - # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would - # interfere with the next link command; also delete a directory that is - # left behind by Apple's compiler. We do this before executing the actions. - rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} @%:@ ac_fn_c_try_link - -@%:@ ac_fn_c_try_cpp LINENO -@%:@ ---------------------- -@%:@ Try to preprocess conftest.@S|@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 ganael.laplanche@martymac.org ## -## -------------------------------------------- ##" - ) | 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.@S|@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_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 -cat >config.log <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by fpart $as_me 1.2.0, which was -generated by GNU Autoconf 2.69. Invocation command line was - - $ $0 $@ - -_ACEOF -exec 5>>config.log -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - $as_echo "PATH: $as_dir" - done -IFS=$as_save_IFS - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## - -_ACEOF - - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *\'*) - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; - 2) - as_fn_append ac_configure_args1 " '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - as_fn_append ac_configure_args " '$ac_arg'" - ;; - esac - done -done -{ ac_configure_args0=; unset ac_configure_args0;} -{ ac_configure_args1=; unset ac_configure_args1;} - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Use '\'' to represent an apostrophe within the trap. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - $as_echo "## ---------------- ## -## Cache variables. ## -## ---------------- ##" - echo - # The following way of writing the cache mishandles newlines in values, -( - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( - *) { eval $ac_var=; unset $ac_var;} ;; - esac ;; - esac - done - (set) 2>&1 | - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - sed -n \ - "s/'\''/'\''\\\\'\'''\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" - ;; #( - *) - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) - echo - - $as_echo "## ----------------- ## -## Output variables. ## -## ----------------- ##" - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - $as_echo "$ac_var='\''$ac_val'\''" - done | sort - echo - - if test -n "$ac_subst_files"; then - $as_echo "## ------------------- ## -## File substitutions. ## -## ------------------- ##" - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - $as_echo "$ac_var='\''$ac_val'\''" - done | sort - echo - fi - - if test -s confdefs.h; then - $as_echo "## ----------- ## -## confdefs.h. ## -## ----------- ##" - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - $as_echo "$as_me: caught signal $ac_signal" - $as_echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core core.conftest.* && - rm -f -r conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status -' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -f -r conftest* confdefs.h - -$as_echo "/* confdefs.h */" > confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -@%:@define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - -cat >>confdefs.h <<_ACEOF -@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - -cat >>confdefs.h <<_ACEOF -@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - -cat >>confdefs.h <<_ACEOF -@%:@define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - -cat >>confdefs.h <<_ACEOF -@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - -cat >>confdefs.h <<_ACEOF -@%:@define PACKAGE_URL "$PACKAGE_URL" -_ACEOF - - -# Let the site file select an alternate cache file if it wants to. -# Prefer an explicitly selected file to automatically selected ones. -ac_site_file1=NONE -ac_site_file2=NONE -if test -n "$CONFIG_SITE"; then - # We do not want a PATH search for config.site. - case $CONFIG_SITE in @%:@(( - -*) ac_site_file1=./$CONFIG_SITE;; - */*) ac_site_file1=$CONFIG_SITE;; - *) ac_site_file1=./$CONFIG_SITE;; - esac -elif test "x$prefix" != xNONE; then - ac_site_file1=$prefix/share/config.site - ac_site_file2=$prefix/etc/config.site -else - ac_site_file1=$ac_default_prefix/share/config.site - ac_site_file2=$ac_default_prefix/etc/config.site -fi -for ac_site_file in "$ac_site_file1" "$ac_site_file2" -do - test "x$ac_site_file" = xNONE && continue - if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 -$as_echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" \ - || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "failed to load site script $ac_site_file -See \`config.log' for more details" "$LINENO" 5; } - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special files - # actually), so we avoid doing that. DJGPP emulates it as a regular file. - if test /dev/null != "$cache_file" && test -f "$cache_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 -$as_echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . "$cache_file";; - *) . "./$cache_file";; - esac - fi -else - { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 -$as_echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - # differences in whitespace do not lead to failure. - ac_old_val_w=`echo x $ac_old_val` - ac_new_val_w=`echo x $ac_new_val` - if test "$ac_old_val_w" != "$ac_new_val_w"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 -$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - ac_cache_corrupted=: - else - { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} - eval $ac_var=\$ac_old_val - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 -$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 -$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) as_fn_append ac_configure_args " '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 -$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 -fi -## -------------------- ## -## Main body of script. ## -## -------------------- ## - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - -am__api_version='1.16' - -ac_aux_dir= -for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 -fi - -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. - - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -# Reject install programs that cannot install multiple files. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 -$as_echo_n "checking for a BSD-compatible install... " >&6; } -if test -z "$INSTALL"; then -if ${ac_cv_path_install+:} false; then : - $as_echo_n "(cached) " >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in @%:@(( - ./ | .// | /[cC]/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - rm -rf conftest.one conftest.two conftest.dir - echo one > conftest.one - echo two > conftest.two - mkdir conftest.dir - if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && - test -s conftest.one && test -s conftest.two && - test -s conftest.dir/conftest.one && - test -s conftest.dir/conftest.two - then - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - fi - done - done - ;; -esac - - done -IFS=$as_save_IFS - -rm -rf conftest.one conftest.two conftest.dir - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 -$as_echo "$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 -$as_echo_n "checking whether build environment is sane... " >&6; } -# Reject unsafe characters in $srcdir or the absolute working directory -# name. Accept space and tab only in the latter. -am_lf=' -' -case `pwd` in - *[\\\"\#\$\&\'\`$am_lf]*) - as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; -esac -case $srcdir in - *[\\\"\#\$\&\'\`$am_lf\ \ ]*) - as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; -esac - -# Do 'set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - am_has_slept=no - for am_try in 1 2; do - echo "timestamp, slept: $am_has_slept" > conftest.file - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t "$srcdir/configure" conftest.file` - fi - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - as_fn_error $? "ls -t appears to fail. Make sure there is not a broken - alias in your environment" "$LINENO" 5 - fi - if test "$2" = conftest.file || test $am_try -eq 2; then - break - fi - # Just in case. - sleep 1 - am_has_slept=yes - done - test "$2" = conftest.file - ) -then - # Ok. - : -else - as_fn_error $? "newly created file is older than distributed files! -Check your system clock" "$LINENO" 5 -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -# If we didn't sleep, we still need to ensure time stamps of config.status and -# generated files are strictly newer. -am_sleep_pid= -if grep 'slept: no' conftest.file >/dev/null 2>&1; then - ( sleep 1 ) & - am_sleep_pid=$! -fi - -rm -f conftest.file - -test "$program_prefix" != NONE && - program_transform_name="s&^&$program_prefix&;$program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s&\$&$program_suffix&;$program_transform_name" -# Double any \ or $. -# By default was `s,x,x', remove it if useless. -ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' -program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` - -# Expand $ac_aux_dir to an absolute path. -am_aux_dir=`cd "$ac_aux_dir" && pwd` - -if test x"${MISSING+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; - *) - MISSING="\${SHELL} $am_aux_dir/missing" ;; - esac -fi -# Use eval to expand $SHELL -if eval "$MISSING --is-lightweight"; then - am_missing_run="$MISSING " -else - am_missing_run= - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 -$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} -fi - -if test x"${install_sh+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; - *) - install_sh="\${SHELL} $am_aux_dir/install-sh" - esac -fi - -# Installed binaries are usually stripped using 'strip' when the user -# run "make install-strip". However 'strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the 'STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 -$as_echo "$STRIP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_STRIP="strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 -$as_echo "$ac_ct_STRIP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 -$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } -if test -z "$MKDIR_P"; then - if ${ac_cv_path_mkdir+:} false; then : - $as_echo_n "(cached) " >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do - for ac_exec_ext in '' $ac_executable_extensions; do - as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ - 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext - break 3;; - esac - done - done - done -IFS=$as_save_IFS - -fi - - test -d ./--version && rmdir ./--version - if test "${ac_cv_path_mkdir+set}" = set; then - MKDIR_P="$ac_cv_path_mkdir -p" - else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - MKDIR_P="$ac_install_sh -d" - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 -$as_echo "$MKDIR_P" >&6; } - -for ac_prog in gawk mawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AWK+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_AWK="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 -$as_echo "$AWK" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$AWK" && break -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } -set x ${MAKE-make} -ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: - @echo '@@@%%%=$(MAKE)=@@@%%%' -_ACEOF -# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in - *@@@%%%=?*=@@@%%%*) - eval ac_cv_prog_make_${ac_make}_set=yes;; - *) - eval ac_cv_prog_make_${ac_make}_set=no;; -esac -rm -f conftest.make -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - SET_MAKE= -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - SET_MAKE="MAKE=${MAKE-make}" -fi - -rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null - -@%:@ Check whether --enable-silent-rules was given. -if test "${enable_silent_rules+set}" = set; then : - enableval=$enable_silent_rules; -fi - -case $enable_silent_rules in @%:@ ((( - yes) AM_DEFAULT_VERBOSITY=0;; - no) AM_DEFAULT_VERBOSITY=1;; - *) AM_DEFAULT_VERBOSITY=1;; -esac -am_make=${MAKE-make} -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 -$as_echo_n "checking whether $am_make supports nested variables... " >&6; } -if ${am_cv_make_support_nested_variables+:} false; then : - $as_echo_n "(cached) " >&6 -else - if $as_echo 'TRUE=$(BAR$(V)) -BAR0=false -BAR1=true -V=1 -am__doit: - @$(TRUE) -.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then - am_cv_make_support_nested_variables=yes -else - am_cv_make_support_nested_variables=no -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 -$as_echo "$am_cv_make_support_nested_variables" >&6; } -if test $am_cv_make_support_nested_variables = yes; then - AM_V='$(V)' - AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' -else - AM_V=$AM_DEFAULT_VERBOSITY - AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY -fi -AM_BACKSLASH='\' - -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - am__isrc=' -I$(srcdir)' - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi - - -# Define the identity of the package. - PACKAGE='fpart' - VERSION='1.2.0' - - -cat >>confdefs.h <<_ACEOF -@%:@define PACKAGE "$PACKAGE" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -@%:@define VERSION "$VERSION" -_ACEOF - -# Some tools Automake needs. - -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} - - -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} - - -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} - - -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} - - -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} - -# For better backward compatibility. To be removed once Automake 1.9.x -# dies out for good. For more background, see: -# -# -mkdir_p='$(MKDIR_P)' - -# We need awk for the "check" target (and possibly the TAP driver). The -# system "awk" is bad on some platforms. -# Always define AMTAR for backward compatibility. Yes, it's still used -# in the wild :-( We should find a proper way to deprecate it ... -AMTAR='$${TAR-tar}' - - -# We'll loop over all known methods to create a tar archive until one works. -_am_tools='gnutar pax cpio none' - -am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' - - - - - - -# POSIX will say in a future version that running "rm -f" with no argument -# is OK; and we want to be able to make that assumption in our Makefile -# recipes. So use an aggressive probe to check that the usage we want is -# actually supported "in the wild" to an acceptable degree. -# See automake bug#10828. -# To make any issue more visible, cause the running configure to be aborted -# by default if the 'rm' program in use doesn't match our expectations; the -# user can still override this though. -if rm -f && rm -fr && rm -rf; then : OK; else - cat >&2 <<'END' -Oops! - -Your 'rm' program seems unable to run without file operands specified -on the command line, even when the '-f' option is present. This is contrary -to the behaviour of most rm programs out there, and not conforming with -the upcoming POSIX standard: - -Please tell bug-automake@gnu.org about your system, including the value -of your $PATH and any error possibly output before this message. This -can help us improve future automake versions. - -END - if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then - echo 'Configuration will proceed anyway, since you have set the' >&2 - echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 - echo >&2 - else - cat >&2 <<'END' -Aborting the configuration process, to ensure you take notice of the issue. - -You can download and install GNU coreutils to get an 'rm' implementation -that behaves properly: . - -If you want to complete the configuration process using your problematic -'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM -to "yes", and re-run configure. - -END - as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 - fi -fi - - -# 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 - for ac_prog in cc gcc - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cc gcc -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - - -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "no acceptable C compiler found in \$PATH -See \`config.log' for more details" "$LINENO" 5; } - -# Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 -set X $ac_compile -ac_compiler=$2 -for ac_option in --version -v -V -qversion; do - { { ac_try="$ac_compiler $ac_option >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_compiler $ac_option >&5") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - sed '10a\ -... rest of stderr output deleted ... - 10q' conftest.err >conftest.er1 - cat conftest.er1 >&5 - fi - rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } -done - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 -$as_echo_n "checking whether the C compiler works... " >&6; } -ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` - -# The possible output files: -ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" - -ac_rmfiles= -for ac_file in $ac_files -do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; - * ) ac_rmfiles="$ac_rmfiles $ac_file";; - esac -done -rm -f $ac_rmfiles - -if { { ac_try="$ac_link_default" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link_default") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' -# in a Makefile. We should not override ac_cv_exeext if it was cached, -# so that the user can short-circuit this test for compilers unknown to -# Autoconf. -for ac_file in $ac_files '' -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; - then :; else - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - fi - # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' - # argument, so we may need to know it at that point already. - # Even if this section looks crufty: it has the advantage of - # actually working. - break;; - * ) - break;; - esac -done -test "$ac_cv_exeext" = no && ac_cv_exeext= - -else - ac_file='' -fi -if test -z "$ac_file"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "C compiler cannot create executables -See \`config.log' for more details" "$LINENO" 5; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 -$as_echo_n "checking for C compiler default output file name... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 -$as_echo "$ac_file" >&6; } -ac_exeext=$ac_cv_exeext - -rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 -$as_echo_n "checking for suffix of executables... " >&6; } -if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in conftest.exe conftest conftest.*; do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - break;; - * ) break;; - esac -done -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details" "$LINENO" 5; } -fi -rm -f conftest conftest$ac_cv_exeext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 -$as_echo "$ac_cv_exeext" >&6; } - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -@%:@include -int -main () -{ -FILE *f = fopen ("conftest.out", "w"); - return ferror (f) || fclose (f) != 0; - - ; - return 0; -} -_ACEOF -ac_clean_files="$ac_clean_files conftest.out" -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 -$as_echo_n "checking whether we are cross compiling... " >&6; } -if test "$cross_compiling" != yes; then - { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - if { ac_try='./conftest$ac_cv_exeext' - { { case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details" "$LINENO" 5; } - fi - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 -$as_echo "$cross_compiling" >&6; } - -rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out -ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 -$as_echo_n "checking for suffix of object files... " >&6; } -if ${ac_cv_objext+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { { ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_compile") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : - for ac_file in conftest.o conftest.obj conftest.*; do - test -f "$ac_file" || continue; - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot compute suffix of object files: cannot compile -See \`config.log' for more details" "$LINENO" 5; } -fi -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 -$as_echo "$ac_cv_objext" >&6; } -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 -$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } -if ${ac_cv_c_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_compiler_gnu=yes -else - ac_compiler_gnu=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 -$as_echo "$ac_cv_c_compiler_gnu" >&6; } -if test $ac_compiler_gnu = yes; then - GCC=yes -else - GCC= -fi -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 -$as_echo_n "checking whether $CC accepts -g... " >&6; } -if ${ac_cv_prog_cc_g+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_g=yes -else - CFLAGS="" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -else - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_g=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 -$as_echo "$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } -if ${ac_cv_prog_cc_c89+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -struct stat; -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_c89=$ac_arg -fi -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; - xno) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c89" != xno; then : - -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 -$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } -if ${am_cv_prog_cc_c_o+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF - # Make sure it works both with $CC and with simple cc. - # Following AC_PROG_CC_C_O, we do the test twice because some - # compilers refuse to overwrite an existing .o file with -o, - # though they will create one. - am_cv_prog_cc_c_o=yes - for am_i in 1 2; do - if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 - ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } \ - && test -f conftest2.$ac_objext; then - : OK - else - am_cv_prog_cc_c_o=no - break - fi - done - rm -f core conftest* - unset am_i -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 -$as_echo "$am_cv_prog_cc_c_o" >&6; } -if test "$am_cv_prog_cc_c_o" != yes; then - # Losing compiler, so override with the script. - # FIXME: It is wrong to rewrite CC. - # But if we don't then we get into trouble of one sort or another. - # A longer-term fix would be to have automake use am__CC in this case, - # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" - CC="$am_aux_dir/compile $CC" -fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -DEPDIR="${am__leading_dot}deps" - -ac_config_commands="$ac_config_commands depfiles" - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 -$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } -cat > confinc.mk << 'END' -am__doit: - @echo this is the am__doit target >confinc.out -.PHONY: am__doit -END -am__include="#" -am__quote= -# BSD make does it like this. -echo '.include "confinc.mk" # ignored' > confmf.BSD -# Other make implementations (GNU, Solaris 10, AIX) do it like this. -echo 'include confinc.mk # ignored' > confmf.GNU -_am_result=no -for s in GNU BSD; do - { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 - (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - case $?:`cat confinc.out 2>/dev/null` in @%:@( - '0:this is the am__doit target') : - case $s in @%:@( - BSD) : - am__include='.include' am__quote='"' ;; @%:@( - *) : - am__include='include' am__quote='' ;; -esac ;; @%:@( - *) : - ;; -esac - if test "$am__include" != "#"; then - _am_result="yes ($s style)" - break - fi -done -rm -f confinc.* confmf.* -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 -$as_echo "${_am_result}" >&6; } - -@%:@ Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then : - enableval=$enable_dependency_tracking; -fi - -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' - am__nodep='_no' -fi - if test "x$enable_dependency_tracking" != xno; then - AMDEP_TRUE= - AMDEP_FALSE='#' -else - AMDEP_TRUE='#' - AMDEP_FALSE= -fi - - - -depcc="$CC" am_compiler_list= - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 -$as_echo_n "checking dependency style of $depcc... " >&6; } -if ${am_cv_CC_dependencies_compiler_type+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named 'D' -- because '-MD' means "put the output - # in D". - rm -rf conftest.dir - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CC_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - am__universal=false - case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=true ;; - esac - - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with - # Solaris 10 /bin/sh. - echo '/* dummy */' > sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - # We check with '-c' and '-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle '-M -o', and we need to detect this. Also, some Intel - # versions had trouble with output in subdirs. - am__obj=sub/conftest.${OBJEXT-o} - am__minus_obj="-o $am__obj" - case $depmode in - gcc) - # This depmode causes a compiler race in universal mode. - test "$am__universal" = false || continue - ;; - nosideeffect) - # After this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested. - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - msvc7 | msvc7msys | msvisualcpp | msvcmsys) - # This compiler won't grok '-c -o', but also, the minuso test has - # not run yet. These depmodes are late enough in the game, and - # so weak that their functioning should not be impacted. - am__obj=conftest.${OBJEXT-o} - am__minus_obj= - ;; - none) break ;; - esac - if depmode=$depmode \ - source=sub/conftest.c object=$am__obj \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep $am__obj sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CC_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CC_dependencies_compiler_type=none -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 -$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then - am__fastdepCC_TRUE= - am__fastdepCC_FALSE='#' -else - am__fastdepCC_TRUE='#' - am__fastdepCC_FALSE= -fi - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 -$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } -if ${ac_cv_prog_cc_c99+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_prog_cc_c99=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include -#include - -// Check varargs macros. These examples are taken from C99 6.10.3.5. -#define debug(...) fprintf (stderr, __VA_ARGS__) -#define showlist(...) puts (#__VA_ARGS__) -#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) -static void -test_varargs_macros (void) -{ - int x = 1234; - int y = 5678; - debug ("Flag"); - debug ("X = %d\n", x); - showlist (The first, second, and third items.); - report (x>y, "x is %d but y is %d", x, y); -} - -// Check long long types. -#define BIG64 18446744073709551615ull -#define BIG32 4294967295ul -#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) -#if !BIG_OK - your preprocessor is broken; -#endif -#if BIG_OK -#else - your preprocessor is broken; -#endif -static long long int bignum = -9223372036854775807LL; -static unsigned long long int ubignum = BIG64; - -struct incomplete_array -{ - int datasize; - double data[]; -}; - -struct named_init { - int number; - const wchar_t *name; - double average; -}; - -typedef const char *ccp; - -static inline int -test_restrict (ccp restrict text) -{ - // See if C++-style comments work. - // Iterate through items via the restricted pointer. - // Also check for declarations in for loops. - for (unsigned int i = 0; *(text+i) != '\0'; ++i) - continue; - return 0; -} - -// Check varargs and va_copy. -static void -test_varargs (const char *format, ...) -{ - va_list args; - va_start (args, format); - va_list args_copy; - va_copy (args_copy, args); - - const char *str; - int number; - float fnumber; - - while (*format) - { - switch (*format++) - { - case 's': // string - str = va_arg (args_copy, const char *); - break; - case 'd': // int - number = va_arg (args_copy, int); - break; - case 'f': // float - fnumber = va_arg (args_copy, double); - break; - default: - break; - } - } - va_end (args_copy); - va_end (args); -} - -int -main () -{ - - // Check bool. - _Bool success = false; - - // Check restrict. - if (test_restrict ("String literal") == 0) - success = true; - char *restrict newvar = "Another string"; - - // Check varargs. - test_varargs ("s, d' f .", "string", 65, 34.234); - test_varargs_macros (); - - // Check flexible array members. - struct incomplete_array *ia = - malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); - ia->datasize = 10; - for (int i = 0; i < ia->datasize; ++i) - ia->data[i] = i * 1.234; - - // Check named initializers. - struct named_init ni = { - .number = 34, - .name = L"Test wide string", - .average = 543.34343, - }; - - ni.number = 58; - - int dynamic_array[ni.number]; - dynamic_array[ni.number - 1] = 543; - - // work around unused variable warnings - return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' - || dynamic_array[ni.number - 1] != 543); - - ; - return 0; -} -_ACEOF -for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 -do - CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_c99=$ac_arg -fi -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c99" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c99" 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_c99" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 -$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c99" != xno; then : - -fi - - - - - -# Checks for log10() in -lm - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10 in -lm" >&5 -$as_echo_n "checking for log10 in -lm... " >&6; } -if ${ac_cv_lib_m_log10+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lm $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char log10 (); -int -main () -{ -return log10 (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_m_log10=yes -else - ac_cv_lib_m_log10=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10" >&5 -$as_echo "$ac_cv_lib_m_log10" >&6; } -if test "x$ac_cv_lib_m_log10" = xyes; then : - cat >>confdefs.h <<_ACEOF -@%:@define HAVE_LIBM 1 -_ACEOF - - LIBS="-lm $LIBS" - -fi - - -# Checks for header files. -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 -$as_echo_n "checking how to run the C preprocessor... " >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if ${ac_cv_prog_CPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -@%:@ifdef __STDC__ -@%:@ include -@%:@else -@%:@ include -@%:@endif - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - -else - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.i conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -@%:@include -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue -else - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.i conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 -$as_echo "$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -@%:@ifdef __STDC__ -@%:@ include -@%:@else -@%:@ include -@%:@endif - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - -else - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.i conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -@%:@include -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue -else - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.i conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -$as_echo_n "checking for grep that handles long lines and -e... " >&6; } -if ${ac_cv_path_GREP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$GREP"; then - ac_path_GREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_GREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_GREP=$GREP -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -$as_echo "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -$as_echo_n "checking for egrep... " >&6; } -if ${ac_cv_path_EGREP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_EGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_EGREP=$EGREP -fi - - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -$as_echo "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 -$as_echo_n "checking for ANSI C header files... " >&6; } -if ${ac_cv_header_stdc+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_header_stdc=yes -else - ac_cv_header_stdc=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then : - : -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - -else - ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 -$as_echo "$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h - -fi - -# On IRIX 5.3, sys/types and inttypes.h are conflicting. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default -" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - -for ac_header in fcntl.h paths.h stdlib.h string.h strings.h sys/mount.h sys/param.h sys/statfs.h sys/statvfs.h sys/vfs.h unistd.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - -# Checks for typedefs, structures, and compiler characteristics. -ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" -if test "x$ac_cv_type_pid_t" = xyes; then : - -else - -cat >>confdefs.h <<_ACEOF -@%:@define pid_t int -_ACEOF - -fi - -ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" -if test "x$ac_cv_type_size_t" = xyes; then : - -else - -cat >>confdefs.h <<_ACEOF -@%:@define size_t unsigned int -_ACEOF - -fi - - -# Checks for library functions. -for ac_header in vfork.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" -if test "x$ac_cv_header_vfork_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -@%:@define HAVE_VFORK_H 1 -_ACEOF - -fi - -done - -for ac_func in fork vfork -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -if test "x$ac_cv_func_fork" = xyes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 -$as_echo_n "checking for working fork... " >&6; } -if ${ac_cv_func_fork_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : - ac_cv_func_fork_works=cross -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ - - /* By Ruediger Kuhlmann. */ - return fork () < 0; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - ac_cv_func_fork_works=yes -else - ac_cv_func_fork_works=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 -$as_echo "$ac_cv_func_fork_works" >&6; } - -else - ac_cv_func_fork_works=$ac_cv_func_fork -fi -if test "x$ac_cv_func_fork_works" = xcross; then - case $host in - *-*-amigaos* | *-*-msdosdjgpp*) - # Override, as these systems have only a dummy fork() stub - ac_cv_func_fork_works=no - ;; - *) - ac_cv_func_fork_works=yes - ;; - esac - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 -$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} -fi -ac_cv_func_vfork_works=$ac_cv_func_vfork -if test "x$ac_cv_func_vfork" = xyes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 -$as_echo_n "checking for working vfork... " >&6; } -if ${ac_cv_func_vfork_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : - ac_cv_func_vfork_works=cross -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -/* Thanks to Paul Eggert for this test. */ -$ac_includes_default -#include -#ifdef HAVE_VFORK_H -# include -#endif -/* On some sparc systems, changes by the child to local and incoming - argument registers are propagated back to the parent. The compiler - is told about this with #include , but some compilers - (e.g. gcc -O) don't grok . Test for this by using a - static variable whose address is put into a register that is - clobbered by the vfork. */ -static void -#ifdef __cplusplus -sparc_address_test (int arg) -# else -sparc_address_test (arg) int arg; -#endif -{ - static pid_t child; - if (!child) { - child = vfork (); - if (child < 0) { - perror ("vfork"); - _exit(2); - } - if (!child) { - arg = getpid(); - write(-1, "", 0); - _exit (arg); - } - } -} - -int -main () -{ - pid_t parent = getpid (); - pid_t child; - - sparc_address_test (0); - - child = vfork (); - - if (child == 0) { - /* Here is another test for sparc vfork register problems. This - test uses lots of local variables, at least as many local - variables as main has allocated so far including compiler - temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris - 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should - reuse the register of parent for one of the local variables, - since it will think that parent can't possibly be used any more - in this routine. Assigning to the local variable will thus - munge parent in the parent process. */ - pid_t - p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), - p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); - /* Convince the compiler that p..p7 are live; otherwise, it might - use the same hardware register for all 8 local variables. */ - if (p != p1 || p != p2 || p != p3 || p != p4 - || p != p5 || p != p6 || p != p7) - _exit(1); - - /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent - from child file descriptors. If the child closes a descriptor - before it execs or exits, this munges the parent's descriptor - as well. Test for this by closing stdout in the child. */ - _exit(close(fileno(stdout)) != 0); - } else { - int status; - struct stat st; - - while (wait(&status) != child) - ; - return ( - /* Was there some problem with vforking? */ - child < 0 - - /* Did the child fail? (This shouldn't happen.) */ - || status - - /* Did the vfork/compiler bug occur? */ - || parent != getpid() - - /* Did the file descriptor bug occur? */ - || fstat(fileno(stdout), &st) != 0 - ); - } -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - ac_cv_func_vfork_works=yes -else - ac_cv_func_vfork_works=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 -$as_echo "$ac_cv_func_vfork_works" >&6; } - -fi; -if test "x$ac_cv_func_fork_works" = xcross; then - ac_cv_func_vfork_works=$ac_cv_func_vfork - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 -$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} -fi - -if test "x$ac_cv_func_vfork_works" = xyes; then - -$as_echo "@%:@define HAVE_WORKING_VFORK 1" >>confdefs.h - -else - -$as_echo "@%:@define vfork fork" >>confdefs.h - -fi -if test "x$ac_cv_func_fork_works" = xyes; then - -$as_echo "@%:@define HAVE_WORKING_FORK 1" >>confdefs.h - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 -$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } -if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : - $as_echo_n "(cached) " >&6 -else - rm -f conftest.sym conftest.file -echo >conftest.file -if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then - if test "$cross_compiling" = yes; then : - ac_cv_func_lstat_dereferences_slashed_symlink=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -struct stat sbuf; - /* Linux will dereference the symlink and fail, as required by POSIX. - That is better in the sense that it means we will not - have to compile and use the lstat wrapper. */ - return lstat ("conftest.sym/", &sbuf) == 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - ac_cv_func_lstat_dereferences_slashed_symlink=yes -else - ac_cv_func_lstat_dereferences_slashed_symlink=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -else - # If the `ln -s' command failed, then we probably don't even - # have an lstat function. - ac_cv_func_lstat_dereferences_slashed_symlink=no -fi -rm -f conftest.sym conftest.file - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 -$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } - -test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && - -cat >>confdefs.h <<_ACEOF -@%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 -_ACEOF - - -if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then - case " $LIB@&t@OBJS " in - *" lstat.$ac_objext "* ) ;; - *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext" - ;; -esac - -fi - -for ac_header in stdlib.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" -if test "x$ac_cv_header_stdlib_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -@%:@define HAVE_STDLIB_H 1 -_ACEOF - -fi - -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 -$as_echo_n "checking for GNU libc compatible malloc... " >&6; } -if ${ac_cv_func_malloc_0_nonnull+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : - ac_cv_func_malloc_0_nonnull=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#if defined STDC_HEADERS || defined HAVE_STDLIB_H -# include -#else -char *malloc (); -#endif - -int -main () -{ -return ! malloc (0); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - ac_cv_func_malloc_0_nonnull=yes -else - ac_cv_func_malloc_0_nonnull=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 -$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } -if test $ac_cv_func_malloc_0_nonnull = yes; then : - -$as_echo "@%:@define HAVE_MALLOC 1" >>confdefs.h - -else - $as_echo "@%:@define HAVE_MALLOC 0" >>confdefs.h - - case " $LIB@&t@OBJS " in - *" malloc.$ac_objext "* ) ;; - *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext" - ;; -esac - - -$as_echo "@%:@define malloc rpl_malloc" >>confdefs.h - -fi - - -for ac_header in stdlib.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" -if test "x$ac_cv_header_stdlib_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -@%:@define HAVE_STDLIB_H 1 -_ACEOF - -fi - -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 -$as_echo_n "checking for GNU libc compatible realloc... " >&6; } -if ${ac_cv_func_realloc_0_nonnull+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : - ac_cv_func_realloc_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 *realloc (); -#endif - -int -main () -{ -return ! realloc (0, 0); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - ac_cv_func_realloc_0_nonnull=yes -else - ac_cv_func_realloc_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_realloc_0_nonnull" >&5 -$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } -if test $ac_cv_func_realloc_0_nonnull = yes; then : - -$as_echo "@%:@define HAVE_REALLOC 1" >>confdefs.h - -else - $as_echo "@%:@define HAVE_REALLOC 0" >>confdefs.h - - case " $LIB@&t@OBJS " in - *" realloc.$ac_objext "* ) ;; - *) LIB@&t@OBJS="$LIB@&t@OBJS realloc.$ac_objext" - ;; -esac - - -$as_echo "@%:@define realloc rpl_realloc" >>confdefs.h - -fi - - -for ac_func in bzero dirfd fchdir getcwd memmove memset strchr strerror strrchr strtol -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 - - -# OS detection -# 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 - - -case "${host_os}" in - solaris*) host_os_solaris=true ;; - linux*) - # Alpine Linux uses musl-libc which does not include fts(3) - case "${host_os}" in - linux-musl*) extfts=true ;; - esac - host_os_linux=true ;; -esac - -# Default value for embedded fts support -dflt_embfts=false -# Enabled on Solaris -if test x$host_os_solaris = xtrue -then - dflt_embfts=true -fi - -# Embedded fts option -@%:@ Check whether --enable-embfts was given. -if test "${enable_embfts+set}" = set; then : - enableval=$enable_embfts; case "${enableval}" in - yes) embfts=true ;; - no) embfts=false ;; - *) as_fn_error $? "bad value ${enableval} for --enable-embfts" "$LINENO" 5 ;; -esac -else - embfts=${dflt_embfts} -fi - - -# Static build option -@%:@ Check whether --enable-static was given. -if test "${enable_static+set}" = set; then : - enableval=$enable_static; case "${enableval}" in - yes) static=true ;; - no) static=false ;; - *) as_fn_error $? "bad value ${enableval} for --enable-static" "$LINENO" 5 ;; -esac -else - static=false -fi - - -# Debug option -@%:@ Check whether --enable-debug was given. -if test "${enable_debug+set}" = set; then : - enableval=$enable_debug; case "${enableval}" in - yes) debug=true ;; - no) debug=false ;; - *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;; -esac -else - debug=false -fi - - -# Disable large file support on Linux when not using embedded fts -# as Linux' fts.h cannot be used with _FILE_OFFSET_BITS==64 -if test x$embfts = xfalse -then - if test x$host_os_linux = xtrue - then - enable_largefile=no - fi -fi - -# Large file support -@%:@ 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 - - -# Automake output - if test x$debug = xtrue; then - DEBUG_TRUE= - DEBUG_FALSE='#' -else - DEBUG_TRUE='#' - DEBUG_FALSE= -fi - - if test x$embfts = xtrue; then - EMBEDDED_FTS_TRUE= - EMBEDDED_FTS_FALSE='#' -else - EMBEDDED_FTS_TRUE='#' - EMBEDDED_FTS_FALSE= -fi - - if test x$extfts = xtrue; then - EXTERNAL_FTS_TRUE= - EXTERNAL_FTS_FALSE='#' -else - EXTERNAL_FTS_TRUE='#' - EXTERNAL_FTS_FALSE= -fi - - if test x$host_os_solaris = xtrue; then - SOLARIS_TRUE= - SOLARIS_FALSE='#' -else - SOLARIS_TRUE='#' - SOLARIS_FALSE= -fi - - if test x$host_os_linux = xtrue; then - LINUX_TRUE= - LINUX_FALSE='#' -else - LINUX_TRUE='#' - LINUX_FALSE= -fi - - if test x$static = xtrue; then - STATIC_TRUE= - STATIC_FALSE='#' -else - STATIC_TRUE='#' - STATIC_FALSE= -fi - - -#AC_CONFIG_HEADERS([src/config.h]) -ac_config_files="$ac_config_files Makefile src/Makefile tools/Makefile man/Makefile" - -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, we kill variables containing newlines. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -( - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( - *) { eval $ac_var=; unset $ac_var;} ;; - esac ;; - esac - done - - (set) 2>&1 | - case $as_nl`(ac_space=' '; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes: double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \. - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; #( - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) | - sed ' - /^ac_cv_env_/b end - t clear - :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - :end' >>confcache -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else - if test -w "$cache_file"; then - if test "x$cache_file" != "x/dev/null"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 -$as_echo "$as_me: updating cache $cache_file" >&6;} - if test ! -f "$cache_file" || test -h "$cache_file"; then - cat confcache >"$cache_file" - else - case $cache_file in #( - */* | ?:*) - mv -f confcache "$cache_file"$$ && - mv -f "$cache_file"$$ "$cache_file" ;; #( - *) - mv -f confcache "$cache_file" ;; - esac - fi - fi - else - { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -# -# If the first sed substitution is executed (which looks for macros that -# take arguments), then branch to the quote section. Otherwise, -# look for a macro that doesn't take arguments. -ac_script=' -:mline -/\\$/{ - N - s,\\\n,, - b mline -} -t clear -:clear -s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g -t quote -s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g -t quote -b any -:quote -s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g -s/\[/\\&/g -s/\]/\\&/g -s/\$/$$/g -H -:any -${ - g - s/^\n// - s/\n/ /g - p -} -' -DEFS=`sed -n "$ac_script" confdefs.h` - - -ac_libobjs= -ac_ltlibobjs= -U= -for ac_i in : $LIB@&t@OBJS; 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 -LIB@&t@OBJS=$ac_libobjs - -LTLIBOBJS=$ac_ltlibobjs - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 -$as_echo_n "checking that generated files are newer than configure... " >&6; } - if test -n "$am_sleep_pid"; then - # Hide warnings about reused PIDs. - wait $am_sleep_pid 2>/dev/null - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 -$as_echo "done" >&6; } - if test -n "$EXEEXT"; then - am__EXEEXT_TRUE= - am__EXEEXT_FALSE='#' -else - am__EXEEXT_TRUE='#' - am__EXEEXT_FALSE= -fi - -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then - as_fn_error $? "conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - as_fn_error $? "conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then - as_fn_error $? "conditional \"DEBUG\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${EMBEDDED_FTS_TRUE}" && test -z "${EMBEDDED_FTS_FALSE}"; then - as_fn_error $? "conditional \"EMBEDDED_FTS\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${EXTERNAL_FTS_TRUE}" && test -z "${EXTERNAL_FTS_FALSE}"; then - as_fn_error $? "conditional \"EXTERNAL_FTS\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then - as_fn_error $? "conditional \"SOLARIS\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then - as_fn_error $? "conditional \"LINUX\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${STATIC_TRUE}" && test -z "${STATIC_FALSE}"; then - as_fn_error $? "conditional \"STATIC\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi - -: "${CONFIG_STATUS=./config.status}" -ac_write_fail=0 -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 -$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} -as_write_fail=0 -cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -ac_cs_recheck=false -ac_cs_silent=false - -SHELL=\${CONFIG_SHELL-$SHELL} -export SHELL -_ASEOF -cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 -## -------------------- ## -## M4sh Initialization. ## -## -------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in @%:@( - *posix*) : - set -o posix ;; @%:@( - *) : - ;; -esac -fi - - -as_nl=' -' -export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in @%:@( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || - PATH_SEPARATOR=';' - } -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -as_myself= -case $0 in @%:@(( - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break - done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - exit 1 -fi - -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - - -@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] -@%:@ ---------------------------------------- -@%:@ Output "`basename @S|@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 @S|@? 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 @S|@as_val. Take advantage of shells that can avoid forks. The arguments -@%:@ must be portable across @S|@(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : - eval 'as_fn_arith () - { - as_val=$(( $* )) - }' -else - as_fn_arith () - { - as_val=`expr "$@" || test $? -eq 1` - } -fi # as_fn_arith - - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in @%:@((((( --n*) - case `echo 'xy\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - xy) ECHO_C='\c';; - *) echo `echo ksh88 bug on AIX 6.1` > /dev/null - ECHO_T=' ';; - esac;; -*) - ECHO_N='-n';; -esac - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir 2>/dev/null -fi -if (echo >conf$$.file) 2>/dev/null; then - if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -pR' - elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln - else - as_ln_s='cp -pR' - fi -else - as_ln_s='cp -pR' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - - -@%:@ as_fn_mkdir_p -@%:@ ------------- -@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. -as_fn_mkdir_p () -{ - - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || eval $as_mkdir_p || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" - - -} @%:@ as_fn_mkdir_p -if mkdir -p . 2>/dev/null; then - as_mkdir_p='mkdir -p "$as_dir"' -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - - -@%:@ as_fn_executable_p FILE -@%:@ ----------------------- -@%:@ Test if FILE is an executable regular file. -as_fn_executable_p () -{ - test -f "$1" && test -x "$1" -} @%:@ as_fn_executable_p -as_test_x='test -x' -as_executable_p=as_fn_executable_p - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -exec 6>&1 -## ----------------------------------- ## -## Main body of $CONFIG_STATUS script. ## -## ----------------------------------- ## -_ASEOF -test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -# Save the log message, to keep $0 and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. -ac_log=" -This file was extended by fpart $as_me 1.2.0, which was -generated by GNU Autoconf 2.69. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ - -on `(hostname || uname -n) 2>/dev/null | sed 1q` -" - -_ACEOF - -case $ac_config_files in *" -"*) set x $ac_config_files; shift; ac_config_files=$*;; -esac - - - -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -# Files that config.status was made for. -config_files="$ac_config_files" -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 - -Configuration files: -$config_files - -Configuration commands: -$config_commands - -Report bugs to ." - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" -ac_cs_version="\\ -fpart config.status 1.2.0 -configured by $0, generated by GNU Autoconf 2.69, - with options \\"\$ac_cs_config\\" - -Copyright (C) 2012 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." - -ac_pwd='$ac_pwd' -srcdir='$srcdir' -INSTALL='$INSTALL' -MKDIR_P='$MKDIR_P' -AWK='$AWK' -test -n "\$AWK" || AWK=awk -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -# The default lists apply if the user does not specify any file. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=?*) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` - ac_shift=: - ;; - --*=) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg= - ac_shift=: - ;; - *) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - esac - - case $ac_option in - # Handling of the options. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - $as_echo "$ac_cs_version"; exit ;; - --config | --confi | --conf | --con | --co | --c ) - $as_echo "$ac_cs_config"; exit ;; - --debug | --debu | --deb | --de | --d | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; - '') as_fn_error $? "missing file argument" ;; - esac - as_fn_append CONFIG_FILES " '$ac_optarg'" - ac_need_defaults=false;; - --he | --h | --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" MAKE="${MAKE-make}" - -_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 - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; - "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; - "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; - - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; - esac -done - - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_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" - - -eval set X " :F $CONFIG_FILES :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 - ;; - - - :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 -$as_echo "$as_me: executing $ac_file commands" >&6;} - ;; - esac - - - case $ac_file$ac_mode in - "depfiles":C) test x"$AMDEP_TRUE" != x"" || { - # Older Autoconf quotes --file arguments for eval, but not when files - # are listed without --file. Let's play safe and only enable the eval - # if we detect the quoting. - # TODO: see whether this extra hack can be removed once we start - # requiring Autoconf 2.70 or later. - case $CONFIG_FILES in @%:@( - *\'*) : - eval set x "$CONFIG_FILES" ;; @%:@( - *) : - set x $CONFIG_FILES ;; @%:@( - *) : - ;; -esac - shift - # Used to flag and report bootstrapping failures. - am_rc=0 - for am_mf - do - # Strip MF so we end up with the name of the file. - am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile which includes - # dependency-tracking related rules and includes. - # Grep'ing the whole file directly is not great: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ - || continue - am_dirpart=`$as_dirname -- "$am_mf" || -$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$am_mf" : 'X\(//\)[^/]' \| \ - X"$am_mf" : 'X\(//\)$' \| \ - X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$am_mf" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - am_filepart=`$as_basename -- "$am_mf" || -$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ - X"$am_mf" : 'X\(//\)$' \| \ - X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$am_mf" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { echo "$as_me:$LINENO: cd "$am_dirpart" \ - && sed -e '/# am--include-marker/d' "$am_filepart" \ - | $MAKE -f - am--depfiles" >&5 - (cd "$am_dirpart" \ - && sed -e '/# am--include-marker/d' "$am_filepart" \ - | $MAKE -f - am--depfiles) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } || am_rc=$? - done - if test $am_rc -ne 0; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "Something went wrong bootstrapping makefile fragments - for automatic dependency tracking. Try re-running configure with the - '--disable-dependency-tracking' option to at least be able to build - the package (albeit without support for automatic dependency tracking). -See \`config.log' for more details" "$LINENO" 5; } - fi - { am_dirpart=; unset am_dirpart;} - { am_filepart=; unset am_filepart;} - { am_mf=; unset am_mf;} - { am_rc=; unset am_rc;} - rm -f conftest-deps.mk -} - ;; - - 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 - diff -Nru fpart-1.2.0/autom4te.cache/output.1 fpart-1.4.0/autom4te.cache/output.1 --- fpart-1.2.0/autom4te.cache/output.1 2020-01-10 21:36:10.000000000 +0000 +++ fpart-1.4.0/autom4te.cache/output.1 1970-01-01 00:00:00.000000000 +0000 @@ -1,6498 +0,0 @@ -@%:@! /bin/sh -@%:@ Guess values for system-dependent variables and create Makefiles. -@%:@ Generated by GNU Autoconf 2.69 for fpart 1.2.0. -@%:@ -@%:@ Report bugs to . -@%:@ -@%:@ -@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. -@%:@ -@%:@ -@%:@ This configure script is free software; the Free Software Foundation -@%:@ gives unlimited permission to copy, distribute and modify it. -## -------------------- ## -## M4sh Initialization. ## -## -------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in @%:@( - *posix*) : - set -o posix ;; @%:@( - *) : - ;; -esac -fi - - -as_nl=' -' -export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in @%:@( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || - PATH_SEPARATOR=';' - } -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -as_myself= -case $0 in @%:@(( - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break - done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - exit 1 -fi - -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# Use a proper internal environment variable to ensure we don't fall - # into an infinite loop, continuously re-executing ourselves. - if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then - _as_can_reexec=no; export _as_can_reexec; - # We cannot yet assume a decent shell, so we have to provide a -# neutralization value for shells without unset; and this also -# works around shells that cannot unset nonexistent variables. -# Preserve -v and -x to the replacement shell. -BASH_ENV=/dev/null -ENV=/dev/null -(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV -case $- in @%:@ (((( - *v*x* | *x*v* ) as_opts=-vx ;; - *v* ) as_opts=-v ;; - *x* ) as_opts=-x ;; - * ) as_opts= ;; -esac -exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} -# Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -as_fn_exit 255 - fi - # We don't want this to propagate to other subprocesses. - { _as_can_reexec=; unset _as_can_reexec;} -if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which - # is contrary to our usage. Disable this feature. - alias -g '\${1+\"\$@\"}'='\"\$@\"' - setopt NO_GLOB_SUBST -else - case \`(set -o) 2>/dev/null\` in @%:@( - *posix*) : - set -o posix ;; @%:@( - *) : - ;; -esac -fi -" - as_required="as_fn_return () { (exit \$1); } -as_fn_success () { as_fn_return 0; } -as_fn_failure () { as_fn_return 1; } -as_fn_ret_success () { return 0; } -as_fn_ret_failure () { return 1; } - -exitcode=0 -as_fn_success || { exitcode=1; echo as_fn_success failed.; } -as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } -as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } -as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } -if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : - -else - exitcode=1; echo positional parameters were not saved. -fi -test x\$exitcode = x0 || exit 1 -test -x / || exit 1" - as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO - as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO - eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && - test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 -test \$(( 1 + 1 )) = 2 || exit 1" - if (eval "$as_required") 2>/dev/null; then : - as_have_required=yes -else - as_have_required=no -fi - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : - -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -as_found=false -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - as_found=: - case $as_dir in @%:@( - /*) - for as_base in sh bash ksh sh5; do - # Try only shells that exist, to save several forks. - as_shell=$as_dir/$as_base - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : - CONFIG_SHELL=$as_shell as_have_required=yes - if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : - break 2 -fi -fi - done;; - esac - as_found=false -done -$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : - CONFIG_SHELL=$SHELL as_have_required=yes -fi; } -IFS=$as_save_IFS - - - if test "x$CONFIG_SHELL" != x; then : - export CONFIG_SHELL - # We cannot yet assume a decent shell, so we have to provide a -# neutralization value for shells without unset; and this also -# works around shells that cannot unset nonexistent variables. -# Preserve -v and -x to the replacement shell. -BASH_ENV=/dev/null -ENV=/dev/null -(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV -case $- in @%:@ (((( - *v*x* | *x*v* ) as_opts=-vx ;; - *v* ) as_opts=-v ;; - *x* ) as_opts=-x ;; - * ) as_opts= ;; -esac -exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} -# Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -exit 255 -fi - - if test x$as_have_required = xno; then : - $as_echo "$0: This script requires a shell more modern than all" - $as_echo "$0: the shells that I found on your system." - if test x${ZSH_VERSION+set} = xset ; then - $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" - $as_echo "$0: be upgraded to zsh 4.3.4 or later." - else - $as_echo "$0: Please tell bug-autoconf@gnu.org and -$0: ganael.laplanche@martymac.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 @S|@? 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 "@S|@as_dir" as a directory, including parents if necessary. -as_fn_mkdir_p () -{ - - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || eval $as_mkdir_p || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" - - -} @%:@ as_fn_mkdir_p - -@%:@ as_fn_executable_p FILE -@%:@ ----------------------- -@%:@ Test if FILE is an executable regular file. -as_fn_executable_p () -{ - test -f "$1" && test -x "$1" -} @%:@ as_fn_executable_p -@%:@ as_fn_append VAR VALUE -@%:@ ---------------------- -@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take -@%:@ advantage of any shell optimizations that allow amortized linear growth over -@%:@ repeated appends, instead of the typical quadratic growth present in naive -@%:@ implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : - eval 'as_fn_append () - { - eval $1+=\$2 - }' -else - as_fn_append () - { - eval $1=\$$1\$2 - } -fi # as_fn_append - -@%:@ as_fn_arith ARG... -@%:@ ------------------ -@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the -@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments -@%:@ must be portable across @S|@(()) 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 @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are -@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the -@%:@ script with STATUS, using 1 if that was 0. -as_fn_error () -{ - as_status=$1; test $as_status -eq 0 && as_status=1 - if test "$4"; then - as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 - fi - $as_echo "$as_me: error: $2" >&2 - as_fn_exit $as_status -} @%:@ as_fn_error - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - - - as_lineno_1=$LINENO as_lineno_1a=$LINENO - as_lineno_2=$LINENO as_lineno_2a=$LINENO - eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && - test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { - # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } - - # If we had to re-execute with $CONFIG_SHELL, we're ensured to have - # already done that, so ensure we don't try to do so again and fall - # in an infinite loop. This has already happened in practice. - _as_can_reexec=no; export _as_can_reexec - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in @%:@((((( --n*) - case `echo 'xy\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - xy) ECHO_C='\c';; - *) echo `echo ksh88 bug on AIX 6.1` > /dev/null - ECHO_T=' ';; - esac;; -*) - ECHO_N='-n';; -esac - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir 2>/dev/null -fi -if (echo >conf$$.file) 2>/dev/null; then - if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -pR' - elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln - else - as_ln_s='cp -pR' - fi -else - as_ln_s='cp -pR' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p='mkdir -p "$as_dir"' -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -as_test_x='test -x' -as_executable_p=as_fn_executable_p - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -test -n "$DJDIR" || exec 7<&0 &1 - -# Name of the host. -# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -# -# Initializations. -# -ac_default_prefix=/usr/local -ac_clean_files= -ac_config_libobj_dir=. -LIB@&t@OBJS= -cross_compiling=no -subdirs= -MFLAGS= -MAKEFLAGS= - -# Identity of this package. -PACKAGE_NAME='fpart' -PACKAGE_TARNAME='fpart' -PACKAGE_VERSION='1.2.0' -PACKAGE_STRING='fpart 1.2.0' -PACKAGE_BUGREPORT='ganael.laplanche@martymac.org' -PACKAGE_URL='' - -ac_unique_file="src/fpart.h" -# 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_subst_vars='am__EXEEXT_FALSE -am__EXEEXT_TRUE -LTLIBOBJS -STATIC_FALSE -STATIC_TRUE -LINUX_FALSE -LINUX_TRUE -SOLARIS_FALSE -SOLARIS_TRUE -EXTERNAL_FTS_FALSE -EXTERNAL_FTS_TRUE -EMBEDDED_FTS_FALSE -EMBEDDED_FTS_TRUE -DEBUG_FALSE -DEBUG_TRUE -host_os -host_vendor -host_cpu -host -build_os -build_vendor -build_cpu -build -LIB@&t@OBJS -EGREP -GREP -CPP -am__fastdepCC_FALSE -am__fastdepCC_TRUE -CCDEPMODE -am__nodep -AMDEPBACKSLASH -AMDEP_FALSE -AMDEP_TRUE -am__include -DEPDIR -OBJEXT -EXEEXT -ac_ct_CC -CPPFLAGS -LDFLAGS -CFLAGS -CC -AM_BACKSLASH -AM_DEFAULT_VERBOSITY -AM_DEFAULT_V -AM_V -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 -am__quote' -ac_subst_files='' -ac_user_opts=' -enable_option_checking -enable_silent_rules -enable_dependency_tracking -enable_embfts -enable_static -enable_debug -enable_largefile -' - 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 - 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 fpart 1.2.0 to adapt to many kinds of systems. - -Usage: $0 [OPTION]... [VAR=VALUE]... - -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. - -Defaults for the options are specified in brackets. - -Configuration: - -h, --help display this help and exit - --help=short display options specific to this package - --help=recursive display the short help of all the included packages - -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking ...' messages - --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' - -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] - -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - @<:@@S|@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/fpart@:>@ - --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 fpart 1.2.0:";; - esac - cat <<\_ACEOF - -Optional Features: - --disable-option-checking ignore unrecognized --enable/--with options - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --enable-silent-rules less verbose build output (undo: "make V=1") - --disable-silent-rules verbose build output (undo: "make V=0") - --enable-dependency-tracking - do not reject slow dependency extractors - --disable-dependency-tracking - speeds up one-time build - --enable-embfts enable embedded fts - --enable-static build static binary - --enable-debug turn on debugging - --disable-largefile omit support for large files - -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 . -_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 -fpart configure 1.2.0 -generated by GNU Autoconf 2.69 - -Copyright (C) 2012 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -_ACEOF - exit -fi - -## ------------------------ ## -## Autoconf initialization. ## -## ------------------------ ## - -@%:@ ac_fn_c_try_compile LINENO -@%:@ -------------------------- -@%:@ Try to compile conftest.@S|@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_link LINENO -@%:@ ----------------------- -@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. -ac_fn_c_try_link () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest$ac_exeext - if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - test -x conftest$ac_exeext - }; then : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information - # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would - # interfere with the next link command; also delete a directory that is - # left behind by Apple's compiler. We do this before executing the actions. - rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} @%:@ ac_fn_c_try_link - -@%:@ ac_fn_c_try_cpp LINENO -@%:@ ---------------------- -@%:@ Try to preprocess conftest.@S|@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 ganael.laplanche@martymac.org ## -## -------------------------------------------- ##" - ) | 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.@S|@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_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 -cat >config.log <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by fpart $as_me 1.2.0, which was -generated by GNU Autoconf 2.69. Invocation command line was - - $ $0 $@ - -_ACEOF -exec 5>>config.log -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - $as_echo "PATH: $as_dir" - done -IFS=$as_save_IFS - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## - -_ACEOF - - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *\'*) - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; - 2) - as_fn_append ac_configure_args1 " '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - as_fn_append ac_configure_args " '$ac_arg'" - ;; - esac - done -done -{ ac_configure_args0=; unset ac_configure_args0;} -{ ac_configure_args1=; unset ac_configure_args1;} - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Use '\'' to represent an apostrophe within the trap. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - $as_echo "## ---------------- ## -## Cache variables. ## -## ---------------- ##" - echo - # The following way of writing the cache mishandles newlines in values, -( - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( - *) { eval $ac_var=; unset $ac_var;} ;; - esac ;; - esac - done - (set) 2>&1 | - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - sed -n \ - "s/'\''/'\''\\\\'\'''\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" - ;; #( - *) - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) - echo - - $as_echo "## ----------------- ## -## Output variables. ## -## ----------------- ##" - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - $as_echo "$ac_var='\''$ac_val'\''" - done | sort - echo - - if test -n "$ac_subst_files"; then - $as_echo "## ------------------- ## -## File substitutions. ## -## ------------------- ##" - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - $as_echo "$ac_var='\''$ac_val'\''" - done | sort - echo - fi - - if test -s confdefs.h; then - $as_echo "## ----------- ## -## confdefs.h. ## -## ----------- ##" - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - $as_echo "$as_me: caught signal $ac_signal" - $as_echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core core.conftest.* && - rm -f -r conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status -' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -f -r conftest* confdefs.h - -$as_echo "/* confdefs.h */" > confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -@%:@define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - -cat >>confdefs.h <<_ACEOF -@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - -cat >>confdefs.h <<_ACEOF -@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - -cat >>confdefs.h <<_ACEOF -@%:@define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - -cat >>confdefs.h <<_ACEOF -@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - -cat >>confdefs.h <<_ACEOF -@%:@define PACKAGE_URL "$PACKAGE_URL" -_ACEOF - - -# Let the site file select an alternate cache file if it wants to. -# Prefer an explicitly selected file to automatically selected ones. -ac_site_file1=NONE -ac_site_file2=NONE -if test -n "$CONFIG_SITE"; then - # We do not want a PATH search for config.site. - case $CONFIG_SITE in @%:@(( - -*) ac_site_file1=./$CONFIG_SITE;; - */*) ac_site_file1=$CONFIG_SITE;; - *) ac_site_file1=./$CONFIG_SITE;; - esac -elif test "x$prefix" != xNONE; then - ac_site_file1=$prefix/share/config.site - ac_site_file2=$prefix/etc/config.site -else - ac_site_file1=$ac_default_prefix/share/config.site - ac_site_file2=$ac_default_prefix/etc/config.site -fi -for ac_site_file in "$ac_site_file1" "$ac_site_file2" -do - test "x$ac_site_file" = xNONE && continue - if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 -$as_echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" \ - || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "failed to load site script $ac_site_file -See \`config.log' for more details" "$LINENO" 5; } - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special files - # actually), so we avoid doing that. DJGPP emulates it as a regular file. - if test /dev/null != "$cache_file" && test -f "$cache_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 -$as_echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . "$cache_file";; - *) . "./$cache_file";; - esac - fi -else - { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 -$as_echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - # differences in whitespace do not lead to failure. - ac_old_val_w=`echo x $ac_old_val` - ac_new_val_w=`echo x $ac_new_val` - if test "$ac_old_val_w" != "$ac_new_val_w"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 -$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - ac_cache_corrupted=: - else - { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} - eval $ac_var=\$ac_old_val - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 -$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 -$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) as_fn_append ac_configure_args " '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 -$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 -fi -## -------------------- ## -## Main body of script. ## -## -------------------- ## - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - -am__api_version='1.16' - -ac_aux_dir= -for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 -fi - -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. - - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -# Reject install programs that cannot install multiple files. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 -$as_echo_n "checking for a BSD-compatible install... " >&6; } -if test -z "$INSTALL"; then -if ${ac_cv_path_install+:} false; then : - $as_echo_n "(cached) " >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in @%:@(( - ./ | .// | /[cC]/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - rm -rf conftest.one conftest.two conftest.dir - echo one > conftest.one - echo two > conftest.two - mkdir conftest.dir - if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && - test -s conftest.one && test -s conftest.two && - test -s conftest.dir/conftest.one && - test -s conftest.dir/conftest.two - then - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - fi - done - done - ;; -esac - - done -IFS=$as_save_IFS - -rm -rf conftest.one conftest.two conftest.dir - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 -$as_echo "$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 -$as_echo_n "checking whether build environment is sane... " >&6; } -# Reject unsafe characters in $srcdir or the absolute working directory -# name. Accept space and tab only in the latter. -am_lf=' -' -case `pwd` in - *[\\\"\#\$\&\'\`$am_lf]*) - as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; -esac -case $srcdir in - *[\\\"\#\$\&\'\`$am_lf\ \ ]*) - as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; -esac - -# Do 'set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - am_has_slept=no - for am_try in 1 2; do - echo "timestamp, slept: $am_has_slept" > conftest.file - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t "$srcdir/configure" conftest.file` - fi - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - as_fn_error $? "ls -t appears to fail. Make sure there is not a broken - alias in your environment" "$LINENO" 5 - fi - if test "$2" = conftest.file || test $am_try -eq 2; then - break - fi - # Just in case. - sleep 1 - am_has_slept=yes - done - test "$2" = conftest.file - ) -then - # Ok. - : -else - as_fn_error $? "newly created file is older than distributed files! -Check your system clock" "$LINENO" 5 -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -# If we didn't sleep, we still need to ensure time stamps of config.status and -# generated files are strictly newer. -am_sleep_pid= -if grep 'slept: no' conftest.file >/dev/null 2>&1; then - ( sleep 1 ) & - am_sleep_pid=$! -fi - -rm -f conftest.file - -test "$program_prefix" != NONE && - program_transform_name="s&^&$program_prefix&;$program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s&\$&$program_suffix&;$program_transform_name" -# Double any \ or $. -# By default was `s,x,x', remove it if useless. -ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' -program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` - -# Expand $ac_aux_dir to an absolute path. -am_aux_dir=`cd "$ac_aux_dir" && pwd` - -if test x"${MISSING+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; - *) - MISSING="\${SHELL} $am_aux_dir/missing" ;; - esac -fi -# Use eval to expand $SHELL -if eval "$MISSING --is-lightweight"; then - am_missing_run="$MISSING " -else - am_missing_run= - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 -$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} -fi - -if test x"${install_sh+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; - *) - install_sh="\${SHELL} $am_aux_dir/install-sh" - esac -fi - -# Installed binaries are usually stripped using 'strip' when the user -# run "make install-strip". However 'strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the 'STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 -$as_echo "$STRIP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_STRIP="strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 -$as_echo "$ac_ct_STRIP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 -$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } -if test -z "$MKDIR_P"; then - if ${ac_cv_path_mkdir+:} false; then : - $as_echo_n "(cached) " >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do - for ac_exec_ext in '' $ac_executable_extensions; do - as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ - 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext - break 3;; - esac - done - done - done -IFS=$as_save_IFS - -fi - - test -d ./--version && rmdir ./--version - if test "${ac_cv_path_mkdir+set}" = set; then - MKDIR_P="$ac_cv_path_mkdir -p" - else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - MKDIR_P="$ac_install_sh -d" - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 -$as_echo "$MKDIR_P" >&6; } - -for ac_prog in gawk mawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AWK+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_AWK="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 -$as_echo "$AWK" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$AWK" && break -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } -set x ${MAKE-make} -ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: - @echo '@@@%%%=$(MAKE)=@@@%%%' -_ACEOF -# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in - *@@@%%%=?*=@@@%%%*) - eval ac_cv_prog_make_${ac_make}_set=yes;; - *) - eval ac_cv_prog_make_${ac_make}_set=no;; -esac -rm -f conftest.make -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - SET_MAKE= -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - SET_MAKE="MAKE=${MAKE-make}" -fi - -rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null - -@%:@ Check whether --enable-silent-rules was given. -if test "${enable_silent_rules+set}" = set; then : - enableval=$enable_silent_rules; -fi - -case $enable_silent_rules in @%:@ ((( - yes) AM_DEFAULT_VERBOSITY=0;; - no) AM_DEFAULT_VERBOSITY=1;; - *) AM_DEFAULT_VERBOSITY=1;; -esac -am_make=${MAKE-make} -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 -$as_echo_n "checking whether $am_make supports nested variables... " >&6; } -if ${am_cv_make_support_nested_variables+:} false; then : - $as_echo_n "(cached) " >&6 -else - if $as_echo 'TRUE=$(BAR$(V)) -BAR0=false -BAR1=true -V=1 -am__doit: - @$(TRUE) -.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then - am_cv_make_support_nested_variables=yes -else - am_cv_make_support_nested_variables=no -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 -$as_echo "$am_cv_make_support_nested_variables" >&6; } -if test $am_cv_make_support_nested_variables = yes; then - AM_V='$(V)' - AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' -else - AM_V=$AM_DEFAULT_VERBOSITY - AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY -fi -AM_BACKSLASH='\' - -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - am__isrc=' -I$(srcdir)' - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi - - -# Define the identity of the package. - PACKAGE='fpart' - VERSION='1.2.0' - - -cat >>confdefs.h <<_ACEOF -@%:@define PACKAGE "$PACKAGE" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -@%:@define VERSION "$VERSION" -_ACEOF - -# Some tools Automake needs. - -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} - - -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} - - -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} - - -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} - - -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} - -# For better backward compatibility. To be removed once Automake 1.9.x -# dies out for good. For more background, see: -# -# -mkdir_p='$(MKDIR_P)' - -# We need awk for the "check" target (and possibly the TAP driver). The -# system "awk" is bad on some platforms. -# Always define AMTAR for backward compatibility. Yes, it's still used -# in the wild :-( We should find a proper way to deprecate it ... -AMTAR='$${TAR-tar}' - - -# We'll loop over all known methods to create a tar archive until one works. -_am_tools='gnutar pax cpio none' - -am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' - - - - - - -# POSIX will say in a future version that running "rm -f" with no argument -# is OK; and we want to be able to make that assumption in our Makefile -# recipes. So use an aggressive probe to check that the usage we want is -# actually supported "in the wild" to an acceptable degree. -# See automake bug#10828. -# To make any issue more visible, cause the running configure to be aborted -# by default if the 'rm' program in use doesn't match our expectations; the -# user can still override this though. -if rm -f && rm -fr && rm -rf; then : OK; else - cat >&2 <<'END' -Oops! - -Your 'rm' program seems unable to run without file operands specified -on the command line, even when the '-f' option is present. This is contrary -to the behaviour of most rm programs out there, and not conforming with -the upcoming POSIX standard: - -Please tell bug-automake@gnu.org about your system, including the value -of your $PATH and any error possibly output before this message. This -can help us improve future automake versions. - -END - if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then - echo 'Configuration will proceed anyway, since you have set the' >&2 - echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 - echo >&2 - else - cat >&2 <<'END' -Aborting the configuration process, to ensure you take notice of the issue. - -You can download and install GNU coreutils to get an 'rm' implementation -that behaves properly: . - -If you want to complete the configuration process using your problematic -'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM -to "yes", and re-run configure. - -END - as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 - fi -fi - - -# 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 - for ac_prog in cc gcc - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cc gcc -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - - -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "no acceptable C compiler found in \$PATH -See \`config.log' for more details" "$LINENO" 5; } - -# Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 -set X $ac_compile -ac_compiler=$2 -for ac_option in --version -v -V -qversion; do - { { ac_try="$ac_compiler $ac_option >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_compiler $ac_option >&5") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - sed '10a\ -... rest of stderr output deleted ... - 10q' conftest.err >conftest.er1 - cat conftest.er1 >&5 - fi - rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } -done - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 -$as_echo_n "checking whether the C compiler works... " >&6; } -ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` - -# The possible output files: -ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" - -ac_rmfiles= -for ac_file in $ac_files -do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; - * ) ac_rmfiles="$ac_rmfiles $ac_file";; - esac -done -rm -f $ac_rmfiles - -if { { ac_try="$ac_link_default" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link_default") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' -# in a Makefile. We should not override ac_cv_exeext if it was cached, -# so that the user can short-circuit this test for compilers unknown to -# Autoconf. -for ac_file in $ac_files '' -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; - then :; else - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - fi - # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' - # argument, so we may need to know it at that point already. - # Even if this section looks crufty: it has the advantage of - # actually working. - break;; - * ) - break;; - esac -done -test "$ac_cv_exeext" = no && ac_cv_exeext= - -else - ac_file='' -fi -if test -z "$ac_file"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "C compiler cannot create executables -See \`config.log' for more details" "$LINENO" 5; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 -$as_echo_n "checking for C compiler default output file name... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 -$as_echo "$ac_file" >&6; } -ac_exeext=$ac_cv_exeext - -rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 -$as_echo_n "checking for suffix of executables... " >&6; } -if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in conftest.exe conftest conftest.*; do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - break;; - * ) break;; - esac -done -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details" "$LINENO" 5; } -fi -rm -f conftest conftest$ac_cv_exeext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 -$as_echo "$ac_cv_exeext" >&6; } - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -@%:@include -int -main () -{ -FILE *f = fopen ("conftest.out", "w"); - return ferror (f) || fclose (f) != 0; - - ; - return 0; -} -_ACEOF -ac_clean_files="$ac_clean_files conftest.out" -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 -$as_echo_n "checking whether we are cross compiling... " >&6; } -if test "$cross_compiling" != yes; then - { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - if { ac_try='./conftest$ac_cv_exeext' - { { case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details" "$LINENO" 5; } - fi - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 -$as_echo "$cross_compiling" >&6; } - -rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out -ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 -$as_echo_n "checking for suffix of object files... " >&6; } -if ${ac_cv_objext+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { { ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_compile") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : - for ac_file in conftest.o conftest.obj conftest.*; do - test -f "$ac_file" || continue; - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot compute suffix of object files: cannot compile -See \`config.log' for more details" "$LINENO" 5; } -fi -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 -$as_echo "$ac_cv_objext" >&6; } -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 -$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } -if ${ac_cv_c_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_compiler_gnu=yes -else - ac_compiler_gnu=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 -$as_echo "$ac_cv_c_compiler_gnu" >&6; } -if test $ac_compiler_gnu = yes; then - GCC=yes -else - GCC= -fi -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 -$as_echo_n "checking whether $CC accepts -g... " >&6; } -if ${ac_cv_prog_cc_g+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_g=yes -else - CFLAGS="" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -else - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_g=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 -$as_echo "$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } -if ${ac_cv_prog_cc_c89+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -struct stat; -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_c89=$ac_arg -fi -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; - xno) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c89" != xno; then : - -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 -$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } -if ${am_cv_prog_cc_c_o+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF - # Make sure it works both with $CC and with simple cc. - # Following AC_PROG_CC_C_O, we do the test twice because some - # compilers refuse to overwrite an existing .o file with -o, - # though they will create one. - am_cv_prog_cc_c_o=yes - for am_i in 1 2; do - if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 - ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } \ - && test -f conftest2.$ac_objext; then - : OK - else - am_cv_prog_cc_c_o=no - break - fi - done - rm -f core conftest* - unset am_i -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 -$as_echo "$am_cv_prog_cc_c_o" >&6; } -if test "$am_cv_prog_cc_c_o" != yes; then - # Losing compiler, so override with the script. - # FIXME: It is wrong to rewrite CC. - # But if we don't then we get into trouble of one sort or another. - # A longer-term fix would be to have automake use am__CC in this case, - # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" - CC="$am_aux_dir/compile $CC" -fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -DEPDIR="${am__leading_dot}deps" - -ac_config_commands="$ac_config_commands depfiles" - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 -$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } -cat > confinc.mk << 'END' -am__doit: - @echo this is the am__doit target >confinc.out -.PHONY: am__doit -END -am__include="#" -am__quote= -# BSD make does it like this. -echo '.include "confinc.mk" # ignored' > confmf.BSD -# Other make implementations (GNU, Solaris 10, AIX) do it like this. -echo 'include confinc.mk # ignored' > confmf.GNU -_am_result=no -for s in GNU BSD; do - { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 - (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - case $?:`cat confinc.out 2>/dev/null` in @%:@( - '0:this is the am__doit target') : - case $s in @%:@( - BSD) : - am__include='.include' am__quote='"' ;; @%:@( - *) : - am__include='include' am__quote='' ;; -esac ;; @%:@( - *) : - ;; -esac - if test "$am__include" != "#"; then - _am_result="yes ($s style)" - break - fi -done -rm -f confinc.* confmf.* -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 -$as_echo "${_am_result}" >&6; } - -@%:@ Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then : - enableval=$enable_dependency_tracking; -fi - -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' - am__nodep='_no' -fi - if test "x$enable_dependency_tracking" != xno; then - AMDEP_TRUE= - AMDEP_FALSE='#' -else - AMDEP_TRUE='#' - AMDEP_FALSE= -fi - - - -depcc="$CC" am_compiler_list= - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 -$as_echo_n "checking dependency style of $depcc... " >&6; } -if ${am_cv_CC_dependencies_compiler_type+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named 'D' -- because '-MD' means "put the output - # in D". - rm -rf conftest.dir - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CC_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - am__universal=false - case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=true ;; - esac - - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with - # Solaris 10 /bin/sh. - echo '/* dummy */' > sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - # We check with '-c' and '-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle '-M -o', and we need to detect this. Also, some Intel - # versions had trouble with output in subdirs. - am__obj=sub/conftest.${OBJEXT-o} - am__minus_obj="-o $am__obj" - case $depmode in - gcc) - # This depmode causes a compiler race in universal mode. - test "$am__universal" = false || continue - ;; - nosideeffect) - # After this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested. - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - msvc7 | msvc7msys | msvisualcpp | msvcmsys) - # This compiler won't grok '-c -o', but also, the minuso test has - # not run yet. These depmodes are late enough in the game, and - # so weak that their functioning should not be impacted. - am__obj=conftest.${OBJEXT-o} - am__minus_obj= - ;; - none) break ;; - esac - if depmode=$depmode \ - source=sub/conftest.c object=$am__obj \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep $am__obj sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CC_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CC_dependencies_compiler_type=none -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 -$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then - am__fastdepCC_TRUE= - am__fastdepCC_FALSE='#' -else - am__fastdepCC_TRUE='#' - am__fastdepCC_FALSE= -fi - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 -$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } -if ${ac_cv_prog_cc_c99+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_prog_cc_c99=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include -#include - -// Check varargs macros. These examples are taken from C99 6.10.3.5. -#define debug(...) fprintf (stderr, __VA_ARGS__) -#define showlist(...) puts (#__VA_ARGS__) -#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) -static void -test_varargs_macros (void) -{ - int x = 1234; - int y = 5678; - debug ("Flag"); - debug ("X = %d\n", x); - showlist (The first, second, and third items.); - report (x>y, "x is %d but y is %d", x, y); -} - -// Check long long types. -#define BIG64 18446744073709551615ull -#define BIG32 4294967295ul -#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) -#if !BIG_OK - your preprocessor is broken; -#endif -#if BIG_OK -#else - your preprocessor is broken; -#endif -static long long int bignum = -9223372036854775807LL; -static unsigned long long int ubignum = BIG64; - -struct incomplete_array -{ - int datasize; - double data[]; -}; - -struct named_init { - int number; - const wchar_t *name; - double average; -}; - -typedef const char *ccp; - -static inline int -test_restrict (ccp restrict text) -{ - // See if C++-style comments work. - // Iterate through items via the restricted pointer. - // Also check for declarations in for loops. - for (unsigned int i = 0; *(text+i) != '\0'; ++i) - continue; - return 0; -} - -// Check varargs and va_copy. -static void -test_varargs (const char *format, ...) -{ - va_list args; - va_start (args, format); - va_list args_copy; - va_copy (args_copy, args); - - const char *str; - int number; - float fnumber; - - while (*format) - { - switch (*format++) - { - case 's': // string - str = va_arg (args_copy, const char *); - break; - case 'd': // int - number = va_arg (args_copy, int); - break; - case 'f': // float - fnumber = va_arg (args_copy, double); - break; - default: - break; - } - } - va_end (args_copy); - va_end (args); -} - -int -main () -{ - - // Check bool. - _Bool success = false; - - // Check restrict. - if (test_restrict ("String literal") == 0) - success = true; - char *restrict newvar = "Another string"; - - // Check varargs. - test_varargs ("s, d' f .", "string", 65, 34.234); - test_varargs_macros (); - - // Check flexible array members. - struct incomplete_array *ia = - malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); - ia->datasize = 10; - for (int i = 0; i < ia->datasize; ++i) - ia->data[i] = i * 1.234; - - // Check named initializers. - struct named_init ni = { - .number = 34, - .name = L"Test wide string", - .average = 543.34343, - }; - - ni.number = 58; - - int dynamic_array[ni.number]; - dynamic_array[ni.number - 1] = 543; - - // work around unused variable warnings - return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' - || dynamic_array[ni.number - 1] != 543); - - ; - return 0; -} -_ACEOF -for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 -do - CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_c99=$ac_arg -fi -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c99" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c99" 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_c99" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 -$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c99" != xno; then : - -fi - - - - - -# Checks for log10() in -lm - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10 in -lm" >&5 -$as_echo_n "checking for log10 in -lm... " >&6; } -if ${ac_cv_lib_m_log10+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lm $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char log10 (); -int -main () -{ -return log10 (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_m_log10=yes -else - ac_cv_lib_m_log10=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10" >&5 -$as_echo "$ac_cv_lib_m_log10" >&6; } -if test "x$ac_cv_lib_m_log10" = xyes; then : - cat >>confdefs.h <<_ACEOF -@%:@define HAVE_LIBM 1 -_ACEOF - - LIBS="-lm $LIBS" - -fi - - -# Checks for header files. -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 -$as_echo_n "checking how to run the C preprocessor... " >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if ${ac_cv_prog_CPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -@%:@ifdef __STDC__ -@%:@ include -@%:@else -@%:@ include -@%:@endif - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - -else - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.i conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -@%:@include -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue -else - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.i conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 -$as_echo "$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -@%:@ifdef __STDC__ -@%:@ include -@%:@else -@%:@ include -@%:@endif - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - -else - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.i conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -@%:@include -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue -else - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.i conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -$as_echo_n "checking for grep that handles long lines and -e... " >&6; } -if ${ac_cv_path_GREP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$GREP"; then - ac_path_GREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_GREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_GREP=$GREP -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -$as_echo "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -$as_echo_n "checking for egrep... " >&6; } -if ${ac_cv_path_EGREP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_EGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_EGREP=$EGREP -fi - - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -$as_echo "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 -$as_echo_n "checking for ANSI C header files... " >&6; } -if ${ac_cv_header_stdc+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_header_stdc=yes -else - ac_cv_header_stdc=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then : - : -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - -else - ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 -$as_echo "$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h - -fi - -# On IRIX 5.3, sys/types and inttypes.h are conflicting. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default -" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - -for ac_header in fcntl.h paths.h stdlib.h string.h strings.h sys/mount.h sys/param.h sys/statfs.h sys/statvfs.h sys/vfs.h unistd.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - -# Checks for typedefs, structures, and compiler characteristics. -ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" -if test "x$ac_cv_type_pid_t" = xyes; then : - -else - -cat >>confdefs.h <<_ACEOF -@%:@define pid_t int -_ACEOF - -fi - -ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" -if test "x$ac_cv_type_size_t" = xyes; then : - -else - -cat >>confdefs.h <<_ACEOF -@%:@define size_t unsigned int -_ACEOF - -fi - - -# Checks for library functions. -for ac_header in vfork.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" -if test "x$ac_cv_header_vfork_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -@%:@define HAVE_VFORK_H 1 -_ACEOF - -fi - -done - -for ac_func in fork vfork -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -if test "x$ac_cv_func_fork" = xyes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 -$as_echo_n "checking for working fork... " >&6; } -if ${ac_cv_func_fork_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : - ac_cv_func_fork_works=cross -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ - - /* By Ruediger Kuhlmann. */ - return fork () < 0; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - ac_cv_func_fork_works=yes -else - ac_cv_func_fork_works=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 -$as_echo "$ac_cv_func_fork_works" >&6; } - -else - ac_cv_func_fork_works=$ac_cv_func_fork -fi -if test "x$ac_cv_func_fork_works" = xcross; then - case $host in - *-*-amigaos* | *-*-msdosdjgpp*) - # Override, as these systems have only a dummy fork() stub - ac_cv_func_fork_works=no - ;; - *) - ac_cv_func_fork_works=yes - ;; - esac - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 -$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} -fi -ac_cv_func_vfork_works=$ac_cv_func_vfork -if test "x$ac_cv_func_vfork" = xyes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 -$as_echo_n "checking for working vfork... " >&6; } -if ${ac_cv_func_vfork_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : - ac_cv_func_vfork_works=cross -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -/* Thanks to Paul Eggert for this test. */ -$ac_includes_default -#include -#ifdef HAVE_VFORK_H -# include -#endif -/* On some sparc systems, changes by the child to local and incoming - argument registers are propagated back to the parent. The compiler - is told about this with #include , but some compilers - (e.g. gcc -O) don't grok . Test for this by using a - static variable whose address is put into a register that is - clobbered by the vfork. */ -static void -#ifdef __cplusplus -sparc_address_test (int arg) -# else -sparc_address_test (arg) int arg; -#endif -{ - static pid_t child; - if (!child) { - child = vfork (); - if (child < 0) { - perror ("vfork"); - _exit(2); - } - if (!child) { - arg = getpid(); - write(-1, "", 0); - _exit (arg); - } - } -} - -int -main () -{ - pid_t parent = getpid (); - pid_t child; - - sparc_address_test (0); - - child = vfork (); - - if (child == 0) { - /* Here is another test for sparc vfork register problems. This - test uses lots of local variables, at least as many local - variables as main has allocated so far including compiler - temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris - 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should - reuse the register of parent for one of the local variables, - since it will think that parent can't possibly be used any more - in this routine. Assigning to the local variable will thus - munge parent in the parent process. */ - pid_t - p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), - p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); - /* Convince the compiler that p..p7 are live; otherwise, it might - use the same hardware register for all 8 local variables. */ - if (p != p1 || p != p2 || p != p3 || p != p4 - || p != p5 || p != p6 || p != p7) - _exit(1); - - /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent - from child file descriptors. If the child closes a descriptor - before it execs or exits, this munges the parent's descriptor - as well. Test for this by closing stdout in the child. */ - _exit(close(fileno(stdout)) != 0); - } else { - int status; - struct stat st; - - while (wait(&status) != child) - ; - return ( - /* Was there some problem with vforking? */ - child < 0 - - /* Did the child fail? (This shouldn't happen.) */ - || status - - /* Did the vfork/compiler bug occur? */ - || parent != getpid() - - /* Did the file descriptor bug occur? */ - || fstat(fileno(stdout), &st) != 0 - ); - } -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - ac_cv_func_vfork_works=yes -else - ac_cv_func_vfork_works=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 -$as_echo "$ac_cv_func_vfork_works" >&6; } - -fi; -if test "x$ac_cv_func_fork_works" = xcross; then - ac_cv_func_vfork_works=$ac_cv_func_vfork - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 -$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} -fi - -if test "x$ac_cv_func_vfork_works" = xyes; then - -$as_echo "@%:@define HAVE_WORKING_VFORK 1" >>confdefs.h - -else - -$as_echo "@%:@define vfork fork" >>confdefs.h - -fi -if test "x$ac_cv_func_fork_works" = xyes; then - -$as_echo "@%:@define HAVE_WORKING_FORK 1" >>confdefs.h - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 -$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } -if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : - $as_echo_n "(cached) " >&6 -else - rm -f conftest.sym conftest.file -echo >conftest.file -if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then - if test "$cross_compiling" = yes; then : - ac_cv_func_lstat_dereferences_slashed_symlink=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -struct stat sbuf; - /* Linux will dereference the symlink and fail, as required by POSIX. - That is better in the sense that it means we will not - have to compile and use the lstat wrapper. */ - return lstat ("conftest.sym/", &sbuf) == 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - ac_cv_func_lstat_dereferences_slashed_symlink=yes -else - ac_cv_func_lstat_dereferences_slashed_symlink=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -else - # If the `ln -s' command failed, then we probably don't even - # have an lstat function. - ac_cv_func_lstat_dereferences_slashed_symlink=no -fi -rm -f conftest.sym conftest.file - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 -$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } - -test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && - -cat >>confdefs.h <<_ACEOF -@%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 -_ACEOF - - -if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then - case " $LIB@&t@OBJS " in - *" lstat.$ac_objext "* ) ;; - *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext" - ;; -esac - -fi - -for ac_header in stdlib.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" -if test "x$ac_cv_header_stdlib_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -@%:@define HAVE_STDLIB_H 1 -_ACEOF - -fi - -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 -$as_echo_n "checking for GNU libc compatible malloc... " >&6; } -if ${ac_cv_func_malloc_0_nonnull+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : - ac_cv_func_malloc_0_nonnull=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#if defined STDC_HEADERS || defined HAVE_STDLIB_H -# include -#else -char *malloc (); -#endif - -int -main () -{ -return ! malloc (0); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - ac_cv_func_malloc_0_nonnull=yes -else - ac_cv_func_malloc_0_nonnull=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 -$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } -if test $ac_cv_func_malloc_0_nonnull = yes; then : - -$as_echo "@%:@define HAVE_MALLOC 1" >>confdefs.h - -else - $as_echo "@%:@define HAVE_MALLOC 0" >>confdefs.h - - case " $LIB@&t@OBJS " in - *" malloc.$ac_objext "* ) ;; - *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext" - ;; -esac - - -$as_echo "@%:@define malloc rpl_malloc" >>confdefs.h - -fi - - -for ac_header in stdlib.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" -if test "x$ac_cv_header_stdlib_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -@%:@define HAVE_STDLIB_H 1 -_ACEOF - -fi - -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 -$as_echo_n "checking for GNU libc compatible realloc... " >&6; } -if ${ac_cv_func_realloc_0_nonnull+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : - ac_cv_func_realloc_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 *realloc (); -#endif - -int -main () -{ -return ! realloc (0, 0); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - ac_cv_func_realloc_0_nonnull=yes -else - ac_cv_func_realloc_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_realloc_0_nonnull" >&5 -$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } -if test $ac_cv_func_realloc_0_nonnull = yes; then : - -$as_echo "@%:@define HAVE_REALLOC 1" >>confdefs.h - -else - $as_echo "@%:@define HAVE_REALLOC 0" >>confdefs.h - - case " $LIB@&t@OBJS " in - *" realloc.$ac_objext "* ) ;; - *) LIB@&t@OBJS="$LIB@&t@OBJS realloc.$ac_objext" - ;; -esac - - -$as_echo "@%:@define realloc rpl_realloc" >>confdefs.h - -fi - - -for ac_func in bzero dirfd fchdir getcwd memmove memset strchr strerror strrchr strtol -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 - - -# OS detection -# 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 - - -case "${host_os}" in - solaris*) host_os_solaris=true ;; - linux*) - # Alpine Linux uses musl-libc which does not include fts(3) - case "${host_os}" in - linux-musl*) extfts=true ;; - esac - host_os_linux=true ;; -esac - -# Default value for embedded fts support -dflt_embfts=false -# Enabled on Solaris -if test x$host_os_solaris = xtrue -then - dflt_embfts=true -fi - -# Embedded fts option -@%:@ Check whether --enable-embfts was given. -if test "${enable_embfts+set}" = set; then : - enableval=$enable_embfts; case "${enableval}" in - yes) embfts=true ;; - no) embfts=false ;; - *) as_fn_error $? "bad value ${enableval} for --enable-embfts" "$LINENO" 5 ;; -esac -else - embfts=${dflt_embfts} -fi - - -# Static build option -@%:@ Check whether --enable-static was given. -if test "${enable_static+set}" = set; then : - enableval=$enable_static; case "${enableval}" in - yes) static=true ;; - no) static=false ;; - *) as_fn_error $? "bad value ${enableval} for --enable-static" "$LINENO" 5 ;; -esac -else - static=false -fi - - -# Debug option -@%:@ Check whether --enable-debug was given. -if test "${enable_debug+set}" = set; then : - enableval=$enable_debug; case "${enableval}" in - yes) debug=true ;; - no) debug=false ;; - *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;; -esac -else - debug=false -fi - - -# Disable large file support on Linux when not using embedded fts -# as Linux' fts.h cannot be used with _FILE_OFFSET_BITS==64 -if test x$embfts = xfalse -then - if test x$host_os_linux = xtrue - then - enable_largefile=no - fi -fi - -# Large file support -@%:@ 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 - - -# Automake output - if test x$debug = xtrue; then - DEBUG_TRUE= - DEBUG_FALSE='#' -else - DEBUG_TRUE='#' - DEBUG_FALSE= -fi - - if test x$embfts = xtrue; then - EMBEDDED_FTS_TRUE= - EMBEDDED_FTS_FALSE='#' -else - EMBEDDED_FTS_TRUE='#' - EMBEDDED_FTS_FALSE= -fi - - if test x$extfts = xtrue; then - EXTERNAL_FTS_TRUE= - EXTERNAL_FTS_FALSE='#' -else - EXTERNAL_FTS_TRUE='#' - EXTERNAL_FTS_FALSE= -fi - - if test x$host_os_solaris = xtrue; then - SOLARIS_TRUE= - SOLARIS_FALSE='#' -else - SOLARIS_TRUE='#' - SOLARIS_FALSE= -fi - - if test x$host_os_linux = xtrue; then - LINUX_TRUE= - LINUX_FALSE='#' -else - LINUX_TRUE='#' - LINUX_FALSE= -fi - - if test x$static = xtrue; then - STATIC_TRUE= - STATIC_FALSE='#' -else - STATIC_TRUE='#' - STATIC_FALSE= -fi - - -#AC_CONFIG_HEADERS([src/config.h]) -ac_config_files="$ac_config_files Makefile src/Makefile tools/Makefile man/Makefile" - -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, we kill variables containing newlines. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -( - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( - *) { eval $ac_var=; unset $ac_var;} ;; - esac ;; - esac - done - - (set) 2>&1 | - case $as_nl`(ac_space=' '; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes: double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \. - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; #( - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) | - sed ' - /^ac_cv_env_/b end - t clear - :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - :end' >>confcache -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else - if test -w "$cache_file"; then - if test "x$cache_file" != "x/dev/null"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 -$as_echo "$as_me: updating cache $cache_file" >&6;} - if test ! -f "$cache_file" || test -h "$cache_file"; then - cat confcache >"$cache_file" - else - case $cache_file in #( - */* | ?:*) - mv -f confcache "$cache_file"$$ && - mv -f "$cache_file"$$ "$cache_file" ;; #( - *) - mv -f confcache "$cache_file" ;; - esac - fi - fi - else - { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -# -# If the first sed substitution is executed (which looks for macros that -# take arguments), then branch to the quote section. Otherwise, -# look for a macro that doesn't take arguments. -ac_script=' -:mline -/\\$/{ - N - s,\\\n,, - b mline -} -t clear -:clear -s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g -t quote -s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g -t quote -b any -:quote -s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g -s/\[/\\&/g -s/\]/\\&/g -s/\$/$$/g -H -:any -${ - g - s/^\n// - s/\n/ /g - p -} -' -DEFS=`sed -n "$ac_script" confdefs.h` - - -ac_libobjs= -ac_ltlibobjs= -U= -for ac_i in : $LIB@&t@OBJS; 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 -LIB@&t@OBJS=$ac_libobjs - -LTLIBOBJS=$ac_ltlibobjs - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 -$as_echo_n "checking that generated files are newer than configure... " >&6; } - if test -n "$am_sleep_pid"; then - # Hide warnings about reused PIDs. - wait $am_sleep_pid 2>/dev/null - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 -$as_echo "done" >&6; } - if test -n "$EXEEXT"; then - am__EXEEXT_TRUE= - am__EXEEXT_FALSE='#' -else - am__EXEEXT_TRUE='#' - am__EXEEXT_FALSE= -fi - -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then - as_fn_error $? "conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - as_fn_error $? "conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then - as_fn_error $? "conditional \"DEBUG\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${EMBEDDED_FTS_TRUE}" && test -z "${EMBEDDED_FTS_FALSE}"; then - as_fn_error $? "conditional \"EMBEDDED_FTS\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${EXTERNAL_FTS_TRUE}" && test -z "${EXTERNAL_FTS_FALSE}"; then - as_fn_error $? "conditional \"EXTERNAL_FTS\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then - as_fn_error $? "conditional \"SOLARIS\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then - as_fn_error $? "conditional \"LINUX\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${STATIC_TRUE}" && test -z "${STATIC_FALSE}"; then - as_fn_error $? "conditional \"STATIC\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi - -: "${CONFIG_STATUS=./config.status}" -ac_write_fail=0 -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 -$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} -as_write_fail=0 -cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -ac_cs_recheck=false -ac_cs_silent=false - -SHELL=\${CONFIG_SHELL-$SHELL} -export SHELL -_ASEOF -cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 -## -------------------- ## -## M4sh Initialization. ## -## -------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in @%:@( - *posix*) : - set -o posix ;; @%:@( - *) : - ;; -esac -fi - - -as_nl=' -' -export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in @%:@( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || - PATH_SEPARATOR=';' - } -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -as_myself= -case $0 in @%:@(( - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break - done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - exit 1 -fi - -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - - -@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] -@%:@ ---------------------------------------- -@%:@ Output "`basename @S|@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 @S|@? 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 @S|@as_val. Take advantage of shells that can avoid forks. The arguments -@%:@ must be portable across @S|@(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : - eval 'as_fn_arith () - { - as_val=$(( $* )) - }' -else - as_fn_arith () - { - as_val=`expr "$@" || test $? -eq 1` - } -fi # as_fn_arith - - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in @%:@((((( --n*) - case `echo 'xy\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - xy) ECHO_C='\c';; - *) echo `echo ksh88 bug on AIX 6.1` > /dev/null - ECHO_T=' ';; - esac;; -*) - ECHO_N='-n';; -esac - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir 2>/dev/null -fi -if (echo >conf$$.file) 2>/dev/null; then - if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -pR' - elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln - else - as_ln_s='cp -pR' - fi -else - as_ln_s='cp -pR' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - - -@%:@ as_fn_mkdir_p -@%:@ ------------- -@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. -as_fn_mkdir_p () -{ - - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || eval $as_mkdir_p || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" - - -} @%:@ as_fn_mkdir_p -if mkdir -p . 2>/dev/null; then - as_mkdir_p='mkdir -p "$as_dir"' -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - - -@%:@ as_fn_executable_p FILE -@%:@ ----------------------- -@%:@ Test if FILE is an executable regular file. -as_fn_executable_p () -{ - test -f "$1" && test -x "$1" -} @%:@ as_fn_executable_p -as_test_x='test -x' -as_executable_p=as_fn_executable_p - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -exec 6>&1 -## ----------------------------------- ## -## Main body of $CONFIG_STATUS script. ## -## ----------------------------------- ## -_ASEOF -test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -# Save the log message, to keep $0 and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. -ac_log=" -This file was extended by fpart $as_me 1.2.0, which was -generated by GNU Autoconf 2.69. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ - -on `(hostname || uname -n) 2>/dev/null | sed 1q` -" - -_ACEOF - -case $ac_config_files in *" -"*) set x $ac_config_files; shift; ac_config_files=$*;; -esac - - - -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -# Files that config.status was made for. -config_files="$ac_config_files" -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 - -Configuration files: -$config_files - -Configuration commands: -$config_commands - -Report bugs to ." - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" -ac_cs_version="\\ -fpart config.status 1.2.0 -configured by $0, generated by GNU Autoconf 2.69, - with options \\"\$ac_cs_config\\" - -Copyright (C) 2012 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." - -ac_pwd='$ac_pwd' -srcdir='$srcdir' -INSTALL='$INSTALL' -MKDIR_P='$MKDIR_P' -AWK='$AWK' -test -n "\$AWK" || AWK=awk -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -# The default lists apply if the user does not specify any file. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=?*) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` - ac_shift=: - ;; - --*=) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg= - ac_shift=: - ;; - *) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - esac - - case $ac_option in - # Handling of the options. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - $as_echo "$ac_cs_version"; exit ;; - --config | --confi | --conf | --con | --co | --c ) - $as_echo "$ac_cs_config"; exit ;; - --debug | --debu | --deb | --de | --d | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; - '') as_fn_error $? "missing file argument" ;; - esac - as_fn_append CONFIG_FILES " '$ac_optarg'" - ac_need_defaults=false;; - --he | --h | --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" MAKE="${MAKE-make}" - -_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 - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; - "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; - "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; - - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; - esac -done - - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_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" - - -eval set X " :F $CONFIG_FILES :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 - ;; - - - :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 -$as_echo "$as_me: executing $ac_file commands" >&6;} - ;; - esac - - - case $ac_file$ac_mode in - "depfiles":C) test x"$AMDEP_TRUE" != x"" || { - # Older Autoconf quotes --file arguments for eval, but not when files - # are listed without --file. Let's play safe and only enable the eval - # if we detect the quoting. - # TODO: see whether this extra hack can be removed once we start - # requiring Autoconf 2.70 or later. - case $CONFIG_FILES in @%:@( - *\'*) : - eval set x "$CONFIG_FILES" ;; @%:@( - *) : - set x $CONFIG_FILES ;; @%:@( - *) : - ;; -esac - shift - # Used to flag and report bootstrapping failures. - am_rc=0 - for am_mf - do - # Strip MF so we end up with the name of the file. - am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile which includes - # dependency-tracking related rules and includes. - # Grep'ing the whole file directly is not great: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ - || continue - am_dirpart=`$as_dirname -- "$am_mf" || -$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$am_mf" : 'X\(//\)[^/]' \| \ - X"$am_mf" : 'X\(//\)$' \| \ - X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$am_mf" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - am_filepart=`$as_basename -- "$am_mf" || -$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ - X"$am_mf" : 'X\(//\)$' \| \ - X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$am_mf" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { echo "$as_me:$LINENO: cd "$am_dirpart" \ - && sed -e '/# am--include-marker/d' "$am_filepart" \ - | $MAKE -f - am--depfiles" >&5 - (cd "$am_dirpart" \ - && sed -e '/# am--include-marker/d' "$am_filepart" \ - | $MAKE -f - am--depfiles) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } || am_rc=$? - done - if test $am_rc -ne 0; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "Something went wrong bootstrapping makefile fragments - for automatic dependency tracking. Try re-running configure with the - '--disable-dependency-tracking' option to at least be able to build - the package (albeit without support for automatic dependency tracking). -See \`config.log' for more details" "$LINENO" 5; } - fi - { am_dirpart=; unset am_dirpart;} - { am_filepart=; unset am_filepart;} - { am_mf=; unset am_mf;} - { am_rc=; unset am_rc;} - rm -f conftest-deps.mk -} - ;; - - 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 - diff -Nru fpart-1.2.0/autom4te.cache/requests fpart-1.4.0/autom4te.cache/requests --- fpart-1.2.0/autom4te.cache/requests 2020-01-10 21:36:10.000000000 +0000 +++ fpart-1.4.0/autom4te.cache/requests 1970-01-01 00:00:00.000000000 +0000 @@ -1,154 +0,0 @@ -# This file was generated. -# It contains the lists of macros which have been traced. -# It can be safely removed. - -@request = ( - bless( [ - '0', - 1, - [ - '/usr/local/share/autoconf-2.69' - ], - [ - '/usr/local/share/autoconf-2.69/autoconf/autoconf.m4f', - '-', - '/usr/local/share/aclocal-1.16/internal/ac-config-macro-dirs.m4', - '/usr/local/share/aclocal-1.16/amversion.m4', - '/usr/local/share/aclocal-1.16/auxdir.m4', - '/usr/local/share/aclocal-1.16/cond.m4', - '/usr/local/share/aclocal-1.16/depend.m4', - '/usr/local/share/aclocal-1.16/depout.m4', - '/usr/local/share/aclocal-1.16/init.m4', - '/usr/local/share/aclocal-1.16/install-sh.m4', - '/usr/local/share/aclocal-1.16/lead-dot.m4', - '/usr/local/share/aclocal-1.16/make.m4', - '/usr/local/share/aclocal-1.16/missing.m4', - '/usr/local/share/aclocal-1.16/options.m4', - '/usr/local/share/aclocal-1.16/prog-cc-c-o.m4', - '/usr/local/share/aclocal-1.16/runlog.m4', - '/usr/local/share/aclocal-1.16/sanity.m4', - '/usr/local/share/aclocal-1.16/silent.m4', - '/usr/local/share/aclocal-1.16/strip.m4', - '/usr/local/share/aclocal-1.16/substnot.m4', - '/usr/local/share/aclocal-1.16/tar.m4', - 'configure.ac' - ], - { - '_AM_SET_OPTIONS' => 1, - 'm4_pattern_forbid' => 1, - 'm4_pattern_allow' => 1, - 'AM_AUTOMAKE_VERSION' => 1, - 'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1, - '_AM_DEPENDENCIES' => 1, - 'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, - 'AC_CONFIG_MACRO_DIR_TRACE' => 1, - '_AM_SET_OPTION' => 1, - '_AM_MANGLE_OPTION' => 1, - 'AM_PROG_INSTALL_STRIP' => 1, - 'AC_CONFIG_MACRO_DIR' => 1, - 'AM_SET_LEADING_DOT' => 1, - 'AM_RUN_LOG' => 1, - '_AC_AM_CONFIG_HEADER_HOOK' => 1, - 'AC_DEFUN' => 1, - 'AM_SUBST_NOTMAKE' => 1, - 'AM_PROG_INSTALL_SH' => 1, - '_AM_SUBST_NOTMAKE' => 1, - '_AM_IF_OPTION' => 1, - 'AM_DEP_TRACK' => 1, - 'include' => 1, - '_AM_PROG_CC_C_O' => 1, - 'AM_INIT_AUTOMAKE' => 1, - 'AM_SANITY_CHECK' => 1, - 'AC_DEFUN_ONCE' => 1, - 'AM_AUX_DIR_EXPAND' => 1, - '_AM_AUTOCONF_VERSION' => 1, - 'AM_SET_DEPDIR' => 1, - 'AM_MISSING_PROG' => 1, - 'AM_PROG_CC_C_O' => 1, - '_AM_PROG_TAR' => 1, - 'm4_include' => 1, - 'AM_CONDITIONAL' => 1, - '_AM_CONFIG_MACRO_DIRS' => 1, - 'AM_MISSING_HAS_RUN' => 1, - '_m4_warn' => 1, - 'AM_MAKE_INCLUDE' => 1, - 'AM_SILENT_RULES' => 1, - '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, - 'AU_DEFUN' => 1 - } - ], 'Autom4te::Request' ), - bless( [ - '1', - 1, - [ - '/usr/local/share/autoconf-2.69' - ], - [ - '/usr/local/share/autoconf-2.69/autoconf/autoconf.m4f', - 'aclocal.m4', - 'configure.ac' - ], - { - 'AM_EXTRA_RECURSIVE_TARGETS' => 1, - 'LT_INIT' => 1, - 'AM_XGETTEXT_OPTION' => 1, - 'AM_MAKEFILE_INCLUDE' => 1, - 'm4_pattern_forbid' => 1, - 'AM_AUTOMAKE_VERSION' => 1, - 'AC_FC_FREEFORM' => 1, - 'AC_FC_PP_SRCEXT' => 1, - '_AM_SUBST_NOTMAKE' => 1, - 'LT_CONFIG_LTDL_DIR' => 1, - 'AC_PROG_LIBTOOL' => 1, - 'AM_PROG_MKDIR_P' => 1, - 'AC_LIBSOURCE' => 1, - 'AC_CANONICAL_SYSTEM' => 1, - 'AM_PROG_AR' => 1, - 'AM_PROG_MOC' => 1, - 'AM_PROG_FC_C_O' => 1, - 'AM_NLS' => 1, - 'AC_CONFIG_LINKS' => 1, - 'include' => 1, - '_AM_COND_IF' => 1, - 'AM_GNU_GETTEXT' => 1, - 'AC_CONFIG_HEADERS' => 1, - 'AC_CONFIG_LIBOBJ_DIR' => 1, - 'AM_PROG_CXX_C_O' => 1, - 'AC_DEFINE_TRACE_LITERAL' => 1, - 'AM_SILENT_RULES' => 1, - '_AM_COND_ELSE' => 1, - 'AM_CONDITIONAL' => 1, - 'AM_PATH_GUILE' => 1, - 'm4_include' => 1, - 'AC_CONFIG_FILES' => 1, - '_LT_AC_TAGCONFIG' => 1, - 'AC_FC_PP_DEFINE' => 1, - '_AM_MAKEFILE_INCLUDE' => 1, - 'AC_FC_SRCEXT' => 1, - 'm4_pattern_allow' => 1, - 'LT_SUPPORTED_TAG' => 1, - 'AM_ENABLE_MULTILIB' => 1, - 'AC_CONFIG_AUX_DIR' => 1, - 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, - 'AC_CANONICAL_TARGET' => 1, - 'AC_SUBST' => 1, - 'AH_OUTPUT' => 1, - 'AM_POT_TOOLS' => 1, - 'AM_PROG_CC_C_O' => 1, - 'AC_CANONICAL_BUILD' => 1, - 'AM_MAINTAINER_MODE' => 1, - 'sinclude' => 1, - 'AM_PROG_F77_C_O' => 1, - '_AM_COND_ENDIF' => 1, - 'AC_CONFIG_SUBDIRS' => 1, - 'AM_INIT_AUTOMAKE' => 1, - 'AC_SUBST_TRACE' => 1, - 'AC_INIT' => 1, - 'AC_REQUIRE_AUX_FILE' => 1, - 'AC_CANONICAL_HOST' => 1, - '_m4_warn' => 1, - 'm4_sinclude' => 1 - } - ], 'Autom4te::Request' ) - ); - diff -Nru fpart-1.2.0/autom4te.cache/traces.0 fpart-1.4.0/autom4te.cache/traces.0 --- fpart-1.2.0/autom4te.cache/traces.0 2020-01-10 21:36:09.000000000 +0000 +++ fpart-1.4.0/autom4te.cache/traces.0 1970-01-01 00:00:00.000000000 +0000 @@ -1,985 +0,0 @@ -m4trace:/usr/local/share/aclocal-1.16/amversion.m4:14: -1- AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.16' -dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to -dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.16.1], [], - [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl -]) -m4trace:/usr/local/share/aclocal-1.16/amversion.m4:33: -1- AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.16.1])dnl -m4_ifndef([AC_AUTOCONF_VERSION], - [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) -m4trace:/usr/local/share/aclocal-1.16/auxdir.m4:47: -1- AC_DEFUN([AM_AUX_DIR_EXPAND], [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -# Expand $ac_aux_dir to an absolute path. -am_aux_dir=`cd "$ac_aux_dir" && pwd` -]) -m4trace:/usr/local/share/aclocal-1.16/cond.m4:12: -1- AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl - m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl -AC_SUBST([$1_TRUE])dnl -AC_SUBST([$1_FALSE])dnl -_AM_SUBST_NOTMAKE([$1_TRUE])dnl -_AM_SUBST_NOTMAKE([$1_FALSE])dnl -m4_define([_AM_COND_VALUE_$1], [$2])dnl -if $2; then - $1_TRUE= - $1_FALSE='#' -else - $1_TRUE='#' - $1_FALSE= -fi -AC_CONFIG_COMMANDS_PRE( -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then - AC_MSG_ERROR([[conditional "$1" was never defined. -Usually this means the macro was only invoked conditionally.]]) -fi])]) -m4trace:/usr/local/share/aclocal-1.16/depend.m4:26: -1- AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl -AC_REQUIRE([AM_MAKE_INCLUDE])dnl -AC_REQUIRE([AM_DEP_TRACK])dnl - -m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], - [$1], [CXX], [depcc="$CXX" am_compiler_list=], - [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], - [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], - [$1], [UPC], [depcc="$UPC" am_compiler_list=], - [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], - [depcc="$$1" am_compiler_list=]) - -AC_CACHE_CHECK([dependency style of $depcc], - [am_cv_$1_dependencies_compiler_type], -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named 'D' -- because '-MD' means "put the output - # in D". - rm -rf conftest.dir - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_$1_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` - fi - am__universal=false - m4_case([$1], [CC], - [case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=true ;; - esac], - [CXX], - [case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=true ;; - esac]) - - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with - # Solaris 10 /bin/sh. - echo '/* dummy */' > sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - # We check with '-c' and '-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle '-M -o', and we need to detect this. Also, some Intel - # versions had trouble with output in subdirs. - am__obj=sub/conftest.${OBJEXT-o} - am__minus_obj="-o $am__obj" - case $depmode in - gcc) - # This depmode causes a compiler race in universal mode. - test "$am__universal" = false || continue - ;; - nosideeffect) - # After this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested. - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - msvc7 | msvc7msys | msvisualcpp | msvcmsys) - # This compiler won't grok '-c -o', but also, the minuso test has - # not run yet. These depmodes are late enough in the game, and - # so weak that their functioning should not be impacted. - am__obj=conftest.${OBJEXT-o} - am__minus_obj= - ;; - none) break ;; - esac - if depmode=$depmode \ - source=sub/conftest.c object=$am__obj \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep $am__obj sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_$1_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_$1_dependencies_compiler_type=none -fi -]) -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) -AM_CONDITIONAL([am__fastdep$1], [ - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) -]) -m4trace:/usr/local/share/aclocal-1.16/depend.m4:163: -1- AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl -]) -m4trace:/usr/local/share/aclocal-1.16/depend.m4:171: -1- AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE([dependency-tracking], [dnl -AS_HELP_STRING( - [--enable-dependency-tracking], - [do not reject slow dependency extractors]) -AS_HELP_STRING( - [--disable-dependency-tracking], - [speeds up one-time build])]) -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' - am__nodep='_no' -fi -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -AC_SUBST([AMDEPBACKSLASH])dnl -_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl -AC_SUBST([am__nodep])dnl -_AM_SUBST_NOTMAKE([am__nodep])dnl -]) -m4trace:/usr/local/share/aclocal-1.16/depout.m4:11: -1- AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ - # Older Autoconf quotes --file arguments for eval, but not when files - # are listed without --file. Let's play safe and only enable the eval - # if we detect the quoting. - # TODO: see whether this extra hack can be removed once we start - # requiring Autoconf 2.70 or later. - AS_CASE([$CONFIG_FILES], - [*\'*], [eval set x "$CONFIG_FILES"], - [*], [set x $CONFIG_FILES]) - shift - # Used to flag and report bootstrapping failures. - am_rc=0 - for am_mf - do - # Strip MF so we end up with the name of the file. - am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile which includes - # dependency-tracking related rules and includes. - # Grep'ing the whole file directly is not great: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ - || continue - am_dirpart=`AS_DIRNAME(["$am_mf"])` - am_filepart=`AS_BASENAME(["$am_mf"])` - AM_RUN_LOG([cd "$am_dirpart" \ - && sed -e '/# am--include-marker/d' "$am_filepart" \ - | $MAKE -f - am--depfiles]) || am_rc=$? - done - if test $am_rc -ne 0; then - AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments - for automatic dependency tracking. Try re-running configure with the - '--disable-dependency-tracking' option to at least be able to build - the package (albeit without support for automatic dependency tracking).]) - fi - AS_UNSET([am_dirpart]) - AS_UNSET([am_filepart]) - AS_UNSET([am_mf]) - AS_UNSET([am_rc]) - rm -f conftest-deps.mk -} -]) -m4trace:/usr/local/share/aclocal-1.16/depout.m4:62: -1- AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], - [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])]) -m4trace:/usr/local/share/aclocal-1.16/init.m4:29: -1- AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl -dnl Autoconf wants to disallow AM_ names. We explicitly allow -dnl the ones we care about. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -AC_REQUIRE([AC_PROG_INSTALL])dnl -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi -AC_SUBST([CYGPATH_W]) - -# Define the identity of the package. -dnl Distinguish between old-style and new-style calls. -m4_ifval([$2], -[AC_DIAGNOSE([obsolete], - [$0: two- and three-arguments forms are deprecated.]) -m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl - AC_SUBST([PACKAGE], [$1])dnl - AC_SUBST([VERSION], [$2])], -[_AM_SET_OPTIONS([$1])dnl -dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. -m4_if( - m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), - [ok:ok],, - [m4_fatal([AC_INIT should be called with package and version arguments])])dnl - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl - -_AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) - AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl - -# Some tools Automake needs. -AC_REQUIRE([AM_SANITY_CHECK])dnl -AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) -AM_MISSING_PROG([AUTOCONF], [autoconf]) -AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) -AM_MISSING_PROG([AUTOHEADER], [autoheader]) -AM_MISSING_PROG([MAKEINFO], [makeinfo]) -AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl -AC_REQUIRE([AC_PROG_MKDIR_P])dnl -# For better backward compatibility. To be removed once Automake 1.9.x -# dies out for good. For more background, see: -# -# -AC_SUBST([mkdir_p], ['$(MKDIR_P)']) -# We need awk for the "check" target (and possibly the TAP driver). The -# system "awk" is bad on some platforms. -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([AC_PROG_MAKE_SET])dnl -AC_REQUIRE([AM_SET_LEADING_DOT])dnl -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) -_AM_IF_OPTION([no-dependencies],, -[AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES([CC])], - [m4_define([AC_PROG_CC], - m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES([CXX])], - [m4_define([AC_PROG_CXX], - m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJC], - [_AM_DEPENDENCIES([OBJC])], - [m4_define([AC_PROG_OBJC], - m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], - [_AM_DEPENDENCIES([OBJCXX])], - [m4_define([AC_PROG_OBJCXX], - m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl -]) -AC_REQUIRE([AM_SILENT_RULES])dnl -dnl The testsuite driver may need to know about EXEEXT, so add the -dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This -dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. -AC_CONFIG_COMMANDS_PRE(dnl -[m4_provide_if([_AM_COMPILER_EXEEXT], - [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl - -# POSIX will say in a future version that running "rm -f" with no argument -# is OK; and we want to be able to make that assumption in our Makefile -# recipes. So use an aggressive probe to check that the usage we want is -# actually supported "in the wild" to an acceptable degree. -# See automake bug#10828. -# To make any issue more visible, cause the running configure to be aborted -# by default if the 'rm' program in use doesn't match our expectations; the -# user can still override this though. -if rm -f && rm -fr && rm -rf; then : OK; else - cat >&2 <<'END' -Oops! - -Your 'rm' program seems unable to run without file operands specified -on the command line, even when the '-f' option is present. This is contrary -to the behaviour of most rm programs out there, and not conforming with -the upcoming POSIX standard: - -Please tell bug-automake@gnu.org about your system, including the value -of your $PATH and any error possibly output before this message. This -can help us improve future automake versions. - -END - if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then - echo 'Configuration will proceed anyway, since you have set the' >&2 - echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 - echo >&2 - else - cat >&2 <<'END' -Aborting the configuration process, to ensure you take notice of the issue. - -You can download and install GNU coreutils to get an 'rm' implementation -that behaves properly: . - -If you want to complete the configuration process using your problematic -'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM -to "yes", and re-run configure. - -END - AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) - fi -fi -dnl The trailing newline in this macro's definition is deliberate, for -dnl backward compatibility and to allow trailing 'dnl'-style comments -dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. -]) -m4trace:/usr/local/share/aclocal-1.16/init.m4:186: -1- 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]) -m4trace:/usr/local/share/aclocal-1.16/install-sh.m4:11: -1- AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -if test x"${install_sh+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; - *) - install_sh="\${SHELL} $am_aux_dir/install-sh" - esac -fi -AC_SUBST([install_sh])]) -m4trace:/usr/local/share/aclocal-1.16/lead-dot.m4:10: -1- 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])]) -m4trace:/usr/local/share/aclocal-1.16/make.m4:13: -1- AC_DEFUN([AM_MAKE_INCLUDE], [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) -cat > confinc.mk << 'END' -am__doit: - @echo this is the am__doit target >confinc.out -.PHONY: am__doit -END -am__include="#" -am__quote= -# BSD make does it like this. -echo '.include "confinc.mk" # ignored' > confmf.BSD -# Other make implementations (GNU, Solaris 10, AIX) do it like this. -echo 'include confinc.mk # ignored' > confmf.GNU -_am_result=no -for s in GNU BSD; do - AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) - AS_CASE([$?:`cat confinc.out 2>/dev/null`], - ['0:this is the am__doit target'], - [AS_CASE([$s], - [BSD], [am__include='.include' am__quote='"'], - [am__include='include' am__quote=''])]) - if test "$am__include" != "#"; then - _am_result="yes ($s style)" - break - fi -done -rm -f confinc.* confmf.* -AC_MSG_RESULT([${_am_result}]) -AC_SUBST([am__include])]) -m4trace:/usr/local/share/aclocal-1.16/make.m4:42: -1- m4_pattern_allow([^am__quote$]) -m4trace:/usr/local/share/aclocal-1.16/missing.m4:11: -1- AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) -$1=${$1-"${am_missing_run}$2"} -AC_SUBST($1)]) -m4trace:/usr/local/share/aclocal-1.16/missing.m4:20: -1- AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([missing])dnl -if test x"${MISSING+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; - *) - MISSING="\${SHELL} $am_aux_dir/missing" ;; - esac -fi -# Use eval to expand $SHELL -if eval "$MISSING --is-lightweight"; then - am_missing_run="$MISSING " -else - am_missing_run= - AC_MSG_WARN(['missing' script is too old or missing]) -fi -]) -m4trace:/usr/local/share/aclocal-1.16/options.m4:11: -1- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) -m4trace:/usr/local/share/aclocal-1.16/options.m4:17: -1- AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) -m4trace:/usr/local/share/aclocal-1.16/options.m4:23: -1- AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) -m4trace:/usr/local/share/aclocal-1.16/options.m4:29: -1- AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) -m4trace:/usr/local/share/aclocal-1.16/prog-cc-c-o.m4:12: -1- AC_DEFUN([_AM_PROG_CC_C_O], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([compile])dnl -AC_LANG_PUSH([C])dnl -AC_CACHE_CHECK( - [whether $CC understands -c and -o together], - [am_cv_prog_cc_c_o], - [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) - # Make sure it works both with $CC and with simple cc. - # Following AC_PROG_CC_C_O, we do the test twice because some - # compilers refuse to overwrite an existing .o file with -o, - # though they will create one. - am_cv_prog_cc_c_o=yes - for am_i in 1 2; do - if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ - && test -f conftest2.$ac_objext; then - : OK - else - am_cv_prog_cc_c_o=no - break - fi - done - rm -f core conftest* - unset am_i]) -if test "$am_cv_prog_cc_c_o" != yes; then - # Losing compiler, so override with the script. - # FIXME: It is wrong to rewrite CC. - # But if we don't then we get into trouble of one sort or another. - # A longer-term fix would be to have automake use am__CC in this case, - # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" - CC="$am_aux_dir/compile $CC" -fi -AC_LANG_POP([C])]) -m4trace:/usr/local/share/aclocal-1.16/prog-cc-c-o.m4:47: -1- AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) -m4trace:/usr/local/share/aclocal-1.16/runlog.m4:12: -1- AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD - ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - (exit $ac_status); }]) -m4trace:/usr/local/share/aclocal-1.16/sanity.m4:11: -1- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) -# Reject unsafe characters in $srcdir or the absolute working directory -# name. Accept space and tab only in the latter. -am_lf=' -' -case `pwd` in - *[[\\\"\#\$\&\'\`$am_lf]]*) - AC_MSG_ERROR([unsafe absolute working directory name]);; -esac -case $srcdir in - *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) - AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; -esac - -# Do 'set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - am_has_slept=no - for am_try in 1 2; do - echo "timestamp, slept: $am_has_slept" > conftest.file - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` - if test "$[*]" = "X"; then - # -L didn't work. - set X `ls -t "$srcdir/configure" conftest.file` - fi - if test "$[*]" != "X $srcdir/configure conftest.file" \ - && test "$[*]" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken - alias in your environment]) - fi - if test "$[2]" = conftest.file || test $am_try -eq 2; then - break - fi - # Just in case. - sleep 1 - am_has_slept=yes - done - test "$[2]" = conftest.file - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -AC_MSG_RESULT([yes]) -# If we didn't sleep, we still need to ensure time stamps of config.status and -# generated files are strictly newer. -am_sleep_pid= -if grep 'slept: no' conftest.file >/dev/null 2>&1; then - ( sleep 1 ) & - am_sleep_pid=$! -fi -AC_CONFIG_COMMANDS_PRE( - [AC_MSG_CHECKING([that generated files are newer than configure]) - if test -n "$am_sleep_pid"; then - # Hide warnings about reused PIDs. - wait $am_sleep_pid 2>/dev/null - fi - AC_MSG_RESULT([done])]) -rm -f conftest.file -]) -m4trace:/usr/local/share/aclocal-1.16/silent.m4:12: -1- AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], [dnl -AS_HELP_STRING( - [--enable-silent-rules], - [less verbose build output (undo: "make V=1")]) -AS_HELP_STRING( - [--disable-silent-rules], - [verbose build output (undo: "make V=0")])dnl -]) -case $enable_silent_rules in @%:@ ((( - yes) AM_DEFAULT_VERBOSITY=0;; - no) AM_DEFAULT_VERBOSITY=1;; - *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; -esac -dnl -dnl A few 'make' implementations (e.g., NonStop OS and NextStep) -dnl do not support nested variable expansions. -dnl See automake bug#9928 and bug#10237. -am_make=${MAKE-make} -AC_CACHE_CHECK([whether $am_make supports nested variables], - [am_cv_make_support_nested_variables], - [if AS_ECHO([['TRUE=$(BAR$(V)) -BAR0=false -BAR1=true -V=1 -am__doit: - @$(TRUE) -.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then - am_cv_make_support_nested_variables=yes -else - am_cv_make_support_nested_variables=no -fi]) -if test $am_cv_make_support_nested_variables = yes; then - dnl Using '$V' instead of '$(V)' breaks IRIX make. - AM_V='$(V)' - AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' -else - AM_V=$AM_DEFAULT_VERBOSITY - AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY -fi -AC_SUBST([AM_V])dnl -AM_SUBST_NOTMAKE([AM_V])dnl -AC_SUBST([AM_DEFAULT_V])dnl -AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl -AC_SUBST([AM_DEFAULT_VERBOSITY])dnl -AM_BACKSLASH='\' -AC_SUBST([AM_BACKSLASH])dnl -_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl -]) -m4trace:/usr/local/share/aclocal-1.16/strip.m4:17: -1- 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])]) -m4trace:/usr/local/share/aclocal-1.16/substnot.m4:12: -1- AC_DEFUN([_AM_SUBST_NOTMAKE]) -m4trace:/usr/local/share/aclocal-1.16/substnot.m4:17: -1- AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) -m4trace:/usr/local/share/aclocal-1.16/tar.m4:23: -1- AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used -# in the wild :-( We should find a proper way to deprecate it ... -AC_SUBST([AMTAR], ['$${TAR-tar}']) - -# We'll loop over all known methods to create a tar archive until one works. -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' - -m4_if([$1], [v7], - [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], - - [m4_case([$1], - [ustar], - [# The POSIX 1988 'ustar' format is defined with fixed-size fields. - # There is notably a 21 bits limit for the UID and the GID. In fact, - # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 - # and bug#13588). - am_max_uid=2097151 # 2^21 - 1 - am_max_gid=$am_max_uid - # The $UID and $GID variables are not portable, so we need to resort - # to the POSIX-mandated id(1) utility. Errors in the 'id' calls - # below are definitely unexpected, so allow the users to see them - # (that is, avoid stderr redirection). - am_uid=`id -u || echo unknown` - am_gid=`id -g || echo unknown` - AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) - if test $am_uid -le $am_max_uid; then - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - _am_tools=none - fi - AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) - if test $am_gid -le $am_max_gid; then - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - _am_tools=none - fi], - - [pax], - [], - - [m4_fatal([Unknown tar format])]) - - AC_MSG_CHECKING([how to create a $1 tar archive]) - - # Go ahead even if we have the value already cached. We do so because we - # need to set the values for the 'am__tar' and 'am__untar' variables. - _am_tools=${am_cv_prog_tar_$1-$_am_tools} - - for _am_tool in $_am_tools; do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; do - AM_RUN_LOG([$_am_tar --version]) && break - done - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x $1 -w "$$tardir"' - am__tar_='pax -L -x $1 -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H $1 -L' - am__tar_='find "$tardir" -print | cpio -o -H $1 -L' - am__untar='cpio -i -H $1 -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_$1}" && break - - # tar/untar a dummy directory, and stop if the command works. - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) - rm -rf conftest.dir - if test -s conftest.tar; then - AM_RUN_LOG([$am__untar /dev/null 2>&1 && break - fi - done - rm -rf conftest.dir - - AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) - AC_MSG_RESULT([$am_cv_prog_tar_$1])]) - -AC_SUBST([am__tar]) -AC_SUBST([am__untar]) -]) -m4trace:configure.ac:2: -1- m4_pattern_forbid([^_?A[CHUM]_]) -m4trace:configure.ac:2: -1- m4_pattern_forbid([_AC_]) -m4trace:configure.ac:2: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS']) -m4trace:configure.ac:2: -1- m4_pattern_allow([^AS_FLAGS$]) -m4trace:configure.ac:2: -1- m4_pattern_forbid([^_?m4_]) -m4trace:configure.ac:2: -1- m4_pattern_forbid([^dnl$]) -m4trace:configure.ac:2: -1- m4_pattern_forbid([^_?AS_]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^SHELL$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PATH_SEPARATOR$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_NAME$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_VERSION$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_STRING$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_URL$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^exec_prefix$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^prefix$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^program_transform_name$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^bindir$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^sbindir$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^libexecdir$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^datarootdir$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^datadir$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^sysconfdir$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^sharedstatedir$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^localstatedir$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^includedir$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^oldincludedir$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^docdir$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^infodir$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^htmldir$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^dvidir$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^pdfdir$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^psdir$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^libdir$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^localedir$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^mandir$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_NAME$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_VERSION$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_STRING$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_URL$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^DEFS$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^ECHO_C$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^ECHO_N$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^ECHO_T$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^LIBS$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^build_alias$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^host_alias$]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^target_alias$]) -m4trace:configure.ac:4: -1- AM_INIT_AUTOMAKE([foreign -Wall -Werror]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$]) -m4trace:configure.ac:4: -1- AM_SET_CURRENT_AUTOMAKE_VERSION -m4trace:configure.ac:4: -1- AM_AUTOMAKE_VERSION([1.16.1]) -m4trace:configure.ac:4: -1- _AM_AUTOCONF_VERSION([2.69]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^INSTALL_DATA$]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^am__isrc$]) -m4trace:configure.ac:4: -1- _AM_SUBST_NOTMAKE([am__isrc]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^CYGPATH_W$]) -m4trace:configure.ac:4: -1- _AM_SET_OPTIONS([foreign -Wall -Werror]) -m4trace:configure.ac:4: -1- _AM_SET_OPTION([foreign]) -m4trace:configure.ac:4: -2- _AM_MANGLE_OPTION([foreign]) -m4trace:configure.ac:4: -1- _AM_SET_OPTION([-Wall]) -m4trace:configure.ac:4: -2- _AM_MANGLE_OPTION([-Wall]) -m4trace:configure.ac:4: -1- _AM_SET_OPTION([-Werror]) -m4trace:configure.ac:4: -2- _AM_MANGLE_OPTION([-Werror]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^PACKAGE$]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^VERSION$]) -m4trace:configure.ac:4: -1- _AM_IF_OPTION([no-define], [], [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) - AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])]) -m4trace:configure.ac:4: -2- _AM_MANGLE_OPTION([no-define]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^PACKAGE$]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^VERSION$]) -m4trace:configure.ac:4: -1- AM_SANITY_CHECK -m4trace:configure.ac:4: -1- AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) -m4trace:configure.ac:4: -1- AM_MISSING_HAS_RUN -m4trace:configure.ac:4: -1- AM_AUX_DIR_EXPAND -m4trace:configure.ac:4: -1- m4_pattern_allow([^ACLOCAL$]) -m4trace:configure.ac:4: -1- AM_MISSING_PROG([AUTOCONF], [autoconf]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^AUTOCONF$]) -m4trace:configure.ac:4: -1- AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^AUTOMAKE$]) -m4trace:configure.ac:4: -1- AM_MISSING_PROG([AUTOHEADER], [autoheader]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^AUTOHEADER$]) -m4trace:configure.ac:4: -1- AM_MISSING_PROG([MAKEINFO], [makeinfo]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^MAKEINFO$]) -m4trace:configure.ac:4: -1- AM_PROG_INSTALL_SH -m4trace:configure.ac:4: -1- m4_pattern_allow([^install_sh$]) -m4trace:configure.ac:4: -1- AM_PROG_INSTALL_STRIP -m4trace:configure.ac:4: -1- m4_pattern_allow([^STRIP$]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^MKDIR_P$]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^mkdir_p$]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^AWK$]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^SET_MAKE$]) -m4trace:configure.ac:4: -1- AM_SET_LEADING_DOT -m4trace:configure.ac:4: -1- m4_pattern_allow([^am__leading_dot$]) -m4trace:configure.ac:4: -1- _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) -m4trace:configure.ac:4: -2- _AM_MANGLE_OPTION([tar-ustar]) -m4trace:configure.ac:4: -1- _AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])]) -m4trace:configure.ac:4: -2- _AM_MANGLE_OPTION([tar-pax]) -m4trace:configure.ac:4: -1- _AM_PROG_TAR([v7]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^AMTAR$]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^am__tar$]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^am__untar$]) -m4trace:configure.ac:4: -1- _AM_IF_OPTION([no-dependencies], [], [AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES([CC])], - [m4_define([AC_PROG_CC], - m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES([CXX])], - [m4_define([AC_PROG_CXX], - m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJC], - [_AM_DEPENDENCIES([OBJC])], - [m4_define([AC_PROG_OBJC], - m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], - [_AM_DEPENDENCIES([OBJCXX])], - [m4_define([AC_PROG_OBJCXX], - m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl -]) -m4trace:configure.ac:4: -2- _AM_MANGLE_OPTION([no-dependencies]) -m4trace:configure.ac:4: -1- AM_SILENT_RULES -m4trace:configure.ac:4: -1- m4_pattern_allow([^AM_V$]) -m4trace:configure.ac:4: -1- AM_SUBST_NOTMAKE([AM_V]) -m4trace:configure.ac:4: -1- _AM_SUBST_NOTMAKE([AM_V]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^AM_DEFAULT_V$]) -m4trace:configure.ac:4: -1- AM_SUBST_NOTMAKE([AM_DEFAULT_V]) -m4trace:configure.ac:4: -1- _AM_SUBST_NOTMAKE([AM_DEFAULT_V]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^AM_DEFAULT_VERBOSITY$]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^AM_BACKSLASH$]) -m4trace:configure.ac:4: -1- _AM_SUBST_NOTMAKE([AM_BACKSLASH]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^CFLAGS$]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^LDFLAGS$]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^LIBS$]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^CPPFLAGS$]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^ac_ct_CC$]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^EXEEXT$]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^OBJEXT$]) -m4trace:configure.ac:7: -1- _AM_PROG_CC_C_O -m4trace:configure.ac:7: -1- AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) -m4trace:configure.ac:7: -1- _AM_DEPENDENCIES([CC]) -m4trace:configure.ac:7: -1- AM_SET_DEPDIR -m4trace:configure.ac:7: -1- m4_pattern_allow([^DEPDIR$]) -m4trace:configure.ac:7: -1- AM_OUTPUT_DEPENDENCY_COMMANDS -m4trace:configure.ac:7: -1- AM_MAKE_INCLUDE -m4trace:configure.ac:7: -1- AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^am__include$]) -m4trace:configure.ac:7: -1- AM_DEP_TRACK -m4trace:configure.ac:7: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^AMDEP_TRUE$]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^AMDEP_FALSE$]) -m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([AMDEP_TRUE]) -m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([AMDEP_FALSE]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^AMDEPBACKSLASH$]) -m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([AMDEPBACKSLASH]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^am__nodep$]) -m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([am__nodep]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^CCDEPMODE$]) -m4trace:configure.ac:7: -1- AM_CONDITIONAL([am__fastdepCC], [ - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^am__fastdepCC_TRUE$]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^am__fastdepCC_FALSE$]) -m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_TRUE]) -m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_FALSE]) -m4trace:configure.ac:9: -1- AM_PROG_CC_C_O -m4trace:configure.ac:13: -1- m4_pattern_allow([^HAVE_LIBM$]) -m4trace:configure.ac:16: -1- m4_pattern_allow([^CPP$]) -m4trace:configure.ac:16: -1- m4_pattern_allow([^CPPFLAGS$]) -m4trace:configure.ac:16: -1- m4_pattern_allow([^CPP$]) -m4trace:configure.ac:16: -1- m4_pattern_allow([^GREP$]) -m4trace:configure.ac:16: -1- m4_pattern_allow([^EGREP$]) -m4trace:configure.ac:16: -1- m4_pattern_allow([^STDC_HEADERS$]) -m4trace:configure.ac:19: -1- m4_pattern_allow([^pid_t$]) -m4trace:configure.ac:20: -1- m4_pattern_allow([^size_t$]) -m4trace:configure.ac:23: -1- m4_pattern_allow([^HAVE_VFORK_H$]) -m4trace:configure.ac:23: -1- m4_pattern_allow([^HAVE_WORKING_VFORK$]) -m4trace:configure.ac:23: -1- m4_pattern_allow([^vfork$]) -m4trace:configure.ac:23: -1- m4_pattern_allow([^HAVE_WORKING_FORK$]) -m4trace:configure.ac:24: -1- m4_pattern_allow([^LSTAT_FOLLOWS_SLASHED_SYMLINK$]) -m4trace:configure.ac:24: -1- m4_pattern_allow([^LIB@&t@OBJS$]) -m4trace:configure.ac:25: -1- m4_pattern_allow([^HAVE_STDLIB_H$]) -m4trace:configure.ac:25: -1- m4_pattern_allow([^HAVE_MALLOC$]) -m4trace:configure.ac:25: -1- m4_pattern_allow([^HAVE_MALLOC$]) -m4trace:configure.ac:25: -1- m4_pattern_allow([^LIB@&t@OBJS$]) -m4trace:configure.ac:25: -1- m4_pattern_allow([^malloc$]) -m4trace:configure.ac:26: -1- m4_pattern_allow([^HAVE_STDLIB_H$]) -m4trace:configure.ac:26: -1- m4_pattern_allow([^HAVE_REALLOC$]) -m4trace:configure.ac:26: -1- m4_pattern_allow([^HAVE_REALLOC$]) -m4trace:configure.ac:26: -1- m4_pattern_allow([^LIB@&t@OBJS$]) -m4trace:configure.ac:26: -1- m4_pattern_allow([^realloc$]) -m4trace:configure.ac:30: -1- m4_pattern_allow([^build$]) -m4trace:configure.ac:30: -1- m4_pattern_allow([^build_cpu$]) -m4trace:configure.ac:30: -1- m4_pattern_allow([^build_vendor$]) -m4trace:configure.ac:30: -1- m4_pattern_allow([^build_os$]) -m4trace:configure.ac:30: -1- m4_pattern_allow([^host$]) -m4trace:configure.ac:30: -1- m4_pattern_allow([^host_cpu$]) -m4trace:configure.ac:30: -1- m4_pattern_allow([^host_vendor$]) -m4trace:configure.ac:30: -1- m4_pattern_allow([^host_os$]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^_FILE_OFFSET_BITS$]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^_LARGE_FILES$]) -m4trace:configure.ac:90: -1- AM_CONDITIONAL([DEBUG], [test x$debug = xtrue]) -m4trace:configure.ac:90: -1- m4_pattern_allow([^DEBUG_TRUE$]) -m4trace:configure.ac:90: -1- m4_pattern_allow([^DEBUG_FALSE$]) -m4trace:configure.ac:90: -1- _AM_SUBST_NOTMAKE([DEBUG_TRUE]) -m4trace:configure.ac:90: -1- _AM_SUBST_NOTMAKE([DEBUG_FALSE]) -m4trace:configure.ac:91: -1- AM_CONDITIONAL([EMBEDDED_FTS], [test x$embfts = xtrue]) -m4trace:configure.ac:91: -1- m4_pattern_allow([^EMBEDDED_FTS_TRUE$]) -m4trace:configure.ac:91: -1- m4_pattern_allow([^EMBEDDED_FTS_FALSE$]) -m4trace:configure.ac:91: -1- _AM_SUBST_NOTMAKE([EMBEDDED_FTS_TRUE]) -m4trace:configure.ac:91: -1- _AM_SUBST_NOTMAKE([EMBEDDED_FTS_FALSE]) -m4trace:configure.ac:92: -1- AM_CONDITIONAL([EXTERNAL_FTS], [test x$extfts = xtrue]) -m4trace:configure.ac:92: -1- m4_pattern_allow([^EXTERNAL_FTS_TRUE$]) -m4trace:configure.ac:92: -1- m4_pattern_allow([^EXTERNAL_FTS_FALSE$]) -m4trace:configure.ac:92: -1- _AM_SUBST_NOTMAKE([EXTERNAL_FTS_TRUE]) -m4trace:configure.ac:92: -1- _AM_SUBST_NOTMAKE([EXTERNAL_FTS_FALSE]) -m4trace:configure.ac:93: -1- AM_CONDITIONAL([SOLARIS], [test x$host_os_solaris = xtrue]) -m4trace:configure.ac:93: -1- m4_pattern_allow([^SOLARIS_TRUE$]) -m4trace:configure.ac:93: -1- m4_pattern_allow([^SOLARIS_FALSE$]) -m4trace:configure.ac:93: -1- _AM_SUBST_NOTMAKE([SOLARIS_TRUE]) -m4trace:configure.ac:93: -1- _AM_SUBST_NOTMAKE([SOLARIS_FALSE]) -m4trace:configure.ac:94: -1- AM_CONDITIONAL([LINUX], [test x$host_os_linux = xtrue]) -m4trace:configure.ac:94: -1- m4_pattern_allow([^LINUX_TRUE$]) -m4trace:configure.ac:94: -1- m4_pattern_allow([^LINUX_FALSE$]) -m4trace:configure.ac:94: -1- _AM_SUBST_NOTMAKE([LINUX_TRUE]) -m4trace:configure.ac:94: -1- _AM_SUBST_NOTMAKE([LINUX_FALSE]) -m4trace:configure.ac:95: -1- AM_CONDITIONAL([STATIC], [test x$static = xtrue]) -m4trace:configure.ac:95: -1- m4_pattern_allow([^STATIC_TRUE$]) -m4trace:configure.ac:95: -1- m4_pattern_allow([^STATIC_FALSE$]) -m4trace:configure.ac:95: -1- _AM_SUBST_NOTMAKE([STATIC_TRUE]) -m4trace:configure.ac:95: -1- _AM_SUBST_NOTMAKE([STATIC_FALSE]) -m4trace:configure.ac:99: -1- m4_pattern_allow([^LIB@&t@OBJS$]) -m4trace:configure.ac:99: -1- m4_pattern_allow([^LTLIBOBJS$]) -m4trace:configure.ac:99: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"]) -m4trace:configure.ac:99: -1- m4_pattern_allow([^am__EXEEXT_TRUE$]) -m4trace:configure.ac:99: -1- m4_pattern_allow([^am__EXEEXT_FALSE$]) -m4trace:configure.ac:99: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE]) -m4trace:configure.ac:99: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE]) -m4trace:configure.ac:99: -1- _AM_OUTPUT_DEPENDENCY_COMMANDS -m4trace:configure.ac:99: -1- AM_RUN_LOG([cd "$am_dirpart" \ - && sed -e '/# am--include-marker/d' "$am_filepart" \ - | $MAKE -f - am--depfiles]) diff -Nru fpart-1.2.0/autom4te.cache/traces.1 fpart-1.4.0/autom4te.cache/traces.1 --- fpart-1.2.0/autom4te.cache/traces.1 2020-01-10 21:36:10.000000000 +0000 +++ fpart-1.4.0/autom4te.cache/traces.1 1970-01-01 00:00:00.000000000 +0000 @@ -1,596 +0,0 @@ -m4trace:aclocal.m4:679: -1- AC_SUBST([am__quote]) -m4trace:aclocal.m4:679: -1- AC_SUBST_TRACE([am__quote]) -m4trace:aclocal.m4:679: -1- m4_pattern_allow([^am__quote$]) -m4trace:configure.ac:2: -1- AC_INIT([fpart], [1.2.0], [ganael.laplanche@martymac.org]) -m4trace:configure.ac:2: -1- m4_pattern_forbid([^_?A[CHUM]_]) -m4trace:configure.ac:2: -1- m4_pattern_forbid([_AC_]) -m4trace:configure.ac:2: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS']) -m4trace:configure.ac:2: -1- m4_pattern_allow([^AS_FLAGS$]) -m4trace:configure.ac:2: -1- m4_pattern_forbid([^_?m4_]) -m4trace:configure.ac:2: -1- m4_pattern_forbid([^dnl$]) -m4trace:configure.ac:2: -1- m4_pattern_forbid([^_?AS_]) -m4trace:configure.ac:2: -1- AC_SUBST([SHELL]) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([SHELL]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^SHELL$]) -m4trace:configure.ac:2: -1- AC_SUBST([PATH_SEPARATOR]) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([PATH_SEPARATOR]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PATH_SEPARATOR$]) -m4trace:configure.ac:2: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])]) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([PACKAGE_NAME]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_NAME$]) -m4trace:configure.ac:2: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])]) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([PACKAGE_TARNAME]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) -m4trace:configure.ac:2: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])]) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([PACKAGE_VERSION]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_VERSION$]) -m4trace:configure.ac:2: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])]) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([PACKAGE_STRING]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_STRING$]) -m4trace:configure.ac:2: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])]) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([PACKAGE_BUGREPORT]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) -m4trace:configure.ac:2: -1- AC_SUBST([PACKAGE_URL], [m4_ifdef([AC_PACKAGE_URL], ['AC_PACKAGE_URL'])]) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([PACKAGE_URL]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_URL$]) -m4trace:configure.ac:2: -1- AC_SUBST([exec_prefix], [NONE]) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([exec_prefix]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^exec_prefix$]) -m4trace:configure.ac:2: -1- AC_SUBST([prefix], [NONE]) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([prefix]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^prefix$]) -m4trace:configure.ac:2: -1- AC_SUBST([program_transform_name], [s,x,x,]) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([program_transform_name]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^program_transform_name$]) -m4trace:configure.ac:2: -1- AC_SUBST([bindir], ['${exec_prefix}/bin']) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([bindir]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^bindir$]) -m4trace:configure.ac:2: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin']) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([sbindir]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^sbindir$]) -m4trace:configure.ac:2: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec']) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([libexecdir]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^libexecdir$]) -m4trace:configure.ac:2: -1- AC_SUBST([datarootdir], ['${prefix}/share']) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([datarootdir]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^datarootdir$]) -m4trace:configure.ac:2: -1- AC_SUBST([datadir], ['${datarootdir}']) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([datadir]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^datadir$]) -m4trace:configure.ac:2: -1- AC_SUBST([sysconfdir], ['${prefix}/etc']) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([sysconfdir]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^sysconfdir$]) -m4trace:configure.ac:2: -1- AC_SUBST([sharedstatedir], ['${prefix}/com']) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([sharedstatedir]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^sharedstatedir$]) -m4trace:configure.ac:2: -1- AC_SUBST([localstatedir], ['${prefix}/var']) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([localstatedir]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^localstatedir$]) -m4trace:configure.ac:2: -1- AC_SUBST([includedir], ['${prefix}/include']) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([includedir]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^includedir$]) -m4trace:configure.ac:2: -1- AC_SUBST([oldincludedir], ['/usr/include']) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([oldincludedir]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^oldincludedir$]) -m4trace:configure.ac:2: -1- AC_SUBST([docdir], [m4_ifset([AC_PACKAGE_TARNAME], - ['${datarootdir}/doc/${PACKAGE_TARNAME}'], - ['${datarootdir}/doc/${PACKAGE}'])]) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([docdir]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^docdir$]) -m4trace:configure.ac:2: -1- AC_SUBST([infodir], ['${datarootdir}/info']) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([infodir]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^infodir$]) -m4trace:configure.ac:2: -1- AC_SUBST([htmldir], ['${docdir}']) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([htmldir]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^htmldir$]) -m4trace:configure.ac:2: -1- AC_SUBST([dvidir], ['${docdir}']) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([dvidir]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^dvidir$]) -m4trace:configure.ac:2: -1- AC_SUBST([pdfdir], ['${docdir}']) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([pdfdir]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^pdfdir$]) -m4trace:configure.ac:2: -1- AC_SUBST([psdir], ['${docdir}']) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([psdir]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^psdir$]) -m4trace:configure.ac:2: -1- AC_SUBST([libdir], ['${exec_prefix}/lib']) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([libdir]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^libdir$]) -m4trace:configure.ac:2: -1- AC_SUBST([localedir], ['${datarootdir}/locale']) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([localedir]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^localedir$]) -m4trace:configure.ac:2: -1- AC_SUBST([mandir], ['${datarootdir}/man']) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([mandir]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^mandir$]) -m4trace:configure.ac:2: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_NAME$]) -m4trace:configure.ac:2: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */ -@%:@undef PACKAGE_NAME]) -m4trace:configure.ac:2: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) -m4trace:configure.ac:2: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */ -@%:@undef PACKAGE_TARNAME]) -m4trace:configure.ac:2: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_VERSION$]) -m4trace:configure.ac:2: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */ -@%:@undef PACKAGE_VERSION]) -m4trace:configure.ac:2: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_STRING$]) -m4trace:configure.ac:2: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */ -@%:@undef PACKAGE_STRING]) -m4trace:configure.ac:2: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) -m4trace:configure.ac:2: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */ -@%:@undef PACKAGE_BUGREPORT]) -m4trace:configure.ac:2: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_URL]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_URL$]) -m4trace:configure.ac:2: -1- AH_OUTPUT([PACKAGE_URL], [/* Define to the home page for this package. */ -@%:@undef PACKAGE_URL]) -m4trace:configure.ac:2: -1- AC_SUBST([DEFS]) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([DEFS]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^DEFS$]) -m4trace:configure.ac:2: -1- AC_SUBST([ECHO_C]) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([ECHO_C]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^ECHO_C$]) -m4trace:configure.ac:2: -1- AC_SUBST([ECHO_N]) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([ECHO_N]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^ECHO_N$]) -m4trace:configure.ac:2: -1- AC_SUBST([ECHO_T]) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([ECHO_T]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^ECHO_T$]) -m4trace:configure.ac:2: -1- AC_SUBST([LIBS]) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([LIBS]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^LIBS$]) -m4trace:configure.ac:2: -1- AC_SUBST([build_alias]) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([build_alias]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^build_alias$]) -m4trace:configure.ac:2: -1- AC_SUBST([host_alias]) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([host_alias]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^host_alias$]) -m4trace:configure.ac:2: -1- AC_SUBST([target_alias]) -m4trace:configure.ac:2: -1- AC_SUBST_TRACE([target_alias]) -m4trace:configure.ac:2: -1- m4_pattern_allow([^target_alias$]) -m4trace:configure.ac:4: -1- AM_INIT_AUTOMAKE([foreign -Wall -Werror]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$]) -m4trace:configure.ac:4: -1- AM_AUTOMAKE_VERSION([1.16.1]) -m4trace:configure.ac:4: -1- AC_REQUIRE_AUX_FILE([install-sh]) -m4trace:configure.ac:4: -1- AC_SUBST([INSTALL_PROGRAM]) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([INSTALL_PROGRAM]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) -m4trace:configure.ac:4: -1- AC_SUBST([INSTALL_SCRIPT]) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([INSTALL_SCRIPT]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) -m4trace:configure.ac:4: -1- AC_SUBST([INSTALL_DATA]) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([INSTALL_DATA]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^INSTALL_DATA$]) -m4trace:configure.ac:4: -1- AC_SUBST([am__isrc], [' -I$(srcdir)']) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([am__isrc]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^am__isrc$]) -m4trace:configure.ac:4: -1- _AM_SUBST_NOTMAKE([am__isrc]) -m4trace:configure.ac:4: -1- AC_SUBST([CYGPATH_W]) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([CYGPATH_W]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^CYGPATH_W$]) -m4trace:configure.ac:4: -1- AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME']) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([PACKAGE]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^PACKAGE$]) -m4trace:configure.ac:4: -1- AC_SUBST([VERSION], ['AC_PACKAGE_VERSION']) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([VERSION]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^VERSION$]) -m4trace:configure.ac:4: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^PACKAGE$]) -m4trace:configure.ac:4: -1- AH_OUTPUT([PACKAGE], [/* Name of package */ -@%:@undef PACKAGE]) -m4trace:configure.ac:4: -1- AC_DEFINE_TRACE_LITERAL([VERSION]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^VERSION$]) -m4trace:configure.ac:4: -1- AH_OUTPUT([VERSION], [/* Version number of package */ -@%:@undef VERSION]) -m4trace:configure.ac:4: -1- AC_REQUIRE_AUX_FILE([missing]) -m4trace:configure.ac:4: -1- AC_SUBST([ACLOCAL]) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([ACLOCAL]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^ACLOCAL$]) -m4trace:configure.ac:4: -1- AC_SUBST([AUTOCONF]) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([AUTOCONF]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^AUTOCONF$]) -m4trace:configure.ac:4: -1- AC_SUBST([AUTOMAKE]) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([AUTOMAKE]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^AUTOMAKE$]) -m4trace:configure.ac:4: -1- AC_SUBST([AUTOHEADER]) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([AUTOHEADER]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^AUTOHEADER$]) -m4trace:configure.ac:4: -1- AC_SUBST([MAKEINFO]) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([MAKEINFO]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^MAKEINFO$]) -m4trace:configure.ac:4: -1- AC_SUBST([install_sh]) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([install_sh]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^install_sh$]) -m4trace:configure.ac:4: -1- AC_SUBST([STRIP]) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([STRIP]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^STRIP$]) -m4trace:configure.ac:4: -1- AC_SUBST([INSTALL_STRIP_PROGRAM]) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([INSTALL_STRIP_PROGRAM]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$]) -m4trace:configure.ac:4: -1- AC_REQUIRE_AUX_FILE([install-sh]) -m4trace:configure.ac:4: -1- AC_SUBST([MKDIR_P]) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([MKDIR_P]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^MKDIR_P$]) -m4trace:configure.ac:4: -1- AC_SUBST([mkdir_p], ['$(MKDIR_P)']) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([mkdir_p]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^mkdir_p$]) -m4trace:configure.ac:4: -1- AC_SUBST([AWK]) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([AWK]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^AWK$]) -m4trace:configure.ac:4: -1- AC_SUBST([SET_MAKE]) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([SET_MAKE]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^SET_MAKE$]) -m4trace:configure.ac:4: -1- AC_SUBST([am__leading_dot]) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([am__leading_dot]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^am__leading_dot$]) -m4trace:configure.ac:4: -1- AC_SUBST([AMTAR], ['$${TAR-tar}']) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([AMTAR]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^AMTAR$]) -m4trace:configure.ac:4: -1- AC_SUBST([am__tar]) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([am__tar]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^am__tar$]) -m4trace:configure.ac:4: -1- AC_SUBST([am__untar]) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([am__untar]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^am__untar$]) -m4trace:configure.ac:4: -1- AM_SILENT_RULES -m4trace:configure.ac:4: -1- AC_SUBST([AM_V]) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([AM_V]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^AM_V$]) -m4trace:configure.ac:4: -1- _AM_SUBST_NOTMAKE([AM_V]) -m4trace:configure.ac:4: -1- AC_SUBST([AM_DEFAULT_V]) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([AM_DEFAULT_V]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^AM_DEFAULT_V$]) -m4trace:configure.ac:4: -1- _AM_SUBST_NOTMAKE([AM_DEFAULT_V]) -m4trace:configure.ac:4: -1- AC_SUBST([AM_DEFAULT_VERBOSITY]) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([AM_DEFAULT_VERBOSITY]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^AM_DEFAULT_VERBOSITY$]) -m4trace:configure.ac:4: -1- AC_SUBST([AM_BACKSLASH]) -m4trace:configure.ac:4: -1- AC_SUBST_TRACE([AM_BACKSLASH]) -m4trace:configure.ac:4: -1- m4_pattern_allow([^AM_BACKSLASH$]) -m4trace:configure.ac:4: -1- _AM_SUBST_NOTMAKE([AM_BACKSLASH]) -m4trace:configure.ac:7: -1- AC_SUBST([CC]) -m4trace:configure.ac:7: -1- AC_SUBST_TRACE([CC]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:7: -1- AC_SUBST([CFLAGS]) -m4trace:configure.ac:7: -1- AC_SUBST_TRACE([CFLAGS]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^CFLAGS$]) -m4trace:configure.ac:7: -1- AC_SUBST([LDFLAGS]) -m4trace:configure.ac:7: -1- AC_SUBST_TRACE([LDFLAGS]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^LDFLAGS$]) -m4trace:configure.ac:7: -1- AC_SUBST([LIBS]) -m4trace:configure.ac:7: -1- AC_SUBST_TRACE([LIBS]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^LIBS$]) -m4trace:configure.ac:7: -1- AC_SUBST([CPPFLAGS]) -m4trace:configure.ac:7: -1- AC_SUBST_TRACE([CPPFLAGS]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^CPPFLAGS$]) -m4trace:configure.ac:7: -1- AC_SUBST([CC]) -m4trace:configure.ac:7: -1- AC_SUBST_TRACE([CC]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:7: -1- AC_SUBST([ac_ct_CC]) -m4trace:configure.ac:7: -1- AC_SUBST_TRACE([ac_ct_CC]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^ac_ct_CC$]) -m4trace:configure.ac:7: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext]) -m4trace:configure.ac:7: -1- AC_SUBST_TRACE([EXEEXT]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^EXEEXT$]) -m4trace:configure.ac:7: -1- AC_SUBST([OBJEXT], [$ac_cv_objext]) -m4trace:configure.ac:7: -1- AC_SUBST_TRACE([OBJEXT]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^OBJEXT$]) -m4trace:configure.ac:7: -1- AC_REQUIRE_AUX_FILE([compile]) -m4trace:configure.ac:7: -1- AC_SUBST([DEPDIR], ["${am__leading_dot}deps"]) -m4trace:configure.ac:7: -1- AC_SUBST_TRACE([DEPDIR]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^DEPDIR$]) -m4trace:configure.ac:7: -1- AC_SUBST([am__include]) -m4trace:configure.ac:7: -1- AC_SUBST_TRACE([am__include]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^am__include$]) -m4trace:configure.ac:7: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -m4trace:configure.ac:7: -1- AC_SUBST([AMDEP_TRUE]) -m4trace:configure.ac:7: -1- AC_SUBST_TRACE([AMDEP_TRUE]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^AMDEP_TRUE$]) -m4trace:configure.ac:7: -1- AC_SUBST([AMDEP_FALSE]) -m4trace:configure.ac:7: -1- AC_SUBST_TRACE([AMDEP_FALSE]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^AMDEP_FALSE$]) -m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([AMDEP_TRUE]) -m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([AMDEP_FALSE]) -m4trace:configure.ac:7: -1- AC_SUBST([AMDEPBACKSLASH]) -m4trace:configure.ac:7: -1- AC_SUBST_TRACE([AMDEPBACKSLASH]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^AMDEPBACKSLASH$]) -m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([AMDEPBACKSLASH]) -m4trace:configure.ac:7: -1- AC_SUBST([am__nodep]) -m4trace:configure.ac:7: -1- AC_SUBST_TRACE([am__nodep]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^am__nodep$]) -m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([am__nodep]) -m4trace:configure.ac:7: -1- AC_SUBST([CCDEPMODE], [depmode=$am_cv_CC_dependencies_compiler_type]) -m4trace:configure.ac:7: -1- AC_SUBST_TRACE([CCDEPMODE]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^CCDEPMODE$]) -m4trace:configure.ac:7: -1- AM_CONDITIONAL([am__fastdepCC], [ - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3]) -m4trace:configure.ac:7: -1- AC_SUBST([am__fastdepCC_TRUE]) -m4trace:configure.ac:7: -1- AC_SUBST_TRACE([am__fastdepCC_TRUE]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^am__fastdepCC_TRUE$]) -m4trace:configure.ac:7: -1- AC_SUBST([am__fastdepCC_FALSE]) -m4trace:configure.ac:7: -1- AC_SUBST_TRACE([am__fastdepCC_FALSE]) -m4trace:configure.ac:7: -1- m4_pattern_allow([^am__fastdepCC_FALSE$]) -m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_TRUE]) -m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_FALSE]) -m4trace:configure.ac:9: -1- AM_PROG_CC_C_O -m4trace:configure.ac:13: -1- AH_OUTPUT([HAVE_LIBM], [/* Define to 1 if you have the `m\' library (-lm). */ -@%:@undef HAVE_LIBM]) -m4trace:configure.ac:13: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBM]) -m4trace:configure.ac:13: -1- m4_pattern_allow([^HAVE_LIBM$]) -m4trace:configure.ac:16: -1- AH_OUTPUT([HAVE_FCNTL_H], [/* Define to 1 if you have the header file. */ -@%:@undef HAVE_FCNTL_H]) -m4trace:configure.ac:16: -1- AH_OUTPUT([HAVE_PATHS_H], [/* Define to 1 if you have the header file. */ -@%:@undef HAVE_PATHS_H]) -m4trace:configure.ac:16: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the header file. */ -@%:@undef HAVE_STDLIB_H]) -m4trace:configure.ac:16: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the header file. */ -@%:@undef HAVE_STRING_H]) -m4trace:configure.ac:16: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the header file. */ -@%:@undef HAVE_STRINGS_H]) -m4trace:configure.ac:16: -1- AH_OUTPUT([HAVE_SYS_MOUNT_H], [/* Define to 1 if you have the header file. */ -@%:@undef HAVE_SYS_MOUNT_H]) -m4trace:configure.ac:16: -1- AH_OUTPUT([HAVE_SYS_PARAM_H], [/* Define to 1 if you have the header file. */ -@%:@undef HAVE_SYS_PARAM_H]) -m4trace:configure.ac:16: -1- AH_OUTPUT([HAVE_SYS_STATFS_H], [/* Define to 1 if you have the header file. */ -@%:@undef HAVE_SYS_STATFS_H]) -m4trace:configure.ac:16: -1- AH_OUTPUT([HAVE_SYS_STATVFS_H], [/* Define to 1 if you have the header file. */ -@%:@undef HAVE_SYS_STATVFS_H]) -m4trace:configure.ac:16: -1- AH_OUTPUT([HAVE_SYS_VFS_H], [/* Define to 1 if you have the header file. */ -@%:@undef HAVE_SYS_VFS_H]) -m4trace:configure.ac:16: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the header file. */ -@%:@undef HAVE_UNISTD_H]) -m4trace:configure.ac:16: -1- AC_SUBST([CPP]) -m4trace:configure.ac:16: -1- AC_SUBST_TRACE([CPP]) -m4trace:configure.ac:16: -1- m4_pattern_allow([^CPP$]) -m4trace:configure.ac:16: -1- AC_SUBST([CPPFLAGS]) -m4trace:configure.ac:16: -1- AC_SUBST_TRACE([CPPFLAGS]) -m4trace:configure.ac:16: -1- m4_pattern_allow([^CPPFLAGS$]) -m4trace:configure.ac:16: -1- AC_SUBST([CPP]) -m4trace:configure.ac:16: -1- AC_SUBST_TRACE([CPP]) -m4trace:configure.ac:16: -1- m4_pattern_allow([^CPP$]) -m4trace:configure.ac:16: -1- AC_SUBST([GREP]) -m4trace:configure.ac:16: -1- AC_SUBST_TRACE([GREP]) -m4trace:configure.ac:16: -1- m4_pattern_allow([^GREP$]) -m4trace:configure.ac:16: -1- AC_SUBST([EGREP]) -m4trace:configure.ac:16: -1- AC_SUBST_TRACE([EGREP]) -m4trace:configure.ac:16: -1- m4_pattern_allow([^EGREP$]) -m4trace:configure.ac:16: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS]) -m4trace:configure.ac:16: -1- m4_pattern_allow([^STDC_HEADERS$]) -m4trace:configure.ac:16: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */ -@%:@undef STDC_HEADERS]) -m4trace:configure.ac:16: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the header file. */ -@%:@undef HAVE_SYS_TYPES_H]) -m4trace:configure.ac:16: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the header file. */ -@%:@undef HAVE_SYS_STAT_H]) -m4trace:configure.ac:16: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the header file. */ -@%:@undef HAVE_STDLIB_H]) -m4trace:configure.ac:16: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the header file. */ -@%:@undef HAVE_STRING_H]) -m4trace:configure.ac:16: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the header file. */ -@%:@undef HAVE_MEMORY_H]) -m4trace:configure.ac:16: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the header file. */ -@%:@undef HAVE_STRINGS_H]) -m4trace:configure.ac:16: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the header file. */ -@%:@undef HAVE_INTTYPES_H]) -m4trace:configure.ac:16: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the header file. */ -@%:@undef HAVE_STDINT_H]) -m4trace:configure.ac:16: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the header file. */ -@%:@undef HAVE_UNISTD_H]) -m4trace:configure.ac:19: -1- AC_DEFINE_TRACE_LITERAL([pid_t]) -m4trace:configure.ac:19: -1- m4_pattern_allow([^pid_t$]) -m4trace:configure.ac:19: -1- AH_OUTPUT([pid_t], [/* Define to `int\' if does not define. */ -@%:@undef pid_t]) -m4trace:configure.ac:20: -1- AC_DEFINE_TRACE_LITERAL([size_t]) -m4trace:configure.ac:20: -1- m4_pattern_allow([^size_t$]) -m4trace:configure.ac:20: -1- AH_OUTPUT([size_t], [/* Define to `unsigned int\' if does not define. */ -@%:@undef size_t]) -m4trace:configure.ac:23: -1- AH_OUTPUT([HAVE_VFORK_H], [/* Define to 1 if you have the header file. */ -@%:@undef HAVE_VFORK_H]) -m4trace:configure.ac:23: -1- AC_DEFINE_TRACE_LITERAL([HAVE_VFORK_H]) -m4trace:configure.ac:23: -1- m4_pattern_allow([^HAVE_VFORK_H$]) -m4trace:configure.ac:23: -1- AH_OUTPUT([HAVE_FORK], [/* Define to 1 if you have the `fork\' function. */ -@%:@undef HAVE_FORK]) -m4trace:configure.ac:23: -1- AH_OUTPUT([HAVE_VFORK], [/* Define to 1 if you have the `vfork\' function. */ -@%:@undef HAVE_VFORK]) -m4trace:configure.ac:23: -1- AC_DEFINE_TRACE_LITERAL([HAVE_WORKING_VFORK]) -m4trace:configure.ac:23: -1- m4_pattern_allow([^HAVE_WORKING_VFORK$]) -m4trace:configure.ac:23: -1- AH_OUTPUT([HAVE_WORKING_VFORK], [/* Define to 1 if `vfork\' works. */ -@%:@undef HAVE_WORKING_VFORK]) -m4trace:configure.ac:23: -1- AC_DEFINE_TRACE_LITERAL([vfork]) -m4trace:configure.ac:23: -1- m4_pattern_allow([^vfork$]) -m4trace:configure.ac:23: -1- AH_OUTPUT([vfork], [/* Define as `fork\' if `vfork\' does not work. */ -@%:@undef vfork]) -m4trace:configure.ac:23: -1- AC_DEFINE_TRACE_LITERAL([HAVE_WORKING_FORK]) -m4trace:configure.ac:23: -1- m4_pattern_allow([^HAVE_WORKING_FORK$]) -m4trace:configure.ac:23: -1- AH_OUTPUT([HAVE_WORKING_FORK], [/* Define to 1 if `fork\' works. */ -@%:@undef HAVE_WORKING_FORK]) -m4trace:configure.ac:24: -1- AC_DEFINE_TRACE_LITERAL([LSTAT_FOLLOWS_SLASHED_SYMLINK]) -m4trace:configure.ac:24: -1- m4_pattern_allow([^LSTAT_FOLLOWS_SLASHED_SYMLINK$]) -m4trace:configure.ac:24: -1- AH_OUTPUT([LSTAT_FOLLOWS_SLASHED_SYMLINK], [/* Define to 1 if `lstat\' dereferences a symlink specified with a trailing - slash. */ -@%:@undef LSTAT_FOLLOWS_SLASHED_SYMLINK]) -m4trace:configure.ac:24: -1- AC_SUBST([LIB@&t@OBJS], ["$LIB@&t@OBJS lstat.$ac_objext"]) -m4trace:configure.ac:24: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) -m4trace:configure.ac:24: -1- m4_pattern_allow([^LIB@&t@OBJS$]) -m4trace:configure.ac:24: -1- AC_LIBSOURCE([lstat.c]) -m4trace:configure.ac:25: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the header file. */ -@%:@undef HAVE_STDLIB_H]) -m4trace:configure.ac:25: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STDLIB_H]) -m4trace:configure.ac:25: -1- m4_pattern_allow([^HAVE_STDLIB_H$]) -m4trace:configure.ac:25: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MALLOC]) -m4trace:configure.ac:25: -1- m4_pattern_allow([^HAVE_MALLOC$]) -m4trace:configure.ac:25: -1- AH_OUTPUT([HAVE_MALLOC], [/* Define to 1 if your system has a GNU libc compatible `malloc\' function, and - to 0 otherwise. */ -@%:@undef HAVE_MALLOC]) -m4trace:configure.ac:25: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MALLOC]) -m4trace:configure.ac:25: -1- m4_pattern_allow([^HAVE_MALLOC$]) -m4trace:configure.ac:25: -1- AC_SUBST([LIB@&t@OBJS], ["$LIB@&t@OBJS malloc.$ac_objext"]) -m4trace:configure.ac:25: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) -m4trace:configure.ac:25: -1- m4_pattern_allow([^LIB@&t@OBJS$]) -m4trace:configure.ac:25: -1- AC_LIBSOURCE([malloc.c]) -m4trace:configure.ac:25: -1- AC_DEFINE_TRACE_LITERAL([malloc]) -m4trace:configure.ac:25: -1- m4_pattern_allow([^malloc$]) -m4trace:configure.ac:25: -1- AH_OUTPUT([malloc], [/* Define to rpl_malloc if the replacement function should be used. */ -@%:@undef malloc]) -m4trace:configure.ac:26: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the header file. */ -@%:@undef HAVE_STDLIB_H]) -m4trace:configure.ac:26: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STDLIB_H]) -m4trace:configure.ac:26: -1- m4_pattern_allow([^HAVE_STDLIB_H$]) -m4trace:configure.ac:26: -1- AC_DEFINE_TRACE_LITERAL([HAVE_REALLOC]) -m4trace:configure.ac:26: -1- m4_pattern_allow([^HAVE_REALLOC$]) -m4trace:configure.ac:26: -1- AH_OUTPUT([HAVE_REALLOC], [/* Define to 1 if your system has a GNU libc compatible `realloc\' function, - and to 0 otherwise. */ -@%:@undef HAVE_REALLOC]) -m4trace:configure.ac:26: -1- AC_DEFINE_TRACE_LITERAL([HAVE_REALLOC]) -m4trace:configure.ac:26: -1- m4_pattern_allow([^HAVE_REALLOC$]) -m4trace:configure.ac:26: -1- AC_SUBST([LIB@&t@OBJS], ["$LIB@&t@OBJS realloc.$ac_objext"]) -m4trace:configure.ac:26: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) -m4trace:configure.ac:26: -1- m4_pattern_allow([^LIB@&t@OBJS$]) -m4trace:configure.ac:26: -1- AC_LIBSOURCE([realloc.c]) -m4trace:configure.ac:26: -1- AC_DEFINE_TRACE_LITERAL([realloc]) -m4trace:configure.ac:26: -1- m4_pattern_allow([^realloc$]) -m4trace:configure.ac:26: -1- AH_OUTPUT([realloc], [/* Define to rpl_realloc if the replacement function should be used. */ -@%:@undef realloc]) -m4trace:configure.ac:27: -1- AH_OUTPUT([HAVE_BZERO], [/* Define to 1 if you have the `bzero\' function. */ -@%:@undef HAVE_BZERO]) -m4trace:configure.ac:27: -1- AH_OUTPUT([HAVE_DIRFD], [/* Define to 1 if you have the `dirfd\' function. */ -@%:@undef HAVE_DIRFD]) -m4trace:configure.ac:27: -1- AH_OUTPUT([HAVE_FCHDIR], [/* Define to 1 if you have the `fchdir\' function. */ -@%:@undef HAVE_FCHDIR]) -m4trace:configure.ac:27: -1- AH_OUTPUT([HAVE_GETCWD], [/* Define to 1 if you have the `getcwd\' function. */ -@%:@undef HAVE_GETCWD]) -m4trace:configure.ac:27: -1- AH_OUTPUT([HAVE_MEMMOVE], [/* Define to 1 if you have the `memmove\' function. */ -@%:@undef HAVE_MEMMOVE]) -m4trace:configure.ac:27: -1- AH_OUTPUT([HAVE_MEMSET], [/* Define to 1 if you have the `memset\' function. */ -@%:@undef HAVE_MEMSET]) -m4trace:configure.ac:27: -1- AH_OUTPUT([HAVE_STRCHR], [/* Define to 1 if you have the `strchr\' function. */ -@%:@undef HAVE_STRCHR]) -m4trace:configure.ac:27: -1- AH_OUTPUT([HAVE_STRERROR], [/* Define to 1 if you have the `strerror\' function. */ -@%:@undef HAVE_STRERROR]) -m4trace:configure.ac:27: -1- AH_OUTPUT([HAVE_STRRCHR], [/* Define to 1 if you have the `strrchr\' function. */ -@%:@undef HAVE_STRRCHR]) -m4trace:configure.ac:27: -1- AH_OUTPUT([HAVE_STRTOL], [/* Define to 1 if you have the `strtol\' function. */ -@%:@undef HAVE_STRTOL]) -m4trace:configure.ac:30: -1- AC_CANONICAL_HOST -m4trace:configure.ac:30: -1- AC_CANONICAL_BUILD -m4trace:configure.ac:30: -1- AC_REQUIRE_AUX_FILE([config.sub]) -m4trace:configure.ac:30: -1- AC_REQUIRE_AUX_FILE([config.guess]) -m4trace:configure.ac:30: -1- AC_SUBST([build], [$ac_cv_build]) -m4trace:configure.ac:30: -1- AC_SUBST_TRACE([build]) -m4trace:configure.ac:30: -1- m4_pattern_allow([^build$]) -m4trace:configure.ac:30: -1- AC_SUBST([build_cpu], [$[1]]) -m4trace:configure.ac:30: -1- AC_SUBST_TRACE([build_cpu]) -m4trace:configure.ac:30: -1- m4_pattern_allow([^build_cpu$]) -m4trace:configure.ac:30: -1- AC_SUBST([build_vendor], [$[2]]) -m4trace:configure.ac:30: -1- AC_SUBST_TRACE([build_vendor]) -m4trace:configure.ac:30: -1- m4_pattern_allow([^build_vendor$]) -m4trace:configure.ac:30: -1- AC_SUBST([build_os]) -m4trace:configure.ac:30: -1- AC_SUBST_TRACE([build_os]) -m4trace:configure.ac:30: -1- m4_pattern_allow([^build_os$]) -m4trace:configure.ac:30: -1- AC_SUBST([host], [$ac_cv_host]) -m4trace:configure.ac:30: -1- AC_SUBST_TRACE([host]) -m4trace:configure.ac:30: -1- m4_pattern_allow([^host$]) -m4trace:configure.ac:30: -1- AC_SUBST([host_cpu], [$[1]]) -m4trace:configure.ac:30: -1- AC_SUBST_TRACE([host_cpu]) -m4trace:configure.ac:30: -1- m4_pattern_allow([^host_cpu$]) -m4trace:configure.ac:30: -1- AC_SUBST([host_vendor], [$[2]]) -m4trace:configure.ac:30: -1- AC_SUBST_TRACE([host_vendor]) -m4trace:configure.ac:30: -1- m4_pattern_allow([^host_vendor$]) -m4trace:configure.ac:30: -1- AC_SUBST([host_os]) -m4trace:configure.ac:30: -1- AC_SUBST_TRACE([host_os]) -m4trace:configure.ac:30: -1- m4_pattern_allow([^host_os$]) -m4trace:configure.ac:87: -1- AC_DEFINE_TRACE_LITERAL([_FILE_OFFSET_BITS]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^_FILE_OFFSET_BITS$]) -m4trace:configure.ac:87: -1- AH_OUTPUT([_FILE_OFFSET_BITS], [/* Number of bits in a file offset, on hosts where this is settable. */ -@%:@undef _FILE_OFFSET_BITS]) -m4trace:configure.ac:87: -1- AC_DEFINE_TRACE_LITERAL([_LARGE_FILES]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^_LARGE_FILES$]) -m4trace:configure.ac:87: -1- AH_OUTPUT([_LARGE_FILES], [/* Define for large files, on AIX-style hosts. */ -@%:@undef _LARGE_FILES]) -m4trace:configure.ac:87: -1- AH_OUTPUT([_DARWIN_USE_64_BIT_INODE], [/* Enable large inode numbers on Mac OS X 10.5. */ -#ifndef _DARWIN_USE_64_BIT_INODE -# define _DARWIN_USE_64_BIT_INODE 1 -#endif]) -m4trace:configure.ac:90: -1- AM_CONDITIONAL([DEBUG], [test x$debug = xtrue]) -m4trace:configure.ac:90: -1- AC_SUBST([DEBUG_TRUE]) -m4trace:configure.ac:90: -1- AC_SUBST_TRACE([DEBUG_TRUE]) -m4trace:configure.ac:90: -1- m4_pattern_allow([^DEBUG_TRUE$]) -m4trace:configure.ac:90: -1- AC_SUBST([DEBUG_FALSE]) -m4trace:configure.ac:90: -1- AC_SUBST_TRACE([DEBUG_FALSE]) -m4trace:configure.ac:90: -1- m4_pattern_allow([^DEBUG_FALSE$]) -m4trace:configure.ac:90: -1- _AM_SUBST_NOTMAKE([DEBUG_TRUE]) -m4trace:configure.ac:90: -1- _AM_SUBST_NOTMAKE([DEBUG_FALSE]) -m4trace:configure.ac:91: -1- AM_CONDITIONAL([EMBEDDED_FTS], [test x$embfts = xtrue]) -m4trace:configure.ac:91: -1- AC_SUBST([EMBEDDED_FTS_TRUE]) -m4trace:configure.ac:91: -1- AC_SUBST_TRACE([EMBEDDED_FTS_TRUE]) -m4trace:configure.ac:91: -1- m4_pattern_allow([^EMBEDDED_FTS_TRUE$]) -m4trace:configure.ac:91: -1- AC_SUBST([EMBEDDED_FTS_FALSE]) -m4trace:configure.ac:91: -1- AC_SUBST_TRACE([EMBEDDED_FTS_FALSE]) -m4trace:configure.ac:91: -1- m4_pattern_allow([^EMBEDDED_FTS_FALSE$]) -m4trace:configure.ac:91: -1- _AM_SUBST_NOTMAKE([EMBEDDED_FTS_TRUE]) -m4trace:configure.ac:91: -1- _AM_SUBST_NOTMAKE([EMBEDDED_FTS_FALSE]) -m4trace:configure.ac:92: -1- AM_CONDITIONAL([EXTERNAL_FTS], [test x$extfts = xtrue]) -m4trace:configure.ac:92: -1- AC_SUBST([EXTERNAL_FTS_TRUE]) -m4trace:configure.ac:92: -1- AC_SUBST_TRACE([EXTERNAL_FTS_TRUE]) -m4trace:configure.ac:92: -1- m4_pattern_allow([^EXTERNAL_FTS_TRUE$]) -m4trace:configure.ac:92: -1- AC_SUBST([EXTERNAL_FTS_FALSE]) -m4trace:configure.ac:92: -1- AC_SUBST_TRACE([EXTERNAL_FTS_FALSE]) -m4trace:configure.ac:92: -1- m4_pattern_allow([^EXTERNAL_FTS_FALSE$]) -m4trace:configure.ac:92: -1- _AM_SUBST_NOTMAKE([EXTERNAL_FTS_TRUE]) -m4trace:configure.ac:92: -1- _AM_SUBST_NOTMAKE([EXTERNAL_FTS_FALSE]) -m4trace:configure.ac:93: -1- AM_CONDITIONAL([SOLARIS], [test x$host_os_solaris = xtrue]) -m4trace:configure.ac:93: -1- AC_SUBST([SOLARIS_TRUE]) -m4trace:configure.ac:93: -1- AC_SUBST_TRACE([SOLARIS_TRUE]) -m4trace:configure.ac:93: -1- m4_pattern_allow([^SOLARIS_TRUE$]) -m4trace:configure.ac:93: -1- AC_SUBST([SOLARIS_FALSE]) -m4trace:configure.ac:93: -1- AC_SUBST_TRACE([SOLARIS_FALSE]) -m4trace:configure.ac:93: -1- m4_pattern_allow([^SOLARIS_FALSE$]) -m4trace:configure.ac:93: -1- _AM_SUBST_NOTMAKE([SOLARIS_TRUE]) -m4trace:configure.ac:93: -1- _AM_SUBST_NOTMAKE([SOLARIS_FALSE]) -m4trace:configure.ac:94: -1- AM_CONDITIONAL([LINUX], [test x$host_os_linux = xtrue]) -m4trace:configure.ac:94: -1- AC_SUBST([LINUX_TRUE]) -m4trace:configure.ac:94: -1- AC_SUBST_TRACE([LINUX_TRUE]) -m4trace:configure.ac:94: -1- m4_pattern_allow([^LINUX_TRUE$]) -m4trace:configure.ac:94: -1- AC_SUBST([LINUX_FALSE]) -m4trace:configure.ac:94: -1- AC_SUBST_TRACE([LINUX_FALSE]) -m4trace:configure.ac:94: -1- m4_pattern_allow([^LINUX_FALSE$]) -m4trace:configure.ac:94: -1- _AM_SUBST_NOTMAKE([LINUX_TRUE]) -m4trace:configure.ac:94: -1- _AM_SUBST_NOTMAKE([LINUX_FALSE]) -m4trace:configure.ac:95: -1- AM_CONDITIONAL([STATIC], [test x$static = xtrue]) -m4trace:configure.ac:95: -1- AC_SUBST([STATIC_TRUE]) -m4trace:configure.ac:95: -1- AC_SUBST_TRACE([STATIC_TRUE]) -m4trace:configure.ac:95: -1- m4_pattern_allow([^STATIC_TRUE$]) -m4trace:configure.ac:95: -1- AC_SUBST([STATIC_FALSE]) -m4trace:configure.ac:95: -1- AC_SUBST_TRACE([STATIC_FALSE]) -m4trace:configure.ac:95: -1- m4_pattern_allow([^STATIC_FALSE$]) -m4trace:configure.ac:95: -1- _AM_SUBST_NOTMAKE([STATIC_TRUE]) -m4trace:configure.ac:95: -1- _AM_SUBST_NOTMAKE([STATIC_FALSE]) -m4trace:configure.ac:98: -1- AC_CONFIG_FILES([Makefile src/Makefile tools/Makefile man/Makefile]) -m4trace:configure.ac:99: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs]) -m4trace:configure.ac:99: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) -m4trace:configure.ac:99: -1- m4_pattern_allow([^LIB@&t@OBJS$]) -m4trace:configure.ac:99: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs]) -m4trace:configure.ac:99: -1- AC_SUBST_TRACE([LTLIBOBJS]) -m4trace:configure.ac:99: -1- m4_pattern_allow([^LTLIBOBJS$]) -m4trace:configure.ac:99: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"]) -m4trace:configure.ac:99: -1- AC_SUBST([am__EXEEXT_TRUE]) -m4trace:configure.ac:99: -1- AC_SUBST_TRACE([am__EXEEXT_TRUE]) -m4trace:configure.ac:99: -1- m4_pattern_allow([^am__EXEEXT_TRUE$]) -m4trace:configure.ac:99: -1- AC_SUBST([am__EXEEXT_FALSE]) -m4trace:configure.ac:99: -1- AC_SUBST_TRACE([am__EXEEXT_FALSE]) -m4trace:configure.ac:99: -1- m4_pattern_allow([^am__EXEEXT_FALSE$]) -m4trace:configure.ac:99: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE]) -m4trace:configure.ac:99: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE]) -m4trace:configure.ac:99: -1- AC_SUBST_TRACE([top_builddir]) -m4trace:configure.ac:99: -1- AC_SUBST_TRACE([top_build_prefix]) -m4trace:configure.ac:99: -1- AC_SUBST_TRACE([srcdir]) -m4trace:configure.ac:99: -1- AC_SUBST_TRACE([abs_srcdir]) -m4trace:configure.ac:99: -1- AC_SUBST_TRACE([top_srcdir]) -m4trace:configure.ac:99: -1- AC_SUBST_TRACE([abs_top_srcdir]) -m4trace:configure.ac:99: -1- AC_SUBST_TRACE([builddir]) -m4trace:configure.ac:99: -1- AC_SUBST_TRACE([abs_builddir]) -m4trace:configure.ac:99: -1- AC_SUBST_TRACE([abs_top_builddir]) -m4trace:configure.ac:99: -1- AC_SUBST_TRACE([INSTALL]) -m4trace:configure.ac:99: -1- AC_SUBST_TRACE([MKDIR_P]) diff -Nru fpart-1.2.0/Changelog fpart-1.4.0/Changelog --- fpart-1.2.0/Changelog 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/Changelog 1970-01-01 00:00:00.000000000 +0000 @@ -1,114 +0,0 @@ -2020/01/10, 1.2.0 ('Joking') : - - fpsync: ability to set an unlimited number of files or an unlimited size - per sync job (fixes GH issue #9) - - fpart: exclude files earlier (fixes GH issue #14) - Before that change, excluded files would not make a directory empty and - still account for its size; excluded files are now considered absent. - That change does not apply when a directory size is computed after - a certain depth (option -d) has been reached (in that case, once the - maximum depth has been reached, every single file accounts for a directory - size). - - fpart: allow to specify paths with options '-y', '-Y', '-x' and '-X' - (fixes GH issue #17) - - fpart: raise limits for different internal types: the size of a file or - partition, the number of files inside a partition and the number of - partitions. That will make fpart(1) ready to handle bigger filesystems. - - fpart: accept human-friendly size formats for options -s, -p, -q and -r - - fpsync: accept human-friendly size formats for option -s - - fpsync: use 'command' instead of 'which' to find binaries - (fixes GH issue #20) -2018/11/15, 1.1.0 ('Reading') : - - fpart: options -D and -E now pack files if they are explicitly passed as - arguments - - fpsync: simplify and fix detection of remote URLs (fixes GH issue #2) - - fpsync: implement simple ETA when displaying status - - fts.h: portability fix for Solaris 10 and earlier (GH PR #4) - - fpart: fix build on Alpine Linux (GH PR #5) - - fpsync: add timestamps and part numbers to logs - - fpsync: add support for cpio copy tool (option -m) - - fpart: option -Z becomes option -zz (incremental -z) - - fpart: add option -zzz to add all directories to file lists (as empty) - - other: lower required autoconf version to 2.63 (GH issue #7) - - other: update RPM .spec file for CentOS and Feroda (GH issue #7) -2017/11/10, 1.0.0 ('Dancing'): - - fpart: update embedded fts(3) using FreeBSD 12-CURRENT's version - - fpart: add option -E to pack directories instead of files - - fpsync: add option -E to work with directories (enables rsync(1)'s --delete) - That option finally enables fpsync(1) to parallelize the so-called final - rsync(1) pass, needed to remove extra files with the --delete option! - (of course it can also be used on a regular basis instead of the usual - 'file' mode: you will get a perfect mirror without needing any extra - --delete pass) - - fpart: add option -0 to end filenames with a null (\0) character when - using option -o - - fpsync: use fpart's new option -0 in conjunction with rsync's --from0 option - to avoid failing on filenames with special characters - - fpsync: improve documentation -2017/04/27, 0.9.3 ('Funny words'): - - fpsync: add support for rsync URL as target - Suggested and tested by Harry Mangalam. Thanks, Harry! -2015/02/19, 0.9.2 ('What's that?'): - - fpsync: add option '-S' to use sudo(1) for filesystem crawling and synchronizations - - fpsync: add option '-O' to override default fpart(1) options - - add RPM .spec file (see the contribs/package/rpm directory) -2015/02/06, 0.9.1 ('Let's play together'): - - add tools/fpsync: a tool to sync directories in parallel using fpart and - rsync. See fpsync(1) for more details. - - fpart: print the number of files found in verbose mode only -2013/11/13, 0.9-1: - (this minor change only impacts tarball users, fpart code itself has not - changed) - - Backport the following patch to config.guess: - http://git.savannah.gnu.org/gitweb/?p=config.git;a=commitdiff;h=29900d3bff1ce445087ece5cb2cac425df1c2f74 - it adds support for ppcle and ppc64le architectures. - Submitted by: Madhu Pavan -2013/09/10, 0.9 ('I bite!'): - - Code cleanup - - Fix Debian bug #719338 (fix build on 32bit architectures) -2013/06/25, 0.8 ('Moving around'): - - Keep environ(7) when forking hooks - - Add sections about live mode and data migration in README - - Use autotools and get rid of manual Makefiles -2013/02/18, 0.7 ('Can I take it ?'): - - Added option -D to group leaf directories as single file entries - - Big options and doc update/cleanup - - Sync'd fts(3) code with current FreeBSD version (svn rev 245505) - - Embedded fts(3) can now be used on GNU/Linux - - Renamed option '-x' to '-b' - - Added options '-y', '-Y', '-x' and '-X' to include or exclude files -2013/01/21, 0.6 ('Very funny'): - - Options handling cleanup and various bugfixes - - Added FPART_PID and FPART_HOOKTYPE hook variables - - Added -z and -Z options to display empty directories -2013/01/09, 0.5 ('Cassounette'): - - Added option '-L' (live mode) - - Added options '-w' and '-W' (hooks to be used with live mode) - - Fixed build on Solaris 9 - - Removed option '-m' and associated code -2012/06/12, 0.4: - - Now builds on Solaris (using FreeBSD's fts(3)) - - Fix stack overflow when allocating file entry pointers' array - - Added preloading/rounding options -p, -q and -r. See fpart(1) - - Added more verbose messages (option '-v') - - Better error handling when unable to add file entries (mostly when - running out of memory) - - Verbose mode now accepts several levels - - Added option '-m' (disabled by default), that tries to lower physical - memory usage (at least during FS crawling) by using temporary file(s) - and mmap(2) facility -2011/12/06, 0.3: - - Switch to fts(3) - - Replaced getline(3) calls with fgets(3) for compatibility - - New "handle arbitrary values" (-a) option - - Strings handling cleanup (stop using FILENAME_MAX) - - Various smaller changes -2011/11/24, 0.2: - - New "follow symbolic links" (-l) option - - Ending slash (if present in input path) is now left to allow following an - initial symbolic link (without using option -l) - - New "do not cross file system boundaries" (-x) option - - Fpart now reads on stdin by default if no path is given - - File size are now written to stdout when displaying partition contents - - Various smaller changes -2011/11/18, 0.1: - - Initial version diff -Nru fpart-1.2.0/Changelog.md fpart-1.4.0/Changelog.md --- fpart-1.2.0/Changelog.md 1970-01-01 00:00:00.000000000 +0000 +++ fpart-1.4.0/Changelog.md 2021-09-26 21:00:40.000000000 +0000 @@ -0,0 +1,196 @@ +# Current: 1.4.0 +```nohighlight + 2021/09/24, 1.4.0 ('Joining together') : + - fpsync: allow special characters and white spaces within fpart options + Allows something like: fpsync ... -O "-y|foo bar|-y|*.txt" /src/ /dst/ + (fixes GH issue #33) + - fpsync: fix useless double call to sudo(1) in cpio(1) jobs + - fpsync: add support for 'tar' and 'tarify' tools +``` +# 1.3.0 +```nohighlight + 2021/05/08, 1.3.0 ('Cleaning room') : + - fpart: align get_size() and init_file_entries() behaviour and take + exclusions into account when computing a directory size. + - fpart: fix directory size computation when using options -y/-Y. + Before that change, -D and -E would have returned a size of 0 for a + directory included through options -y/-Y. + - fpart: fix detection of an unknown option + - fpart: various fixes on Darwin + - fpsync: mask broken pipe errors when dequeueing jobs (fixes GH issue #22) + - fpsync: fix bug where a job could remain resumable forever under certain + conditions. + - fpsync: fix detection of fpart exiting with errors + - fpsync: add prepare run option (-p) + - fpsync: add list runs options (-l) + - fpsync: add replay run option (-R) + - fpsync: add archive run option (-a) + Note for packagers: adds a new dependency to tar(1) + - fpsync: add delete run option (-D) + - fpsync: rework help and man page for clarification + - fpsync: add check for incompatible rsync option (--delete) + - fpsync: add send mail option (-M) + Note for packagers: adds a new dependency to mail(1) +``` +# 1.2.0 +```nohighlight + 2020/01/10, 1.2.0 ('Joking') : + - fpsync: ability to set an unlimited number of files or an unlimited size + per sync job (fixes GH issue #9) + - fpart: exclude files earlier (fixes GH issue #14) + Before that change, excluded files would not make a directory empty and + still account for its size; excluded files are now considered absent. + That change does not apply when a directory size is computed after + a certain depth (option -d) has been reached (in that case, once the + maximum depth has been reached, every single file accounts for a directory + size). + - fpart: allow to specify paths with options '-y', '-Y', '-x' and '-X' + (fixes GH issue #17) + - fpart: raise limits for different internal types: the size of a file or + partition, the number of files inside a partition and the number of + partitions. That will make fpart(1) ready to handle bigger filesystems. + - fpart: accept human-friendly size formats for options -s, -p, -q and -r + - fpsync: accept human-friendly size formats for option -s + - fpsync: use 'command' instead of 'which' to find binaries + (fixes GH issue #20) +``` +# 1.1.0 +```nohighlight + 2018/11/15, 1.1.0 ('Reading') : + - fpart: options -D and -E now pack files if they are explicitly passed as + arguments + - fpsync: simplify and fix detection of remote URLs (fixes GH issue #2) + - fpsync: implement simple ETA when displaying status + - fts.h: portability fix for Solaris 10 and earlier (GH PR #4) + - fpart: fix build on Alpine Linux (GH PR #5) + - fpsync: add timestamps and part numbers to logs + - fpsync: add support for cpio copy tool (option -m) + - fpart: option -Z becomes option -zz (incremental -z) + - fpart: add option -zzz to add all directories to file lists (as empty) + - other: lower required autoconf version to 2.63 (GH issue #7) + - other: update RPM .spec file for CentOS and Feroda (GH issue #7) +``` +# 1.0.0 +```nohighlight + 2017/11/10, 1.0.0 ('Dancing'): + - fpart: update embedded fts(3) using FreeBSD 12-CURRENT's version + - fpart: add option -E to pack directories instead of files + - fpsync: add option -E to work with directories (enables rsync(1)'s --delete) + That option finally enables fpsync(1) to parallelize the so-called final + rsync(1) pass, needed to remove extra files with the --delete option! + (of course it can also be used on a regular basis instead of the usual + 'file' mode: you will get a perfect mirror without needing any extra + --delete pass) + - fpart: add option -0 to end filenames with a null (\0) character when + using option -o + - fpsync: use fpart's new option -0 in conjunction with rsync's --from0 option + to avoid failing on filenames with special characters + - fpsync: improve documentation +``` +# 0.9.3 +```nohighlight + 2017/04/27, 0.9.3 ('Funny words'): + - fpsync: add support for rsync URL as target + Suggested and tested by Harry Mangalam. Thanks, Harry! +``` +# 0.9.2 +```nohighlight + 2015/02/19, 0.9.2 ('What's that?'): + - fpsync: add option '-S' to use sudo(1) for filesystem crawling and synchronizations + - fpsync: add option '-O' to override default fpart(1) options + - add RPM .spec file (see the contribs/package/rpm directory) +``` +# 0.9.1 +```nohighlight + 2015/02/06, 0.9.1 ('Let's play together'): + - add tools/fpsync: a tool to sync directories in parallel using fpart and + rsync. See fpsync(1) for more details. + - fpart: print the number of files found in verbose mode only +``` +# 0.9-1 +```nohighlight + 2013/11/13, 0.9-1: + (this minor change only impacts tarball users, fpart code itself has not + changed) + - Backport the following patch to config.guess: + http://git.savannah.gnu.org/gitweb/?p=config.git;a=commitdiff;h=29900d3bff1ce445087ece5cb2cac425df1c2f74 + it adds support for ppcle and ppc64le architectures. + Submitted by: Madhu Pavan +``` +# 0.9 +```nohighlight + 2013/09/10, 0.9 ('I bite!'): + - Code cleanup + - Fix Debian bug #719338 (fix build on 32bit architectures) +``` +# 0.8 +```nohighlight + 2013/06/25, 0.8 ('Moving around'): + - Keep environ(7) when forking hooks + - Add sections about live mode and data migration in README + - Use autotools and get rid of manual Makefiles +``` +# 0.7 +```nohighlight + 2013/02/18, 0.7 ('Can I take it ?'): + - Added option -D to group leaf directories as single file entries + - Big options and doc update/cleanup + - Sync'd fts(3) code with current FreeBSD version (svn rev 245505) + - Embedded fts(3) can now be used on GNU/Linux + - Renamed option '-x' to '-b' + - Added options '-y', '-Y', '-x' and '-X' to include or exclude files +``` +# 0.6 +```nohighlight + 2013/01/21, 0.6 ('Very funny'): + - Options handling cleanup and various bugfixes + - Added FPART_PID and FPART_HOOKTYPE hook variables + - Added -z and -Z options to display empty directories +``` +# 0.5 +```nohighlight + 2013/01/09, 0.5 ('Cassounette'): + - Added option '-L' (live mode) + - Added options '-w' and '-W' (hooks to be used with live mode) + - Fixed build on Solaris 9 + - Removed option '-m' and associated code +``` +# 0.4 +```nohighlight + 2012/06/12, 0.4: + - Now builds on Solaris (using FreeBSD's fts(3)) + - Fix stack overflow when allocating file entry pointers' array + - Added preloading/rounding options -p, -q and -r. See fpart(1) + - Added more verbose messages (option '-v') + - Better error handling when unable to add file entries (mostly when + running out of memory) + - Verbose mode now accepts several levels + - Added option '-m' (disabled by default), that tries to lower physical + memory usage (at least during FS crawling) by using temporary file(s) + and mmap(2) facility +``` +# 0.3 +```nohighlight + 2011/12/06, 0.3: + - Switch to fts(3) + - Replaced getline(3) calls with fgets(3) for compatibility + - New "handle arbitrary values" (-a) option + - Strings handling cleanup (stop using FILENAME_MAX) + - Various smaller changes +``` +# 0.2 +```nohighlight + 2011/11/24, 0.2: + - New "follow symbolic links" (-l) option + - Ending slash (if present in input path) is now left to allow following an + initial symbolic link (without using option -l) + - New "do not cross file system boundaries" (-x) option + - Fpart now reads on stdin by default if no path is given + - File size are now written to stdout when displaying partition contents + - Various smaller changes +``` +# 0.1 +```nohighlight + 2011/11/18, 0.1: + - Initial version +``` diff -Nru fpart-1.2.0/compile fpart-1.4.0/compile --- fpart-1.2.0/compile 2020-01-10 21:36:10.000000000 +0000 +++ fpart-1.4.0/compile 2021-09-26 21:01:06.000000000 +0000 @@ -3,7 +3,7 @@ scriptversion=2018-03-07.03; # UTC -# Copyright (C) 1999-2018 Free Software Foundation, Inc. +# Copyright (C) 1999-2020 Free Software Foundation, Inc. # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify @@ -53,7 +53,7 @@ MINGW*) file_conv=mingw ;; - CYGWIN*) + CYGWIN* | MSYS*) file_conv=cygwin ;; *) @@ -67,7 +67,7 @@ mingw/*) file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; - cygwin/*) + cygwin/* | msys/*) file=`cygpath -m "$file" || echo "$file"` ;; wine/*) diff -Nru fpart-1.2.0/configure fpart-1.4.0/configure --- fpart-1.2.0/configure 2020-01-10 21:36:10.000000000 +0000 +++ fpart-1.4.0/configure 2021-09-26 21:01:05.000000000 +0000 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for fpart 1.2.0. +# Generated by GNU Autoconf 2.69 for fpart 1.4.0. # # Report bugs to . # @@ -580,8 +580,8 @@ # Identity of this package. PACKAGE_NAME='fpart' PACKAGE_TARNAME='fpart' -PACKAGE_VERSION='1.2.0' -PACKAGE_STRING='fpart 1.2.0' +PACKAGE_VERSION='1.4.0' +PACKAGE_STRING='fpart 1.4.0' PACKAGE_BUGREPORT='ganael.laplanche@martymac.org' PACKAGE_URL='' @@ -1290,7 +1290,7 @@ # 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 fpart 1.2.0 to adapt to many kinds of systems. +\`configure' configures fpart 1.4.0 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1360,7 +1360,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of fpart 1.2.0:";; + short | recursive ) echo "Configuration of fpart 1.4.0:";; esac cat <<\_ACEOF @@ -1455,7 +1455,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -fpart configure 1.2.0 +fpart configure 1.4.0 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1878,7 +1878,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by fpart $as_me 1.2.0, which was +It was created by fpart $as_me 1.4.0, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2432,12 +2432,7 @@ 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 + MISSING="\${SHELL} '$am_aux_dir/missing'" fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then @@ -2742,7 +2737,7 @@ # Define the identity of the package. PACKAGE='fpart' - VERSION='1.2.0' + VERSION='1.4.0' cat >>confdefs.h <<_ACEOF @@ -5755,7 +5750,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by fpart $as_me 1.2.0, which was +This file was extended by fpart $as_me 1.4.0, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -5812,7 +5807,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -fpart config.status 1.2.0 +fpart config.status 1.4.0 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" @@ -6446,7 +6441,9 @@ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "Something went wrong bootstrapping makefile fragments - for automatic dependency tracking. Try re-running configure with the + for automatic dependency tracking. If GNU make was not used, consider + re-running the configure script with MAKE=\"gmake\" (or whatever is + necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking). See \`config.log' for more details" "$LINENO" 5; } diff -Nru fpart-1.2.0/configure.ac fpart-1.4.0/configure.ac --- fpart-1.2.0/configure.ac 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/configure.ac 2021-09-26 21:00:40.000000000 +0000 @@ -1,5 +1,5 @@ AC_PREREQ([2.63]) -AC_INIT([fpart], [1.2.0], [ganael.laplanche@martymac.org]) +AC_INIT([fpart], [1.4.0], [ganael.laplanche@martymac.org]) AC_CONFIG_SRCDIR([src/fpart.h]) AM_INIT_AUTOMAKE([foreign -Wall -Werror]) diff -Nru fpart-1.2.0/contribs/package/debian/changelog fpart-1.4.0/contribs/package/debian/changelog --- fpart-1.2.0/contribs/package/debian/changelog 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/contribs/package/debian/changelog 2021-09-26 21:00:26.000000000 +0000 @@ -1,3 +1,24 @@ +fpart (1.3.0-1) unstable; urgency=low + + * New upstream release + * Include README.md instead of symlink (closes #988871) + * debian/control + - Bump Standards-Version to 4.5.1 (no changes required) + - Add mailx to Depends + * debian/copyright + - Fpart is BSD-2-Clause, not BSD-3-Clause + - Add missing copyright for src/fts.{h,c} + + -- Ganael LAPLANCHE Mon, 10 May 2021 22:48:25 +0200 + +fpart (1.2.0-1) unstable; urgency=low + + * New upstream release + * debian/control + - Bump Standards-Version to 4.5.0 (no changes required) + + -- Ganael LAPLANCHE Tue, 21 Jan 2020 22:18:40 +0100 + fpart (1.1.0-1) unstable; urgency=low * New upstream release (closes: #881806) diff -Nru fpart-1.2.0/contribs/package/debian/control fpart-1.4.0/contribs/package/debian/control --- fpart-1.2.0/contribs/package/debian/control 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/contribs/package/debian/control 2021-09-26 21:00:26.000000000 +0000 @@ -4,14 +4,15 @@ Maintainer: Ganael LAPLANCHE Build-Depends: automake, debhelper-compat (=12) -Standards-Version: 4.4.0 +Standards-Version: 4.5.1 Homepage: http://sourceforge.net/projects/fpart/ Vcs-Browser: https://salsa.debian.org/debian/fpart/ Vcs-Git: https://salsa.debian.org/debian/fpart.git Package: fpart Architecture: any -Depends: cpio, +Depends: bsd-mailx | mailx, + cpio, rsync, sudo, ${misc:Depends}, diff -Nru fpart-1.2.0/contribs/package/debian/copyright fpart-1.4.0/contribs/package/debian/copyright --- fpart-1.2.0/contribs/package/debian/copyright 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/contribs/package/debian/copyright 2021-09-26 21:00:26.000000000 +0000 @@ -5,14 +5,46 @@ Files: * Copyright: - Copyright (c) 2011-2020 Ganael LAPLANCHE + Copyright (c) 2011-2021 Ganael LAPLANCHE +License: BSD-2-Clause + +Files: src/fts.h +Copyright: + Copyright (c) 1989, 1993 The Regents of the University of California +License: BSD-3-Clause + +Files: src/fts.c +Copyright: + Copyright (c) 1990, 1993, 1994 The Regents of the University of California License: BSD-3-Clause Files: debian/* Copyright: Copyright (c) 2013 Jean-Baptiste Denis - Copyright (c) 2014-2020 Ganael LAPLANCHE -License: BSD-3-Clause + Copyright (c) 2014-2021 Ganael LAPLANCHE +License: BSD-2-Clause + +License: BSD-2-Clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE HOLDERS OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: BSD-3-Clause Redistribution and use in source and binary forms, with or without diff -Nru fpart-1.2.0/contribs/package/debian/docs fpart-1.4.0/contribs/package/debian/docs --- fpart-1.2.0/contribs/package/debian/docs 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/contribs/package/debian/docs 2021-09-26 21:00:26.000000000 +0000 @@ -1,2 +1,2 @@ -README +README.md TODO diff -Nru fpart-1.2.0/COPYING fpart-1.4.0/COPYING --- fpart-1.2.0/COPYING 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/COPYING 2021-09-26 21:00:26.000000000 +0000 @@ -1,4 +1,4 @@ -Copyright (c) 2011-2020 Ganael LAPLANCHE +Copyright (c) 2011-2021 Ganael LAPLANCHE All rights reserved. Redistribution and use in source and binary forms, with or without diff -Nru fpart-1.2.0/debian/changelog fpart-1.4.0/debian/changelog --- fpart-1.2.0/debian/changelog 2020-01-21 21:18:40.000000000 +0000 +++ fpart-1.4.0/debian/changelog 2021-10-19 19:02:12.000000000 +0000 @@ -1,3 +1,20 @@ +fpart (1.4.0-1) unstable; urgency=low + + * New upstream release + * Include README.md instead of symlink (closes: #988871) + * debian/control + - Bump Standards-Version to 4.6.0 (no changes required) + - Add mailx to Depends + - Refine description + * debian/copyright + - Fpart is BSD-2-Clause, not BSD-3-Clause + - Add missing copyright for src/fts.{h,c} + * debian/watch + - Add PGP signature check + * Add debian/upstream/signing-key.asc file + + -- Ganael LAPLANCHE Tue, 19 Oct 2021 21:02:12 +0200 + fpart (1.2.0-1) unstable; urgency=low * New upstream release diff -Nru fpart-1.2.0/debian/control fpart-1.4.0/debian/control --- fpart-1.2.0/debian/control 2020-01-21 21:18:40.000000000 +0000 +++ fpart-1.4.0/debian/control 2021-10-02 15:20:23.000000000 +0000 @@ -3,15 +3,16 @@ Priority: optional Maintainer: Ganael LAPLANCHE Build-Depends: automake, - debhelper-compat (=12) -Standards-Version: 4.5.0 + debhelper-compat (=13) +Standards-Version: 4.6.0 Homepage: http://sourceforge.net/projects/fpart/ Vcs-Browser: https://salsa.debian.org/debian/fpart/ Vcs-Git: https://salsa.debian.org/debian/fpart.git Package: fpart Architecture: any -Depends: cpio, +Depends: bsd-mailx | mailx, + cpio, rsync, sudo, ${misc:Depends}, @@ -29,6 +30,6 @@ . Fpart also includes a live mode, which allows it to crawl very large filesystems and produce partitions in live. Hooks are available to act on - those partitions (e.g. immediately start a transfer using rsync(1)) without - having to wait for the filesystem traversal job to be finished. Used this way, - fpart can be seen as a powerful data migration tool. + those partitions (e.g. immediately start a transfer using rsync(1), cpio(1) + or tar(1)) without having to wait for the filesystem traversal job to be + finished. Used this way, fpart can be seen as a powerful data migration tool. diff -Nru fpart-1.2.0/debian/copyright fpart-1.4.0/debian/copyright --- fpart-1.2.0/debian/copyright 2019-08-27 07:44:08.000000000 +0000 +++ fpart-1.4.0/debian/copyright 2021-09-10 11:19:03.000000000 +0000 @@ -5,14 +5,46 @@ Files: * Copyright: - Copyright (c) 2011-2019 Ganael LAPLANCHE + Copyright (c) 2011-2021 Ganael LAPLANCHE +License: BSD-2-Clause + +Files: src/fts.h +Copyright: + Copyright (c) 1989, 1993 The Regents of the University of California +License: BSD-3-Clause + +Files: src/fts.c +Copyright: + Copyright (c) 1990, 1993, 1994 The Regents of the University of California License: BSD-3-Clause Files: debian/* Copyright: Copyright (c) 2013 Jean-Baptiste Denis - Copyright (c) 2014-2019 Ganael LAPLANCHE -License: BSD-3-Clause + Copyright (c) 2014-2021 Ganael LAPLANCHE +License: BSD-2-Clause + +License: BSD-2-Clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE HOLDERS OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: BSD-3-Clause Redistribution and use in source and binary forms, with or without diff -Nru fpart-1.2.0/debian/docs fpart-1.4.0/debian/docs --- fpart-1.2.0/debian/docs 2019-08-27 07:44:08.000000000 +0000 +++ fpart-1.4.0/debian/docs 2021-09-10 11:19:03.000000000 +0000 @@ -1,2 +1,2 @@ -README +README.md TODO diff -Nru fpart-1.2.0/debian/upstream/signing-key.asc fpart-1.4.0/debian/upstream/signing-key.asc --- fpart-1.2.0/debian/upstream/signing-key.asc 1970-01-01 00:00:00.000000000 +0000 +++ fpart-1.4.0/debian/upstream/signing-key.asc 2021-10-18 15:25:07.000000000 +0000 @@ -0,0 +1,65 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBF2fFJ4BEAC5gqS/DL3GUgdIdMRdaDO96VVHscZqZTMYZQN0CNrBuQVmWxdf +c3kMmHwVRBj0IT8hmNoqpmHMsx2CeTiV+I8ehj0sdULK8trcKJQABKe9zX87NuRu +fibNLyx9a2Nt3MVUMN5exviAfFJCceY4waI8voZDKm7FFmRPJUUS8TcMtluYGeBX +Rn5O/d8p0tLAwfkX95hONem14icn7YhLxbA4ZDc4nzWIEsmllKXBQ8H59C2JwFCJ +PpNC7Wdh2mqjEbzuxsEYc83t3ZWN6By1fHFQDrKLGpaUY0kn0PxXUJFxOfZ+1QQi +mg9u+wOoel1P6nrCU4gA2zKRdVkJ2REdarVziFeTxEO6a4uze/jw2iX+u17govzR +urCwng+TtBlgiBekLaFk2D7FW3MnEJWI9FaHzFWOu8yJgeBTOfakaMRPkYuwX3/n +7H6etL2IC0wHUVzozAKtwra6CLOGQgsz7QORGmH92YDp7+1YpZnJ+gnAhVpzT/sd +3088wlWYPIQtgZhiUYN2IeDmqTyzw71t1G8Iw9qa77CYgMqdUc4T8xzFmTrDyIPv +YKTz3n99BKXRVehfd6o61TELyexiMjGfdg8SfMyxB7IBWHmLcbqH2Yu4pP5net2r +tti58BdX1IQzNwLnVqpNermHw4M8n+DriUFfkWxFRFjMSfIf4WzWoXQ3YQARAQAB +tDBHYW5hZWwgTGFwbGFuY2hlIDxnYW5hZWwubGFwbGFuY2hlQG1hcnR5bWFjLm9y +Zz6JAlQEEwEIAD4WIQTkci0w9cbmOndNdjp6Ni2hT6CP1AUCXZ8UngIbAwUJBaOa +gAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRB6Ni2hT6CP1EgGD/95nMWtM4ex +GZZxRoyEIqftApjaC8fZdY0N7TgWS/KTJqfeZBPyPP0ffiiPlctxAaiKC8yJZYQ5 +BJ0mCIR/Tww5+0f3ZJ427RIASsbPg0UvnFgYCFLkAHU5jMs3Hl62jdqe2bH/WpFC +2lg2OS3iQF8m5oI83qlZ65zL4/nmMU4ni0mBnSOAJ3bxudo2/Z4QnQxwwWfnMYJT +xn8xcym3thhTS65PzpOZ+RlrTr4nX4aRSquZ0sY10VPmOgr1V7VKaXF5LcJJQdEG +5p4E8gXFKBFzjZoAcQqPoYSKLYaKv3K/9K3yabira12ryXhlrnOLsI+Gb1Z0vtnM +nNOsHccfsgGoAkfCjrcfuLK5/+7jbxGfYxfDORbx0ZC9gjMMnAwCmgo6jTYK34rG +jZg4G1tl8VUIFYLW0s+UPYn38W50dHXKq99K8X+rs9NDVrxcGWHBN8CYOZXewrSP +drMX/BhlGwd8TByN9FHSrlLFEFP5WwWKGtjInl8pZazwAXUy5iTFKh6Nrh5KU5K4 +gY1e4g1BpB1DeME+SBK1znJDXma7nfp6+OQtMF9QxzoTseD1CTnzSa+TGSoAD4I7 +XR4BzZcPxbndePWoxhr/3DiI0elQKppkIShDe+y8mzyex4BcnWwmk6Q9o3l25joy +VOcTMC0MTV2QDJUnaaWZII3Bx5hzchRUVbQnR2FuYWVsIExhcGxhbmNoZSA8bWFy +dHltYWNARnJlZUJTRC5vcmc+iQJUBBMBCAA+FiEE5HItMPXG5jp3TXY6ejYtoU+g +j9QFAl2fFsACGwMFCQWjmoAFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQejYt +oU+gj9SasQ/6AsdiKe/fqQIZtokyuLGAKtvDjQwlaTHAEAi4R6DSDGKHQNq9DqPZ +d8+kFGruDXxt2SQ3fuBdTFgy/Jqyzgb+wr3pqczkGFkuDTlXqoAKKZjq3QWVLSUc +uv+KjDDQUd7LT8k6/heeaPRF2gp5htEoSGaNh9YYV26jXq80MDvlndQX5ISgEOs5 +BJ3fuKB/b71sWsIwz5MFmLQ2amMl7yhRSd28Slm7u9pD7SFPQ1rxjw2IYSFuK8PI +sbGNNeXnAEUzUvop21TXFHLgOgsTww6+KdKeSROzyEqQ1wxMKlhP2+CJvyyOVLml +tQdVMq8P1dUYP6Y/suDrDl7a0Rp1G8RT04mcAGvYAvW37xBw4RcbTm3qH3HU7gcA +kwJtkhPeLlqwvbNT6+a35zv5HR1apN4SbU9nZe8CGExQj7cMWfBNSxeavah6M2kw +s+53RKGyFv2PyqrsjpI5mbGq62S9ciGTsmuKGhgasFjps8azJtv8fRi+aDqZCRbS +DWh9PaepQsOWOH+e6n2VFakdQiEVZ7LL1u9OpzXA95o59DIhfXsWP+uZiXDYbUIQ +vlKwj4Ma0q27UPwseG8SxzSW2396mxYTWmQmdedV2JeYnqyyydASxRGEyiR80h+5 +WoJlbbjPBJQv9jtqi3CAwzj3Q3jBKTd+GYeoKq6Z0mx1OAJceFpDyBe5Ag0EXZ8U +ngEQAN/cpt5lptcmyYbqQASxbq+AtLSGg1/GK9p1lHGj/jcNrxDxTzHkA22ofZ2C +yIhZP/INnE1i8o6S0F2RgI4FOPJvBaE1hNLwFvwHzn9uPThCUXZHYjXo4ikas0WY +yIlsCIcrTB0oHGclLfuGbAXprH6BzTrIh2ms4vzhEsQ3QbNM8BGcjZxy392ZVXUY +LXJtEhtf4i4QbkP6zNGxQkUMlf9khNedC5mt0uEdvynkpqlSCxNyAJZonFi/w5zg +BV2Gy9gPU5ZhoQ3FhrZJ1/q9oAZKwR5z8Y5tQ27gMkFqm3UgCRsGebIj4TF7hNNZ ++IQxxDXKaoAsk3OMq72ibAyqEse3c8blusFoDoXYrkAx7EVwHcBRRRbKdfv0J/qU +F1vD1Epuy+wr/kFhATLR35TtYCvGtxBhG8O+bHX+oyvjNCGagzqkQiiDq800lIgd +osO394AnkFZKZYTXwVYbxUpgKXPaVI4fOm7Ef2+JY6Rsb4hkQEuBm5ZkCAmWrLxo +uO6eZmwWO1sPZ9Rz9dHEECVxzIRNfvwK1khdrSH+LTNRu18yvJNFXeKF6lmnqn3o +qKqo1qh8KNsxdjqW2wT9J6/xVIKy+ZmeCir32BclHFRjRR+0t0fexooiR4nxEqhp +U5KE1HT2eMBXvvSd2Kw0WAvQp/ade2OtgxVlKjyar9LFKx6RABEBAAGJAjwEGAEI +ACYWIQTkci0w9cbmOndNdjp6Ni2hT6CP1AUCXZ8UngIbDAUJBaOagAAKCRB6Ni2h +T6CP1JmeD/9ilKJFc7runh3iU03mIcKiD01EQElQ64cQzFZEdW4KFImKSW7GIuRr +8j+VguI34ssBx639DaNY2x4Sbxp/d+euVo+/g7/nuxBEJABw6DyGZWcagL85Qe14 +aRlOUDq5aSzz1tJbZT8a3TEKsjbr1dOucBCLRPGAjDVF0k28dWIR/PT/usC/7Z5F +Kd1K+WlCzVRV/uim/jP60lLJMKMaQyO/NNsXUpLn9WaYY307qnCIgmJOVTmA9RrB +cnGNoba5NNTnw5EMIDkMc5oT4PTrf/vmwzI6hSw/y9VKb07g619ZtFG8UyGXIEJ1 +sVNdmnO5OOWzhmEOTI9CLWtmff2Mx1ObXNFnuiPgydBX81Y60jGgO50NMzL1W+5E +TtkRYmYGWnEIWxX53dTMj3X1VF/B1bEA8T1Uux/vZUChoNPQjB0aPjQbuoBRnalt +s8tqphTC2lXGmmntz9pQf5W/JQLxxoGtxNNr9WyjNgDOqWj936J3Zz71WJMACdql +AoSpGi5Dn30x/x+wrlqAAmDdw4+HbgRRzv8ay5gwCBZs0DX7Q2j0WBs+tJVdUTVR +xcgC2Q8qmhwkf2PJ06+FxyQSrjkzfjbjUymPNdKJctqwlCc3f4WS55Zl1vTpWQI9 +4mBVPOVuFbr/P+Z7OMxkVJeJ3/D2EOn9B2CD9/tG1Hv0pok6bgV0tw== +=Llq8 +-----END PGP PUBLIC KEY BLOCK----- diff -Nru fpart-1.2.0/debian/watch fpart-1.4.0/debian/watch --- fpart-1.2.0/debian/watch 2019-08-27 07:44:08.000000000 +0000 +++ fpart-1.4.0/debian/watch 2021-10-02 15:20:23.000000000 +0000 @@ -1,3 +1,3 @@ # See uscan(1) for format version=4 -https://sf.net/fpart/fpart-(.*)\.tar\.gz +opts=pgpsigurlmangle=s/$/.asc/ https://sf.net/fpart/fpart-(.*)\.tar\.gz diff -Nru fpart-1.2.0/depcomp fpart-1.4.0/depcomp --- fpart-1.2.0/depcomp 2020-01-10 21:36:10.000000000 +0000 +++ fpart-1.4.0/depcomp 2021-09-26 21:01:06.000000000 +0000 @@ -3,7 +3,7 @@ scriptversion=2018-03-07.03; # UTC -# Copyright (C) 1999-2018 Free Software Foundation, Inc. +# Copyright (C) 1999-2020 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 diff -Nru fpart-1.2.0/docs/fpsync-tree-change.txt fpart-1.4.0/docs/fpsync-tree-change.txt --- fpart-1.2.0/docs/fpsync-tree-change.txt 1970-01-01 00:00:00.000000000 +0000 +++ fpart-1.4.0/docs/fpsync-tree-change.txt 2021-09-26 21:00:26.000000000 +0000 @@ -0,0 +1,42 @@ +Below is a diff of file listings between a prepared run : + +$ fpsync -p /xxx/ /yyy/ + +and its finalization through -r: + +$ fpsync -r 1616710085-80157 + +It show file movements within involved directories. + +--- /tmp/before.list ++++ /tmp/after.list +@@ -1,18 +1,25 @@ + /tmp/fpsync + /tmp/fpsync/queue + /tmp/fpsync/queue/1616710085-80157 +-/tmp/fpsync/queue/1616710085-80157/fp_done + /tmp/fpsync/queue/1616710085-80157/info +-/tmp/fpsync/queue/1616710085-80157/0 +-/tmp/fpsync/queue/1616710085-80157/2 +-/tmp/fpsync/queue/1616710085-80157/1 ++/tmp/fpsync/queue/1616710085-80157/sl_done + /tmp/fpsync/work + /tmp/fpsync/work/1616710085-80157 ++/tmp/fpsync/work/1616710085-80157/0 ++/tmp/fpsync/work/1616710085-80157/1 ++/tmp/fpsync/work/1616710085-80157/fp_done ++/tmp/fpsync/work/1616710085-80157/2 + /tmp/fpsync/parts + /tmp/fpsync/parts/1616710085-80157 + /tmp/fpsync/parts/1616710085-80157/part.0 + /tmp/fpsync/parts/1616710085-80157/part.1 + /tmp/fpsync/parts/1616710085-80157/part.2 + /tmp/fpsync/log + /tmp/fpsync/log/1616710085-80157 ++/tmp/fpsync/log/1616710085-80157/1.stderr ++/tmp/fpsync/log/1616710085-80157/2.stdout ++/tmp/fpsync/log/1616710085-80157/0.stdout + /tmp/fpsync/log/1616710085-80157/fpart.log ++/tmp/fpsync/log/1616710085-80157/1.stdout ++/tmp/fpsync/log/1616710085-80157/0.stderr ++/tmp/fpsync/log/1616710085-80157/2.stderr diff -Nru fpart-1.2.0/docs/www.fpart.org/docs/changelog.md fpart-1.4.0/docs/www.fpart.org/docs/changelog.md --- fpart-1.2.0/docs/www.fpart.org/docs/changelog.md 1970-01-01 00:00:00.000000000 +0000 +++ fpart-1.4.0/docs/www.fpart.org/docs/changelog.md 2021-09-26 21:00:40.000000000 +0000 @@ -0,0 +1,196 @@ +# Current: 1.4.0 +```nohighlight + 2021/09/24, 1.4.0 ('Joining together') : + - fpsync: allow special characters and white spaces within fpart options + Allows something like: fpsync ... -O "-y|foo bar|-y|*.txt" /src/ /dst/ + (fixes GH issue #33) + - fpsync: fix useless double call to sudo(1) in cpio(1) jobs + - fpsync: add support for 'tar' and 'tarify' tools +``` +# 1.3.0 +```nohighlight + 2021/05/08, 1.3.0 ('Cleaning room') : + - fpart: align get_size() and init_file_entries() behaviour and take + exclusions into account when computing a directory size. + - fpart: fix directory size computation when using options -y/-Y. + Before that change, -D and -E would have returned a size of 0 for a + directory included through options -y/-Y. + - fpart: fix detection of an unknown option + - fpart: various fixes on Darwin + - fpsync: mask broken pipe errors when dequeueing jobs (fixes GH issue #22) + - fpsync: fix bug where a job could remain resumable forever under certain + conditions. + - fpsync: fix detection of fpart exiting with errors + - fpsync: add prepare run option (-p) + - fpsync: add list runs options (-l) + - fpsync: add replay run option (-R) + - fpsync: add archive run option (-a) + Note for packagers: adds a new dependency to tar(1) + - fpsync: add delete run option (-D) + - fpsync: rework help and man page for clarification + - fpsync: add check for incompatible rsync option (--delete) + - fpsync: add send mail option (-M) + Note for packagers: adds a new dependency to mail(1) +``` +# 1.2.0 +```nohighlight + 2020/01/10, 1.2.0 ('Joking') : + - fpsync: ability to set an unlimited number of files or an unlimited size + per sync job (fixes GH issue #9) + - fpart: exclude files earlier (fixes GH issue #14) + Before that change, excluded files would not make a directory empty and + still account for its size; excluded files are now considered absent. + That change does not apply when a directory size is computed after + a certain depth (option -d) has been reached (in that case, once the + maximum depth has been reached, every single file accounts for a directory + size). + - fpart: allow to specify paths with options '-y', '-Y', '-x' and '-X' + (fixes GH issue #17) + - fpart: raise limits for different internal types: the size of a file or + partition, the number of files inside a partition and the number of + partitions. That will make fpart(1) ready to handle bigger filesystems. + - fpart: accept human-friendly size formats for options -s, -p, -q and -r + - fpsync: accept human-friendly size formats for option -s + - fpsync: use 'command' instead of 'which' to find binaries + (fixes GH issue #20) +``` +# 1.1.0 +```nohighlight + 2018/11/15, 1.1.0 ('Reading') : + - fpart: options -D and -E now pack files if they are explicitly passed as + arguments + - fpsync: simplify and fix detection of remote URLs (fixes GH issue #2) + - fpsync: implement simple ETA when displaying status + - fts.h: portability fix for Solaris 10 and earlier (GH PR #4) + - fpart: fix build on Alpine Linux (GH PR #5) + - fpsync: add timestamps and part numbers to logs + - fpsync: add support for cpio copy tool (option -m) + - fpart: option -Z becomes option -zz (incremental -z) + - fpart: add option -zzz to add all directories to file lists (as empty) + - other: lower required autoconf version to 2.63 (GH issue #7) + - other: update RPM .spec file for CentOS and Feroda (GH issue #7) +``` +# 1.0.0 +```nohighlight + 2017/11/10, 1.0.0 ('Dancing'): + - fpart: update embedded fts(3) using FreeBSD 12-CURRENT's version + - fpart: add option -E to pack directories instead of files + - fpsync: add option -E to work with directories (enables rsync(1)'s --delete) + That option finally enables fpsync(1) to parallelize the so-called final + rsync(1) pass, needed to remove extra files with the --delete option! + (of course it can also be used on a regular basis instead of the usual + 'file' mode: you will get a perfect mirror without needing any extra + --delete pass) + - fpart: add option -0 to end filenames with a null (\0) character when + using option -o + - fpsync: use fpart's new option -0 in conjunction with rsync's --from0 option + to avoid failing on filenames with special characters + - fpsync: improve documentation +``` +# 0.9.3 +```nohighlight + 2017/04/27, 0.9.3 ('Funny words'): + - fpsync: add support for rsync URL as target + Suggested and tested by Harry Mangalam. Thanks, Harry! +``` +# 0.9.2 +```nohighlight + 2015/02/19, 0.9.2 ('What's that?'): + - fpsync: add option '-S' to use sudo(1) for filesystem crawling and synchronizations + - fpsync: add option '-O' to override default fpart(1) options + - add RPM .spec file (see the contribs/package/rpm directory) +``` +# 0.9.1 +```nohighlight + 2015/02/06, 0.9.1 ('Let's play together'): + - add tools/fpsync: a tool to sync directories in parallel using fpart and + rsync. See fpsync(1) for more details. + - fpart: print the number of files found in verbose mode only +``` +# 0.9-1 +```nohighlight + 2013/11/13, 0.9-1: + (this minor change only impacts tarball users, fpart code itself has not + changed) + - Backport the following patch to config.guess: + http://git.savannah.gnu.org/gitweb/?p=config.git;a=commitdiff;h=29900d3bff1ce445087ece5cb2cac425df1c2f74 + it adds support for ppcle and ppc64le architectures. + Submitted by: Madhu Pavan +``` +# 0.9 +```nohighlight + 2013/09/10, 0.9 ('I bite!'): + - Code cleanup + - Fix Debian bug #719338 (fix build on 32bit architectures) +``` +# 0.8 +```nohighlight + 2013/06/25, 0.8 ('Moving around'): + - Keep environ(7) when forking hooks + - Add sections about live mode and data migration in README + - Use autotools and get rid of manual Makefiles +``` +# 0.7 +```nohighlight + 2013/02/18, 0.7 ('Can I take it ?'): + - Added option -D to group leaf directories as single file entries + - Big options and doc update/cleanup + - Sync'd fts(3) code with current FreeBSD version (svn rev 245505) + - Embedded fts(3) can now be used on GNU/Linux + - Renamed option '-x' to '-b' + - Added options '-y', '-Y', '-x' and '-X' to include or exclude files +``` +# 0.6 +```nohighlight + 2013/01/21, 0.6 ('Very funny'): + - Options handling cleanup and various bugfixes + - Added FPART_PID and FPART_HOOKTYPE hook variables + - Added -z and -Z options to display empty directories +``` +# 0.5 +```nohighlight + 2013/01/09, 0.5 ('Cassounette'): + - Added option '-L' (live mode) + - Added options '-w' and '-W' (hooks to be used with live mode) + - Fixed build on Solaris 9 + - Removed option '-m' and associated code +``` +# 0.4 +```nohighlight + 2012/06/12, 0.4: + - Now builds on Solaris (using FreeBSD's fts(3)) + - Fix stack overflow when allocating file entry pointers' array + - Added preloading/rounding options -p, -q and -r. See fpart(1) + - Added more verbose messages (option '-v') + - Better error handling when unable to add file entries (mostly when + running out of memory) + - Verbose mode now accepts several levels + - Added option '-m' (disabled by default), that tries to lower physical + memory usage (at least during FS crawling) by using temporary file(s) + and mmap(2) facility +``` +# 0.3 +```nohighlight + 2011/12/06, 0.3: + - Switch to fts(3) + - Replaced getline(3) calls with fgets(3) for compatibility + - New "handle arbitrary values" (-a) option + - Strings handling cleanup (stop using FILENAME_MAX) + - Various smaller changes +``` +# 0.2 +```nohighlight + 2011/11/24, 0.2: + - New "follow symbolic links" (-l) option + - Ending slash (if present in input path) is now left to allow following an + initial symbolic link (without using option -l) + - New "do not cross file system boundaries" (-x) option + - Fpart now reads on stdin by default if no path is given + - File size are now written to stdout when displaying partition contents + - Various smaller changes +``` +# 0.1 +```nohighlight + 2011/11/18, 0.1: + - Initial version +``` diff -Nru fpart-1.2.0/docs/www.fpart.org/docs/fpart.md fpart-1.4.0/docs/www.fpart.org/docs/fpart.md --- fpart-1.2.0/docs/www.fpart.org/docs/fpart.md 1970-01-01 00:00:00.000000000 +0000 +++ fpart-1.4.0/docs/www.fpart.org/docs/fpart.md 2021-09-26 21:00:26.000000000 +0000 @@ -0,0 +1,166 @@ + +![Fpart](img/Fpart.png) + +# What is fpart ? + +Fpart is a UNIX CLI tool that splits a list of directories and file trees into +a certain number of partitions, trying to produce partitions with the same size +and number of files. +It can also produce partitions with a given number of files or of a limited +size. Fpart uses a bin packing algorithm to optimize space utilization amongst +partitions. + +Once generated, partitions are either printed as file lists to stdout (default) +or to files. Those lists can then be used by third party programs. + +Fpart also includes a live mode, which allows it to crawl very large filesystems +and produce partitions in live. Hooks are available to act on those partitions +(e.g. immediately start a transfer using rsync(1) or cpio(1)) without having to +wait for the filesystem traversal job to be finished. Used that way, fpart can +be seen as a powerful basis for a data migration tool. + +Fpart can also generate lists of directories instead of files. That mode can +be useful to enable usage of options requiring overall knowledge of directories +such as rsync's --delete. + +As a demonstration of fpart possibilities, a tool called fpsync is provided in +the tools/ directory (see related documentation for more details). + +# Examples + +The following will produce 3 partitions, with (approximatively) the same size +and number of files. Three files: "var-parts.[0-2]", are generated as output : + + $ fpart -n 3 -o var-parts /var + + $ ls var-parts* + var-parts.0 var-parts.1 var-parts.2 + + $ head -n 2 var-parts.0 + /var/some/file1 + /var/some/file2 + +The following will produce partitions of 4.3 GB, containing music files ready +to be burnt to a DVD (for example). Files "music-parts.[0-n]", are generated +as output : + + $ fpart -s 4617089843 -o music-parts /path/to/my/music + +The following will produce partitions containing 10000 files each by examining +/usr first and then /home and display only partition 0 on stdout : + + $ find /usr ! -type d | fpart -f 10000 -i - /home | grep '^0:' + +The following will produce two partitions by re-using du(1) output. Fpart will +not examine the filesystem but instead re-use arbitrary values printed by du(1) +and sort them : + + $ du * | fpart -n 2 -a + +# Live mode + +By default, fpart will wait for FS crawling to terminate before generating and +displaying partitions. If you use the live mode (option -L), fpart will display +each partition as soon as it is complete. You can combine that option with +hooks; they will be triggered just before (pre-part hook, option -w) or after +(post-part hook, option -W) partitions' completion. + +Hooks provide several environment variables (see fpart(1)); they are a +convenient way of getting information about fpart's and partition's current +states. For example, ${FPART_PARTFILENAME} will contain the name of the output +file of the partition that has just been generated; using that variable within a +post-part hook permits starting manipulating the files just after partition +generation. + +See the following example : + + $ mkdir foo && touch foo/{bar,baz} + $ fpart -L -f 1 -o /tmp/part.out -W \ + 'echo == ${FPART_PARTFILENAME} == ; cat ${FPART_PARTFILENAME}' foo/ + == /tmp/part.out.0 == + foo/bar + == /tmp/part.out.1 == + foo/baz + +This example crawls foo/ in live mode (option -L). For each file (option -f, +1 file per partition), it generates a partition into /tmp/part.out. +(option -o; is the partition index and will be automatically added by fpart) +and executes the following post-part hook (option -W) : + + echo == ${FPART_PARTFILENAME} == ; cat ${FPART_PARTFILENAME} + +This hook will display the name of current partition's output file name as well +as display its contents. + +# Migrating data (without fpsync) + +Here is a more complex example that will show you how to use fpart, GNU Parallel +and Rsync to split up a directory and immediately schedule data synchronization +of smaller lists of files, while FS crawling goes on. We will be synchronizing +data from /data/src to /data/dest. + +First, go to the source directory (as rsync's --files-from option takes a file +list relative to its source directory) : + + $ cd /data/src + +Then, run fpart from here : + + $ fpart -L -f 10000 -x '.snapshot' -x '.zfs' -zz -o /tmp/part.out -W \ + '/usr/local/bin/sem -j 3 + "/usr/local/bin/rsync -av --files-from=${FPART_PARTFILENAME} + /data/src/ /data/dest/"' . + +This command will start fpart in live mode (option -L), making it generate +partitions during FS crawling. Fpart will produce partitions containing at most +10000 files each (option -f), will skip files and folders named '.snapshot' or +'.zfs' (option -x) and will list empty and non-accessible directories (option +-zz; that option is necessary when working with rsync to make sure the whole file +tree will be re-created within the destination directory). Last but not least, +each partition will be written to /tmp/part.out. (option -o) and used within +the post-part hook (option -W), run immediately by fpart once the partition is +complete : + + /usr/local/bin/sem -j 3 + "/usr/local/bin/rsync -av --files-from=${FPART_PARTFILENAME} /data/src/ /data/dest/" + +This hook is itself a nested command. It will run GNU Parallel's sem scheduler +(any other scheduler would do) to run at most 3 rsync jobs in parallel. + +The scheduler will finally trigger the following command : + + /usr/local/bin/rsync -av --files-from=${FPART_PARTFILENAME} /data/src/ /data/dest/ + +where ${FPART_PARTFILENAME} will be part of rsync's environment when it runs +and contains the file name of the partition that has just been generated. + +That's all, folks ! Pretty simple, isn't it ? + +In this example, FS crawling and data transfer are run from the same -local- +machine, but you can use it as the basis of a much sophisticated solution: at +$work, by using a cluster of machines connected to our filers through NFS and +running Open Grid Scheduler, we successully migrated over 400 TB of data. + +Note: several successive fpart runs can be launched using the above example; +you will perform incremental synchronizations. That is, deleted files from the +source directory will not be removed from destination unless rsync's --delete +option is used. Unfortunately, this option cannot be used with a list of files +(files that do not appear in the list are just ignored). To use the --delete +option in conjunction with fpart, you *have* to provide rsync's --files-from +option a list of directories (only); that can be performed using fpart's -E +option. + +# Limitations + +* Fpart will *NOT* modify data, it will *NOT* split your files ! + + As a consequence, if you have a directory containing several small files + and a huge one, it will be unable to produce partitions with the same size. + Fpart does magic, but not that much ;-) + +* Fpart will not deduplicate paths ! + + If you provide several paths to fpart, it will examine all of them. If those + paths overlap or if the same path is specified more than once, same files + will appear more than once within generated partitions. This is not a bug, + fpart does not deduplicate FS crawling results. diff -Nru fpart-1.2.0/docs/www.fpart.org/docs/fpsync.md fpart-1.4.0/docs/www.fpart.org/docs/fpsync.md --- fpart-1.2.0/docs/www.fpart.org/docs/fpsync.md 1970-01-01 00:00:00.000000000 +0000 +++ fpart-1.4.0/docs/www.fpart.org/docs/fpsync.md 2021-09-26 21:00:26.000000000 +0000 @@ -0,0 +1,252 @@ + +![Fpsync](img/Fpsync.png) + +# What is Fpsync ? + +To demonstrate fpart possibilities, a program called 'fpsync' is provided within +the tools/ directory. This tool is a shell script that wraps fpart(1) and +rsync(1), cpio(1) or tar(1) to launch several synchronization jobs in parallel +as presented in the previous section, but while the previous example used GNU +Parallel to schedule transfers, fpsync provides its own -embedded- scheduler. +It can execute several synchronization processes locally or launch them on +several nodes (workers) through SSH. + +Despite its initial "proof of concept" status, fpsync has quickly evolved into +a powerful (yet simple to use) migration tool and has been successfully used +to boost migration of several hundreds of TB of data (initially at $work but it +has also been tested by several organizations such as UCI, Intel and Amazon ; +see the 'See also' section at the end of this document). + +In addition to being very fast (as transfers start during FS crawling and are +parallelized), fpsync is able to resume or replay synchronization "runs" (see +options -r and -R) and presents an overall progress status. It also has a small +memory footprint compared to rsync itself when migrating filesystems with a big +number of files. + +Last but not least, fpsync is very easy to set up and only requires a few +(common) software to run: fpart, rsync/cpio/tar, a POSIX shell, sudo and ssh. + +See fpsync(1) to learn more about that tool and get a list of all supported +options. + +--- + +**Here is a simple representation of how it works :** + + fpsync [args] /data/src/ /data/dst/ + | + +-- fpart (live mode) crawls /data/src/, generates parts.[1] + sync jobs -> + | \ \ \ + | \ \ +___ part. #n + job #n + | \ \ + | \ +______ part. #1 + job #1 + | \ + | +_________ part. #0 + job #0 + | + +-- fpsync scheduler, executes jobs either locally or remotely -----------> + \ \ \ + \ \ +___ sync job #n... --------------------------------------> + + \ \ | + \ +______ sync job #1 ----------------------------------> | + \ | + +_________ sync job #0 -----------------------------> + + / + / + Filesystem tree rebuilt and synchronized! <------------------+ + + [1] Either containing file lists (default mode) or directory lists (option -E) + +--- + +# Examples + +In its default mode, fpsync uses rsync(1) and works with file lists to perform +incremental (only) synchronizations. You can choose to use cpio(1) or tar(1) +instead of rsync(1) with option '-m' (see +[Cpio and Tar support](#cpio-and-tar-support) below). + +The following examples show two typical usage. + +The command : + + $ fpsync -n 4 -f 1000 -s $((100 * 1024 * 1024)) \ + /data/src/ /data/dst/ + +will synchronize /data/src/ to /data/dst/ using 4 local workers, each one +transferring at most 1000 files and 100 MB per synchronization job. + +The command : + + $ fpsync -n 8 -f 1000 -s $((100 * 1024 * 1024)) \ + -w login@machine1 -w login@machine2 -d /mnt/nfs/fpsync \ + /data/src/ /data/dst/ + +will synchronize /data/src/ to /data/dst/ using the same transfer limits, but +through 8 concurrent synchronization jobs spread over two machines (machine1 and +machine2). Those machines must both be able to access /data/src/ and /data/dst/, +as well as /mnt/nfs/fpsync, which is fpsync's shared working directory. + +As previously mentioned, those two examples work with file lists and will +perform *incremental* synchronizations. As a consequence, they will require a +final -manual- 'rsync --delete' pass to delete extra files from the /data/dst/ +directory. + +# The final pass + +(A.K.A "Directory mode") + +If you want to avoid that final pass, use fpsync's option -E (only compatible +with rsync tool). That option will make fpsync work with a list of *directories* +(instead of files) and will (forcibly) enable rsync's --delete option with each +synchronization job. The counterpart of using that mode is that directory lists +are coarse-grained and will probably be less balanced than file lists. The best +option is probably to run several incremental jobs and keep the -E option to +speed up the final pass only. + +(you can read the file +[Solving_the_final_pass_challenge.txt](https://github.com/martymac/fpart/blob/master/docs/Solving_the_final_pass_challenge.txt) +in the docs/ directory for more details about fpsync's option -E) + +# Cpio and Tar support + +Fpsync's option '-m' allows you to use cpio(1) or tar(1) instead of rsync(1) to +copy files. Those tools are much faster than rsync(1) but there is a catch: when +re-creating a complex file tree, missing parent directories are created +on-the-fly. In that case, original directory metadata (e.g. timestamps) are +*not* copied from source. + +To overcome that limitation, fpsync uses fpart's -zzz option to ask fpart to +also pack every single directory (0-sized) with file lists. Making directories +appear in file lists will ask the external tool to copy their metadata when the +directory is processed (of course, fpart ensures that a parent directory entry +appears after files beneath. If the parent directory is missing it is first +created on the fly, then directory metadata is updated). + +This works fine with a single cpio or tar process (fpsync's option -n 1) but +not with 2 or more parallel processes which can treat partitions out-of-order. +Indeed, if several workers copy files to the same directory at the same time, +it is possible that the parent directory's original metadata gets re-applied +while another worker is still adding files to that directory. That can occur if +a directory list spreads over more than one partition. In such a situation, +original metadata (here, mtime) gets overwritten while new files get added to +the directory. + +That race condition is un-avoidable (fpart would have to guarantee the +directory entry belongs to the *same* partition as its files beneath, that +would probably lead to un-balanced partitions as well as increased -and useless- +complexity). + +You've been warned. Anyway, maybe you do not care about copying original +directory mtimes. If this is the case, you can ignore that situation. If you +care about them, running a second pass of fpsync will fix the timestamps. + +# Tarify tool + +Tar can be used in a special mode called 'tarify'. In that mode, fpsync(1) will +*not* copy the original file tree but generate tarballs (one per partition) into +the specified destination directory. + +Extracting (merging) those tarball to a another directory will reproduce the +original file tree. + +# Notes about GNU cpio + +Developments have been made with BSD cpio (FreeBSD version). Fpsync will work +with GNU cpio too but there are small behaviour differences you must be aware +of : + +- for an unknown reason, GNU cpio will not apply mtime to the main target +directory (AKA './' when received by cpio). + +- when using GNU cpio, you will get the following warnings when performing a +second pass : + + not created: newer or same age version exists + +You can ignore those warnings as that second pass will fix directory timestamps +anyway. + +Warning: if you pass option '-u' to cpio (trough fpsync's option '-o') to get +rid of those messages, you will possibly re-touch directory mtimes (loosing +original ones). Also, be aware of what that option implies: re-transferring +every single file. + +# Notes about hard links + +Rsync can detect and replicate hard links with option -H but that will NOT work +with fpsync because rsync collects hard links' information on a per-run basis. + +So, as for directory metadata (see above), being able to propagate hard links +with fpsync would require from fpart the guarantee that all related links belong +to the same partition. + +Unfortunately, this is not something fpart can do because, in live mode (used by +fpsync to start synchronization as soon as possible), it crawls the filesystem +as it comes. As a consequence, there is no mean to know if a hard link connected +to a file already written to a partition (and probably already synchronized +through an independent rsync process) will appear later or not. Also, in +non-live mode, trying to group related hardlinks into the same partitions would +propably lead to un-balanced partitions as well as complexify code. + +If you need to propagate hard links, you have 3 options: + +* Re-create hard links on the target, but this is not optimal as you may not + want to link 2 files together, even if they are similar + +* Pre-copy hard linked files together (using find's '-type f -links +1' options) + before running fpsync. That will work but linked files that have changed + since your first synchronization will be converted back to regular files when + running fpsync + +* Use a final -monolithic- rsync pass with option -H that will re-create them + +# SSH options + +When dealing with SSH options and keys, keep in mind that fpsync uses SSH for +two kinds of operations : + +* data synchronization (when ssh is forked by rsync), + can occur locally or on remote workers (if using any) +* communication with workers (when ssh is forked by fpsync), + only occurs locally (on the scheduler) + +If you need specific options for the first case, you can pass ssh options by +using rsync's option '-e' (through fpsync's option '-o') and triple-escaping +the quote characters : + + $ fpsync [...] -o "-lptgoD -v --numeric-ids -e \\\"ssh -i ssh_key\\\"" \ + /data/src/ login@remote:/data/dst/ + +The key will have to be present and accessible on all workers. + +Fpsync does not offer options to deal with the second case. You will have to +tune your ssh config file to enable passwordless communication with workers. +Something like : + + $ cat ~/.ssh/config + Host remote + IdentityFile /path/to/the/passwordless/key + +should work. + +# Limitations + +* Fpsync only synchronizes directory contents ! + + Contrary to rsync, fpsync enforces the final '/' on the source directory. It + means that directory *contents* are synchronized, not the source directory + itself (i.e. you will *not* get a subdirectory of the name of the source + directory in the target directory after synchronization). + +# Portability considerations + +On OpenIndiana, if you need to use fpsync(1), the script will need adjustments : + +* Change shebang from /bin/sh to a more powerful shell that understands local + variables, such as /bin/bash. +* Adapt fpart(1) and grep(1) paths (use ggrep(1) instead of grep(1) as default + grep(1) doesn't know about -E flag). +* Remove -0 and --quiet options from cpio call (they are not supported). As a + consequence, also remove -0 from fpart options. + +On Alpine Linux, you will need the 'fts-dev' package to build fpart(1). Binary files /tmp/tmpv3ymmutv/HxfKIjJZTt/fpart-1.2.0/docs/www.fpart.org/docs/img/favicon.ico and /tmp/tmpv3ymmutv/jo2SixVSoi/fpart-1.4.0/docs/www.fpart.org/docs/img/favicon.ico differ Binary files /tmp/tmpv3ymmutv/HxfKIjJZTt/fpart-1.2.0/docs/www.fpart.org/docs/img/Fpart.png and /tmp/tmpv3ymmutv/jo2SixVSoi/fpart-1.4.0/docs/www.fpart.org/docs/img/Fpart.png differ diff -Nru fpart-1.2.0/docs/www.fpart.org/docs/img/Fpart.svg fpart-1.4.0/docs/www.fpart.org/docs/img/Fpart.svg --- fpart-1.2.0/docs/www.fpart.org/docs/img/Fpart.svg 1970-01-01 00:00:00.000000000 +0000 +++ fpart-1.4.0/docs/www.fpart.org/docs/img/Fpart.svg 2021-09-26 21:00:26.000000000 +0000 @@ -0,0 +1,85 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + /FP/art/ + + + + Binary files /tmp/tmpv3ymmutv/HxfKIjJZTt/fpart-1.2.0/docs/www.fpart.org/docs/img/Fpsync.png and /tmp/tmpv3ymmutv/jo2SixVSoi/fpart-1.4.0/docs/www.fpart.org/docs/img/Fpsync.png differ diff -Nru fpart-1.2.0/docs/www.fpart.org/docs/img/Fpsync.svg fpart-1.4.0/docs/www.fpart.org/docs/img/Fpsync.svg --- fpart-1.2.0/docs/www.fpart.org/docs/img/Fpsync.svg 1970-01-01 00:00:00.000000000 +0000 +++ fpart-1.4.0/docs/www.fpart.org/docs/img/Fpsync.svg 2021-09-26 21:00:26.000000000 +0000 @@ -0,0 +1,85 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + /FP/sync/ + + + + diff -Nru fpart-1.2.0/docs/www.fpart.org/docs/img/Ico.svg fpart-1.4.0/docs/www.fpart.org/docs/img/Ico.svg --- fpart-1.2.0/docs/www.fpart.org/docs/img/Ico.svg 1970-01-01 00:00:00.000000000 +0000 +++ fpart-1.4.0/docs/www.fpart.org/docs/img/Ico.svg 2021-09-26 21:00:26.000000000 +0000 @@ -0,0 +1,89 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + /FP/ + + + + + diff -Nru fpart-1.2.0/docs/www.fpart.org/docs/index.md fpart-1.4.0/docs/www.fpart.org/docs/index.md --- fpart-1.2.0/docs/www.fpart.org/docs/index.md 1970-01-01 00:00:00.000000000 +0000 +++ fpart-1.4.0/docs/www.fpart.org/docs/index.md 2021-09-26 21:00:26.000000000 +0000 @@ -0,0 +1,117 @@ + +![Fpart](img/Fpart.png) + +# About + +Fpart is a **F**ilesystem **part**itioner. It helps you sort file trees and +pack them into bags (called "partitions"). It is developed in C and available +under the BSD license. + +# Key features + +## Fpart + +* Blazing fast crawling! +* Generates partitions on a number/file number/size basis +* Provides a live mode with hooks to act immediately on generated file lists +* Supports generating partitions from arbitrary input (e.g. du's output) + +## Fpsync + +* Parallelizes rsync(1), cpio(1) or tar(1) jobs +* Supports using a SSH cluster for efficient data migrations +* Starts transfers while FS crawling still goes on +* Supports remote target URLs when using rsync(1) +* Parallelizes your final rsync(1) pass too! +* Provides transfer runs' status/resume/replay +* Nearly no dependencies (mostly shell and common tools) + +# Compatibility + +Fpart is primarily developed on FreeBSD. + +It has been successfully tested on : + +* FreeBSD (i386, amd64) +* GNU/Linux (x86_64, arm) +* Solaris 9, 10 (Sparc, i386) +* OpenIndiana (i386) +* NetBSD (amd64, alpha) +* Mac OS X 10.6, 10.8, 11.2 (x86_64, arm64) + +and will probably work on other operating systems too ! + +# Installing from a package + +Packages are already available for many operating systems : + +* [FreeBSD](https://www.freshports.org/sysutils/fpart) +* [Debian](https://packages.debian.org/fpart) +* [Ubuntu](https://packages.ubuntu.com/search?keywords=fpart) +* [CentOS/Fedora](https://src.fedoraproject.org/rpms/fpart) +* [NixOS](https://search.nixos.org/packages?query=fpart) +* [MacOS (Homebrew)](https://formulae.brew.sh/formula/fpart) + +so you can use your favourite package manager to get ready. + +# Installing from source + +If a pre-compiled package is not available for your favourite operating system, +installing from sources is simple. First, get the source files : + + $ git clone "https://github.com/martymac/fpart.git" + $ cd fpart + +Then, if there is no 'configure' script in +the main directory, run : + + $ autoreconf -i + +(autoreconf comes from the GNU autotools), then run : + + $ ./configure + $ make + +to configure and build fpart. + +Finally, install fpart (as root) : + + # make install + +# Author / Licence + +Fpart has been written by [Ganael LAPLANCHE](mailto:ganael.laplanche@martymac.org) +and is available under the BSD license (see COPYING for details). + +Source code is hosted on : + +* [Martymac.org](http://contribs.martymac.org) +* [Github](https://github.com/martymac/fpart) +* [Sourceforge](http://www.sourceforge.net/projects/fpart) + +Documentation is available on : + +* [Fpart.org](http://www.fpart.org) + +Thanks to Jean-Baptiste Denis for having given me the idea of this program ! + +# Donation + +If fpart (or fpsync) is useful to you or your organization, you can make a donation here: + +[![paypal](https://www.paypalobjects.com/en_US/FR/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HSL25ZED2PS62&source=url) + +That will help me not running out of tea :) + +# Contributions + +FTS code originally comes from FreeBSD : + + lib/libc/gen/fts.c -> src/fts.c + include/fts.h -> src/fts.h + +It has been slightly modified for portability and is available under the BSD +license. + +Also, big thanks to my beloved wife and daughters for their invaluable support +and more particularly for the discussion we had about Fpart logo :) diff -Nru fpart-1.2.0/docs/www.fpart.org/docs/links.md fpart-1.4.0/docs/www.fpart.org/docs/links.md --- fpart-1.2.0/docs/www.fpart.org/docs/links.md 1970-01-01 00:00:00.000000000 +0000 +++ fpart-1.4.0/docs/www.fpart.org/docs/links.md 2021-09-26 21:00:26.000000000 +0000 @@ -0,0 +1,71 @@ +# Resources + +* See [fpart(1)](https://www.freebsd.org/cgi/man.cgi?query=fpart&apropos=0&sektion=0&manpath=FreeBSD+12.2-RELEASE+and+Ports&arch=default&format=html) + and [fpsync(1)](https://www.freebsd.org/cgi/man.cgi?query=fpsync&apropos=0&sektion=0&manpath=FreeBSD+12.2-RELEASE+and+Ports&arch=default&format=html) for more details. + +* Article about data migration using fpart and rsync (GNU Linux Magazine #164 - October 2013, french) : + [Parallélisez vos transferts de fichiers](http://connect.ed-diamond.com/GNU-Linux-Magazine/GLMF-164/Parallelisez-vos-transferts-de-fichiers) + +* The [partition problem](http://en.wikipedia.org/wiki/Partition_problem) and + [bin packing problem](http://en.wikipedia.org/wiki/Bin_packing_problem) + descriptions on Wikipedia + +* I am sure you will also be interested in [Packo](https://github.com/jbd/packo) + which was developed by Jean-Baptiste Denis as the original proof of concept. + See also his newer tool, [Msrsync](https://github.com/jbd/msrsync) + +# Projects using fpart + +* Harry Mangalam, from UCI, has an excellent article about data transfer + [here](http://moo.nac.uci.edu/~hjm/HOWTO_move_data.html). Check out his + parsyncfp tool [here](https://github.com/hjmangalam/parsyncfp). + +* Dave Altschuler wrote [dsync](https://github.com/daltschu11/dsync), a tool + using fpart + rsync or rclone that can sync to the cloud + +* [K-rsync](https://doughgle.github.io/k-rsync/) uses fpart and the kubernetes + Job scheduler to transfer files between PVCs + +# Fpsync users (Research / Education) + +* [Bioteam](https://www.slideshare.net/chrisdag/practical-petabyte-pushing) + used fpart + fpsync + rsync to migrate 2 PB of data + +* [FAS RC (Harvard University)](https://www.rc.fas.harvard.edu/resources/documentation/transferring-data-on-the-cluster/#fpsync) + writes about fpsync to move data on Harvard's Odyssey cluster + +* [Standford University's](https://www.sherlock.stanford.edu/docs/software/list/) + Sherlock HPC cluster offers fpart as a file management tool + +* The [QCIF](https://www.qriscloud.org.au/support/qriscloud-documentation/94-awoonga-software) + (Queensland Cyber Infrastructure Foundation) offers fpart on QRIScloud + +* [Steve French](https://lwn.net/Articles/789623/) + mentioned fpart and fpsync at 2019 Linux Storage, Filesystem, and Memory-Management Summit (LSFMM) + +* [Nantes University's](https://bird2cluster.univ-nantes.fr/news/rappel_transfert_02/) + BiRD cluster provides a fpart module + +* [Sweden's NSC](https://www.nsc.liu.se/support/storage/snic-centrestorage/moving-data/) + (National Supercomputer Centre)'s Centre Storage suggests using fpsync + +* [National Energy Research Scientific Computing Center](https://www.spectrumscaleug.org/wp-content/uploads/2019/10/HPCXXL19-NERSC-Site-update.pdf) + (NERSC) writes about fpsync + +# Fpsync users (Cloud providers) + +* [Intel](http://www.intel.com/content/dam/www/public/us/en/documents/white-papers/data-migration-enterprise-edition-for-lustre-software-white-paper.pdf) + has written a white paper about data migration, presenting fpart and fpsync + +* [Amazon](http://docs.aws.amazon.com/solutions/latest/efs-to-efs-backup/considerations.html) + uses fpart and fpsync in their EFS-to-EFS backup solution. See also their + [Amazon Elastic File System (Amazon EFS) for File Storage](https://www.slideshare.net/AmazonWebServices/amazon-elastic-file-system-amazon-efs-for-file-storage) presentation + (AWS Storage Days, New York, September 6-8, 2017) and the + [Amazon EFS performance tutorial](https://github.com/aws-samples/amazon-efs-tutorial/tree/master/performance), + both presenting fpart and fpsync capabilities + +* [Microsoft](https://docs.microsoft.com/en-us/azure/storage/files/storage-troubleshoot-linux-file-connection-problems#slow-file-copying-to-and-from-azure-files-in-linux) + suggests using fpart and fpsync to speed-up file transfers on Azure + +* [Alibaba (Aliyun)](https://www.alibabacloud.com/help/doc-detail/128764.htm) + has the same advice diff -Nru fpart-1.2.0/docs/www.fpart.org/mkdocs.yml fpart-1.4.0/docs/www.fpart.org/mkdocs.yml --- fpart-1.2.0/docs/www.fpart.org/mkdocs.yml 1970-01-01 00:00:00.000000000 +0000 +++ fpart-1.4.0/docs/www.fpart.org/mkdocs.yml 2021-09-26 21:00:26.000000000 +0000 @@ -0,0 +1,12 @@ +site_name: Fpart.org +site_url: http://www.fpart.org +repo_url: https://github.com/martymac/fpart +edit_uri: edit/master/docs/www.fpart.org/docs +nav: + - Home: index.md + - Fpart: fpart.md + - Fpsync: fpsync.md + - Changelog: changelog.md + - Links: links.md +# See: https://mkdocs.github.io/mkdocs-bootswatch/#litera +theme: litera diff -Nru fpart-1.2.0/install-sh fpart-1.4.0/install-sh --- fpart-1.2.0/install-sh 2020-01-10 21:36:10.000000000 +0000 +++ fpart-1.4.0/install-sh 2021-09-26 21:01:06.000000000 +0000 @@ -1,7 +1,7 @@ #!/bin/sh # install - install a program, script, or datafile -scriptversion=2018-03-11.20; # UTC +scriptversion=2020-11-14.01; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the @@ -69,6 +69,11 @@ # Desired mode of installed file. mode=0755 +# Create dirs (including intermediate dirs) using mode 755. +# This is like GNU 'install' as of coreutils 8.32 (2020). +mkdir_umask=22 + +backupsuffix= chgrpcmd= chmodcmd=$chmodprog chowncmd= @@ -99,18 +104,28 @@ --version display version info and exit. -c (ignored) - -C install only if different (preserve the last data modification time) + -C install only if different (preserve data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. + -p pass -p to $cpprog. -s $stripprog installed files. + -S SUFFIX attempt to back up existing files, with suffix SUFFIX. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG + +By default, rm is invoked with -f; when overridden with RMPROG, +it's up to you to specify -f if you want it. + +If -S is not specified, no backups are attempted. + +Email bug reports to bug-automake@gnu.org. +Automake home page: https://www.gnu.org/software/automake/ " while test $# -ne 0; do @@ -137,8 +152,13 @@ -o) chowncmd="$chownprog $2" shift;; + -p) cpprog="$cpprog -p";; + -s) stripcmd=$stripprog;; + -S) backupsuffix="$2" + shift;; + -t) is_target_a_directory=always dst_arg=$2 @@ -255,6 +275,10 @@ dstdir=$dst test -d "$dstdir" dstdir_status=$? + # Don't chown directories that already exist. + if test $dstdir_status = 0; then + chowncmd="" + fi else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command @@ -301,22 +325,6 @@ 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 @@ -326,52 +334,49 @@ 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. - ;; - *) - # Note that $RANDOM variable is not portable (e.g. dash); Use it - # here however when possible just to lower collision chance. - tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ - - trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0 - - # Because "mkdir -p" follows existing symlinks and we likely work - # directly in world-writeable /tmp, make sure that the '$tmpdir' - # directory is successfully created first before we actually test - # 'mkdir -p' feature. - if (umask $mkdir_umask && - $mkdirprog $mkdir_mode "$tmpdir" && - exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 - then - if test -z "$dir_arg" || { - # Check for POSIX incompatibilities with -m. - # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or - # other-writable bit of parent directory when it shouldn't. - # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. - test_tmpdir="$tmpdir/a" - ls_ld_tmpdir=`ls -ld "$test_tmpdir"` - case $ls_ld_tmpdir in - d????-?r-*) different_mode=700;; - d????-?--*) different_mode=755;; - *) false;; - esac && - $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { - ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` - test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" - } - } - then posix_mkdir=: - fi - rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" - else - # Remove any dirs left behind by ancient mkdir implementations. - rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null - fi - trap '' 0;; - esac;; + # The $RANDOM variable is not portable (e.g., dash). Use it + # here however when possible just to lower collision chance. + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ + + trap ' + ret=$? + rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null + exit $ret + ' 0 + + # Because "mkdir -p" follows existing symlinks and we likely work + # directly in world-writeable /tmp, make sure that the '$tmpdir' + # directory is successfully created first before we actually test + # 'mkdir -p'. + if (umask $mkdir_umask && + $mkdirprog $mkdir_mode "$tmpdir" && + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 + then + if test -z "$dir_arg" || { + # Check for POSIX incompatibilities with -m. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or + # other-writable bit of parent directory when it shouldn't. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. + test_tmpdir="$tmpdir/a" + ls_ld_tmpdir=`ls -ld "$test_tmpdir"` + case $ls_ld_tmpdir in + d????-?r-*) different_mode=700;; + d????-?--*) different_mode=755;; + *) false;; + esac && + $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { + ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" + } + } + then posix_mkdir=: + fi + rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" + else + # Remove any dirs left behind by ancient mkdir implementations. + rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null + fi + trap '' 0;; esac if @@ -382,7 +387,7 @@ then : else - # The umask is ridiculous, or mkdir does not conform to POSIX, + # 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. @@ -411,7 +416,7 @@ prefixes= else if $posix_mkdir; then - (umask=$mkdir_umask && + (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 @@ -451,7 +456,18 @@ 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") && + (umask $cp_umask && + { test -z "$stripcmd" || { + # Create $dsttmp read-write so that cp doesn't create it read-only, + # which would cause strip to fail. + if test -z "$doit"; then + : >"$dsttmp" # No need to fork-exec 'touch'. + else + $doit touch "$dsttmp" + fi + } + } && + $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # @@ -477,6 +493,13 @@ then rm -f "$dsttmp" else + # If $backupsuffix is set, and the file being installed + # already exists, attempt a backup. Don't worry if it fails, + # e.g., if mv doesn't support -f. + if test -n "$backupsuffix" && test -f "$dst"; then + $doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null + fi + # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || @@ -491,9 +514,9 @@ # file should still install successfully. { test ! -f "$dst" || - $doit $rmcmd -f "$dst" 2>/dev/null || + $doit $rmcmd "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && - { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } + { $doit $rmcmd "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 diff -Nru fpart-1.2.0/Makefile.in fpart-1.4.0/Makefile.in --- fpart-1.2.0/Makefile.in 2020-01-10 21:36:10.000000000 +0000 +++ fpart-1.4.0/Makefile.in 2021-09-26 21:01:06.000000000 +0000 @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.1 from Makefile.am. +# Makefile.in generated by automake 1.16.3 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2018 Free Software Foundation, Inc. +# Copyright (C) 1994-2020 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -155,7 +155,7 @@ CTAGS = ctags CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) -am__DIST_COMMON = $(srcdir)/Makefile.in COPYING README TODO compile \ +am__DIST_COMMON = $(srcdir)/Makefile.in COPYING TODO compile \ config.guess config.sub install-sh missing DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) @@ -195,6 +195,8 @@ DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best DIST_TARGETS = dist-gzip +# Exists only to be overridden by the user if desired. +AM_DISTCHECK_DVI_TARGET = dvi distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' @@ -524,6 +526,10 @@ tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) +dist-zstd: distdir + tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst + $(am__post_remove_distdir) + dist-tarZ: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @@ -566,6 +572,8 @@ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ + *.tar.zst*) \ + zstd -dc $(distdir).tar.zst | $(am__untar) ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) @@ -581,7 +589,7 @@ $(DISTCHECK_CONFIGURE_FLAGS) \ --srcdir=../.. --prefix="$$dc_install_base" \ && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ @@ -742,7 +750,7 @@ am--refresh check check-am clean clean-cscope clean-generic \ cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \ - distcheck distclean distclean-generic distclean-tags \ + dist-zstd distcheck distclean distclean-generic distclean-tags \ distcleancheck distdir distuninstallcheck dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ diff -Nru fpart-1.2.0/man/fpart.1 fpart-1.4.0/man/fpart.1 --- fpart-1.2.0/man/fpart.1 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/man/fpart.1 2021-09-26 21:00:26.000000000 +0000 @@ -1,4 +1,4 @@ -.\" Copyright (c) 2011-2020 Ganael LAPLANCHE +.\" Copyright (c) 2011-2021 Ganael LAPLANCHE .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without @@ -169,11 +169,7 @@ .Dq Li * , .Dq Li \&? ) may be used. -It does not apply when computing size of directories to be added once a maximum -depth (see option -.Fl d -) has been reached (in that case, once the maximum depth has been reached, every -single file accounts for a directory size). +Include patterns are ignored when computing size of directories. .It Ic -Y Ar pattern Same as .Fl y @@ -199,11 +195,7 @@ .Dq Li * , .Dq Li \&? ) may be used. -It does not apply when computing size of directories to be added once a maximum -depth (see option -.Fl d -) has been reached (in that case, once the maximum depth has been reached, every -single file accounts for a directory size). +Exclude patterns also apply when computing size of directories. .It Ic -X Ar pattern Same as .Fl x @@ -231,7 +223,8 @@ Treat un-readable directories as empty, causing them to be packed anyway. .It Fl zzz Pack all directories (as empty). -Useful when 3rd party tools need directory entries to update them (e.g. cpio). +Useful when 3rd party tools need directory entries to update them (e.g. cpio or +tar). .It Ic -d Ar depth After a certain .Ar depth , diff -Nru fpart-1.2.0/man/fpsync.1 fpart-1.4.0/man/fpsync.1 --- fpart-1.2.0/man/fpsync.1 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/man/fpsync.1 2021-09-26 21:00:26.000000000 +0000 @@ -1,4 +1,4 @@ -.\" Copyright (c) 2015-2020 Ganael LAPLANCHE +.\" Copyright (c) 2015-2021 Ganael LAPLANCHE .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without @@ -27,34 +27,45 @@ .Os .Sh NAME .Nm fpsync -.Nd Synchronize directories in parallel using fpart + rsync or cpio +.Nd Synchronize directories in parallel using fpart and an external tool .Sh SYNOPSIS .Nm -.Op Fl h -.Op Fl v -.Op Fl m Ar tool +.Op Fl p .Op Fl n Ar jobs +.Op Fl w Ar wrks +.Op Fl m Ar tool .Op Fl f Ar files .Op Fl s Ar size .Op Fl E -.Op Fl w Ar wrks -.Op Fl d Ar shdir -.Op Fl t Ar tmpdir -.Op Fl r Ar jobname .Op Fl o Ar toolopts .Op Fl O Ar fpartopts .Op Fl S +.Op Fl t Ar tmpdir +.Op Fl d Ar shdir +.Op Fl M Ar mailaddr +.Op Fl v .Pa src_dir/ .Pa dst_url/ +.Nm +.Fl l +.Nm +.Fl r Ar runid +.Op Fl R +.Cm [OPTIONS...] +.Nm +.Fl a Ar runid +.Nm +.Fl D Ar runid .Sh DESCRIPTION The .Nm tool synchronizes directories in parallel using .Xr fpart 1 and -.Xr rsync 1 +.Xr rsync 1 , +.Xr cpio 1 or -.Xr cpio 1 . +.Xr tar 1 . It computes subsets of .Pa src_dir/ and spawns jobs to synchronize them to @@ -67,36 +78,70 @@ This makes .Nm a good tool for migrating large filesystems. -.Sh OPTIONS +.Sh COMMON OPTIONS .Bl -tag -width indent -.It Fl h -Print help +.It Ic -t Ar tmpdir +Set +.Nm +temporary directory to +.Ar tmpdir . +This directory remains local and does not need to be shared amongst SSH workers +when using the +.Fl w +option. +Default: +.Pa /tmp/fpsync +.It Ic -d Ar shdir +Set +.Nm +shared directory to +.Ar shdir . +This option is mandatory when using SSH workers and set by default to +.Ar tmpdir +when running locally. +The specified directory must be an absolute path ; it will be used to handle +communications with SSH hosts (sharing partitions and log files) and, as a +consequence, must be made available to all participating hosts (e.g. through a +r/w NFS mount), including the master one running +.Nm . +.It Ic -M Ar mailaddr +Send an e-mail to +.Ar mailaddr +after a run. +Multiple -space-separated- addresses can be specified. +That option requires the +.Xr mail 1 +client to be installed and configured on the master host running +.Nm . .It Fl v Verbose mode. Can be be specified several times to increase verbosity level. +.It Fl h +Print help +.El +.Sh SYNCHRONIZATION OPTIONS +.Bl -tag -width indent .It Ic -m Ar tool External copy .Ar tool used to synchronize files. Currently supported tools are: -.Sy rsync +.Sy rsync , +.Sy cpio , +.Sy tar , and -.Sy cpio . +.Sy tarify . Default: .Sy rsync . When using .Sy cpio +or +.Sy tar and more than one worker, directory timestamps may not be replicated. A second pass will fix them. -See the -.Sy README -file for more details. -.It Ic -n Ar jobs -Start -.Ar jobs -concurrent sync jobs (either locally or remotely, see below). -Default: -.Sy 2 +Special tool +.Sy tarify +generates tarballs into destination directory. .It Ic -f Ar files Transfer at most .Ar files @@ -128,79 +173,29 @@ .Sy WARNING ! ! ! ), making it a good candidate for a final (cleaning) pass after several incremental passes using standard (file) mode. -.It Ic -w Ar wrks -Use remote SSH -.Ar wrks -to synchronize files. -Synchronization jobs are executed locally when this option is not set. -.Ar wrks -is a space-separated list of login@machine connection strings and can be -specified several times. -You must be allowed to connect to those machines using a SSH key to avoid user -interaction. -.It Ic -d Ar shdir -Set -.Nm -shared directory to -.Ar shdir . -This option is mandatory when using SSH workers and set by default to -.Ar tmpdir -when running locally. -The specified directory must be an absolute path ; it will be used to handle -communications with SSH hosts (sharing partitions and log files) and, as a -consequence, must be made available to all participating hosts (e.g. through a -r/w NFS mount), including the master one running -.Nm . -.It Ic -t Ar tmpdir -Set -.Nm -temporary directory to -.Ar tmpdir . -This directory remains local and does not need to be shared amongst SSH workers -when using the -.Fl w -option. -Default: -.Pa /tmp/fpsync -.It Ic -r Ar jobname -Resume job -.Ar jobname -and restart synchronizing remaining partitions from a previous run. -.Ar jobname -can be obtained using verbose mode (see option -.Fl v ) . -Note that filesystem crawling is skipped when resuming a previous run. -As a consequence, options -.Fl f , -.Fl s , -.Fl o , -.Fl O , -.Fl S , -.Pa src_dir/ , -and -.Pa dst_url/ -are ignored. .It Ic -o Ar toolopts Override default -.Xr rsync 1 -or +.Xr rsync 1 , .Xr cpio 1 +or +.Xr tar 1 options with .Ar toolopts . Use this option with care as certain options are incompatible with a parallel usage (e.g. rsync's .Cm --delete ) . Default for rsync: -.Cm -lptgoD -v --numeric-ids . -Empty for cpio. +.Dq -lptgoD -v --numeric-ids . +Empty for cpio, tar and tarify. .It Ic -O Ar fpartopts Override default .Xr fpart 1 options with .Ar fpartopts . +Options and values must be separated by a pipe character. .br Default: -.Cm -x .zfs -x .snapshot* -x .ckpt +.Dq -x|.zfs|-x|.snapshot*|-x|.ckpt . .It Fl S Sudo mode. Use @@ -217,16 +212,93 @@ .Xr rsync 1 . All participating workers must be able to reach that target. .El +.Sh JOB HANDLING AND DISPATCHING OPTIONS +.Bl -tag -width indent +.It Ic -n Ar jobs +Start +.Ar jobs +concurrent sync jobs (either locally or remotely, see below) per run. +Default: +.Sy 2 +.It Ic -w Ar wrks +Use remote SSH +.Ar wrks +to synchronize files. +Synchronization jobs are executed locally when this option is not set. +.Ar wrks +is a space-separated list of login@machine connection strings and can be +specified several times. +You must be allowed to connect to those machines using a SSH key to avoid user +interaction. +.El +.Sh RUN HANDLING OPTIONS +.Bl -tag -width indent +.It Fl p +Prepare mode: prepare, test synchronization environment, start +.Xr fpart 1 +and create partitions but do +.Sy not +actually start transfers. +That mode can be used to create a run that can then be resumed using option +.Fl r . +.It Fl l +List previous runs and their status. +.It Ic -r Ar runid +Resume run +.Ar runid +and restart synchronizing remaining partitions from a previous run. +.Ar runid +is displayed when using verbose mode (see option +.Fl v ) +or prepare mode (option +.Fl p ) +and can be retrieved afterwards using option +.Fl l . +Note that filesystem crawling is skipped when resuming a previous run. +As a consequence, options +.Fl m , +.Fl f , +.Fl s , +.Fl E , +.Fl o , +.Fl O , +.Fl S , +.Pa src_dir/ , +and +.Pa dst_url/ +are ignored. +.It Fl R +Replay mode: when using option +.Fl r , +force re-synchronizing run's all partitions instead of remaining ones only. +That mode can be useful to skip filesystem crawling when you have to replay a +final pass several times and you know directory structure has not changed in +the meantime (you may miss files if you use replay mode with a standard, +file-based, run). +.It Ic -a Ar runid +Archive run +.Ar runid +(including partition files, logs, queue and work directories) to +.Ar tmpdir . +That option requires the +.Xr tar 1 +client to be installed on the master host running +.Nm . +.It Ic -D Ar runid +Delete run +.Ar runid +(including partition files, logs, queue and work directories). +.El .Sh RUNNING FPSYNC Each .Nm run generates a unique -.Ar jobname , +.Ar runid , which is displayed in verbose mode (see option .Fl v ) and within log files. You can use that -.Ar jobname +.Ar runid to resume a previous run (see option .Fl r ) . .Nm @@ -295,9 +367,7 @@ .Sh LIMITATIONS Parallelizing .Xr rsync 1 -or -.Xr cpio 1 -makes several options not usable, such as rsync's +can make several options not usable, such as .Cm --delete . If your source directory is live while .Nm @@ -336,10 +406,25 @@ are synchronized, not the source directory itself (i.e. you will not get a subdirectory of the name of the source directory in the target directory after synchronization). +.sp +Before starting filesystem crawling, +.Nm +changes its current working directory to +.Pa src_dir/ +and generates partitions containing +.Sy relative +paths (all starting with './'). +This is important to keep in mind when modifying +.Ar toolopts +or +.Ar fpartopts +dealing with file or directory paths. .Sh SEE ALSO .Xr cpio 1 , .Xr fpart 1 , +.Xr mail 1 , .Xr rsync 1 , +.Xr tar 1 , .Xr sudo 8 .Sh AUTHOR, AVAILABILITY Fpsync has been written by diff -Nru fpart-1.2.0/man/Makefile.in fpart-1.4.0/man/Makefile.in --- fpart-1.2.0/man/Makefile.in 2020-01-10 21:36:10.000000000 +0000 +++ fpart-1.4.0/man/Makefile.in 2021-09-26 21:01:06.000000000 +0000 @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.1 from Makefile.am. +# Makefile.in generated by automake 1.16.3 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2018 Free Software Foundation, Inc. +# Copyright (C) 1994-2020 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, diff -Nru fpart-1.2.0/missing fpart-1.4.0/missing --- fpart-1.2.0/missing 2020-01-10 21:36:10.000000000 +0000 +++ fpart-1.4.0/missing 2021-09-26 21:01:06.000000000 +0000 @@ -3,7 +3,7 @@ scriptversion=2018-03-07.03; # UTC -# Copyright (C) 1996-2018 Free Software Foundation, Inc. +# Copyright (C) 1996-2020 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify diff -Nru fpart-1.2.0/README fpart-1.4.0/README --- fpart-1.2.0/README 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/README 1970-01-01 00:00:00.000000000 +0000 @@ -1,547 +0,0 @@ - _______ ____ __ _ __ - / / ___| _ \ / /_ _ _ __| |_ / / - / /| |_ | |_) / / _` | '__| __| / / - / / | _| | __/ / (_| | | | |_ / / - /_/ |_| |_| /_/ \__,_|_| \__/_/ - -What is fpart ? -=============== - -Fpart is a tool that helps you sort file trees and pack them into bags (called -"partitions"). It is developed in C and available under the BSD license. - -It splits a list of directories and file trees into a certain number of -partitions, trying to produce partitions with the same size and number of files. -It can also produce partitions with a given number of files or of a limited -size. Fpart uses a bin packing algorithm to optimize space utilization amongst -partitions. - -Once generated, partitions are either printed as file lists to stdout (default) -or to files. Those lists can then be used by third party programs. - -Fpart also includes a live mode, which allows it to crawl very large filesystems -and produce partitions in live. Hooks are available to act on those partitions -(e.g. immediately start a transfer using rsync(1) or cpio(1)) without having to -wait for the filesystem traversal job to be finished. Used that way, fpart can -be seen as a powerful basis for a data migration tool. - -Fpart can also generate lists of directories instead of files. That mode can -be useful to enable usage of options requiring overall knowledge of directories -such as rsync's --delete. - -As a demonstration of fpart possibilities, a tool called fpsync is provided in -the tools/ directory (see also below for more details). - -Compatibility : -=============== - -Fpart is primarily developed on FreeBSD. - -It has been successfully tested on : - -* FreeBSD (i386, amd64) -* GNU/Linux (x86_64, arm) -* Solaris 9, 10 (Sparc, i386) -* OpenIndiana (i386) -* NetBSD (amd64, alpha) -* Mac OS X (10.6, 10.8) - -and will probably work on other operating systems too (*). - -(*) fpart built as a static binary within a Debian (armel) chroot will give you -a powerful tool for backing-up your Android (arm) phone ;-) - -Examples : -========== - -Common usage : --------------- - -The following will produce 3 partitions, with (approximatively) the same size -and number of files. Three files: "var-parts.[0-2]", are generated as output : - - $ fpart -n 3 -o var-parts /var - - $ ls var-parts* - var-parts.0 var-parts.1 var-parts.2 - - $ head -n 2 var-parts.0 - /var/some/file1 - /var/some/file2 - -The following will produce partitions of 4.3 GB, containing music files ready -to be burnt to a DVD (for example). Files "music-parts.[0-n]", are generated -as output : - - $ fpart -s 4617089843 -o music-parts /path/to/my/music - -The following will produce partitions containing 10000 files each by examining -/usr first and then /home and display only partition 0 on stdout : - - $ find /usr ! -type d | fpart -f 10000 -i - /home | grep '^0:' - -The following will produce two partitions by re-using du(1) output. Fpart will -not examine the filesystem but instead re-use arbitrary values printed by du(1) -and sort them : - - $ du * | fpart -n 2 -a - -Live mode : ------------ - -By default, fpart will wait for FS crawling to terminate before generating and -displaying partitions. If you use the live mode (option -L), fpart will display -each partition as soon as it is complete. You can combine that option with -hooks; they will be triggered just before (pre-part hook, option -w) or after -(post-part hook, option -W) partitions' completion. - -Hooks provide several environment variables (see fpart(1)); they are a -convenient way of getting information about fpart's and partition's current -states. For example, ${FPART_PARTFILENAME} will contain the name of the output -file of the partition that has just been generated; using that variable within a -post-part hook permits starting manipulating the files just after partition -generation. - -See the following example : - - $ mkdir foo && touch foo/{bar,baz} - $ fpart -L -f 1 -o /tmp/part.out -W \ - 'echo == ${FPART_PARTFILENAME} == ; cat ${FPART_PARTFILENAME}' foo/ - == /tmp/part.out.0 == - foo/bar - == /tmp/part.out.1 == - foo/baz - -This example crawls foo/ in live mode (option -L). For each file (option -f, -1 file per partition), it generates a partition into /tmp/part.out. -(option -o; is the partition index and will be automatically added by fpart) -and executes the following post-part hook (option -W) : - - echo == ${FPART_PARTFILENAME} == ; cat ${FPART_PARTFILENAME} - -This hook will display the name of current partition's output file name as well -as display its contents. - -Migrating data : ----------------- - -Here is a more complex example that will show you how to use fpart, GNU Parallel -and Rsync to split up a directory and immediately schedule data synchronization -of smaller lists of files, while FS crawling goes on. We will be synchronizing -data from /data/src to /data/dest. - -First, go to the source directory (as rsync's --files-from option takes a file -list relative to its source directory) : - - $ cd /data/src - -Then, run fpart from here : - - $ fpart -L -f 10000 -x '.snapshot' -x '.zfs' -zz -o /tmp/part.out -W \ - '/usr/local/bin/sem -j 3 - "/usr/local/bin/rsync -av --files-from=${FPART_PARTFILENAME} - /data/src/ /data/dest/"' . - -This command will start fpart in live mode (option -L), making it generate -partitions during FS crawling. Fpart will produce partitions containing at most -10000 files each (option -f), will skip files and folders named '.snapshot' or -'.zfs' (option -x) and will list empty and non-accessible directories (option --zz; that option is necessary when working with rsync to make sure the whole file -tree will be re-created within the destination directory). Last but not least, -each partition will be written to /tmp/part.out. (option -o) and used within -the post-part hook (option -W), run immediately by fpart once the partition is -complete : - - /usr/local/bin/sem -j 3 - "/usr/local/bin/rsync -av --files-from=${FPART_PARTFILENAME} /data/src/ /data/dest/" - -This hook is itself a nested command. It will run GNU Parallel's sem scheduler -(any other scheduler would do) to run at most 3 rsync jobs in parallel. - -The scheduler will finally trigger the following command : - - /usr/local/bin/rsync -av --files-from=${FPART_PARTFILENAME} /data/src/ /data/dest/ - -where ${FPART_PARTFILENAME} will be part of rsync's environment when it runs -and contains the file name of the partition that has just been generated. - -That's all, folks ! Pretty simple, isn't it ? - -In this example, FS crawling and data transfer are run from the same -local- -machine, but you can use it as the basis of a much sophisticated solution: at -$work, by using a cluster of machines connected to our filers through NFS and -running Open Grid Scheduler, we successully migrated over 400 TB of data. - -Note: several successive fpart runs can be launched using the above example; -you will perform incremental synchronizations. That is, deleted files from the -source directory will not be removed from destination unless rsync's --delete -option is used. Unfortunately, this option cannot be used with a list of files -(files that do not appear in the list are just ignored). To use the --delete -option in conjunction with fpart, you *have* to provide rsync's --files-from -option a list of directories (only); that can be performed using fpart's -E -option. - -Fpsync : -======== - -To demonstrate fpart possibilities, a program called 'fpsync' is provided within -the tools/ directory. This tool is a shell script that wraps fpart(1) and -rsync(1) (or cpio(1)) to launch several synchronization jobs in parallel as -presented in the previous section, but while the previous example used GNU -Parallel to schedule transfers, fpsync provides its own -embedded- scheduler. -It can execute several synchronization processes locally or launch them on -several nodes (workers) through SSH. - -Despite its initial "proof of concept" status, fpsync has quickly evolved into -a powerful (yet simple to use) migration tool and has been successfully used -to boost migration of several hundreds of TB of data (initially at $work but it -has also been tested by several organizations such as UCI, Intel and Amazon ; -see the 'See also' section at the end of this document). - -In addition to being very fast (as transfers start during FS crawling and are -parallelized), fpsync is able to resume synchronization jobs (see option -r) -and presents an overall progress status. It also has a small memory footprint -compared to rsync itself when migrating filesystems with a big number of files. - -Last but not least, fpsync is very easy to set up and only requires a few -(common) software to run: fpart, rsync and/or cpio, a POSIX shell, sudo and ssh. - -See fpsync(1) to learn more about that tool and get a list of all supported -options. - -Here is a simple representation of how it works : -------------------------------------------------- - - fpsync [args] /data/src/ /data/dst/ - | - +-- fpart (live mode) crawls /data/src/, generates parts.[1] + sync jobs -> - | \ \ \ - | \ \ +___ part. #n + job #n - | \ \ - | \ +______ part. #1 + job #1 - | \ - | +_________ part. #0 + job #0 - | - +-- fpsync scheduler, executes jobs either locally or remotely -----------> - \ \ \ - \ \ +___ sync job #n... --------------------------------------> + - \ \ | - \ +______ sync job #1 ----------------------------------> | - \ | - +_________ sync job #0 -----------------------------> + - / - / - Filesystem tree rebuilt and synchronized! <------------------+ - - [1] Either containing file lists (default mode) or directory lists (option -E) - -File mode : ------------ - -In its default mode, fpsync uses rsync(1) and works with file lists to perform -incremental (only) synchronizations. Using the cpio(1) tool (option -m) will -perform the same kind of synchronizations but using the cpio(1) tool (see -'Notes about cpio tool' below). - -The following examples show two typical usage. - -The command : - - $ fpsync -n 4 -f 1000 -s $((100 * 1024 * 1024)) \ - /data/src/ /data/dst/ - -will synchronize /data/src/ to /data/dst/ using 4 local workers, each one -transferring at most 1000 files and 100 MB per synchronization job. - -The command : - - $ fpsync -n 8 -f 1000 -s $((100 * 1024 * 1024)) \ - -w login@machine1 -w login@machine2 -d /mnt/nfs/fpsync \ - /data/src/ /data/dst/ - -will synchronize /data/src/ to /data/dst/ using the same transfer limits, but -through 8 concurrent synchronization jobs spread over two machines (machine1 and -machine2). Those machines must both be able to access /data/src/ and /data/dst/, -as well as /mnt/nfs/fpsync, which is fpsync's shared working directory. - -As previously mentioned, those two examples work with file lists and will -perform *incremental* synchronizations. As a consequence, they will require a -final -manual- 'rsync --delete' pass to delete extra files from the /data/dst/ -directory. - -Directory mode : ----------------- - -If you want to avoid that final pass, use fpsync's option -E (only compatible -with rsync tool). That option will make fpsync work with a list of *directories* -(instead of files) and will (forcibly) enable rsync's --delete option with each -synchronization job. The counterpart of using that mode is that directory lists -are coarse-grained and will probably be less balanced than file lists. The best -option is probably to run several incremental jobs and keep the -E option to -speed up the final pass only. - -(you can read the file 'Solving_the_final_pass_challenge.txt' in the docs/ -directory for more details about fpsync's option -E) - -Notes about cpio tool : ------------------------ - -Fpsync's option '-m' allows you to use cpio(1) instead of rsync(1) to copy -files. Cpio(1) is much faster than rsync(1) but there is a catch: when -re-creating a complex file tree, missing parent directories are created -on-the-fly. In that case, original directory metadata (e.g. timestamps) are -*not* copied from source. - -To overcome that limitation, fpsync uses fpart's -zzz option to ask fpart to -also pack every single directory (0-sized) with file lists. Making directories -appear in file lists will ask cpio to copy their metadata when the directory is -processed (of course, fpart ensures that a parent directory entry appears after -files beneath. If the parent directory is missing it is first created on the -fly, then the directory entry makes cpio update its metadata). - -This works fine with a single cpio process (fpsync's option -n 1) but not with 2 -or more parallel processes which can treat partitions out-of-order. Indeed, if -several workers copy files to the same directory at the same time, it is -possible that the parent directory's original metadata gets re-applied while -another worker is still adding files to that directory. That can occur if a -directory list spreads over more than one partition. In such a situation, -original metadata (here, mtime) gets overwritten while new files get added to -the directory. - -That race condition is un-avoidable (fpart would have to guarantee the -directory entry belongs to the *same* partition as its files beneath, that -would probably lead to un-balanced partitions as well as increased -and useless- -complexity). - -You've been warned. Anyway, maybe you do not care about copying original -directory mtimes. If this is the case, you can ignore that situation. If you -care about them, running a second pass of fpsync will fix the timestamps. - -Notes about GNU cpio (specifically) : -------------------------------------- - -Developments have been made with BSD cpio (FreeBSD version). Fpsync will work -with GNU cpio too but there are small behaviour differences you must be aware -of : - -- for an unknown reason, GNU cpio will not apply mtime to the main target -directory (AKA './' when received by cpio). - -- when using GNU cpio, you will get the following warnings when performing a -second pass : - - not created: newer or same age version exists - -You can ignore those warnings as that second pass will fix directory timestamps -anyway. - -Warning: if you pass option '-u' to cpio (trough fpsync's option '-o') to get -rid of those messages, you will possibly re-touch directory mtimes (loosing -original ones). Also, be aware of what that option implies: re-transferring -every single file. - -Notes about hard links : ------------------------- - -Rsync can detect and replicate hard links with option -H but that will NOT work -with fpsync because rsync collects hard links' information on a per-run basis. - -So, as for directory metadata (see above), being able to propagate hard links -with fpsync would require from fpart the guarantee that all related links belong -to the same partition. - -Unfortunately, this is not something fpart can do because, in live mode (used by -fpsync to start synchronization as soon as possible), it crawls the filesystem -as it comes. As a consequence, there is no mean to know if a hard link connected -to a file already written to a partition (and probably already synchronized -through an independent rsync process) will appear later or not. Also, in -non-live mode, trying to group related hardlinks into the same partitions would -propably lead to un-balanced partitions as well as complexify code. - -If you need to propagate hard links, you have 3 options: - -* Re-create hard links on the target, but this is not optimal as you may not - want to link 2 files together, even if they are similar - -* Pre-copy hard linked files together (using find's '-type f -links +1' options) - before running fpsync. That will work but linked files that have changed - since your first synchronization will be converted back to regular files when - running fpsync - -* Use a final -monolithic- rsync pass with option -H that will re-create them - -SSH options : -------------- - -When dealing with SSH options and keys, keep in mind that fpsync uses SSH for -two kinds of operations : - -* data synchronization (when ssh is forked by rsync), - can occur locally or on remote workers (if using any) -* communication with workers (when ssh is forked by fpsync), - only occurs locally (on the scheduler) - -If you need specific options for the first case, you can pass ssh options by -using rsync's option '-e' (through fpsync's option '-o') and triple-escaping -the quote characters : - - $ fpsync [...] -o "-lptgoD -v --numeric-ids -e \\\"ssh -i ssh_key\\\"" \ - /data/src/ login@remote:/data/dst/ - -The key will have to be present and accessible on all workers. - -Fpsync does not offer options to deal with the second case. You will have to -tune your ssh config file to enable passwordless communication with workers. -Something like : - - $ cat ~/.ssh/config - Host remote - IdentityFile /path/to/the/passwordless/key - -should work. - -Limitations : -============= - -* Fpart will *NOT* modify data, it will *NOT* split your files ! - - As a consequence, if you have a directory containing several small files - and a huge one, it will be unable to produce partitions with the same size. - Fpart does magic, but not that much ;-) - -* Fpart will not deduplicate paths ! - - If you provide several paths to fpart, it will examine all of them. If those - paths overlap or if the same path is specified more than once, same files - will appear more than once within generated partitions. This is not a bug, - fpart does not deduplicate FS crawling results. - -* Fpsync only synchronizes directory contents ! - - Contrary to rsync, fpsync enforces the final '/' on the source directory. It - means that directory *contents* are synchronized, not the source directory - itself (i.e. you will *not* get a subdirectory of the name of the source - directory in the target directory after synchronization). - -Installing : -============ - -Packages are already available for the following operating systems : - -* FreeBSD : https://www.freshports.org/sysutils/fpart -* Debian : https://packages.debian.org/fpart -* Ubuntu : https://packages.ubuntu.com/search?keywords=fpart -* CentOS/Fedora : https://copr.fedorainfracloud.org/coprs/survient/fpart/ -* NixOS : https://nixos.org/nixos/packages.html - -If a pre-compiled package is not available for your favourite operating system, -installing from sources is simple. First, if there is no 'configure' script in -the main directory, run : - - $ autoreconf -i - -(autoreconf comes from the GNU autotools), then run : - - $ ./configure - $ make - -to configure and build fpart. - -Finally, install fpart (as root) : - - # make install - -Portability considerations : -============================ - -On OpenIndiana, if you need to use fpsync(1), the script will need adjustments : - -* Change shebang from /bin/sh to a more powerful shell that understands local - variables, such as /bin/bash. -* Adapt fpart(1) and grep(1) paths (use ggrep(1) instead of grep(1) as default - grep(1) doesn't know about -E flag). -* Remove -0 and --quiet options from cpio call (they are not supported). As a - consequence, also remove -0 from fpart options. - -On Alpine Linux, you will need the 'fts-dev' package to build fpart(1). - -See also : -========== - -* See fpart(1) and fpsync(1) for more details. - -* Article about data migration using fpart and rsync (GNU Linux Magazine #164 - October 2013, french) : - http://connect.ed-diamond.com/GNU-Linux-Magazine/GLMF-164/Parallelisez-vos-transferts-de-fichiers - -* The partition problem is detailed here : - http://en.wikipedia.org/wiki/Partition_problem -and here : - http://en.wikipedia.org/wiki/Bin_packing_problem - -* I am sure you will also be interested in : - https://github.com/jbd/packo -which was developed by Jean-Baptiste Denis as the original proof of concept -See also his newer tool, msrsync : - https://github.com/jbd/msrsync - -They use Fpart or talk about it : -================================= - -* Harry Mangalam, from UCI, has an excellent article about data transfer here : - http://moo.nac.uci.edu/~hjm/HOWTO_move_data.html -Check out his parsyncfp tool (using fpart) here : - https://github.com/hjmangalam/parsyncfp - -* Intel has written a white paper about data migration, presenting fpart and fpsync : - http://www.intel.com/content/dam/www/public/us/en/documents/white-papers/data-migration-enterprise-edition-for-lustre-software-white-paper.pdf - -* Amazon uses fpart and fpsync in their EFS-to-EFS backup solution : - http://docs.aws.amazon.com/solutions/latest/efs-to-efs-backup/considerations.html - See the "Amazon Elastic File System (Amazon EFS) for File Storage" presentation here - (AWS Storage Days, New York, September 6-8, 2017) : - https://www.slideshare.net/AmazonWebServices/amazon-elastic-file-system-amazon-efs-for-file-storage - and the Amazon EFS performance tutorial here : - https://github.com/aws-samples/amazon-efs-tutorial/tree/master/performance - both presenting fpart and fpsync capabilities. - -* Dave Altschuler wrote dsync, a tool using fpart + rsync or rclone that can sync to the cloud : - https://github.com/daltschu11/dsync - -* Bioteam used fpart + fpsync + rsync to migrate 2 PB of data : - https://www.slideshare.net/chrisdag/practical-petabyte-pushing - -* FAS RC (Harvard University) writes about fpsync to move data on Harvard's Odyssey cluster : - https://www.rc.fas.harvard.edu/resources/documentation/transferring-data-on-the-cluster/#fpsync - -* Standford University's Sherlock HPC cluster offers fpart as a file management tool : - https://www.sherlock.stanford.edu/docs/software/list/ - -* The QCIF (Queensland Cyber Infrastructure Foundation) offers fpart on QRIScloud : - https://www.qriscloud.org.au/support/qriscloud-documentation/94-awoonga-software - -* Steve French mentioned fpart and fpsync at 2019 Linux Storage, Filesystem, and Memory-Management Summit (LSFMM) : - https://lwn.net/Articles/789623/ - -* Microsoft suggests using fpart and fpsync to speed-up file transfers on Azure : - https://docs.microsoft.com/en-us/azure/storage/files/storage-troubleshoot-linux-file-connection-problems#slow-file-copying-to-and-from-azure-files-in-linux - -* Alibaba has the same advice : - https://www.alibabacloud.com/help/doc-detail/128764.htm - -Author / Licence : -================== - -Fpart has been written by Ganael LAPLANCHE -and is available under the BSD license (see COPYING for details). - -Thanks to Jean-Baptiste Denis for having given me the idea of this program ! - -Contributions : -=============== - -FTS code comes from FreeBSD : - - lib/libc/gen/fts.c -> fts.c - include/fts.h -> fts.h - -and is available under the BSD license. diff -Nru fpart-1.2.0/README.md fpart-1.4.0/README.md --- fpart-1.2.0/README.md 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/README.md 2021-09-26 21:00:26.000000000 +0000 @@ -1,547 +1,70 @@ +--- _______ ____ __ _ __ / / ___| _ \ / /_ _ _ __| |_ / / / /| |_ | |_) / / _` | '__| __| / / / / | _| | __/ / (_| | | | |_ / / /_/ |_| |_| /_/ \__,_|_| \__/_/ -What is fpart ? -=============== +--- -Fpart is a tool that helps you sort file trees and pack them into bags (called -"partitions"). It is developed in C and available under the BSD license. +# What is fpart ? -It splits a list of directories and file trees into a certain number of -partitions, trying to produce partitions with the same size and number of files. -It can also produce partitions with a given number of files or of a limited -size. Fpart uses a bin packing algorithm to optimize space utilization amongst -partitions. +Fpart is a **F**ilesystem **part**itioner. It helps you sort file trees and +pack them into bags (called "partitions"). It is developed in C and available +under the BSD license. -Once generated, partitions are either printed as file lists to stdout (default) -or to files. Those lists can then be used by third party programs. +Fpsync, a powerful file-migration tool is also provided. -Fpart also includes a live mode, which allows it to crawl very large filesystems -and produce partitions in live. Hooks are available to act on those partitions -(e.g. immediately start a transfer using rsync(1) or cpio(1)) without having to -wait for the filesystem traversal job to be finished. Used that way, fpart can -be seen as a powerful basis for a data migration tool. +See the [documentation](http://www.fpart.org) for more details and examples. -Fpart can also generate lists of directories instead of files. That mode can -be useful to enable usage of options requiring overall knowledge of directories -such as rsync's --delete. +# Key features -As a demonstration of fpart possibilities, a tool called fpsync is provided in -the tools/ directory (see also below for more details). +## Fpart -Compatibility : -=============== +* Blazing fast crawling! +* Generates partitions on a number/file number/size basis +* Provides a live mode with hooks to act immediately on generated file lists +* Supports generating partitions from arbitrary input (e.g. du's output) -Fpart is primarily developed on FreeBSD. +## Fpsync -It has been successfully tested on : +* Parallelizes rsync(1), cpio(1) or tar(1) jobs +* Supports using a SSH cluster for efficient data migrations +* Starts transfers while FS crawling still goes on +* Supports remote target URLs when using rsync(1) +* Parallelizes your final rsync(1) pass too! +* Provides transfer runs' status/resume/replay +* Nearly no dependencies (mostly shell and common tools) -* FreeBSD (i386, amd64) -* GNU/Linux (x86_64, arm) -* Solaris 9, 10 (Sparc, i386) -* OpenIndiana (i386) -* NetBSD (amd64, alpha) -* Mac OS X (10.6, 10.8) +# Author / Licence -and will probably work on other operating systems too (*). - -(*) fpart built as a static binary within a Debian (armel) chroot will give you -a powerful tool for backing-up your Android (arm) phone ;-) - -Examples : -========== - -Common usage : --------------- - -The following will produce 3 partitions, with (approximatively) the same size -and number of files. Three files: "var-parts.[0-2]", are generated as output : - - $ fpart -n 3 -o var-parts /var - - $ ls var-parts* - var-parts.0 var-parts.1 var-parts.2 - - $ head -n 2 var-parts.0 - /var/some/file1 - /var/some/file2 - -The following will produce partitions of 4.3 GB, containing music files ready -to be burnt to a DVD (for example). Files "music-parts.[0-n]", are generated -as output : - - $ fpart -s 4617089843 -o music-parts /path/to/my/music - -The following will produce partitions containing 10000 files each by examining -/usr first and then /home and display only partition 0 on stdout : - - $ find /usr ! -type d | fpart -f 10000 -i - /home | grep '^0:' - -The following will produce two partitions by re-using du(1) output. Fpart will -not examine the filesystem but instead re-use arbitrary values printed by du(1) -and sort them : - - $ du * | fpart -n 2 -a - -Live mode : ------------ - -By default, fpart will wait for FS crawling to terminate before generating and -displaying partitions. If you use the live mode (option -L), fpart will display -each partition as soon as it is complete. You can combine that option with -hooks; they will be triggered just before (pre-part hook, option -w) or after -(post-part hook, option -W) partitions' completion. - -Hooks provide several environment variables (see fpart(1)); they are a -convenient way of getting information about fpart's and partition's current -states. For example, ${FPART_PARTFILENAME} will contain the name of the output -file of the partition that has just been generated; using that variable within a -post-part hook permits starting manipulating the files just after partition -generation. - -See the following example : - - $ mkdir foo && touch foo/{bar,baz} - $ fpart -L -f 1 -o /tmp/part.out -W \ - 'echo == ${FPART_PARTFILENAME} == ; cat ${FPART_PARTFILENAME}' foo/ - == /tmp/part.out.0 == - foo/bar - == /tmp/part.out.1 == - foo/baz - -This example crawls foo/ in live mode (option -L). For each file (option -f, -1 file per partition), it generates a partition into /tmp/part.out. -(option -o; is the partition index and will be automatically added by fpart) -and executes the following post-part hook (option -W) : - - echo == ${FPART_PARTFILENAME} == ; cat ${FPART_PARTFILENAME} - -This hook will display the name of current partition's output file name as well -as display its contents. - -Migrating data : ----------------- - -Here is a more complex example that will show you how to use fpart, GNU Parallel -and Rsync to split up a directory and immediately schedule data synchronization -of smaller lists of files, while FS crawling goes on. We will be synchronizing -data from /data/src to /data/dest. - -First, go to the source directory (as rsync's --files-from option takes a file -list relative to its source directory) : - - $ cd /data/src - -Then, run fpart from here : - - $ fpart -L -f 10000 -x '.snapshot' -x '.zfs' -zz -o /tmp/part.out -W \ - '/usr/local/bin/sem -j 3 - "/usr/local/bin/rsync -av --files-from=${FPART_PARTFILENAME} - /data/src/ /data/dest/"' . - -This command will start fpart in live mode (option -L), making it generate -partitions during FS crawling. Fpart will produce partitions containing at most -10000 files each (option -f), will skip files and folders named '.snapshot' or -'.zfs' (option -x) and will list empty and non-accessible directories (option --zz; that option is necessary when working with rsync to make sure the whole file -tree will be re-created within the destination directory). Last but not least, -each partition will be written to /tmp/part.out. (option -o) and used within -the post-part hook (option -W), run immediately by fpart once the partition is -complete : - - /usr/local/bin/sem -j 3 - "/usr/local/bin/rsync -av --files-from=${FPART_PARTFILENAME} /data/src/ /data/dest/" - -This hook is itself a nested command. It will run GNU Parallel's sem scheduler -(any other scheduler would do) to run at most 3 rsync jobs in parallel. - -The scheduler will finally trigger the following command : - - /usr/local/bin/rsync -av --files-from=${FPART_PARTFILENAME} /data/src/ /data/dest/ - -where ${FPART_PARTFILENAME} will be part of rsync's environment when it runs -and contains the file name of the partition that has just been generated. - -That's all, folks ! Pretty simple, isn't it ? - -In this example, FS crawling and data transfer are run from the same -local- -machine, but you can use it as the basis of a much sophisticated solution: at -$work, by using a cluster of machines connected to our filers through NFS and -running Open Grid Scheduler, we successully migrated over 400 TB of data. - -Note: several successive fpart runs can be launched using the above example; -you will perform incremental synchronizations. That is, deleted files from the -source directory will not be removed from destination unless rsync's --delete -option is used. Unfortunately, this option cannot be used with a list of files -(files that do not appear in the list are just ignored). To use the --delete -option in conjunction with fpart, you *have* to provide rsync's --files-from -option a list of directories (only); that can be performed using fpart's -E -option. - -Fpsync : -======== - -To demonstrate fpart possibilities, a program called 'fpsync' is provided within -the tools/ directory. This tool is a shell script that wraps fpart(1) and -rsync(1) (or cpio(1)) to launch several synchronization jobs in parallel as -presented in the previous section, but while the previous example used GNU -Parallel to schedule transfers, fpsync provides its own -embedded- scheduler. -It can execute several synchronization processes locally or launch them on -several nodes (workers) through SSH. - -Despite its initial "proof of concept" status, fpsync has quickly evolved into -a powerful (yet simple to use) migration tool and has been successfully used -to boost migration of several hundreds of TB of data (initially at $work but it -has also been tested by several organizations such as UCI, Intel and Amazon ; -see the 'See also' section at the end of this document). - -In addition to being very fast (as transfers start during FS crawling and are -parallelized), fpsync is able to resume synchronization jobs (see option -r) -and presents an overall progress status. It also has a small memory footprint -compared to rsync itself when migrating filesystems with a big number of files. - -Last but not least, fpsync is very easy to set up and only requires a few -(common) software to run: fpart, rsync and/or cpio, a POSIX shell, sudo and ssh. - -See fpsync(1) to learn more about that tool and get a list of all supported -options. - -Here is a simple representation of how it works : -------------------------------------------------- - - fpsync [args] /data/src/ /data/dst/ - | - +-- fpart (live mode) crawls /data/src/, generates parts.[1] + sync jobs -> - | \ \ \ - | \ \ +___ part. #n + job #n - | \ \ - | \ +______ part. #1 + job #1 - | \ - | +_________ part. #0 + job #0 - | - +-- fpsync scheduler, executes jobs either locally or remotely -----------> - \ \ \ - \ \ +___ sync job #n... --------------------------------------> + - \ \ | - \ +______ sync job #1 ----------------------------------> | - \ | - +_________ sync job #0 -----------------------------> + - / - / - Filesystem tree rebuilt and synchronized! <------------------+ - - [1] Either containing file lists (default mode) or directory lists (option -E) - -File mode : ------------ - -In its default mode, fpsync uses rsync(1) and works with file lists to perform -incremental (only) synchronizations. Using the cpio(1) tool (option -m) will -perform the same kind of synchronizations but using the cpio(1) tool (see -'Notes about cpio tool' below). - -The following examples show two typical usage. - -The command : - - $ fpsync -n 4 -f 1000 -s $((100 * 1024 * 1024)) \ - /data/src/ /data/dst/ - -will synchronize /data/src/ to /data/dst/ using 4 local workers, each one -transferring at most 1000 files and 100 MB per synchronization job. - -The command : - - $ fpsync -n 8 -f 1000 -s $((100 * 1024 * 1024)) \ - -w login@machine1 -w login@machine2 -d /mnt/nfs/fpsync \ - /data/src/ /data/dst/ - -will synchronize /data/src/ to /data/dst/ using the same transfer limits, but -through 8 concurrent synchronization jobs spread over two machines (machine1 and -machine2). Those machines must both be able to access /data/src/ and /data/dst/, -as well as /mnt/nfs/fpsync, which is fpsync's shared working directory. - -As previously mentioned, those two examples work with file lists and will -perform *incremental* synchronizations. As a consequence, they will require a -final -manual- 'rsync --delete' pass to delete extra files from the /data/dst/ -directory. - -Directory mode : ----------------- - -If you want to avoid that final pass, use fpsync's option -E (only compatible -with rsync tool). That option will make fpsync work with a list of *directories* -(instead of files) and will (forcibly) enable rsync's --delete option with each -synchronization job. The counterpart of using that mode is that directory lists -are coarse-grained and will probably be less balanced than file lists. The best -option is probably to run several incremental jobs and keep the -E option to -speed up the final pass only. - -(you can read the file 'Solving_the_final_pass_challenge.txt' in the docs/ -directory for more details about fpsync's option -E) - -Notes about cpio tool : ------------------------ - -Fpsync's option '-m' allows you to use cpio(1) instead of rsync(1) to copy -files. Cpio(1) is much faster than rsync(1) but there is a catch: when -re-creating a complex file tree, missing parent directories are created -on-the-fly. In that case, original directory metadata (e.g. timestamps) are -*not* copied from source. - -To overcome that limitation, fpsync uses fpart's -zzz option to ask fpart to -also pack every single directory (0-sized) with file lists. Making directories -appear in file lists will ask cpio to copy their metadata when the directory is -processed (of course, fpart ensures that a parent directory entry appears after -files beneath. If the parent directory is missing it is first created on the -fly, then the directory entry makes cpio update its metadata). - -This works fine with a single cpio process (fpsync's option -n 1) but not with 2 -or more parallel processes which can treat partitions out-of-order. Indeed, if -several workers copy files to the same directory at the same time, it is -possible that the parent directory's original metadata gets re-applied while -another worker is still adding files to that directory. That can occur if a -directory list spreads over more than one partition. In such a situation, -original metadata (here, mtime) gets overwritten while new files get added to -the directory. - -That race condition is un-avoidable (fpart would have to guarantee the -directory entry belongs to the *same* partition as its files beneath, that -would probably lead to un-balanced partitions as well as increased -and useless- -complexity). - -You've been warned. Anyway, maybe you do not care about copying original -directory mtimes. If this is the case, you can ignore that situation. If you -care about them, running a second pass of fpsync will fix the timestamps. - -Notes about GNU cpio (specifically) : -------------------------------------- - -Developments have been made with BSD cpio (FreeBSD version). Fpsync will work -with GNU cpio too but there are small behaviour differences you must be aware -of : - -- for an unknown reason, GNU cpio will not apply mtime to the main target -directory (AKA './' when received by cpio). - -- when using GNU cpio, you will get the following warnings when performing a -second pass : - - not created: newer or same age version exists - -You can ignore those warnings as that second pass will fix directory timestamps -anyway. - -Warning: if you pass option '-u' to cpio (trough fpsync's option '-o') to get -rid of those messages, you will possibly re-touch directory mtimes (loosing -original ones). Also, be aware of what that option implies: re-transferring -every single file. - -Notes about hard links : ------------------------- - -Rsync can detect and replicate hard links with option -H but that will NOT work -with fpsync because rsync collects hard links' information on a per-run basis. - -So, as for directory metadata (see above), being able to propagate hard links -with fpsync would require from fpart the guarantee that all related links belong -to the same partition. - -Unfortunately, this is not something fpart can do because, in live mode (used by -fpsync to start synchronization as soon as possible), it crawls the filesystem -as it comes. As a consequence, there is no mean to know if a hard link connected -to a file already written to a partition (and probably already synchronized -through an independent rsync process) will appear later or not. Also, in -non-live mode, trying to group related hardlinks into the same partitions would -propably lead to un-balanced partitions as well as complexify code. - -If you need to propagate hard links, you have 3 options: - -* Re-create hard links on the target, but this is not optimal as you may not - want to link 2 files together, even if they are similar - -* Pre-copy hard linked files together (using find's '-type f -links +1' options) - before running fpsync. That will work but linked files that have changed - since your first synchronization will be converted back to regular files when - running fpsync - -* Use a final -monolithic- rsync pass with option -H that will re-create them - -SSH options : -------------- - -When dealing with SSH options and keys, keep in mind that fpsync uses SSH for -two kinds of operations : - -* data synchronization (when ssh is forked by rsync), - can occur locally or on remote workers (if using any) -* communication with workers (when ssh is forked by fpsync), - only occurs locally (on the scheduler) - -If you need specific options for the first case, you can pass ssh options by -using rsync's option '-e' (through fpsync's option '-o') and triple-escaping -the quote characters : - - $ fpsync [...] -o "-lptgoD -v --numeric-ids -e \\\"ssh -i ssh_key\\\"" \ - /data/src/ login@remote:/data/dst/ - -The key will have to be present and accessible on all workers. - -Fpsync does not offer options to deal with the second case. You will have to -tune your ssh config file to enable passwordless communication with workers. -Something like : - - $ cat ~/.ssh/config - Host remote - IdentityFile /path/to/the/passwordless/key - -should work. - -Limitations : -============= - -* Fpart will *NOT* modify data, it will *NOT* split your files ! - - As a consequence, if you have a directory containing several small files - and a huge one, it will be unable to produce partitions with the same size. - Fpart does magic, but not that much ;-) - -* Fpart will not deduplicate paths ! - - If you provide several paths to fpart, it will examine all of them. If those - paths overlap or if the same path is specified more than once, same files - will appear more than once within generated partitions. This is not a bug, - fpart does not deduplicate FS crawling results. - -* Fpsync only synchronizes directory contents ! - - Contrary to rsync, fpsync enforces the final '/' on the source directory. It - means that directory *contents* are synchronized, not the source directory - itself (i.e. you will *not* get a subdirectory of the name of the source - directory in the target directory after synchronization). - -Installing : -============ - -Packages are already available for the following operating systems : - -* FreeBSD : https://www.freshports.org/sysutils/fpart -* Debian : https://packages.debian.org/fpart -* Ubuntu : https://packages.ubuntu.com/search?keywords=fpart -* CentOS/Fedora : https://copr.fedorainfracloud.org/coprs/survient/fpart/ -* NixOS : https://nixos.org/nixos/packages.html - -If a pre-compiled package is not available for your favourite operating system, -installing from sources is simple. First, if there is no 'configure' script in -the main directory, run : - - $ autoreconf -i - -(autoreconf comes from the GNU autotools), then run : - - $ ./configure - $ make - -to configure and build fpart. - -Finally, install fpart (as root) : - - # make install - -Portability considerations : -============================ - -On OpenIndiana, if you need to use fpsync(1), the script will need adjustments : - -* Change shebang from /bin/sh to a more powerful shell that understands local - variables, such as /bin/bash. -* Adapt fpart(1) and grep(1) paths (use ggrep(1) instead of grep(1) as default - grep(1) doesn't know about -E flag). -* Remove -0 and --quiet options from cpio call (they are not supported). As a - consequence, also remove -0 from fpart options. - -On Alpine Linux, you will need the 'fts-dev' package to build fpart(1). - -See also : -========== - -* See fpart(1) and fpsync(1) for more details. - -* Article about data migration using fpart and rsync (GNU Linux Magazine #164 - October 2013, french) : - http://connect.ed-diamond.com/GNU-Linux-Magazine/GLMF-164/Parallelisez-vos-transferts-de-fichiers - -* The partition problem is detailed here : - http://en.wikipedia.org/wiki/Partition_problem -and here : - http://en.wikipedia.org/wiki/Bin_packing_problem - -* I am sure you will also be interested in : - https://github.com/jbd/packo -which was developed by Jean-Baptiste Denis as the original proof of concept -See also his newer tool, msrsync : - https://github.com/jbd/msrsync - -They use Fpart or talk about it : -================================= - -* Harry Mangalam, from UCI, has an excellent article about data transfer here : - http://moo.nac.uci.edu/~hjm/HOWTO_move_data.html -Check out his parsyncfp tool (using fpart) here : - https://github.com/hjmangalam/parsyncfp - -* Intel has written a white paper about data migration, presenting fpart and fpsync : - http://www.intel.com/content/dam/www/public/us/en/documents/white-papers/data-migration-enterprise-edition-for-lustre-software-white-paper.pdf - -* Amazon uses fpart and fpsync in their EFS-to-EFS backup solution : - http://docs.aws.amazon.com/solutions/latest/efs-to-efs-backup/considerations.html - See the "Amazon Elastic File System (Amazon EFS) for File Storage" presentation here - (AWS Storage Days, New York, September 6-8, 2017) : - https://www.slideshare.net/AmazonWebServices/amazon-elastic-file-system-amazon-efs-for-file-storage - and the Amazon EFS performance tutorial here : - https://github.com/aws-samples/amazon-efs-tutorial/tree/master/performance - both presenting fpart and fpsync capabilities. - -* Dave Altschuler wrote dsync, a tool using fpart + rsync or rclone that can sync to the cloud : - https://github.com/daltschu11/dsync - -* Bioteam used fpart + fpsync + rsync to migrate 2 PB of data : - https://www.slideshare.net/chrisdag/practical-petabyte-pushing - -* FAS RC (Harvard University) writes about fpsync to move data on Harvard's Odyssey cluster : - https://www.rc.fas.harvard.edu/resources/documentation/transferring-data-on-the-cluster/#fpsync +Fpart has been written by [Ganael LAPLANCHE](mailto:ganael.laplanche@martymac.org) +and is available under the BSD license (see COPYING for details). -* Standford University's Sherlock HPC cluster offers fpart as a file management tool : - https://www.sherlock.stanford.edu/docs/software/list/ +Source code is hosted on : -* The QCIF (Queensland Cyber Infrastructure Foundation) offers fpart on QRIScloud : - https://www.qriscloud.org.au/support/qriscloud-documentation/94-awoonga-software +* [Martymac.org](http://contribs.martymac.org) +* [Github](https://github.com/martymac/fpart) +* [Sourceforge](http://www.sourceforge.net/projects/fpart) -* Steve French mentioned fpart and fpsync at 2019 Linux Storage, Filesystem, and Memory-Management Summit (LSFMM) : - https://lwn.net/Articles/789623/ +Documentation is available on : -* Microsoft suggests using fpart and fpsync to speed-up file transfers on Azure : - https://docs.microsoft.com/en-us/azure/storage/files/storage-troubleshoot-linux-file-connection-problems#slow-file-copying-to-and-from-azure-files-in-linux +* [Fpart.org](http://www.fpart.org) -* Alibaba has the same advice : - https://www.alibabacloud.com/help/doc-detail/128764.htm +Thanks to Jean-Baptiste Denis for having given me the idea of this program ! -Author / Licence : -================== +# Donation -Fpart has been written by Ganael LAPLANCHE -and is available under the BSD license (see COPYING for details). +If fpart is useful to you or your organization, you can make a donation here: -Thanks to Jean-Baptiste Denis for having given me the idea of this program ! +[![paypal](https://www.paypalobjects.com/en_US/FR/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HSL25ZED2PS62&source=url) -Contributions : -=============== +That will help me not running out of tea :) -FTS code comes from FreeBSD : +# Contributions - lib/libc/gen/fts.c -> fts.c - include/fts.h -> fts.h +Member of MacStadium's Open Source Developer Program (thanks to them for their support to OpenSource software !) -and is available under the BSD license. + +MacStadium + diff -Nru fpart-1.2.0/src/dispatch.c fpart-1.4.0/src/dispatch.c --- fpart-1.2.0/src/dispatch.c 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/src/dispatch.c 2021-09-26 21:00:26.000000000 +0000 @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2011-2020 Ganael LAPLANCHE + * Copyright (c) 2011-2021 Ganael LAPLANCHE * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru fpart-1.2.0/src/dispatch.h fpart-1.4.0/src/dispatch.h --- fpart-1.2.0/src/dispatch.h 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/src/dispatch.h 2021-09-26 21:00:26.000000000 +0000 @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2011-2020 Ganael LAPLANCHE + * Copyright (c) 2011-2021 Ganael LAPLANCHE * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru fpart-1.2.0/src/file_entry.c fpart-1.4.0/src/file_entry.c --- fpart-1.2.0/src/file_entry.c 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/src/file_entry.c 2021-09-26 21:00:26.000000000 +0000 @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2011-2020 Ganael LAPLANCHE + * Copyright (c) 2011-2021 Ganael LAPLANCHE * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -561,7 +561,7 @@ /* Compare entries to list directories first - compar() function used by fts_open() when in dirs_only or leaf_dirs mode */ static int -#if (defined(__linux__) || defined(__NetBSD__)) && !defined(EMBED_FTS) +#if (defined(__linux__) || defined(__NetBSD__) || defined(__APPLE__)) && !defined(EMBED_FTS) fts_dirsfirst(const FTSENT **a, const FTSENT **b) #else fts_dirsfirst(const FTSENT * const *a, const FTSENT * const *b) @@ -617,7 +617,7 @@ char *fts_argv[] = { file_path, NULL }; /* sort function */ -#if (defined(__linux__) || defined(__NetBSD__)) && !defined(EMBED_FTS) +#if (defined(__linux__) || defined(__NetBSD__) || defined(__APPLE__)) && !defined(EMBED_FTS) int (*fts_sortfuncp)(const FTSENT **, const FTSENT **); #else int (*fts_sortfuncp)(const FTSENT * const *, const FTSENT * const *); @@ -706,7 +706,7 @@ /* check for name validity regarding include/exclude options */ - if(!valid_file(p, options, 1)) { + if(!valid_file(p, options, VF_FULLTEST)) { if(options->verbose >= OPT_VERBOSE) fprintf(stderr, "Skipping directory: '%s'\n", p->fts_path); @@ -744,15 +744,15 @@ curdir_size = 0; else if((options->dirs_only != OPT_DIRSONLY) && ((options->leaf_dirs != OPT_LEAFDIRS) || (curdir_dirsfound))) - /* when dirs_only mode activated or - leaf_dirs mode activated and current directory is a - leaf, then we can use curdir_size. + /* when dirs_only mode activated (-E) or + leaf_dirs mode activated (-D) and current directory is a leaf, + then we can trust current *single-depth* curdir_size. In all other cases (e.g. when dir_depth requested and reached), we must compute the directory size - recursively. */ + *recursively* through get_size(). */ curdir_size = get_size(p->fts_accpath, p->fts_statp, options); - /* else, trust curdir_size and leave it untouched */ + /* else, trust curdir_size and leave it untouched. */ /* add or display it */ if(handle_file_entry @@ -782,11 +782,11 @@ case FTS_D: { file_as_argument = 0; /* argument was not a file */ - curdir_empty = 1; /* enter directory, mark it as empty */ + curdir_empty = 1; /* enter directory, mark it as empty */ curdir_dirsfound = 0; /* no dirs found yet */ /* check for name validity regarding exclude options */ - if(!valid_file(p, options, 0)) { + if(!valid_file(p, options, VF_EXCLUDEONLY)) { if(options->verbose >= OPT_VERBOSE) fprintf(stderr, "Skipping directory: '%s'\n", p->fts_path); @@ -812,24 +812,49 @@ /* XXX default means remaining file types: FTS_F, FTS_SL, FTS_SLNONE, FTS_DEFAULT */ { - fsize_t curfile_size = 0; + /* get current file size to add it to our current directory + size. We must have visited all directories first for that + total to be right ; this is achieved by using a compar() + function with fts_open() */ + fsize_t curfile_size = get_size(p->fts_accpath, p->fts_statp, + options); + +/* Note about include/exclude options and curdir_size: + +Computing the right value of curdir_size is not as easy as it seems because of +include/exclude options. Basically, exclude options are honoured when both +computing directory size and selecting entries to be added to the final listing, +while include options (wich are more restrictive because we then default to a +default 'deny all' scheme) must be *ignored* when computing directory size and +only filter entries to be added to the final listing. + +A simple way of handling that problem would have been to just get rid of +curdir_size and add an option to get_size() to enable single-depth +(non-recursive) computation and add a call in FTS_DP when adding a directory. +*But* that would imply a second crawl for each directory added and would impact +performances, that's why we chose to maintain curdir_size anyway, but with a +two-pass check to handle include and exclude options properly. */ + + /* first pass: check for name validity regarding exclude + options only. + Honoring include options here would make most files excluded + (which is not what we want). This is needed to get the right + size of a subdir that would be selected through a -y option. + E.g. : fpart -f 10 -e -y './my/sub/dir' -E ./ + */ + if(valid_file(p, options, VF_EXCLUDEONLY)) { + curdir_empty = 0; + curdir_size += curfile_size; + } - /* check for name validity regarding include/exclude options */ - if(!valid_file(p, options, 1)) { + /* second pass: re-check for name validity regarding + exclude *and* include options */ + if(!valid_file(p, options, VF_FULLTEST)) { if(options->verbose >= OPT_VERBOSE) fprintf(stderr, "Skipping file: '%s'\n", p->fts_path); continue; } - /* get current file size and add it to our current directory - size. We must have visited all directories first for that - total to be right ; this is achieved by using a compar() - function with fts_open() */ - curfile_size = get_size(p->fts_accpath, p->fts_statp, options); - - curdir_empty = 0; /* mark current dir as non empty */ - curdir_size += curfile_size; - /* skip file entry when in dirs_only mode (option -E) or in leaf_dirs mode (option -D) and no directory has been found in current directory (i.e. we are in a leaf directory). diff -Nru fpart-1.2.0/src/file_entry.h fpart-1.4.0/src/file_entry.h --- fpart-1.2.0/src/file_entry.h 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/src/file_entry.h 2021-09-26 21:00:26.000000000 +0000 @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2011-2020 Ganael LAPLANCHE + * Copyright (c) 2011-2021 Ganael LAPLANCHE * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru fpart-1.2.0/src/fpart.c fpart-1.4.0/src/fpart.c --- fpart-1.2.0/src/fpart.c 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/src/fpart.c 2021-09-26 21:00:26.000000000 +0000 @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2011-2020 Ganael LAPLANCHE + * Copyright (c) 2011-2021 Ganael LAPLANCHE * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -65,7 +65,7 @@ version(void) { fprintf(stderr, "fpart v" FPART_VERSION "\n" - "Copyright (c) 2011-2020 " + "Copyright (c) 2011-2021 " "Ganael LAPLANCHE \n" "WWW: http://contribs.martymac.org\n"); fprintf(stderr, "Build options: debug="); @@ -260,13 +260,12 @@ int ch; while((ch = getopt(*argcp, *argvp, #if defined(_HAS_FNM_CASEFOLD) - "?hVn:f:s:i:ao:0evlby:Y:x:X:zd:DELw:W:p:q:r:" + "hVn:f:s:i:ao:0evlby:Y:x:X:zd:DELw:W:p:q:r:" #else - "?hVn:f:s:i:ao:0evlby:x:zd:DELw:W:p:q:r:" + "hVn:f:s:i:ao:0evlby:x:zd:DELw:W:p:q:r:" #endif )) != -1) { switch(ch) { - case '?': case 'h': return (FPART_OPTS_USAGE | FPART_OPTS_OK | FPART_OPTS_EXIT); case 'V': @@ -485,6 +484,9 @@ options->round_size = (fsize_t)round_size; break; } + case '?': + default: + return (FPART_OPTS_USAGE | FPART_OPTS_NOK | FPART_OPTS_EXIT); } } *argcp -= optind; diff -Nru fpart-1.2.0/src/fpart.h fpart-1.4.0/src/fpart.h --- fpart-1.2.0/src/fpart.h 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/src/fpart.h 2021-09-26 21:00:40.000000000 +0000 @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2011-2020 Ganael LAPLANCHE + * Copyright (c) 2011-2021 Ganael LAPLANCHE * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -27,7 +27,7 @@ #ifndef _FPART_H #define _FPART_H -#define FPART_VERSION "1.2.0" +#define FPART_VERSION "1.4.0" /* maximum input line length, including '\n' and '\0' */ #define MAX_LINE_LENGTH 2048 diff -Nru fpart-1.2.0/src/fts.c fpart-1.4.0/src/fts.c --- fpart-1.2.0/src/fts.c 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/src/fts.c 2021-09-26 21:00:26.000000000 +0000 @@ -1,4 +1,6 @@ /*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1990, 1993, 1994 * The Regents of the University of California. All rights reserved. * @@ -38,15 +40,10 @@ * */ -#if 0 -#if defined(LIBC_SCCS) && !defined(lint) -static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94"; -#endif /* LIBC_SCCS and not lint */ -#endif - #if defined(__FreeBSD__) #include -__FBSDID("$FreeBSD: head/lib/libc/gen/fts.c 318913 2017-05-26 01:14:58Z pfg $"); +__SCCSID("@(#)fts.c 8.6 (Berkeley) 8/14/94"); +__FBSDID("$FreeBSD: head/lib/libc/gen/fts.c 345552 2019-03-26 19:35:41Z emaste $"); #include "/usr/src/lib/libc/include/namespace.h" #else @@ -54,7 +51,8 @@ #define _close close #define _fstat fstat #define _dirfd dirfd -#endif +#endif /* defined(__FreeBSD__) */ + #include #include #include @@ -67,8 +65,19 @@ #if defined(__linux__) #include #include +#endif /* defined(__linux__) */ +#endif /* defined(__sun) || defined(__sun__) */ + +#include +#include #include -#endif +#include "fts.h" +#include +#include +#include +#if defined(__FreeBSD__) +#include "/usr/src/lib/libc/include/un-namespace.h" +#include "/usr/src/lib/libc/gen/gen-private.h" #endif #if defined(O_CLOEXEC) @@ -89,18 +98,6 @@ #endif #endif -#include -#include -#include -#include "fts.h" -#include -#include -#include -#if defined(__FreeBSD__) -#include "/usr/src/lib/libc/include/un-namespace.h" -#include "/usr/src/lib/libc/gen/gen-private.h" -#endif - #if defined(__sun) || defined(__sun__) || defined(__linux__) void * reallocf(void *ptr, size_t size) @@ -723,9 +720,9 @@ */ #ifdef FTS_WHITEOUT if (ISSET(FTS_WHITEOUT)) - oflag = DTF_NODUP | DTF_REWIND; + oflag = DTF_NODUP; else - oflag = DTF_HIDEW | DTF_NODUP | DTF_REWIND; + oflag = DTF_HIDEW | DTF_NODUP; #else #define __opendir2(path, flag) opendir(path) #endif @@ -1219,11 +1216,20 @@ ret = -1; goto bail; } +/* + * On Darwin, this check causes problems with automounts and firmlinks + * so we just disable it. + * See: /usr/share/firmlinks for a list of problematic directories + * and https://opensource.apple.com/source/Libc/Libc-1439.40.11/gen/fts.c.auto.html + * (function fts_safe_changedir()) for more details. + */ +#if !defined(__APPLE__) if (p->fts_dev != sb.st_dev || p->fts_ino != sb.st_ino) { errno = ENOENT; /* disinformation */ ret = -1; goto bail; } +#endif /* !defined(__APPLE__) */ ret = fchdir(newfd); bail: oerrno = errno; diff -Nru fpart-1.2.0/src/fts.h fpart-1.4.0/src/fts.h --- fpart-1.2.0/src/fts.h 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/src/fts.h 2021-09-26 21:00:26.000000000 +0000 @@ -1,4 +1,6 @@ -/* +/*- + * SPDX-License-Identifier: BSD-3-Clause + * * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. * @@ -27,14 +29,15 @@ * SUCH DAMAGE. * * @(#)fts.h 8.3 (Berkeley) 8/14/94 - * $FreeBSD: head/include/fts.h 250887 2013-05-21 21:20:10Z ed $ + * $FreeBSD: head/include/fts.h 326024 2017-11-20 19:45:28Z pfg $ */ #ifndef _FTS_H_ #define _FTS_H_ -#if !defined(__FreeBSD__) && !defined(__linux__) +#if !defined(MAX) #define MAX(a, b) ((a) >= (b) ? (a) : (b)) +#endif /* IllumOS provides dirfd() , see /usr/include/dirent.h */ #if defined(__sun) || defined(__sun__) @@ -48,7 +51,6 @@ #endif #endif #endif -#endif #if defined(__FreeBSD__) #include @@ -57,13 +59,14 @@ #include #include #endif /* defined(__linux__) */ -#if !defined(__GLIBC__) +#endif /* defined(__FreeBSD__) */ + +#if !defined(__FreeBSD__) && !defined(__GLIBC__) typedef dev_t __dev_t; typedef size_t __size_t; typedef ino_t __ino_t; typedef nlink_t __nlink_t; -#endif /* !defined(__GLIBC__) */ -#endif /* defined(__FreeBSD__) */ +#endif /* !defined(__FreeBSD__) && !defined(__GLIBC__) */ typedef struct { struct _ftsent *fts_cur; /* current node */ diff -Nru fpart-1.2.0/src/Makefile.in fpart-1.4.0/src/Makefile.in --- fpart-1.2.0/src/Makefile.in 2020-01-10 21:36:10.000000000 +0000 +++ fpart-1.4.0/src/Makefile.in 2021-09-26 21:01:06.000000000 +0000 @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.1 from Makefile.am. +# Makefile.in generated by automake 1.16.3 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2018 Free Software Foundation, Inc. +# Copyright (C) 1994-2020 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, diff -Nru fpart-1.2.0/src/options.c fpart-1.4.0/src/options.c --- fpart-1.2.0/src/options.c 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/src/options.c 2021-09-26 21:00:26.000000000 +0000 @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2011-2020 Ganael LAPLANCHE + * Copyright (c) 2011-2021 Ganael LAPLANCHE * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru fpart-1.2.0/src/options.h fpart-1.4.0/src/options.h --- fpart-1.2.0/src/options.h 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/src/options.h 2021-09-26 21:00:26.000000000 +0000 @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2011-2020 Ganael LAPLANCHE + * Copyright (c) 2011-2021 Ganael LAPLANCHE * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru fpart-1.2.0/src/partition.c fpart-1.4.0/src/partition.c --- fpart-1.2.0/src/partition.c 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/src/partition.c 2021-09-26 21:00:26.000000000 +0000 @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2011-2020 Ganael LAPLANCHE + * Copyright (c) 2011-2021 Ganael LAPLANCHE * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru fpart-1.2.0/src/partition.h fpart-1.4.0/src/partition.h --- fpart-1.2.0/src/partition.h 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/src/partition.h 2021-09-26 21:00:26.000000000 +0000 @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2011-2020 Ganael LAPLANCHE + * Copyright (c) 2011-2021 Ganael LAPLANCHE * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru fpart-1.2.0/src/types.h fpart-1.4.0/src/types.h --- fpart-1.2.0/src/types.h 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/src/types.h 2021-09-26 21:00:26.000000000 +0000 @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2011-2020 Ganael LAPLANCHE + * Copyright (c) 2011-2021 Ganael LAPLANCHE * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru fpart-1.2.0/src/utils.c fpart-1.4.0/src/utils.c --- fpart-1.2.0/src/utils.c 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/src/utils.c 2021-09-26 21:00:26.000000000 +0000 @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2011-2020 Ganael LAPLANCHE + * Copyright (c) 2011-2021 Ganael LAPLANCHE * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -122,7 +122,13 @@ } /* Return the size of a file or directory - - a pointer to an existing stat must be provided */ + - a pointer to an existing stat must be provided + + We assume that when that function is called, then the choice of including or + excluding the related file or directory has already been made. Thus, + exclusion list is only honored when computing size of a directory and when + depth is > 0 (i.e. we always accept the root dir but may skip subdirs). +*/ fsize_t get_size(char *file_path, struct stat *file_stat, struct program_options *options) @@ -133,8 +139,10 @@ fsize_t file_size = 0; /* current return value */ - /* if file_path is not a directory, - return st_size for regular files (only) */ + /* if file_path is not a directory, return st_size for regular files (only). + We do *not* check for valid_file() here because if the function has been + called, then the choice of including the file has already been made + before */ if(!S_ISDIR(file_stat->st_mode)) { return (S_ISREG(file_stat->st_mode) ? file_stat->st_size : 0); } @@ -155,23 +163,48 @@ while((p = fts_read(ftsp)) != NULL) { switch (p->fts_info) { - case FTS_DNR: /* un-readable directory */ case FTS_ERR: /* misc error */ + case FTS_DNR: /* un-readable directory */ case FTS_NS: /* stat() error */ fprintf(stderr, "%s: %s\n", p->fts_path, strerror(p->fts_errno)); + case FTS_NSOK: /* no stat(2) available (not requested) */ continue; case FTS_DC: fprintf(stderr, "%s: filesystem loop detected\n", p->fts_path); + case FTS_DOT: /* ignore "." and ".." */ + case FTS_DP: continue; - case FTS_F: - file_size += p->fts_statp->st_size; + case FTS_D: + /* Excluded directories do not account for returned size. + Always accept root dir here because, if the function has been + called, then the choice of including the directory has + already been made before */ + if((!valid_file(p, options, VF_EXCLUDEONLY)) && + (p->fts_level > 0)) { +#if defined(DEBUG) + fprintf(stderr, "%s(): skipping directory: %s\n", __func__, + p->fts_path); +#endif + fts_set(ftsp, p, FTS_SKIP); + } continue; - /* skip everything else (only count regular files' size) */ default: + /* XXX default means remaining file types: + FTS_F, FTS_SL, FTS_SLNONE, FTS_DEFAULT */ + + /* Excluded files do not account for returned size */ + if(!valid_file(p, options, VF_EXCLUDEONLY)) { +#if defined(DEBUG) + fprintf(stderr, "%s(): skipping file: %s\n", __func__, + p->fts_path); +#endif + } + else + file_size += p->fts_statp->st_size; continue; } } @@ -395,12 +428,15 @@ } /* Validate a file regarding program options - - do not check inclusion lists for directories (we must be able to crawl - the entire file hierarchy) + - exclude_only (ignore include lists) is useful to: + - be able to crawl the entire file hierarchy (honoring include lists would + prevent the caller from entering a non-included directory and break + crawling) + - compute leaf directory size, when only exclude lists are needed - return 0 if file is not valid, 1 if it is */ int valid_file(const FTSENT * const p, struct program_options *options, - unsigned char is_leaf) + unsigned char exclude_only) { assert(p != NULL); assert(p->fts_name != NULL); @@ -410,12 +446,13 @@ int valid = 1; #if defined(DEBUG) - fprintf(stderr, "%s(): checking name validity for %s: %s (path: %s)\n", __func__, - is_leaf ? "leaf" : "directory", p->fts_name, p->fts_path); + fprintf(stderr, "%s(): checking name validity (%s includes): %s (path: %s)\n", + __func__, exclude_only ? "without" : "with", + (p->fts_namelen > 0) ? p->fts_name : "", p->fts_path); #endif - /* check for includes (options -y and -Y), for leaves only */ - if(is_leaf) { + /* check for includes (options -y and -Y), if requested */ + if(!exclude_only) { if((options->include_files != NULL) || (options->include_files_ci != NULL)) { /* switch to default exclude, unless file found in lists */ @@ -437,8 +474,8 @@ valid = 0; #if defined(DEBUG) - fprintf(stderr, "%s(): %s: %s, validity: %s\n", __func__, - is_leaf ? "leaf" : "directory", p->fts_name, + fprintf(stderr, "%s(): %s, validity: %s\n", __func__, + (p->fts_namelen > 0) ? p->fts_name : "", valid ? "valid" : "invalid"); #endif diff -Nru fpart-1.2.0/src/utils.h fpart-1.4.0/src/utils.h --- fpart-1.2.0/src/utils.h 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/src/utils.h 2021-09-26 21:00:26.000000000 +0000 @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2011-2020 Ganael LAPLANCHE + * Copyright (c) 2011-2021 Ganael LAPLANCHE * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -90,8 +90,10 @@ uintmax_t str_to_uintmax(const char *str, const unsigned char handle_multiplier); int file_match(const char * const * const array, const unsigned int num, const FTSENT * const p, const unsigned char ignore_case); +#define VF_FULLTEST 0 +#define VF_EXCLUDEONLY 1 int valid_file(const FTSENT * const p, struct program_options *options, - unsigned char is_leaf); + unsigned char exclude_only); char ** clone_env(void); int push_env(char *str, char ***env); diff -Nru fpart-1.2.0/TODO fpart-1.4.0/TODO --- fpart-1.2.0/TODO 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/TODO 2021-09-26 21:00:26.000000000 +0000 @@ -1,14 +1,18 @@ TODO (ideas) : ************** +That file shares several ideas I've had for the project. Feel free to contribute ! + +Global : +- Provide ready-to-use docker nodes ? +- Provide a FS analysis tool to help optimize fpart/fpsync options ? + Fpart: +- chdir(2) to initial working directory before forking hooks ? - Implement option -zzzz to list directories only (0-sized) ? - -E should probably not imply -z (as empty dirs are part of parent dirs' file lists) - To minimize memory footprint in non-live mode, add a 'checkpoint' capability - to sort and flush partitions on a regular basis -- Align get_size() and init_file_entries() behaviour: - - add name filters to get_size() ? - - ignore FS options in get_size() ? + to sort and flush partitions when a memory / file entry count limit is reached - Add an option to specify that a directory matching a path or a pattern should not be split but treated as a file entry - Add constraints, e.g. : force hardlinks to belong to the same partition @@ -22,11 +26,10 @@ - Unit testing Fpsync: +- Add a 'tar' tool +- Show transmitted data size in final status + SIGINFO handler (see GH issue #24) - Improve portability (egrep vs grep, ...) -- Add an option to enable rsync's option -z ? -- Colorized output -- Add an option to exit after fpart pass (to generate jobs only) -- Add an option to force re-sync'ing an already-finished jobname +- Colorized / Improved output / Progressbar - Check if src_dir/ is the same on all workers (using a stat fingerprint) and use the same method for dst_dir/ (stop using a witness file) - Add options to limit total bandwidth / per-syncer load diff -Nru fpart-1.2.0/tools/fpsync fpart-1.4.0/tools/fpsync --- fpart-1.2.0/tools/fpsync 2020-01-10 21:34:42.000000000 +0000 +++ fpart-1.4.0/tools/fpsync 2021-09-26 21:00:40.000000000 +0000 @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright (c) 2014-2020 Ganael LAPLANCHE +# Copyright (c) 2014-2021 Ganael LAPLANCHE # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -25,11 +25,10 @@ # SUCH DAMAGE. # This script is a simple wrapper showing how fpart can be used to migrate data. -# It uses fpart and a copy tool (rsync or cpio) to spawn multiple instances to -# migrate data from src_dir/ to dst_url/. Jobs can execute either locally or -# over SSH. +# It uses fpart and a copy tool to spawn multiple instances to migrate data from +# src_dir/ to dst_url/. Jobs can execute either locally or over SSH. -FPSYNC_VERSION="1.2.0" +FPSYNC_VERSION="1.4.0" ########## Default values for options @@ -54,12 +53,24 @@ OPT_FPSHDIR="" # Temporary dir (local, used for queue management, -t) OPT_TMPDIR="/tmp/fpsync" -# Job name for resume mode (-r) -OPT_JOBNAME="" +# E-mail report option (-M) +OPT_MAIL="" +# Prepare mode (-p) +OPT_PREPARERUN="" +# List runs (-l) +OPT_LISTRUNS="" +# Run ID for resume mode (-r) +OPT_RUNID="" +# Replay mode (-R) +OPT_REPLAYRUN="" +# Archive run (-a) +OPT_ARCHIVERUN="" +# Delete run (-D) +OPT_DELETERUN="" # User-settable tool options (-o) OPT_TOOL="" # Fpart options (-O) -OPT_FPART="-x .zfs -x .snapshot* -x .ckpt" +OPT_FPART="-x|.zfs|-x|.snapshot*|-x|.ckpt" # Sudo mode (-S) OPT_SUDO="" # Verbose mode (-v) @@ -69,48 +80,79 @@ # Destination directory OPT_DSTURL="" -# Mail - Uncomment to receive a mail when the whole run has finished. -# The master machine (the one running this script) must be able to send mail -# using the 'mail' command. No CLI option is provided to change it. -#OPT_MAIL="address@mydomain.tld" - ########## Various functions +#set -o errexit +#set -o nounset +LC_ALL=C + # Print help usage () { - echo "fpsync v${FPSYNC_VERSION} - Sync directories in parallel using fpart" - echo "Copyright (c) 2014-2020 Ganael LAPLANCHE " - echo "WWW: http://contribs.martymac.org" - echo "Usage: $0 [OPTIONS...] src_dir/ dst_url/" - echo "Usage: $0 [-r jobname] [OPTIONS...]" - echo " -m tool external copy tool to use: 'rsync' (default) or 'cpio'" - echo " -n x start concurrent sync jobs" - echo " -f y transfer at most files or directories per sync job" - echo " -s z transfer at most bytes per sync job" - echo " -E work on a per-directory basis (rsync only)" - echo " (WARNING!!! Enables rsync(1)'s --delete option!)" - echo " -w wrks space-separated list of SSH workers" - echo " e.g.: -w 'login@host1 login@host2 login@host3'" - echo " or: -w 'login@host1' -w 'login@host2' -w 'login@host3'" - echo " Jobs are executed locally if not specified (default)." - echo " -d /dir/ set fpsync shared dir to (absolute path)" - echo " This option is mandatory when using SSH workers." - echo " -t /dir/ set fpsync temp dir to (absolute path)" - echo " -r jobname resume job " - echo " (options -f, -s, -o, /src_dir/ and /dst_url/" - echo " are ignored when resuming a previous run)" - echo " -o options override default copy tool options with " - echo " Use this option with care as certain options are" - echo " incompatible with a parallel usage (e.g. rsync's --delete)" - echo " -O options override default fpart options with " - echo " -S use sudo for filesystem crawling and synchronizations" - echo " -v verbose mode (default: quiet)" - echo " This option can be be specified several times to" - echo " increase verbosity level." - echo " -h this help" - echo " src_dir/ source directory (absolute path)" - echo " dst_url/ destination directory (or URL, when using rsync(1))" - echo "See fpsync(1) for more details." + cat << EOF +fpsync v${FPSYNC_VERSION} - Sync directories in parallel using fpart +Copyright (c) 2014-2021 Ganael LAPLANCHE +WWW: http://contribs.martymac.org +Usage: $0 [-p] [OPTIONS...] src_dir/ dst_url/ + $0 -l + $0 -r runid [-R] [OPTIONS...] + $0 -a runid + $0 -D runid + +COMMON OPTIONS: + -t /dir/ set fpsync temp dir to (absolute path) + -d /dir/ set fpsync shared dir to (absolute path) + This option is mandatory when using SSH workers. + -M mailaddr send an e-mail to mailaddr after a run. Multiple + -space-separated- addresses can be specified. + -v verbose mode (default: quiet) + This option can be be specified several times to + increase verbosity level. + -h this help + +SYNCHRONIZATION OPTIONS: + -m tool external copy tool to use: $(tool_print_supported) + (default: 'rsync') + -f y transfer at most files or directories per sync job + -s z transfer at most bytes per sync job + -E work on a per-directory basis ('rsync' tool only) + (WARNING!!! Enables rsync(1)'s --delete option!) + -o options override default copy tool options with + See fpsync(1) for more details. + -O options override default fpart options with pipe-separated + See fpsync(1) for more details. + -S use sudo for filesystem crawling and synchronizations + src_dir/ source directory (absolute path) + dst_url/ destination directory (or URL, when using 'rsync' tool) + +JOB HANDLING AND DISPATCHING OPTIONS: + -n x start concurrent sync jobs per run + -w wrks space-separated list of SSH workers + e.g.: -w 'login@host1 login@host2 login@host3' + or: -w 'login@host1' -w 'login@host2' -w 'login@host3' + Jobs are executed locally if not specified (default). + +RUN HANDLING OPTIONS: + -p prepare mode: prepare target(s) and create a resumable + run by crawling filesystem but do not actually start + synchronization jobs. + -l list previous runs and their status. + -r runid resume run + (options -m, -f, -s, -E, -o, -O, -S, /src_dir/ and + /dst_url/ are ignored when resuming a previous run) + -R replay mode (needs option -r): re-synchronize all + partitions from run instead of working on + remaining ones only. + -a runid archive run to temp dir + -D runid delete run + +See fpsync(1) for more details. +EOF +} + +# Print a message to stdout and exit with normal exit code +end_ok () { + [ -n "$1" ] && echo "$1" + exit 0 } # Print a message to stderr and exit with error code 1 @@ -132,7 +174,7 @@ # Check if $1 is an absolute path is_abs_path() { - echo "$1" | grep -qE "^/" + echo "$1" | grep -qE '^/' } # Check if $1 is a valid rsync URL @@ -142,7 +184,7 @@ # Rsync: rsync://[USER@]HOST[:PORT]/DEST # Simplified as: "anything but slash" followed by at least one ":" is_remote_path() { - echo "$1" | grep -qE "^[^/]+:" + echo "$1" | grep -qE '^[^/]+:' } # Check if $1 is a number @@ -157,19 +199,189 @@ echo "$1" | grep -qE '^0*[1-9][0-9]*[kKmMgGtTpP]?$' } +# Check if $1 contains (at least) a valid e-mail address +is_mailaddr () { + echo "$1" | grep -qE '^[a-zA-Z0-9+._-]+@[a-zA-Z0-9-]+\.' +} + +# Check if $1 is a valid run ID +is_runid () { + echo "$1" | grep -qE '^[0-9]+-[0-9]+$' +} + +########## Tool handling + +# Chek if a tool is supported +# $1 = tool name +tool_is_supported () { + echo "$1" | grep -qE '^(rsync|cpio|tar|tarify)$' +} + +# Print supported tools in a friendly manner +tool_print_supported () { + echo "'rsync', 'cpio', 'tar' or 'tarify'" +} + +# Check if a tool supports a URL as sync target +# $1 = tool name +tool_supports_urls () { + echo "$1" | grep -q '^rsync$' +} + +# Check if a tool supports directory-only mode +# (requires the ability to sync a single-level directory tree) +# $1 = tool name +tool_supports_dirsonly () { + echo "$1" | grep -q '^rsync$' +} + +# Get default tool-related options +# $1 = tool name +tool_get_base_opts () { + [ "$1" = "rsync" ] && + printf '%s\n' '-lptgoD -v --numeric-ids' +} + +# Get mode-specific complementary tool-related options +# $1 = tool name +# $2 = dirs only mode (if string not empty) +tool_get_tool_mode_opts () { + if [ -z "$2" ] + then + # File-based mode + case "$1" in + "rsync") + # Recursive rsync(1) + printf '%s\n' '-r' + ;; + "cpio") + printf '%s\n' '-pdm' + ;; + "tar"|"tarify") + # Update directories themselves but do not recurse + printf '%s\n' '--no-recursion' + ;; + *) + ;; + esac + else + # Dirs-only mode + case "$1" in + "rsync") + # Single-depth rsync(1) + # Postpone deletion to limit impacts of a user interruption + printf '%s\n' '-d --relative --delete --delete-after' + ;; + *) + ;; + esac + fi +} + +# Get mode-specific fpart options +# $1 = tool name +# $2 = dirs only mode (if string not empty) +tool_get_fpart_mode_opts () { + if [ -z "$2" ] + then + # File-based mode + case "$1" in + "rsync") + printf '%s\n' '-zz' + ;; + "cpio"|"tar"|"tarify") + # We want empty directory entries with those tools + # to re-apply correct metadata + printf '%s\n' '-zzz' + ;; + *) + ;; + esac + else + # Dirs-only mode + case "$1" in + "rsync") + # We do *not* want fpart option -zz in dirs-only mode because + # un-readable directories will be created when sync'ing the parent. + printf '%s\n' '-E' + ;; + *) + ;; + esac + fi +} + +# Init tool-specific fpart hooks (black magic is here !) +# $1 = tool name +# XXX That function works on global variable to avoid too many escape characters +# when returning values through stdout +tool_init_fpart_job_command () { + case "$1" in + "rsync") + FPART_JOBCOMMAND="/bin/sh -c '${SUDO} ${TOOL_BIN} ${OPT_TOOL} \ + ${TOOL_MODEOPTS} --files-from=\\\"\${FPART_PARTFILENAME}\\\" --from0 \ + \\\"${OPT_SRCDIR}/\\\" \ + \\\"${OPT_DSTURL}/\\\"' \ + 1>\"${FPART_LOGDIR}/\${FPART_PARTNUMBER}.stdout\" \ + 2>\"${FPART_LOGDIR}/\${FPART_PARTNUMBER}.stderr\"" + ;; + "cpio") + # XXX Warning: -0 and --quiet are non-standard + # (not supported on Solaris), see: + # http://pubs.opengroup.org/onlinepubs/7908799/xcu/cpio.html + # XXX Exec whole shell cmd as root, because we need to cwd first + FPART_JOBCOMMAND="${SUDO} /bin/sh -c 'cd \\\"${OPT_SRCDIR}/\\\" && \ + cat \\\"\${FPART_PARTFILENAME}\\\" | \ + ${TOOL_BIN} ${OPT_TOOL} -0 --quiet ${TOOL_MODEOPTS} \ + \\\"${OPT_DSTURL}/\\\"' \ + 1>\"${FPART_LOGDIR}/\${FPART_PARTNUMBER}.stdout\" \ + 2>\"${FPART_LOGDIR}/\${FPART_PARTNUMBER}.stderr\"" + ;; + "tar") + FPART_JOBCOMMAND="/bin/sh -c '${SUDO} ${TOOL_BIN} cf - \ + ${OPT_TOOL} -C \\\"${OPT_SRCDIR}/\\\" ${TOOL_MODEOPTS} \ + --null -T \\\"\${FPART_PARTFILENAME}\\\" | \ + ${SUDO} ${TOOL_BIN} xpf - \ + ${OPT_TOOL} -C \\\"${OPT_DSTURL}/\\\"' \ + 1>\"${FPART_LOGDIR}/\${FPART_PARTNUMBER}.stdout\" \ + 2>\"${FPART_LOGDIR}/\${FPART_PARTNUMBER}.stderr\"" + ;; + "tarify") + FPART_JOBCOMMAND="/bin/sh -c '${SUDO} ${TOOL_BIN} c \ + -f \\\"${OPT_DSTURL}/\${FPART_PARTNUMBER}.tar\\\" \ + ${OPT_TOOL} -C \\\"${OPT_SRCDIR}/\\\" ${TOOL_MODEOPTS} \ + --null -T \\\"\${FPART_PARTFILENAME}\\\"' \ + 1>\"${FPART_LOGDIR}/\${FPART_PARTNUMBER}.stdout\" \ + 2>\"${FPART_LOGDIR}/\${FPART_PARTNUMBER}.stderr\"" + ;; + *) + ;; + esac +} + +# Check if $2 contains invalid options regarding tool $1 +# $1 = tool name +# $2 = tool options +tool_uses_forbidden_option () { + [ "$1" = "rsync" ] && \ + printf '%s\n' "$2" | grep -q -- '--delete' +} + +########## Options handling + # Parse user options and initialize OPT_* global variables parse_opts () { local opt OPTARG OPTIND - while getopts "m:n:f:s:Ew:d:t:r:o:O:Svh" opt + while getopts "m:n:f:s:Ew:d:t:M:plr:Ra:D:o:O:Svh" opt do case "${opt}" in "m") - if [ "${OPTARG}" = "rsync" ] || [ "${OPTARG}" = "cpio" ] + if tool_is_supported "${OPTARG}" then OPT_TOOL_NAME=${OPTARG} else - end_die "Unsupported tool, please specify 'rsync' or 'cpio'" + end_die "Unsupported tool, please specify $(tool_print_supported)" fi ;; "n") @@ -223,12 +435,45 @@ end_die "Please supply an absolute path for temp dir" fi ;; + "M") + if [ -n "${OPTARG}" ] && is_mailaddr "${OPTARG}" + then + OPT_MAIL="${OPTARG}" + else + end_die "Please supply a valid e-mail address" + fi + ;; + "p") + OPT_PREPARERUN="yes" + ;; + "l") + OPT_LISTRUNS="yes" + ;; "r") - if [ -n "${OPTARG}" ] + if [ -n "${OPTARG}" ] && is_runid "${OPTARG}" + then + OPT_RUNID="${OPTARG}" + else + end_die "Invalid run ID supplied" + fi + ;; + "R") + OPT_REPLAYRUN="yes" + ;; + "a") + if [ -n "${OPTARG}" ] && is_runid "${OPTARG}" then - OPT_JOBNAME="${OPTARG}" + OPT_ARCHIVERUN="${OPTARG}" else - end_die "Invalid job name supplied" + end_die "Invalid run ID supplied" + fi + ;; + "D") + if [ -n "${OPTARG}" ] && is_runid "${OPTARG}" + then + OPT_DELETERUN="${OPTARG}" + else + end_die "Invalid run ID supplied" fi ;; "o") @@ -255,7 +500,7 @@ ;; "h") usage - exit 0 + end_ok ;; *) usage @@ -265,13 +510,6 @@ done shift $((${OPTIND} - 1)) - # Validate partitions' constraints - if is_num "${OPT_FPMAXPARTFILES}" && [ ${OPT_FPMAXPARTFILES} -eq 0 ] && \ - is_num "${OPT_FPMAXPARTSIZE}" && [ ${OPT_FPMAXPARTSIZE} -eq 0 ] - then - end_die "Please specify a least a file (-f) or size (-s) limit for partitions" - fi - # Validate OPT_FPSHDIR (shared directory) if [ -z "${OPT_WRKRS}" ] then @@ -284,8 +522,41 @@ end_die "Please supply a shared dir when specifying workers" fi + # Run handling constraints + _err_msg="Please specify only a single option from: -p, -l -r, -a or -D" + [ -n "${OPT_PREPARERUN}" ] && \ + { [ -n "${OPT_LISTRUNS}" ] || \ + [ -n "${OPT_RUNID}" ] || \ + [ -n "${OPT_ARCHIVERUN}" ] || \ + [ -n "${OPT_DELETERUN}" ] ;} && \ + end_die "${_err_msg}" + [ -n "${OPT_LISTRUNS}" ] && \ + { [ -n "${OPT_RUNID}" ] || \ + [ -n "${OPT_ARCHIVERUN}" ] || \ + [ -n "${OPT_DELETERUN}" ] ;} && \ + end_die "${_err_msg}" + [ -n "${OPT_RUNID}" ] && \ + { [ -n "${OPT_ARCHIVERUN}" ] || \ + [ -n "${OPT_DELETERUN}" ] ;} && \ + end_die "${_err_msg}" + [ -n "${OPT_ARCHIVERUN}" ] && \ + [ -n "${OPT_DELETERUN}" ] && \ + end_die "${_err_msg}" + _err_msg= + + [ -n "${OPT_REPLAYRUN}" ] && [ -z "${OPT_RUNID}" ] && \ + end_die "Replay (-R) option can only be used with resume (-r) option" + + # Validate partitions' constraints + if is_num "${OPT_FPMAXPARTFILES}" && [ ${OPT_FPMAXPARTFILES} -eq 0 ] && \ + is_num "${OPT_FPMAXPARTSIZE}" && [ ${OPT_FPMAXPARTSIZE} -eq 0 ] + then + end_die "Please specify a least a file (-f) or size (-s) limit for partitions" + fi + # Check for src_dir and dst_url presence and validity - if [ -z "${OPT_JOBNAME}" ] + if [ -z "${OPT_RUNID}" ] && [ -z "${OPT_LISTRUNS}" ] && \ + [ -z "${OPT_ARCHIVERUN}" ] && [ -z "${OPT_DELETERUN}" ] then # Check src dir, must be an absolute path if is_abs_path "$1" @@ -298,29 +569,33 @@ # Check dst_url, must be either an absolute path or a URL if is_abs_path "$2" || is_remote_path "$2" then - is_remote_path "$2" && [ "${OPT_TOOL_NAME}" = "cpio" ] && \ - end_die "URLs are not supported when using cpio" + is_remote_path "$2" && ! tool_supports_urls "${OPT_TOOL_NAME}" && \ + end_die "URLs are not supported when using ${OPT_TOOL_NAME}" OPT_DSTURL="$2" else usage - [ "${OPT_TOOL_NAME}" = "cpio" ] && \ + if tool_supports_urls "${OPT_TOOL_NAME}" + then + end_die "Please supply either an absolute path or a rsync URL for dst_url/" + else end_die "Please supply an absolute path for dst_url/" - end_die "Please supply either an absolute path or a rsync URL for dst_url/" + fi fi fi # Handle tool-related options - case "${OPT_TOOL_NAME}" in - "cpio") - [ "${OPT_DIRSONLY}" = "yes" ] && \ - end_die "Option -E is invalid when using cpio" - ;; - *) - # Rsync - [ -z "${OPT_TOOL}" ] && \ - OPT_TOOL="-lptgoD -v --numeric-ids" - ;; - esac + if [ "${OPT_DIRSONLY}" = "yes" ] && ! tool_supports_dirsonly "${OPT_TOOL_NAME}" + then + end_die "Option -E is invalid when using ${OPT_TOOL_NAME} tool" + fi + if [ -z "${OPT_TOOL}" ] + then + OPT_TOOL=$(tool_get_base_opts "${OPT_TOOL_NAME}") + else + tool_uses_forbidden_option "${OPT_TOOL_NAME}" "${OPT_TOOL}" && \ + end_die "Incompatible option(s) detected within toolopts (option -o)" + fi + } @@ -407,10 +682,10 @@ touch "${JOBS_QUEUEDIR}/info" 2>/dev/null umask "${_TMPMASK}" - # Dump information necessary for job resuming + # Dump necessary information for resuming a run cat << EOF > "${JOBS_QUEUEDIR}/info" || \ - end_die "Cannot record job information" -# Job information used for resuming, do not edit ! + end_die "Cannot record run information" +# Run information used for resuming, do not edit ! OPT_RJOBS="${OPT_JOBS}" OPT_TOOL_NAME="${OPT_TOOL_NAME}" OPT_SRCDIR="${OPT_SRCDIR}" @@ -421,25 +696,25 @@ job_queue_info_load () { # Source info file and initialize a few variables . "${JOBS_QUEUEDIR}/info" || \ - end_die "Cannot read job information" + end_die "Cannot read run information" # Validate loaded options { is_num "${OPT_RJOBS}" && [ ${OPT_RJOBS} -ge 1 ] ;} || \ - end_die "Invalid option value loaded from resumed job: OPT_RJOBS" + end_die "Invalid option value loaded from resumed run: OPT_RJOBS" - [ "${OPT_TOOL_NAME}" != "rsync" ] && [ "${OPT_TOOL_NAME}" != "cpio" ] && \ - end_die "Invalid option value loaded from resumed job: OPT_TOOL_NAME" + ! tool_is_supported "${OPT_TOOL_NAME}" && \ + end_die "Invalid option value loaded from resumed run: OPT_TOOL_NAME" is_abs_path "${OPT_SRCDIR}" || \ - end_die "Invalid options value loaded from resumed job: OPT_SRCDIR" + end_die "Invalid options value loaded from resumed run: OPT_SRCDIR" - if [ "${OPT_TOOL_NAME}" = "cpio" ] + if ! tool_supports_urls "${OPT_TOOL_NAME}" then is_abs_path "${OPT_DSTURL}" || \ - end_die "Invalid options value loaded from resumed job: OPT_DSTURL" + end_die "Invalid options value loaded from resumed run: OPT_DSTURL" else is_abs_path "${OPT_DSTURL}" || is_remote_path "${OPT_DSTURL}" || \ - end_die "Invalid options value loaded from resumed job: OPT_DSTURL" + end_die "Invalid options value loaded from resumed run: OPT_DSTURL" fi } @@ -497,7 +772,7 @@ # Handle ^T: print info about queue status siginfo_handler () { - # Job counters, absolute values (common to several runs of the same job) + # Job counters local _jobs_total="$(cd "${FPART_PARTSDIR}" && ls -t1 | wc -l | awk '{print $1}')" local _jobs_done="$(cd "${JOBS_WORKDIR}" && ls -t1 | grep -v 'fp_done' | wc -l | awk '{print $1}')" local _jobs_remaining="$(( ${_jobs_total} - ${_jobs_done} ))" @@ -537,7 +812,7 @@ then echo "sl_stop" else - _NEXT=$(cd "${JOBS_QUEUEDIR}" && ls -rt1 | grep -v "info" | head -n 1) + _NEXT=$(cd "${JOBS_QUEUEDIR}" && ls -rt1 2>/dev/null | grep -v 'info' 2>/dev/null | head -n 1) if [ -n "${_NEXT}" ] then mv "${JOBS_QUEUEDIR}/${_NEXT}" "${JOBS_WORKDIR}" || \ @@ -599,106 +874,129 @@ job_queue_sl_done } +# Print a specific run's status to stdout +# $1 = runid +run_status_print () { + if [ -f "${OPT_TMPDIR}/queue/${1}/fp_done" ] + then + echo "resumable (synchronization not complete, use -r to resume)" + else + if [ -f "${OPT_TMPDIR}/work/${1}/fp_done" ] + then + echo "replayable (synchronization complete, use -R to replay)" + else + echo "not resumable (fpart pass not complete)" + fi + fi +} + ########## Program start (main() !) # Parse command-line options parse_opts "$@" -## Options' post-processing section - -# Job name initialization -if [ -n "${OPT_JOBNAME}" ] -then - # Resume mode, check if OPT_JOBNAME exists - if [ -d "${OPT_TMPDIR}/queue/${OPT_JOBNAME}" ] && \ - [ -d "${OPT_TMPDIR}/work/${OPT_JOBNAME}" ] - then - FPART_JOBNAME="${OPT_JOBNAME}" - else - end_die "Could not find specified job's queue and work directories" - fi -else - # Generate a unique job name. This job name *must* remain - # unique from one job to another. - FPART_JOBNAME="$(date '+%s')-$$" -fi - -# Queue manager configuration. This queue remains local, even when using SSH. -JOBS_QUEUEDIR="${OPT_TMPDIR}/queue/${FPART_JOBNAME}" # Queue dir. -JOBS_WORKDIR="${OPT_TMPDIR}/work/${FPART_JOBNAME}" # Current jobs' dir. +## Paths to 3rd party binaries # Paths to executables that must exist locally FPART_BIN="$(command -v fpart)" SSH_BIN="$(command -v ssh)" MAIL_BIN="$(command -v mail)" +TAR_BIN="$(command -v tar)" # Paths to executables that must exist both locally and remotely SUDO_BIN="$(command -v sudo)" +SUDO="" +[ -n "${OPT_SUDO}" ] && \ + SUDO="${SUDO_BIN}" # Paths to executables that must exist either locally or remotely (depending # on if you use SSH or not). When using SSH, the following binaries must be # present at those paths on each worker. -TOOL_BIN=$(command -v "${OPT_TOOL_NAME}") +if [ "${OPT_TOOL_NAME}" = "tarify" ] +then + TOOL_BIN=$(command -v "tar") +else + TOOL_BIN=$(command -v "${OPT_TOOL_NAME}") +fi -# Do we need sudo ? -if [ -n "${OPT_SUDO}" ] +## Simple run-related -independent- actions, not requiring FPART_RUNID + +# List runs and exit +if [ -n "${OPT_LISTRUNS}" ] then - SUDO="${SUDO_BIN}" + echo "<=== Listing runs" + for _run in \ + $(cd "${OPT_FPSHDIR}/parts" 2>/dev/null && ls -1) + do + echo "===> Run: ID: ${_run}, status: $(run_status_print "${_run}")" + done + end_ok +fi + +# Delete run and exit +if [ -n "${OPT_DELETERUN}" ] +then + { [ -d "${OPT_FPSHDIR}/parts/${OPT_DELETERUN}" ] && \ + rm -rf "${OPT_FPSHDIR}/parts/${OPT_DELETERUN}" && \ + rm -rf "${OPT_FPSHDIR}/log/${OPT_DELETERUN}" && \ + rm -rf "${OPT_TMPDIR}/queue/${OPT_DELETERUN}" && \ + rm -rf "${OPT_TMPDIR}/work/${OPT_DELETERUN}" && \ + end_ok "Successfully deleted run ${OPT_DELETERUN}" ;} || \ + end_die "Error deleting run ${OPT_DELETERUN}" +fi + +# Archive run and exit +if [ -n "${OPT_ARCHIVERUN}" ] +then + [ ! -x "${TAR_BIN}" ] && \ + end_die "Tar is missing locally, check your configuration" + + { [ -d "${OPT_FPSHDIR}/parts/${OPT_ARCHIVERUN}" ] && \ + ( cd "${OPT_TMPDIR}" 2>/dev/null && \ + "${TAR_BIN}" czf fpsync-run-${OPT_ARCHIVERUN}.tgz \ + "${OPT_FPSHDIR}/parts/${OPT_ARCHIVERUN}" \ + "${OPT_FPSHDIR}/log/${OPT_ARCHIVERUN}" \ + "${OPT_TMPDIR}/queue/${OPT_ARCHIVERUN}" \ + "${OPT_TMPDIR}/work/${OPT_ARCHIVERUN}" 2>/dev/null ) && \ + end_ok "Successfully created ${OPT_TMPDIR}/fpsync-run-${OPT_ARCHIVERUN}.tgz" ;} || \ + end_die "Error archiving run ${OPT_ARCHIVERUN}" +fi + +## Options' post-processing section, advanced variables' initialization + +# Run ID initialization +if [ -n "${OPT_RUNID}" ] +then + # Resume mode, check if run ID exists + if [ -d "${OPT_TMPDIR}/queue/${OPT_RUNID}" ] && \ + [ -d "${OPT_TMPDIR}/work/${OPT_RUNID}" ] + then + FPART_RUNID="${OPT_RUNID}" + else + end_die "Could not find specified run's queue and work directories" + fi else - SUDO="" + # Generate a unique run ID. This run ID *must* remain + # unique from one run to another. + FPART_RUNID="$(date '+%s')-$$" fi +# Queue manager configuration. This queue remains local, even when using SSH. +JOBS_QUEUEDIR="${OPT_TMPDIR}/queue/${FPART_RUNID}" # Sync jobs' queue dir +JOBS_WORKDIR="${OPT_TMPDIR}/work/${FPART_RUNID}" # Currently syncing jobs' dir + # Fpart paths. Those ones must be shared amongst all nodes when using SSH # (e.g. through a NFS share mounted on *every* single node, including the master # 'job submitter'). -FPART_PARTSDIR="${OPT_FPSHDIR}/parts/${FPART_JOBNAME}" +FPART_PARTSDIR="${OPT_FPSHDIR}/parts/${FPART_RUNID}" FPART_PARTSTMPL="${FPART_PARTSDIR}/part" -FPART_LOGDIR="${OPT_FPSHDIR}/log/${FPART_JOBNAME}" +FPART_LOGDIR="${OPT_FPSHDIR}/log/${FPART_RUNID}" FPART_LOGFILE="${FPART_LOGDIR}/fpart.log" # Prepare mode-specific tool and fpart options -# We do *not* want fpart option -zz in dirs-only mode because un-readable -# directories will be created when sync'ing the parent. -if [ -n "${OPT_DIRSONLY}" ] -then - # Dirs-only mode, single-depth rsync(1) - # Postpone deletion to limit impacts of a user interruption - TOOL_MODEOPTS="-d --relative --delete --delete-after" - FPART_MODEOPTS="-E" -else - # File-based mode - if [ "${OPT_TOOL_NAME}" = "cpio" ] - then - TOOL_MODEOPTS="-pdm" - FPART_MODEOPTS="-zzz" - else - # Recursive rsync(1) - TOOL_MODEOPTS="-r" - FPART_MODEOPTS="-zz" - fi -fi - -# Fpart hooks (black magic is here !) -if [ "${OPT_TOOL_NAME}" = "cpio" ] -then - # XXX Warning: -0 and --quiet are non-standard - # (not supported on Solaris), see: - # http://pubs.opengroup.org/onlinepubs/7908799/xcu/cpio.html - # XXX Exec whole shell cmd as root, because we need to cwd first - FPART_JOBCOMMAND="${SUDO} /bin/sh -c 'cd \\\"${OPT_SRCDIR}/\\\" && \ - cat \\\"\${FPART_PARTFILENAME}\\\" | \ - ${SUDO} ${TOOL_BIN} ${OPT_TOOL} -0 --quiet ${TOOL_MODEOPTS} \ - \\\"${OPT_DSTURL}/\\\"' \ - 1>\"${FPART_LOGDIR}/\${FPART_PARTNUMBER}.stdout\" \ - 2>\"${FPART_LOGDIR}/\${FPART_PARTNUMBER}.stderr\"" -else - FPART_JOBCOMMAND="/bin/sh -c '${SUDO} ${TOOL_BIN} ${OPT_TOOL} \ - ${TOOL_MODEOPTS} --files-from=\\\"\${FPART_PARTFILENAME}\\\" --from0 \ - \\\"${OPT_SRCDIR}/\\\" \ - \\\"${OPT_DSTURL}/\\\"' \ - 1>\"${FPART_LOGDIR}/\${FPART_PARTNUMBER}.stdout\" \ - 2>\"${FPART_LOGDIR}/\${FPART_PARTNUMBER}.stderr\"" -fi +TOOL_MODEOPTS=$(tool_get_tool_mode_opts "${OPT_TOOL_NAME}" "${OPT_DIRSONLY}") +FPART_MODEOPTS=$(tool_get_fpart_mode_opts "${OPT_TOOL_NAME}" "${OPT_DIRSONLY}") +FPART_JOBCOMMAND= ; tool_init_fpart_job_command "${OPT_TOOL_NAME}" FPART_POSTHOOK="echo \"${FPART_JOBCOMMAND}\" > \ \"${JOBS_QUEUEDIR}/\${FPART_PARTNUMBER}\" && \ [ ${OPT_VERBOSE} -ge 2 ] && \ @@ -719,7 +1017,7 @@ WORK_LIST="" # Work PID:PART:WORKER list WORK_FREEWORKERS="" # Free workers' list -# Check for essential binaries +# Check for local binaries' presence [ ! -x "${FPART_BIN}" ] && \ end_die "Fpart is missing locally, check your configuration" [ -n "${OPT_WRKRS}" ] && [ ! -x "${SSH_BIN}" ] && \ @@ -730,9 +1028,9 @@ end_die "Sudo is missing locally, check your configuration" # Create / check for fpart shared directories -if [ -z "${OPT_JOBNAME}" ] +if [ -z "${OPT_RUNID}" ] then - # For a new job, create those directories + # For a new run, create those directories mkdir -p "${FPART_PARTSDIR}" 2>/dev/null || \ end_die "Cannot create partitions' output directory: ${FPART_PARTSDIR}" mkdir -p "${FPART_LOGDIR}" 2>/dev/null || \ @@ -741,7 +1039,7 @@ # In resume mode, FPART_PARTSDIR and FPART_LOGDIR must already exist if [ ! -d "${FPART_PARTSDIR}" ] || [ ! -d "${FPART_LOGDIR}" ] then - end_die "Could not find specified job's 'parts' and 'log' directories" + end_die "Could not find specified run's 'parts' and 'log' directories" fi fi @@ -749,45 +1047,73 @@ touch "${FPART_LOGFILE}" 2>/dev/null || \ end_die "Cannot create log file: ${FPART_LOGFILE}" -# Create / check for job and work queues -if [ -z "${OPT_JOBNAME}" ] +# Create / check for run's queue and work dirs +if [ -z "${OPT_RUNID}" ] then - # For a new job, create those directories + # For a new run, create those directories job_queue_init else - # When resuming a job, check if : - # - the last fpart pass has completed - # (the 'fp_done' flag is present) - # - the last fpsync pass has *not* completed - # (the 'fp_done' flag is *still* present) + # When resuming a run, check if : # - we can get the number of workers previously implied # (the 'info' flag is present) # - the work queue exists - if [ ! -f "${JOBS_QUEUEDIR}/fp_done" ] || [ ! -f "${JOBS_QUEUEDIR}/info" ] + # + For standard resume mode, strictly check if : + # - the last fpart pass has completed + # (the 'fp_done' flag has been created in job queue dir) + # - the last fpsync pass has *not* completed + # (the 'fp_done' flag is *still* present in job queue dir) + # + For replay mode, we accept that : + # - the last fpsync pass has completed + # (the 'fp_done' flag has been moved to the work queue dir) + [ ! -f "${JOBS_QUEUEDIR}/info" ] && \ + end_die "Specified run is not resumable ('info' flag missing)" + [ ! -d "${JOBS_WORKDIR}" ] && \ + end_die "Specified run is not resumable (work queue missing)" + + # Check for presence of 'fp_done' flag: + # - strictly in JOBS_QUEUEDIR for standard resume mode + # - optionally in JOBS_WORKDIR for replay mode + # and throw an error if 'fp_done' not found at all + if [ ! -f "${JOBS_QUEUEDIR}/fp_done" ] then - end_die "Specified job is not resumable ('fp_done' or 'info' flag missing)" + if [ -z "${OPT_REPLAYRUN}" ] || [ ! -f "${JOBS_WORKDIR}/fp_done" ] + then + end_die "Specified run is not resumable (try -R to replay ?)" + fi fi - [ ! -d "${JOBS_WORKDIR}" ] && \ - end_die "Specified job is not resumable (work queue missing)" - # Job is resumable, try to reload job options and prepare queues + # Run is resumable, try to reload info and prepare queues job_queue_info_load + # Remove the "sl_stop" and "sl_done" flags, if any rm -f "${JOBS_QUEUEDIR}/sl_stop" 2>/dev/null rm -f "${JOBS_QUEUEDIR}/sl_done" 2>/dev/null + # Move potentially-incomplete jobs to the jobs queue so that they can be # executed again. We consider the worst-case scenario and resume OPT_RJOBS # last jobs, some of them being partially finished. for _file in \ $(cd "${JOBS_WORKDIR}" && ls -t1 | head -n "${OPT_RJOBS}") do - mv "${JOBS_WORKDIR}/${_file}" "${JOBS_QUEUEDIR}" 2>/dev/null || - end_die "Cannot resume specified job" + mv "${JOBS_WORKDIR}/${_file}" "${JOBS_QUEUEDIR}" 2>/dev/null || \ + end_die "Error resuming specified run (could not re-schedule jobs)" done + # When performing a replay: + # - reschedule already done jobs to the jobs queue + # - move 'fp_done' flag (implicit, with other files) to the jobs queue + if [ -n "${OPT_REPLAYRUN}" ] + then + for _file in \ + $(cd "${JOBS_WORKDIR}" && ls -1) + do + mv -f "${JOBS_WORKDIR}/${_file}" "${JOBS_QUEUEDIR}" 2>/dev/null || \ + end_die "Error replaying specified run (could not re-schedule jobs)" + done + fi fi # Validate src_dir/ locally (needed for fpart) for first runs or local ones -if [ -z "${OPT_JOBNAME}" ] || [ -z "${OPT_WRKRS}" ] +if [ -z "${OPT_RUNID}" ] || [ -z "${OPT_WRKRS}" ] then [ ! -d "${OPT_SRCDIR}" ] && \ end_die "Source directory does not exist (or is not a directory): ${OPT_SRCDIR}" @@ -812,15 +1138,15 @@ # When using a local (or NFS-mounted) dest dir... if is_abs_path "${OPT_DSTURL}" then - # ...blindly try to create dst_url/ as well as a witness file on the first - # node. Using a witness file will allow us to check for its - # presence/visibility from other nodes, avoiding "split-brain" - # situations where dst_url/ exists but is not shared amongst all nodes - # (typically a local mount point where the shared storage area *should* - # be mounted but isn't, for any reason). + # ...blindly try to create dst_url/ as well as a witness file on + # the first node. Using a witness file will allow us to check for + # its presence/visibility from other nodes, avoiding "split-brain" + # situations where dst_url/ exists but is not shared amongst all + # nodes (typically a local mount point where the shared storage + # area *should* be mounted but isn't, for any reason). [ "${_host}" = "${_FIRST_HOST}" ] && \ "${SSH_BIN}" "${_host}" "/bin/sh -c 'mkdir -p \"${OPT_DSTURL}\" && \ - ${SUDO} touch \"${OPT_DSTURL}/${FPART_JOBNAME}\"' 2>/dev/null" + ${SUDO} touch \"${OPT_DSTURL}/${FPART_RUNID}\"' 2>/dev/null" fi # Check for src_dir/ presence @@ -830,13 +1156,13 @@ # Check for dst_url/ presence (witness file) if is_abs_path "${OPT_DSTURL}" then - "${SSH_BIN}" "${_host}" "/bin/sh -c '[ -f \"${OPT_DSTURL}/${FPART_JOBNAME}\" ]'" || \ + "${SSH_BIN}" "${_host}" "/bin/sh -c '[ -f \"${OPT_DSTURL}/${FPART_RUNID}\" ]'" || \ end_die "Destination directory (shared) is not available on target ${_host}: ${OPT_DSTURL}" fi # Finally, check for tool presence "${SSH_BIN}" "${_host}" "/bin/sh -c '[ -x \"${TOOL_BIN}\" ]'" || \ - end_die "Tool ${OPT_TOOL_NAME} not found on target ${_host}" + end_die "Tool ${OPT_TOOL_NAME} not useable on target ${_host}: ${TOOL_BIN} not found" echo_log "2" "<=== ${_host}: OK" done @@ -845,7 +1171,7 @@ if is_abs_path "${OPT_DSTURL}" then "${SSH_BIN}" "${_FIRST_HOST}" \ - "/bin/sh -c '${SUDO} rm -f \"${OPT_DSTURL}/${FPART_JOBNAME}\"' 2>/dev/null" + "/bin/sh -c '${SUDO} rm -f \"${OPT_DSTURL}/${FPART_RUNID}\"' 2>/dev/null" fi unset _FIRST_HOST @@ -857,7 +1183,7 @@ end_die "Cannot create destination directory: ${OPT_DSTURL}" fi [ ! -x "${TOOL_BIN}" ] && \ - end_die "Tool ${OPT_TOOL_NAME} is missing locally, check your configuration" + end_die "Tool ${OPT_TOOL_NAME} not useable locally: ${TOOL_BIN} not found" fi # Dispatch OPT_WRKRS into WORK_FREEWORKERS @@ -865,7 +1191,7 @@ # Let's rock ! echo_log "2" "=====> [$$] Syncing ${OPT_SRCDIR} => ${OPT_DSTURL}" -echo_log "1" "===> Job name: ${FPART_JOBNAME}$([ -n "${OPT_JOBNAME}" ] && echo ' (resumed)')" +echo_log "1" "===> Run ID: ${FPART_RUNID}$([ -n "${OPT_RUNID}" ] && echo ' (resumed)')" echo_log "2" "===> Start time: $(date)" echo_log "2" "===> Concurrent sync jobs: ${OPT_JOBS}" echo_log "2" "===> Workers: $(echo "${OPT_WRKRS}" | sed -E -e 's/^[[:space:]]+//' -e 's/[[:space:]]+/ /g')$([ -z "${OPT_WRKRS}" ] && echo 'local')" @@ -873,65 +1199,94 @@ echo_log "2" "===> Temp dir: ${OPT_TMPDIR}" echo_log "2" "===> Tool name: \"${OPT_TOOL_NAME}\"" # The following options are ignored when resuming -if [ -z "${OPT_JOBNAME}" ] +if [ -z "${OPT_RUNID}" ] then echo_log "2" "===> Tool options: \"${OPT_TOOL}\"" + echo_log "2" "===> Fpart options: \"${OPT_FPART}\"" echo_log "2" "===> Max files or directories per sync job: ${OPT_FPMAXPARTFILES}" echo_log "2" "===> Max bytes per sync job: ${OPT_FPMAXPARTSIZE}" fi -# Record job information +# Record run information job_queue_info_dump # Record initial status, required by siginfo_handler() _run_start_jobs="$(cd "${JOBS_WORKDIR}" && ls -t1 | grep -v 'fp_done' | wc -l | awk '{print $1}')" _run_start_time="$(date '+%s')" -# Set SIGINT and SIGINFO traps and start job_queue_loop -trap 'sigint_handler' 2 -trap 'siginfo_handler' 29 -echo_log "2" "===> Use ^C to abort, ^T (SIGINFO) to display status" -job_queue_loop& - -# When not resuming a previous job, start fpart -if [ -z "${OPT_JOBNAME}" ] -then - echo_log "1" "===> Analyzing filesystem..." - # Start fpart from src_dir/ directory and produce jobs within - # ${JOBS_QUEUEDIR}/ - cd "${OPT_SRCDIR}" && \ - ${SUDO} "${FPART_BIN}" \ - $([ ${OPT_FPMAXPARTFILES} -gt 0 ] && echo -f "${OPT_FPMAXPARTFILES}") \ - $({ { is_num "${OPT_FPMAXPARTSIZE}" && [ ${OPT_FPMAXPARTSIZE} -gt 0 ] ;} || is_size "${OPT_FPMAXPARTSIZE}" ;} && echo -s "${OPT_FPMAXPARTSIZE}") \ - -o "${FPART_PARTSTMPL}" -0 -e ${OPT_FPART} ${FPART_MODEOPTS} -L \ - -W "${FPART_POSTHOOK}" . 2>&1 | \ - tee -a "${FPART_LOGFILE}" -fi - -# Tell job_queue_loop that crawling has finished -job_queue_fp_done - -# Wait for job_queue_loop to terminate -# Use an active wait to allow signal processing (^T) -echo_log "1" "===> Waiting for sync jobs to complete..." -while [ ! -f "${JOBS_QUEUEDIR}/sl_done" ] -do - sleep 0.2 -done +# When not in prepare mode, start synchronization loop +if [ -z "${OPT_PREPARERUN}" ] +then + # Set SIGINT and SIGINFO traps and start job_queue_loop + trap 'sigint_handler' 2 + trap 'siginfo_handler' 29 + echo_log "2" "===> Use ^C to abort, ^T (SIGINFO) to display status" + job_queue_loop& +fi + +# When not resuming a previous run, start fpart +if [ -z "${OPT_RUNID}" ] +then + # Fork sub-shell to restrict set and IFS scope + ( + # Enable pipefail if supported by current shell + # (needed because of tee sink) + set -o | grep -q '^pipefail' && \ + set -o pipefail + # Allow passing special characters within fpart sub-options + # (OPT_FPART, FPART_MODEOPTS) + set -o noglob + # Allow spaces within fpart sub-options + IFS="|" + + echo_log "1" "===> Analyzing filesystem..." + # Start fpart from src_dir/ directory and produce jobs within + # ${JOBS_QUEUEDIR}/ + cd "${OPT_SRCDIR}" && \ + ${SUDO} "${FPART_BIN}" \ + $([ ${OPT_FPMAXPARTFILES} -gt 0 ] && printf '%s\n' "-f ${OPT_FPMAXPARTFILES}") \ + $({ { is_num "${OPT_FPMAXPARTSIZE}" && [ ${OPT_FPMAXPARTSIZE} -gt 0 ] ;} || is_size "${OPT_FPMAXPARTSIZE}" ;} && printf '%s\n' "-s ${OPT_FPMAXPARTSIZE}") \ + -o "${FPART_PARTSTMPL}" -0 -e ${OPT_FPART} ${FPART_MODEOPTS} -L \ + -W "${FPART_POSTHOOK}" . 2>&1 | \ + tee -a "${FPART_LOGFILE}" + ) + + [ $? -ne 0 ] && \ + end_die "Fpart exited with errors" + + # Tell job_queue_loop that crawling has finished + job_queue_fp_done +fi + +# When not in prepare mode, wait for job_queue_loop to terminate +if [ -z "${OPT_PREPARERUN}" ] +then + # Use an active wait to allow signal processing (^T) + echo_log "1" "===> Waiting for sync jobs to complete..." + while [ ! -f "${JOBS_QUEUEDIR}/sl_done" ] + do + sleep 0.2 + done +fi # Display final status [ ${OPT_VERBOSE} -ge 1 ] && siginfo_handler -# Examine results and send an e-mail if requested -RET=$(find "${FPART_LOGDIR}/" -name "*.stderr" ! -size 0) -MSG=$( { [ -z "${RET}" ] && echo 'Fpsync completed without error.' ;} || \ - { echo "Fpsync completed with errors, see logs:" && echo "${RET}" ;} ) -if [ -n "${OPT_MAIL}" ] +# Examine results and print/send report +if [ -n "${OPT_PREPARERUN}" ] then - echo "${MSG}" | ${MAIL_BIN} -s "Fpsync job ${FPART_JOBNAME}" "${OPT_MAIL}" + echo_log "0" "<=== Successfully prepared run: ${FPART_RUNID}" + _report_subj="Fpsync run ${FPART_RUNID} (prepared)" +else + _report_subj="Fpsync run ${FPART_RUNID}" fi -echo_log "1" "<=== ${MSG}" +_report_logs=$(find "${FPART_LOGDIR}/" -name "*.stderr" ! -size 0) +_report_body=$( { [ -z "${_report_logs}" ] && echo 'Fpsync completed without error.' ;} || \ + { echo "Fpsync completed with errors, see logs:" && echo "${_report_logs}" ;} ) +echo_log "1" "<=== ${_report_body}" echo_log "2" "<=== End time: $(date)" +[ -n "${OPT_MAIL}" ] && \ + echo "${_report_body}" | ${MAIL_BIN} -s "${_report_subj}" ${OPT_MAIL} -[ -n "${RET}" ] && exit 1 -exit 0 +[ -n "${_report_logs}" ] && end_die +end_ok diff -Nru fpart-1.2.0/tools/Makefile.in fpart-1.4.0/tools/Makefile.in --- fpart-1.2.0/tools/Makefile.in 2020-01-10 21:36:10.000000000 +0000 +++ fpart-1.4.0/tools/Makefile.in 2021-09-26 21:01:06.000000000 +0000 @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.1 from Makefile.am. +# Makefile.in generated by automake 1.16.3 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2018 Free Software Foundation, Inc. +# Copyright (C) 1994-2020 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it,