diff options
author | Julien Cristau <jcristau@debian.org> | 2008-10-28 18:56:05 +0100 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2008-10-28 11:49:27 -0700 |
commit | 60bc50398a1be99af2c37cd570b3b4b2e27bb44f (patch) | |
tree | ed03d81a0ece2796e87e200a31e373e00b15745d | |
parent | ba3e41621c16ba7371204280bea8a38782037524 (diff) |
configure.ac: Add support for gnu/kfreebsd
Check for *-gnu instead of linux* to set DEFINES.
Change some freebsd* checks to *freebsd*.
(cherry picked from commit 98fcdf3f49aea14b4dd4f4b83c956f8a117020c9)
-rw-r--r-- | configure.ac | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 5eb25eabe3..cef21f9f5d 100644 --- a/configure.ac +++ b/configure.ac @@ -82,7 +82,7 @@ dnl Compiler macros DEFINES="" AC_SUBST([DEFINES]) case "$host_os" in -linux*) +*-gnu) if test "x$GCC" = xyes; then DEFINES="$DEFINES -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE" fi @@ -270,14 +270,14 @@ if test "x$enable_asm" = xyes; then case "$host_cpu" in i?86) case "$host_os" in - linux* | freebsd* | dragonfly*) + linux* | *freebsd* | dragonfly*) test "x$enable_64bit" = xyes && asm_arch=x86_64 || asm_arch=x86 ;; esac ;; x86_64) case "$host_os" in - linux* | freebsd* | dragonfly*) + linux* | *freebsd* | dragonfly*) test "x$enable_32bit" = xyes && asm_arch=x86 || asm_arch=x86_64 ;; esac @@ -367,7 +367,7 @@ linux*) i*86|x86_64|powerpc*) default_driver="dri";; esac ;; -freebsd* | dragonfly*) +*freebsd* | dragonfly*) case "$host_cpu" in i*86|x86_64) default_driver="dri";; esac |