<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    ivaneeo's blog

    自由的力量,自由的生活。

      BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
      669 Posts :: 0 Stories :: 64 Comments :: 0 Trackbacks
    代碼清單 bogusapp.c
    #include <stdio.h>
    #include <stdlib.h>
    #ifdef HAVE_RESOLV_H
    #include <resolv.h>
    #endif /* HAVE_RESOLV_H */
    #include "config.h"

    int main(void)
    {
        int reval;
    #ifdef HAVE_MMAP
         fprintf(stdout, "have mmap()\n");
    #else
         fprintf(stderr, "no mmap()\n");
    #endif

    if(HAVE_UTIME_NULL)
      fprintf(stdout, "utime() allows NULL\n");
    else
      fprintf(stderr, "utime doesn't allow NULL\n");

    if(SYS_SIGLIST_DECLARED)
      fprintf(stdout, "sys_siglist() declared\n");
    else
      fprinf(stderr, "sys_siglist() not declared\n");

    #ifdef HAVE_NCURSES_H
      fprintf(stdout, "ncurses.h found\n");
    #else
      fprintf(stderr, "ncurses.h not found\n);

    if(HAVE_FCNTL_H)
      fprintf(stdout, "fcntl.h found\n");
    else
      fprintf(stderr, "fcntl.h not found\n");

    if(HAVE_SYS_FCNTL_H)
      fprintf(stdout, "sys/fcntl.h found\n");
    else
      fprintf(stderr, "sys/fcntl.h not found\n");

    #ifdef NLIST_NAME_UNION
      fprintf(stdout, "nlist.n_un member found\n");
    #else
      fprintf(stdout, "nlist.n_un member not found\n");
    #endif

    if(HAVE_VOID_POINTER)
      fprintf(stdout, "Yep, we have a usable void pointer type\n");
    else
      fprintf(stderr, "Nope, no usable void pointer type\n");
    exit(EXIT_SUCCESS);
    }
    .Makefiel.in--用于創(chuàng)建真正的makefile文件的模板
    .acconfig.h--與特定系統(tǒng)相關(guān)的宏的集合,它隨autoconf軟件一起提供
    .bogusapp.c--bogusapp的源代碼,這是個示例程序
    .config.h--包含bogusapp.c中用到的所有宏的頭文件
    .configure.in--創(chuàng)建最終的configure腳本的模板
    .install.sh--安裝腳本,用在不帶兼容BSD的install程序的系統(tǒng)上

    在目錄下運行autoscan產(chǎn)生的configure.scan如下:
    $autoscan
    $cat configure.scan
    dnl Process this file with autoconf to produce a configure script.
    AC_INIT(acconfig.h)
    dnl Checks for programs.
    dnl Checks for libraries.
    dnl Checks for header files.
    AC_HEADER_STDC
    dnl Checks for typedefs, structures, and compiler characteristics.
    dnl Checks for library functions.
    AC_OUTPUT(Makefile)

    ifnames的輸出如下:
    HAVE_MMAP bogusapp.c
    HAVE_NCURSES_H bogusapp.c
    HAVE_RESOLV_H bogusapp.c
    HAVE_NAME_UNION bogusapp.c
    posted on 2005-08-04 21:24 ivaneeo 閱讀(317) 評論(0)  編輯  收藏 所屬分類: GNU牛力
    主站蜘蛛池模板: 亚洲第一AV网站| 青青青亚洲精品国产| 亚洲网站在线播放| 羞羞视频免费网站入口| 免费成人在线视频观看| 美女黄网站人色视频免费国产 | 亚洲午夜无码AV毛片久久| 亚洲欧洲日韩不卡| 黄色毛片视频免费| 亚洲第一永久AV网站久久精品男人的天堂AV | 波多野结衣免费在线观看| 亚洲一区二区三区免费| 亚洲免费日韩无码系列| 四虎影视在线永久免费观看| 亚洲视频在线一区二区三区| 久久WWW免费人成—看片| 日本无卡码免费一区二区三区| 亚洲视频免费播放| 成年女人毛片免费播放人| 亚洲AV日韩精品久久久久久久 | 久久免费精品视频| 亚洲精品在线免费观看| 成人毛片免费观看视频大全| 国内成人精品亚洲日本语音| 女人被男人躁的女爽免费视频| 亚洲福利视频网站| 在线观看免费大黄网站| 一本岛v免费不卡一二三区| 四虎永久在线免费观看| 99精品视频在线观看免费| 亚洲国产成人精品久久久国产成人一区二区三区综 | 国产亚洲视频在线| 国产亚洲美女精品久久久久狼| 又粗又长又爽又长黄免费视频 | 亚洲午夜精品一区二区| 成人性生免费视频| 中国一级特黄高清免费的大片中国一级黄色片 | 亚洲日韩一区二区三区| 岛国大片免费在线观看| sss在线观看免费高清| 亚洲国产成人va在线观看网址|