]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - config-scripts/cups-threads.m4
Add support for cross-compilation (Issue #4897)
[thirdparty/cups.git] / config-scripts / cups-threads.m4
index d4e3f01baded2a8fc41a78f739fac850264e6814..ae6044dedf30030a1f959e38ccdb95ad9134b7b6 100644 (file)
@@ -1,7 +1,7 @@
 dnl
 dnl Threading stuff for CUPS.
 dnl
-dnl Copyright 2007-2011 by Apple Inc.
+dnl Copyright 2007-2017 by Apple Inc.
 dnl Copyright 1997-2005 by Easy Software Products, all rights reserved.
 dnl
 dnl These coded instructions, statements, and computer programs are the
@@ -36,7 +36,7 @@ if test "x$enable_threads" != xno; then
 
                                # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
                                # be POSIX-compliant... :(
-                               if test $uname = SunOS; then
+                               if test $host_os_name = sunos; then
                                        PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
                                fi
                                break