1dnl Process this file with autoconf to produce a configure script. 2AC_INIT(Border.C) 3 4dnl Checks for programs. 5AC_PROG_MAKE_SET 6AC_PROG_CXX 7AC_LANG_CPLUSPLUS 8 9AC_PATH_X 10 11dnl libX11 _is_ necessary 12dnl and some systems do find it without any path. 13 14if test ! "$no_x" = "yes" ; then 15 if test ! X"$x_libraries" = X ; then 16 LDFLAGS="$LDFLAGS -L$x_libraries" 17 fi 18 if test ! X"$x_includes" = X ; then 19 CXXFLAGS="$CXXFLAGS -I$x_includes" 20 fi 21else 22 AC_MSG_ERROR(X11 is necessary.) 23fi 24 25AC_CHECK_LIB(X11, XOpenDisplay, [], [ 26 echo "You need the X11 libraries." 27 exit 1 28 ]) 29 30dnl Shape extension is necessary. 31AC_CHECK_LIB(Xext, XShapeQueryExtension, [], [ 32 echo "You need the X11 Shape extension." 33 exit 1 34 ]) 35 36dnl Xpm is not strictly necessary 37AC_CHECK_LIB(Xpm, XpmCreatePixmapFromData, [], [ 38 echo "Warning: Xpm library not found" 39 echo "Please either install the Xpm library and headers, or ensure you have CONFIG_USE_PIXMAPS set to False in Config.h" 40 ]) 41 42dnl Composite is necessary if CONFIG_USE_COMPOSITE 43AC_CHECK_LIB(Xcomposite, XCompositeQueryExtension, [], [ 44 echo "Warning: Xcomposite library not found" 45 echo "Please either install the Xcomposite library and headers, or ensure you have CONFIG_USE_COMPOSITE set to False in Config.h" 46 ]) 47 48dnl SM and ICE are necessary if CONFIG_USE_SESSION_MANAGER 49AC_CHECK_LIB(SM, SmcOpenConnection) 50AC_CHECK_LIB(ICE, IceConnectionNumber) 51 52dnl Freetype: actually only needed if CONFIG_USE_XFT 53PKG_CHECK_MODULES([FT],[freetype2],[],[ 54 echo "Warning: Freetype library not found" 55 echo "Please either install Freetype, or ensure you have CONFIG_USE_XFT set to False in Config.h" 56 ]) 57PKG_CHECK_MODULES([XFT],[xft],[],[ 58 echo "Warning: Xft library not found" 59 echo "Please either install Xft, or ensure you have CONFIG_USE_XFT set to False in Config.h" 60 ]) 61PKG_CHECK_MODULES([FC],[fontconfig],[],[ 62 echo "Warning: Fontconfig library not found" 63 echo "Please either install Fontconfig, or ensure you have CONFIG_USE_XFT set to False in Config.h" 64 ]) 65AC_SUBST(FT_CFLAGS) 66AC_SUBST(FT_LIBS) 67AC_SUBST(XFT_CFLAGS) 68AC_SUBST(XFT_LIBS) 69AC_SUBST(FC_CFLAGS) 70AC_SUBST(FC_LIBS) 71 72dnl We want to put wmx where twm lies. 73AC_PREFIX_PROGRAM(twm) 74 75AC_MSG_CHECKING([whether you're still watching]) 76AC_MSG_RESULT([probably not :-)]) 77 78dnl Now we can go home. 79AC_OUTPUT(Makefile) 80