autoconf

Should a “configure” script be distributed if configure.ac is available?

蹲街弑〆低调 提交于 2019-12-30 18:46:12
问题 Currently, our installation instructions are: autoreconf -fi ./configure ... The autoreconf step generates the configure file from configure.ac and Makefile.in from Makefile.in . If one of the dependencies (say pkg-config ) is not installed, both configure and autoreconf fail although the latter prints a cryptic error message. When releasing source tarballs, should the configure script be supplied in the package or not? What other files need to be included if it has to be distributed? The

How do I modify the install name of a .dylib at build time

杀马特。学长 韩版系。学妹 提交于 2019-12-29 06:19:31
问题 I am building the google-gflags commandline flags library for C++ on Mac OS X (10.7.1). The build process is as such: $ ./configure --prefix=output $ make $ make install I'd like to change the install name of the generated shared library at build time and not use install_name_tool afterwards. By default, the install name of the generated shared library, libgflags.dylib , is the output path: $ otool -L ./output/libgflags.dylib $ ./output/libgflags.dylib: /tmp/gflags-1.5/output/lib/libgflags.0

GNU autotools: Debug/Release targets?

霸气de小男生 提交于 2019-12-29 02:21:47
问题 I've been looking for this for a while: I'm currently converting a medium-size program to autotools, coming from an Eclipse-based method (with makefiles) I'm always used to having a "debug" build, with all debug symbols and no optimizations, and a "release" build, without debug symbols and best optimizations. Now I'm trying to replicate this in some way with autotools, so I can (perhaps) do something like: ./configure make debug Which would have all debug symbols and no optimizations, and

CentOS 7安装MySQL

与世无争的帅哥 提交于 2019-12-28 14:19:26
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 一、准备安装文件 先去 官网 下载安装包,注意系统要选择RedHat 7 然后解压得到下边这些文件 二、开始安装 #删除mariadb的文件,不然会冲突 [iceberg@localhost mysql5.5]# sudo yum -y remove mariadb-libs [iceberg@localhost mysql5.5]# sudo rpm -ivh *.rpm warning: MySQL-client-5.5.62-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY error: Failed dependencies: perl(Data::Dumper) is needed by MySQL-server-5.5.62-1.el7.x86_64 perl(Data::Dumper) is needed by MySQL-test-5.5.62-1.el7.x86_64 方案: 安装 perl 和 自动配置 autoconf # 安装 perl [iceberg@localhost mysql5.5]# sudo yum install perl # 安装 autoconf 解决 perl(Data:

Cross-compiling for ARM with Autoconf

早过忘川 提交于 2019-12-28 05:53:05
问题 I am having trouble cross-compiling a library for my arm board using autconf. I am using this line: ./configure --target=arm-linux --host=arm-linux --prefix=/bla/bla/bla/linux_arm_tool CFLAGS='-m32' make make install When I do file to check it I get: libjpeg.so.8.4.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, not stripped That doesn't seem right at all, but I tried using it anyway... and I get: /usr/lib/gcc/arm-linux-gnueabi/4.5.3/../../../../arm-linux

hadoop 支持LZO压缩

吃可爱长大的小学妹 提交于 2019-12-26 19:07:57
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Hadoop支持LZO 0. 环境准备 maven(下载安装,配置环境变量,修改sitting.xml加阿里云镜像) gcc-c++ zlib-devel autoconf automake libtool 通过yum安装即可 yum -y install gcc-c++ lzo-devel zlib-devel autoconf automake libtool 1. 下载、安装并编译LZO wget http://www.oberhumer.com/opensource/lzo/download/lzo-2.10.tar.gz tar -zxvf lzo-2.10.tar.gz cd lzo-2.10 ./configure -prefix=/usr/local/hadoop/lzo/ make make install 2. 编译hadoop-lzo源码 2.1 下载hadoop-lzo的源码 下载地址:https://github.com/twitter/hadoop-lzo/archive/master.zip 2.2 解压之后,修改pom.xml <hadoop.current.version>2.7.2</hadoop.current.version> 2.3 声明两个临时环境变量 export

Autoconf triplet for Android x86_64?

大憨熊 提交于 2019-12-25 04:45:19
问题 I wanted to examine the issue from this question: Android NDK for x86_64 has no reference for bcopy and index. In the question, the poster asked about Android x86_64 and bcopy in relation to the Lame sound library. I set up my cross-compile environment, set the paths for tools and sysroot, and exported the usual suspects like CC , CXX CFLAGS , CXXFLAGS , etc. For example: $ echo $CC x86_64-linux-android-gcc $ which x86_64-linux-android-gcc /opt/android-ndk-r10d/toolchains/x86_64-4.9/prebuilt

configure.ac: Library and headers not usable and not present

你离开我真会死。 提交于 2019-12-25 02:23:26
问题 I have implemented a logging library in C (which I've named liblogger), and used Autotools to compile and install it. As far as I can see, the installation is correctly done, since the headers and the library itself (which I currently bundle into a static library) are installed into the appropriate directories (/usr/local/include/liblogger/ for the headers and /usr/local/lib for the .a). Now I am trying to link another tool with that library (compiled and built also using Autotools). To check

How to build in a separate directory with autotool

给你一囗甜甜゛ 提交于 2019-12-25 01:32:14
问题 I have a working directory as below: ./ |----HelloWorld/ |----|----main.cpp |----|----Makefile.am |----Pet/ |----|----Pet.h |----|----Pet.cpp |----build/ |----configure.ac |----Makefile.am I would like to use the autotool to construct makefile and then build the project in the build directory. The ./configure.ac is # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.69]) AC_INIT([Hello], [1.0], [qub@oregonstate.edu]) AM_INIT_AUTOMAKE([-Wall -Werror

Find the GCC Version

孤街浪徒 提交于 2019-12-24 12:14:28
问题 Using autoconf/automake how does one find the GCC version on the system? To get the python version installed you'd use AM_PATH_PYTHON, and then the PYTHON_VERSION variable would be available. Is there something similar for the GCC version? (Also, is it possible to get the major, minor and patch level of gcc?) 回答1: A quick search reveals the ax_gcc_version macro which should give you the GCC_VERSION variable. Unfortunately, that macro depends on AX_GCC_OPTION which has recently been deprecated