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

📄 iii_cross_tools.m4

📁 asn格式文件的编译器
💻 M4
字号:
dnldnl Copyright (c) 2001 Institute for Information Industry, Taiwan, Republic of China dnl Written by angelo@iii.org.twdnl dnl This file is part of III ASN.1 Tool.dnl dnl The contents of this file are subject to the Mozilla Public Licensednl Version 1.0 (the "License"); you may not use this file except indnl compliance with the License. You may obtain a copy of the License atdnl http://www.mozilla.org/MPL/dnldnl Software distributed under the License is distributed on an "AS IS"dnl basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. Seednl the License for the specific language governing rights and limitationsdnl under the License.dnl dnl III ASN.1 Tool is the ASN.1 to C++ compiler which transforms ASN.1 Modulednl to C++ codes along with the C++ run time library for encoding and decoding dnl ASN.1 types. For details, see the III ASN.1 Tool World-Wide-Web page, dnl `http://www.iii.org.tw/portal/lab1/asn1tool.html'.dnldnl @synopsis III_CHECK_CROSS_SETTING(VARIABLE, HOST_FILE)dnldnl Choose the correct VARIABLE setting from HOST_FILEdnldnl @author Huang-Ming HuangAC_DEFUN(III_CHECK_CROSS_SETTING,[	if test -z "[$]$1"; then		xx=`sed -n -e 's/^[[:blank:]]*$1[[:blank:]]*=[[:blank:]]*\(.*\)$/\1/p' < $2`    	if test -n "${xx}" ; then      		$1=$xx    	fi    fi])dnl @synopsis III_CROSS_TOOLSdnldnl Choose the correct C++ compiler tool settings.dnldnl If the subdirecotry "config" contains a file with the patterndnl mh-$host_alias, then use the definition of CC CXX dnl RANLIB LDFLAGS CFLAGS CXXFLAGS CPPFLAGS from that file, otherwisednl use AC_PROG_CXX and AC_PROG_RANLIB to find a suitable setting.dnldnl @author Huang-Ming HuangAC_DEFUN(III_CROSS_TOOLS,[if test -e $srcdir/config/mh-$host_alias ; then	host_frag=$srcdir/config/mh-$host_alias		III_CHECK_CROSS_SETTING(CC,${host_frag})	III_CHECK_CROSS_SETTING(CXX,${host_frag})	III_CHECK_CROSS_SETTING(RANLIB,${host_frag})	III_CHECK_CROSS_SETTING(CFLAGS,${host_frag})	III_CHECK_CROSS_SETTING(CXXFLAGS,${host_frag})	III_CHECK_CROSS_SETTING(CPPFLAGS,${host_frag})	III_CHECK_CROSS_SETTING(LDFLAGS,${host_frag})		if test "$host_alias" != "$build_alias" ; then		ac_cv_prog_cc_cross=yes		dnl prevent the AC_PROG_CXX from running the program produce by cross compiler		ac_exeext=yyy	else		ac_cv_prog_cc_cross=no	fifidnl Checks for programs.AC_CHECK_TOOL(CC, gcc)AC_PROG_CCAC_CHECK_TOOL(CXX, c++)AC_PROG_CXXAC_CHECK_TOOL(RANLIB, ranlib, :)AC_PROG_CPPAC_PROG_CXXCPP])

⌨️ 快捷键说明

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