autotools

Why does clang -dumpversion report 4.2.1

时光怂恿深爱的人放手 提交于 2019-12-08 15:40:27
问题 I was trying to use -dumpversion to determine if the compiler is usable. My project compiles with clang and newer gccs, but not with the old gcc 4.2.1. So why does clang pretend to be an old gcc? Extra questions, is it possible to change this value at runtime? Or does anyone have a nice autoconf macro to determine the compiler version with both clang and gcc? 回答1: Clang was originally written to be compatible with gcc 4.2.1. There has been some discussion about updating that number earlier

Which processes in the autoconf and automake flowchart are performed by who and when?

一笑奈何 提交于 2019-12-08 06:41:06
问题 In the flowchart of autoconf and automake from https://en.wikipedia.org/wiki/Automake , there are several processes autoscan alocal autoheader autoconf automake configure make Which processes are performed by a user of a software program after he downloaded the distribution of the software program by the party who creates the distribution of the software program from its source code (and who is likely the author of the software program)? I ask this question, because I remember that after I,

Which processes in the autoconf and automake flowchart are performed by who and when?

穿精又带淫゛_ 提交于 2019-12-08 05:18:28
In the flowchart of autoconf and automake from https://en.wikipedia.org/wiki/Automake , there are several processes autoscan alocal autoheader autoconf automake configure make Which processes are performed by a user of a software program after he downloaded the distribution of the software program by the party who creates the distribution of the software program from its source code (and who is likely the author of the software program)? I ask this question, because I remember that after I, as a user of some software program, downloaded its source distribution, the commands I ran to build an

PKG_CHECK_MODULES breaking in solaris

橙三吉。 提交于 2019-12-08 04:09:00
问题 My project requires dependency of libxml2 am using autotools to check the dependencies & install the same. I declare the dependency of using the following macro in configure.ac echo -n "checking if libxml2 is present... " PKG_CHECK_MODULES([LIBXML2], [libxml-2.0 >= 2.6.19], [echo "yes (features requiring libxml2 enabled)" AC_DEFINE(HAVE_LIB_XML, 1, [define if libxml2 is present])], [echo "no"] ) The macro works as desired in GNU/Linux . But somehow it fails in Solaris with the following error

g++-4.6.real: error: unrecognized option '-R'

有些话、适合烂在心里 提交于 2019-12-08 03:00:01
问题 I am trying to compile phpcompiler from source using this configure command. ./configure --prefix=/opt/phc-0.3.0.1/ --with-php=/opt/php-5.3.17/ The configure error was, checking for exit in -lboost_regex-mt... no checking for exit in -lboost_regex-mt... (cached) no checking for exit in -lboost_regex... no checking for exit in -lboost_regex... (cached) no checking for exit in -lboost_regex... (cached) no configure: error: Could not link against boost_regex Thats completely wrong as I have both

Command line error D8003 : missing source filename When linking

廉价感情. 提交于 2019-12-08 01:12:38
问题 I'm using Autotools to compile Matlab modules. Originally, we used Libtool to accomplish, but it really does a terrible job dealing with Microsoft's compilers. As such, we are removing Libtool for Windows builds. Here is some information that might be useful: $ cl /V Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. $ uname -a CYGWIN_NT-6.1 RatTop 1.7.18(0.263/5/3) 2013-04-19 10:39 i686 Cygwin

Automake Combine two static libraries into one

妖精的绣舞 提交于 2019-12-07 21:09:48
问题 I am trying to include symbols from a pre-built static library into a static library that I am building. The static library that I am building is then used inside of an executable. The problem I am having is that I am getting undefined symbols in my static library from the other static library. Which means the symbols I need from the pre-built static library are not being included in my static library. What is the correct approach with auto tools to do this? I know I need to un-archive the

Is there any documentation for building OS X frameworks using autotools?

老子叫甜甜 提交于 2019-12-07 13:29:04
问题 I have a cross-platform shared library, and I am using GNU autotools for the build system. I would like to be able to package the library as a framework on OS X. Is it possible to do this with autotools + additional scripting e.g. bash? Is there any good documentation for doing this, or does anyone know an example of a project that does this, which I could copy? 回答1: A framework is a glorified directory that includes a metadata file (Info.plist) and one or more libraries. I’m not sure if

Libtool slowness, double building?

守給你的承諾、 提交于 2019-12-07 12:02:49
问题 In my project, modules are organized in subdirs for tidiness. My project dir hierarchy: $ ls -R .: configure.in Makefile.am Makefile.cvs src ./src: log Makefile.am main.cpp ./src/log: log.cpp Makefile.am configure.in: AC_INIT(configure.in) AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(myapp, 0.1) AC_LANG_CPLUSPLUS AC_PROG_CXX AM_PROG_LIBTOOL AC_OUTPUT(Makefile src/Makefile src/log/Makefile) Makefile.am: AUTOMAKE_OPTIONS = foreign SUBDIRS = src Makefile.cvs: default: aclocal libtoolize --force -

“Help” string variable substitution for “configure --help”

点点圈 提交于 2019-12-07 11:36:25
问题 I have a string that I want to use multiple times for the output of configure --help . So I try doing something like this in configure.ac : AC_ARG_ENABLE([foobar], AS_HELP_STRING([--enable-foobar], [$foobar_help_str])) But no expansion or substitution is done, so the output is just $foobar_help_str . 回答1: Define the string as an M4 macro: m4_define([FOOBAR_HELP_STR], [Turn on the foobar features]) AC_ARG_ENABLE([foobar], [AS_HELP_STRING([--enable-foobar], FOOBAR_HELP_STR)]) 回答2: FYI, if you