Skip to content

Commit

Permalink
Merge pull request #267 from mstone2001/devel
Browse files Browse the repository at this point in the history
Support OpenIndiana
  • Loading branch information
matt335672 authored Oct 16, 2023
2 parents aafceeb + 4a54633 commit 7b19510
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,41 @@ AC_SUBST([package_version_patchlevel], [${package_version_patchlevel}])
AC_CONFIG_HEADERS(config_ac.h:config_ac-h.in)
AM_INIT_AUTOMAKE([1.11 foreign parallel-tests])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_PROG_CC
AC_PROG_CC_C99
AC_C_CONST
AC_PROG_LIBTOOL

case $host_os in
*linux*)
linux=yes
;;
*kfreebsd*)
linux=yes # only used in instfiles/ so that’s ok for us for now
;;
*freebsd*)
freebsd=yes
;;
*netbsd*)
netbsd=yes
;;
*openbsd*)
openbsd=yes
;;
*darwin*)
macos=yes
;;
*solaris*)
solaris=yes
;;
esac

AM_CONDITIONAL(LINUX, [test "x$linux" = xyes])
AM_CONDITIONAL(FREEBSD, [test "x$freebsd" = xyes])
AM_CONDITIONAL(OPENBSD, [test "x$openbsd" = xyes])
AM_CONDITIONAL(NETBSD, [test "x$netbsd" = xyes])
AM_CONDITIONAL(MACOS, [test "x$macos" = xyes])
AM_CONDITIONAL(SOLARIS, [test "x$solaris" = xyes])

AC_CONFIG_MACRO_DIR([m4])
AX_CFLAGS_WARN_ALL
AX_APPEND_COMPILE_FLAGS([-Wwrite-strings])
Expand All @@ -30,6 +61,11 @@ if test "x${enable_glamor}" = "xyes"; then
PKG_CHECK_MODULES([XORG_SERVER_EGL], [egl >= 0], [], [AC_MSG_ERROR([please install libegl1-mesa-dev or mesa-libEGL-devel])])
fi

if test x$solaris = xyes; then
CFLAGS="${CFLAGS} -D_XOPEN_SOURCE=600"
AC_SUBST(CFLAGS)
fi

if test "x$XRDP_CFLAGS" = "x"; then
PKG_CHECK_MODULES([XRDP], [xrdp >= 0.9.80])
XRDP_CFLAGS=`pkg-config xrdp --cflags`
Expand Down

0 comments on commit 7b19510

Please sign in to comment.