HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #712

Ticket #712: e2fsprogs-1.43.patch

File e2fsprogs-1.43.patch, 51.6 KB (added by richienyhus, 2 years ago)
  • e2fsprogs-1.

    diff -Naur e2fsprogs-1.43/configure e2fsprogs-1.43-haiku/configure
    old new  
    11#! /bin/sh 
    22# Guess values for system-dependent variables and create Makefiles. 
    3 # Generated by GNU Autoconf 2.69. 
     3# Generated by GNU Autoconf 2.68. 
    44# 
    55# 
    6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 
     6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 
     7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 
     8# Foundation, Inc. 
    79# 
    810# 
    911# This configure script is free software; the Free Software Foundation 
    … …  
    132134# CDPATH. 
    133135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 
    134136 
    135 # Use a proper internal environment variable to ensure we don't fall 
    136   # into an infinite loop, continuously re-executing ourselves. 
    137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 
    138     _as_can_reexec=no; export _as_can_reexec; 
    139     # We cannot yet assume a decent shell, so we have to provide a 
    140 # neutralization value for shells without unset; and this also 
    141 # works around shells that cannot unset nonexistent variables. 
    142 # Preserve -v and -x to the replacement shell. 
    143 BASH_ENV=/dev/null 
    144 ENV=/dev/null 
    145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 
    146 case $- in # (((( 
    147   *v*x* | *x*v* ) as_opts=-vx ;; 
    148   *v* ) as_opts=-v ;; 
    149   *x* ) as_opts=-x ;; 
    150   * ) as_opts= ;; 
    151 esac 
    152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 
    153 # Admittedly, this is quite paranoid, since all the known shells bail 
    154 # out after a failed `exec'. 
    155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 
    156 as_fn_exit 255 
    157   fi 
    158   # We don't want this to propagate to other subprocesses. 
    159           { _as_can_reexec=; unset _as_can_reexec;} 
    160137if test "x$CONFIG_SHELL" = x; then 
    161138  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 
    162139  emulate sh 
    … …  
    190167else 
    191168  exitcode=1; echo positional parameters were not saved. 
    192169fi 
    193 test x\$exitcode = x0 || exit 1 
    194 test -x / || exit 1" 
     170test x\$exitcode = x0 || exit 1" 
    195171  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 
    196172  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 
    197173  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 
    … …  
    236212 
    237213 
    238214      if test "x$CONFIG_SHELL" != x; then : 
    239   export CONFIG_SHELL 
    240              # We cannot yet assume a decent shell, so we have to provide a 
    241 # neutralization value for shells without unset; and this also 
    242 # works around shells that cannot unset nonexistent variables. 
    243 # Preserve -v and -x to the replacement shell. 
    244 BASH_ENV=/dev/null 
    245 ENV=/dev/null 
    246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 
    247 case $- in # (((( 
    248   *v*x* | *x*v* ) as_opts=-vx ;; 
    249   *v* ) as_opts=-v ;; 
    250   *x* ) as_opts=-x ;; 
    251   * ) as_opts= ;; 
    252 esac 
    253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 
    254 # Admittedly, this is quite paranoid, since all the known shells bail 
    255 # out after a failed `exec'. 
    256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 
    257 exit 255 
     215  # We cannot yet assume a decent shell, so we have to provide a 
     216        # neutralization value for shells without unset; and this also 
     217        # works around shells that cannot unset nonexistent variables. 
     218        # Preserve -v and -x to the replacement shell. 
     219        BASH_ENV=/dev/null 
     220        ENV=/dev/null 
     221        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 
     222        export CONFIG_SHELL 
     223        case $- in # (((( 
     224          *v*x* | *x*v* ) as_opts=-vx ;; 
     225          *v* ) as_opts=-v ;; 
     226          *x* ) as_opts=-x ;; 
     227          * ) as_opts= ;; 
     228        esac 
     229        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 
    258230fi 
    259231 
    260232    if test x$as_have_required = xno; then : 
    … …  
    356328 
    357329 
    358330} # as_fn_mkdir_p 
    359  
    360 # as_fn_executable_p FILE 
    361 # ----------------------- 
    362 # Test if FILE is an executable regular file. 
    363 as_fn_executable_p () 
    364 { 
    365   test -f "$1" && test -x "$1" 
    366 } # as_fn_executable_p 
    367331# as_fn_append VAR VALUE 
    368332# ---------------------- 
    369333# Append the text in VALUE to the end of the definition contained in VAR. Take 
    … …  
    485449  chmod +x "$as_me.lineno" || 
    486450    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 
    487451 
    488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 
    489   # already done that, so ensure we don't try to do so again and fall 
    490   # in an infinite loop.  This has already happened in practice. 
    491   _as_can_reexec=no; export _as_can_reexec 
    492452  # Don't try to exec as it changes $[0], causing all sort of problems 
    493453  # (the dirname of $[0] is not the place where we might find the 
    494454  # original and so on.  Autoconf is especially sensitive to this). 
    … …  
    523483    # ... but there are two gotchas: 
    524484    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 
    525485    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 
    526     # In both cases, we have to default to `cp -pR'. 
     486    # In both cases, we have to default to `cp -p'. 
    527487    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 
    528       as_ln_s='cp -pR' 
     488      as_ln_s='cp -p' 
    529489  elif ln conf$$.file conf$$ 2>/dev/null; then 
    530490    as_ln_s=ln 
    531491  else 
    532     as_ln_s='cp -pR' 
     492    as_ln_s='cp -p' 
    533493  fi 
    534494else 
    535   as_ln_s='cp -pR' 
     495  as_ln_s='cp -p' 
    536496fi 
    537497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 
    538498rmdir conf$$.dir 2>/dev/null 
    … …  
    544504  as_mkdir_p=false 
    545505fi 
    546506 
    547 as_test_x='test -x' 
    548 as_executable_p=as_fn_executable_p 
     507if test -x / >/dev/null 2>&1; then 
     508  as_test_x='test -x' 
     509else 
     510  if ls -dL / >/dev/null 2>&1; then 
     511    as_ls_L_option=L 
     512  else 
     513    as_ls_L_option= 
     514  fi 
     515  as_test_x=' 
     516    eval sh -c '\'' 
     517      if test -d "$1"; then 
     518        test -d "$1/."; 
     519      else 
     520        case $1 in #( 
     521        -*)set "./$1";; 
     522        esac; 
     523        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 
     524        ???[sx]*):;;*)false;;esac;fi 
     525    '\'' sh 
     526  ' 
     527fi 
     528as_executable_p=$as_test_x 
    549529 
    550530# Sed expression to map a string onto a valid CPP name. 
    551531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 
    … …  
    916896dvidir='${docdir}' 
    917897pdfdir='${docdir}' 
    918898psdir='${docdir}' 
    919 libdir='${exec_prefix}/lib' 
     899libdir='${exec_prefix}' 
    920900localedir='${datarootdir}/locale' 
    921901mandir='${datarootdir}/man' 
    922902 
    … …  
    13251305if test "x$host_alias" != x; then 
    13261306  if test "x$build_alias" = x; then 
    13271307    cross_compiling=maybe 
     1308    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 
     1309    If a cross compiler is detected then cross compile mode will be used" >&2 
    13281310  elif test "x$build_alias" != "x$host_alias"; then 
    13291311    cross_compiling=yes 
    13301312  fi 
    … …  
    14981480  --disable-testio-debug  disable the use of the test I/O manager for debugging 
    14991481  --disable-libuuid       do not build private uuid library 
    15001482  --disable-libblkid      do not build private blkid library 
    1501   --enable-libquota       enable quota support 
     1483  --disable-quota         disable quota support 
    15021484  --disable-debugfs       disable support of debugfs program 
    15031485  --disable-imager        disable support of e2image program 
    15041486  --disable-resizer       disable support of e2resize program 
    … …  
    16071589if $ac_init_version; then 
    16081590  cat <<\_ACEOF 
    16091591configure 
    1610 generated by GNU Autoconf 2.69 
     1592generated by GNU Autoconf 2.68 
    16111593 
    1612 Copyright (C) 2012 Free Software Foundation, Inc. 
     1594Copyright (C) 2010 Free Software Foundation, Inc. 
    16131595This configure script is free software; the Free Software Foundation 
    16141596gives unlimited permission to copy, distribute and modify it. 
    16151597_ACEOF 
    … …  
    16851667         test ! -s conftest.err 
    16861668       } && test -s conftest$ac_exeext && { 
    16871669         test "$cross_compiling" = yes || 
    1688          test -x conftest$ac_exeext 
     1670         $as_test_x conftest$ac_exeext 
    16891671       }; then : 
    16901672  ac_retval=0 
    16911673else 
    … …  
    20392021main () 
    20402022{ 
    20412023static int test_array [1 - 2 * !(($2) >= 0)]; 
    2042 test_array [0] = 0; 
    2043 return test_array [0]; 
     2024test_array [0] = 0 
    20442025 
    20452026  ; 
    20462027  return 0; 
    … …  
    20562037main () 
    20572038{ 
    20582039static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 
    2059 test_array [0] = 0; 
    2060 return test_array [0]; 
     2040test_array [0] = 0 
    20612041 
    20622042  ; 
    20632043  return 0; 
    … …  
    20832063main () 
    20842064{ 
    20852065static int test_array [1 - 2 * !(($2) < 0)]; 
    2086 test_array [0] = 0; 
    2087 return test_array [0]; 
     2066test_array [0] = 0 
    20882067 
    20892068  ; 
    20902069  return 0; 
    … …  
    21002079main () 
    21012080{ 
    21022081static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 
    2103 test_array [0] = 0; 
    2104 return test_array [0]; 
     2082test_array [0] = 0 
    21052083 
    21062084  ; 
    21072085  return 0; 
    … …  
    21352113main () 
    21362114{ 
    21372115static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 
    2138 test_array [0] = 0; 
    2139 return test_array [0]; 
     2116test_array [0] = 0 
    21402117 
    21412118  ; 
    21422119  return 0; 
    … …  
    23122289running configure, to aid debugging if configure makes a mistake. 
    23132290 
    23142291It was created by $as_me, which was 
    2315 generated by GNU Autoconf 2.69.  Invocation command line was 
     2292generated by GNU Autoconf 2.68.  Invocation command line was 
    23162293 
    23172294  $ $0 $@ 
    23182295 
    … …  
    28492826  IFS=$as_save_IFS 
    28502827  test -z "$as_dir" && as_dir=. 
    28512828    for ac_exec_ext in '' $ac_executable_extensions; do 
    2852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     2829  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    28532830    ac_cv_prog_CC="${ac_tool_prefix}gcc" 
    28542831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    28552832    break 2 
    … …  
    28892866  IFS=$as_save_IFS 
    28902867  test -z "$as_dir" && as_dir=. 
    28912868    for ac_exec_ext in '' $ac_executable_extensions; do 
    2892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     2869  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    28932870    ac_cv_prog_ac_ct_CC="gcc" 
    28942871    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    28952872    break 2 
    … …  
    29422919  IFS=$as_save_IFS 
    29432920  test -z "$as_dir" && as_dir=. 
    29442921    for ac_exec_ext in '' $ac_executable_extensions; do 
    2945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     2922  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    29462923    ac_cv_prog_CC="${ac_tool_prefix}cc" 
    29472924    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    29482925    break 2 
    … …  
    29832960  IFS=$as_save_IFS 
    29842961  test -z "$as_dir" && as_dir=. 
    29852962    for ac_exec_ext in '' $ac_executable_extensions; do 
    2986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     2963  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    29872964    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 
    29882965       ac_prog_rejected=yes 
    29892966       continue 
    … …  
    30413018  IFS=$as_save_IFS 
    30423019  test -z "$as_dir" && as_dir=. 
    30433020    for ac_exec_ext in '' $ac_executable_extensions; do 
    3044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     3021  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    30453022    ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 
    30463023    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    30473024    break 2 
    … …  
    30853062  IFS=$as_save_IFS 
    30863063  test -z "$as_dir" && as_dir=. 
    30873064    for ac_exec_ext in '' $ac_executable_extensions; do 
    3088   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     3065  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    30893066    ac_cv_prog_ac_ct_CC="$ac_prog" 
    30903067    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    30913068    break 2 
    … …  
    35313508/* end confdefs.h.  */ 
    35323509#include <stdarg.h> 
    35333510#include <stdio.h> 
    3534 struct stat; 
     3511#include <sys/types.h> 
     3512#include <sys/stat.h> 
    35353513/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ 
    35363514struct buf { int x; }; 
    35373515FILE * (*rcsopen) (struct buf *, struct stat *, int); 
    … …  
    37103688  IFS=$as_save_IFS 
    37113689  test -z "$as_dir" && as_dir=. 
    37123690    for ac_exec_ext in '' $ac_executable_extensions; do 
    3713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     3691  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    37143692    ac_cv_prog_CC="${ac_tool_prefix}gcc" 
    37153693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    37163694    break 2 
    … …  
    37503728  IFS=$as_save_IFS 
    37513729  test -z "$as_dir" && as_dir=. 
    37523730    for ac_exec_ext in '' $ac_executable_extensions; do 
    3753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     3731  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    37543732    ac_cv_prog_ac_ct_CC="gcc" 
    37553733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    37563734    break 2 
    … …  
    38033781  IFS=$as_save_IFS 
    38043782  test -z "$as_dir" && as_dir=. 
    38053783    for ac_exec_ext in '' $ac_executable_extensions; do 
    3806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     3784  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    38073785    ac_cv_prog_CC="${ac_tool_prefix}cc" 
    38083786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    38093787    break 2 
    … …  
    38443822  IFS=$as_save_IFS 
    38453823  test -z "$as_dir" && as_dir=. 
    38463824    for ac_exec_ext in '' $ac_executable_extensions; do 
    3847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     3825  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    38483826    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 
    38493827       ac_prog_rejected=yes 
    38503828       continue 
    … …  
    39023880  IFS=$as_save_IFS 
    39033881  test -z "$as_dir" && as_dir=. 
    39043882    for ac_exec_ext in '' $ac_executable_extensions; do 
    3905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     3883  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    39063884    ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 
    39073885    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    39083886    break 2 
    … …  
    39463924  IFS=$as_save_IFS 
    39473925  test -z "$as_dir" && as_dir=. 
    39483926    for ac_exec_ext in '' $ac_executable_extensions; do 
    3949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     3927  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    39503928    ac_cv_prog_ac_ct_CC="$ac_prog" 
    39513929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    39523930    break 2 
    … …  
    41424120/* end confdefs.h.  */ 
    41434121#include <stdarg.h> 
    41444122#include <stdio.h> 
    4145 struct stat; 
     4123#include <sys/types.h> 
     4124#include <sys/stat.h> 
    41464125/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ 
    41474126struct buf { int x; }; 
    41484127FILE * (*rcsopen) (struct buf *, struct stat *, int); 
    … …  
    42284207ac_compiler_gnu=$ac_cv_c_compiler_gnu 
    42294208 
    42304209if test "$GCC" = yes; then 
    4231    RDYNAMIC="-rdynamic" 
     4210   case "$host_os" in 
     4211   haiku*) RDYNAMIC="-Wl,-export-dynamic" ;; 
     4212   *) RDYNAMIC="-rdynamic" ;; 
     4213   esac 
    42324214 
    42334215fi 
    42344216ac_ext=c 
    … …  
    47914773  IFS=$as_save_IFS 
    47924774  test -z "$as_dir" && as_dir=. 
    47934775    for ac_exec_ext in '' $ac_executable_extensions; do 
    4794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     4776  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    47954777    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 
    47964778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    47974779    break 2 
    … …  
    48344816  IFS=$as_save_IFS 
    48354817  test -z "$as_dir" && as_dir=. 
    48364818    for ac_exec_ext in '' $ac_executable_extensions; do 
    4837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     4819  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    48384820    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 
    48394821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    48404822    break 2 
    … …  
    49984980  IFS=$as_save_IFS 
    49994981  test -z "$as_dir" && as_dir=. 
    50004982    for ac_exec_ext in '' $ac_executable_extensions; do 
    5001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     4983  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    50024984    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 
    50034985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    50044986    break 2 
    … …  
    50415023  IFS=$as_save_IFS 
    50425024  test -z "$as_dir" && as_dir=. 
    50435025    for ac_exec_ext in '' $ac_executable_extensions; do 
    5044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     5026  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    50455027    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 
    50465028    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    50475029    break 2 
    … …  
    51885170 
    51895171 
    51905172 
     5173QUOTA_CMT= 
    51915174 
    51925175 
    51935176if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 
    … …  
    52105193  IFS=$as_save_IFS 
    52115194  test -z "$as_dir" && as_dir=. 
    52125195    for ac_exec_ext in '' $ac_executable_extensions; do 
    5213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     5196  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    52145197    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 
    52155198    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    52165199    break 2 
    … …  
    52535236  IFS=$as_save_IFS 
    52545237  test -z "$as_dir" && as_dir=. 
    52555238    for ac_exec_ext in '' $ac_executable_extensions; do 
    5256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     5239  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    52575240    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 
    52585241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    52595242    break 2 
    … …  
    53115294then 
    53125295        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5 
    53135296$as_echo "Disabling quota support" >&6; } 
     5297        QUOTA_CMT=# 
    53145298else 
    53155299        $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h 
    53165300 
    53175301        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5 
    53185302$as_echo "Enabling quota support" >&6; } 
     5303        LIBQUOTA='$(LIB)/libquota'$LIB_EXT 
     5304        DEPLIBQUOTA=$LIBQUOTA 
     5305        STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT 
     5306        DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA 
     5307        PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT 
     5308        DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA 
    53195309fi 
    53205310 
    53215311else 
    5322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5 
    5323 $as_echo "Disabling quota support by default" >&6; } 
    5324  
    5325 fi 
     5312  $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h 
    53265313 
     5314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support by default" >&5 
     5315$as_echo "Enabling quota support by default" >&6; } 
    53275316LIBQUOTA='$(LIB)/libquota'$LIB_EXT 
    53285317DEPLIBQUOTA=$LIBQUOTA 
    53295318STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT 
    … …  
    53315320PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT 
    53325321DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA 
    53335322 
     5323fi 
     5324 
     5325 
    53345326 
    53355327 
    53365328 
    … …  
    57395731    # by default. 
    57405732    for ac_prog in ginstall scoinst install; do 
    57415733      for ac_exec_ext in '' $ac_executable_extensions; do 
    5742         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 
     5734        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 
    57435735          if test $ac_prog = install && 
    57445736            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 
    57455737            # AIX install.  It has an incompatible calling convention. 
    … …  
    59125904  IFS=$as_save_IFS 
    59135905  test -z "$as_dir" && as_dir=. 
    59145906    for ac_exec_ext in '' $ac_executable_extensions; do 
    5915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     5907  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    59165908    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 
    59175909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    59185910    break 2 
    … …  
    61206112  IFS=$as_save_IFS 
    61216113  test -z "$as_dir" && as_dir=. 
    61226114    for ac_exec_ext in '' $ac_executable_extensions; do 
    6123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     6115  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    61246116    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 
    61256117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    61266118    break 2 
    … …  
    61606152  IFS=$as_save_IFS 
    61616153  test -z "$as_dir" && as_dir=. 
    61626154    for ac_exec_ext in '' $ac_executable_extensions; do 
    6163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     6155  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    61646156    ac_cv_prog_ac_ct_RANLIB="ranlib" 
    61656157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    61666158    break 2 
    … …  
    62556247    for ac_prog in grep ggrep; do 
    62566248    for ac_exec_ext in '' $ac_executable_extensions; do 
    62576249      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 
    6258       as_fn_executable_p "$ac_path_GREP" || continue 
     6250      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 
    62596251# Check for GNU ac_path_GREP and select it if it is found. 
    62606252  # Check for GNU $ac_path_GREP 
    62616253case `"$ac_path_GREP" --version 2>&1` in 
    … …  
    63216313    for ac_prog in egrep; do 
    63226314    for ac_exec_ext in '' $ac_executable_extensions; do 
    63236315      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 
    6324       as_fn_executable_p "$ac_path_EGREP" || continue 
     6316      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 
    63256317# Check for GNU ac_path_EGREP and select it if it is found. 
    63266318  # Check for GNU $ac_path_EGREP 
    63276319case `"$ac_path_EGREP" --version 2>&1` in 
    … …  
    64926484int 
    64936485main () 
    64946486{ 
    6495  
     6487/* FIXME: Include the comments suggested by Paul. */ 
    64966488#ifndef __cplusplus 
    6497   /* Ultrix mips cc rejects this sort of thing.  */ 
     6489  /* Ultrix mips cc rejects this.  */ 
    64986490  typedef int charset[2]; 
    6499   const charset cs = { 0, 0 }; 
     6491  const charset cs; 
    65006492  /* SunOS 4.1.1 cc rejects this.  */ 
    65016493  char const *const *pcpcc; 
    65026494  char **ppc; 
    … …  
    65136505  ++pcpcc; 
    65146506  ppc = (char**) pcpcc; 
    65156507  pcpcc = (char const *const *) ppc; 
    6516   { /* SCO 3.2v4 cc rejects this sort of thing.  */ 
    6517     char tx; 
    6518     char *t = &tx; 
     6508  { /* SCO 3.2v4 cc rejects this.  */ 
     6509    char *t; 
    65196510    char const *s = 0 ? (char *) 0 : (char const *) 0; 
    65206511 
    65216512    *t++ = 0; 
    … …  
    65316522    iptr p = 0; 
    65326523    ++p; 
    65336524  } 
    6534   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 
     6525  { /* AIX XL C 1.02.0.0 rejects this saying 
    65356526       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 
    6536     struct s { int j; const int *ap[3]; } bx; 
    6537     struct s *b = &bx; b->j = 5; 
     6527    struct s { int j; const int *ap[3]; }; 
     6528    struct s *b; b->j = 5; 
    65386529  } 
    65396530  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 
    65406531    const int foo = 10; 
    … …  
    71447135/* end confdefs.h.  */ 
    71457136$ac_includes_default 
    71467137int 
    7147 find_stack_direction (int *addr, int depth) 
     7138find_stack_direction () 
    71487139{ 
    7149   int dir, dummy = 0; 
    7150   if (! addr) 
    7151     addr = &dummy; 
    7152   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 
    7153   dir = depth ? find_stack_direction (addr, depth - 1) : 0; 
    7154   return dir + dummy; 
     7140  static char *addr = 0; 
     7141  auto char dummy; 
     7142  if (addr == 0) 
     7143    { 
     7144      addr = &dummy; 
     7145      return find_stack_direction (); 
     7146    } 
     7147  else 
     7148    return (&dummy > addr) ? 1 : -1; 
    71557149} 
    71567150 
    71577151int 
    7158 main (int argc, char **argv) 
     7152main () 
    71597153{ 
    7160   return find_stack_direction (0, argc + !argv + 20) < 0; 
     7154  return find_stack_direction () < 0; 
    71617155} 
    71627156_ACEOF 
    71637157if ac_fn_c_try_run "$LINENO"; then : 
    … …  
    88038797  IFS=$as_save_IFS 
    88048798  test -z "$as_dir" && as_dir=. 
    88058799    for ac_exec_ext in '' $ac_executable_extensions; do 
    8806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     8800  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    88078801    ac_cv_prog_INTLBISON="$ac_prog" 
    88088802    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    88098803    break 2 
    … …  
    96089602  IFS=$as_save_IFS 
    96099603  test -z "$as_dir" && as_dir=. 
    96109604    for ac_exec_ext in '' $ac_executable_extensions; do 
    9611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     9605  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    96129606    ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 
    96139607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    96149608    break 2 
    … …  
    96609654  IFS=$as_save_IFS 
    96619655  test -z "$as_dir" && as_dir=. 
    96629656    for ac_exec_ext in '' $ac_executable_extensions; do 
    9663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     9657  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    96649658    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 
    96659659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    96669660    break 2 
    … …  
    97019695  IFS=$as_save_IFS 
    97029696  test -z "$as_dir" && as_dir=. 
    97039697    for ac_exec_ext in '' $ac_executable_extensions; do 
    9704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     9698  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    97059699    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 
    97069700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    97079701    break 2 
    … …  
    97429736  IFS=$as_save_IFS 
    97439737  test -z "$as_dir" && as_dir=. 
    97449738    for ac_exec_ext in '' $ac_executable_extensions; do 
    9745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     9739  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    97469740    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 
    97479741    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    97489742    break 2 
    … …  
    97839777  IFS=$as_save_IFS 
    97849778  test -z "$as_dir" && as_dir=. 
    97859779    for ac_exec_ext in '' $ac_executable_extensions; do 
    9786   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     9780  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    97879781    ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 
    97889782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    97899783    break 2 
    … …  
    98249818  IFS=$as_save_IFS 
    98259819  test -z "$as_dir" && as_dir=. 
    98269820    for ac_exec_ext in '' $ac_executable_extensions; do 
    9827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     9821  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    98289822    ac_cv_prog_AWK="$ac_prog" 
    98299823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    98309824    break 2 
    … …  
    98679861    for ac_prog in egrep; do 
    98689862    for ac_exec_ext in '' $ac_executable_extensions; do 
    98699863      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 
    9870       as_fn_executable_p "$ac_path_EGREP" || continue 
     9864      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 
    98719865# Check for GNU ac_path_EGREP and select it if it is found. 
    98729866  # Check for GNU $ac_path_EGREP 
    98739867case `"$ac_path_EGREP" --version 2>&1` in 
    … …  
    99339927  IFS=$as_save_IFS 
    99349928  test -z "$as_dir" && as_dir=. 
    99359929    for ac_exec_ext in '' $ac_executable_extensions; do 
    9936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     9930  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    99379931    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 
    99389932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    99399933    break 2 
    … …  
    99749968  IFS=$as_save_IFS 
    99759969  test -z "$as_dir" && as_dir=. 
    99769970    for ac_exec_ext in '' $ac_executable_extensions; do 
    9977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     9971  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    99789972    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 
    99799973    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    99809974    break 2 
    … …  
    1001510009  IFS=$as_save_IFS 
    1001610010  test -z "$as_dir" && as_dir=. 
    1001710011    for ac_exec_ext in '' $ac_executable_extensions; do 
    10018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     10012  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    1001910013    ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" 
    1002010014    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    1002110015    break 2 
    … …  
    1005510049  IFS=$as_save_IFS 
    1005610050  test -z "$as_dir" && as_dir=. 
    1005710051    for ac_exec_ext in '' $ac_executable_extensions; do 
    10058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     10052  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    1005910053    ac_cv_prog_AR="${ac_tool_prefix}ar" 
    1006010054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    1006110055    break 2 
    … …  
    1009510089  IFS=$as_save_IFS 
    1009610090  test -z "$as_dir" && as_dir=. 
    1009710091    for ac_exec_ext in '' $ac_executable_extensions; do 
    10098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     10092  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    1009910093    ac_cv_prog_ac_ct_AR="ar" 
    1010010094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    1010110095    break 2 
    … …  
    1014710141  IFS=$as_save_IFS 
    1014810142  test -z "$as_dir" && as_dir=. 
    1014910143    for ac_exec_ext in '' $ac_executable_extensions; do 
    10150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     10144  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    1015110145    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 
    1015210146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    1015310147    break 2 
    … …  
    1018710181  IFS=$as_save_IFS 
    1018810182  test -z "$as_dir" && as_dir=. 
    1018910183    for ac_exec_ext in '' $ac_executable_extensions; do 
    10190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     10184  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    1019110185    ac_cv_prog_ac_ct_RANLIB="ranlib" 
    1019210186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    1019310187    break 2 
    … …  
    1023910233  IFS=$as_save_IFS 
    1024010234  test -z "$as_dir" && as_dir=. 
    1024110235    for ac_exec_ext in '' $ac_executable_extensions; do 
    10242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     10236  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    1024310237    ac_cv_prog_STRIP="${ac_tool_prefix}strip" 
    1024410238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    1024510239    break 2 
    … …  
    1027910273  IFS=$as_save_IFS 
    1028010274  test -z "$as_dir" && as_dir=. 
    1028110275    for ac_exec_ext in '' $ac_executable_extensions; do 
    10282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     10276  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    1028310277    ac_cv_prog_ac_ct_STRIP="strip" 
    1028410278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    1028510279    break 2 
    … …  
    1033010324  IFS=$as_save_IFS 
    1033110325  test -z "$as_dir" && as_dir=. 
    1033210326    for ac_exec_ext in '' $ac_executable_extensions; do 
    10333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     10327  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    1033410328    ac_cv_prog_MAKEINFO="makeinfo" 
    1033510329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    1033610330    break 2 
    … …  
    1039010384  IFS=$as_save_IFS 
    1039110385  test -z "$as_dir" && as_dir=. 
    1039210386    for ac_exec_ext in '' $ac_executable_extensions; do 
    10393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 
     10387  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 
    1039410388    ac_cv_prog_BUILD_CC="$ac_prog" 
    1039510389    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 
    1039610390    break 2 
    … …  
    1105111045fi 
    1105211046 
    1105311047fi 
    11054 for ac_func in          __secure_getenv         backtrace       blkid_probe_get_topology        chflags         fallocate       fallocate64     fchown  fdatasync       fstat64         ftruncate64     getdtablesize   getmntinfo      getpwuid_r      getrlimit       getrusage       jrand48         llseek  lseek64         mallinfo        mbstowcs        memalign        mmap    msync   nanosleep       open64  pathconf        posix_fadvise   posix_memalign  prctl   setmntent       setresgid       setresuid       srandom         strcasecmp      strdup  strnlen         strptime        strtoull        sync_file_range         sysconf         usleep  utime   valloc 
     11048for ac_func in          __secure_getenv         backtrace       blkid_probe_get_topology        chflags         daemon  fallocate       fallocate64     fchown  fdatasync       fstat64         ftruncate64     getdtablesize   getmntinfo      getpwuid_r      getrlimit       getrusage       jrand48         llseek  lseek64         mallinfo        mbstowcs        memalign        mmap    msync   nanosleep       open64  pathconf        posix_fadvise   posix_memalign  prctl   setmntent       setresgid       setresuid       srandom         strcasecmp      strdup  strnlen         strptime        strtoull        sync_file_range         sysconf         usleep  utime   valloc 
    1105511049do : 
    1105611050  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 
    1105711051ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 
    … …  
    1110211096$as_echo "$ac_cv_lib_socket_socket" >&6; } 
    1110311097if test "x$ac_cv_lib_socket_socket" = xyes; then : 
    1110411098  SOCKET_LIB=-lsocket 
     11099else 
     11100  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5 
     11101$as_echo_n "checking for socket in -lnetwork... " >&6; } 
     11102if ${ac_cv_lib_network_socket+:} false; then : 
     11103  $as_echo_n "(cached) " >&6 
     11104else 
     11105  ac_check_lib_save_LIBS=$LIBS 
     11106LIBS="-lnetwork  $LIBS" 
     11107cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     11108/* end confdefs.h.  */ 
     11109 
     11110/* Override any GCC internal prototype to avoid an error. 
     11111   Use char because int might match the return type of a GCC 
     11112   builtin and then its argument prototype would still apply.  */ 
     11113#ifdef __cplusplus 
     11114extern "C" 
     11115#endif 
     11116char socket (); 
     11117int 
     11118main () 
     11119{ 
     11120return socket (); 
     11121  ; 
     11122  return 0; 
     11123} 
     11124_ACEOF 
     11125if ac_fn_c_try_link "$LINENO"; then : 
     11126  ac_cv_lib_network_socket=yes 
     11127else 
     11128  ac_cv_lib_network_socket=no 
     11129fi 
     11130rm -f core conftest.err conftest.$ac_objext \ 
     11131    conftest$ac_exeext conftest.$ac_ext 
     11132LIBS=$ac_check_lib_save_LIBS 
     11133fi 
     11134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5 
     11135$as_echo "$ac_cv_lib_network_socket" >&6; } 
     11136if test "x$ac_cv_lib_network_socket" = xyes; then : 
     11137  SOCKET_LIB=-lnetwork 
     11138fi 
     11139 
    1110511140fi 
    1110611141 
    1110711142 
    … …  
    1132111356                fi 
    1132211357        fi 
    1132311358;; 
     11359haiku*) 
     11360        if test "$prefix" = NONE ; then 
     11361                prefix="`finddir B_COMMON_DIRECTORY`"; 
     11362                { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to \`finddir B_COMMON_DIRECTORY\`" >&5 
     11363$as_echo "On $host_os systems, prefix defaults to \`finddir B_COMMON_DIRECTORY\`" >&6; } 
     11364                if test "$sbindir" = '${prefix}/sbin' ; then 
     11365                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and sbindir defaults to \`finddir B_COMMON_DIRECTORY\`/bin" >&5 
     11366$as_echo "...and sbindir defaults to \`finddir B_COMMON_DIRECTORY\`/bin" >&6; } 
     11367                        mandir="`finddir B_COMMON_DIRECTORY`/bin" 
     11368                fi 
     11369        fi 
     11370;; 
    1132411371esac 
    1132511372if test "$root_prefix" = NONE ; then 
    1132611373        if test "$prefix" = NONE ; then 
    … …  
    1187511922    # ... but there are two gotchas: 
    1187611923    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 
    1187711924    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 
    11878     # In both cases, we have to default to `cp -pR'. 
     11925    # In both cases, we have to default to `cp -p'. 
    1187911926    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 
    11880       as_ln_s='cp -pR' 
     11927      as_ln_s='cp -p' 
    1188111928  elif ln conf$$.file conf$$ 2>/dev/null; then 
    1188211929    as_ln_s=ln 
    1188311930  else 
    11884     as_ln_s='cp -pR' 
     11931    as_ln_s='cp -p' 
    1188511932  fi 
    1188611933else 
    11887   as_ln_s='cp -pR' 
     11934  as_ln_s='cp -p' 
    1188811935fi 
    1188911936rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 
    1189011937rmdir conf$$.dir 2>/dev/null 
    … …  
    1194411991  as_mkdir_p=false 
    1194511992fi 
    1194611993 
    11947  
    11948 # as_fn_executable_p FILE 
    11949 # ----------------------- 
    11950 # Test if FILE is an executable regular file. 
    11951 as_fn_executable_p () 
    11952 { 
    11953   test -f "$1" && test -x "$1" 
    11954 } # as_fn_executable_p 
    11955 as_test_x='test -x' 
    11956 as_executable_p=as_fn_executable_p 
     11994if test -x / >/dev/null 2>&1; then 
     11995  as_test_x='test -x' 
     11996else 
     11997  if ls -dL / >/dev/null 2>&1; then 
     11998    as_ls_L_option=L 
     11999  else 
     12000    as_ls_L_option= 
     12001  fi 
     12002  as_test_x=' 
     12003    eval sh -c '\'' 
     12004      if test -d "$1"; then 
     12005        test -d "$1/."; 
     12006      else 
     12007        case $1 in #( 
     12008        -*)set "./$1";; 
     12009        esac; 
     12010        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 
     12011        ???[sx]*):;;*)false;;esac;fi 
     12012    '\'' sh 
     12013  ' 
     12014fi 
     12015as_executable_p=$as_test_x 
    1195712016 
    1195812017# Sed expression to map a string onto a valid CPP name. 
    1195912018as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 
    … …  
    1197512034# values after options handling. 
    1197612035ac_log=" 
    1197712036This file was extended by $as_me, which was 
    11978 generated by GNU Autoconf 2.69.  Invocation command line was 
     12037generated by GNU Autoconf 2.68.  Invocation command line was 
    1197912038 
    1198012039  CONFIG_FILES    = $CONFIG_FILES 
    1198112040  CONFIG_HEADERS  = $CONFIG_HEADERS 
    … …  
    1204112100ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 
    1204212101ac_cs_version="\\ 
    1204312102config.status 
    12044 configured by $0, generated by GNU Autoconf 2.69, 
     12103configured by $0, generated by GNU Autoconf 2.68, 
    1204512104  with options \\"\$ac_cs_config\\" 
    1204612105 
    12047 Copyright (C) 2012 Free Software Foundation, Inc. 
     12106Copyright (C) 2010 Free Software Foundation, Inc. 
    1204812107This config.status script is free software; the Free Software Foundation 
    1204912108gives unlimited permission to copy, distribute and modify it." 
    1205012109 
    … …  
    1213412193_ACEOF 
    1213512194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 
    1213612195if \$ac_cs_recheck; then 
    12137   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 
     12196  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 
    1213812197  shift 
    1213912198  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 
    1214012199  CONFIG_SHELL='$SHELL' 
  • configure.in

    diff -Naur e2fsprogs-1.43/configure.in e2fsprogs-1.43-haiku/configure.in
    old new  
    9696dnl 
    9797AC_PROG_CC 
    9898if test "$GCC" = yes; then 
    99    RDYNAMIC="-rdynamic" 
     99   case "$host_os" in 
     100   haiku*) RDYNAMIC="-Wl,-export-dynamic" ;; 
     101   *) RDYNAMIC="-rdynamic" ;; 
     102   esac 
    100103   AC_SUBST(RDYNAMIC) 
    101104fi 
    102105AC_PROG_CPP 
    … …  
    565568dnl 
    566569dnl handle --enable-quota 
    567570dnl 
     571QUOTA_CMT= 
    568572PKG_PROG_PKG_CONFIG 
    569573AH_TEMPLATE([CONFIG_QUOTA], [Define to 1 to enable quota support]) 
    570574AC_ARG_ENABLE([quota], 
    571 [  --enable-libquota      enable quota support], 
     575[  --disable-quota        disable quota support], 
    572576if test "$enableval" = "no" 
    573577then 
    574578        AC_MSG_RESULT([Disabling quota support]) 
     579        QUOTA_CMT=# 
    575580else 
    576581        AC_DEFINE(CONFIG_QUOTA, 1) 
    577582        AC_MSG_RESULT([Enabling quota support]) 
     583        LIBQUOTA='$(LIB)/libquota'$LIB_EXT 
     584        DEPLIBQUOTA=$LIBQUOTA 
     585        STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT 
     586        DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA 
     587        PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT 
     588        DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA 
    578589fi 
    579590, 
    580 AC_MSG_RESULT([Disabling quota support by default]) 
    581 ) 
     591AC_DEFINE(CONFIG_QUOTA, 1) 
     592AC_MSG_RESULT([Enabling quota support by default]) 
    582593dnl 
    583594dnl Define stuff expected for quota library 
    584595dnl 
    … …  
    588599DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA 
    589600PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT 
    590601DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA 
     602) 
    591603AC_SUBST(LIBQUOTA) 
    592604AC_SUBST(DEPLIBQUOTA) 
    593605AC_SUBST(STATIC_LIBQUOTA) 
    … …  
    10511063        backtrace 
    10521064        blkid_probe_get_topology 
    10531065        chflags 
     1066        daemon 
    10541067        fallocate 
    10551068        fallocate64 
    10561069        fchown 
    … …  
    10941107dnl 
    10951108dnl Check to see if -lsocket is required (solaris) to make something 
    10961109dnl that uses socket() to compile; this is needed for the UUID library 
     1110dnl Haiku needs -lnetwork to get socket(). 
    10971111dnl 
    10981112SOCKET_LIB='' 
    1099 AC_CHECK_LIB(socket, socket, [SOCKET_LIB=-lsocket]) 
     1113AC_CHECK_LIB(socket, socket, [SOCKET_LIB=-lsocket],[AC_CHECK_LIB(network, socket, [SOCKET_LIB=-lnetwork])]) 
    11001114AC_SUBST(SOCKET_LIB) 
    11011115dnl 
    11021116dnl See if optreset exists 
    … …  
    11871201                fi 
    11881202        fi 
    11891203;; 
     1204haiku*) 
     1205        if test "$prefix" = NONE ; then 
     1206                prefix="`finddir B_COMMON_DIRECTORY`"; 
     1207                AC_MSG_RESULT([On $host_os systems, prefix defaults to `finddir B_COMMON_DIRECTORY`]) 
     1208                if test "$sbindir" = '${prefix}/sbin' ; then 
     1209                        AC_MSG_RESULT([...and sbindir defaults to `finddir B_COMMON_DIRECTORY`/bin]) 
     1210                        mandir="`finddir B_COMMON_DIRECTORY`/bin" 
     1211                fi 
     1212        fi 
     1213;; 
    11901214esac 
    11911215if test "$root_prefix" = NONE ; then 
    11921216        if test "$prefix" = NONE ; then 
  • contrib/spd_readdir.c

    diff -Naur e2fsprogs-1.43/contrib/spd_readdir.c e2fsprogs-1.43-haiku/contrib/spd_readdir.c
    old new  
    213213        dirstruct = alloc_dirstruct(dir); 
    214214        if (!dirstruct) { 
    215215                (*real_closedir)(dir); 
    216                 errno = -ENOMEM; 
     216                errno = ENOMEM; 
    217217                return NULL; 
    218218        } 
    219219 
    … …  
    246246        dirstruct = alloc_dirstruct(dir); 
    247247        if (!dirstruct) { 
    248248                (*real_closedir)(dir); 
    249                 errno = -ENOMEM; 
     249                errno = ENOMEM; 
    250250                return NULL; 
    251251        } 
    252252 
  • e2fsck/e2fsck.h

    diff -Naur e2fsprogs-1.43/e2fsck/e2fsck.h e2fsprogs-1.43-haiku/e2fsck/e2fsck.h
    old new  
    6767#define E2FSCK_ATTR(x) 
    6868#endif 
    6969 
     70#ifdef CONFIG_QUOTA 
    7071#include "quota/mkquota.h" 
     72#endif 
    7173 
    7274/* 
    7375 * Exit codes used by fsck-type programs 
    … …  
    320322        /* 
    321323         * Ext4 quota support 
    322324         */ 
     325#ifdef CONFIG_QUOTA 
    323326        quota_ctx_t qctx; 
     327#endif 
    324328#ifdef RESOURCE_TRACK 
    325329        /* 
    326330         * For timing purposes 
  • e2fsck/logfile.c

    diff -Naur e2fsprogs-1.43/e2fsck/logfile.c e2fsprogs-1.43-haiku/e2fsck/logfile.c
    old new  
    227227        } 
    228228 
    229229        if (pid == 0) { 
     230#ifdef HAVE_DAEMON 
    230231                if (daemon(0, 0) < 0) { 
    231232                        perror("daemon"); 
    232233                        exit(1); 
    233234                } 
     235#else 
     236#warning daemon() not present 
     237#endif 
    234238                /* 
    235239                 * Grab the output from our parent 
    236240                 */ 
  • e2fsck/pass1.c

    diff -Naur e2fsprogs-1.43/e2fsck/pass1.c e2fsprogs-1.43-haiku/e2fsck/pass1.c
    old new  
    21772177                } 
    21782178        } 
    21792179 
     2180#ifdef CONFIG_QUOTA 
    21802181        if (ino == EXT2_ROOT_INO || ino >= EXT2_FIRST_INODE(ctx->fs->super)) { 
    21812182                quota_data_add(ctx->qctx, inode, ino, 
    21822183                               pb.num_blocks * fs->blocksize); 
    21832184                quota_data_inodes(ctx->qctx, inode, ino, +1); 
    21842185        } 
     2186#endif 
    21852187 
    21862188        if (!(fs->super->s_feature_ro_compat & 
    21872189              EXT4_FEATURE_RO_COMPAT_HUGE_FILE) || 
  • e2fsck/pass1b.c

    diff -Naur e2fsprogs-1.43/e2fsck/pass1b.c e2fsprogs-1.43-haiku/e2fsck/pass1b.c
    old new  
    644644        if (ctx->inode_bad_map) 
    645645                ext2fs_unmark_inode_bitmap2(ctx->inode_bad_map, ino); 
    646646        ext2fs_inode_alloc_stats2(fs, ino, -1, LINUX_S_ISDIR(inode.i_mode)); 
     647#ifdef CONFIG_QUOTA 
    647648        quota_data_sub(ctx->qctx, &inode, ino, pb.dup_blocks * fs->blocksize); 
    648649        quota_data_inodes(ctx->qctx, &inode, ino, -1); 
     650#endif 
    649651 
    650652        /* Inode may have changed by block_iterate, so reread it */ 
    651653        e2fsck_read_inode(ctx, ino, &inode, "delete_file"); 
    … …  
    677679                        delete_file_block(fs, &blk, 
    678680                                          BLOCK_COUNT_EXTATTR, 0, 0, &pb); 
    679681                        ext2fs_file_acl_block_set(fs, &inode, blk); 
     682#ifdef CONFIG_QUOTA 
    680683                        quota_data_sub(ctx->qctx, &inode, ino, fs->blocksize); 
     684#endif 
    681685                } 
    682686        } 
    683687} 
  • e2fsck/pass3.c

    diff -Naur e2fsprogs-1.43/e2fsck/pass3.c e2fsprogs-1.43-haiku/e2fsck/pass3.c
    old new  
    491491        ext2fs_icount_store(ctx->inode_count, ino, 2); 
    492492        ext2fs_icount_store(ctx->inode_link_info, ino, 2); 
    493493        ctx->lost_and_found = ino; 
     494#ifdef CONFIG_QUOTA 
    494495        quota_data_add(ctx->qctx, &inode, ino, fs->blocksize); 
    495496        quota_data_inodes(ctx->qctx, &inode, ino, +1); 
     497#endif 
    496498#if 0 
    497499        printf("/lost+found created; inode #%lu\n", ino); 
    498500#endif 
    … …  
    802804 
    803805        inode.i_size = (es.last_block + 1) * fs->blocksize; 
    804806        ext2fs_iblk_add_blocks(fs, &inode, es.newblocks); 
     807#ifdef CONFIG_QUOTA 
    805808        quota_data_add(ctx->qctx, &inode, dir, es.newblocks * fs->blocksize); 
     809#endif 
    806810 
    807811        e2fsck_write_inode(ctx, dir, &inode, "expand_directory"); 
    808812 
  • e2fsck/pass4.c

    diff -Naur e2fsprogs-1.43/e2fsck/pass4.c e2fsprogs-1.43-haiku/e2fsck/pass4.c
    old new  
    6464                        e2fsck_read_bitmaps(ctx); 
    6565                        ext2fs_inode_alloc_stats2(fs, i, -1, 
    6666                                                  LINUX_S_ISDIR(inode->i_mode)); 
     67#ifdef CONFIG_QUOTA 
    6768                        quota_data_inodes(ctx->qctx, inode, i, -1); 
     69#endif 
    6870                        return 0; 
    6971                } 
    7072        } 
  • e2fsck/quota.c

    diff -Naur e2fsprogs-1.43/e2fsck/quota.c e2fsprogs-1.43-haiku/e2fsck/quota.c
    old new  
    2121static void move_quota_inode(ext2_filsys fs, ext2_ino_t from_ino, 
    2222                             ext2_ino_t to_ino, int qtype) 
    2323{ 
     24#ifdef CONFIG_QUOTA 
    2425        struct ext2_inode       inode; 
    2526        char                    qf_name[QUOTA_NAME_LEN]; 
    2627 
    … …  
    4647        /* Clear out the original inode in the inode-table block. */ 
    4748        memset(&inode, 0, sizeof(struct ext2_inode)); 
    4849        ext2fs_write_inode(fs, from_ino, &inode); 
     50#endif 
    4951} 
    5052 
    5153void e2fsck_hide_quota(e2fsck_t ctx) 
    5254{ 
     55#ifdef CONFIG_QUOTA 
    5356        struct ext2_super_block *sb = ctx->fs->super; 
    5457        struct problem_context  pctx; 
    5558        ext2_filsys             fs = ctx->fs; 
    … …  
    7982        } 
    8083 
    8184        return; 
     85#endif 
    8286} 
  • e2fsck/unix.c

    diff -Naur e2fsprogs-1.43/e2fsck/unix.c e2fsprogs-1.43-haiku/e2fsck/unix.c
    old new  
    16181618                journal_size = -1; 
    16191619 
    16201620        if (sb->s_feature_ro_compat & EXT4_FEATURE_RO_COMPAT_QUOTA) { 
     1621#ifdef CONFIG_QUOTA 
    16211622                /* Quotas were enabled. Do quota accounting during fsck. */ 
    16221623                if ((sb->s_usr_quota_inum && sb->s_grp_quota_inum) || 
    16231624                    (!sb->s_usr_quota_inum && !sb->s_grp_quota_inum)) 
    … …  
    16261627                        qtype = sb->s_usr_quota_inum ? USRQUOTA : GRPQUOTA; 
    16271628 
    16281629                quota_init_context(&ctx->qctx, ctx->fs, qtype); 
     1630#else 
     1631                log_err(ctx, _("%s: e2fsck not compiled with QUOTA support,\n\t" 
     1632                          "but filesystem %s has QUOTA enabled.\n"), 
     1633                        ctx->program_name, ctx->device_name); 
     1634#endif 
    16291635        } 
    16301636 
    16311637        run_result = e2fsck_run(ctx); 
    … …  
    16601666        } 
    16611667no_journal: 
    16621668 
     1669#ifdef CONFIG_QUOTA 
    16631670        if (ctx->qctx) { 
    16641671                int i, needs_writeout; 
    16651672                for (i = 0; i < MAXQUOTAS; i++) { 
    … …  
    16751682                } 
    16761683                quota_release_context(&ctx->qctx); 
    16771684        } 
     1685#endif 
    16781686 
    16791687        if (run_result == E2F_FLAG_RESTART) { 
    16801688                log_out(ctx, _("Restarting e2fsck from the beginning...\n")); 
  • lib/blkid/devname.c

    diff -Naur e2fsprogs-1.43/lib/blkid/devname.c e2fsprogs-1.43-haiku/lib/blkid/devname.c
    old new  
    4040 
    4141#include "blkidP.h" 
    4242 
     43#ifndef makedev 
     44#define makedev(major,minor) (-1) 
     45#endif 
     46 
    4347/* 
    4448 * Find a dev struct in the cache by device name, if available. 
    4549 * 
  • lib/ext2fs/bmap64.h

    diff -Naur e2fsprogs-1.43/lib/ext2fs/bmap64.h e2fsprogs-1.43-haiku/lib/ext2fs/bmap64.h
    old new  
    99 * %End-Header% 
    1010 */ 
    1111 
     12#include <sys/time.h> 
     13 
    1214struct ext2_bmap_statistics { 
    1315        int             type; 
    1416        struct timeval  created; 
  • lib/ext2fs/csum.c

    diff -Naur e2fsprogs-1.43/lib/ext2fs/csum.c e2fsprogs-1.43-haiku/lib/ext2fs/csum.c
    old new  
    724724        __u16 crc = 0; 
    725725        struct ext2_group_desc *desc; 
    726726        size_t size; 
     727        size_t offset; 
    727728 
    728729        size = fs->super->s_desc_size; 
    729730        if (size < EXT2_MIN_DESC_SIZE) 
    … …  
    766767        } 
    767768 
    768769        /* old crc16 code */ 
    769         size_t offset = offsetof(struct ext2_group_desc, bg_checksum); 
     770        offset = offsetof(struct ext2_group_desc, bg_checksum); 
    770771        crc = ext2fs_crc16(~0, fs->super->s_uuid, 
    771772                           sizeof(fs->super->s_uuid)); 
    772773        crc = ext2fs_crc16(crc, &group, sizeof(group)); 
  • lib/ext2fs/dblist.c

    diff -Naur e2fsprogs-1.43/lib/ext2fs/dblist.c e2fsprogs-1.43-haiku/lib/ext2fs/dblist.c
    old new  
    365365errcode_t ext2fs_dblist_get_last(ext2_dblist dblist, 
    366366                                 struct ext2_db_entry **entry) 
    367367{ 
    368         EXT2_CHECK_MAGIC(dblist, EXT2_ET_MAGIC_DBLIST); 
    369368        static struct ext2_db_entry ret_entry; 
    370369        struct ext2_db_entry2 *last; 
     370        EXT2_CHECK_MAGIC(dblist, EXT2_ET_MAGIC_DBLIST); 
    371371 
    372372        if (dblist->count == 0) 
    373373                return EXT2_ET_DBLIST_EMPTY; 
  • lib/ext2fs/unix_io.c

    diff -Naur e2fsprogs-1.43/lib/ext2fs/unix_io.c e2fsprogs-1.43-haiku/lib/ext2fs/unix_io.c
    old new  
    2424#include "config.h" 
    2525#include <stdio.h> 
    2626#include <string.h> 
     27#if HAVE_STDINT_H 
     28#include <stdint.h> 
     29#endif 
    2730#if HAVE_UNISTD_H 
    2831#include <unistd.h> 
    2932#endif 
    … …  
    914917                              unsigned long long count) 
    915918{ 
    916919        struct unix_private_data *data; 
    917         __uint64_t      range[2]; 
     920        uint64_t        range[2]; 
    918921        int             ret; 
    919922 
    920923        EXT2_CHECK_MAGIC(channel, EXT2_ET_MAGIC_IO_CHANNEL); 
  • lib/quota/quotaio_tree.h

    diff -Naur e2fsprogs-1.43/lib/quota/quotaio_tree.h e2fsprogs-1.43-haiku/lib/quota/quotaio_tree.h
    old new  
    66#define _LINUX_QUOTA_TREE_H 
    77 
    88#include <sys/types.h> 
     9#include <stdint.h> 
    910 
    1011typedef u_int32_t qid_t;        /* Type in which we store ids in memory */ 
    1112 
  • misc/mke2fs.c

    diff -Naur e2fsprogs-1.43/misc/mke2fs.c e2fsprogs-1.43-haiku/misc/mke2fs.c
    old new  
    22822282        ext2fs_free_blocks_count_set(fs->super, EXT2FS_C2B(fs, tot_free)); 
    22832283} 
    22842284 
     2285#ifdef CONFIG_QUOTA 
    22852286static int create_quota_inodes(ext2_filsys fs) 
    22862287{ 
    22872288        quota_ctx_t qctx; 
    … …  
    22932294 
    22942295        return 0; 
    22952296} 
     2297#endif 
    22962298 
    22972299int main (int argc, char *argv[]) 
    22982300{ 
    … …  
    26772679        if (EXT2_HAS_RO_COMPAT_FEATURE(&fs_param, 
    26782680                                       EXT4_FEATURE_RO_COMPAT_BIGALLOC)) 
    26792681                fix_cluster_bg_counts(fs); 
     2682#ifdef CONFIG_QUOTA 
    26802683        if (EXT2_HAS_RO_COMPAT_FEATURE(&fs_param, 
    26812684                                       EXT4_FEATURE_RO_COMPAT_QUOTA)) 
    26822685                create_quota_inodes(fs); 
     2686#endif 
    26832687 
    26842688        if (!quiet) 
    26852689                printf(_("Writing superblocks and " 
  • misc/tune2fs.c

    File e2fsprogs-1.43/misc/partinfo.c is a weird file while file e2fsprogs-1.43-haiku/misc/partinfo.c is a regular file
    diff -Naur e2fsprogs-1.43/misc/tune2fs.c e2fsprogs-1.43-haiku/misc/tune2fs.c
    old new  
    5656#include "jfs_user.h" 
    5757#include "util.h" 
    5858#include "blkid/blkid.h" 
     59#ifdef CONFIG_QUOTA 
    5960#include "quota/mkquota.h" 
     61#endif 
    6062 
    6163#include "../version.h" 
    6264#include "nls-enable.h" 
    … …  
    145147                EXT4_FEATURE_RO_COMPAT_EXTRA_ISIZE| 
    146148                EXT4_FEATURE_RO_COMPAT_GDT_CSUM | 
    147149                EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER | 
     150#ifdef CONFIG_QUOTA 
    148151                EXT4_FEATURE_RO_COMPAT_QUOTA | 
     152#endif 
    149153                EXT4_FEATURE_RO_COMPAT_METADATA_CSUM 
    150154}; 
    151155 
    … …  
    164168                EXT4_FEATURE_RO_COMPAT_DIR_NLINK| 
    165169                EXT4_FEATURE_RO_COMPAT_EXTRA_ISIZE| 
    166170                EXT4_FEATURE_RO_COMPAT_GDT_CSUM | 
     171#ifdef CONFIG_QUOTA 
    167172                EXT4_FEATURE_RO_COMPAT_QUOTA | 
     173#endif 
    168174                EXT4_FEATURE_RO_COMPAT_METADATA_CSUM 
    169175}; 
    170176 
    … …  
    473479                                dcl->limit = ext2fs_cpu_to_le16(max_entries); 
    474480                        } 
    475481                } else { 
     482                        int max_entries; 
    476483                        /* If htree block is full then rebuild the dir */ 
    477484                        if (ext2fs_le16_to_cpu(dcl->count) == 
    478485                            ext2fs_le16_to_cpu(dcl->limit)) { 
    … …  
    483490                         * Ensure dcl->limit is small enough to leave room for 
    484491                         * the checksum tail. 
    485492                         */ 
    486                         int max_entries = (fs->blocksize - (dcl_offset + 
     493                        max_entries = (fs->blocksize - (dcl_offset + 
    487494                                                sizeof(struct ext2_dx_tail))) / 
    488495                                          sizeof(struct ext2_dx_entry); 
    489496                        if (ext2fs_le16_to_cpu(dcl->limit) != max_entries) 
    … …  
    11241131        return 1; 
    11251132} 
    11261133 
     1134#ifdef CONFIG_QUOTA 
    11271135void handle_quota_options(ext2_filsys fs) 
    11281136{ 
    11291137        quota_ctx_t qctx; 
    … …  
    11691177 
    11701178        return; 
    11711179} 
     1180#endif 
    11721181 
    11731182void parse_quota_opts(const char *opts) 
    11741183{ 
    … …  
    25402549                        rc = 1; 
    25412550                        goto closefs; 
    25422551                } 
     2552#ifdef CONFIG_QUOTA 
    25432553                handle_quota_options(fs); 
     2554#else 
     2555                fputs(_("The quota feature is disabled.\n"), stderr); 
     2556                rc = 1; 
     2557                goto closefs; 
     2558#endif 
    25442559        } 
    25452560 
    25462561        if (U_flag) { 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/