* Add untested support to compile on GNU/HURD
This commit is contained in:
parent
4acf226db4
commit
186b5a0aef
|
@ -298,7 +298,7 @@ echo "ERROR: ${CC} cannot create executables" >&2 ;
|
|||
exit 1 ; fi
|
||||
printf "checking for dynamic library... "
|
||||
HAVE_LIB_DL=0
|
||||
for OS in linux syllable sunos darwin beos solaris gnu/kfreebsd ; do
|
||||
for OS in linux syllable sunos darwin beos solaris ; do
|
||||
if [ "${HOST_OS}" = "${OS}" ]; then
|
||||
HAVE_LIB_DL=1
|
||||
break;
|
||||
|
@ -365,6 +365,9 @@ if [ "$USEROSTYPE" = "auto" ]; then
|
|||
if [ "$HOST_OS" = "linux" ]; then
|
||||
USEROSTYPE="gnulinux"
|
||||
else
|
||||
if [ "$HOST_OS" = "gnu" ]; then
|
||||
USEROSTYPE="gnulinux"
|
||||
else
|
||||
if [ "$HOST_OS" = "gnu/kfreebsd" ]; then
|
||||
USEROSTYPE="gnulinux"
|
||||
else
|
||||
|
@ -378,7 +381,7 @@ if [ "$HOST_OS" = "openbsd" ]; then
|
|||
USEROSTYPE="gnulinux"
|
||||
else
|
||||
if [ "$HOST_OS" = "darwin" ]; then
|
||||
USEROSTYPE="darwin"; fi; fi; fi; fi; fi; fi; fi
|
||||
USEROSTYPE="darwin"; fi; fi; fi; fi; fi; fi; fi; fi
|
||||
SEDFLAGS=" -e '"
|
||||
COUNT=0
|
||||
for A in ${ENVWORDS} ; do
|
||||
|
|
|
@ -39,6 +39,9 @@ IFEQ USEROSTYPE auto ; {
|
|||
IFEQ HOST_OS linux ; {
|
||||
USEROSTYPE = gnulinux ;
|
||||
}{
|
||||
IFEQ HOST_OS gnu ; {
|
||||
USEROSTYPE = gnulinux ;
|
||||
}{
|
||||
IFEQ HOST_OS gnu/kfreebsd ; {
|
||||
USEROSTYPE = gnulinux ;
|
||||
}{
|
||||
|
@ -53,7 +56,7 @@ IFEQ USEROSTYPE auto ; {
|
|||
}{
|
||||
IFEQ HOST_OS darwin ; {
|
||||
USEROSTYPE = darwin ;
|
||||
} } } } } }
|
||||
} } } } } } }
|
||||
}
|
||||
|
||||
ARG_WITHOUT WITHPIC pic do not build libr as a program independent location ;
|
||||
|
|
|
@ -72,7 +72,7 @@ typedef void (*PrintfCallback)(const char *str, ...);
|
|||
#undef __UNIX__
|
||||
#undef __WINDOWS__
|
||||
|
||||
#if defined(__linux__) || defined(__APPLE__)
|
||||
#if defined(__linux__) || defined(__APPLE__) || defined(__GNU__)
|
||||
#define __BSD__ 0
|
||||
#define __UNIX__ 1
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue