dnl Process this file with autoconf to produce a configure script. AC_INIT(src/dockapp.h) AM_INIT_AUTOMAKE(libdockapp, 0.6.1) AC_PROG_LIBTOOL dnl dnl Specify whether to install font and examples dnl ============================================ AC_ARG_WITH(font, [ --with-font install the dockapp font (default=yes)], with_font=$withval, with_font=yes) AC_ARG_WITH(examples, [ --with-examples install the examples (default=yes)], with_examples=$withval, with_examples=yes) dnl dnl dnl AM_CONDITIONAL(COND_FONT, [test "$with_font" = yes]) AM_CONDITIONAL(COND_EXAMPLES, [test "$with_examples" = yes]) dnl Checks for programs. AC_PROG_RANLIB AC_PROG_LIBTOOL AC_PROG_CC AC_PROG_CXX AC_PROG_INSTALL dnl Checks for libraries. AC_PATH_XTRA AC_CHECK_LIB(Xext, XShapeCombineMask,, [echo "The shape extension could not be found in the X client libraries" exit 1], $X_LIBS $X_EXTRA_LIBS -lX11) AC_CHECK_LIB(Xpm, XpmCreatePixmapFromData,, [echo "The libXpm library was not found, but is necessary to build this library" exit 1], $X_LIBS $X_EXTRA_LIBS -lX11) dnl Checks for header files. dnl Checks for typedefs, structures, and compiler characteristics. dnl Debugging dnl ========= AC_ARG_ENABLE(debug, [ --enable-debug enable debugging ],, enable_debug=no) if test "$enable_debug" = yes; then DFLAGS="-Wall -g -ansi -pedantic" fi AC_SUBST(DFLAGS) dnl Checks for library functions. AC_OUTPUT([Makefile src/Makefile fonts/Makefile examples/Makefile])