--- configure.in.orig 2005-08-19 10:16:29.000000000 -0700 +++ configure.in 2005-08-21 09:17:08.015625000 -0700 @@ -20,7 +20,7 @@ # Directory handling stuff to support both the # legacy SAMBA directories and FHS compliant # ones... -AC_PREFIX_DEFAULT(/usr/local/samba) +AC_PREFIX_DEFAULT(x:/Programs/samba/samba) lockdir="\${VARDIR}/locks" piddir="\${VARDIR}/locks" @@ -460,6 +460,9 @@ dnl These are preferably build shared, and static if dlopen() is not available 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" +default_static_modules="pdb_smbpasswd pdb_tdbsam rpc_lsa rpc_samr rpc_reg rpc_lsa_ds rpc_wks rpc_net rpc_dfs rpc_srv rpc_spoolss auth_rhosts auth_sam auth_unix auth_winbind auth_server auth_domain auth_builtin vfs_recycle vfs_audit vfs_extd_audit vfs_netatalk vfs_fake_perms vfs_default_quota vfs_readonly vfs_cap charset_CP850 charset_CP437" +default_shared_modules="" + if test "x$developer" = xyes; then default_static_modules="$default_static_modules rpc_echo" default_shared_modules="$default_shared_modules charset_weird" @@ -929,7 +932,10 @@ #include #endif #include -#include ],[struct timespec ts;], +#ifdef HAVE_AIO_H +#include +#endif +],[struct timespec ts;], samba_cv_struct_timespec=yes,samba_cv_struct_timespec=no)]) if test x"$samba_cv_struct_timespec" = x"yes"; then AC_DEFINE(HAVE_STRUCT_TIMESPEC,1,[Whether we have struct timespec]) @@ -1483,6 +1489,14 @@ AC_DEFINE(STAT_ST_BLOCKSIZE,512) ;; + *cygwin*) AC_DEFINE(CYGWINOS,1,[Whether the host os is Cygwin]) + BLDSHARED="true" + LDSHFLAGS="-shared -Wl,--export-all-symbols" + SHLIBEXT="dll" + AC_DEFINE(STAT_ST_BLOCKSIZE,512) + dnl LDSHFLAGS="-shared -Wl,--export-all-symbols -Wl,--out-implib=libmydll.dll.a" + ;; + *) AC_DEFINE(STAT_ST_BLOCKSIZE,512) ;; --- tests/summary.c.orig 2005-02-25 09:59:30.000000000 -0800 +++ tests/summary.c 2005-08-22 09:00:29.546875000 -0700 @@ -2,10 +2,12 @@ main() { +#ifndef __CYGWIN__ #if !(defined(HAVE_FCNTL_LOCK) || defined(HAVE_STRUCT_FLOCK64)) printf("ERROR: No locking available. Running Samba would be unsafe\n"); exit(1); #endif +#endif #if !(defined(HAVE_IFACE_IFCONF) || defined(HAVE_IFACE_IFREQ) || defined(HAVE_IFACE_AIX)) printf("WARNING: No automated network interface determination\n");