<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)相關的宏的集合,它隨autoconf軟件一起提供
    .bogusapp.c--bogusapp的源代碼,這是個示例程序
    .config.h--包含bogusapp.c中用到的所有宏的頭文件
    .configure.in--創(chuàng)建最終的configure腳本的模板
    .install.sh--安裝腳本,用在不帶兼容BSD的install程序的系統(tǒng)上

    在目錄下運行autoscan產生的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牛力
    主站蜘蛛池模板: 午夜亚洲乱码伦小说区69堂| 美女黄网站人色视频免费国产| 亚洲jizzjizz少妇| 香蕉视频在线观看亚洲| 免费国产a国产片高清网站| 三年片在线观看免费大全 | 成人浮力影院免费看| 抽搐一进一出gif免费视频| 国产精品久久亚洲一区二区| 亚洲小视频在线播放| 亚洲AV日韩AV永久无码免下载| 亚洲乱码日产精品a级毛片久久| 成人毛片18女人毛片免费| 亚洲午夜无码AV毛片久久| 最近2019中文免费字幕| 亚洲成人在线免费观看| 午夜影院免费观看| a级男女仿爱免费视频| 久久免费国产精品| 一级毛片人与动免费观看| 亚洲天堂一区二区| 日本免费v片一二三区| 色婷婷7777免费视频在线观看| 91免费人成网站在线观看18| 99xxoo视频在线永久免费观看| 国产午夜无码精品免费看动漫| 中文字幕乱码系列免费| 久久久精品视频免费观看 | 成人免费777777| 国产在线国偷精品产拍免费| 黄页免费的网站勿入免费直接进入| 少妇无码一区二区三区免费| 久久青草免费91线频观看不卡| 无码国产精品一区二区免费vr| 秋霞人成在线观看免费视频| 无码日韩精品一区二区免费暖暖| 久久狠狠躁免费观看2020| 99爱免费观看视频在线| 国产成人精品免费视频网页大全| 成人福利免费视频| 午夜毛片不卡高清免费|