configure.in
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:1k
源码类别:

通讯编程

开发平台:

Visual C++

  1. dnl Process this file with autoconf to produce a configure script.
  2. dnl
  3. AC_INIT(main.cc)
  4. AC_CONFIG_HEADER(autoconf.h)
  5. V_PROG="nam"
  6. V_ALL="$V_PROG"
  7. V_SHM="-DUSE_SHM"
  8. V_LIB=""
  9. V_SHELL=""
  10. AC_HEADER_STDC
  11. builtin(include, ./conf/configure.in.fns)
  12. builtin(include, ./conf/configure.in.head)
  13. builtin(include, ./conf/configure.in.misc)
  14. builtin(include, ./conf/configure.in.z)
  15. builtin(include, ./conf/configure.in.x11)
  16. builtin(include, ./conf/configure.in.tcl)
  17. builtin(include, ./conf/configure.in.tk)
  18. builtin(include, ./conf/configure.in.tcldebug)
  19. builtin(include, ./conf/configure.in.otcl)
  20. builtin(include, ./conf/configure.in.TclCL)
  21. dnl
  22. dnl figure out random return type
  23. dnl
  24. AC_MSG_CHECKING(return type of random)
  25. touch confdefs.h
  26. AC_TRY_RUN([#include <stdlib.h>
  27. #include "confdefs.h"
  28. long random() { return 1; }
  29. main() { exit(0); }
  30. ],
  31. AC_MSG_RESULT(long)
  32. AC_DEFINE(RANDOM_RETURN_TYPE,long)
  33. ,
  34. AC_MSG_RESULT(int)
  35. AC_DEFINE(RANDOM_RETURN_TYPE,int)
  36. ,
  37. AC_MSG_RESULT(cross compiling--guessing int)
  38. AC_DEFINE(RANDOM_RETURN_TYPE,int)
  39. )
  40. dnl
  41. dnl check some types
  42. dnl
  43. AC_CHECK_TYPE(int8_t,signed char)
  44. AC_CHECK_TYPE(int16_t,short)
  45. AC_CHECK_TYPE(int32_t,int)
  46. AC_CHECK_TYPE(u_int8_t,unsigned char)
  47. AC_CHECK_TYPE(u_int16_t,unsigned short)
  48. AC_CHECK_TYPE(u_int32_t,unsigned int)
  49. builtin(include, ./conf/configure.in.int64_t)
  50. AC_CHECK_FUNCS(snprintf)
  51. NS_FNS_TAIL
  52. builtin(include, ./conf/configure.in.tail)