~ubuntu-branches/ubuntu/vivid/samba/vivid

« back to all changes in this revision

Viewing changes to lib/replace/autoconf-2.60.m4

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-12-21 13:18:04 UTC
  • mfrom: (0.39.21 sid)
  • Revision ID: package-import@ubuntu.com-20111221131804-xtlr39wx6njehxxr
Tags: 2:3.6.1-3ubuntu1
* Merge from Debian testing.  Remaining changes:
  + debian/patches/VERSION.patch:
    - set SAMBA_VERSION_SUFFIX to Ubuntu.
  + debian/patches/error-trans.fix-276472:
    - Add the translation of Unix Error code -ENOTSUP to NT Error Code
    - NT_STATUS_NOT_SUPPORTED to prevent the Permission denied error.
  + debian/smb.conf:
    - add "(Samba, Ubuntu)" to server string.
    - comment out the default [homes] share, and add a comment about
      "valid users = %S" to show users how to restrict access to
      \\server\username to only username.
    - Set 'usershare allow guests', so that usershare admins are 
      allowed to create public shares in addition to authenticated
      ones.
    - add map to guest = Bad user, maps bad username to guest access.
  + debian/samba-common.config:
    - Do not change priority to high if dhclient3 is installed.
    - Use priority medium instead of high for the workgroup question.
  + debian/control:
    - Don't build against or suggest ctdb.
    - Add dependency on samba-common-bin to samba.
  + Add ufw integration:
    - Created debian/samba.ufw.profile
    - debian/rules, debian/samba.dirs, debian/samba.files: install
      profile
    - debian/control: have samba suggest ufw
  + Add apport hook:
    - Created debian/source_samba.py.
    - debian/rules, debian/samba.dirs, debian/samba-common-bin.files: install
  + Switch to upstart:
    - Add debian/samba.{nmbd,smbd}.upstart.
  + debian/samba.logrotate, debian/samba-common.dhcp, debian/samba.if-up:
    - Make them upstart compatible
  + debian/samba.postinst: 
    - Avoid scary pdbedit warnings on first import.
  + debian/samba-common.postinst: Add more informative error message for
    the case where smb.conf was manually deleted
  + debian/patches/fix-debuglevel-name-conflict.patch: don't use 'debug_level'
    as a global variable name in an NSS module 
  + Dropped:
    - debian/patches/error-trans.fix-276472
    - debian/patches/fix-debuglevel-name-conflict.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
181
181
# typically due to standards-conformance issues.
182
182
m4_ifndef([AC_USE_SYSTEM_EXTENSIONS],[
183
183
AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS],
184
 
[
185
 
  AC_BEFORE([$0], [AC_COMPILE_IFELSE])
186
 
  AC_BEFORE([$0], [AC_RUN_IFELSE])
 
184
[AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl
 
185
AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
187
186
 
188
 
  AC_REQUIRE([AC_GNU_SOURCE])
189
 
  AC_REQUIRE([AC_AIX])
190
 
  AC_REQUIRE([AC_MINIX])
 
187
  AC_CHECK_HEADER([minix/config.h], [MINIX=yes], [MINIX=])
 
188
  if test "$MINIX" = yes; then
 
189
    AC_DEFINE([_POSIX_SOURCE], [1],
 
190
      [Define to 1 if you need to in order for `stat' and other
 
191
       things to work.])
 
192
    AC_DEFINE([_POSIX_1_SOURCE], [2],
 
193
      [Define to 2 if the system does not provide POSIX.1 features
 
194
       except with this defined.])
 
195
    AC_DEFINE([_MINIX], [1],
 
196
      [Define to 1 if on MINIX.])
 
197
  fi
191
198
 
192
199
  AH_VERBATIM([__EXTENSIONS__],
193
 
[/* Enable extensions on Solaris.  */
 
200
[/* Enable extensions on AIX 3, Interix.  */
 
201
#ifndef _ALL_SOURCE
 
202
# undef _ALL_SOURCE
 
203
#endif
 
204
/* Enable GNU extensions on systems that have them.  */
 
205
#ifndef _GNU_SOURCE
 
206
# undef _GNU_SOURCE
 
207
#endif
 
208
/* Enable threading extensions on Solaris.  */
 
209
#ifndef _POSIX_PTHREAD_SEMANTICS
 
210
# undef _POSIX_PTHREAD_SEMANTICS
 
211
#endif
 
212
/* Enable extensions on HP NonStop.  */
 
213
#ifndef _TANDEM_SOURCE
 
214
# undef _TANDEM_SOURCE
 
215
#endif
 
216
/* Enable general extensions on Solaris.  */
194
217
#ifndef __EXTENSIONS__
195
218
# undef __EXTENSIONS__
196
219
#endif
197
 
#ifndef _POSIX_PTHREAD_SEMANTICS
198
 
# undef _POSIX_PTHREAD_SEMANTICS
199
 
#endif])
 
220
])
200
221
  AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__],
201
222
    [ac_cv_safe_to_define___extensions__],
202
223
    [AC_COMPILE_IFELSE(
203
 
       [AC_LANG_PROGRAM([
 
224
       [AC_LANG_PROGRAM([[
204
225
#         define __EXTENSIONS__ 1
205
 
          AC_INCLUDES_DEFAULT])],
 
226
          ]AC_INCLUDES_DEFAULT])],
206
227
       [ac_cv_safe_to_define___extensions__=yes],
207
228
       [ac_cv_safe_to_define___extensions__=no])])
208
229
  test $ac_cv_safe_to_define___extensions__ = yes &&
209
230
    AC_DEFINE([__EXTENSIONS__])
 
231
  AC_DEFINE([_ALL_SOURCE])
 
232
  AC_DEFINE([_GNU_SOURCE])
210
233
  AC_DEFINE([_POSIX_PTHREAD_SEMANTICS])
211
 
])
 
234
  AC_DEFINE([_TANDEM_SOURCE])
 
235
])# AC_USE_SYSTEM_EXTENSIONS
212
236
])