summaryrefslogtreecommitdiffstats
path: root/configure
Commit message (Collapse)AuthorAgeFilesLines
* configure: fix the static compilation for sdlTeLeMan2010-02-081-2/+5
| | | | | | | | The static compilation for sdl is broken after 79427693174a553d62f3da44aacd3f19ba8df3a7. Signed-off-by: TeLeMan <geleman@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* configure: Add --enable-docs and --disable-docs to --helpDirk Ullrich2010-02-081-0/+2
| | | | | | | | This patch adds the documentation-related options "--enable-docs" and "--disable-docs" to the help message of "configure". Signed-off-by: Dirk Ullrich <dirk.ullrich@googlemail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Add -static earlier to LDFLAGS for compile_prog()Loïc Minier2010-02-061-2/+3
| | | | | | | | | Add -static to LDFLAGS earlier as to run the compile_prog() tests with this flags, this will avoid turning on features for which a shared library is available but not a static one. Signed-off-by: Loïc Minier <lool@dooz.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* configure: remove debugging code introduced in ↵Aurelien Jarno2010-02-061-3/+0
| | | | | | aa527b65d8187b97d73f889b6cae7b6ac6f82d32 Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* configure: fix compilation on hosts without -fstack-protector-allAurelien Jarno2010-02-061-2/+5
| | | | | | | | | | | | Commit a0f291fc101a7ab3e40850a329da2cc2f2cd1f2d has enabled -fstack-protector-all on all targets, as the configure test is bogus. GCC only emits a warning and not an error if this option is not supported, so the configure scripts doesn't detect the problem. This patch changes the configure script to try the various flags with -Werror in addition to catch the possible warnings. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Solaris: test for presence of commands with has()Loïc Minier2010-01-281-5/+7
| | | | | Signed-off-by: Loïc Minier <lool@dooz.org> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Add and use has() and path_of() funcsLoïc Minier2010-01-281-9/+43
| | | | | | | | | Add has() and path_of() funcs and use them across configure; has() will test whether a command or builtin is available; path_of() will search the PATH for executables and return the full pathname if found. Signed-off-by: Loïc Minier <lool@dooz.org Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Check for sdl-config before calling itLoïc Minier2010-01-281-1/+6
| | | | | | | | | | | Check whether sdl-config is available before calling it, otherwise ./configure triggers a warning: ./configure: 957: sdl-config: not found If neither the .pc file not sdl-config are present, disable SDL support. Signed-off-by: Loïc Minier <lool@dooz.org> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Check availavility of -fstack-protector-allJuan Quintela2010-01-261-1/+1
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Enable _FORTIFY_SOURCE=2Kirill A. Shutemov2010-01-261-1/+1
| | | | | | | | | _FORTIFY_SOURCE is a Glibc feature which adds memory and string function protection. Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name> Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Support --sysconfdir in configure to specify path to configuration filesAnthony Liguori2010-01-241-0/+17
| | | | | | | | The default value is ${prefix}/etc/qemu. --sysconfdir can be used to override the default to an absolute path. The expectation is that when installed to /usr, --sysconfdir=/etc/qemu will be used. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* use pkg-config for libcurl whenever availablePaolo Bonzini2010-01-131-2/+8
| | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* use pkg-config for sdl whenever availablePaolo Bonzini2010-01-131-4/+10
| | | | | | | | Together with the first patch this enables using the prefixed pkg-config, thus picking up the correct flags for SDL. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* fixes to the static compilation case for sdlPaolo Bonzini2010-01-131-3/+3
| | | | | | | | | | | | | | | | | | | | | | After the next commit, pkg-config could be used for the shared library configuration case and sdl-config for static libraries. So I prepare the test here by doing two changes: at the same time I remove useless backslashes from the invocation of grep; 1) fixing a typo ($sd_cflags). The typo has been there since commit 1ac88f2 (remove sdl_static. Just do the right thing if static is yes, 2009-07-27). 2) fixing an erroneous "test `... | grep > /dev/null`" idiom that would never succeed since grep's output would be empty; 3) checking the status code after executing sdl-config --static --libs; this is needed for the next patch only. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* use cross-prefix for pkgconfigPaolo Bonzini2010-01-131-5/+14
| | | | | | | | Since pkgconfig can give different output for different targets, it should be tried with the cross-compilation prefix first. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* kvm: Detect availability of kvm_para.hJan Kiszka2010-01-121-0/+11
| | | | | | | | | Will be required for upcoming KVM cpuid leaf. Host kernels >= 2.6.32 as well as future kvm-kmod releases (more recent than kvm-kmod-2.6.32.3) do/will provide them. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* kvm: Use kvm-kmod headers if availableJan Kiszka2010-01-121-1/+1
| | | | | | | | Since kvm-kmod-2.6.32.2 we have an alternative source for recent KVM kernel headers. Use it when available and not overruled by --kerneldir. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* finish VPATH -> vpath translationPaolo Bonzini2010-01-081-3/+0
| | | | | | | | | | This adds a few more vpath suffixes and points the remaining two paths explicitly to $(SRC_PATH) in order to eliminate the VPATH assignment from config-host.mak. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Cc: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Drop --whole-archive and static librariesAndreas Färber2010-01-071-33/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Juan has contributed a cool Makefile infrastructure that enables us to drop static libraries completely: Move shared obj-y definitions to Makefile.objs, prefixed {common-,hw-,user-}, and link those object files directly into the executables. Replace HWLIB by HWDIR, specifying only the directory. Drop --whole-archive and ARLIBS in Makefiles and configure. Drop GENERATED_HEADERS dependency in rules.mak, since this rebuilds all common objects after generating a target-specific header; add dependency rules to Makefile and Makefile.target instead. v2: - Don't try to include /config.mak for user emulators - Changes to user object paths ("Quickfix for libuser.a drop") were obsoleted by "user_only: compile everything with -fpie" (Kirill A. Shutemov) v3: - Fix dependency modelling for tools - Remove comment on GENERATED_HEADERS obsoleted by this patch Signed-off-by: Andreas Färber <afaerber@opensolaris.org> Cc: Blue Swirl <blauwirbel@gmail.com> Cc: Palle Lyckegaard <palle@lyckegaard.dk> Cc: Ben Taylor <bentaylor.solx86@gmail.com> Cc: Juan Quintela <quintela@trasno.org> Cc: Kirill A. Shutemov <kirill@shutemov.name> Cc: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Compile qemu-nbd also on OpenBSD and SolarisBlue Swirl2009-12-231-1/+1
| | | | | | | | | basename() needs #include <libgen.h>. No prototype for daemon() is available on Solaris, but link succeeds. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* user_only: compile everything with -fpieKirill A. Shutemov2009-12-191-0/+3
| | | | | | | | | | | | We really need compile _all_ sources for user target with -fpie when use --enable-user-pie. It's regression introduced by commit add16157d72454. Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name> Cc: Blue Swirl <blauwirbel@gmail.com> Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* target-alpha: Enable softfloat.Richard Henderson2009-12-131-1/+1
| | | | | Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Do not abort on qemu_malloc(0) in production buildsAnthony Liguori2009-12-121-1/+17
| | | | | | | | | | | | qemu_malloc() does not allow size=0 to be passed in and aborts on this behavior. Unfortunately, there is good reason to believe that within qemu, there are a number of, so far, undetected places that assume size=0 can be safely passed. Since we do not want to abort unnecessarily in production builds, return qemu_malloc(1) whenever the version file indicates that this is a production build. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Add KVM support for S390xAlexander Graf2009-12-051-1/+3
| | | | | | | | | | | S390x was one of the first platforms that received support for KVM back in the day. Unfortunately until now there hasn't been a qemu implementation that would enable users to actually run guests. So let's include support for KVM S390x in qemu! Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* S/390 host/target build system supportAlexander Graf2009-12-051-7/+15
| | | | | | | | This patch makes configure aware of S390 hosts and guests. When not explicitly defined using --target-list= no S390 targets will be built though. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Suppress optionrom build on Solaris x86Andreas Faerber2009-12-031-1/+1
| | | | | | | | | | | | | | | | | | To avoid the build failing with: gcc -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno- builtin -I/export/home/andreas/QEMU/qemu -Wall -Wstrict-prototypes - Werror -fomit-frame-pointer -fno-builtin -I/export/home/andreas/QEMU/ qemu -c -o multiboot.o multiboot.S /var/tmp//ccd3aWyk.s: Assembler messages: /var/tmp//ccd3aWyk.s:15: Error: value of 512 too large for field of 1 bytes at 0000000000000002 gmake[1]: *** [multiboot.o] Error 1 disable recursion into pc-bios/optionrom, as done for Darwin already. Signed-off-by: Andreas Faerber <andreas.faerber@web.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Don't leak file descriptorsKevin Wolf2009-12-031-0/+20
| | | | | | | | We're leaking file descriptors to child processes. Set FD_CLOEXEC on file descriptors that don't need to be passed to children to stop this misbehaviour. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* configure: use correct cflags in compiler checksMichael S. Tsirkin2009-12-021-20/+21
| | | | | | | | | | | | | | | | | | | linux-user build on fedora 11 breaks because fallocate is broken on that system if -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 are specified, which is what QEMU uses. We do have a configure check to catch this and disable fallocate, however, it turns out that default QEMU_CFLAGS/LDFLAGS were assigned in script *after* all compiler checks: so during checks we were not running compiler with same flags that we used for build later. Fix this by moving QEMU_CFLAGS to before compiler checks, and using comple_prog when checking for fallocate. This also fixes the fact that we do some compiler checks while assigning the flags, right below a comment that says "no cc tests beyond this point". Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* tcg: initial mips supportAurelien Jarno2009-12-011-1/+6
| | | | | | | | | | | | | | | | Based on a patch from Arnaud Patard (Rtp) <arnaud.patard@rtp-net.org> A few words about design choices: * Two registers, at and t0, are reserved for TCG internal use. They are useful for bswap and 64-bit ops. * Most ops supports a constant argument with value 0, which is actually mapped to the zero register. * While the at register is available for constant loading, ops only support a limited range of constants. TCG does a better job doing the register allocation and constant loading by itself. There are plenty of registers available anyway. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Add support for GNU/kFreeBSDAurelien Jarno2009-11-291-1/+5
| | | | Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Makefile dependencies for device configsPaul Brook2009-11-221-4/+0
| | | | | | | | | | | | Add makefile dependencies for target specific device configs. These will copy the default config if none exists, obsoleting the old configure time code. If a config already exists but is older than the default then print a warning. Also remove config-devices.h. Code does not and should not care which devices are being built. Signed-off-by: Paul Brook <paul@codesourcery.com>
* configure: Fix spelling in comment and rework the commentStefan Weil2009-11-211-8/+10
| | | | | | | | | | | | * Replace vill -> will. * Comment was formatted to make it more readable and to conform to the coding standard, too. * Description of foo="" was completed. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* qemu-io: build on all platformsAurelien Jarno2009-11-211-4/+2
| | | | | | | | | Since c32d766af127f68bb75ba5689f2f5239227bf559, qemu-io should be portable. It is currently built only on linux and mingw32. This patch enables qemu-io on all platforms. Tested on FreeBSD. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* audio: link with -lpulse in addition to -lpulse-simpleAurelien Jarno2009-11-181-2/+2
| | | | | | | Link with -lpulse in addition to -lpulse-simple, needed when --no-add-needed is passed to the linker (gold default). Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Fix typoBlue Swirl2009-11-171-1/+1
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Prevent configuring for a user emulator on a different type of OSBlue Swirl2009-11-171-0/+12
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Add a unit test for JSON supportAnthony Liguori2009-11-171-1/+1
| | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Add unit test for QFloatAnthony Liguori2009-11-171-0/+1
| | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Cleanup configure checks for dup3 and fallocateJan Kiszka2009-11-171-2/+2
| | | | | | | We have a function for this which does not issue annoying warnings. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Configurable block format whitelistMarkus Armbruster2009-11-091-0/+7
| | | | | | | | | | | | | | | | | | | | We have code for a quite a few block formats. While I trust that all of these formats are useful at least for some people in some circumstances, some of them are of a kind that friends don't let friends use in production. This patch provides an optional block format whitelist, default off. If a whitelist is configured with --block-drv-whitelist, QEMU proper can use only whitelisted formats. Other programs, like qemu-img, are not affected. Drivers for formats off the whitelist still participate in format probing, to ensure all programs probe exactly the same. Without that, QEMU proper would be prone to treat images with a format off the whitelist as raw when the image's format is probed. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Fix the build when srcdir == objdirAnthony Liguori2009-11-021-3/+3
| | | | | | | | | | | | | | You would only see this error on a fresh clone when srcdir == objdir. configure will fail because roms/pcbios doesn't exist. git submodule integration doesn't cleanup very well when switching between branches so you'll get an roms/pcbios directory from normal operations if you switch between old branches. Thanks to a mistake in configure, if you build outside of srcdir, you'll also get a valid roms/pcbios. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* build: add CONFIG_LINUXMark McLoughlin2009-10-301-0/+4
| | | | | | | | So I can add a tap-linux.c and use CONFIG_LINUX to pull it in in Makefile Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* net: move net-queue.[ch] under net/Mark McLoughlin2009-10-301-1/+1
| | | | | | | [v2: handle building in a separate dir] Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Merge commit 'linux-user/linux-user-for-upstream' into stagingAnthony Liguori2009-10-211-0/+36
|\
| * implementations of dup3 and fallocate that are good enough to fool LTPUlrich Hecht2009-10-151-0/+36
| | | | | | | | | | | | | | | | | | | | updated fallocate check to new configure, added dup3 check as suggested by Jan-Simon Möller. Riku: updated to apply to current git. Signed-off-by: Ulrich Hecht <uli@suse.de> Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
* | Suppress warnings about 'warn_unused_result' attribute directiveBlue Swirl2009-10-181-0/+20
|/ | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* configure: clean temporary executable files even on Windowsmalc2009-10-151-1/+1
| | | | Signed-off-by: malc <av1474@comtv.ru>
* Fix bswap in commentStefan Weil2009-10-111-2/+2
| | | | | | | Replace bsawp -> bswap. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Move dependency generation falgs out of configuremalc2009-10-111-3/+2
| | | | Signed-off-by: malc <av1474@comtv.ru>
* configure: clean up temporary dependency filesmalc2009-10-111-1/+2
| | | | Signed-off-by: malc <av1474@comtv.ru>
OpenPOWER on IntegriCloud