📄 configure.in
字号:
dnldnl Process this file with autoconf to produce a configure script.dnlAC_INIT(acinclude.m4)AM_INIT_AUTOMAKE(chord, 0.1)AM_CONFIG_HEADER(config.h)AC_CANONICAL_HOSTdnl Checks for programs.AC_PROG_CCAC_PROG_CPPAC_PROG_CXXAC_PATH_PROGS(M4, gm4 gnum4 m4, '$(top_srcdir)/missing')AC_ARG_ENABLE(vis,dnl [--disable-vis do not build Chord visualizer],, [test -z "${enable_vis}" && enable_vis=yes])if test "${enable_vis}" = yes ; then dnl Check for GTK and allow conditional Makefile.am statements PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 2.0,, AC_MSG_WARN([You don't have GTK. Vis won't be built])) AC_SUBST(GSTUFF_CFLAGS) AC_SUBST(GSTUFF_LIBS)fiAM_CONDITIONAL(GTK_AVAILABLE, test "$GSTUFF_CFLAGS")SFS_WFLAGSAC_PROG_INSTALLAC_PROG_LN_S#AC_PROG_RANLIBAM_DISABLE_SHAREDtest -z "$target" && target=NONEAM_PROG_LIBTOOLSFS_TAGSFS_SFSSFS_CFLAGSdnl setup BerkeleyDBSFS_SLEEPYCAT(4.6 4.5 4.4 4.3 4.2 4.0 4 3)AC_SUBST(DBLIB)AC_SUBST(DBDEPS)if test "${with_db}" != no; then CPPFLAGS="$CPPFLAGS -DSLEEPYCAT" DBLIB="$DBLIB $DB_LIB"else AC_MSG_ERROR("Sleepycat is required to build");fidnl Make sure we have a mesg_buf capable libarpcAC_MSG_CHECKING(for a good aclnt.h)AC_EGREP_HEADER(rpccb_msgbuf, aclnt.h, AC_MSG_RESULT(found), AC_MSG_ERROR(aclnt.h that defines rpccb_msgbuf not found. Install the latest build of SFSlite.))dnl Make sure we have sfscrypt.hAC_MSG_CHECKING(for sfscrypt.h)AC_EGREP_HEADER(sfspriv, sfscrypt.h, AC_MSG_RESULT(found), AC_MSG_ERROR(new style sfscrypt not found. Install the latest build of SFSlite.))new_LDFLAGS=for flag in $LDFLAGS; do if test x"$flag" = x-static; then new_LDFLAGS="$new_LDFLAGS -all-static" else new_LDFLAGS="$new_LDFLAGS $flag" fidoneLDFLAGS="$new_LDFLAGS"dnl let directories share header filesfor lib in utils merkle chord dhash svc lsd; do CPPFLAGS="-I"'$(top_srcdir)'"/$lib $CPPFLAGS"done CPPFLAGS="-I"'$(top_builddir)'"/svc $CPPFLAGS"dnl Auxilliary files in chord specific subdirs.if test -z "$chordlibdir"; then chordlibdir='${pkglibdir}-${VERSION}'fiAC_SUBST(chordlibdir)if test -z "$chorddatadir"; then chorddatadir='${pkgdatadir}-${VERSION}'fiAC_SUBST(chordincludedir)if test -z "$chordincludedir"; then chordincludedir='${pkgincludedir}-${VERSION}'fiAC_SUBST(chorddatadir)chordexecdir="$chordlibdir"AC_SUBST(chordexecdir)ETAGS_ARGS='-C /dev/null'AC_SUBST(ETAGS_ARGS)AC_OUTPUT(Makefile svc/Makefile utils/Makefile dhash/Makefile maint/Makefile lsd/Makefile merkle/Makefile chord/Makefile tools/Makefile)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -