📄 configure.in
字号:
dnl Process this file with autoconf to produce a configure script.AC_INIT(configure.in)AM_INIT_AUTOMAKE(pcmanfm, 0.3.2.2)AM_CONFIG_HEADER(config.h)AM_MAINTAINER_MODEAC_ISC_POSIXAC_PROG_CCAM_PROG_CC_STDCAC_HEADER_STDCpkg_modules="gtk+-2.0 >= 2.6.0 \ gthread-2.0 \ libstartup-notification-1.0"PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])AC_SUBST(PACKAGE_CFLAGS)AC_SUBST(PACKAGE_LIBS)AC_ARG_ENABLE( [hal], AS_HELP_STRING([--enable-hal], [build with Linux HAL support (default: yes)]), use_hal=$enableval, use_hal="yes")if test x"$use_hal" = x"yes"; thendnl Check HAL support hal_modules="dbus-glib-1 >= 0.31 hal >= 0.5.0" PKG_CHECK_MODULES(HAL, [$hal_modules], [have_hal=yes], [have_hal=no]) if test x"$have_hal" = x"yes"; then AC_DEFINE([HAVE_HAL], [1], [Define to 1 if you have HAL.]) else AC_MSG_ERROR([To use HAL support, you must have developing packages of dbus-glib-1 (>=0.31) and hal(>=0.5.0), or you can use --disable-hal to disable HAL support.]) fifiAC_SUBST(HAL_CFLAGS)AC_SUBST(HAL_LIBS)AC_ARG_ENABLE([inotify], AS_HELP_STRING([--enable-inotify], [enable experimental Linux inotify support for file alteration monitor (default: no)]), use_inotify=$enableval, use_inotify="no")if test x"$use_inotify" = x"yes"; then dnl Linux inotify is enabled. dnl So, both of FAM and gamin are not needed. AC_DEFINE(USE_INOTIFY, 1, [Whether to enable Linux inotify support])else dnl *************************** dnl *** Check for Gamin/FAM *** dnl *************************** dnl *Modified from XFCE Thunar* FAM_CFLAGS="" FAM_LIBS="" have_libfam=no AC_CHECK_HEADERS([fam.h], [ AC_CHECK_LIB([fam], [FAMOpen], [have_libfam="yes" FAM_LIBS="-lfam"]) ]) if test x"$have_libfam" = x"yes"; then dnl Define appropriate symbols AC_DEFINE([HAVE_FAM_H], [1], [Define to 1 if you have the <fam.h> header file.]) AC_DEFINE([HAVE_LIBFAM], [1], [Define to 1 if the File Alteration Monitor is available.]) dnl Check for FAMNoExists (currently Gamin only) save_LIBS="$LIBS" LIBS="$LIBS $FAM_LIBS" AC_CHECK_FUNCS([FAMNoExists]) LIBS="$save_LIBS" else AC_MSG_ERROR([Fatal Error: no fam or gamin detected.]) fifiAC_SUBST([FAM_CFLAGS])AC_SUBST([FAM_LIBS])AC_ARG_ENABLE([largefile], AS_HELP_STRING([--enable-largefile], [enable Large file support (default: yes)]), largefile=$enableval, largefile="yes")if test x"$largefile" = x"yes"; then CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64" AC_DEFINE(_LARGEFILE64_SOURCE, 1, [Whether to enable large file support]) AC_DEFINE(_FILE_OFFSET_BITS, 64, [File offset bits])fiAC_CHECK_FUNC(euidaccess,[AC_DEFINE(HAVE_EUIDACCESS,[],[Define to 1 if euidaccess is available])])AC_CHECK_FUNC(eaccess,[AC_DEFINE(HAVE_EACCESS,[],[Define to 1 if eaccess is available])])AC_CHECK_FUNC(statvfs,[AC_DEFINE(HAVE_STATVFS,[],[Define to 1 if statvfs is available])])GETTEXT_PACKAGE=pcmanfmAC_SUBST(GETTEXT_PACKAGE)AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])dnl Add the languages which your application supports here.ALL_LINGUAS="zh_TW zh_CN hu fr pl it es de sv_SE ru pt_BR ca"AM_GLIB_GNU_GETTEXTAC_OUTPUT([Makefilesrc/Makefilepo/Makefile.inpcmanfm.desktop])echoecho PCMan File Manager............. : Version $VERSIONechoecho Prefix..........................: $prefixecho Linux HAL support.............. : $use_halecho Linux inotify support...........: $use_inotifyecho 64-bit Large file support.......: $largefileechoecho The binary will be installed in $prefix/binechoecho http://pcmanfm.sourceforge.net/echo
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -