| 1 | dnl test whether dirent has a d_off member
|
|---|
| 2 | AC_DEFUN(AC_DIRENT_D_OFF,
|
|---|
| 3 | [AC_CACHE_CHECK([for d_off in dirent], ac_cv_dirent_d_off,
|
|---|
| 4 | [AC_TRY_COMPILE([
|
|---|
| 5 | #include <unistd.h>
|
|---|
| 6 | #include <sys/types.h>
|
|---|
| 7 | #include <dirent.h>], [struct dirent d; d.d_off;],
|
|---|
| 8 | ac_cv_dirent_d_off=yes, ac_cv_dirent_d_off=no)])
|
|---|
| 9 | if test $ac_cv_dirent_d_off = yes; then
|
|---|
| 10 | AC_DEFINE(HAVE_DIRENT_D_OFF,1,[Whether dirent has a d_off member])
|
|---|
| 11 | fi
|
|---|
| 12 | ])
|
|---|
| 13 |
|
|---|
| 14 | dnl Mark specified module as shared
|
|---|
| 15 | dnl SMB_MODULE(name,static_files,shared_files,subsystem,whatif-static,whatif-shared)
|
|---|
| 16 | AC_DEFUN(SMB_MODULE,
|
|---|
| 17 | [
|
|---|
| 18 | AC_MSG_CHECKING([how to build $1])
|
|---|
| 19 | if test "$[MODULE_][$1]"; then
|
|---|
| 20 | DEST=$[MODULE_][$1]
|
|---|
| 21 | elif test "$[MODULE_]translit([$4], [A-Z], [a-z])" -a "$[MODULE_DEFAULT_][$1]"; then
|
|---|
| 22 | DEST=$[MODULE_]translit([$4], [A-Z], [a-z])
|
|---|
| 23 | else
|
|---|
| 24 | DEST=$[MODULE_DEFAULT_][$1]
|
|---|
|
|---|