configure

How to get a configure script to look for a library

我的梦境 提交于 2019-12-04 18:34:33
I'm trying to write a configure.ac file such that the resulting configure script searches for a library directory containing a given static library e.g. libsomething.a. How can I do this? At the moment I have it check just one location with: AC_CHECK_FILE([/usr/local/lib/libsomething.a],[AC_SUBST(libsomething,"-L/usr/local/lib -lsomething")],[AC_SUBST(libcfitsio,'')]) But I want it to try and find it automatically. And if the library isn't in one of the default locations, I'd like configure to say that the library wasn't found and that a custom location can be specified with --use-something

including static library to ./configure

巧了我就是萌 提交于 2019-12-04 12:20:58
how do i include two static library while executing the command ./configure . Ex: ./configure --prefix=/usr \ LDFLAGS="-L/home/lancy/dictionary/src/WordNet-3.0/lib -lWN" here only one static library is include. how do i add such another static library to LDFLAGS in the same command. You can just add more linker switches, e.g. LDFLAGS="-L/path/1/ -lLib1 -L/path/2/ -lLib2" But you might do better editing these into the Makefile.in unless you need them for the configure checks too? 来源: https://stackoverflow.com/questions/3482853/including-static-library-to-configure

Check framework example giving me error when running './configure'

孤街浪徒 提交于 2019-12-04 09:15:43
I'm building the check framework example 'check_money', but it's not building on my machine. The error is: configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.." I've tried installing it using: libtoolize --force aclocal autoheader automake --force-missing --add-missing autoconf ./configure It's still giving me the same error. So, I copied the same directory to another directory and ran: autoreconf --install ./configure And it's still giving me the same error. I don't know what else to try. I'm on Mac OS X Mavericks (10.9) Autoconf 2.69 Automake 1.15 Libtool 2

About arm-eabi-gcc and cross-compiling

别说谁变了你拦得住时间么 提交于 2019-12-04 07:42:08
问题 I have a complicated open source library that needs to be ported to Android NDK. First, I need to configure (. / Configure). I understand: I have to do cross-compile with / home/user/android-ndk/build/prebuilt/ linux-x86/arm-eabi-4.4.0/bin/arm-eabi-gcc I think right? This utility will correctly configures a library? If yes, then question 2: 1.I'm trying to compile such a library: libao. use these commands: PREBUILT = / home/user/android-ndk/build/prebuilt/linux-x86/arm- eabi-4.4.0 PLATFORM =

ncurses not found when trying to build vim

半腔热情 提交于 2019-12-04 01:52:47
问题 I am trying to build vim in my user dir after recently upgraded to Fedora 23 I have ncurses and ncurses-devel [root@statquant-laptop lib]# dnf install ncurses Last metadata expiration check performed 1:09:48 ago on Sat Jan 9 10:33:06 2016. Package ncurses-5.9-21.20150214.fc23.x86_64 is already installed, skipping. Dependencies resolved. Nothing to do. Complete! [root@statquant-laptop lib]# dnf install ncurses-devel Last metadata expiration check performed 1:09:58 ago on Sat Jan 9 10:33:06

Configure JDBC driver in JBoss 7 - as a deployment OR as a module?

我们两清 提交于 2019-12-03 21:18:17
As mentioned in the article https://community.jboss.org/wiki/DataSourceConfigurationInAS7 JBoss 7 provides 2 main ways to configure a data source. What is the BEST practice of configuring a data source in JBoss 7 AS ? Is it As a module? As a deployment? (The same question has been asked in the thread https://community.jboss.org/thread/198023 , but no one has provided an acceptable answer yet.) The guide JBoss AS7 DS configuration says the recommended way is to configure the datasource by deployment But according to discussion on the link Jboss 7 DS configuration JBoss Community Discussion on

autotools syntax error with ax_check_compile_flag

梦想的初衷 提交于 2019-12-03 20:48:17
问题 I am using autotools for building my C++ application. In my configure.ac I have the following line: AX_CHECK_COMPILE_FLAG([-Wall], [CPPFLAGS="$CPPFLAGS -Wall"]) which causes the following error when executing ./configure (after running autoreconf -i ): ./configure: line 3825: syntax error near unexpected token `-Wall,' ./configure: line 3825: `AX_CHECK_COMPILE_FLAG(-Wall, CPPFLAGS="$CPPFLAGS -Wall")' My system: Linux web 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u2 x86_64 GNU/Linux On my

“Logging out” of phpMyAdmin?

我们两清 提交于 2019-12-03 18:57:10
问题 The error that I get on phpMyAdmin is the following The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated." I have googled and looked this up for a while now and the common answer that comes up is to Log Out/In or the clear the cookies and cache. Clearing the cookies and caches did not work for me. I have tried to logout, but cannot seem to be able to find out how to, because in the updated version of phpMyAdmin, I believe that there

configure does not recognize androideabi

我的未来我决定 提交于 2019-12-03 18:28:41
问题 I am trying to compile a library using android-ndk-r5 standalone toolchain and autotools. When doing a ./configure, it fails with: $ ./configure --host=arm-linux-androideabi ...snip... checking host system type... Invalid configuration `arm-linux-androideabi': system `androideabi' not recognized configure: error: /bin/sh ./config.sub arm-linux-androideabi failed Explicitly setting CC and CXX does not work either (configure says to use --host). The NDK docs and various materials online seems

Where to put struts.xml

筅森魡賤 提交于 2019-12-03 15:39:44
问题 With Struts2 we have to have struts.xml in the class path, so it no longer works to have it under WEB-INF. So the way I got my project to deploy was to stick it under WEB-INF/classes and have it include ../struts2.xml 2 Problems: Eclipse cleans out the classes folder when I do a rebuild, so it deletes struts.xml Eclipse doesn't show the classes folder in my project browser, so its a poor place to stick config files in the first place. How are you Struts2 Eclipse developers doing this? 回答1: