Add support for FreeBSD. Contributed by: Tim Tretyak <timothy@umc.com.ua>

This commit is contained in:
Sander Vesik 2000-10-31 07:41:44 +00:00
parent 263c6fa224
commit fef17142bc

View file

@ -115,7 +115,7 @@ dnl ===================================================================
dnl checking the os
AC_MSG_CHECKING([the operating system])
_os=`uname`
if test "$_os" = "SunOS" -o "$_os" = "Linux" -o "$_os" = "WINNT" -o "$_os" = "Darwin"; then
if test "$_os" = "SunOS" -o "$_os" = "Linux" -o "$_os" = "FreeBSD" -o "$_os" = "WINNT" -o "$_os" = "Darwin"; then
AC_MSG_RESULT([checked ($_os)])
else
AC_MSG_ERROR([$_os operating system is not suitable to build OpenOffice!])
@ -152,7 +152,7 @@ fi
if test "$_os" != "WINNT"; then
AC_PROG_CC
fi
if test "$_os" = "Linux"; then
if test "$_os" = "Linux" -o "$_os" = "FreeBSD"; then
dnl ******************************************
dnl Testing for GNU compiler and version...
dnl ******************************************
@ -256,6 +256,9 @@ if test "$_os" = "Linux"; then
AC_MSG_WARN([found multiple 2.95.2/include directories, please rename so you have one distinct]) >> warn
_gcc_include_path="NO_GCC_INCLUDE"
fi
else
if test "$_os" = "FreeBSD"; then
_gcc_include_path="/usr/include/g++"
else
AC_MSG_WARN([could not find 2.95.2/include directory of the gcc compiler])
AC_MSG_WARN([could not find 2.95.2/include directory of the gcc compiler]) >> warn
@ -264,6 +267,7 @@ if test "$_os" = "Linux"; then
fi
fi
fi
fi
else
AC_MSG_WARN([no gcc compiler found])
AC_MSG_WARN([no gcc compiler found]) >> warn
@ -346,8 +350,8 @@ if test "$_os" != "WINNT"; then
AC_HEADER_STDC
fi
dnl Check if palm-appl.h is available on Linux
if test "$_os" = "Linux"; then
dnl Check if palm-appl.h is available on Linux or FreeBSD
if test "$_os" = "Linux" -o "$_os" = "FreeBSD"; then
AC_MSG_CHECKING([pam_appl.h])
if test -f "/usr/include/security/pam_appl.h"; then
AC_MSG_RESULT([yes])
@ -361,7 +365,7 @@ dnl Testing for c++ compiler and version...
dnl ***************************************
AC_PROG_CXX
if test "$_os" = "Linux"; then
if test "$_os" = "Linux" -o "$_os" = "FreeBSD"; then
dnl Check whether the gnu gcc compiler is used.
if test "$CC" = "gcc"; then
AC_MSG_CHECKING([g++ Compiler])
@ -525,6 +529,9 @@ if test "$JAVA"; then
if test "$_os" = "Linux" -a "$_machine_type" = "i686"; then
_jdk_middle=`echo $_jdk | $AWK -F. '{ if ($2 != 2) print "false"; else print "true" }'`
fi
if test "$_os" = "FreeBSD"; then
_jdk_middle=`echo $_jdk | $AWK -F. '{ if ($2 != 2) print "false"; else print "true" }'`
fi
if test "$_os" = "Linux" -a "$_machine_type" = "sparc"; then
_jdk_middle=`echo $_jdk | $AWK -F. '{ if ($2 != 2) print "false"; else print "true" }'`
fi
@ -541,6 +548,9 @@ if test "$JAVA"; then
if test "$_os" = "SunOS"; then
_jdk_minor=`echo $_jdk | $AWK -F. '{ if ($3 != 2) print "false"; else print "true" }'`
fi
if test "$_os" = "FreeBSD"; then
_jdk_minor=`echo $_jdk | $AWK -F. '{ if ($3 != 2) print "false"; else print "true" }'`
fi
if test "$_os" = "Linux"; then
if test "$_machine_type" = "i686"; then
_jdk_minor=`echo $_jdk | $AWK -F. '{ if ($3 != 2) print "false"; else print "true" }'`
@ -582,11 +592,11 @@ dnl ===================================================================
dnl Checks for programs.
dnl ===================================================================
dnl Check whether there's a C pre-processor.
if test "$_os" = "Linux"; then
if test "$_os" = "Linux" -o "$_os" = "FreeBSD"; then
AC_PROG_CPP
fi
dnl Check whether there's a C++ pre-processor.
if test "$_os" = "Linux"; then
if test "$_os" = "Linux" -o "$_os" = "FreeBSD"; then
AC_PROG_CXXCPP
fi
dnl Check for a BSD compatible install program.