1AC_PREREQ(2.52)
2AC_INIT
3
4if test -z "$GNUSTEP_SYSTEM_ROOT"; then
5  AC_MSG_ERROR([You must run the GNUstep initialization script first!])
6fi
7
8#--------------------------------------------------------------------
9# Use config.guess, config.sub and install-sh provided by gnustep-make
10#--------------------------------------------------------------------
11AC_CHECK_HEADERS(Xlib.h, have_xlib=yes, have_xlib=no)
12
13if test "$have_xlib" = yes; then
14   AC_CHECK_LIB(Xlib,XInternAtom)
15   if test "$ac_cv_lib_Xlib_XInternAtom" = yes; then
16      AC_CHECK_LIB(Xlib,XChangeProperty)
17      if test "$ac_cv_lib_Xlib_XInternAtom" = yes; then
18	 HAVE_OMNIPRESENT=YES
19      fi
20   fi
21fi
22
23AC_CONFIG_AUX_DIR([$GNUSTEP_MAKEFILES])
24
25#--------------------------------------------------------------------
26# Debug logging
27#--------------------------------------------------------------------
28#AC_ARG_ENABLE(debug_log,
29#  [  --enable-debug-log  		Enable debug logging],,
30#      enable_debug_log=no)
31#
32#if test "$enable_debug_log" = "no"; then
33# GW_DEBUG_LOG=0
34#else
35# GW_DEBUG_LOG=1
36#fi
37#
38#AC_DEFINE_UNQUOTED([GW_DEBUG_LOG], [$GW_DEBUG_LOG], [debug logging])
39
40AC_OUTPUT
41