Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5786
  • 博文数量: 4
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 10
  • 用 户 组: 普通用户
  • 注册时间: 2015-12-16 11:23
文章分类
文章存档

2015年(4)

我的朋友
最近访客

分类: 嵌入式

2015-12-16 11:24:32

执行libtoolize的时候提示:

  1. libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
  2. libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
  3. libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
它让我们在configure.in中加入AC_CONFIG_MACRO_DIR([m4]),所以解决办法是打开configure.in,加入该行:

  1. ...
  2. AM_INIT_AUTOMAKE(test, 1.0.0)
  3. AC_CONFIG_MACRO_DIR([m4])        #这里
  4. AC_PROG_LIBTOOL
  5. ...
执行./configure的时候提示错误:

  1. sky@ubuntu:test$ ./configure
  2. checking for a BSD-compatible install... /usr/bin/install -c
  3. checking whether build environment is sane... yes
  4. checking for a thread-safe mkdir -p... /bin/mkdir -p
  5. checking for gawk... no
  6. checking for mawk... mawk
  7. checking whether make sets $(MAKE)... yes
  8. checking build system type... i686-pc-linux-gnu
  9. checking host system type... i686-pc-linux-gnu
  10. checking how to print strings... printf
  11. checking for style of include used by make... GNU
  12. checking for gcc... gcc
  13. checking whether the C compiler works... yes
  14. checking for C compiler default output file name... a.out
  15. checking for suffix of executables...
  16. checking whether we are cross compiling... no
  17. checking for suffix of object files... o
  18. checking whether we are using the GNU C compiler... yes
  19. checking whether gcc accepts -g... yes
  20. checking for gcc option to accept ISO C89... none needed
  21. checking dependency style of gcc... gcc3
  22. checking for a sed that does not truncate output... /bin/sed
  23. checking for grep that handles long lines and -e... /bin/grep
  24. checking for egrep... /bin/grep -E
  25. checking for fgrep... /bin/grep -F
  26. checking for ld used by gcc... /usr/bin/ld
  27. checking if the linker (/usr/bin/ld) is GNU ld... yes
  28. checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
  29. checking the name lister (/usr/bin/nm -B) interface... BSD nm
  30. checking whether ln -s works... yes
  31. checking the maximum length of command line arguments... 1572864
  32. checking whether the shell understands some XSI constructs... yes
  33. checking whether the shell understands "+="... yes
  34. checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
  35. checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
  36. checking for /usr/bin/ld option to reload object files... -r
  37. checking for objdump... objdump
  38. checking how to recognize dependent libraries... pass_all
  39. checking for dlltool... no
  40. checking how to associate runtime and link libraries... printf %s\n
  41. checking for ar... ar
  42. checking for archiver @FILE support... @
  43. checking for strip... strip
  44. checking for ranlib... ranlib
  45. checking command to parse /usr/bin/nm -B output from gcc object... ok
  46. checking for sysroot... no
  47. checking for mt... mt
  48. checking if mt is a manifest tool... no
  49. checking how to run the C preprocessor... gcc -E
  50. checking for ANSI C header files... yes
  51. checking for sys/types.h... yes
  52. checking for sys/stat.h... yes
  53. checking for stdlib.h... yes
  54. checking for string.h... yes
  55. checking for memory.h... yes
  56. checking for strings.h... yes
  57. checking for inttypes.h... yes
  58. checking for stdint.h... yes
  59. checking for unistd.h... yes
  60. checking for dlfcn.h... yes
  61. checking for objdir... .libs
  62. checking if gcc supports -fno-rtti -fno-exceptions... no
  63. checking for gcc option to produce PIC... -fPIC -DPIC
  64. checking if gcc PIC flag -fPIC -DPIC works... yes
  65. checking if gcc static flag -static works... yes
  66. checking if gcc supports -c -o file.o... yes
  67. checking if gcc supports -c -o file.o... (cached) yes
  68. checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
  69. checking whether -lc should be explicitly linked in... no
  70. checking dynamic linker characteristics... GNU/Linux ld.so
  71. checking how to hardcode library paths into programs... immediate
  72. checking whether stripping libraries is possible... yes
  73. checking if libtool supports shared libraries... yes
  74. checking whether to build shared libraries... yes
  75. checking whether to build static libraries... yes
  76. checking for gcc... (cached) gcc
  77. checking whether we are using the GNU C compiler... (cached) yes
  78. checking whether gcc accepts -g... (cached) yes
  79. checking for gcc option to accept ISO C89... (cached) none needed
  80. checking dependency style of gcc... (cached) gcc3
  81. configure: creating ./config.status
  82. .in'ig.status: error: cannot find input file: `Makefile
该问题是configure.ac(或configure.in)文件的格式不正确导致,只需要用vi打开configure.ac或configure.in文件,然后用set ff=unix命令重新设置一下文件格式,然后保存退出,再autoreconf -vif一下,重新configure就好了。
阅读(960) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~