f*********u 发帖数: 455 | 1 I want to install autoconf-2.66 into my computer. However, to install
autoconf-2.66 requires autoconf-2.60 or higher.
How should i do that?
I have m4-1.4.14 installed already.
Thanks
[wliu3@dove1 autoconf-2.66]$ make
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/wliu3/autoconf-2.66/
build-aux/missing --run autoconf
aclocal.m4:20: warning: this file was generated for autoconf 2.66.
You have another version of autoconf. It may work, but is not guaranteed to.
If you have problems, you may ne |
|
|
|
p*******e 发帖数: 16 | 4 【 以下文字转载自 Linux 讨论区,原文如下 】
发信人: prejudice (偏见), 信区: Linux
标 题: autoconf help needed
发信站: The unknown SPACE (Wed Dec 18 15:04:40 2002) WWW-POST
This might be a little bit too difficult, but I want to give it a try.
Actually I have two questions regarding autoconf:
1. When I use AC_TRY_COMPILE(includes, function-body, [action-if-found],
[action-if-not-found]), I plugged my codes in "includes" and
"function-boday" parts. But when I run it, autoconf automatically added
some include files (in the fo |
|
l*********i 发帖数: 483 | 5 【 以下文字转载自 Programming 讨论区 】
发信人: lamborghini (隐形汽车Reventon), 信区: Programming
标 题: 问个autoconf的问题
发信站: BBS 未名空间站 (Mon Feb 25 06:33:56 2008), 转信
在Linux底下的一个数值计算的C++ code,Makefile是由autoconf生成的,
如果我想要生成一个完全不用动态库的可执行文件,应该给./configure加
什么参数呢?印象里如果是自己手动写的Makefile的话,只要加上-static
这个参数就可以了,但是不知道用autoconf的时候应该怎么弄。我试着用
"./configure --disable-shared --enable-static",但是用ldd看身成的
可执行文件,还是输出如下的结果:
$ ldd simple-snr
libgsl.so.0 => /usr/lib/libgsl.so.0 (0x00002b5d36624000)
libgslcblas.so.0 => /usr/ |
|
|
|
l*********i 发帖数: 483 | 8 在Linux底下的一个数值计算的C++ code,Makefile是由autoconf生成的,
如果我想要生成一个完全不用动态库的可执行文件,应该给./configure加
什么参数呢?印象里如果是自己手动写的Makefile的话,只要加上-static
这个参数就可以了,但是不知道用autoconf的时候应该怎么弄。我试着用
"./configure --disable-shared --enable-static",但是用ldd看身成的
可执行文件,还是输出如下的结果:
$ ldd simple-snr
libgsl.so.0 => /usr/lib/libgsl.so.0 (0x00002b5d36624000)
libgslcblas.so.0 => /usr/lib/libgslcblas.so.0 (0x00002b5d36a0b000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00002b5d36c3b000)
libm.so.6 => /lib/libm |
|
z***l 发帖数: 256 | 9 http://www.gnu.org/software/autoconf/manual/html_node/Introduction.html#Introduction
A physicist, an engineer, and a computer scientist were discussing the
nature of God. “Surely a Physicist,” said the physicist, “because
early in the Creation, God made Light; and you know, Maxwell's
equations, the dual nature of electromagnetic waves, the relativistic
consequences....” “An Engineer!,” said the engineer, “because
before making Light, God split the Chaos into Land and Water; it takes a
hell of an |
|
|
g*****d 发帖数: 35 | 11 Hi,
I met a big headache in sgi workstation. In this machine, the c++ compiler is
CC although there is a "c++" program (it's named "c++") which doesn't work at
all.
=======
In my configure.in file:
i used
AC_PROG_CXX()
...
AC_SUBST(CXX)
..
AC_OUPUT(Makefile)
in my Makefile.in file:
...
C++ = @CXX@
...
=======
However, the configure generated by autoconf always set CXX to be c++ and thus
the resulting Makefile (C++ = c++) always. I also tried AC_PROG_CXX( CC g++
c++ ) and got same result. It see |
|
F****3 发帖数: 1504 | 12 谢谢各位大哥帮忙!!!!
试了一下autoconf,好像卡住了。
fas133@ubuntu:~/temp/geoip-api-c-master$ autoconf
configure.ac:6: error: possibly undefined macro: AM_INIT_AUTOMAKE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
./configure终于能执行了。
fas133@ubuntu:~/temp/geoip-api-c-master$ ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
... 阅读全帖 |
|
b*******s 发帖数: 5216 | 13 去看了下
你要做的就是建autoconf.ac
然后把他写的automake.am引用起来就行了
你可以搜索下autoconf.ac的简单例子
good luck |
|
t****t 发帖数: 6806 | 14 ok, autoconf is not necessary better than pragma pack.
but in reality, most gnu package use autoconf.:) |
|
r*******q 发帖数: 50 | 15 That does not mean autoconf is good way to do that.
And, there is something autoconf can't do or is difficult to do
but pragma pack can do easily. And such condition is much more
important than portability. Indeed pragma pack's primary
purpose is NOT portability... |
|
g****t 发帖数: 31659 | 16 后来他自己删了的。
I hate almost all software. It's unnecessary and complicated at almost every
layer. At best I can congratulate someone for quickly and simply solving a
problem on top of the shit that they are given. The only software that I
like is one that I can easily understand and solves my problems. The amount
of complexity I'm willing to tolerate is proportional to the size of the
problem being solved.
In the past year I think I have finally come to understand the ideals of
Unix: file descriptor... 阅读全帖 |
|
p****s 发帖数: 3184 | 17
Better learn GNU's "autoconf" to resolve incompatibilites among UNIX
variants. The "configure" utilities come with most GNU software
is produced by "autoconf". |
|
r*****e 发帖数: 792 | 18 i did use ./configure --prefix=$HOME/cxterm and then got these messages:
/usr/local/bin/autoheader: Symbol `PACKAGE' is not covered by
/usr/local/share/autoconf/acconfig.h ./acconfig.h
/usr/local/bin/autoheader: Symbol `VERSION' is not covered by
/usr/local/share/autoconf/acconfig.h ./acconfig.h
*** Error code 1
make: Fatal error: Command failed for target `stamp-h.in'
这可怎么办呢?我没权限进行改动啊?
能改别的地方吗?比如Makefile or configure 等等。
谢了! |
|
s**x 发帖数: 7506 | 19 I believe leetcode provide a simple solution which may overflow, but
actually it is correct.
You can simply use unsigned int. I would think even an int would work as
well.
bool isPalindrome(int num) {
if(num < 0) return false;
unsigned int oldNum = num;
unsigned int rev = 0;
while (num != 0) {
rev = rev * 10 + num % 10;
num /= 10;
}
return rev == oldNum);
}
The following is from gnu comments.
13.2.1 Basics of Integer Overflow
In languages like C, unsigned integer overflow ... 阅读全帖 |
|
p*****a 发帖数: 1152 | 20 然后每个软件包有个PKGBUILD文件,可能相当于Gentoo的ebuild,里面可以进一步调整
编译参数,pcmanx-gtk2的例子:
# Maintainer: Shinlun Hsieh
# Contributor: Yenting Chen
# Contributor: Lyman Li
pkgname=pcmanx-gtk2
pkgver=0.3.9
pkgrel=1
pkgdesc="A gtk+ based free BBS client"
arch=('i686' 'x86_64')
url="http://code.google.com/p/pcmanx-gtk2"
license=('GPL')
depends=('gtk2')
makedepends=('autoconf automake')
options=('!libtool')
source=http://pcmanx-gtk2.googlecode.com/svn/websi |
|
r****t 发帖数: 10904 | 21 你不能找个中间版本试试么?为什么不用别人打包好的要自己装? |
|
C****R 发帖数: 282 | 22 you can use aptitude, which will help you install dependencies
to. |
|
|
|
d********g 发帖数: 10550 | 25 性能最优其实是个伪命题,应用程序本机编译完全没什么优势,平时哪有那么多参数好
研究?就是图个感觉罢了
我举个例子,比如你用某一版本的g++按照自己认为的最优配置把系统整个编译了一遍
,暂且认为你得到了一个最优系统。突然第二天g++、autoconf、automake都升级了,
修正了若干bug不说同时也优化了编译质量,那按照性能最优的追求,强迫症患者必须
用新版本的工具再把整个系统编译一遍,否则就不是性能最优了
内核编译一下性能提升很明显,某些需要自己修改或者有特殊用途的软件本机编译倒也
无可厚非。全部都要霸王硬上弓的话个人觉得意义不是很大 |
|
S*A 发帖数: 7142 | 26 说的都很对,
就是 port 20K LOC 不用cygwin 和重写差不多?这个我觉得不至于。
porting 的很多问题都是纸老虎,刚开始编译几万个错误。
一些基本的东西 fix 了以后错误就急剧下降了。因为很多都是抱怨
同样的错。
Open source 很多都是用 autoconf/automake 那一套的,但是如果就
是 port到 windows 的话,应该用不上。 automake 超级复杂,我很不
喜欢用。我自己的项目都不用 automake 的。手写 Makefile 好多了。 |
|
d****d 发帖数: 2919 | 27 T410, NV的独立显卡。
装了下面这一堆东西,觉得够用了。
pacman -Q -e
acpid 2.0.10-2
acroread 9.4.2-1
alsa-oss 1.0.17-1
alsa-utils 1.0.24.2-1
archlinux-themes-slim 1.2-2
artwiz-fonts 1.3-6
aspell-en 7.1-1
attr 2.4.46-1
autoconf 2.68-1
automake 1.11.1-2
bash 4.2.010-1
binutils 2.21.1-1
bison 2.5-1
bzip2 1.0.6-1
cheese 3.0.1-2
chromium 12.0.742.112-1
coreutils 8.12-3
cryptsetup 1.3.1-2
dash 0.5.6.1-2
dcron 4.5-2
device-mapper 2.02.85-3
dhcpcd 5.2.12-1
diffutils 3.0-2
e2fsprogs 1.41.14-1
emacs 23.3-1
emesene 2.11.5-2
exo 0... 阅读全帖 |
|
c********l 发帖数: 8138 | 28 【 以下文字转载自 Programming 讨论区 】
发信人: coupondeal (Coupon Deal), 信区: Programming
标 题: 求教:Linux下的一个编译配置问题
发信站: BBS 未名空间站 (Thu Feb 6 21:35:37 2014, 美东)
在Linux下需要编译一个比较旧的project
该project需要在编译之前运行
aclocal && autoconf && automake -a
但是在运行aclocal时,提示:需要将configure.in改名为configure.ac
于是照做
但在automake -a时,又提示“需要Makefiles.am,但是找不到”
于是将Makefiles.in改名为Makefiles.am,显然,格式不对
这个问题怎么解决? |
|
W*****x 发帖数: 684 | 29 $cd geoip-api-c-master
$autoconf
$./configure
then,,, |
|
S*A 发帖数: 7142 | 30 你想装的是神魔API?
一般都带个 bootstrap 的脚本来自动生成可以用的
configure 不用你自己一点点试用。
autoconf 和 automake 是非常恶心的东西。
能用就最好,不要去改。 |
|
W*****x 发帖数: 684 | 31 $ cd geoip-api-c-master
$ libtoolize
$ aclocal
$ autoconf
$ automake --add-missing
$./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
... 阅读全帖 |
|
t****t 发帖数: 6806 | 32 i don't think using pragma will make the program more
portable. although pragma pack is supported by quite
many compilers, pragma itself is always implementation-
dependent which means not portable. I would rather use
autoconf... |
|
r*******q 发帖数: 50 | 33 Your assumption is autoconf is more portable than pragma pack...
But it seems not true. |
|
l*********i 发帖数: 483 | 34 解决了,原来用./configure LDFLAGS="-all-static"就可以了,呵呵。 |
|
c*****t 发帖数: 1879 | 35 I guess that you may have to write your own macros to deal with
cross platform issues since long is usually only 32-bit on 32-bit
machines. Or maybe consider using autoconf.
MinGW has
_CRTIMP __int64 __cdecl __MINGW_NOTHROW _ftelli64 (FILE*);
VS9:
_Check_return_ _CRTIMP __int64 __cdecl _ftelli64(_Inout_ FILE * _
File);
SunOs 5.1:
extern off64_t ftello64(FILE *); |
|
g****y 发帖数: 436 | 36 添加
#include
之后,得到文件 BEDFileData.o,编译成功!
但是随后又发现另外的一个cpp文件编译错误,提示
'EXIT_FAILURE' was not declared in this scope
我最近才开始用gcc,但是这个代码是2005年由一个大公司写成的,之前也有人编译成功
,请问gcc的版本对于代码由影响吗?之前好像听说比如autoconf 只有2.13版本才能编
译gcc自己的source。 |
|
b******n 发帖数: 592 | 37 最近写了一个小程序,想开源。因为用到了另外一个软件包,所以想用autoconf。之前
没有用过这个,make都是自己写,看到eclipse上面有autotools的插件,下载下来。怎么
都搞不定。根本不编译,说没有configure。ac。不是应该插件自己生成么。 |
|
x*******1 发帖数: 28835 | 38 libtool, autoconf, automake three pieces of projects environment. |
|
|
x****u 发帖数: 44466 | 40 靠,UNIX有个毛兼容性。autoconf就是打脸的。 |
|
c********l 发帖数: 8138 | 41 在Linux下需要编译一个比较旧的project
该project需要在编译之前运行
aclocal && autoconf && automake -a
但是在运行aclocal时,提示:需要将configure.in改名为configure.ac
于是照做
但在automake -a时,又提示“需要Makefiles.am,但是找不到”
于是将Makefiles.in改名为Makefiles.am,显然,格式不对
这个问题怎么解决? |
|
c********l 发帖数: 8138 | 42 不是,
./configure是后面的一步,我说的问题是前面几卡
附:instruction上写的顺序是:
5) aclocal
6) autoconf
7) automake -a
8) ./configure
9) make & make install |
|
b*******s 发帖数: 5216 | 43 autoconf automake网上找个教程做做试验就是了
很简单的 |
|
|
|
|
|
S*A 发帖数: 7142 | 48 请给多点信息
你的项目有多少个子目录?
需要兼容多少个编译平台, Linux and ...?
用到什么编译工具,例如 gcc, c++ etc?
用到什么编译 lib。
如果就是 Linux 一个的话,那应该很简单的。 |
|
S*A 发帖数: 7142 | 49 你需要把源程序包给别人才能开发的,不然如何能调试呢。
你能给别人源程序吗? |
|