1AC_INIT(acinclude.m4) dnl a source file from your sub dir 2 3dnl This is so we can use kde-common 4AC_CONFIG_AUX_DIR(admin) 5 6dnl This ksh/zsh feature conflicts with `cd blah ; pwd` 7unset CDPATH 8 9dnl Checking host/target/build systems, for make, install etc. 10AC_CANONICAL_SYSTEM 11dnl Perform program name transformation 12AC_ARG_PROGRAM 13 14AM_INIT_AUTOMAKE(lineak_xosdplugin,0.9.0) 15 16AC_PREFIX_DEFAULT(/usr) 17 18if test "x$prefix" = "xNONE"; then 19 prefix=$ac_default_prefix 20 ac_configure_args="$ac_configure_args --prefix $prefix" 21fi 22 23AM_CONFIG_HEADER(config.h) 24AC_CHECK_COMPILERS 25AC_ENABLE_SHARED(yes) 26AC_ENABLE_STATIC(no) 27 28KDE_PROG_LIBTOOL 29all_libraries="$all_libraries $USER_LDFLAGS" 30all_includes="$all_includes $USER_INCLUDES" 31AC_SUBST(all_includes) 32AC_SUBST(all_libraries) 33 34AC_SUBST(AUTODIRS) 35 36AC_LINEAK_CHECK_INCLUDES 37AC_LINEAK_CHECK_LIBS 38AC_LINEAK_FIND_PLUGINDIR 39 40AC_CHECK_HEADERS(xosd.h) 41dnl Check for xosd-config 42AC_PATH_PROG(xosd_config_script, xosd-config, "none") 43 if test "x$xosd_config_script" = "xnone" ; then 44 AC_MSG_RESULT(no) 45 echo "*** xosd-config script not found! Do you have xosd-dev" 46 echo "*** installed??" 47 AC_MSG_ERROR(xsod-config not found) 48 exit 1 49 else 50 AC_MSG_RESULT(yes) 51 dnl AC_MSG_RESULT($xosd_config_script) 52 XOSD_CFLAGS=`$xosd_config_script --cflags 2>/dev/null` 53 XOSD_LIBS=`$xosd_config_script --libs 2>/dev/null` 54 dnl Replace `main' with a function in -lxosd: 55 AC_CHECK_LIB(xosd, main) 56 AC_SUBST(XOSD_CFLAGS) 57 AC_SUBST(XOSD_LIBS) 58 dnl AC_DEFINE(HAVE_XOSD, 1, [Define whether or not to use xosd]) 59 fi 60 61