aboutsummaryrefslogtreecommitdiffstats
path: root/tools/configure
Commit message (Collapse)AuthorAgeFilesLines
* autoconf: check for dev86 and iasl on x86* onlyRoger Pau Monne2012-05-141-0/+5
| | | | | | | | Check for this tools on x86 systems only. Signed-off-by: Roger Pau Monne <roger.pau@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* autoconf: New test for openpty et al.Ian Jackson2012-05-111-0/+61
| | | | | | | | | | | | | | | | | | | | | | | We may need to #include <libutil.h>, and/or link with -lutil, to use openpty, login_tty, and the like. Provide INCLUDE_LIBUTIL_H (preprocessor constant, not always defined) and PTYFUNCS_LIBS (makefile variable). We link libxl against PTYFUNCS_LIBS (which comes from autoconf) rather than UTIL_LIBS, and #include <libutil.h> where appropriate. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Changes since v7: * Actually include the call to AX_CHECK_PTYFUNCS in this patch, not the previous one, and regenerate configure accordingly. Changes since v6: * Put failure macro call in correct place so it might actually happen. * Try both with -lutil and without. * Patch now contains update for config.h.in. Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
* autoconf: trim the configure script; use autoheaderIan Jackson2012-05-111-3661/+676
| | | | | | | | | | | | | | | | Remove a lot of unnecessary tests. Specifically, we no longer test for standard POSIX facilities which we expect to be provided everywhere and which we don't in any case have any alternative for. Switch to generating config.h.in with autoheader. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Cc: Roger Pau Monne <roger.pau@entel.upc.edu> Changes since v7: * Removed AX_CHECK_PTYFUNCS (snuck in from previous patch) Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
* libxl, configure: print a warning if flex/bison are neededRoger Pau Monne2012-04-251-0/+80
| | | | | | | | | | | | | | | | | This patch adds better support for both Flex and Bison, which might be needed to compile libxl. Now configure script sets BISON and FLEX Makefile vars if bison and flex are found, but doesn't complain if they are not found. Also, added some Makefile soccery to print a warning message if Bison or Flex are needed but not found. [ Improved the warning message slightly. -iwj ] Signed-off-by: Roger Pau Monne <roger.pau@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* autoconf: use python-config when present, if not switch to distutiRoger Pau Monne2012-04-241-17/+68
| | | | | | | | | | | Use python-config utility when possible, and if it is not present switch to distutils. Should fix the bug reported by Olaf Hering on SuSE. Signed-off-by: Roger Pau Monne <roger.pau@citrix.com> Tested-by: Olaf Hering <olaf@aepfle.de> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* autoconf: add ovmf, rombios and seabios and configure optionsRoger Pau Monne2012-04-241-0/+78
| | | | | | | | | Move this hardcoded options from Config.mk to config/Tools.mk and add the appropiate configure options. Signed-off-by: Roger Pau Monne <roger.pau@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* tools: Correct PTHREAD options in config/StdGNU.mkIan Jackson2012-04-111-28/+73
| | | | | | | | | | | | | | | | | | | | | | It is not correct to say -lpthread. The correct option is -pthread, which may have sundry other effects on code generation etc. It needs to be passed both to compilation and linking. Fix the configure test to test -pthread, and plumb the resulting flag through to PTHREAD_{CFLAGS,LDFLAGS} in Tools.mk; also substitute PTHREAD_LIBS (although this will currently always be empty). Remove PTHREAD_LIBS setting from StdGNU.mk. Fix the one user (libxc) to use PTHREAD_{CFLAGS,LDFLAGS} too. There are still some other users in tree which pass -pthread or -lpthread by adding it as a literal to their own compiler options. These will be fixed in a later patch. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Roger Pau Monne <roger.pau@entel.upc.edu> Acked-by: Roger Pau Monne <roger.pau@entel.upc.edu> Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
* autoconf: check for as86, ld86, bcc and iaslRoger Pau Monne2012-02-221-0/+196
| | | | | | | | Check for this tools, and set the proper paths on config/Tool.mk. Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu> Committed-by: Ian Jackson <ian.jackson.citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
* autoconf: change AX_ARG_{DISABLE/ENABLE}_AND_EXPORT to make more senseRoger Pau Monne2012-04-031-37/+60
| | | | | | | | | | | | | | | | | | Change disable/enable feature macros to have a more significative name of what they actually do, to avoid confusions. New macros have the following names: AX_ARG_DEFAULT_ENABLE: feature is enabled by default, provides the --disable-{feature} option to disable it. AX_ARG_DEFAULT_DISABLE: feature is disabled by default, provides the --enable-{feature] option to enable it. Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu> Acked-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Olaf Hering <olaf@aepfle.de> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* autoconf: fix python-dev detection on old python versionsRoger Pau Monne2012-04-031-25/+24
| | | | | | | | | | | Replaced the use of python-config (that is only present in Python >= 2.5.x) with the distutils python module. Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu> Cc: Zhang, Yang Z <yang.z.zhang@intel.com> Tested-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com> Cc: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* autoconf: add missing compression checks for libxcRoger Pau Monne2012-03-141-0/+143
| | | | | | | | | Move missing checks from tools/libxc/Makefile to configure script. Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Jan Beulich <JBeulich@suse.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* autoconf: check for uuid.h or uuid/uuid.h with -luuidRoger Pau Monne2012-03-141-56/+48
| | | | | | | | | | Check for uuid/uuid.h and if found check for -luuid usability (Linux case), if not, check for uuid (NetBSD). One of this tests has to succeed to be able to build Xen tools. Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* autoconf: check for Python.h header and -lpython* libRoger Pau Monne2012-03-141-16/+78
| | | | | | | | Check that the package usually called python-dev is present. Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* autoconf: add check for curses libraryRoger Pau Monne2012-03-131-0/+129
| | | | | | | | | | | | Check for a curses compatible library (curses or ncurses basically). One of those is needed to compile Xen tools (gtraceview and xentop). Modify Makefiles/sources to use configure output (fetch CURSES_LIBS from tools/Tools.mk and header to include from tools/config.h) Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* tools: fix python version checking issueYongjie Ren2012-03-011-1/+1
| | | | | | | | | | | | | | | | | Even if python version is 2.4.3 which is newer than the required version 2.3, the configure script still raises a version issue. I tested my patch with python 2.6.6 and 2.4.3. It will fix a syntax error like the following. checking for python version >= 2.3 ... Traceback (most recent call last): File "<string>", line 1, in ? TypeError: 'str' object is not callable no configure: error: Python 2.4.3 is too old, minimum required version is 2.3 Signed-off-by: Yongjie Ren <yongjie.ren@intel.com> Acked-by: Roger Pau Monne <roger.pau@entel.upc.edu> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* build: autoconf: fix libdir detectionRoger Pau Monne2012-03-011-4/+16
| | | | | | | | | | | | | | | If user specifies a libdir it is used, if no libdir is specified configure checks if $exec_prefix/lib64 is a directory and uses that, if not lib is used. $prefix is set by passing the command line option or by default when calling AC_OUTPUT, but since AC_OUTPUT is called at the end, this is not really helpful, so we have to set $exec_prefix manually to the correct value, either $prefix if different than NONE or $ac_default_prefix. Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* build: autoconf: remove python xml checkRoger Pau Monne2012-03-011-14/+0
| | | | | | | | | Remove the xml module check from autoconf and move it to xend init script (in a later patch), since it's a run time dependency. Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* build: autoconf: remove ip checkRoger Pau Monne2012-03-011-49/+0
| | | | | | | | ip is a run-time dependency, and it is not needed to build Xen tools. Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* build: rerun autoconfIan Jackson2012-03-011-25/+1
| | | | | | | 24942:d70b4a1155e3 contains changes to configure.in and thus we need to rerun autogen.sh. Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* configure: do not require Bison or FlexIan Campbell2012-02-291-375/+265
| | | | | | | | | | This isn't required because we also checkin the generated files. A more complete fix might also allow the user to force regeneration but I didn't bother here. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* Revert 24897:f25e5785327e "Export configure variables to hypervisor build"Keir Fraser2012-02-291-3/+0
| | | | Signed-off-by: Keir Fraser <keir@xen.org>
* Update autoconf-generated configure script.Keir Fraser2012-02-291-267/+290
| | | | Signed-off-by: Keir Fraser <keir@xen.org>
* autoconf: Rerun autogen.shIan Jackson2012-02-221-245/+0
| | | | Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* build: add autoconf to replace custom checks in tools/checkIan Jackson2012-02-221-0/+10469
Added autotools magic to replace custom check scripts. The previous checks have been ported to autoconf, and some additional ones have been added (plus the suggestions from running autoscan). Two files are created as a result from executing configure script, config/Tools.mk and config.h. conf/Tools.mk is included by tools/Rules.mk, and contains most of the options previously defined in .config, that can now be set passing parameters or defining environment variables when executing configure script. config.h is only used by libxl/xl to detect yajl_version.h. [ tools/config.sub and config.guess copied from autotools-dev 20100122.1 from Debian squeeze i386, which is GPLv2. tools/configure generated using the included ./autogen.sh which ran autoconf 2.67-2 from Debian squeeze i386. autoconf is GPLv3+ but has a special exception for the autoconf output; this exception applies to us and exempts us from complying with GPLv3+ for configure, which is good as Xen is GPL2 only. - Ian Jackson ] Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu> Tested-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>