bfin-xxx-gcc-4.3.1中config.status的生成及运行(1):输出注释

来源:互联网 发布:数据宝下载 编辑:程序博客网 时间:2024/05/10 12:49

快乐虾

http://blog.csdn.net/lights_joy/

lights@hb165.com

  

 

本文适用于

gcc-4.3.1

Blackfin系列DSP

Visual Studio 2005

  

 

欢迎转载,但请保留作者信息

 

 

 

这是一个动态生成的脚本文件,用于检测一些与编译器具体相关的参数,它由configure脚本生成。

configure脚本中有一个定义:

: ${CONFIG_STATUS=./config.status}

接下来将内容输出到config.status

1.1.1.1             输出注释

cat >$CONFIG_STATUS <<_ACEOF

#! $SHELL

# Generated by $as_me.

# Run this file to recreate the current configuration.

# Compiler output produced by configure, useful for debugging

# configure, is in config.log if it exists.

 

debug=false

ac_cs_recheck=false

ac_cs_silent=false

SHELL=/${CONFIG_SHELL-$SHELL}

_ACEOF

这段代码很简单,就是把_ACEOF之间的内容输出,但是在这里会替换两个变量,将$SHELL替换为/bin/sh,将$as_me替换为configure,因此最后输出到config.status的代码就成了:

#! /bin/sh

# Generated by configure.

# Run this file to recreate the current configuration.

# Compiler output produced by configure, useful for debugging

# configure, is in config.log if it exists.

 

debug=false

ac_cs_recheck=false

ac_cs_silent=false

SHELL=${CONFIG_SHELL-/bin/sh}

 

 

 

参考资料

bfin-gcc-4.3.1config.h的生成(2008-8-5)

 

 

 

 

 

 

原创粉丝点击