You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

257 lines
8.3 KiB

  1. dnl
  2. dnl This file was autogenerated from "configure.ac.in".
  3. dnl Edit that file instead!
  4. dnl
  5. dnl
  6. dnl Copyright (c) 2003-2014
  7. dnl The Xfce development team. All rights reserved.
  8. dnl
  9. dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>.
  10. dnl
  11. dnl Version information
  12. m4_define([xfsm_version_major], [4])
  13. m4_define([xfsm_version_minor], [12])
  14. m4_define([xfsm_version_micro], [1])
  15. m4_define([xfsm_version_nano], []) dnl leave this empty to have no nano version
  16. m4_define([xfsm_version_build], [bf78012])
  17. m4_define([xfsm_version_tag], [])
  18. m4_define([xfsm_version], [xfsm_version_major().xfsm_version_minor().xfsm_version_micro()ifelse(xfsm_version_nano(), [], [], [.xfsm_version_nano()])ifelse(xfsm_version_tag(), [git], [xfsm_version_tag()-xfsm_version_build()], [xfsm_version_tag()])])
  19. m4_define([xfsm_debug_default], [ifelse(xfsm_version_tag(), [git], [full], [minimum])])
  20. m4_define([intltool_minimum_version], [0.31])
  21. dnl Initialize autoconf
  22. AC_COPYRIGHT([Copyright (c) 2003-2014
  23. The Xfce development team. All rights reserved.
  24. Written for Xfce by Benedikt Meurer <benny@xfce.org>.])
  25. AC_INIT([xfce4-session], [xfsm_version], [http://bugs.xfce.org/])
  26. AC_PREREQ([2.60])
  27. AC_REVISION([$Id$])
  28. AC_PROG_MAKE_SET()
  29. dnl Initialize automake
  30. AM_INIT_AUTOMAKE([1.8 dist-bzip2 tar-ustar no-dist-gzip])
  31. AC_CONFIG_HEADERS([config.h])
  32. AM_MAINTAINER_MODE()
  33. m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
  34. dnl Set helper path prefix
  35. AC_ARG_WITH([helper-path-prefix],
  36. [AC_HELP_STRING([--with-helper-path-prefix=PATH],
  37. [Path prefix under which helper executables will be installed (default: $libdir)])],
  38. [HELPER_PATH_PREFIX="$withval"],
  39. [HELPER_PATH_PREFIX="$libdir"])
  40. AC_SUBST([HELPER_PATH_PREFIX])
  41. dnl check for UNIX variants
  42. AC_USE_SYSTEM_EXTENSIONS
  43. AM_CONDITIONAL([HAVE_OS_CYGWIN], [test x"`uname | grep \"CYGWIN\"`" != x""])
  44. if test x"`uname | grep \"CYGWIN\"`" != x""; then
  45. AC_DEFINE([HAVE_OS_CYGWIN], [1], [Compiling under cygwin])
  46. fi
  47. dnl check for basic programs
  48. AC_PROG_AWK
  49. AC_PROG_CC
  50. AC_PROG_INSTALL
  51. AC_PROG_LN_S
  52. AC_PROG_MAKE_SET
  53. AC_PROG_MKDIR_P
  54. IT_PROG_INTLTOOL([intltool_minimum_version], [no-xml])
  55. m4_ifdef([AC_PROG_SED], [AC_PROG_SED], [AC_CHECK_PROG(SED, sed, sed)])
  56. dnl check for libtool
  57. LT_PREREQ([2.2.6])
  58. LT_INIT([disable-static])
  59. dnl check for standard header files
  60. AC_HEADER_STDC
  61. AC_CHECK_HEADERS([asm/unistd.h errno.h fcntl.h limits.h \
  62. netdb.h pwd.h signal.h stdarg.h sys/param.h sys/resource.h \
  63. sys/socket.h sys/time.h sys/wait.h sys/utsname.h time.h \
  64. unistd.h sys/param.h sys/user.h sys/sysctl.h math.h sys/types.h])
  65. AC_CHECK_FUNCS([getaddrinfo gethostbyname gethostname getpwuid setsid \
  66. sigaction strdup sync vfork])
  67. # Checks for typedefs, structures, and compiler characteristics.
  68. AC_C_INLINE
  69. AC_TYPE_MODE_T
  70. AC_TYPE_PID_T
  71. AC_TYPE_SIZE_T
  72. # Checks for library functions.
  73. AC_FUNC_MALLOC
  74. dnl Check for required libraries
  75. AC_CHECK_LIBM
  76. AC_SUBST(LIBM)
  77. dnl Check for X11 installed
  78. XDT_CHECK_LIBX11_REQUIRE()
  79. dnl Check for session management support
  80. XDT_CHECK_LIBSM()
  81. dnl Check for _IceTransNoListen
  82. ac_LIBS="$LIBS"
  83. LIBS="$LIBS $LIBSM_LDFLAGS $LIBSM_LIBS"
  84. AC_CHECK_FUNCS([_IceTransNoListen])
  85. LIBS="$ac_LIBS"
  86. dnl Check for i18n support
  87. XDT_I18N([am ar ast be bg bn ca cs da de el en_AU en_GB eo es et eu fi fr gl he hr hu id is it ja kk ko lt lv ms nb nl nn oc pa pl pt_BR pt ro ru si sk sl sq sr sv te th tr ug uk ur_PK ur vi zh_CN zh_HK zh_TW ])
  88. dnl Check for required packages
  89. XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.9.0])
  90. XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-1], [4.12.1])
  91. XDT_CHECK_PACKAGE([GTK], [gtk+-2.0], [2.20.0])
  92. XDT_CHECK_PACKAGE([GMODULE], [gmodule-2.0], [2.24.0])
  93. XDT_CHECK_PACKAGE([LIBWNCK], [libwnck-1.0], [2.30])
  94. XDT_CHECK_PACKAGE([DBUS], [dbus-1], [1.1.0])
  95. XDT_CHECK_PACKAGE([DBUS_GLIB], [dbus-glib-1], [0.84])
  96. XDT_CHECK_PACKAGE([XFCONF], [libxfconf-0], [4.9.0])
  97. dnl Check for Polkit/PolicyKit
  98. XDT_CHECK_OPTIONAL_PACKAGE([POLKIT], [polkit-gobject-1], [0.102],
  99. [polkit], [Polkit support])
  100. dnl Check for Upower
  101. XDT_CHECK_OPTIONAL_PACKAGE([UPOWER],[upower-glib], [0.9.7],
  102. [upower],[Upower support])
  103. dnl Check for debugging support
  104. XDT_FEATURE_DEBUG([xfsm_debug_default])
  105. dnl Check for linker optimizations
  106. XDT_FEATURE_LINKER_OPTS()
  107. dnl Check for iceauth
  108. AC_PATH_PROG([ICEAUTH], [iceauth])
  109. if test x"$ICEAUTH" != x""; then
  110. AC_DEFINE_UNQUOTED([ICEAUTH_CMD], ["$ICEAUTH"], [path to iceauth])
  111. else
  112. AC_MSG_ERROR([iceauth missing, please check your X11 installation])
  113. fi
  114. dnl Find a location for the session desktop file
  115. AC_MSG_CHECKING([what xsession-prefix to use])
  116. AC_ARG_WITH([xsession-prefix],
  117. AC_HELP_STRING([--with-xsession-prefix=XSESSION_PREFIX], [What should be the prefix for the xsession .desktop file?]),
  118. [], [with_xsession_prefix="/usr"])
  119. XSESSION_PREFIX=$with_xsession_prefix
  120. AC_SUBST([XSESSION_PREFIX])
  121. AC_MSG_RESULT([$with_xsession_prefix])
  122. dnl Check for rm
  123. AC_PATH_PROG([RM], [rm])
  124. if test x"$RM" != x""; then
  125. AC_DEFINE_UNQUOTED([RM_CMD], ["$RM"], [path to rm])
  126. fi
  127. dnl Check for legacy session management
  128. AC_ARG_ENABLE([legacy-sm],
  129. AC_HELP_STRING([--enable-legacy-sm], [Enable X11R5 session management])
  130. AC_HELP_STRING([--disable-legacy-sm], [Disable X11R5 session management]),
  131. [], [enable_legacy_sm=yes])
  132. AC_MSG_CHECKING([whether to enable X11R5 session management])
  133. if test x"$enable_legacy_sm" != x"yes"; then
  134. AC_MSG_RESULT([no])
  135. else
  136. AC_DEFINE([LEGACY_SESSION_MANAGEMENT], [1], [Define for X11R5 sm compat])
  137. AC_MSG_RESULT([yes])
  138. fi
  139. dnl check for linux/ioprio.h, and also check that the header actually
  140. dnl works, as some kernels have bad headers. using AC_CHECK_HEADERS()
  141. dnl prints a scary warning with a request to report a bug if it fails,
  142. dnl but we do not want that.
  143. AC_MSG_CHECKING([whether linux/ioprio.h exists and actually works])
  144. AC_COMPILE_IFELSE([
  145. AC_INCLUDES_DEFAULT
  146. #include <linux/ioprio.h>
  147. ], [linux_ioprio_works=yes], [linux_ioprio_works=no])
  148. AC_MSG_RESULT([$linux_ioprio_works])
  149. if test "x$linux_ioprio_works" = "xyes"; then
  150. AC_DEFINE([HAVE_WORKING_LINUX_IOPRIO_H], [1],
  151. [Defined if linux/ioprio.h not only exists, but works properly])
  152. fi
  153. dnl Compile time default choice of backend
  154. AC_ARG_WITH([backend],
  155. AS_HELP_STRING([--with-backend=<option>],
  156. [Default backend to use linux, freebsd, openbsd]))
  157. # default to a sane option
  158. AC_CANONICAL_HOST
  159. if test x$with_backend = x; then
  160. AS_CASE([$host],
  161. [*-linux*], [with_backend=linux],
  162. [*-*freebsd*], [with_backend=freebsd],
  163. [*-*dragonfly*], [with_backend=freebsd],
  164. [*-openbsd*], [with_backend=openbsd])
  165. fi
  166. AC_DEFINE_UNQUOTED(BACKEND, "$with_backend", [backend])
  167. AC_SUBST(BACKEND, "$with_backend")
  168. if test x$with_backend = xlinux; then
  169. AC_DEFINE(BACKEND_TYPE_LINUX, 1, [Linux suspend/hibernate backend])
  170. fi
  171. if test x$with_backend = xfreebsd; then
  172. AC_DEFINE(BACKEND_TYPE_FREEBSD, 1, [FreeBSD suspend/hibernate backend])
  173. fi
  174. if test x$with_backend = xopenbsd; then
  175. AC_DEFINE(BACKEND_TYPE_OPENBSD, 1, [OpenBSD suspend/hibernate backend])
  176. fi
  177. dnl check for location Xfce glade files were installed to
  178. XFCE_GLADE_CATALOG_PATH="`pkg-config --variable glade_catalogdir libxfce4ui-1`"
  179. XFCE_GLADE_PIXMAP_PATH="`pkg-config --variable glade_pixmapdir libxfce4ui-1`"
  180. XFCE_GLADE_MODULE_PATH="`pkg-config --variable glade_moduledir libxfce4ui-1`"
  181. AC_SUBST(XFCE_GLADE_CATALOG_PATH)
  182. AC_SUBST(XFCE_GLADE_PIXMAP_PATH)
  183. AC_SUBST(XFCE_GLADE_MODULE_PATH)
  184. AC_CONFIG_FILES([
  185. Makefile
  186. doc/Makefile
  187. engines/Makefile
  188. engines/balou/Makefile
  189. engines/balou/scripts/Makefile
  190. engines/balou/themes/Makefile
  191. engines/balou/themes/Default/Makefile
  192. engines/mice/Makefile
  193. engines/simple/Makefile
  194. icons/Makefile
  195. icons/48x48/Makefile
  196. icons/128x128/Makefile
  197. icons/scalable/Makefile
  198. libxfsm/Makefile
  199. libxfsm/xfce4-session-2.0.pc
  200. po/Makefile.in
  201. settings/Makefile
  202. scripts/Makefile
  203. scripts/xinitrc.in
  204. xfce4-session/Makefile
  205. xfce4-session-logout/Makefile
  206. xfsm-shutdown-helper/Makefile
  207. ])
  208. AC_OUTPUT
  209. dnl ***************************
  210. dnl *** Print configuration ***
  211. dnl ***************************
  212. echo
  213. echo "Build Configuration:"
  214. echo
  215. echo " * Debugging support: $enable_debug"
  216. if test x"$enable_legacy_sm" = x"yes"; then
  217. echo " * Legacy session management: yes"
  218. else
  219. echo " * Legacy session management: no"
  220. fi
  221. echo " * Backend: ${with_backend}"
  222. echo