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

📄 pth.m4

📁 Linux下的中文输入法
💻 M4
📖 第 1 页 / 共 2 页
字号:
        fi    fi    _AC_PTH_VERBOSE([+ Determined Location:])    _AC_PTH_VERBOSE([    o path: $_pth_location])    _AC_PTH_VERBOSE([    o type: $_pth_type])    if test ".$_pth_version" = .; then        if test ".$with_pth" != .yes; then             _AC_PTH_ERROR([dnl             Unable to locate GNU Pth under $with_pth.             Please specify the correct path to either a GNU Pth installation tree             (use --with-pth=DIR if you used --prefix=DIR for installing GNU Pth in             the past) or to a GNU Pth source tree (use --with-pth=DIR if DIR is a             path to a pth-X.Y.Z/ directory; but make sure the package is already             built, i.e., the "configure; make" step was already performed there).])        else             _AC_PTH_ERROR([dnl             Unable to locate GNU Pth in any system-wide location (see \$PATH).             Please specify the correct path to either a GNU Pth installation tree             (use --with-pth=DIR if you used --prefix=DIR for installing GNU Pth in             the past) or to a GNU Pth source tree (use --with-pth=DIR if DIR is a             path to a pth-X.Y.Z/ directory; but make sure the package is already             built, i.e., the "configure; make" step was already performed there).])        fi    fi    dnl #    dnl #  Check whether the found version is sufficiently new    dnl #    _req_version="ifelse([$1],,1.0.0,$1)"    for _var in _pth_version _req_version; do        eval "_val=\"\$${_var}\""        _major=`echo $_val | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\([[ab.]]\)\([[0-9]]*\)/\1/'`        _minor=`echo $_val | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\([[ab.]]\)\([[0-9]]*\)/\2/'`        _rtype=`echo $_val | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\([[ab.]]\)\([[0-9]]*\)/\3/'`        _micro=`echo $_val | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\([[ab.]]\)\([[0-9]]*\)/\4/'`        case $_rtype in            "a" ) _rtype=0 ;;            "b" ) _rtype=1 ;;            "." ) _rtype=2 ;;        esac        _hex=`echo dummy | awk '{ printf("%d%02d%1d%02d", major, minor, rtype, micro); }' \              "major=$_major" "minor=$_minor" "rtype=$_rtype" "micro=$_micro"`        eval "${_var}_hex=\"\$_hex\""    done    _AC_PTH_VERBOSE([+ Determined Versions:])    _AC_PTH_VERBOSE([    o existing: $_pth_version -> 0x$_pth_version_hex])    _AC_PTH_VERBOSE([    o required: $_req_version -> 0x$_req_version_hex])    _ok=0    if test ".$_pth_version_hex" != .; then        if test ".$_req_version_hex" != .; then            if test $_pth_version_hex -ge $_req_version_hex; then                _ok=1            fi        fi    fi    if test ".$_ok" = .0; then        _AC_PTH_ERROR([dnl        Found Pth version $_pth_version, but required at least version $_req_version.        Upgrade Pth under $_pth_location to $_req_version or higher first, please.])    fi    dnl #    dnl #   Perform Pth Sanity Compile Check    dnl #    if test ".$with_pth_test" = .yes; then        _ac_save_CPPFLAGS="$CPPFLAGS"        _ac_save_CFLAGS="$CFLAGS"        _ac_save_LDFLAGS="$LDFLAGS"        _ac_save_LIBS="$LIBS"        CPPFLAGS="$CPPFLAGS $_pth_cppflags"        CFLAGS="$CFLAGS $_pth_cflags"        LDFLAGS="$LDFLAGS $_pth_ldflags"        LIBS="$LIBS $_pth_libs"        _AC_PTH_VERBOSE([+ Test Build Environment:])        _AC_PTH_VERBOSE([    o CPPFLAGS=\"$CPPFLAGS\"])        _AC_PTH_VERBOSE([    o CFLAGS=\"$CFLAGS\"])        _AC_PTH_VERBOSE([    o LDFLAGS=\"$LDFLAGS\"])        _AC_PTH_VERBOSE([    o LIBS=\"$LIBS\"])        cross_compile=no        m4_define(_code1, [dnl        #include <stdio.h>        #include <pth.h>        ])        m4_define(_code2, [dnl        int main(int argc, char *argv[])        {            FILE *fp;            if (!(fp = fopen("conftestval", "w")))                exit(1);            fprintf(fp, "hmm");            fclose(fp);            pth_init();            pth_kill();            if (!(fp = fopen("conftestval", "w")))                exit(1);            fprintf(fp, "yes");            fclose(fp);            exit(0);        }        ])        _AC_PTH_VERBOSE([+ Performing Sanity Checks:])        _AC_PTH_VERBOSE([    o pre-processor test])        AC_TRY_CPP(_code1, _ok=yes, _ok=no)        if test ".$_ok" != .yes; then            _AC_PTH_ERROR([dnl            Found GNU Pth $_pth_version under $_pth_location, but            was unable to perform a sanity pre-processor check. This means            the GNU Pth header pth.h was not found.            We used the following build environment:            >> CPP="$CPP"            >> CPPFLAGS="$CPPFLAGS"            See config.log for possibly more details.])        fi        _AC_PTH_VERBOSE([    o link check])        AC_TRY_LINK(_code1, _code2, _ok=yes, _ok=no)        if test ".$_ok" != .yes; then            _AC_PTH_ERROR([dnl            Found GNU Pth $_pth_version under $_pth_location, but            was unable to perform a sanity linker check. This means            the GNU Pth library libpth.a was not found.            We used the following build environment:            >> CC="$CC"            >> CFLAGS="$CFLAGS"            >> LDFLAGS="$LDFLAGS"            >> LIBS="$LIBS"            See config.log for possibly more details.])        fi        _AC_PTH_VERBOSE([    o run-time check])        AC_TRY_RUN(_code1 _code2, _ok=`cat conftestval`, _ok=no, _ok=no)        if test ".$_ok" != .yes; then            if test ".$_ok" = .no; then                _AC_PTH_ERROR([dnl                Found GNU Pth $_pth_version under $_pth_location, but                was unable to perform a sanity execution check. This usually                means that the GNU Pth shared library libpth.so is present                but \$LD_LIBRARY_PATH is incomplete to execute a Pth test.                In this case either disable this test via --without-pth-test,                or extend \$LD_LIBRARY_PATH, or build GNU Pth as a static                library only via its --disable-shared Autoconf option.                We used the following build environment:                >> CC="$CC"                >> CFLAGS="$CFLAGS"                >> LDFLAGS="$LDFLAGS"                >> LIBS="$LIBS"                See config.log for possibly more details.])            else                _AC_PTH_ERROR([dnl                Found GNU Pth $_pth_version under $_pth_location, but                was unable to perform a sanity run-time check. This usually                means that the GNU Pth library failed to work and possibly                caused a core dump in the test program. In this case it                is strongly recommended that you re-install GNU Pth and this                time make sure that it really passes its "make test" procedure.                We used the following build environment:                >> CC="$CC"                >> CFLAGS="$CFLAGS"                >> LDFLAGS="$LDFLAGS"                >> LIBS="$LIBS"                See config.log for possibly more details.])            fi        fi        _extendvars="ifelse([$4],,yes,$4)"        if test ".$_extendvars" != .yes; then            CPPFLAGS="$_ac_save_CPPFLAGS"            CFLAGS="$_ac_save_CFLAGS"            LDFLAGS="$_ac_save_LDFLAGS"            LIBS="$_ac_save_LIBS"        fi    else        _extendvars="ifelse([$4],,yes,$4)"        if test ".$_extendvars" = .yes; then            if test ".$_pth_subdir" = .yes; then                CPPFLAGS="$CPPFLAGS $_pth_cppflags"                CFLAGS="$CFLAGS $_pth_cflags"                LDFLAGS="$LDFLAGS $_pth_ldflags"                LIBS="$LIBS $_pth_libs"            fi        fi    fi    PTH_CPPFLAGS="$_pth_cppflags"    PTH_CFLAGS="$_pth_cflags"    PTH_LDFLAGS="$_pth_ldflags"    PTH_LIBS="$_pth_libs"    AC_SUBST(PTH_CPPFLAGS)    AC_SUBST(PTH_CFLAGS)    AC_SUBST(PTH_LDFLAGS)    AC_SUBST(PTH_LIBS)    _AC_PTH_VERBOSE([+ Final Results:])    _AC_PTH_VERBOSE([    o PTH_CPPFLAGS=\"$PTH_CPPFLAGS\"])    _AC_PTH_VERBOSE([    o PTH_CFLAGS=\"$PTH_CFLAGS\"])    _AC_PTH_VERBOSE([    o PTH_LDFLAGS=\"$PTH_LDFLAGS\"])    _AC_PTH_VERBOSE([    o PTH_LIBS=\"$PTH_LIBS\"])fiif test ".$with_pth" != .no; then    AC_MSG_RESULT([version $_pth_version, $_pth_type under $_pth_location])    ifelse([$5], , :, [$5])else    AC_MSG_RESULT([no])    ifelse([$6], , :, [$6])fi])

⌨️ 快捷键说明

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