fixing the build via the configure step
This commit is contained in:
parent
6989af0bc7
commit
cc08fd527e
|
@ -3332,6 +3332,7 @@ then
|
|||
linux*) MACHDEP="linux";;
|
||||
cygwin*) MACHDEP="cygwin";;
|
||||
darwin*) MACHDEP="darwin";;
|
||||
haiku*) MACHDEP="haiku";;
|
||||
'') MACHDEP="unknown";;
|
||||
esac
|
||||
fi
|
||||
|
@ -3455,6 +3456,17 @@ $as_echo "#define _BSD_SOURCE 1" >>confdefs.h
|
|||
define_xopen_source=no
|
||||
;;
|
||||
|
||||
Haiku/*|HAIKU*)
|
||||
# On Haiku, mainly to enable *pty functions and
|
||||
# also setting _SC_TTY_NAME_MAX to its Haiku counterpart.
|
||||
|
||||
$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
|
||||
|
||||
|
||||
$as_echo "#define _SC_TTY_NAME_MAX TTY_NAME_MAX" >>confdefs.h
|
||||
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
if test $define_xopen_source = yes
|
||||
|
|
10
configure.ac
10
configure.ac
|
@ -420,6 +420,7 @@ then
|
|||
linux*) MACHDEP="linux";;
|
||||
cygwin*) MACHDEP="cygwin";;
|
||||
darwin*) MACHDEP="darwin";;
|
||||
haiku*) MACHDEP="haiku";;
|
||||
'') MACHDEP="unknown";;
|
||||
esac
|
||||
fi
|
||||
|
@ -539,6 +540,13 @@ case $ac_sys_system/$ac_sys_release in
|
|||
define_xopen_source=no
|
||||
;;
|
||||
|
||||
Haiku/*|HAIKU*)
|
||||
# On Haiku, mainly to enable *pty functions and
|
||||
# also setting _SC_TTY_NAME_MAX to its Haiku counterpart.
|
||||
AC_DEFINE(_BSD_SOURCE, 1, [Define on Haiku to activate all library features])
|
||||
AC_DEFINE(_SC_TTY_NAME_MAX, TTY_NAME_MAX, [Define sysconf value equivalence])
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
if test $define_xopen_source = yes
|
||||
|
@ -5438,7 +5446,7 @@ do
|
|||
done
|
||||
|
||||
AC_SUBST(SRCDIRS)
|
||||
SRCDIRS="Parser Objects Python Modules Modules/_io Programs"
|
||||
SRCDIRS="Parser Parser/pegen Objects Python Modules Modules/_io Programs"
|
||||
AC_MSG_CHECKING(for build directories)
|
||||
for dir in $SRCDIRS; do
|
||||
if test ! -d $dir; then
|
||||
|
|
Loading…
Reference in New Issue