Merge two flag definition cases

This commit is contained in:
bgermann 2018-09-11 17:45:59 +02:00
parent 0aaee954d6
commit c77865b99c

View File

@ -401,7 +401,7 @@ AC_DEFUN([GB_INIT],
AC_DEFUN([GB_THREAD],
[
case "${host}" in
*-*-freebsd* | *-*-darwin* )
*-*-freebsd* | *-*-netbsd* | *-*-darwin* )
THREAD_LIB=""
THREAD_INC="-pthread -D_REENTRANT"
GBX_THREAD_LIB=""
@ -415,13 +415,6 @@ AC_DEFUN([GB_THREAD],
GBX_THREAD_INC=""
GBX_THREAD_LDFLAGS=""
;;
*-*-netbsd* )
THREAD_LIB=""
THREAD_INC="-pthread -D_REENTRANT"
GBX_THREAD_LIB=""
GBX_THREAD_INC="-pthread -D_REENTRANT"
GBX_THREAD_LDFLAGS=""
;;
*)
THREAD_LIB="-lpthread"
THREAD_INC="-D_REENTRANT"