mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-07 10:10:28 +01:00
configure.ac: Add support for gnu/kfreebsd
Check for *-gnu instead of linux* to set DEFINES. Change some freebsd* checks to *freebsd*.
This commit is contained in:
parent
bcfba0d91e
commit
98fcdf3f49
1 changed files with 4 additions and 4 deletions
|
|
@ -83,7 +83,7 @@ dnl Compiler macros
|
||||||
DEFINES=""
|
DEFINES=""
|
||||||
AC_SUBST([DEFINES])
|
AC_SUBST([DEFINES])
|
||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
linux*)
|
*-gnu)
|
||||||
if test "x$GCC" = xyes; then
|
if test "x$GCC" = xyes; then
|
||||||
DEFINES="$DEFINES -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE"
|
DEFINES="$DEFINES -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE"
|
||||||
fi
|
fi
|
||||||
|
|
@ -271,14 +271,14 @@ if test "x$enable_asm" = xyes; then
|
||||||
case "$host_cpu" in
|
case "$host_cpu" in
|
||||||
i?86)
|
i?86)
|
||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
linux* | freebsd* | dragonfly*)
|
linux* | *freebsd* | dragonfly*)
|
||||||
test "x$enable_64bit" = xyes && asm_arch=x86_64 || asm_arch=x86
|
test "x$enable_64bit" = xyes && asm_arch=x86_64 || asm_arch=x86
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
x86_64)
|
x86_64)
|
||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
linux* | freebsd* | dragonfly*)
|
linux* | *freebsd* | dragonfly*)
|
||||||
test "x$enable_32bit" = xyes && asm_arch=x86 || asm_arch=x86_64
|
test "x$enable_32bit" = xyes && asm_arch=x86 || asm_arch=x86_64
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
@ -368,7 +368,7 @@ linux*)
|
||||||
i*86|x86_64|powerpc*) default_driver="dri";;
|
i*86|x86_64|powerpc*) default_driver="dri";;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
freebsd* | dragonfly*)
|
*freebsd* | dragonfly*)
|
||||||
case "$host_cpu" in
|
case "$host_cpu" in
|
||||||
i*86|x86_64) default_driver="dri";;
|
i*86|x86_64) default_driver="dri";;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue