📄 configure.in
字号:
dnl Process this file with autoconf to produce a configure script.dnl and read http://www.ohse.de/uwe/articles/aal.html to find outdnl why this project HAS to use autoconf and automakeAC_PREREQ(2.59)AC_INIT(ramdefrag, 0.4.0, knilch@users.sourceforge.net)AC_CONFIG_SRCDIR([src/callbacks.c])AM_INIT_AUTOMAKEAM_CONFIG_HEADER([config.h])PACKAGE=${PACKAGE_NAME}VERSION=${PACKAGE_VERSION}dnl we would shurely go straight into hell if we believed in it for the followingAC_MSG_NOTICE([warning: this script uses maintainer-mode which is a Bad Thing.])AM_MAINTAINER_MODEdnl see also:dnl http://www.gnu.org/software/automake/manual/html_node/maintainer-mode.html#maintainer-modeAC_PROG_CCAC_ISC_POSIXAC_HEADER_STDCpkg_modules="gtk+-2.0 >= 2.0.0"PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])AC_SUBST(PACKAGE_CFLAGS)AC_SUBST(PACKAGE_LIBS)GETTEXT_PACKAGE=ramdefragAC_SUBST(GETTEXT_PACKAGE)AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")ALL_LINGUAS="de fr sv"AM_GLIB_GNU_GETTEXTdnl check for getopt_long and use our replacement, if necessaryadl_FUNC_GETOPT_LONGAC_CHECK_FUNCS([usleep snprintf], ,_ AC_MSG_ERROR([function $ac_func is not available on this system! write a workaround and send it to the maintainers.]))AC_CHECK_LIB(fridge, beer, echo "Hmm?!",[ echo "Warning: No beer found in fridge!"; echo "We highly suggest that you rectify this situation immediately."])# try to set a disclaimer message for inclusion in ramdefrag.spec# and debian/control if this is a cvs version:CVS_DISCLAIMER_MSG=""case "x${PACKAGE_VERSION}" in *cvs ) CVS_DISCLAIMER_MSG="This version of the package is taken directly from the projects cvs." ;; *test ) CVS_DISCLAIMER_MSG="This version of the package is built for testing purposes ONLY."esacAC_SUBST(CVS_DISCLAIMER_MSG)dnl trying to get rid of acconfig.hAH_TEMPLATE([GETTEXT_PACKAGE], [If you don't know what this means, just leave it alone.])AC_OUTPUT([Makefilesrc/Makefilepo/Makefile.inman/Makefiledebian/Makefileramdefrag.spec])# ========================================================================echoecho " $PACKAGE_NAME source configuration complete."echoecho "Now type:"echo " make to build $PACKAGE_NAME"echo " make install to install $PACKAGE_NAME"echoecho " Thanks for trying $PACKAGE_NAME, hope you'll enjoy it!"echo
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -