📄 configure.in
字号:
dnl Emacs, this is -*- m4 -*-dnl Lines starting with 'dnl' are commentsdnl Use 'autoscan' to help you to write this filednl Process this file with 'autoconf' to produce a 'configure' script, and withdnl 'autoheader' to produce a 'config.h.in' input filednl Put the following line _before_ any checkdnl Among other things, it verifies that you are executing 'configure' in thednl right directoryAC_INIT(ntfs.lpm)dnl Put the following line right after AC_INIT()dnl Use a configuration header file. This will modify the DEFS ouput variableAC_CONFIG_HEADER(config.h)dnl Directory for required scriptsAC_CONFIG_AUX_DIR(scripts)dnl Checks for programsdnl Set the 'SET_MAKE' output variableAC_PROG_MAKE_SETAC_PROG_CCdnl Requires 'config.sub' and 'config.guess' scriptsAC_CHECK_TOOL(LD,ld,echo Unable to find ld)dnl Requires the 'install-sh' scriptAC_PROG_INSTALLAC_CHECK_PROGS(TAR,tar,echo Unable to find tar)AC_CHECK_PROGS(MOUNT,mount,echo Unable to find mount)AC_CHECK_PROGS(UMOUNT,umount,echo Unable to find umount)AC_CHECK_PROGS(ETAGS,etags,echo Unable to find etags)AC_PATH_PROG(INSMOD,insmod,echo Unable to find insmod,$PATH:/sbin)AC_PATH_PROG(RMMOD,rmmod,echo Unable to find rmmod,$PATH:/sbin)AC_PATH_PROG(DEPMOD,depmod,echo Unable to find depmod,$PATH:/sbin)dnl Checks for librariesdnl Checks for library functions.dnl vfprintf()AC_FUNC_VPRINTFAC_CHECK_FUNCS(strdup strerror strtol bzero memset)dnl Checks for header files.dnl ANSI C compliant header filesAC_HEADER_STDCAC_CHECK_HEADERS(fcntl.h unistd.h io.h string.h strings.h sys/cdefs.h endian.h inttypes.h sys/types.h)dnl Checks for typedefs, structures, and compiler characteristics.dnl Support for some C keywordsAC_C_CONSTAC_C_INLINEdnl If a type is not defined, it defaults to a large enough typeAC_TYPE_UID_TAC_TYPE_MODE_TAC_TYPE_OFF_TAC_TYPE_SIZE_Tdnl Substitution of particular variables, that should not contain literaldnl newlinesdnl Check getopt.hAC_CHECK_HEADERS(getopt.h)dnl NTFS deviceAC_ARG_ENABLE(device, --enable-device=DEV Default NTFS volume, [ AC_DEFINE_UNQUOTED(NTFS_VOLUME,"$enableval") ntfs_volume=$enableval ])AC_SUBST(ntfs_volume)dnl Debug mode for the Linux kernel moduleAC_ARG_ENABLE(debug, --enable-debug Enable debugging, debug=y, debug=n)AC_SUBST(debug)dnl Mount point for the NTFS partitionAC_ARG_ENABLE(mount-to, --enable-mount-to=DIR Mount point for 'mount' target, mount_point=$enableval)AC_SUBST(mount_point)dnl Experimental write supportAC_ARG_ENABLE(rw, --enable-rw Enable experimental read/write support, AC_DEFINE(CONFIG_NTFS_RW))dnl Build $target_* variablesAC_CANONICAL_SYSTEMdnl Determine the GCC CFLAGSgcccflags="-pipe -fno-strength-reduce"case "$target_cpu" in i386) gcccflags="$gcccflags -m386";; i486) gcccflags="$gcccflags -m486";; i586 | i696) gcccflags="$gcccflags -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2";;esaccase "$debug" in y) gcccflags="$gcccflags -O2 -g" AC_DEFINE(DEBUG) ;; n) gcccflags="$gcccflags -O2 -fomit-frame-pointer";;esacdnl Perform some adjustement regarding the OS usedcase "$target_os" in linux*) AC_SUBST(gcccflags)dnl Get the version of installed kernel sources kversion=`sed -n -e "s/^VERSION = \(.*\)/\1/p" /usr/src/linux/Makefile`.`sed -n -e "s/PATCHLEVEL = \(.*\)/\1/p" /usr/src/linux/Makefile`.`sed -n -e "s/SUBLEVEL = \(.*\)/\1/p" /usr/src/linux/Makefile` AC_SUBST(kversion) case $kversion in 2.0*) specific_dir=linux20;; 2.1*|2.2*) specific_dir=linux21;; esac ;; freebsd* | netbsd*) specific_dir=44bsd;;esacAC_SUBST(specific_dir)dnl Put the following line _after_ all checksdnl Performs variable substitutions : foobar.in -> foobarAC_OUTPUT(Makefile linux20/GNUmakefile linux21/GNUmakefile 44bsd/Makefile user/Makefile)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -