⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.in

📁 开源的nasm编译器源码,研究编译器原理很有帮且
💻 IN
字号:
dnl Process this file with autoconf 2.53 or later to producednl a configure script.AC_PREREQ(2.53)AC_REVISION([$Id: configure.in,v 1.9 2003/09/08 20:02:10 hpa Exp $])AC_INIT(config.h.in)AC_CONFIG_HEADERS(config.h)dnl Check for broken VPATH handling on older NetBSD makes.AC_DEFUN(AC_PROG_MAKE_VPATHOK,[AC_MSG_CHECKING(whether ${MAKE-make} has sane VPATH handling)set dummy ${MAKE-make}; ac_make=`echo "[$]2" | sed 'y%./+-%__p_%'`AC_CACHE_VAL(ac_cv_prog_make_vpathok,[mkdir conftestdircat > conftestdir/conftestmake <<\EOFVPATH = ..conftestfoo: conftestbar	@echo ac_make2temp=okconftestbar: conftestbaz	@echo ac_maketemp=broken	@touch conftestbarEOFecho > conftestbaz # these two lines need to be...echo > conftestbar # ... in this order not the otherchangequote(, )dnlunset ac_maketempunset ac_make2temp# GNU make sometimes prints "make[1]: Entering...", which would confuse us.eval `cd conftestdir; ${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`changequote([, ])dnlif test -n "$ac_maketemp"; then  ac_cv_prog_make_vpathok=noelse  if test -n "$ac_make2temp"; then    ac_cv_prog_make_vpathok=yes  else    ac_cv_prog_make_vpathok=no  fifirm -rf conftestdirrm -f conftestbar conftestbaz])dnlif test $ac_cv_prog_make_vpathok = yes; then  AC_MSG_RESULT(yes)else  AC_MSG_RESULT(no)fi])AC_PREFIX_PROGRAM(nasm)dnl Checks for programs.AC_PROG_CCAC_PROG_LN_SAC_PROG_MAKE_SETif test -f nasm.c; then  # we're building in the source dir, so we don't need this check at all  ac_cv_prog_make_vpathok=yeselse  AC_PROG_MAKE_VPATHOKfiAC_PROG_INSTALLif test "$GCC" = "yes"; then  GCCFLAGS="-Wall -ansi -pedantic"else  GCCFLAGS=fiAC_SUBST(GCCFLAGS)dnl Look for "nroff" or "groff"AC_CHECK_PROGS(NROFF, nroff, echo)AC_SUBST(NROFF)dnl Checks for header files.AC_HEADER_STDCif test $ac_cv_header_stdc = no; then  AC_MSG_ERROR([NASM requires ANSI C header files to compile])fiAC_CHECK_HEADERS(limits.h)if test $ac_cv_header_limits_h = no; then  AC_MSG_ERROR([NASM requires '<limits.h>' to compile])fidnl Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTif test $ac_cv_c_const = no; then  AC_MSG_ERROR([NASM requires ANSI C (specifically, working "const")])fiAC_TYPE_SIZE_Tif test $ac_cv_type_size_t = no; then  AC_MSG_ERROR([NASM requires ANSI C (specifically, "size_t")])fidnl Checks for library functions.AC_FUNC_VPRINTFif test $ac_cv_func_vprintf = no; then  AC_MSG_ERROR([NASM requires ANSI C (specifically, "vprintf" and friends)])fiAC_CHECK_FUNCS(strcspn)if test $ac_cv_func_strcspn = no; then  AC_MSG_ERROR([NASM requires ANSI C (specifically, "strcspn")])fiAC_CHECK_FUNCS(strspn)if test $ac_cv_func_strspn = no; then  AC_MSG_ERROR([NASM requires ANSI C (specifically, "strspn")])fiif test $ac_cv_prog_make_vpathok = no; then  echo Copying generated srcs into build directory to compensate for VPATH breakage  for file in macros.c insnsa.c insnsd.c insnsn.c insnsi.h version.h version.mac; do    if test ! -f $file; then cp -p ${srcdir}/${file} .; fi  donefiAC_OUTPUT_COMMANDS([mkdir -p output])AC_OUTPUT(Makefile rdoff/Makefile doc/Makefile)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -