~ubuntu-branches/ubuntu/raring/man-db/raring

« back to all changes in this revision

Viewing changes to gnulib/m4/threadlib.m4

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-06-18 22:56:56 UTC
  • mfrom: (1.2.11)
  • Revision ID: package-import@ubuntu.com-20120618225656-6ecxcastua6vmgxs
Tags: 2.6.2-1
* New upstream release:
  - Optimise apropos when given many arguments (LP: #927028).
  - apropos prints an error message and returns non-zero when it finds no
    matches (closes: #672661).
  - Avoid fatal errors when opening a 64-bit GDBM database from a 32-bit
    process (LP: #1001189).
* Configure with --with-xz=xz --with-lzip=lzip.
* Adjust debian/watch to track .tar.xz releases.
* Convert debian/copyright to copyright-format 1.0.
* Override hardening-no-fortify-functions Lintian warning for
  /usr/bin/manpath, as a false positive.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# threadlib.m4 serial 8 (gettext-0.18.2)
2
 
dnl Copyright (C) 2005-2011 Free Software Foundation, Inc.
 
1
# threadlib.m4 serial 9 (gettext-0.18.2)
 
2
dnl Copyright (C) 2005-2012 Free Software Foundation, Inc.
3
3
dnl This file is free software; the Free Software Foundation
4
4
dnl gives unlimited permission to copy and/or distribute it,
5
5
dnl with or without modifications, as long as this notice is preserved.
15
15
dnl can change the choice through the options --enable-threads=choice or
16
16
dnl --disable-threads.
17
17
dnl Defines at most one of the macros USE_POSIX_THREADS, USE_SOLARIS_THREADS,
18
 
dnl USE_PTH_THREADS, USE_WIN32_THREADS
 
18
dnl USE_PTH_THREADS, USE_WINDOWS_THREADS
19
19
dnl Sets the variables LIBTHREAD and LTLIBTHREAD to the linker options for use
20
20
dnl in a Makefile (LIBTHREAD for use without libtool, LTLIBTHREAD for use with
21
21
dnl libtool).
53
53
    [m4_divert_text([DEFAULTS], [gl_use_threads_default=no])],
54
54
    [m4_divert_text([DEFAULTS], [gl_use_threads_default=])])
55
55
  AC_ARG_ENABLE([threads],
56
 
AC_HELP_STRING([--enable-threads={posix|solaris|pth|win32}], [specify multithreading API])m4_ifdef([gl_THREADLIB_DEFAULT_NO], [], [
 
56
AC_HELP_STRING([--enable-threads={posix|solaris|pth|windows}], [specify multithreading API])m4_ifdef([gl_THREADLIB_DEFAULT_NO], [], [
57
57
AC_HELP_STRING([--disable-threads], [build without multithread safety])]),
58
58
    [gl_use_threads=$enableval],
59
59
    [if test -n "$gl_use_threads_default"; then
276
276
      fi
277
277
    fi
278
278
    if test -z "$gl_have_pthread"; then
279
 
      if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
280
 
        if { case "$host_os" in
281
 
               mingw*) true;;
282
 
               *) false;;
283
 
             esac
284
 
           }; then
285
 
          gl_threads_api=win32
286
 
          AC_DEFINE([USE_WIN32_THREADS], [1],
287
 
            [Define if the Win32 multithreading API can be used.])
288
 
        fi
289
 
      fi
 
279
      case "$gl_use_threads" in
 
280
        yes | windows | win32) # The 'win32' is for backward compatibility.
 
281
          if { case "$host_os" in
 
282
                 mingw*) true;;
 
283
                 *) false;;
 
284
               esac
 
285
             }; then
 
286
            gl_threads_api=windows
 
287
            AC_DEFINE([USE_WINDOWS_THREADS], [1],
 
288
              [Define if the native Windows multithreading API can be used.])
 
289
          fi
 
290
          ;;
 
291
      esac
290
292
    fi
291
293
  fi
292
294
  AC_MSG_CHECKING([for multithread API to use])
358
360
dnl
359
361
dnl Any of the above  pth         -lpth                  0.0
360
362
dnl
361
 
dnl Mingw             win32                       N      OK
 
363
dnl Mingw             windows                     N      OK
362
364
dnl
363
365
dnl BeOS 5            --
364
366
dnl