Ignore:
Timestamp:
Apr 10, 2007, 5:27:38 AM (14 years ago)
Author:
Paul Smedley
Message:

Updated source to 3.0.25rc1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/samba/source/configure

    r22 r26  
    696696UUID_LIBS
    697697LDAP_LIBS
    698 SHLIB_PROGS
    699698PAM_MODULES
    700699INSTALL_PAM_MODULES
     
    24322431
    24332432
    2434 
    24352433## check for --enable-debug first before checking CFLAGS before
    24362434## so that we don't mix -O and -g
     
    1289112889default_static_modules="pdb_smbpasswd pdb_tdbsam rpc_lsa rpc_samr rpc_reg rpc_shutdown rpc_lsa_ds rpc_wkssvc rpc_svcctl rpc_ntsvcs rpc_net rpc_netdfs rpc_srvsvc rpc_spoolss rpc_eventlog rpc_echo auth_sam auth_unix auth_winbind auth_server auth_domain auth_builtin vfs_default nss_info_template"
    1289212890
    12893 default_shared_modules="vfs_recycle vfs_audit vfs_extd_audit vfs_full_audit vfs_netatalk vfs_fake_perms vfs_default_quota vfs_readonly vfs_cap vfs_expand_msdfs vfs_shadow_copy charset_CP850 charset_CP437 auth_script"
     12891default_shared_modules="vfs_recycle vfs_audit vfs_extd_audit vfs_full_audit vfs_netatalk vfs_fake_perms vfs_default_quota vfs_readonly vfs_cap vfs_expand_msdfs vfs_shadow_copy charset_CP850 charset_CP437 auth_script vfs_readahead"
    1289412892
    1289512893if test "x$developer" = xyes; then
     
    1290412902#
    1290512903case "$host_os" in
    12906 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
    1290712904    *hpux*)
    1290812905#
     
    1919019187
    1919119188
    19192 
    19193 for ac_header in fcntl.h sys/fcntl.h sys/acl.h sys/resource.h sys/ioctl.h sys/mode.h sys/filio.h sys/fs/s5param.h sys/filsys.h
     19189for ac_header in fcntl.h sys/fcntl.h sys/resource.h sys/ioctl.h sys/mode.h sys/filio.h sys/fs/s5param.h sys/filsys.h
    1919419190do
    1919519191as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    1935519351
    1935619352
    19357 # select
    19358 
    19359 for ac_header in sys/select.h
     19353
     19354for ac_header in sys/acl.h acl/libacl.h
    1936019355do
    1936119356as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    1952119516
    1952219517
    19523 # time
    19524 
    19525 
    19526 for ac_header in sys/time.h utime.h
     19518# select
     19519
     19520for ac_header in sys/select.h
    1952719521do
    1952819522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    1968719681done
    1968819682
    19689 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
    19690 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
    19691 if test "${ac_cv_header_time+set}" = set; then
    19692   echo $ECHO_N "(cached) $ECHO_C" >&6
    19693 else
    19694   cat >conftest.$ac_ext <<_ACEOF
    19695 /* confdefs.h.  */
    19696 _ACEOF
    19697 cat confdefs.h >>conftest.$ac_ext
    19698 cat >>conftest.$ac_ext <<_ACEOF
    19699 /* end confdefs.h.  */
    19700 #include <sys/types.h>
    19701 #include <sys/time.h>
    19702 #include <time.h>
    19703 
    19704 int
    19705 main ()
    19706 {
    19707 if ((struct tm *) 0)
    19708 return 0;
    19709   ;
    19710   return 0;
    19711 }
    19712 _ACEOF
    19713 rm -f conftest.$ac_objext
    19714 if { (ac_try="$ac_compile"
    19715 case "(($ac_try" in
    19716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    19717   *) ac_try_echo=$ac_try;;
    19718 esac
    19719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    19720   (eval "$ac_compile") 2>conftest.er1
    19721   ac_status=$?
    19722   grep -v '^ *+' conftest.er1 >conftest.err
    19723   rm -f conftest.er1
    19724   cat conftest.err >&5
    19725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19726   (exit $ac_status); } &&
    19727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
    19728   { (case "(($ac_try" in
    19729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    19730   *) ac_try_echo=$ac_try;;
    19731 esac
    19732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    19733   (eval "$ac_try") 2>&5
    19734   ac_status=$?
    19735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19736   (exit $ac_status); }; } &&
    19737          { ac_try='test -s conftest.$ac_objext'
    19738   { (case "(($ac_try" in
    19739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    19740   *) ac_try_echo=$ac_try;;
    19741 esac
    19742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    19743   (eval "$ac_try") 2>&5
    19744   ac_status=$?
    19745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19746   (exit $ac_status); }; }; then
    19747   ac_cv_header_time=yes
    19748 else
    19749   echo "$as_me: failed program was:" >&5
    19750 sed 's/^/| /' conftest.$ac_ext >&5
    19751 
    19752         ac_cv_header_time=no
    19753 fi
    19754 
    19755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    19756 fi
    19757 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
    19758 echo "${ECHO_T}$ac_cv_header_time" >&6; }
    19759 if test $ac_cv_header_time = yes; then
    19760 
    19761 cat >>confdefs.h <<\_ACEOF
    19762 #define TIME_WITH_SYS_TIME 1
    19763 _ACEOF
    19764 
    19765 fi
    19766 
    19767 
    19768 # wait
    19769 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
    19770 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
    19771 if test "${ac_cv_header_sys_wait_h+set}" = set; then
    19772   echo $ECHO_N "(cached) $ECHO_C" >&6
    19773 else
    19774   cat >conftest.$ac_ext <<_ACEOF
    19775 /* confdefs.h.  */
    19776 _ACEOF
    19777 cat confdefs.h >>conftest.$ac_ext
    19778 cat >>conftest.$ac_ext <<_ACEOF
    19779 /* end confdefs.h.  */
    19780 #include <sys/types.h>
    19781 #include <sys/wait.h>
    19782 #ifndef WEXITSTATUS
    19783 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
    19784 #endif
    19785 #ifndef WIFEXITED
    19786 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
    19787 #endif
    19788 
    19789 int
    19790 main ()
    19791 {
    19792   int s;
    19793   wait (&s);
    19794   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
    19795   ;
    19796   return 0;
    19797 }
    19798 _ACEOF
    19799 rm -f conftest.$ac_objext
    19800 if { (ac_try="$ac_compile"
    19801 case "(($ac_try" in
    19802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    19803   *) ac_try_echo=$ac_try;;
    19804 esac
    19805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    19806   (eval "$ac_compile") 2>conftest.er1
    19807   ac_status=$?
    19808   grep -v '^ *+' conftest.er1 >conftest.err
    19809   rm -f conftest.er1
    19810   cat conftest.err >&5
    19811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19812   (exit $ac_status); } &&
    19813          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
    19814   { (case "(($ac_try" in
    19815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    19816   *) ac_try_echo=$ac_try;;
    19817 esac
    19818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    19819   (eval "$ac_try") 2>&5
    19820   ac_status=$?
    19821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19822   (exit $ac_status); }; } &&
    19823          { ac_try='test -s conftest.$ac_objext'
    19824   { (case "(($ac_try" in
    19825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    19826   *) ac_try_echo=$ac_try;;
    19827 esac
    19828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    19829   (eval "$ac_try") 2>&5
    19830   ac_status=$?
    19831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19832   (exit $ac_status); }; }; then
    19833   ac_cv_header_sys_wait_h=yes
    19834 else
    19835   echo "$as_me: failed program was:" >&5
    19836 sed 's/^/| /' conftest.$ac_ext >&5
    19837 
    19838         ac_cv_header_sys_wait_h=no
    19839 fi
    19840 
    19841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    19842 fi
    19843 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
    19844 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
    19845 if test $ac_cv_header_sys_wait_h = yes; then
    19846 
    19847 cat >>confdefs.h <<\_ACEOF
    19848 #define HAVE_SYS_WAIT_H 1
    19849 _ACEOF
    19850 
    19851 fi
    19852 
    19853 
    19854 # capability
    19855 
    19856 for ac_header in sys/capability.h
     19683
     19684# time
     19685
     19686
     19687for ac_header in sys/time.h utime.h
    1985719688do
    1985819689as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2001719848done
    2001819849
    20019 
    20020 # passwd
    20021 
    20022 
    20023 
    20024 
    20025 
    20026 
    20027 
    20028 for ac_header in grp.h sys/id.h compat.h shadow.h sys/priv.h pwd.h sys/security.h
     19850{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
     19851echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
     19852if test "${ac_cv_header_time+set}" = set; then
     19853  echo $ECHO_N "(cached) $ECHO_C" >&6
     19854else
     19855  cat >conftest.$ac_ext <<_ACEOF
     19856/* confdefs.h.  */
     19857_ACEOF
     19858cat confdefs.h >>conftest.$ac_ext
     19859cat >>conftest.$ac_ext <<_ACEOF
     19860/* end confdefs.h.  */
     19861#include <sys/types.h>
     19862#include <sys/time.h>
     19863#include <time.h>
     19864
     19865int
     19866main ()
     19867{
     19868if ((struct tm *) 0)
     19869return 0;
     19870  ;
     19871  return 0;
     19872}
     19873_ACEOF
     19874rm -f conftest.$ac_objext
     19875if { (ac_try="$ac_compile"
     19876case "(($ac_try" in
     19877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     19878  *) ac_try_echo=$ac_try;;
     19879esac
     19880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     19881  (eval "$ac_compile") 2>conftest.er1
     19882  ac_status=$?
     19883  grep -v '^ *+' conftest.er1 >conftest.err
     19884  rm -f conftest.er1
     19885  cat conftest.err >&5
     19886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     19887  (exit $ac_status); } &&
     19888         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
     19889  { (case "(($ac_try" in
     19890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     19891  *) ac_try_echo=$ac_try;;
     19892esac
     19893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     19894  (eval "$ac_try") 2>&5
     19895  ac_status=$?
     19896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     19897  (exit $ac_status); }; } &&
     19898         { ac_try='test -s conftest.$ac_objext'
     19899  { (case "(($ac_try" in
     19900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     19901  *) ac_try_echo=$ac_try;;
     19902esac
     19903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     19904  (eval "$ac_try") 2>&5
     19905  ac_status=$?
     19906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     19907  (exit $ac_status); }; }; then
     19908  ac_cv_header_time=yes
     19909else
     19910  echo "$as_me: failed program was:" >&5
     19911sed 's/^/| /' conftest.$ac_ext >&5
     19912
     19913        ac_cv_header_time=no
     19914fi
     19915
     19916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     19917fi
     19918{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
     19919echo "${ECHO_T}$ac_cv_header_time" >&6; }
     19920if test $ac_cv_header_time = yes; then
     19921
     19922cat >>confdefs.h <<\_ACEOF
     19923#define TIME_WITH_SYS_TIME 1
     19924_ACEOF
     19925
     19926fi
     19927
     19928
     19929# wait
     19930{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
     19931echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
     19932if test "${ac_cv_header_sys_wait_h+set}" = set; then
     19933  echo $ECHO_N "(cached) $ECHO_C" >&6
     19934else
     19935  cat >conftest.$ac_ext <<_ACEOF
     19936/* confdefs.h.  */
     19937_ACEOF
     19938cat confdefs.h >>conftest.$ac_ext
     19939cat >>conftest.$ac_ext <<_ACEOF
     19940/* end confdefs.h.  */
     19941#include <sys/types.h>
     19942#include <sys/wait.h>
     19943#ifndef WEXITSTATUS
     19944# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
     19945#endif
     19946#ifndef WIFEXITED
     19947# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
     19948#endif
     19949
     19950int
     19951main ()
     19952{
     19953  int s;
     19954  wait (&s);
     19955  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
     19956  ;
     19957  return 0;
     19958}
     19959_ACEOF
     19960rm -f conftest.$ac_objext
     19961if { (ac_try="$ac_compile"
     19962case "(($ac_try" in
     19963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     19964  *) ac_try_echo=$ac_try;;
     19965esac
     19966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     19967  (eval "$ac_compile") 2>conftest.er1
     19968  ac_status=$?
     19969  grep -v '^ *+' conftest.er1 >conftest.err
     19970  rm -f conftest.er1
     19971  cat conftest.err >&5
     19972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     19973  (exit $ac_status); } &&
     19974         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
     19975  { (case "(($ac_try" in
     19976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     19977  *) ac_try_echo=$ac_try;;
     19978esac
     19979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     19980  (eval "$ac_try") 2>&5
     19981  ac_status=$?
     19982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     19983  (exit $ac_status); }; } &&
     19984         { ac_try='test -s conftest.$ac_objext'
     19985  { (case "(($ac_try" in
     19986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     19987  *) ac_try_echo=$ac_try;;
     19988esac
     19989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     19990  (eval "$ac_try") 2>&5
     19991  ac_status=$?
     19992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     19993  (exit $ac_status); }; }; then
     19994  ac_cv_header_sys_wait_h=yes
     19995else
     19996  echo "$as_me: failed program was:" >&5
     19997sed 's/^/| /' conftest.$ac_ext >&5
     19998
     19999        ac_cv_header_sys_wait_h=no
     20000fi
     20001
     20002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     20003fi
     20004{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
     20005echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
     20006if test $ac_cv_header_sys_wait_h = yes; then
     20007
     20008cat >>confdefs.h <<\_ACEOF
     20009#define HAVE_SYS_WAIT_H 1
     20010_ACEOF
     20011
     20012fi
     20013
     20014
     20015# capability
     20016
     20017for ac_header in sys/capability.h
    2002920018do
    2003020019as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2019020179
    2019120180
    20192 # locale
    20193 
    20194 
    20195 for ac_header in ctype.h locale.h
     20181# passwd
     20182
     20183
     20184
     20185
     20186
     20187
     20188
     20189for ac_header in grp.h sys/id.h compat.h shadow.h sys/priv.h pwd.h sys/security.h
    2019620190do
    2019720191as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2035720351
    2035820352
    20359 # glob
    20360 
    20361 for ac_header in fnmatch.h
     20353# locale
     20354
     20355
     20356for ac_header in ctype.h locale.h
    2036220357do
    2036320358as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2052320518
    2052420519
    20525 # shmem
    20526 
    20527 
    20528 
    20529 for ac_header in sys/ipc.h sys/mman.h sys/shm.h
     20520# glob
     20521
     20522for ac_header in fnmatch.h
    2053020523do
    2053120524as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2069120684
    2069220685
    20693 # terminal
    20694 
    20695 
    20696 
    20697 for ac_header in termios.h termio.h sys/termio.h
     20686# shmem
     20687
     20688
     20689
     20690for ac_header in sys/ipc.h sys/mman.h sys/shm.h
    2069820691do
    2069920692as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2085920852
    2086020853
    20861 
    20862 save_LIBS="$LIBS"
    20863 LIBS=""
    20864 
    20865 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
    20866 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
    20867 if test "${ac_cv_search_dlopen+set}" = set; then
    20868   echo $ECHO_N "(cached) $ECHO_C" >&6
    20869 else
    20870   ac_func_search_save_LIBS=$LIBS
    20871 cat >conftest.$ac_ext <<_ACEOF
    20872 /* confdefs.h.  */
    20873 _ACEOF
    20874 cat confdefs.h >>conftest.$ac_ext
    20875 cat >>conftest.$ac_ext <<_ACEOF
    20876 /* end confdefs.h.  */
    20877 
    20878 /* Override any GCC internal prototype to avoid an error.
    20879    Use char because int might match the return type of a GCC
    20880    builtin and then its argument prototype would still apply.  */
    20881 #ifdef __cplusplus
    20882 extern "C"
    20883 #endif
    20884 char dlopen ();
    20885 int
    20886 main ()
    20887 {
    20888 return dlopen ();
    20889   ;
    20890   return 0;
    20891 }
    20892 _ACEOF
    20893 for ac_lib in '' dl; do
    20894   if test -z "$ac_lib"; then
    20895     ac_res="none required"
    20896   else
    20897     ac_res=-l$ac_lib
    20898     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    20899   fi
    20900   rm -f conftest.$ac_objext conftest$ac_exeext
    20901 if { (ac_try="$ac_link"
    20902 case "(($ac_try" in
    20903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    20904   *) ac_try_echo=$ac_try;;
    20905 esac
    20906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    20907   (eval "$ac_link") 2>conftest.er1
    20908   ac_status=$?
    20909   grep -v '^ *+' conftest.er1 >conftest.err
    20910   rm -f conftest.er1
    20911   cat conftest.err >&5
    20912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20913   (exit $ac_status); } &&
    20914          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
    20915   { (case "(($ac_try" in
    20916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    20917   *) ac_try_echo=$ac_try;;
    20918 esac
    20919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    20920   (eval "$ac_try") 2>&5
    20921   ac_status=$?
    20922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20923   (exit $ac_status); }; } &&
    20924          { ac_try='test -s conftest$ac_exeext'
    20925   { (case "(($ac_try" in
    20926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    20927   *) ac_try_echo=$ac_try;;
    20928 esac
    20929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    20930   (eval "$ac_try") 2>&5
    20931   ac_status=$?
    20932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20933   (exit $ac_status); }; }; then
    20934   ac_cv_search_dlopen=$ac_res
    20935 else
    20936   echo "$as_me: failed program was:" >&5
    20937 sed 's/^/| /' conftest.$ac_ext >&5
    20938 
    20939 
    20940 fi
    20941 
    20942 rm -f core conftest.err conftest.$ac_objext \
    20943       conftest$ac_exeext
    20944   if test "${ac_cv_search_dlopen+set}" = set; then
    20945   break
    20946 fi
    20947 done
    20948 if test "${ac_cv_search_dlopen+set}" = set; then
    20949   :
    20950 else
    20951   ac_cv_search_dlopen=no
    20952 fi
    20953 rm conftest.$ac_ext
    20954 LIBS=$ac_func_search_save_LIBS
    20955 fi
    20956 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
    20957 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
    20958 ac_res=$ac_cv_search_dlopen
    20959 if test "$ac_res" != no; then
    20960   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
    20961 
    20962 fi
    20963 
    20964 
    20965 if test "$ac_cv_search_dlopen" != no; then
    20966 
    20967 for ac_header in dlfcn.h
     20854# terminal
     20855
     20856
     20857
     20858for ac_header in termios.h termio.h sys/termio.h
    2096820859do
    2096920860as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2112921020
    2113021021
    21131         libreplace_cv_dlfcn=no
    21132 
    21133 
    21134 
    21135 
    21136 for ac_func in dlopen dlsym dlerror dlclose
    21137 do
    21138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    21139 { echo "$as_me:$LINENO: checking for $ac_func" >&5
    21140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
    21141 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     21022
     21023save_LIBS="$LIBS"
     21024LIBS=""
     21025
     21026{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
     21027echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
     21028if test "${ac_cv_search_dlopen+set}" = set; then
    2114221029  echo $ECHO_N "(cached) $ECHO_C" >&6
    2114321030else
    21144   cat >conftest.$ac_ext <<_ACEOF
     21031  ac_func_search_save_LIBS=$LIBS
     21032cat >conftest.$ac_ext <<_ACEOF
    2114521033/* confdefs.h.  */
    2114621034_ACEOF
     
    2114821036cat >>conftest.$ac_ext <<_ACEOF
    2114921037/* end confdefs.h.  */
    21150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    21151    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    21152 #define $ac_func innocuous_$ac_func
    21153 
    21154 /* System header to define __stub macros and hopefully few prototypes,
    21155     which can conflict with char $ac_func (); below.
    21156     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    21157     <limits.h> exists even on freestanding compilers.  */
    21158 
    21159 #ifdef __STDC__
    21160 # include <limits.h>
    21161 #else
    21162 # include <assert.h>
    21163 #endif
    21164 
    21165 #undef $ac_func
    2116621038
    2116721039/* Override any GCC internal prototype to avoid an error.
     
    2117121043extern "C"
    2117221044#endif
    21173 char $ac_func ();
    21174 /* The GNU C library defines this for functions which it implements
    21175     to always fail with ENOSYS.  Some functions are actually named
    21176     something starting with __ and the normal name is an alias.  */
    21177 #if defined __stub_$ac_func || defined __stub___$ac_func
    21178 choke me
    21179 #endif
    21180 
     21045char dlopen ();
    2118121046int
    2118221047main ()
    2118321048{
    21184 return $ac_func ();
     21049return dlopen ();
    2118521050  ;
    2118621051  return 0;
    2118721052}
    2118821053_ACEOF
    21189 rm -f conftest.$ac_objext conftest$ac_exeext
     21054for ac_lib in '' dl; do
     21055  if test -z "$ac_lib"; then
     21056    ac_res="none required"
     21057  else
     21058    ac_res=-l$ac_lib
     21059    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     21060  fi
     21061  rm -f conftest.$ac_objext conftest$ac_exeext
    2119021062if { (ac_try="$ac_link"
    2119121063case "(($ac_try" in
     
    2122121093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2122221094  (exit $ac_status); }; }; then
    21223   eval "$as_ac_var=yes"
     21095  ac_cv_search_dlopen=$ac_res
    2122421096else
    2122521097  echo "$as_me: failed program was:" >&5
    2122621098sed 's/^/| /' conftest.$ac_ext >&5
    2122721099
    21228         eval "$as_ac_var=no"
     21100
    2122921101fi
    2123021102
    2123121103rm -f core conftest.err conftest.$ac_objext \
    21232       conftest$ac_exeext conftest.$ac_ext
    21233 fi
    21234 ac_res=`eval echo '${'$as_ac_var'}'`
    21235                { echo "$as_me:$LINENO: result: $ac_res" >&5
    21236 echo "${ECHO_T}$ac_res" >&6; }
    21237 if test `eval echo '${'$as_ac_var'}'` = yes; then
    21238   cat >>confdefs.h <<_ACEOF
    21239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    21240 _ACEOF
    21241 
    21242 else
    21243   libreplace_cv_dlfcn=yes
     21104      conftest$ac_exeext
     21105  if test "${ac_cv_search_dlopen+set}" = set; then
     21106  break
    2124421107fi
    2124521108done
    21246 
    21247 
    21248         if test x"${libreplace_cv_dlfcn}" = x"yes";then
    21249                 LIBREPLACEOBJ="${LIBREPLACEOBJ} dlfcn.o"
    21250         fi
    21251 fi
    21252 
    21253 LIBDL="$LIBS"
    21254 
    21255 LIBS="$save_LIBS"
    21256 
    21257 { echo "$as_me:$LINENO: checking whether getpass should be replaced" >&5
    21258 echo $ECHO_N "checking whether getpass should be replaced... $ECHO_C" >&6; }
    21259 if test "${samba_cv_REPLACE_GETPASS+set}" = set; then
    21260   echo $ECHO_N "(cached) $ECHO_C" >&6
    21261 else
    21262 
    21263 SAVE_CPPFLAGS="$CPPFLAGS"
    21264 CPPFLAGS="$CPPFLAGS -I$libreplacedir/"
    21265 cat >conftest.$ac_ext <<_ACEOF
    21266 /* confdefs.h.  */
    21267 _ACEOF
    21268 cat confdefs.h >>conftest.$ac_ext
    21269 cat >>conftest.$ac_ext <<_ACEOF
    21270 /* end confdefs.h.  */
    21271 
    21272 #include "confdefs.h"
    21273 #define _LIBREPLACE_REPLACE_H
    21274 #define REPLACE_GETPASS 1
    21275 #define main dont_declare_main
    21276 #include "$libreplacedir/getpass.c"
    21277 #undef main
    21278 
    21279 int
    21280 main ()
    21281 {
    21282 
    21283   ;
    21284   return 0;
    21285 }
    21286 _ACEOF
    21287 rm -f conftest.$ac_objext
    21288 if { (ac_try="$ac_compile"
    21289 case "(($ac_try" in
    21290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    21291   *) ac_try_echo=$ac_try;;
    21292 esac
    21293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    21294   (eval "$ac_compile") 2>conftest.er1
    21295   ac_status=$?
    21296   grep -v '^ *+' conftest.er1 >conftest.err
    21297   rm -f conftest.er1
    21298   cat conftest.err >&5
    21299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21300   (exit $ac_status); } &&
    21301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
    21302   { (case "(($ac_try" in
    21303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    21304   *) ac_try_echo=$ac_try;;
    21305 esac
    21306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    21307   (eval "$ac_try") 2>&5
    21308   ac_status=$?
    21309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21310   (exit $ac_status); }; } &&
    21311          { ac_try='test -s conftest.$ac_objext'
    21312   { (case "(($ac_try" in
    21313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    21314   *) ac_try_echo=$ac_try;;
    21315 esac
    21316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    21317   (eval "$ac_try") 2>&5
    21318   ac_status=$?
    21319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21320   (exit $ac_status); }; }; then
    21321   samba_cv_REPLACE_GETPASS=yes
    21322 else
    21323   echo "$as_me: failed program was:" >&5
    21324 sed 's/^/| /' conftest.$ac_ext >&5
    21325 
    21326         samba_cv_REPLACE_GETPASS=no
    21327 fi
    21328 
    21329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    21330 CPPFLAGS="$SAVE_CPPFLAGS"
    21331 
    21332 fi
    21333 { echo "$as_me:$LINENO: result: $samba_cv_REPLACE_GETPASS" >&5
    21334 echo "${ECHO_T}$samba_cv_REPLACE_GETPASS" >&6; }
    21335 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
    21336 
    21337 cat >>confdefs.h <<\_ACEOF
    21338 #define REPLACE_GETPASS 1
    21339 _ACEOF
    21340 
    21341         LIBREPLACEOBJ="${LIBREPLACEOBJ} getpass.o"
    21342 fi
    21343 
    21344 
    21345 
    21346 
    21347 
    21348 for ac_header in direct.h windows.h winsock2.h ws2tcpip.h
     21109if test "${ac_cv_search_dlopen+set}" = set; then
     21110  :
     21111else
     21112  ac_cv_search_dlopen=no
     21113fi
     21114rm conftest.$ac_ext
     21115LIBS=$ac_func_search_save_LIBS
     21116fi
     21117{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
     21118echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
     21119ac_res=$ac_cv_search_dlopen
     21120if test "$ac_res" != no; then
     21121  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     21122
     21123fi
     21124
     21125
     21126if test "$ac_cv_search_dlopen" != no; then
     21127
     21128for ac_header in dlfcn.h
    2134921129do
    2135021130as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2151021290
    2151121291
    21512 #######################################
    21513 # Check for mkdir mode
    21514 { echo "$as_me:$LINENO: checking whether mkdir supports mode" >&5
    21515 echo $ECHO_N "checking whether mkdir supports mode... $ECHO_C" >&6; }
    21516 if test "${ac_mkdir_has_mode+set}" = set; then
    21517   echo $ECHO_N "(cached) $ECHO_C" >&6
    21518 else
    21519   cat >conftest.$ac_ext <<_ACEOF
    21520 /* confdefs.h.  */
    21521 _ACEOF
    21522 cat confdefs.h >>conftest.$ac_ext
    21523 cat >>conftest.$ac_ext <<_ACEOF
    21524 /* end confdefs.h.  */
    21525 
    21526                 #include <stdio.h>
    21527                 #ifdef HAVE_DIRECT_H
    21528                 #include <direct.h>
    21529                 #endif
    21530 int
    21531 main ()
    21532 {
    21533 
    21534                         mkdir("foo",0777);
    21535                         return 0;
    21536 
    21537   ;
    21538   return 0;
    21539 }
    21540 _ACEOF
    21541 rm -f conftest.$ac_objext
    21542 if { (ac_try="$ac_compile"
    21543 case "(($ac_try" in
    21544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    21545   *) ac_try_echo=$ac_try;;
    21546 esac
    21547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    21548   (eval "$ac_compile") 2>conftest.er1
    21549   ac_status=$?
    21550   grep -v '^ *+' conftest.er1 >conftest.err
    21551   rm -f conftest.er1
    21552   cat conftest.err >&5
    21553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21554   (exit $ac_status); } &&
    21555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
    21556   { (case "(($ac_try" in
    21557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    21558   *) ac_try_echo=$ac_try;;
    21559 esac
    21560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    21561   (eval "$ac_try") 2>&5
    21562   ac_status=$?
    21563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21564   (exit $ac_status); }; } &&
    21565          { ac_try='test -s conftest.$ac_objext'
    21566   { (case "(($ac_try" in
    21567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    21568   *) ac_try_echo=$ac_try;;
    21569 esac
    21570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    21571   (eval "$ac_try") 2>&5
    21572   ac_status=$?
    21573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21574   (exit $ac_status); }; }; then
    21575   ac_mkdir_has_mode="yes"
    21576 else
    21577   echo "$as_me: failed program was:" >&5
    21578 sed 's/^/| /' conftest.$ac_ext >&5
    21579 
    21580         ac_mkdir_has_mode="no"
    21581 fi
    21582 
    21583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    21584 fi
    21585 { echo "$as_me:$LINENO: result: $ac_mkdir_has_mode" >&5
    21586 echo "${ECHO_T}$ac_mkdir_has_mode" >&6; }
    21587 
    21588 if test "$ac_mkdir_has_mode" = "yes"
    21589 then
    21590 
    21591 cat >>confdefs.h <<\_ACEOF
    21592 #define HAVE_MKDIR_MODE 1
    21593 _ACEOF
    21594 
    21595 fi
    21596 
    21597 
    21598 for ac_func in timegm
     21292        libreplace_cv_dlfcn=no
     21293
     21294
     21295
     21296
     21297for ac_func in dlopen dlsym dlerror dlclose
    2159921298do
    2160021299as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     
    2170321402
    2170421403else
    21705   LIBREPLACEOBJ="${LIBREPLACEOBJ} timegm.o"
     21404  libreplace_cv_dlfcn=yes
    2170621405fi
    2170721406done
    2170821407
    2170921408
    21710 { echo "$as_me:$LINENO: checking for broken readdir" >&5
    21711 echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6; }
    21712 if test "${libreplace_cv_READDIR_NEEDED+set}" = set; then
     21409        if test x"${libreplace_cv_dlfcn}" = x"yes";then
     21410                LIBREPLACEOBJ="${LIBREPLACEOBJ} dlfcn.o"
     21411        fi
     21412fi
     21413
     21414LIBDL="$LIBS"
     21415
     21416LIBS="$save_LIBS"
     21417
     21418{ echo "$as_me:$LINENO: checking whether getpass should be replaced" >&5
     21419echo $ECHO_N "checking whether getpass should be replaced... $ECHO_C" >&6; }
     21420if test "${samba_cv_REPLACE_GETPASS+set}" = set; then
    2171321421  echo $ECHO_N "(cached) $ECHO_C" >&6
    2171421422else
    2171521423
    21716         if test "$cross_compiling" = yes; then
    21717   libreplace_cv_READDIR_NEEDED="assuming not"
    21718 else
    21719   cat >conftest.$ac_ext <<_ACEOF
     21424SAVE_CPPFLAGS="$CPPFLAGS"
     21425CPPFLAGS="$CPPFLAGS -I$libreplacedir/"
     21426cat >conftest.$ac_ext <<_ACEOF
    2172021427/* confdefs.h.  */
    2172121428_ACEOF
     
    2172421431/* end confdefs.h.  */
    2172521432
    21726 #define test_readdir_os2_delete main
    21727 #include "$libreplacedir/test/os2_delete.c"
    21728 _ACEOF
    21729 rm -f conftest$ac_exeext
    21730 if { (ac_try="$ac_link"
    21731 case "(($ac_try" in
    21732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    21733   *) ac_try_echo=$ac_try;;
    21734 esac
    21735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    21736   (eval "$ac_link") 2>&5
    21737   ac_status=$?
    21738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21739   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    21740   { (case "(($ac_try" in
    21741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    21742   *) ac_try_echo=$ac_try;;
    21743 esac
    21744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    21745   (eval "$ac_try") 2>&5
    21746   ac_status=$?
    21747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21748   (exit $ac_status); }; }; then
    21749   libreplace_cv_READDIR_NEEDED=no
    21750 else
    21751   echo "$as_me: program exited with status $ac_status" >&5
    21752 echo "$as_me: failed program was:" >&5
    21753 sed 's/^/| /' conftest.$ac_ext >&5
    21754 
    21755 ( exit $ac_status )
    21756 libreplace_cv_READDIR_NEEDED=yes
    21757 fi
    21758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    21759 fi
    21760 
    21761 
    21762 
    21763 fi
    21764 { echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_NEEDED" >&5
    21765 echo "${ECHO_T}$libreplace_cv_READDIR_NEEDED" >&6; }
    21766 
    21767 #
    21768 # try to replace with getdirentries() if needed
    21769 #
    21770 if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
    21771 
    21772 for ac_func in getdirentries
    21773 do
    21774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    21775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
    21776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
    21777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    21778   echo $ECHO_N "(cached) $ECHO_C" >&6
    21779 else
    21780   cat >conftest.$ac_ext <<_ACEOF
    21781 /* confdefs.h.  */
    21782 _ACEOF
    21783 cat confdefs.h >>conftest.$ac_ext
    21784 cat >>conftest.$ac_ext <<_ACEOF
    21785 /* end confdefs.h.  */
    21786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    21787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    21788 #define $ac_func innocuous_$ac_func
    21789 
    21790 /* System header to define __stub macros and hopefully few prototypes,
    21791     which can conflict with char $ac_func (); below.
    21792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    21793     <limits.h> exists even on freestanding compilers.  */
    21794 
    21795 #ifdef __STDC__
    21796 # include <limits.h>
    21797 #else
    21798 # include <assert.h>
    21799 #endif
    21800 
    21801 #undef $ac_func
    21802 
    21803 /* Override any GCC internal prototype to avoid an error.
    21804    Use char because int might match the return type of a GCC
    21805    builtin and then its argument prototype would still apply.  */
    21806 #ifdef __cplusplus
    21807 extern "C"
    21808 #endif
    21809 char $ac_func ();
    21810 /* The GNU C library defines this for functions which it implements
    21811     to always fail with ENOSYS.  Some functions are actually named
    21812     something starting with __ and the normal name is an alias.  */
    21813 #if defined __stub_$ac_func || defined __stub___$ac_func
    21814 choke me
    21815 #endif
     21433#include "confdefs.h"
     21434#define _LIBREPLACE_REPLACE_H
     21435#define REPLACE_GETPASS 1
     21436#define main dont_declare_main
     21437#include "$libreplacedir/getpass.c"
     21438#undef main
    2181621439
    2181721440int
    2181821441main ()
    2181921442{
    21820 return $ac_func ();
     21443
    2182121444  ;
    2182221445  return 0;
    2182321446}
    2182421447_ACEOF
    21825 rm -f conftest.$ac_objext conftest$ac_exeext
    21826 if { (ac_try="$ac_link"
     21448rm -f conftest.$ac_objext
     21449if { (ac_try="$ac_compile"
    2182721450case "(($ac_try" in
    2182821451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     
    2183021453esac
    2183121454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    21832   (eval "$ac_link") 2>conftest.er1
     21455  (eval "$ac_compile") 2>conftest.er1
    2183321456  ac_status=$?
    2183421457  grep -v '^ *+' conftest.er1 >conftest.err
     
    2184721470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2184821471  (exit $ac_status); }; } &&
    21849          { ac_try='test -s conftest$ac_exeext'
     21472         { ac_try='test -s conftest.$ac_objext'
    2185021473  { (case "(($ac_try" in
    2185121474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     
    2185721480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2185821481  (exit $ac_status); }; }; then
    21859   eval "$as_ac_var=yes"
     21482  samba_cv_REPLACE_GETPASS=yes
    2186021483else
    2186121484  echo "$as_me: failed program was:" >&5
    2186221485sed 's/^/| /' conftest.$ac_ext >&5
    2186321486
    21864         eval "$as_ac_var=no"
    21865 fi
    21866 
    21867 rm -f core conftest.err conftest.$ac_objext \
    21868       conftest$ac_exeext conftest.$ac_ext
    21869 fi
    21870 ac_res=`eval echo '${'$as_ac_var'}'`
    21871                { echo "$as_me:$LINENO: result: $ac_res" >&5
    21872 echo "${ECHO_T}$ac_res" >&6; }
    21873 if test `eval echo '${'$as_ac_var'}'` = yes; then
    21874   cat >>confdefs.h <<_ACEOF
    21875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    21876 _ACEOF
    21877 
    21878 fi
    21879 done
    21880 
    21881 { echo "$as_me:$LINENO: checking for prototype long telldir(const DIR *dir)" >&5
    21882 echo $ECHO_N "checking for prototype long telldir(const DIR *dir)... $ECHO_C" >&6; }
    21883 if test "${ac_cv_c_prototype_long_telldir_const_DIR_pdir_+set}" = set; then
    21884   echo $ECHO_N "(cached) $ECHO_C" >&6
    21885 else
    21886   cat >conftest.$ac_ext <<_ACEOF
    21887 
    21888                 $ac_includes_default
    21889 
    21890         #include <dirent.h>
    21891 
    21892                 long telldir(const DIR *dir)
    21893                 {
    21894 
    21895         return 0;
    21896 
    21897                 }
    21898 
    21899 _ACEOF
    21900 rm -f conftest.$ac_objext
    21901 if { (ac_try="$ac_compile"
    21902 case "(($ac_try" in
    21903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    21904   *) ac_try_echo=$ac_try;;
    21905 esac
    21906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    21907   (eval "$ac_compile") 2>conftest.er1
    21908   ac_status=$?
    21909   grep -v '^ *+' conftest.er1 >conftest.err
    21910   rm -f conftest.er1
    21911   cat conftest.err >&5
    21912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21913   (exit $ac_status); } &&
    21914          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
    21915   { (case "(($ac_try" in
    21916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    21917   *) ac_try_echo=$ac_try;;
    21918 esac
    21919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    21920   (eval "$ac_try") 2>&5
    21921   ac_status=$?
    21922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21923   (exit $ac_status); }; } &&
    21924          { ac_try='test -s conftest.$ac_objext'
    21925   { (case "(($ac_try" in
    21926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    21927   *) ac_try_echo=$ac_try;;
    21928 esac
    21929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    21930   (eval "$ac_try") 2>&5
    21931   ac_status=$?
    21932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21933   (exit $ac_status); }; }; then
    21934 
    21935                 ac_cv_c_prototype_long_telldir_const_DIR_pdir_=yes
    21936 
    21937 else
    21938   echo "$as_me: failed program was:" >&5
    21939 sed 's/^/| /' conftest.$ac_ext >&5
    21940 
    21941 
    21942                 ac_cv_c_prototype_long_telldir_const_DIR_pdir_=no
    21943 
     21487        samba_cv_REPLACE_GETPASS=no
    2194421488fi
    2194521489
    2194621490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    21947 
    21948 fi
    21949 { echo "$as_me:$LINENO: result: $ac_cv_c_prototype_long_telldir_const_DIR_pdir_" >&5
    21950 echo "${ECHO_T}$ac_cv_c_prototype_long_telldir_const_DIR_pdir_" >&6; }
    21951 if test $ac_cv_c_prototype_long_telldir_const_DIR_pdir_ = yes; then
    21952 
     21491CPPFLAGS="$SAVE_CPPFLAGS"
     21492
     21493fi
     21494{ echo "$as_me:$LINENO: result: $samba_cv_REPLACE_GETPASS" >&5
     21495echo "${ECHO_T}$samba_cv_REPLACE_GETPASS" >&6; }
     21496if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
    2195321497
    2195421498cat >>confdefs.h <<\_ACEOF
    21955 #define TELLDIR_TAKES_CONST_DIR 1
    21956 _ACEOF
    21957 
    21958 
    21959 fi
    21960 
    21961 
    21962 
    21963 { echo "$as_me:$LINENO: checking for prototype int seekdir(DIR *dir, long ofs)" >&5
    21964 echo $ECHO_N "checking for prototype int seekdir(DIR *dir, long ofs)... $ECHO_C" >&6; }
    21965 if test "${ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_+set}" = set; then
    21966   echo $ECHO_N "(cached) $ECHO_C" >&6
    21967 else
    21968   cat >conftest.$ac_ext <<_ACEOF
    21969 
    21970                 $ac_includes_default
    21971 
    21972         #include <dirent.h>
    21973 
    21974                 int seekdir(DIR *dir, long ofs)
    21975                 {
    21976 
    21977         return 0;
    21978 
    21979                 }
    21980 
    21981 _ACEOF
    21982 rm -f conftest.$ac_objext
    21983 if { (ac_try="$ac_compile"
    21984 case "(($ac_try" in
    21985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    21986   *) ac_try_echo=$ac_try;;
    21987 esac
    21988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    21989   (eval "$ac_compile") 2>conftest.er1
    21990   ac_status=$?
    21991   grep -v '^ *+' conftest.er1 >conftest.err
    21992   rm -f conftest.er1
    21993   cat conftest.err >&5
    21994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21995   (exit $ac_status); } &&
    21996          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
    21997   { (case "(($ac_try" in
    21998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    21999   *) ac_try_echo=$ac_try;;
    22000 esac
    22001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    22002   (eval "$ac_try") 2>&5
    22003   ac_status=$?
    22004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22005   (exit $ac_status); }; } &&
    22006          { ac_try='test -s conftest.$ac_objext'
    22007   { (case "(($ac_try" in
    22008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    22009   *) ac_try_echo=$ac_try;;
    22010 esac
    22011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    22012   (eval "$ac_try") 2>&5
    22013   ac_status=$?
    22014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22015   (exit $ac_status); }; }; then
    22016 
    22017                 ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_=yes
    22018 
    22019 else
    22020   echo "$as_me: failed program was:" >&5
    22021 sed 's/^/| /' conftest.$ac_ext >&5
    22022 
    22023 
    22024                 ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_=no
    22025 
    22026 fi
    22027 
    22028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    22029 
    22030 fi
    22031 { echo "$as_me:$LINENO: result: $ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_" >&5
    22032 echo "${ECHO_T}$ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_" >&6; }
    22033 if test $ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_ = yes; then
    22034 
    22035 
    22036 cat >>confdefs.h <<\_ACEOF
    22037 #define SEEKDIR_RETURNS_INT 1
    22038 _ACEOF
    22039 
    22040 
    22041 fi
    22042 
    22043 
    22044 { echo "$as_me:$LINENO: checking for replacing readdir using getdirentries()" >&5
    22045 echo $ECHO_N "checking for replacing readdir using getdirentries()... $ECHO_C" >&6; }
    22046 if test "${libreplace_cv_READDIR_GETDIRENTRIES+set}" = set; then
    22047   echo $ECHO_N "(cached) $ECHO_C" >&6
    22048 else
    22049 
    22050         if test "$cross_compiling" = yes; then
    22051   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
    22052 See \`config.log' for more details." >&5
    22053 echo "$as_me: error: cannot run test program while cross compiling
    22054 See \`config.log' for more details." >&2;}
    22055    { (exit 1); exit 1; }; }
    22056 else
    22057   cat >conftest.$ac_ext <<_ACEOF
    22058 /* confdefs.h.  */
    22059 _ACEOF
    22060 cat confdefs.h >>conftest.$ac_ext
    22061 cat >>conftest.$ac_ext <<_ACEOF
    22062 /* end confdefs.h.  */
    22063 
    22064 #define _LIBREPLACE_REPLACE_H
    22065 #include "$libreplacedir/repdir_getdirentries.c"
    22066 #define test_readdir_os2_delete main
    22067 #include "$libreplacedir/test/os2_delete.c"
    22068 _ACEOF
    22069 rm -f conftest$ac_exeext
    22070 if { (ac_try="$ac_link"
    22071 case "(($ac_try" in
    22072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    22073   *) ac_try_echo=$ac_try;;
    22074 esac
    22075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    22076   (eval "$ac_link") 2>&5
    22077   ac_status=$?
    22078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22079   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    22080   { (case "(($ac_try" in
    22081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    22082   *) ac_try_echo=$ac_try;;
    22083 esac
    22084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    22085   (eval "$ac_try") 2>&5
    22086   ac_status=$?
    22087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22088   (exit $ac_status); }; }; then
    22089   libreplace_cv_READDIR_GETDIRENTRIES=yes
    22090 else
    22091   echo "$as_me: program exited with status $ac_status" >&5
    22092 echo "$as_me: failed program was:" >&5
    22093 sed 's/^/| /' conftest.$ac_ext >&5
    22094 
    22095 ( exit $ac_status )
    22096 libreplace_cv_READDIR_GETDIRENTRIES=no
    22097 fi
    22098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    22099 fi
    22100 
    22101 
    22102 
    22103 fi
    22104 { echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_GETDIRENTRIES" >&5
    22105 echo "${ECHO_T}$libreplace_cv_READDIR_GETDIRENTRIES" >&6; }
    22106 fi
    22107 if test x"$libreplace_cv_READDIR_GETDIRENTRIES" = x"yes"; then
    22108 
    22109 cat >>confdefs.h <<\_ACEOF
    22110 #define REPLACE_READDIR 1
    22111 _ACEOF
    22112 
    22113 
    22114 cat >>confdefs.h <<\_ACEOF
    22115 #define REPLACE_READDIR_GETDIRENTRIES 1
    22116 _ACEOF
    22117 
    22118         LIBREPLACEOBJ="${LIBREPLACEOBJ} repdir_getdirentries.o"
    22119         libreplace_cv_READDIR_NEEDED=no
    22120 fi
    22121 
    22122 #
    22123 # try to replace with getdents() if needed
    22124 #
    22125 if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
    22126 
    22127 for ac_func in getdents
    22128 do
    22129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    22130 { echo "$as_me:$LINENO: checking for $ac_func" >&5
    22131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
    22132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    22133   echo $ECHO_N "(cached) $ECHO_C" >&6
    22134 else
    22135   cat >conftest.$ac_ext <<_ACEOF
    22136 /* confdefs.h.  */
    22137 _ACEOF
    22138 cat confdefs.h >>conftest.$ac_ext
    22139 cat >>conftest.$ac_ext <<_ACEOF
    22140 /* end confdefs.h.  */
    22141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    22142    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    22143 #define $ac_func innocuous_$ac_func
    22144 
    22145 /* System header to define __stub macros and hopefully few prototypes,
    22146     which can conflict with char $ac_func (); below.
    22147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    22148     <limits.h> exists even on freestanding compilers.  */
    22149 
    22150 #ifdef __STDC__
    22151 # include <limits.h>
    22152 #else
    22153 # include <assert.h>
    22154 #endif
    22155 
    22156 #undef $ac_func
    22157 
    22158 /* Override any GCC internal prototype to avoid an error.
    22159    Use char because int might match the return type of a GCC
    22160    builtin and then its argument prototype would still apply.  */
    22161 #ifdef __cplusplus
    22162 extern "C"
    22163 #endif
    22164 char $ac_func ();
    22165 /* The GNU C library defines this for functions which it implements
    22166     to always fail with ENOSYS.  Some functions are actually named
    22167     something starting with __ and the normal name is an alias.  */
    22168 #if defined __stub_$ac_func || defined __stub___$ac_func
    22169 choke me
    22170 #endif
    22171 
    22172 int
    22173 main ()
    22174 {
    22175 return $ac_func ();
    22176   ;
    22177   return 0;
    22178 }
    22179 _ACEOF
    22180 rm -f conftest.$ac_objext conftest$ac_exeext
    22181 if { (ac_try="$ac_link"
    22182 case "(($ac_try" in
    22183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    22184   *) ac_try_echo=$ac_try;;
    22185 esac
    22186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    22187   (eval "$ac_link") 2>conftest.er1
    22188   ac_status=$?
    22189   grep -v '^ *+' conftest.er1 >conftest.err
    22190   rm -f conftest.er1
    22191   cat conftest.err >&5
    22192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22193   (exit $ac_status); } &&
    22194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
    22195   { (case "(($ac_try" in
    22196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    22197   *) ac_try_echo=$ac_try;;
    22198 esac
    22199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    22200   (eval "$ac_try") 2>&5
    22201   ac_status=$?
    22202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22203   (exit $ac_status); }; } &&
    22204          { ac_try='test -s conftest$ac_exeext'
    22205   { (case "(($ac_try" in
    22206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    22207   *) ac_try_echo=$ac_try;;
    22208 esac
    22209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    22210   (eval "$ac_try") 2>&5
    22211   ac_status=$?
    22212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22213   (exit $ac_status); }; }; then
    22214   eval "$as_ac_var=yes"
    22215 else
    22216   echo "$as_me: failed program was:" >&5
    22217 sed 's/^/| /' conftest.$ac_ext >&5
    22218 
    22219         eval "$as_ac_var=no"
    22220 fi
    22221 
    22222 rm -f core conftest.err conftest.$ac_objext \
    22223       conftest$ac_exeext conftest.$ac_ext
    22224 fi
    22225 ac_res=`eval echo '${'$as_ac_var'}'`
    22226                { echo "$as_me:$LINENO: result: $ac_res" >&5
    22227 echo "${ECHO_T}$ac_res" >&6; }
    22228 if test `eval echo '${'$as_ac_var'}'` = yes; then
    22229   cat >>confdefs.h <<_ACEOF
    22230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    22231 _ACEOF
    22232 
    22233 fi
    22234 done
    22235 
    22236 { echo "$as_me:$LINENO: checking for replacing readdir using getdents()" >&5
    22237 echo $ECHO_N "checking for replacing readdir using getdents()... $ECHO_C" >&6; }
    22238 if test "${libreplace_cv_READDIR_GETDENTS+set}" = set; then
    22239   echo $ECHO_N "(cached) $ECHO_C" >&6
    22240 else
    22241 
    22242         if test "$cross_compiling" = yes; then
    22243   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
    22244 See \`config.log' for more details." >&5
    22245 echo "$as_me: error: cannot run test program while cross compiling
    22246 See \`config.log' for more details." >&2;}
    22247    { (exit 1); exit 1; }; }
    22248 else
    22249   cat >conftest.$ac_ext <<_ACEOF
    22250 /* confdefs.h.  */
    22251 _ACEOF
    22252 cat confdefs.h >>conftest.$ac_ext
    22253 cat >>conftest.$ac_ext <<_ACEOF
    22254 /* end confdefs.h.  */
    22255 
    22256 #define _LIBREPLACE_REPLACE_H
    22257 #error _donot_use_getdents_replacement_anymore
    22258 #include "$libreplacedir/repdir_getdents.c"
    22259 #define test_readdir_os2_delete main
    22260 #include "$libreplacedir/test/os2_delete.c"
    22261 _ACEOF
    22262 rm -f conftest$ac_exeext
    22263 if { (ac_try="$ac_link"
    22264 case "(($ac_try" in
    22265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    22266   *) ac_try_echo=$ac_try;;
    22267 esac
    22268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    22269   (eval "$ac_link") 2>&5
    22270   ac_status=$?
    22271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22272   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    22273   { (case "(($ac_try" in
    22274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    22275   *) ac_try_echo=$ac_try;;
    22276 esac
    22277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    22278   (eval "$ac_try") 2>&5
    22279   ac_status=$?
    22280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22281   (exit $ac_status); }; }; then
    22282   libreplace_cv_READDIR_GETDENTS=yes
    22283 else
    22284   echo "$as_me: program exited with status $ac_status" >&5
    22285 echo "$as_me: failed program was:" >&5
    22286 sed 's/^/| /' conftest.$ac_ext >&5
    22287 
    22288 ( exit $ac_status )
    22289 libreplace_cv_READDIR_GETDENTS=no
    22290 fi
    22291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    22292 fi
    22293 
    22294 
    22295 
    22296 fi
    22297 { echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_GETDENTS" >&5
    22298 echo "${ECHO_T}$libreplace_cv_READDIR_GETDENTS" >&6; }
    22299 fi
    22300 if test x"$libreplace_cv_READDIR_GETDENTS" = x"yes"; then
    22301 
    22302 cat >>confdefs.h <<\_ACEOF
    22303 #define REPLACE_READDIR 1
    22304 _ACEOF
    22305 
    22306 
    22307 cat >>confdefs.h <<\_ACEOF
    22308 #define REPLACE_READDIR_GETDENTS 1
    22309 _ACEOF
    22310 
    22311         LIBREPLACEOBJ="${LIBREPLACEOBJ} repdir_getdents.o"
    22312         libreplace_cv_READDIR_NEEDED=no
    22313 fi
    22314 
    22315 { echo "$as_me:$LINENO: checking a usable readdir()" >&5
    22316 echo $ECHO_N "checking a usable readdir()... $ECHO_C" >&6; }
    22317 if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
    22318         { echo "$as_me:$LINENO: result: no" >&5
    22319 echo "${ECHO_T}no" >&6; }
    22320         { echo "$as_me:$LINENO: WARNING: the provided readdir() is broken" >&5
    22321 echo "$as_me: WARNING: the provided readdir() is broken" >&2;}
    22322 else
    22323         { echo "$as_me:$LINENO: result: yes" >&5
    22324 echo "${ECHO_T}yes" >&6; }
    22325 fi
    22326 
    22327 
    22328 
    22329 
    22330 
    22331 
    22332 
    22333 
    22334 for ac_func in syslog memset setnetgrent getnetgrent endnetgrent memcpy
    22335 do
    22336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    22337 { echo "$as_me:$LINENO: checking for $ac_func" >&5
    22338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
    22339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    22340   echo $ECHO_N "(cached) $ECHO_C" >&6
    22341 else
    22342   cat >conftest.$ac_ext <<_ACEOF
    22343 /* confdefs.h.  */
    22344 _ACEOF
    22345 cat confdefs.h >>conftest.$ac_ext
    22346 cat >>conftest.$ac_ext <<_ACEOF
    22347 /* end confdefs.h.  */
    22348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    22349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    22350 #define $ac_func innocuous_$ac_func
    22351 
    22352 /* System header to define __stub macros and hopefully few prototypes,
    22353     which can conflict with char $ac_func (); below.
    22354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    22355     <limits.h> exists even on freestanding compilers.  */
    22356 
    22357 #ifdef __STDC__
    22358 # include <limits.h>
    22359 #else
    22360 # include <assert.h>
    22361 #endif
    22362 
    22363 #undef $ac_func
    22364 
    22365 /* Override any GCC internal prototype to avoid an error.
    22366    Use char because int might match the return type of a GCC
    22367    builtin and then its argument prototype would still apply.  */
    22368 #ifdef __cplusplus
    22369 extern "C"
    22370 #endif
    22371 char $ac_func ();
    22372 /* The GNU C library defines this for functions which it implements
    22373     to always fail with ENOSYS.  Some functions are actually named
    22374     something starting with __ and the normal name is an alias.  */
    22375 #if defined __stub_$ac_func || defined __stub___$ac_func
    22376 choke me
    22377 #endif
    22378 
    22379 int
    22380 main ()
    22381 {
    22382 return $ac_func ();
    22383   ;
    22384   return 0;
    22385 }
    22386 _ACEOF
    22387 rm -f conftest.$ac_objext conftest$ac_exeext
    22388 if { (ac_try="$ac_link"
    22389 case "(($ac_try" in
    22390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    22391   *) ac_try_echo=$ac_try;;
    22392 esac
    22393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    22394   (eval "$ac_link") 2>conftest.er1
    22395   ac_status=$?
    22396   grep -v '^ *+' conftest.er1 >conftest.err
    22397   rm -f conftest.er1
    22398   cat conftest.err >&5
    22399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22400   (exit $ac_status); } &&
    22401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
    22402   { (case "(($ac_try" in
    22403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    22404   *) ac_try_echo=$ac_try;;
    22405 esac
    22406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    22407   (eval "$ac_try") 2>&5
    22408   ac_status=$?
    22409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22410   (exit $ac_status); }; } &&
    22411          { ac_try='test -s conftest$ac_exeext'
    22412   { (case "(($ac_try" in
    22413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    22414   *) ac_try_echo=$ac_try;;
    22415 esac
    22416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    22417   (eval "$ac_try") 2>&5
    22418   ac_status=$?
    22419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22420   (exit $ac_status); }; }; then
    22421   eval "$as_ac_var=yes"
    22422 else
    22423   echo "$as_me: failed program was:" >&5
    22424 sed 's/^/| /' conftest.$ac_ext >&5
    22425 
    22426         eval "$as_ac_var=no"
    22427 fi
    22428 
    22429 rm -f core conftest.err conftest.$ac_objext \
    22430       conftest$ac_exeext conftest.$ac_ext
    22431 fi
    22432 ac_res=`eval echo '${'$as_ac_var'}'`
    22433                { echo "$as_me:$LINENO: result: $ac_res" >&5
    22434 echo "${ECHO_T}$ac_res" >&6; }
    22435 if test `eval echo '${'$as_ac_var'}'` = yes; then
    22436   cat >>confdefs.h <<_ACEOF
    22437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    22438 _ACEOF
    22439 
    22440 else
    22441   { { echo "$as_me:$LINENO: error: Required function not found" >&5
    22442 echo "$as_me: error: Required function not found" >&2;}
    22443    { (exit 1); exit 1; }; }
    22444 fi
    22445 done
    22446 
    22447 
    22448 echo "LIBREPLACE_BROKEN_CHECKS: END"
    22449 
    22450 
    22451 LIBREPLACE_DIR=`echo ${libreplacedir} | sed -e "s;${srcdir};;" -e "s;^/;;"`
    22452 
    22453 LIBREPLACE_OBJS=""
    22454 for obj in ${LIBREPLACEOBJ}; do
    22455         LIBREPLACE_OBJS="${LIBREPLACE_OBJS} ${LIBREPLACE_DIR}/${obj}"
    22456 done
    22457 
    22458 
    22459 # add -ldl to the global LIBS
    22460 LIBS="${LIBS} ${LIBDL}"
    22461 
    22462 
    22463 
    22464 
    22465 
    22466 
    22467 
    22468 
    22469 
    22470 for ac_header in aio.h arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h rpc/nettype.h
     21499#define REPLACE_GETPASS 1
     21500_ACEOF
     21501
     21502        LIBREPLACEOBJ="${LIBREPLACEOBJ} getpass.o"
     21503fi
     21504
     21505
     21506
     21507
     21508
     21509for ac_header in direct.h windows.h winsock2.h ws2tcpip.h
    2247121510do
    2247221511as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2263221671
    2263321672
    22634 
    22635 
    22636 
    22637 
    22638 
    22639 for ac_header in unistd.h utime.h grp.h sys/id.h memory.h alloca.h
     21673#######################################
     21674# Check for mkdir mode
     21675{ echo "$as_me:$LINENO: checking whether mkdir supports mode" >&5
     21676echo $ECHO_N "checking whether mkdir supports mode... $ECHO_C" >&6; }
     21677if test "${ac_mkdir_has_mode+set}" = set; then
     21678  echo $ECHO_N "(cached) $ECHO_C" >&6
     21679else
     21680  cat >conftest.$ac_ext <<_ACEOF
     21681/* confdefs.h.  */
     21682_ACEOF
     21683cat confdefs.h >>conftest.$ac_ext
     21684cat >>conftest.$ac_ext <<_ACEOF
     21685/* end confdefs.h.  */
     21686
     21687                #include <stdio.h>
     21688                #ifdef HAVE_DIRECT_H
     21689                #include <direct.h>
     21690                #endif
     21691int
     21692main ()
     21693{
     21694
     21695                        mkdir("foo",0777);
     21696                        return 0;
     21697
     21698  ;
     21699  return 0;
     21700}
     21701_ACEOF
     21702rm -f conftest.$ac_objext
     21703if { (ac_try="$ac_compile"
     21704case "(($ac_try" in
     21705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     21706  *) ac_try_echo=$ac_try;;
     21707esac
     21708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     21709  (eval "$ac_compile") 2>conftest.er1
     21710  ac_status=$?
     21711  grep -v '^ *+' conftest.er1 >conftest.err
     21712  rm -f conftest.er1
     21713  cat conftest.err >&5
     21714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21715  (exit $ac_status); } &&
     21716         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
     21717  { (case "(($ac_try" in
     21718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     21719  *) ac_try_echo=$ac_try;;
     21720esac
     21721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     21722  (eval "$ac_try") 2>&5
     21723  ac_status=$?
     21724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21725  (exit $ac_status); }; } &&
     21726         { ac_try='test -s conftest.$ac_objext'
     21727  { (case "(($ac_try" in
     21728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     21729  *) ac_try_echo=$ac_try;;
     21730esac
     21731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     21732  (eval "$ac_try") 2>&5
     21733  ac_status=$?
     21734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21735  (exit $ac_status); }; }; then
     21736  ac_mkdir_has_mode="yes"
     21737else
     21738  echo "$as_me: failed program was:" >&5
     21739sed 's/^/| /' conftest.$ac_ext >&5
     21740
     21741        ac_mkdir_has_mode="no"
     21742fi
     21743
     21744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     21745fi
     21746{ echo "$as_me:$LINENO: result: $ac_mkdir_has_mode" >&5
     21747echo "${ECHO_T}$ac_mkdir_has_mode" >&6; }
     21748
     21749if test "$ac_mkdir_has_mode" = "yes"
     21750then
     21751
     21752cat >>confdefs.h <<\_ACEOF
     21753#define HAVE_MKDIR_MODE 1
     21754_ACEOF
     21755
     21756fi
     21757
     21758
     21759for ac_func in timegm
     21760do
     21761as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     21762{ echo "$as_me:$LINENO: checking for $ac_func" >&5
     21763echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
     21764if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     21765  echo $ECHO_N "(cached) $ECHO_C" >&6
     21766else
     21767  cat >conftest.$ac_ext <<_ACEOF
     21768/* confdefs.h.  */
     21769_ACEOF
     21770cat confdefs.h >>conftest.$ac_ext
     21771cat >>conftest.$ac_ext <<_ACEOF
     21772/* end confdefs.h.  */
     21773/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     21774   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     21775#define $ac_func innocuous_$ac_func
     21776
     21777/* System header to define __stub macros and hopefully few prototypes,
     21778    which can conflict with char $ac_func (); below.
     21779    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     21780    <limits.h> exists even on freestanding compilers.  */
     21781
     21782#ifdef __STDC__
     21783# include <limits.h>
     21784#else
     21785# include <assert.h>
     21786#endif
     21787
     21788#undef $ac_func
     21789
     21790/* Override any GCC internal prototype to avoid an error.
     21791   Use char because int might match the return type of a GCC
     21792   builtin and then its argument prototype would still apply.  */
     21793#ifdef __cplusplus
     21794extern "C"
     21795#endif
     21796char $ac_func ();
     21797/* The GNU C library defines this for functions which it implements
     21798    to always fail with ENOSYS.  Some functions are actually named
     21799    something starting with __ and the normal name is an alias.  */
     21800#if defined __stub_$ac_func || defined __stub___$ac_func
     21801choke me
     21802#endif
     21803
     21804int
     21805main ()
     21806{
     21807return $ac_func ();
     21808  ;
     21809  return 0;
     21810}
     21811_ACEOF
     21812rm -f conftest.$ac_objext conftest$ac_exeext
     21813if { (ac_try="$ac_link"
     21814case "(($ac_try" in
     21815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     21816  *) ac_try_echo=$ac_try;;
     21817esac
     21818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     21819  (eval "$ac_link") 2>conftest.er1
     21820  ac_status=$?
     21821  grep -v '^ *+' conftest.er1 >conftest.err
     21822  rm -f conftest.er1
     21823  cat conftest.err >&5
     21824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21825  (exit $ac_status); } &&
     21826         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
     21827  { (case "(($ac_try" in
     21828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     21829  *) ac_try_echo=$ac_try;;
     21830esac
     21831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     21832  (eval "$ac_try") 2>&5
     21833  ac_status=$?
     21834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21835  (exit $ac_status); }; } &&
     21836         { ac_try='test -s conftest$ac_exeext'
     21837  { (case "(($ac_try" in
     21838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     21839  *) ac_try_echo=$ac_try;;
     21840esac
     21841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     21842  (eval "$ac_try") 2>&5
     21843  ac_status=$?
     21844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21845  (exit $ac_status); }; }; then
     21846  eval "$as_ac_var=yes"
     21847else
     21848  echo "$as_me: failed program was:" >&5
     21849sed 's/^/| /' conftest.$ac_ext >&5
     21850
     21851        eval "$as_ac_var=no"
     21852fi
     21853
     21854rm -f core conftest.err conftest.$ac_objext \
     21855      conftest$ac_exeext conftest.$ac_ext
     21856fi
     21857ac_res=`eval echo '${'$as_ac_var'}'`
     21858               { echo "$as_me:$LINENO: result: $ac_res" >&5
     21859echo "${ECHO_T}$ac_res" >&6; }
     21860if test `eval echo '${'$as_ac_var'}'` = yes; then
     21861  cat >>confdefs.h <<_ACEOF
     21862#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     21863_ACEOF
     21864
     21865else
     21866  LIBREPLACEOBJ="${LIBREPLACEOBJ} timegm.o"
     21867fi
     21868done
     21869
     21870
     21871{ echo "$as_me:$LINENO: checking for broken readdir" >&5
     21872echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6; }
     21873if test "${libreplace_cv_READDIR_NEEDED+set}" = set; then
     21874  echo $ECHO_N "(cached) $ECHO_C" >&6
     21875else
     21876
     21877        if test "$cross_compiling" = yes; then
     21878  libreplace_cv_READDIR_NEEDED="assuming not"
     21879else
     21880  cat >conftest.$ac_ext <<_ACEOF
     21881/* confdefs.h.  */
     21882_ACEOF
     21883cat confdefs.h >>conftest.$ac_ext
     21884cat >>conftest.$ac_ext <<_ACEOF
     21885/* end confdefs.h.  */
     21886
     21887#define test_readdir_os2_delete main
     21888#include "$libreplacedir/test/os2_delete.c"
     21889_ACEOF
     21890rm -f conftest$ac_exeext
     21891if { (ac_try="$ac_link"
     21892case "(($ac_try" in
     21893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     21894  *) ac_try_echo=$ac_try;;
     21895esac
     21896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     21897  (eval "$ac_link") 2>&5
     21898  ac_status=$?
     21899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21900  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     21901  { (case "(($ac_try" in
     21902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     21903  *) ac_try_echo=$ac_try;;
     21904esac
     21905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     21906  (eval "$ac_try") 2>&5
     21907  ac_status=$?
     21908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21909  (exit $ac_status); }; }; then
     21910  libreplace_cv_READDIR_NEEDED=no
     21911else
     21912  echo "$as_me: program exited with status $ac_status" >&5
     21913echo "$as_me: failed program was:" >&5
     21914sed 's/^/| /' conftest.$ac_ext >&5
     21915
     21916( exit $ac_status )
     21917libreplace_cv_READDIR_NEEDED=yes
     21918fi
     21919rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     21920fi
     21921
     21922
     21923
     21924fi
     21925{ echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_NEEDED" >&5
     21926echo "${ECHO_T}$libreplace_cv_READDIR_NEEDED" >&6; }
     21927
     21928#
     21929# try to replace with getdirentries() if needed
     21930#
     21931if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
     21932
     21933for ac_func in getdirentries
     21934do
     21935as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     21936{ echo "$as_me:$LINENO: checking for $ac_func" >&5
     21937echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
     21938if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     21939  echo $ECHO_N "(cached) $ECHO_C" >&6
     21940else
     21941  cat >conftest.$ac_ext <<_ACEOF
     21942/* confdefs.h.  */
     21943_ACEOF
     21944cat confdefs.h >>conftest.$ac_ext
     21945cat >>conftest.$ac_ext <<_ACEOF
     21946/* end confdefs.h.  */
     21947/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     21948   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     21949#define $ac_func innocuous_$ac_func
     21950
     21951/* System header to define __stub macros and hopefully few prototypes,
     21952    which can conflict with char $ac_func (); below.
     21953    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     21954    <limits.h> exists even on freestanding compilers.  */
     21955
     21956#ifdef __STDC__
     21957# include <limits.h>
     21958#else
     21959# include <assert.h>
     21960#endif
     21961
     21962#undef $ac_func
     21963
     21964/* Override any GCC internal prototype to avoid an error.
     21965   Use char because int might match the return type of a GCC
     21966   builtin and then its argument prototype would still apply.  */
     21967#ifdef __cplusplus
     21968extern "C"
     21969#endif
     21970char $ac_func ();
     21971/* The GNU C library defines this for functions which it implements
     21972    to always fail with ENOSYS.  Some functions are actually named
     21973    something starting with __ and the normal name is an alias.  */
     21974#if defined __stub_$ac_func || defined __stub___$ac_func
     21975choke me
     21976#endif
     21977
     21978int
     21979main ()
     21980{
     21981return $ac_func ();
     21982  ;
     21983  return 0;
     21984}
     21985_ACEOF
     21986rm -f conftest.$ac_objext conftest$ac_exeext
     21987if { (ac_try="$ac_link"
     21988case "(($ac_try" in
     21989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     21990  *) ac_try_echo=$ac_try;;
     21991esac
     21992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     21993  (eval "$ac_link") 2>conftest.er1
     21994  ac_status=$?
     21995  grep -v '^ *+' conftest.er1 >conftest.err
     21996  rm -f conftest.er1
     21997  cat conftest.err >&5
     21998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21999  (exit $ac_status); } &&
     22000         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
     22001  { (case "(($ac_try" in
     22002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     22003  *) ac_try_echo=$ac_try;;
     22004esac
     22005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     22006  (eval "$ac_try") 2>&5
     22007  ac_status=$?
     22008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22009  (exit $ac_status); }; } &&
     22010         { ac_try='test -s conftest$ac_exeext'
     22011  { (case "(($ac_try" in
     22012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     22013  *) ac_try_echo=$ac_try;;
     22014esac
     22015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     22016  (eval "$ac_try") 2>&5
     22017  ac_status=$?
     22018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22019  (exit $ac_status); }; }; then
     22020  eval "$as_ac_var=yes"
     22021else
     22022  echo "$as_me: failed program was:" >&5
     22023sed 's/^/| /' conftest.$ac_ext >&5
     22024
     22025        eval "$as_ac_var=no"
     22026fi
     22027
     22028rm -f core conftest.err conftest.$ac_objext \
     22029      conftest$ac_exeext conftest.$ac_ext
     22030fi
     22031ac_res=`eval echo '${'$as_ac_var'}'`
     22032               { echo "$as_me:$LINENO: result: $ac_res" >&5
     22033echo "${ECHO_T}$ac_res" >&6; }
     22034if test `eval echo '${'$as_ac_var'}'` = yes; then
     22035  cat >>confdefs.h <<_ACEOF
     22036#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     22037_ACEOF
     22038
     22039fi
     22040done
     22041
     22042{ echo "$as_me:$LINENO: checking for prototype long telldir(const DIR *dir)" >&5
     22043echo $ECHO_N "checking for prototype long telldir(const DIR *dir)... $ECHO_C" >&6; }
     22044if test "${ac_cv_c_prototype_long_telldir_const_DIR_pdir_+set}" = set; then
     22045  echo $ECHO_N "(cached) $ECHO_C" >&6
     22046else
     22047  cat >conftest.$ac_ext <<_ACEOF
     22048
     22049                $ac_includes_default
     22050
     22051        #include <dirent.h>
     22052
     22053                long telldir(const DIR *dir)
     22054                {
     22055
     22056        return 0;
     22057
     22058                }
     22059
     22060_ACEOF
     22061rm -f conftest.$ac_objext
     22062if { (ac_try="$ac_compile"
     22063case "(($ac_try" in
     22064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     22065  *) ac_try_echo=$ac_try;;
     22066esac
     22067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     22068  (eval "$ac_compile") 2>conftest.er1
     22069  ac_status=$?
     22070  grep -v '^ *+' conftest.er1 >conftest.err
     22071  rm -f conftest.er1
     22072  cat conftest.err >&5
     22073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22074  (exit $ac_status); } &&
     22075         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
     22076  { (case "(($ac_try" in
     22077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     22078  *) ac_try_echo=$ac_try;;
     22079esac
     22080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     22081  (eval "$ac_try") 2>&5
     22082  ac_status=$?
     22083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22084  (exit $ac_status); }; } &&
     22085         { ac_try='test -s conftest.$ac_objext'
     22086  { (case "(($ac_try" in
     22087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     22088  *) ac_try_echo=$ac_try;;
     22089esac
     22090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     22091  (eval "$ac_try") 2>&5
     22092  ac_status=$?
     22093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22094  (exit $ac_status); }; }; then
     22095
     22096                ac_cv_c_prototype_long_telldir_const_DIR_pdir_=yes
     22097
     22098else
     22099  echo "$as_me: failed program was:" >&5
     22100sed 's/^/| /' conftest.$ac_ext >&5
     22101
     22102
     22103                ac_cv_c_prototype_long_telldir_const_DIR_pdir_=no
     22104
     22105fi
     22106
     22107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     22108
     22109fi
     22110{ echo "$as_me:$LINENO: result: $ac_cv_c_prototype_long_telldir_const_DIR_pdir_" >&5
     22111echo "${ECHO_T}$ac_cv_c_prototype_long_telldir_const_DIR_pdir_" >&6; }
     22112if test $ac_cv_c_prototype_long_telldir_const_DIR_pdir_ = yes; then
     22113
     22114
     22115cat >>confdefs.h <<\_ACEOF
     22116#define TELLDIR_TAKES_CONST_DIR 1
     22117_ACEOF
     22118
     22119
     22120fi
     22121
     22122
     22123
     22124{ echo "$as_me:$LINENO: checking for prototype int seekdir(DIR *dir, long ofs)" >&5
     22125echo $ECHO_N "checking for prototype int seekdir(DIR *dir, long ofs)... $ECHO_C" >&6; }
     22126if test "${ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_+set}" = set; then
     22127  echo $ECHO_N "(cached) $ECHO_C" >&6
     22128else
     22129  cat >conftest.$ac_ext <<_ACEOF
     22130
     22131                $ac_includes_default
     22132
     22133        #include <dirent.h>
     22134
     22135                int seekdir(DIR *dir, long ofs)
     22136                {
     22137
     22138        return 0;
     22139
     22140                }
     22141
     22142_ACEOF
     22143rm -f conftest.$ac_objext
     22144if { (ac_try="$ac_compile"
     22145case "(($ac_try" in
     22146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     22147  *) ac_try_echo=$ac_try;;
     22148esac
     22149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     22150  (eval "$ac_compile") 2>conftest.er1
     22151  ac_status=$?
     22152  grep -v '^ *+' conftest.er1 >conftest.err
     22153  rm -f conftest.er1
     22154  cat conftest.err >&5
     22155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22156  (exit $ac_status); } &&
     22157         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
     22158  { (case "(($ac_try" in
     22159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     22160  *) ac_try_echo=$ac_try;;
     22161esac
     22162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     22163  (eval "$ac_try") 2>&5
     22164  ac_status=$?
     22165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22166  (exit $ac_status); }; } &&
     22167         { ac_try='test -s conftest.$ac_objext'
     22168  { (case "(($ac_try" in
     22169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     22170  *) ac_try_echo=$ac_try;;
     22171esac
     22172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     22173  (eval "$ac_try") 2>&5
     22174  ac_status=$?
     22175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22176  (exit $ac_status); }; }; then
     22177
     22178                ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_=yes
     22179
     22180else
     22181  echo "$as_me: failed program was:" >&5
     22182sed 's/^/| /' conftest.$ac_ext >&5
     22183
     22184
     22185                ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_=no
     22186
     22187fi
     22188
     22189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     22190
     22191fi
     22192{ echo "$as_me:$LINENO: result: $ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_" >&5
     22193echo "${ECHO_T}$ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_" >&6; }
     22194if test $ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_ = yes; then
     22195
     22196
     22197cat >>confdefs.h <<\_ACEOF
     22198#define SEEKDIR_RETURNS_INT 1
     22199_ACEOF
     22200
     22201
     22202fi
     22203
     22204
     22205{ echo "$as_me:$LINENO: checking for replacing readdir using getdirentries()" >&5
     22206echo $ECHO_N "checking for replacing readdir using getdirentries()... $ECHO_C" >&6; }
     22207if test "${libreplace_cv_READDIR_GETDIRENTRIES+set}" = set; then
     22208  echo $ECHO_N "(cached) $ECHO_C" >&6
     22209else
     22210
     22211        if test "$cross_compiling" = yes; then
     22212  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
     22213See \`config.log' for more details." >&5
     22214echo "$as_me: error: cannot run test program while cross compiling
     22215See \`config.log' for more details." >&2;}
     22216   { (exit 1); exit 1; }; }
     22217else
     22218  cat >conftest.$ac_ext <<_ACEOF
     22219/* confdefs.h.  */
     22220_ACEOF
     22221cat confdefs.h >>conftest.$ac_ext
     22222cat >>conftest.$ac_ext <<_ACEOF
     22223/* end confdefs.h.  */
     22224
     22225#define _LIBREPLACE_REPLACE_H
     22226#include "$libreplacedir/repdir_getdirentries.c"
     22227#define test_readdir_os2_delete main
     22228#include "$libreplacedir/test/os2_delete.c"
     22229_ACEOF
     22230rm -f conftest$ac_exeext
     22231if { (ac_try="$ac_link"
     22232case "(($ac_try" in
     22233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     22234  *) ac_try_echo=$ac_try;;
     22235esac
     22236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     22237  (eval "$ac_link") 2>&5
     22238  ac_status=$?
     22239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22240  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     22241  { (case "(($ac_try" in
     22242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     22243  *) ac_try_echo=$ac_try;;
     22244esac
     22245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     22246  (eval "$ac_try") 2>&5
     22247  ac_status=$?
     22248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22249  (exit $ac_status); }; }; then
     22250  libreplace_cv_READDIR_GETDIRENTRIES=yes
     22251else
     22252  echo "$as_me: program exited with status $ac_status" >&5
     22253echo "$as_me: failed program was:" >&5
     22254sed 's/^/| /' conftest.$ac_ext >&5
     22255
     22256( exit $ac_status )
     22257libreplace_cv_READDIR_GETDIRENTRIES=no
     22258fi
     22259rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     22260fi
     22261
     22262
     22263
     22264fi
     22265{ echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_GETDIRENTRIES" >&5
     22266echo "${ECHO_T}$libreplace_cv_READDIR_GETDIRENTRIES" >&6; }
     22267fi
     22268if test x"$libreplace_cv_READDIR_GETDIRENTRIES" = x"yes"; then
     22269
     22270cat >>confdefs.h <<\_ACEOF
     22271#define REPLACE_READDIR 1
     22272_ACEOF
     22273
     22274
     22275cat >>confdefs.h <<\_ACEOF
     22276#define REPLACE_READDIR_GETDIRENTRIES 1
     22277_ACEOF
     22278
     22279        LIBREPLACEOBJ="${LIBREPLACEOBJ} repdir_getdirentries.o"
     22280        libreplace_cv_READDIR_NEEDED=no
     22281fi
     22282
     22283#
     22284# try to replace with getdents() if needed
     22285#
     22286if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
     22287
     22288for ac_func in getdents
     22289do
     22290as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     22291{ echo "$as_me:$LINENO: checking for $ac_func" >&5
     22292echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
     22293if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     22294  echo $ECHO_N "(cached) $ECHO_C" >&6
     22295else
     22296  cat >conftest.$ac_ext <<_ACEOF
     22297/* confdefs.h.  */
     22298_ACEOF
     22299cat confdefs.h >>conftest.$ac_ext
     22300cat >>conftest.$ac_ext <<_ACEOF
     22301/* end confdefs.h.  */
     22302/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     22303   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     22304#define $ac_func innocuous_$ac_func
     22305
     22306/* System header to define __stub macros and hopefully few prototypes,
     22307    which can conflict with char $ac_func (); below.
     22308    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     22309    <limits.h> exists even on freestanding compilers.  */
     22310
     22311#ifdef __STDC__
     22312# include <limits.h>
     22313#else
     22314# include <assert.h>
     22315#endif
     22316
     22317#undef $ac_func
     22318
     22319/* Override any GCC internal prototype to avoid an error.
     22320   Use char because int might match the return type of a GCC
     22321   builtin and then its argument prototype would still apply.  */
     22322#ifdef __cplusplus
     22323extern "C"
     22324#endif
     22325char $ac_func ();
     22326/* The GNU C library defines this for functions which it implements
     22327    to always fail with ENOSYS.  Some functions are actually named
     22328    something starting with __ and the normal name is an alias.  */
     22329#if defined __stub_$ac_func || defined __stub___$ac_func
     22330choke me
     22331#endif
     22332
     22333int
     22334main ()
     22335{
     22336return $ac_func ();
     22337  ;
     22338  return 0;
     22339}
     22340_ACEOF
     22341rm -f conftest.$ac_objext conftest$ac_exeext
     22342if { (ac_try="$ac_link"
     22343case "(($ac_try" in
     22344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     22345  *) ac_try_echo=$ac_try;;
     22346esac
     22347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     22348  (eval "$ac_link") 2>conftest.er1
     22349  ac_status=$?
     22350  grep -v '^ *+' conftest.er1 >conftest.err
     22351  rm -f conftest.er1
     22352  cat conftest.err >&5
     22353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22354  (exit $ac_status); } &&
     22355         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
     22356  { (case "(($ac_try" in
     22357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     22358  *) ac_try_echo=$ac_try;;
     22359esac
     22360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     22361  (eval "$ac_try") 2>&5
     22362  ac_status=$?
     22363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22364  (exit $ac_status); }; } &&
     22365         { ac_try='test -s conftest$ac_exeext'
     22366  { (case "(($ac_try" in
     22367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     22368  *) ac_try_echo=$ac_try;;
     22369esac
     22370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     22371  (eval "$ac_try") 2>&5
     22372  ac_status=$?
     22373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22374  (exit $ac_status); }; }; then
     22375  eval "$as_ac_var=yes"
     22376else
     22377  echo "$as_me: failed program was:" >&5
     22378sed 's/^/| /' conftest.$ac_ext >&5
     22379
     22380        eval "$as_ac_var=no"
     22381fi
     22382
     22383rm -f core conftest.err conftest.$ac_objext \
     22384      conftest$ac_exeext conftest.$ac_ext
     22385fi
     22386ac_res=`eval echo '${'$as_ac_var'}'`
     22387               { echo "$as_me:$LINENO: result: $ac_res" >&5
     22388echo "${ECHO_T}$ac_res" >&6; }
     22389if test `eval echo '${'$as_ac_var'}'` = yes; then
     22390  cat >>confdefs.h <<_ACEOF
     22391#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     22392_ACEOF
     22393
     22394fi
     22395done
     22396
     22397{ echo "$as_me:$LINENO: checking for replacing readdir using getdents()" >&5
     22398echo $ECHO_N "checking for replacing readdir using getdents()... $ECHO_C" >&6; }
     22399if test "${libreplace_cv_READDIR_GETDENTS+set}" = set; then
     22400  echo $ECHO_N "(cached) $ECHO_C" >&6
     22401else
     22402
     22403        if test "$cross_compiling" = yes; then
     22404  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
     22405See \`config.log' for more details." >&5
     22406echo "$as_me: error: cannot run test program while cross compiling
     22407See \`config.log' for more details." >&2;}
     22408   { (exit 1); exit 1; }; }
     22409else
     22410  cat >conftest.$ac_ext <<_ACEOF
     22411/* confdefs.h.  */
     22412_ACEOF
     22413cat confdefs.h >>conftest.$ac_ext
     22414cat >>conftest.$ac_ext <<_ACEOF
     22415/* end confdefs.h.  */
     22416
     22417#define _LIBREPLACE_REPLACE_H
     22418#error _donot_use_getdents_replacement_anymore
     22419#include "$libreplacedir/repdir_getdents.c"
     22420#define test_readdir_os2_delete main
     22421#include "$libreplacedir/test/os2_delete.c"
     22422_ACEOF
     22423rm -f conftest$ac_exeext
     22424if { (ac_try="$ac_link"
     22425case "(($ac_try" in
     22426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     22427  *) ac_try_echo=$ac_try;;
     22428esac
     22429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     22430  (eval "$ac_link") 2>&5
     22431  ac_status=$?
     22432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22433  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     22434  { (case "(($ac_try" in
     22435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     22436  *) ac_try_echo=$ac_try;;
     22437esac
     22438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     22439  (eval "$ac_try") 2>&5
     22440  ac_status=$?
     22441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22442  (exit $ac_status); }; }; then
     22443  libreplace_cv_READDIR_GETDENTS=yes
     22444else
     22445  echo "$as_me: program exited with status $ac_status" >&5
     22446echo "$as_me: failed program was:" >&5
     22447sed 's/^/| /' conftest.$ac_ext >&5
     22448
     22449( exit $ac_status )
     22450libreplace_cv_READDIR_GETDENTS=no
     22451fi
     22452rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     22453fi
     22454
     22455
     22456
     22457fi
     22458{ echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_GETDENTS" >&5
     22459echo "${ECHO_T}$libreplace_cv_READDIR_GETDENTS" >&6; }
     22460fi
     22461if test x"$libreplace_cv_READDIR_GETDENTS" = x"yes"; then
     22462
     22463cat >>confdefs.h <<\_ACEOF
     22464#define REPLACE_READDIR 1
     22465_ACEOF
     22466
     22467
     22468cat >>confdefs.h <<\_ACEOF
     22469#define REPLACE_READDIR_GETDENTS 1
     22470_ACEOF
     22471
     22472        LIBREPLACEOBJ="${LIBREPLACEOBJ} repdir_getdents.o"
     22473        libreplace_cv_READDIR_NEEDED=no
     22474fi
     22475
     22476{ echo "$as_me:$LINENO: checking a usable readdir()" >&5
     22477echo $ECHO_N "checking a usable readdir()... $ECHO_C" >&6; }
     22478if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
     22479        { echo "$as_me:$LINENO: result: no" >&5
     22480echo "${ECHO_T}no" >&6; }
     22481        { echo "$as_me:$LINENO: WARNING: the provided readdir() is broken" >&5
     22482echo "$as_me: WARNING: the provided readdir() is broken" >&2;}
     22483else
     22484        { echo "$as_me:$LINENO: result: yes" >&5
     22485echo "${ECHO_T}yes" >&6; }
     22486fi
     22487
     22488
     22489
     22490
     22491
     22492
     22493
     22494
     22495for ac_func in syslog memset setnetgrent getnetgrent endnetgrent memcpy
     22496do
     22497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     22498{ echo "$as_me:$LINENO: checking for $ac_func" >&5
     22499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
     22500if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     22501  echo $ECHO_N "(cached) $ECHO_C" >&6
     22502else
     22503  cat >conftest.$ac_ext <<_ACEOF
     22504/* confdefs.h.  */
     22505_ACEOF
     22506cat confdefs.h >>conftest.$ac_ext
     22507cat >>conftest.$ac_ext <<_ACEOF
     22508/* end confdefs.h.  */
     22509/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     22510   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     22511#define $ac_func innocuous_$ac_func
     22512
     22513/* System header to define __stub macros and hopefully few prototypes,
     22514    which can conflict with char $ac_func (); below.
     22515    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     22516    <limits.h> exists even on freestanding compilers.  */
     22517
     22518#ifdef __STDC__
     22519# include <limits.h>
     22520#else
     22521# include <assert.h>
     22522#endif
     22523
     22524#undef $ac_func
     22525
     22526/* Override any GCC internal prototype to avoid an error.
     22527   Use char because int might match the return type of a GCC
     22528   builtin and then its argument prototype would still apply.  */
     22529#ifdef __cplusplus
     22530extern "C"
     22531#endif
     22532char $ac_func ();
     22533/* The GNU C library defines this for functions which it implements
     22534    to always fail with ENOSYS.  Some functions are actually named
     22535    something starting with __ and the normal name is an alias.  */
     22536#if defined __stub_$ac_func || defined __stub___$ac_func
     22537choke me
     22538#endif
     22539
     22540int
     22541main ()
     22542{
     22543return $ac_func ();
     22544  ;
     22545  return 0;
     22546}
     22547_ACEOF
     22548rm -f conftest.$ac_objext conftest$ac_exeext
     22549if { (ac_try="$ac_link"
     22550case "(($ac_try" in
     22551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     22552  *) ac_try_echo=$ac_try;;
     22553esac
     22554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     22555  (eval "$ac_link") 2>conftest.er1
     22556  ac_status=$?
     22557  grep -v '^ *+' conftest.er1 >conftest.err
     22558  rm -f conftest.er1
     22559  cat conftest.err >&5
     22560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22561  (exit $ac_status); } &&
     22562         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
     22563  { (case "(($ac_try" in
     22564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     22565  *) ac_try_echo=$ac_try;;
     22566esac
     22567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     22568  (eval "$ac_try") 2>&5
     22569  ac_status=$?
     22570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22571  (exit $ac_status); }; } &&
     22572         { ac_try='test -s conftest$ac_exeext'
     22573  { (case "(($ac_try" in
     22574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     22575  *) ac_try_echo=$ac_try;;
     22576esac
     22577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     22578  (eval "$ac_try") 2>&5
     22579  ac_status=$?
     22580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22581  (exit $ac_status); }; }; then
     22582  eval "$as_ac_var=yes"
     22583else
     22584  echo "$as_me: failed program was:" >&5
     22585sed 's/^/| /' conftest.$ac_ext >&5
     22586
     22587        eval "$as_ac_var=no"
     22588fi
     22589
     22590rm -f core conftest.err conftest.$ac_objext \
     22591      conftest$ac_exeext conftest.$ac_ext
     22592fi
     22593ac_res=`eval echo '${'$as_ac_var'}'`
     22594               { echo "$as_me:$LINENO: result: $ac_res" >&5
     22595echo "${ECHO_T}$ac_res" >&6; }
     22596if test `eval echo '${'$as_ac_var'}'` = yes; then
     22597  cat >>confdefs.h <<_ACEOF
     22598#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     22599_ACEOF
     22600
     22601else
     22602  { { echo "$as_me:$LINENO: error: Required function not found" >&5
     22603echo "$as_me: error: Required function not found" >&2;}
     22604   { (exit 1); exit 1; }; }
     22605fi
     22606done
     22607
     22608
     22609echo "LIBREPLACE_BROKEN_CHECKS: END"
     22610
     22611
     22612LIBREPLACE_DIR=`echo ${libreplacedir} | sed -e "s;${srcdir};;" -e "s;^/;;"`
     22613
     22614LIBREPLACE_OBJS=""
     22615for obj in ${LIBREPLACEOBJ}; do
     22616        LIBREPLACE_OBJS="${LIBREPLACE_OBJS} ${LIBREPLACE_DIR}/${obj}"
     22617done
     22618
     22619
     22620# add -ldl to the global LIBS
     22621LIBS="${LIBS} ${LIBDL}"
     22622
     22623
     22624
     22625
     22626
     22627
     22628
     22629
     22630
     22631for ac_header in aio.h arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h rpc/nettype.h
    2264022632do
    2264122633as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2280222794
    2280322795
    22804 for ac_header in limits.h float.h
     22796
     22797
     22798
     22799
     22800for ac_header in unistd.h utime.h grp.h sys/id.h memory.h alloca.h
    2280522801do
    2280622802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2296722963
    2296822964
    22969 
    22970 for ac_header in rpc/rpc.h rpcsvc/nis.h rpcsvc/ypclnt.h
     22965for ac_header in limits.h float.h
    2297122966do
    2297222967as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2313423129
    2313523130
    23136 
    23137 
    23138 
    23139 
    23140 for ac_header in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/prctl.h
     23131for ac_header in rpc/rpc.h rpcsvc/nis.h rpcsvc/ypclnt.h
    2314123132do
    2314223133as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2330823299
    2330923300
    23310 
    23311 for ac_header in sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h
     23301for ac_header in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/prctl.h
    2331223302do
    2331323303as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2347323463
    2347423464
    23475 for ac_header in sys/un.h
     23465
     23466
     23467
     23468
     23469
     23470
     23471
     23472for ac_header in sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h
    2347623473do
    2347723474as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2363723634
    2363823635
    23639 
    23640 
    23641 
    23642 
    23643 
    23644 for ac_header in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
     23636for ac_header in sys/un.h
    2364523637do
    2364623638as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2381123803
    2381223804
    23813 for ac_header in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
     23805for ac_header in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
    2381423806do
    2381523807as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2397523967
    2397623968
    23977 for ac_header in sys/sysmacros.h
     23969
     23970
     23971
     23972
     23973
     23974for ac_header in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
    2397823975do
    2397923976as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2413924136
    2414024137
    24141 
    24142 for ac_header in sys/syslog.h syslog.h
     24138for ac_header in sys/sysmacros.h
    2414324139do
    2414424140as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2430524301
    2430624302
    24307 for ac_header in langinfo.h locale.h
     24303for ac_header in sys/syslog.h syslog.h
    2430824304do
    2430924305as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2446924465
    2447024466
    24471 for ac_header in xfs/libxfs.h
     24467
     24468for ac_header in langinfo.h locale.h
    2447224469do
    2447324470as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2463324630
    2463424631
    24635 
    24636 for ac_header in rpcsvc/yp_prot.h
    24637 do
    24638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    24639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
    24640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
    24641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    24642   echo $ECHO_N "(cached) $ECHO_C" >&6
    24643 else
    24644   cat >conftest.$ac_ext <<_ACEOF
    24645 /* confdefs.h.  */
    24646 _ACEOF
    24647 cat confdefs.h >>conftest.$ac_ext
    24648 cat >>conftest.$ac_ext <<_ACEOF
    24649 /* end confdefs.h.  */
    24650 
    24651 #if HAVE_RPC_RPC_H
    24652 #include <rpc/rpc.h>
    24653 #endif
    24654 
    24655 
    24656 #include <$ac_header>
    24657 _ACEOF
    24658 rm -f conftest.$ac_objext
    24659 if { (ac_try="$ac_compile"
    24660 case "(($ac_try" in
    24661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    24662   *) ac_try_echo=$ac_try;;
    24663 esac
    24664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    24665   (eval "$ac_compile") 2>conftest.er1
    24666   ac_status=$?
    24667   grep -v '^ *+' conftest.er1 >conftest.err
    24668   rm -f conftest.er1
    24669   cat conftest.err >&5
    24670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    24671   (exit $ac_status); } &&
    24672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
    24673   { (case "(($ac_try" in
    24674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    24675   *) ac_try_echo=$ac_try;;
    24676 esac
    24677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    24678   (eval "$ac_try") 2>&5
    24679   ac_status=$?
    24680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    24681   (exit $ac_status); }; } &&
    24682          { ac_try='test -s conftest.$ac_objext'
    24683   { (case "(($ac_try" in
    24684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    24685   *) ac_try_echo=$ac_try;;
    24686 esac
    24687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    24688   (eval "$ac_try") 2>&5
    24689   ac_status=$?
    24690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    24691   (exit $ac_status); }; }; then
    24692   eval "$as_ac_Header=yes"
    24693 else
    24694   echo "$as_me: failed program was:" >&5
    24695 sed 's/^/| /' conftest.$ac_ext >&5
    24696 
    24697         eval "$as_ac_Header=no"
    24698 fi
    24699 
    24700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    24701 fi
    24702 ac_res=`eval echo '${'$as_ac_Header'}'`
    24703                { echo "$as_me:$LINENO: result: $ac_res" >&5
    24704 echo "${ECHO_T}$ac_res" >&6; }
    24705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    24706   cat >>confdefs.h <<_ACEOF
    24707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    24708 _ACEOF
    24709 
    24710 fi
    24711 
    24712 done
    24713 
    24714 
    24715 ## These fail to compile on IRIX so just check for their presence
    24716 
    24717 for ac_header in sys/mode.h
     24632for ac_header in xfs/libxfs.h
    2471824633do
    2471924634as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2487924794
    2488024795
    24881 # Look for Darwin headers
    24882 old_CPPFLAGS="$CPPFLAGS"
    24883 CPPFLAGS="-Iinclude $CPPFLAGS"
    24884 
    24885 for ac_header in CoreFoundation/CFStringEncodingConverter.h
     24796
     24797for ac_header in rpcsvc/yp_prot.h
     24798do
     24799as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     24800{ echo "$as_me:$LINENO: checking for $ac_header" >&5
     24801echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
     24802if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     24803  echo $ECHO_N "(cached) $ECHO_C" >&6
     24804else
     24805  cat >conftest.$ac_ext <<_ACEOF
     24806/* confdefs.h.  */
     24807_ACEOF
     24808cat confdefs.h >>conftest.$ac_ext
     24809cat >>conftest.$ac_ext <<_ACEOF
     24810/* end confdefs.h.  */
     24811
     24812#if HAVE_RPC_RPC_H
     24813#include <rpc/rpc.h>
     24814#endif
     24815
     24816
     24817#include <$ac_header>
     24818_ACEOF
     24819rm -f conftest.$ac_objext
     24820if { (ac_try="$ac_compile"
     24821case "(($ac_try" in
     24822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     24823  *) ac_try_echo=$ac_try;;
     24824esac
     24825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     24826  (eval "$ac_compile") 2>conftest.er1
     24827  ac_status=$?
     24828  grep -v '^ *+' conftest.er1 >conftest.err
     24829  rm -f conftest.er1
     24830  cat conftest.err >&5
     24831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24832  (exit $ac_status); } &&
     24833         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
     24834  { (case "(($ac_try" in
     24835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     24836  *) ac_try_echo=$ac_try;;
     24837esac
     24838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     24839  (eval "$ac_try") 2>&5
     24840  ac_status=$?
     24841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24842  (exit $ac_status); }; } &&
     24843         { ac_try='test -s conftest.$ac_objext'
     24844  { (case "(($ac_try" in
     24845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     24846  *) ac_try_echo=$ac_try;;
     24847esac
     24848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     24849  (eval "$ac_try") 2>&5
     24850  ac_status=$?
     24851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24852  (exit $ac_status); }; }; then
     24853  eval "$as_ac_Header=yes"
     24854else
     24855  echo "$as_me: failed program was:" >&5
     24856sed 's/^/| /' conftest.$ac_ext >&5
     24857
     24858        eval "$as_ac_Header=no"
     24859fi
     24860
     24861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     24862fi
     24863ac_res=`eval echo '${'$as_ac_Header'}'`
     24864               { echo "$as_me:$LINENO: result: $ac_res" >&5
     24865echo "${ECHO_T}$ac_res" >&6; }
     24866if test `eval echo '${'$as_ac_Header'}'` = yes; then
     24867  cat >>confdefs.h <<_ACEOF
     24868#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     24869_ACEOF
     24870
     24871fi
     24872
     24873done
     24874
     24875
     24876## These fail to compile on IRIX so just check for their presence
     24877
     24878for ac_header in sys/mode.h
    2488624879do
    2488724880as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2504225035_ACEOF
    2504325036
    25044 else
    25045 
    25046 for ac_header in CFStringEncodingConverter.h
     25037fi
     25038
     25039done
     25040
     25041
     25042# Look for Darwin headers
     25043old_CPPFLAGS="$CPPFLAGS"
     25044CPPFLAGS="-Iinclude $CPPFLAGS"
     25045
     25046for ac_header in CoreFoundation/CFStringEncodingConverter.h
    2504725047do
    2504825048as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2520325203_ACEOF
    2520425204
    25205 fi
    25206 
    25207 done
    25208 
    25209 fi
    25210 
    25211 done
    25212 
    25213 CPPFLAGS="$old_CPPFLAGS"
    25214 
    25215 # In valgrind 1.0.x, it's just valgrind.h.  In 1.9.x+ there's a
    25216 # subdirectory of headers.
    25217 
    25218 
    25219 
    25220 for ac_header in valgrind.h valgrind/valgrind.h valgrind/memcheck.h
     25205else
     25206
     25207for ac_header in CFStringEncodingConverter.h
    2522125208do
    2522225209as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2538125368done
    2538225369
    25383 
    25384 # check for linux on amd64 since valgrind is not quite there yet
    25385 case "$host_os" in
    25386         *linux*)
    25387                 case "$UNAME_P" in
    25388                         *x86_64*)
    25389 
    25390 cat >>confdefs.h <<\_ACEOF
    25391 #define HAVE_64BIT_LINUX 1
    25392 _ACEOF
    25393 
    25394                                 ;;
    25395                 esac
    25396                 ;;
    25397 esac
    25398 
    25399 
    25400 #
    25401 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
    25402 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
    25403 #
    25404 case "$host_os" in
    25405     *hpux*)
    25406                 cat >conftest.$ac_ext <<_ACEOF
    25407 /* confdefs.h.  */
    25408 _ACEOF
    25409 cat confdefs.h >>conftest.$ac_ext
    25410 cat >>conftest.$ac_ext <<_ACEOF
    25411 /* end confdefs.h.  */
    25412 #include <shadow.h>
    25413 int
    25414 main ()
    25415 {
    25416 struct spwd testme
    25417   ;
    25418   return 0;
    25419 }
    25420 _ACEOF
    25421 rm -f conftest.$ac_objext
    25422 if { (ac_try="$ac_compile"
    25423 case "(($ac_try" in
    25424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    25425   *) ac_try_echo=$ac_try;;
    25426 esac
    25427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    25428   (eval "$ac_compile") 2>conftest.er1
    25429   ac_status=$?
    25430   grep -v '^ *+' conftest.er1 >conftest.err
    25431   rm -f conftest.er1
    25432   cat conftest.err >&5
    25433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    25434   (exit $ac_status); } &&
    25435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
    25436   { (case "(($ac_try" in
    25437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    25438   *) ac_try_echo=$ac_try;;
    25439 esac
    25440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    25441   (eval "$ac_try") 2>&5
    25442   ac_status=$?
    25443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    25444   (exit $ac_status); }; } &&
    25445          { ac_try='test -s conftest.$ac_objext'
    25446   { (case "(($ac_try" in
    25447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    25448   *) ac_try_echo=$ac_try;;
    25449 esac
    25450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    25451   (eval "$ac_try") 2>&5
    25452   ac_status=$?
    25453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    25454   (exit $ac_status); }; }; then
    25455   ac_cv_header_shadow_h=yes
    25456 else
    25457   echo "$as_me: failed program was:" >&5
    25458 sed 's/^/| /' conftest.$ac_ext >&5
    25459 
    25460         ac_cv_header_shadow_h=no
    25461 fi
    25462 
    25463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    25464                 if test x"$ac_cv_header_shadow_h" = x"yes"; then
    25465 
    25466 cat >>confdefs.h <<\_ACEOF
    25467 #define HAVE_SHADOW_H 1
    25468 _ACEOF
    25469 
    25470                 fi
    25471         ;;
    25472 esac
    25473 
    25474 for ac_header in shadow.h
     25370fi
     25371
     25372done
     25373
     25374CPPFLAGS="$old_CPPFLAGS"
     25375
     25376# In valgrind 1.0.x, it's just valgrind.h.  In 1.9.x+ there's a
     25377# subdirectory of headers.
     25378
     25379
     25380
     25381for ac_header in valgrind.h valgrind/valgrind.h valgrind/memcheck.h
    2547525382do
    2547625383as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2563625543
    2563725544
    25638 
    25639 
    25640 
    25641 
    25642 for ac_header in nss.h nss_common.h nsswitch.h ns_api.h sys/security.h
     25545# check for linux on amd64 since valgrind is not quite there yet
     25546case "$host_os" in
     25547        *linux*)
     25548                case "$UNAME_P" in
     25549                        *x86_64*)
     25550
     25551cat >>confdefs.h <<\_ACEOF
     25552#define HAVE_64BIT_LINUX 1
     25553_ACEOF
     25554
     25555                                ;;
     25556                esac
     25557                ;;
     25558esac
     25559
     25560
     25561#
     25562# HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
     25563# This causes configure to fail to detect it. Check for shadow separately on HPUX.
     25564#
     25565case "$host_os" in
     25566    *hpux*)
     25567                cat >conftest.$ac_ext <<_ACEOF
     25568/* confdefs.h.  */
     25569_ACEOF
     25570cat confdefs.h >>conftest.$ac_ext
     25571cat >>conftest.$ac_ext <<_ACEOF
     25572/* end confdefs.h.  */
     25573#include <shadow.h>
     25574int
     25575main ()
     25576{
     25577struct spwd testme
     25578  ;
     25579  return 0;
     25580}
     25581_ACEOF
     25582rm -f conftest.$ac_objext
     25583if { (ac_try="$ac_compile"
     25584case "(($ac_try" in
     25585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     25586  *) ac_try_echo=$ac_try;;
     25587esac
     25588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     25589  (eval "$ac_compile") 2>conftest.er1
     25590  ac_status=$?
     25591  grep -v '^ *+' conftest.er1 >conftest.err
     25592  rm -f conftest.er1
     25593  cat conftest.err >&5
     25594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     25595  (exit $ac_status); } &&
     25596         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
     25597  { (case "(($ac_try" in
     25598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     25599  *) ac_try_echo=$ac_try;;
     25600esac
     25601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     25602  (eval "$ac_try") 2>&5
     25603  ac_status=$?
     25604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     25605  (exit $ac_status); }; } &&
     25606         { ac_try='test -s conftest.$ac_objext'
     25607  { (case "(($ac_try" in
     25608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     25609  *) ac_try_echo=$ac_try;;
     25610esac
     25611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     25612  (eval "$ac_try") 2>&5
     25613  ac_status=$?
     25614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     25615  (exit $ac_status); }; }; then
     25616  ac_cv_header_shadow_h=yes
     25617else
     25618  echo "$as_me: failed program was:" >&5
     25619sed 's/^/| /' conftest.$ac_ext >&5
     25620
     25621        ac_cv_header_shadow_h=no
     25622fi
     25623
     25624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     25625                if test x"$ac_cv_header_shadow_h" = x"yes"; then
     25626
     25627cat >>confdefs.h <<\_ACEOF
     25628#define HAVE_SHADOW_H 1
     25629_ACEOF
     25630
     25631                fi
     25632        ;;
     25633esac
     25634
     25635for ac_header in shadow.h
    2564325636do
    2564425637as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2580525798
    2580625799
    25807 for ac_header in syscall.h sys/syscall.h
     25800
     25801
     25802
     25803for ac_header in nss.h nss_common.h nsswitch.h ns_api.h sys/security.h
    2580825804do
    2580925805as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    2597025966
    2597125967
    25972 
    25973 
    25974 
    25975 
    25976 
    25977 for ac_header in sys/acl.h sys/attributes.h attr/xattr.h sys/xattr.h sys/extattr.h sys/uio.h
     25968for ac_header in syscall.h sys/syscall.h
     25969do
     25970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     25971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     25972  { echo "$as_me:$LINENO: checking for $ac_header" >&5
     25973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
     25974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     25975  echo $ECHO_N "(cached) $ECHO_C" >&6
     25976fi
     25977ac_res=`eval echo '${'$as_ac_Header'}'`
     25978               { echo "$as_me:$LINENO: result: $ac_res" >&5
     25979echo "${ECHO_T}$ac_res" >&6; }
     25980else
     25981  # Is the header compilable?
     25982{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
     25983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
     25984cat >conftest.$ac_ext <<_ACEOF
     25985/* confdefs.h.  */
     25986_ACEOF
     25987cat confdefs.h >>conftest.$ac_ext
     25988cat >>conftest.$ac_ext <<_ACEOF
     25989/* end confdefs.h.  */
     25990$ac_includes_default
     25991#include <$ac_header>
     25992_ACEOF
     25993rm -f conftest.$ac_objext
     25994if { (ac_try="$ac_compile"
     25995case "(($ac_try" in
     25996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     25997  *) ac_try_echo=$ac_try;;
     25998esac
     25999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     26000  (eval "$ac_compile") 2>conftest.er1
     26001  ac_status=$?
     26002  grep -v '^ *+' conftest.er1 >conftest.err
     26003  rm -f conftest.er1
     26004  cat conftest.err >&5
     26005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     26006  (exit $ac_status); } &&
     26007         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
     26008  { (case "(($ac_try" in
     26009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     26010  *) ac_try_echo=$ac_try;;
     26011esac
     26012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     26013  (eval "$ac_try") 2>&5
     26014  ac_status=$?
     26015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     26016  (exit $ac_status); }; } &&
     26017         { ac_try='test -s conftest.$ac_objext'
     26018  { (case "(($ac_try" in
     26019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     26020  *) ac_try_echo=$ac_try;;
     26021esac
     26022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     26023  (eval "$ac_try") 2>&5
     26024  ac_status=$?
     26025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     26026  (exit $ac_status); }; }; then
     26027  ac_header_compiler=yes
     26028else
     26029  echo "$as_me: failed program was:" >&5
     26030sed 's/^/| /' conftest.$ac_ext >&5
     26031
     26032        ac_header_compiler=no
     26033fi
     26034
     26035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     26036{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     26037echo "${ECHO_T}$ac_header_compiler" >&6; }
     26038
     26039# Is the header present?
     26040{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
     26041echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
     26042cat >conftest.$ac_ext <<_ACEOF
     26043/* confdefs.h.  */
     26044_ACEOF
     26045cat confdefs.h >>conftest.$ac_ext
     26046cat >>conftest.$ac_ext <<_ACEOF
     26047/* end confdefs.h.  */
     26048#include <$ac_header>
     26049_ACEOF
     26050if { (ac_try="$ac_cpp conftest.$ac_ext"
     26051case "(($ac_try" in
     26052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     26053  *) ac_try_echo=$ac_try;;
     26054esac
     26055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     26056  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     26057  ac_status=$?
     26058  grep -v '^ *+' conftest.er1 >conftest.err
     26059  rm -f conftest.er1
     26060  cat conftest.err >&5
     26061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     26062  (exit $ac_status); } >/dev/null; then
     26063  if test -s conftest.err; then
     26064    ac_cpp_err=$ac_c_preproc_warn_flag
     26065    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     26066  else
     26067    ac_cpp_err=
     26068  fi
     26069else
     26070  ac_cpp_err=yes
     26071fi
     26072if test -z "$ac_cpp_err"; then
     26073  ac_header_preproc=yes
     26074else
     26075  echo "$as_me: failed program was:" >&5
     26076sed 's/^/| /' conftest.$ac_ext >&5
     26077
     26078  ac_header_preproc=no
     26079fi
     26080
     26081rm -f conftest.err conftest.$ac_ext
     26082{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     26083echo "${ECHO_T}$ac_header_preproc" >&6; }
     26084
     26085# So?  What about this header?
     26086case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     26087  yes:no: )
     26088    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     26089echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     26090    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     26091echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     26092    ac_header_preproc=yes
     26093    ;;
     26094  no:yes:* )
     26095    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     26096echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     26097    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     26098echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     26099    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     26100echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     26101    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     26102echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     26103    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     26104echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     26105    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     26106echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     26107
     26108    ;;
     26109esac
     26110{ echo "$as_me:$LINENO: checking for $ac_header" >&5
     26111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
     26112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     26113  echo $ECHO_N "(cached) $ECHO_C" >&6
     26114else
     26115  eval "$as_ac_Header=\$ac_header_preproc"
     26116fi
     26117ac_res=`eval echo '${'$as_ac_Header'}'`
     26118               { echo "$as_me:$LINENO: result: $ac_res" >&5
     26119echo "${ECHO_T}$ac_res" >&6; }
     26120
     26121fi
     26122if test `eval echo '${'$as_ac_Header'}'` = yes; then
     26123  cat >>confdefs.h <<_ACEOF
     26124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     26125_ACEOF
     26126
     26127fi
     26128
     26129done
     26130
     26131
     26132
     26133
     26134
     26135
     26136
     26137for ac_header in sys/attributes.h attr/xattr.h sys/xattr.h sys/extattr.h sys/uio.h
    2597826138do
    2597926139as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    3431734477
    3431834478
    34319 
    34320 
    34321 
    34322 
    34323 
    34324 for ac_func in fstat strchr utime utimes getrlimit fsync memset strlcpy strlcat setpgid
     34479for ac_func in fstat strchr utime utimes chflags
     34480do
     34481as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     34482{ echo "$as_me:$LINENO: checking for $ac_func" >&5
     34483echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
     34484if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     34485  echo $ECHO_N "(cached) $ECHO_C" >&6
     34486else
     34487  cat >conftest.$ac_ext <<_ACEOF
     34488/* confdefs.h.  */
     34489_ACEOF
     34490cat confdefs.h >>conftest.$ac_ext
     34491cat >>conftest.$ac_ext <<_ACEOF
     34492/* end confdefs.h.  */
     34493/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     34494   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     34495#define $ac_func innocuous_$ac_func
     34496
     34497/* System header to define __stub macros and hopefully few prototypes,
     34498    which can conflict with char $ac_func (); below.
     34499    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     34500    <limits.h> exists even on freestanding compilers.  */
     34501
     34502#ifdef __STDC__
     34503# include <limits.h>
     34504#else
     34505# include <assert.h>
     34506#endif
     34507
     34508#undef $ac_func
     34509
     34510/* Override any GCC internal prototype to avoid an error.
     34511   Use char because int might match the return type of a GCC
     34512   builtin and then its argument prototype would still apply.  */
     34513#ifdef __cplusplus
     34514extern "C"
     34515#endif
     34516char $ac_func ();
     34517/* The GNU C library defines this for functions which it implements
     34518    to always fail with ENOSYS.  Some functions are actually named
     34519    something starting with __ and the normal name is an alias.  */
     34520#if defined __stub_$ac_func || defined __stub___$ac_func
     34521choke me
     34522#endif
     34523
     34524int
     34525main ()
     34526{
     34527return $ac_func ();
     34528  ;
     34529  return 0;
     34530}
     34531_ACEOF
     34532rm -f conftest.$ac_objext conftest$ac_exeext
     34533if { (ac_try="$ac_link"
     34534case "(($ac_try" in
     34535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     34536  *) ac_try_echo=$ac_try;;
     34537esac
     34538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     34539  (eval "$ac_link") 2>conftest.er1
     34540  ac_status=$?
     34541  grep -v '^ *+' conftest.er1 >conftest.err
     34542  rm -f conftest.er1
     34543  cat conftest.err >&5
     34544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     34545  (exit $ac_status); } &&
     34546         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
     34547  { (case "(($ac_try" in
     34548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     34549  *) ac_try_echo=$ac_try;;
     34550esac
     34551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     34552  (eval "$ac_try") 2>&5
     34553  ac_status=$?
     34554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     34555  (exit $ac_status); }; } &&
     34556         { ac_try='test -s conftest$ac_exeext'
     34557  { (case "(($ac_try" in
     34558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     34559  *) ac_try_echo=$ac_try;;
     34560esac
     34561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     34562  (eval "$ac_try") 2>&5
     34563  ac_status=$?
     34564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     34565  (exit $ac_status); }; }; then
     34566  eval "$as_ac_var=yes"
     34567else
     34568  echo "$as_me: failed program was:" >&5
     34569sed 's/^/| /' conftest.$ac_ext >&5
     34570
     34571        eval "$as_ac_var=no"
     34572fi
     34573
     34574rm -f core conftest.err conftest.$ac_objext \
     34575      conftest$ac_exeext conftest.$ac_ext
     34576fi
     34577ac_res=`eval echo '${'$as_ac_var'}'`
     34578               { echo "$as_me:$LINENO: result: $ac_res" >&5
     34579echo "${ECHO_T}$ac_res" >&6; }
     34580if test `eval echo '${'$as_ac_var'}'` = yes; then
     34581  cat >>confdefs.h <<_ACEOF
     34582#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     34583_ACEOF
     34584
     34585fi
     34586done
     34587
     34588
     34589
     34590
     34591
     34592
     34593
     34594for ac_func in getrlimit fsync memset strlcpy strlcat setpgid
    3432534595do
    3432634596as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     
    4503045300
    4503145301                        # Use special PIC flags for the native HP-UX compiler.
    45032                         if test $ac_cv_prog_cc_Ae = yes; then
    4503345302                                BLDSHARED="true"
    4503445303                                SHLD="cc"
     
    4503645305                                SONAMEFLAG="-Wl,+h "
    4503745306                                PICFLAG="+z"
    45038                         elif test "${GCC}" = "yes"; then
     45307                        if test "${GCC}" = "yes"; then
    4503945308                                PICFLAG="-fPIC"
     45309                        else
     45310                                PICFLAG="+z"
    4504045311                        fi
    4504145312                        if test "$host_cpu" = "ia64"; then
     
    5491455185
    5491555186  ##################################################################
    54916   # HP/UX does not have ber_tag_t, disable LDAP there
    54917   { echo "$as_me:$LINENO: checking for ber_tag_t" >&5
     55187  # HP/UX does not have ber_tag_t in lber.h - it must be configured as
     55188  # unsigned int in include/includes.h
     55189  case $host_os in
     55190        *hpux*)
     55191         { echo "$as_me:$LINENO: WARNING: ber_tag_t is needed for LDAP support" >&5
     55192echo "$as_me: WARNING: ber_tag_t is needed for LDAP support" >&2;}
     55193         { echo "$as_me:$LINENO: WARNING: ber_tag_t must be configured in includes.h for hpux" >&5
     55194echo "$as_me: WARNING: ber_tag_t must be configured in includes.h for hpux" >&2;}
     55195        with_ldap_support=yes
     55196        ;;
     55197        *)
     55198        { echo "$as_me:$LINENO: checking for ber_tag_t" >&5
    5491855199echo $ECHO_N "checking for ber_tag_t... $ECHO_C" >&6; }
    5491955200if test "${ac_cv_type_ber_tag_t+set}" = set; then
     
    5498755268echo "${ECHO_T}$ac_cv_type_ber_tag_t" >&6; }
    5498855269
    54989   if test x"$ac_cv_type_ber_tag_t" != x"yes"; then
    54990         if test x"$with_ldap_support" = x"yes"; then
    54991          { { echo "$as_me:$LINENO: error: ber_tag_t is needed for LDAP support" >&5
     55270        if test x"$ac_cv_type_ber_tag_t" != x"yes"; then
     55271                if test x"$with_ldap_support" = x"yes"; then
     55272                { { echo "$as_me:$LINENO: error: ber_tag_t is needed for LDAP support" >&5
    5499255273echo "$as_me: error: ber_tag_t is needed for LDAP support" >&2;}
    5499355274   { (exit 1); exit 1; }; }
    54994         else
    54995          { echo "$as_me:$LINENO: WARNING: ber_tag_t is needed for LDAP support" >&5
     55275                else
     55276                { echo "$as_me:$LINENO: WARNING: ber_tag_t is needed for LDAP support" >&5
    5499655277echo "$as_me: WARNING: ber_tag_t is needed for LDAP support" >&2;}
    54997         fi
    54998         with_ldap_support=no
    54999   fi
     55278                fi
     55279                with_ldap_support=no
     55280        fi
     55281        ;;
     55282  esac
    5500055283fi
    5500155284
     
    5561055893    # to build AD support.
    5561155894
     55895# HPUX only has ldap_init; ok, we take care of this in smbldap.c
     55896case "$host_os" in
     55897        *hpux*)
     55898
     55899
     55900
     55901    ac_check_func_ext_save_LIBS=$LIBS
     55902    LIBS="$LDAP_LIBS $LIBS"
     55903        { echo "$as_me:$LINENO: checking for ldap_init" >&5
     55904echo $ECHO_N "checking for ldap_init... $ECHO_C" >&6; }
     55905if test "${ac_cv_func_ext_ldap_init+set}" = set; then
     55906  echo $ECHO_N "(cached) $ECHO_C" >&6
     55907else
     55908  cat >conftest.$ac_ext <<_ACEOF
     55909/* confdefs.h.  */
     55910_ACEOF
     55911cat confdefs.h >>conftest.$ac_ext
     55912cat >>conftest.$ac_ext <<_ACEOF
     55913/* end confdefs.h.  */
     55914/* Define ldap_init to an innocuous variant, in case <limits.h> declares ldap_init.
     55915   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     55916#define ldap_init innocuous_ldap_init
     55917
     55918/* System header to define __stub macros and hopefully few prototypes,
     55919    which can conflict with char ldap_init (); below.
     55920    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     55921    <limits.h> exists even on freestanding compilers.  */
     55922
     55923#ifdef __STDC__
     55924# include <limits.h>
     55925#else
     55926# include <assert.h>
     55927#endif
     55928
     55929#undef ldap_init
     55930
     55931/* Override any GCC internal prototype to avoid an error.
     55932   Use char because int might match the return type of a GCC
     55933   builtin and then its argument prototype would still apply.  */
     55934#ifdef __cplusplus
     55935extern "C"
     55936#endif
     55937char ldap_init ();
     55938/* The GNU C library defines this for functions which it implements
     55939    to always fail with ENOSYS.  Some functions are actually named
     55940    something starting with __ and the normal name is an alias.  */
     55941#if defined __stub_ldap_init || defined __stub___ldap_init
     55942choke me
     55943#endif
     55944
     55945int
     55946main ()
     55947{
     55948return ldap_init ();
     55949  ;
     55950  return 0;
     55951}
     55952_ACEOF
     55953rm -f conftest.$ac_objext conftest$ac_exeext
     55954if { (ac_try="$ac_link"
     55955case "(($ac_try" in
     55956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     55957  *) ac_try_echo=$ac_try;;
     55958esac
     55959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     55960  (eval "$ac_link") 2>conftest.er1
     55961  ac_status=$?
     55962  grep -v '^ *+' conftest.er1 >conftest.err
     55963  rm -f conftest.er1
     55964  cat conftest.err >&5
     55965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     55966  (exit $ac_status); } &&
     55967         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
     55968  { (case "(($ac_try" in
     55969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     55970  *) ac_try_echo=$ac_try;;
     55971esac
     55972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     55973  (eval "$ac_try") 2>&5
     55974  ac_status=$?
     55975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     55976  (exit $ac_status); }; } &&
     55977         { ac_try='test -s conftest$ac_exeext'
     55978  { (case "(($ac_try" in
     55979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     55980  *) ac_try_echo=$ac_try;;
     55981esac
     55982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     55983  (eval "$ac_try") 2>&5
     55984  ac_status=$?
     55985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     55986  (exit $ac_status); }; }; then
     55987  ac_cv_func_ext_ldap_init=yes
     55988else
     55989  echo "$as_me: failed program was:" >&5
     55990sed 's/^/| /' conftest.$ac_ext >&5
     55991
     55992        ac_cv_func_ext_ldap_init=no
     55993fi
     55994
     55995rm -f core conftest.err conftest.$ac_objext \
     55996      conftest$ac_exeext conftest.$ac_ext
     55997fi
     55998{ echo "$as_me:$LINENO: result: $ac_cv_func_ext_ldap_init" >&5
     55999echo "${ECHO_T}$ac_cv_func_ext_ldap_init" >&6; }
     56000    LIBS=$ac_check_func_ext_save_LIBS
     56001    if test $ac_cv_func_ext_ldap_init = yes; then
     56002  cat >>confdefs.h <<_ACEOF
     56003#define HAVE_LDAP_INIT 1
     56004_ACEOF
     56005
     56006fi
     56007
     56008
     56009    if test x"$ac_cv_func_ext_ldap_init" != x"yes"; then
     56010        if test x"$with_ads_support" = x"yes"; then
     56011            { { echo "$as_me:$LINENO: error: Active Directory support on HPUX requires ldap_init" >&5
     56012echo "$as_me: error: Active Directory support on HPUX requires ldap_init" >&2;}
     56013   { (exit 1); exit 1; }; }
     56014        elif test x"$with_ads_support" = x"auto"; then
     56015            { echo "$as_me:$LINENO: WARNING: Disabling Active Directory support (requires ldap_init on HPUX)" >&5
     56016echo "$as_me: WARNING: Disabling Active Directory support (requires ldap_init on HPUX)" >&2;}
     56017            with_ads_support=no
     56018        fi
     56019    fi
     56020    ;;
     56021        *)
    5561256022
    5561356023
     
    5573256142        fi
    5573356143    fi
     56144    ;;
     56145esac
     56146
    5573456147
    5573556148
     
    7162972042  { echo "$as_me:$LINENO: result: yes" >&5
    7163072043echo "${ECHO_T}yes" >&6; }
     72044
     72045fi
     72046
     72047
     72048############################################
     72049# See if we have the Linux readahead syscall.
     72050
     72051{ echo "$as_me:$LINENO: checking for Linux readahead" >&5
     72052echo $ECHO_N "checking for Linux readahead... $ECHO_C" >&6; }
     72053if test "${samba_cv_HAVE_LINUX_READAHEAD+set}" = set; then
     72054  echo $ECHO_N "(cached) $ECHO_C" >&6
     72055else
     72056
     72057    cat >conftest.$ac_ext <<_ACEOF
     72058/* confdefs.h.  */
     72059_ACEOF
     72060cat confdefs.h >>conftest.$ac_ext
     72061cat >>conftest.$ac_ext <<_ACEOF
     72062/* end confdefs.h.  */
     72063
     72064#if defined(HAVE_UNISTD_H)
     72065#include <unistd.h>
     72066#endif
     72067#include <fcntl.h>
     72068int
     72069main ()
     72070{
     72071ssize_t err = readahead(0,0,0x80000);
     72072  ;
     72073  return 0;
     72074}
     72075_ACEOF
     72076rm -f conftest.$ac_objext conftest$ac_exeext
     72077if { (ac_try="$ac_link"
     72078case "(($ac_try" in
     72079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     72080  *) ac_try_echo=$ac_try;;
     72081esac
     72082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     72083  (eval "$ac_link") 2>conftest.er1
     72084  ac_status=$?
     72085  grep -v '^ *+' conftest.er1 >conftest.err
     72086  rm -f conftest.er1
     72087  cat conftest.err >&5
     72088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     72089  (exit $ac_status); } &&
     72090         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
     72091  { (case "(($ac_try" in
     72092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     72093  *) ac_try_echo=$ac_try;;
     72094esac
     72095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     72096  (eval "$ac_try") 2>&5
     72097  ac_status=$?
     72098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     72099  (exit $ac_status); }; } &&
     72100         { ac_try='test -s conftest$ac_exeext'
     72101  { (case "(($ac_try" in
     72102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     72103  *) ac_try_echo=$ac_try;;
     72104esac
     72105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     72106  (eval "$ac_try") 2>&5
     72107  ac_status=$?
     72108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     72109  (exit $ac_status); }; }; then
     72110  samba_cv_HAVE_LINUX_READAHEAD=yes
     72111else
     72112  echo "$as_me: failed program was:" >&5
     72113sed 's/^/| /' conftest.$ac_ext >&5
     72114
     72115        samba_cv_HAVE_LINUX_READAHEAD=no
     72116fi
     72117
     72118rm -f core conftest.err conftest.$ac_objext \
     72119      conftest$ac_exeext conftest.$ac_ext
     72120fi
     72121{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_LINUX_READAHEAD" >&5
     72122echo "${ECHO_T}$samba_cv_HAVE_LINUX_READAHEAD" >&6; }
     72123
     72124if test x"$samba_cv_HAVE_LINUX_READAHEAD" = x"yes"; then
     72125
     72126cat >>confdefs.h <<\_ACEOF
     72127#define HAVE_LINUX_READAHEAD 1
     72128_ACEOF
     72129
     72130fi
     72131
     72132############################################
     72133# See if we have the posix_fadvise syscall.
     72134
     72135{ echo "$as_me:$LINENO: checking for posix_fadvise" >&5
     72136echo $ECHO_N "checking for posix_fadvise... $ECHO_C" >&6; }
     72137if test "${samba_cv_HAVE_POSIX_FADVISE+set}" = set; then
     72138  echo $ECHO_N "(cached) $ECHO_C" >&6
     72139else
     72140
     72141    cat >conftest.$ac_ext <<_ACEOF
     72142/* confdefs.h.  */
     72143_ACEOF
     72144cat confdefs.h >>conftest.$ac_ext
     72145cat >>conftest.$ac_ext <<_ACEOF
     72146/* end confdefs.h.  */
     72147
     72148#if defined(HAVE_UNISTD_H)
     72149#include <unistd.h>
     72150#endif
     72151#include <fcntl.h>
     72152int
     72153main ()
     72154{
     72155ssize_t err = posix_fadvise(0,0,0x80000,POSIX_FADV_WILLNEED);
     72156  ;
     72157  return 0;
     72158}
     72159_ACEOF
     72160rm -f conftest.$ac_objext conftest$ac_exeext
     72161if { (ac_try="$ac_link"
     72162case "(($ac_try" in
     72163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     72164  *) ac_try_echo=$ac_try;;
     72165esac
     72166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     72167  (eval "$ac_link") 2>conftest.er1
     72168  ac_status=$?
     72169  grep -v '^ *+' conftest.er1 >conftest.err
     72170  rm -f conftest.er1
     72171  cat conftest.err >&5
     72172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     72173  (exit $ac_status); } &&
     72174         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
     72175  { (case "(($ac_try" in
     72176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     72177  *) ac_try_echo=$ac_try;;
     72178esac
     72179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     72180  (eval "$ac_try") 2>&5
     72181  ac_status=$?
     72182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     72183  (exit $ac_status); }; } &&
     72184         { ac_try='test -s conftest$ac_exeext'
     72185  { (case "(($ac_try" in
     72186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     72187  *) ac_try_echo=$ac_try;;
     72188esac
     72189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     72190  (eval "$ac_try") 2>&5
     72191  ac_status=$?
     72192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     72193  (exit $ac_status); }; }; then
     72194  samba_cv_HAVE_POSIX_FADVISE=yes
     72195else
     72196  echo "$as_me: failed program was:" >&5
     72197sed 's/^/| /' conftest.$ac_ext >&5
     72198
     72199        samba_cv_HAVE_POSIX_FADVISE=no
     72200fi
     72201
     72202rm -f core conftest.err conftest.$ac_objext \
     72203      conftest$ac_exeext conftest.$ac_ext
     72204fi
     72205{ echo "$as_me:$LINENO: result: $samba_cv_HAVE_POSIX_FADVISE" >&5
     72206echo "${ECHO_T}$samba_cv_HAVE_POSIX_FADVISE" >&6; }
     72207
     72208if test x"$samba_cv_HAVE_POSIX_FADVISE" = x"yes"; then
     72209
     72210cat >>confdefs.h <<\_ACEOF
     72211#define HAVE_POSIX_FADVISE 1
     72212_ACEOF
    7163172213
    7163272214fi
     
    7177172353        EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/wbinfo\$(EXEEXT)"
    7177272354        EXTRA_SBIN_PROGS="$EXTRA_SBIN_PROGS bin/winbindd\$(EXEEXT)"
    71773         if test $BLDSHARED = true; then
    71774                 SHLIB_PROGS="$SHLIB_PROGS $WINBIND_NSS $WINBIND_WINS_NSS"
    71775 
    71776                 if test x"$create_pam_modules" = x"yes"; then
    71777                         PAM_MODULES="$PAM_MODULES pam_winbind"
    71778                         INSTALL_PAM_MODULES="installpammodules"
    71779                         UNINSTALL_PAM_MODULES="uninstallpammodules"
    71780                 fi
     72355        if test $BLDSHARED = true -a x"$create_pam_modules" = x"yes"; then
     72356                PAM_MODULES="$PAM_MODULES pam_winbind"
     72357                INSTALL_PAM_MODULES="installpammodules"
     72358                UNINSTALL_PAM_MODULES="uninstallpammodules"
    7178172359        fi
    7178272360else
     
    7515975737        else
    7516075738            string_ignored_modules="$string_ignored_modules vfs_gpfs"
     75739                { echo "$as_me:$LINENO: result: not" >&5
     75740echo "${ECHO_T}not" >&6; }
     75741        fi
     75742
     75743
     75744        { echo "$as_me:$LINENO: checking how to build vfs_readahead" >&5
     75745echo $ECHO_N "checking how to build vfs_readahead... $ECHO_C" >&6; }
     75746        if test "$MODULE_vfs_readahead"; then
     75747                DEST=$MODULE_vfs_readahead
     75748        elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_readahead"; then
     75749                DEST=$MODULE_vfs
     75750        else
     75751                DEST=$MODULE_DEFAULT_vfs_readahead
     75752        fi
     75753
     75754        if test x"$DEST" = xSHARED; then
     75755
     75756cat >>confdefs.h <<\_ACEOF
     75757#define vfs_readahead_init init_module
     75758_ACEOF
     75759
     75760                VFS_MODULES="$VFS_MODULES "bin/readahead.$SHLIBEXT""
     75761                { echo "$as_me:$LINENO: result: shared" >&5
     75762echo "${ECHO_T}shared" >&6; }
     75763
     75764                string_shared_modules="$string_shared_modules vfs_readahead"
     75765        elif test x"$DEST" = xSTATIC; then
     75766                init_static_modules_vfs="$init_static_modules_vfs  vfs_readahead_init();"
     75767                decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_readahead_init(void);"
     75768                string_static_modules="$string_static_modules vfs_readahead"
     75769                VFS_STATIC="$VFS_STATIC \$(VFS_READAHEAD_OBJ)"
     75770
     75771
     75772                { echo "$as_me:$LINENO: result: static" >&5
     75773echo "${ECHO_T}static" >&6; }
     75774        else
     75775            string_ignored_modules="$string_ignored_modules vfs_readahead"
    7516175776                { echo "$as_me:$LINENO: result: not" >&5
    7516275777echo "${ECHO_T}not" >&6; }
     
    7640177016UUID_LIBS!$UUID_LIBS$ac_delim
    7640277017LDAP_LIBS!$LDAP_LIBS$ac_delim
    76403 SHLIB_PROGS!$SHLIB_PROGS$ac_delim
     77018PAM_MODULES!$PAM_MODULES$ac_delim
    7640477019_ACEOF
    7640577020
     
    7644377058for ac_last_try in false false false false false :; do
    7644477059  cat >conf$$subs.sed <<_ACEOF
    76445 PAM_MODULES!$PAM_MODULES$ac_delim
    7644677060INSTALL_PAM_MODULES!$INSTALL_PAM_MODULES$ac_delim
    7644777061UNINSTALL_PAM_MODULES!$UNINSTALL_PAM_MODULES$ac_delim
     
    7652577139_ACEOF
    7652677140
    76527   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
     77141  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
    7652877142    break
    7652977143  elif $ac_last_try; then
Note: See TracChangeset for help on using the changeset viewer.