summaryrefslogtreecommitdiff
path: root/configure.in
Commit message (Collapse)AuthorAgeFilesLines
* autoconf: rename configure.in to configure.acH. Peter Anvin2016-03-161-195/+0
| | | | | | In accordance with current practice, rename configure.in to configure.ac. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* autoconf improvements: @SET_MAKE@, library extensionH. Peter Anvin2016-03-091-0/+3
| | | | | | Minor autoconf corner cases. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* lib: split library into stdlib and nasmlib; header handling fixesH. Peter Anvin2016-03-081-27/+1
| | | | | | | | | | | | | Split lib/ into nasmlib/ (for nasm-specific functions) and stdlib/ (for replacements for C library functions which may be missing.) Rename the ersatz inttypes.h to nasmint.h so we can use a simple test in compiler.h instead of dealing with include path magic. Remove tests in configure.in for ancient missing functions (which will break the build anyway.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Makefiles: use actual archive managersH. Peter Anvin2016-03-081-6/+9
| | | | | | | | | | | | | | | | There is no reason to not use an archive manager to build our executables. If there really are systems which don't have any kind of archive manager, we can simply link all the objects. This also drops any use of configure to detect library objects. Instead just use HAVE_* and let the archive manager delete them. A lot of additional functions could be declared library functions and reorganized. ***FIX*** Mkfiles/*.mak have not yet been updated. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Merge branch 'nasm-2.12.xx'H. Peter Anvin2016-03-071-0/+2
|\ | | | | | | | | | | | | Resolved Conflicts: compiler.h Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Make --disable-werror workH. Peter Anvin2016-03-031-0/+2
| | | | | | | | | | | | | | | | | | autoconf's handling of --without and --disable are a bit counterintuitive: instead of calling the "not given" branch of the conditional, they instead call the "given" part of the conditional with an argument of "no". Make --disable-werror work as expected. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | configure.in: disable -Wwrite-strings for nowH. Peter Anvin2016-03-061-1/+1
| | | | | | | | | | | | | | | | | | | | At the moment, NASM is not clean with -Wwrite-strings due to passing string constants to functions that under some conditions modify their arguments. This is problematic if nothing else for guaranteeing correctness, but will take some work to remedy. In the meantime, disable -Wwrite-strings. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | configure: enable additional code cleanliness warningsH. Peter Anvin2016-03-011-0/+5
| | | | | | | | | | | | | | | | | | | | | | We are supposed to handle compiling on a "C90 plus long long" compiler, so make gcc (our most common development platform compiler) complain when we don't. However, suppress the complaints about the Microsoft definitions of the <inttypes.h> strings. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | configure.in: if byte order is unknown or ill defined, don't define anyH. Peter Anvin2016-03-011-1/+1
| | | | | | | | | | | | | | | | | | We can always operate correctly if neither WORDS_BIGENDIAN nor WORDS_LITTLEENDIAN are defined, so if the word order is either indeterminable or universal (the compiler generates both bigendian and litteendian output from the same sources) then define neither. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge branch 'nasm-2.12.xx'H. Peter Anvin2016-03-011-1/+6
|\ \ | |/ | | | | | | | | | | | | Resolved Conflicts: configure.in output/codeview.c Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * configure.in: add -fwrapv to gcc and compatible compilersH. Peter Anvin2016-02-271-0/+1
| | | | | | | | | | | | | | | | Add the -fwrapv to gcc and compatible C compilers, to enforce deterministic 2's-complement behavior with regards to signed and unsigned integer types. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | configure: smarter way to handle fseeko() searchingH. Peter Anvin2016-02-211-1/+1
| | | | | | | | | | | | | | Better handling of the replacement for fseeko() in its absence; also look for the Windows _fseeki64() function. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Windows portability fixesH. Peter Anvin2016-02-181-1/+1
| | | | | | | | | | | | | | Windows needs strsep() and defines a P_WAIT constant that we need to undefine. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | nasmlib: allow writing of sparse filesH. Peter Anvin2016-02-181-0/+8
| | | | | | | | | | | | | | | | | | | | | | On systems that support it, allow the writing of sparse files. This can be useful for some file formats (like binary, or ELF if the alignments are very large) that can contain large amounts of zeroes. This is not inherently portable code, so condition it on certain known systems. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | Merge branch 'master' into elfmergeH. Peter Anvin2016-02-181-8/+12
|\ \ | |/ | | | | | | | | | | Resolved Conflicts: configure.in Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * configure.in: add --enable-werror optionH. Peter Anvin2016-02-181-8/+11
| | | | | | | | | | | | | | | | Add an option to compile with -Werror, useful for development. Change --with-ccache to --enable-ccache to match guidelines. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * Platform compatibility improvementsH. Peter Anvin2016-02-181-0/+1
| | | | | | | | | | | | | | | | | | | | Windows: indicate that we support multibyte character sets in file names. Unix: support gigantic input and output files. Might be useful especially in the presence of the INCBIN directive. Signed-off-by: H. Peter Anvin <hpa@linux.kernel.org>
* | Portability improvements and autoconf modernizationH. Peter Anvin2016-02-181-26/+20
|/ | | | | | | Improve the portability of the code and modernize our use of autoconf. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* configure.in: Add -Werror flags last (BR 2292332)Ozkan Sezer2016-02-121-11/+12
| | | | | | | | | | configure.in: Add the -Werror flags as the last thing. Otherwise, with development versions of autoconf, all AC_CHECK_FUNCS calls fails with: conftest.c:49: error: function declaration isn't a prototype conftest.c:49: warning: conflicting types for built-in function 'strcspn' Signed-off-by: Ozkan Sezer <sezero@users.sourceforge.net> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Portability improvements to nasm_realpath()H. Peter Anvin2016-01-261-0/+11
| | | | | | | | Try harder to nasm_realpath() to be as portable as possible. Move it to a separate file since it has gotten complex enough that it is cleaner that way. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Restore AC_C_INLINEH. Peter Anvin2015-11-041-0/+1
| | | | | | | Checkin 7729edf7224e39628bd342c3a3bb44c1753bdfb0 removed AC_C_INLINE, presumably inadvertently. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* configure.in: Move AC_C_INLINE and friends to be checked before PA_ADD_CFLAGSCyrill Gorcunov2014-12-201-14/+13
| | | | | | | | | | | Looks like -Werror=missing-declarations revealed problem in configure: the "inline" support has not been detected properly leading to problem in building procedure. Lets move AC_C_INLINE and etc to be tested before gcc flags. Reported-by: NAKAI Yuta <nak5124@live.jp> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* configure.in: Remove redundant -Werror=trigraphsH. Peter Anvin2014-11-251-1/+0
| | | | | | As obnoxious as trigraphs are, we don't need to -Werror them twice. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* configure.in: promote some C warnings to errorsH. Peter Anvin2014-11-251-0/+11
| | | | | | | Promote some C warnings to errors, especially ones relating to missing prototypes. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Revert "build: Include pregenerated nasm manpages"H. Peter Anvin2013-10-241-0/+10
| | | | | | | | | | This reverts commit 99427bdb6c85c812665f6d7b36ac520a631c5b23. We don't include generated files in the repository, instead we should pregenerate them for the tarball generation, just as we do for the Perl-generated files. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* build: Include pregenerated nasm manpagesCyrill Gorcunov2013-07-221-10/+0
| | | | | | | | | | It's been reported that force people to install asciidoc for man pages generation is not acceptible. Just ship them pregenerated. http://bugzilla.nasm.us/show_bug.cgi?id=3392262 Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* autoconf: Warn a user if no asciidoc/xmlto foundCyrill Gorcunov2013-07-051-0/+8
| | | | | | | | | | It's been noticed on nasm forum that we don't complain if no asciidoc/xmlto package installed on a system while they are required for man pages generation. So warn a user then, but still allow to build nasm. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* Make the errors for missing man page tools comprehensibleH. Peter Anvin2013-05-171-3/+3
| | | | | | A lot of confusion was had due to missing asciidoc... Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* man: Generate manpages from asciidoc formatCyrill Gorcunov2013-02-171-0/+2
| | | | | | | The asciidoc format is a way more easier to read by a human. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* autoconf: Add --with-ccache optionCyrill Gorcunov2010-11-111-0/+9
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* Add strlcpy() functionH. Peter Anvin2009-08-101-0/+2
| | | | | | | Add strlcpy() function and implementation, and use configure to detect if strlcpy() is natively available on the system. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* autoconf: detect the broken bool in OpenWatcom 1.8H. Peter Anvin2009-03-011-0/+1
| | | | | | | OpenWatcom 1.8 has a C99 mode, which implements _Bool and <stdbool.h>. Unfortunately the implementation is broken, and doesn't let _Bool be implicitly converted to integer (as required by the C99 spec). Detect this case in autoconf.
* doc: for ps to pdf conversion, use "acrodist", "ps2pdf" or "pstopdf"H. Peter Anvin2008-06-191-3/+5
| | | | | | | | For PostScript to PDF conversion, use whichever of "acrodist", "ps2pdf", or "pstopdf" which we can find on the system. I haven't tried either acrodist or pstopdf myself, only going my the documentation, but prefer acrodist since it is claimed to produce smaller output files than ps2pdf.
* Fix typo: s/most/least/H. Peter Anvin2008-06-101-1/+1
| | | | Littleendian = least signficant byte first
* Make it possible to use "inline" and "restrict"H. Peter Anvin2008-06-101-0/+2
| | | | | Put the appropriate machinery in place to be able to use the "inline" and "restrict" keywords with appropriate semantics.
* Use autoconf to detect WORDS_LITTLEENDIANH. Peter Anvin2008-06-081-5/+10
| | | | | | Use autoconf to detect littleendian word order, and use WORDS_LITTLEENDIAN instead of X86_MEMORY when we don't require unaligned memory accesses to be permitted.
* Better handling of platforms which hide "extended" functionalityH. Peter Anvin2007-10-261-0/+9
| | | | | | | | Some platforms apparently feel -std=c99, which defines __STRICT_ANSI__, should also hide a bunch of function prototypes. This rather sucks. At least try to deal with it. MinGW and DJGPP both have this problem, in particular.
* Cleaner solution for MinGW handling of __STRICT_ANSI__H. Peter Anvin2007-10-181-3/+0
| | | | If MinGW is detected, undefine __STRICT_ANSI__ in compiler.h instead.
* configure: Undefine __STRICT_ANSI__ for mingw's benefitH. Peter Anvin2007-10-181-0/+3
| | | | | | mingw makes a bunch of prototypes unavailable if __STRICT_ANSI__ is defined. However, they are still detected by configure, which causes us pain.
* autoconf: drop AC_USE_SYSTEM_EXTENSIONS to support autoconf 2.59H. Peter Anvin2007-10-131-3/+5
| | | | | | AC_USE_SYSTEM_EXTENSIONS requires autoconf 2.61, which is still a little too new, apparently. Unless we have a specific reason to include it, don't.
* Use the compiler-provided booleans if available, otherwise emulateH. Peter Anvin2007-10-101-0/+3
| | | | | | | Both C and C++ have "bool", "true" and "false" in lower case; C requires <stdbool.h> for this, in C++ it is an inherent type built into the compiler. Use those instead of the old macros; emulate with a simple typedef enum if unavailable.
* configure.in: looks like we need autoconf 2.61 :(H. Peter Anvin2007-10-101-2/+2
| | | | | AC_USE_SYSTEM_EXTENSIONS is really, *really* useful, but apparently requires autoconf 2.61...
* Use autoconf to request feature macrosH. Peter Anvin2007-10-031-2/+4
|
* Portability fixesH. Peter Anvin2007-10-021-0/+7
| | | | | | | | | Concentrate compiler dependencies to compiler.h; make sure compiler.h is included first in every .c file (since some prototypes may depend on the presence of feature request macros.) Actually use the conditional inclusion of various functions (totally broken in previous releases.)
* configure.in: AC_SUBST_FILE should have been AC_SUBSTH. Peter Anvin2007-09-281-1/+1
| | | | | AC_SUBST_FILE happened to work in autoconf 2.59, but is broken in autoconf 2.61.
* Add substitutes for snprintf() and vsnprintf()H. Peter Anvin2007-09-281-4/+5
| | | | | | To deal with fools^Wpeople trying to keep really old systems alive, create a proper framework for substitution functions, and make it possible to deal with the lack of snprintf/vsnprintf in particular.
* Cleaner way to handle MSVC's _snprintf() underscore damageH. Peter Anvin2007-09-171-16/+10
| | | | | Some versions of MSVC have snprintf() and vsnprintf() only with a leading underscore. Handle that a bit more cleanly.
* Remove $Id$ tags (useless with git)H. Peter Anvin2007-09-121-1/+0
| | | | Remove CVS $Id$ tags, since git doesn't use them.
* Detect missing <inttypes.h> and include ersatz version if missingH. Peter Anvin2007-06-211-7/+3
|
* Cleaner way to add gcc optionsH. Peter Anvin2007-04-151-6/+5
| | | | | | We can actually test for the options being accepted, rather than try to test for gcc; this handles differences between gcc versions as well as compilers with a similar command line set.