summaryrefslogtreecommitdiff
path: root/config_h.SH
Commit message (Collapse)AuthorAgeFilesLines
* Remove duplicate "the" in commentsElvin Aslanov2023-05-031-1/+1
| | | | Fix spelling on various files pertaining to core Perl.
* Replace "define\t" with "define " in Configure/metaconfig related filesYves Orton2023-04-291-40/+40
| | | | | | | | | This is broken out so it is easier for Tux to find and merge with metaconfig. View this patch with -w and you will see "no changes" except for config_h.SH and Porting/config_h.pl both which needed to be changed to ensure that they produce output that doesn't replicate the problem.
* Add sys/syscall.h probeH.Merijn Brand2023-04-281-0/+5
|
* Whitespace consistency from Configure endH.Merijn Brand2023-04-281-29/+30
|
* Correct typos as per GH 20435James E Keenan2022-12-291-1/+1
| | | | | | | | | | | | | | | | | | | In GH 20435 many typos in our C code were corrected. However, this pull request was not applied to blead and developed merge conflicts. I extracted diffs for the individual modified files and applied them with 'git apply', excepting four files where patch conflicts were reported. Those files were: handy.h locale.c regcomp.c toke.c We can handle these in a subsequent commit. Also, had to run these two programs to keep 'make test_porting' happy: $ ./perl -Ilib regen/uconfig_h.pl $ ./perl -Ilib regen/regcomp.pl regnodes.h
* Figure out I32df, U32uf, etc. in Configure rather than in perl.hTAKAI Kousuke2022-11-141-0/+25
| | | | | | | | | | | | These macros were defined in perl.h using preprocessor conditionals, but determining wheter I32 is "int" or "long" is pretty hard with preprocessor, when INTSIZE == LONGSIZE. The Configure script should know exact underlying type of I32, so it should be able to determine whether %d or %ld shall be used to format I32 value more robustly. Various pre-configured files, such as uconfig.h, are updated to align with this.
* hide private functions with __attribute__((visibility("hidden")))Tomasz Konojacki2022-06-181-0/+5
| | | | | | | | This allows us to enforce API boundaries and potentially enables compiler optimisations. We've been always hiding non-public symbols on Windows. This commit brings that to the other platforms.
* Remove support for UltrixKarl Williamson2022-06-101-3/+3
| | | | | | Ultrix has been removed. Ultrix was the native Unix-like operating system for various Digital Equipment Corporation machines. Its final release was in 1995.
* probe for setenv in ConfigureTomasz Konojacki2022-05-291-0/+6
|
* Regen Configure and friends after backportsH.Merijn Brand2021-10-291-14/+15
|
* A Configure test for C11 thread local storage specificer, _Thread_localNicholas Clark2021-09-071-0/+12
| | | | We also provbe for gcc's earlier syntax, __thread.
* detect struct stat.st_dev's size and signedness, and return it safelyTony Cook2021-09-011-0/+9
| | | | | | | | | | | | | | On FreeBSD dev_t (and hence the st_dev member of struct stat) is an unsigned 64-bit integer, and the previous simple PUSHi() corrupted that. A previous version of this reflected the st_ino code and implemented our own number to string conversion, but a system with such a large st_dev should be assumed to have inttypes.h, and an intmax_t which is no smaller than st_dev. The st_ino code could probably be changed similarly, but 64-bit inode numbers are not a new thing, so it may be riskier.
* Regen Configure and Glossary after backport of xlocale.h additionH.Merijn Brand2021-08-111-4/+4
|
* only #include <xlocale.h> when it is actually neededTony Cook2021-08-111-2/+7
| | | | | | | | | | | This header was originally only needed for builds on darwin and FreeBSD, but was being included whenever it was detected. This has caused problems when what was an internal header was removed (from glibc) and in general wasn't needed anyway. On FreeBSD only localeconv_l() requires xlocale.h, so we test specifically for that.
* Configure: apply recent metaconfig changesKarl Williamson2021-06-121-1/+25
| | | | Several new probes have been added.
* Configure changes for HAS_NON_INT_BITFIELDSKarl Williamson2021-06-121-0/+7
| | | | | | | | | | | This probe has been available without my realizing it had been merged. Some compilers, chiefly IBM, use only integer-size bitfields, warning when presented with other-sized ones. Allowing other-sized fields is an extension to the C standard. These warnings don't affect the correctness of the code generated, but very many are generated per run, potentially overwhelming the reader into not noticing warnings that are important.
* Regenerate Configure and frieds after backportH.Merijn Brand2021-02-141-6/+6
|
* Add Configure probe for getenv() buffer raceKarl Williamson2020-12-191-0/+13
| | | | | | Most implementations do not have a problem with two getenv()'s running simultaneously in different threads. But Posix doesn't require such good behavior. This adds a simple probe to test the current system.
* append colon to USE_STRICT_BY_DEFAULT descriptionDavid Mitchell2020-12-011-1/+1
| | | | | | This stops autodoc.pl complaining that: USE_STRICT_BY_DEFAULT has no documentation
* Fix typosSamanta Navarro2020-10-031-2/+2
| | | | | | | | | For: https://github.com/Perl/perl5/pull/18201 Committer: Samanta Navarro is now a Perl author. To keep 'make test_porting' happy: Increment $VERSION in several files. Regenerate uconfig.h via './perl -Ilib regen/uconfig_h.pl'.
* Add the Configure option to enable strict by default in perl programs.Todd Rinaldo2020-09-151-0/+6
| | | | | | | | Do not set strict by default on -e or -E This is a development only feature to allow us to clean up blead. ./Configure -Dusedevel -des -Dusedefaultstrict
* Comment for L_R_TZSET now correctly added to config_h.SHH.Merijn Brand2020-09-071-0/+3
|
* Merge Configure changes for z/OS and AIXH.Merijn Brand2020-08-221-2/+4
| | | | Thank you Karl!
* Remove 5005threads vestiges from Configure and friendsDagfinn Ilmari Mannsåker2020-08-211-8/+6
| | | | See https://github.com/Perl/metaconfig/pull/66/
* Finalize config_h.SH for the __attribute__(always_inline) probeNiko Tyni2020-05-241-0/+4
| | | | | | | | | | | | For some reason this comment was not added by commit https://github.com/Perl/perl5/commit/e849841dca2a8b11119997585f795647c52cdcdf but it gets included when regenerating from metaconfig, stemming from https://github.com/Perl/metaconfig/commit/829ae3555af6c3549169acf1fab1bd089b442e47 (Also includes regenerated uconfig.h by regen/uconfig_h.pl)
* Fix config_h.SH duplication due to re-running Porting/config_h.plNiko Tyni2020-05-241-12/+0
| | | | | | | | | | | | Quoting Porting/config_h.pl : # This script is run just after metaconfig, and it # is run ONLY ONCE. Not to be used afterwards It looks like e849841dca2a8b11119997585f795647c52cdcdf accidentally did re-run it, resulting in some duplication in config_h.SH. (Also includes regenerated uconfig.h by regen/uconfig_h.pl)
* add Configure probe for struct sockaddr_storageTomasz Konojacki2020-05-191-0/+5
|
* fixing usally and paternBryan Stenson2019-12-191-1/+1
| | | | | | | | | | | | | | | | Typos in documentation and inline comments. Pursuant to discussion on openbsd-tech list: https://marc.info/?t=157678644800005&r=1&w=2 https://marc.info/?t=157678570300002&r=1&w=2 For: https://github.com/Perl/perl5/issues/17379 https://github.com/Perl/perl5/pull/17380 Committer: Bryan Stenson is now a Perl author. Regenerate uconfig.sh via: perl regen/uconfig_h.pl
* Regenerate Configure and friends after metaconfig changesKarl Williamson2019-12-031-0/+19
| | | | | | | | A probe for wcrtomb() and one for attribute always inline have been added, and the ones for: 1) checking if there is a C backtrace facility; and 2) character data alignedness have been revised
* Fix erroneous references to USE_CBACKTRACESteve Hay2019-06-241-2/+2
| | | | | | | | The #define set in Configure and used in locale.c and util.c is actually USE_C_BACKTRACE. Pointed out by NormW in https://www.nntp.perl.org/group/perl.perl5.porters/2018/04/msg250441.html
* Further integration from Configure worksH.Merijn Brand2019-04-261-0/+3
|
* Regenerate Configure from latest metaconfigAaron Crane2019-04-251-2/+2
| | | | This corresponds to metaconfig commit 70210eb08b2643bfce98cfa92a3ee52c613dfa56
* Improve setlocale() detection in Configure-ish filesKarl Williamson2019-03-041-6/+11
| | | | This also now notes some behavior of setlocale
* Add towupper() and towlower() to Configure-ish filesKarl Williamson2019-03-041-0/+12
|
* Add wctype.h to Configure-ish filesKarl Williamson2019-03-041-0/+5
|
* Rely on C89 "const"Aaron Crane2018-11-271-11/+0
| | | | | | | | | | The metaconfig probe for <db.h> previously relied on the d_const symbol set by the "const" probe, so generating Configure here has been done against metaconfig commit 1204d4627a06b11f16620188f3fa83159ed35fd9 which changes that. Thanks to khw++ for pointing out this oversight in my attempt last year to make the codebase rely on C89.
* Add HAS_STRTOD_L to metaconfig.h and rebuild ConfigureAaron Crane2018-04-191-0/+6
|
* Rebuild Configure from latest unitsAaron Crane2018-04-191-0/+5
| | | | | | | | | | | | Most of the change here comes from a single unit being moved in the generated Configure, but there are some substantive changes: - config_h.SH was missing HAS_DUPLOCALE and d_duplocale - d_duplocale was also missing from the platform-specific config-var files This still doesn't quite ensure that rebuilding Configure makes no changes, because there are differences to nl_langinfo() handling that need a change in our metaconfig units. That will come next.
* Regen after backporting and mergingH.Merijn Brand2018-04-161-161/+161
| | | | I am aware that this might break a few tests
* configure probe for mkostemp()Zefram2017-12-221-0/+7
| | | | | This is another file descriptor creating function that's needed as an O_CLOEXEC-handling variant of an existing function.
* configure probes for accept4(), dup3(), pipe2()Zefram2017-12-221-0/+18
| | | | | These will shortly be used to implement I/O operations that create file descriptors with the FD_CLOEXEC flag set atomically.
* Restore ability to build on platforms without snprintf()Aaron Crane2017-11-181-0/+11
| | | | | | | | | | | | | C89 does not in fact define snprintf() or vsnprintf(), and we must therefore probe for the existence of those functions before trying to use them. khw++ for pointing out my earlier error. This reverts part or all of each of the following commits: 13d66b05c6163c3514774d3d11da5f3950e97e98 Rely on C89 vsnprintf() e791399041815a1a45cea3c7f277c7045b96e51b Rely on C89 snprintf() adf7d503e55721c500f0bf66560b8f5df7966fe7 pod/perlhacktips.pod: remove some outdated portability notes
* Rely on C89 <string.h>Aaron Crane2017-10-211-6/+0
| | | | This requires a corresponding change in the metaconfig units.
* Don't attempt to use non-standard <memory.h>Aaron Crane2017-10-211-6/+0
| | | | It's only needed on systems without C89 <string.h>, which we rely on anyway.
* Rely on C89 <assert.h>Aaron Crane2017-10-211-6/+0
|
* Rely on C89 <math.h>Aaron Crane2017-10-211-6/+0
| | | | This requires a corresponding change in the metaconfig units.
* Rely on C89 strerror()Aaron Crane2017-10-211-12/+0
| | | | This requires a corresponding change to the metaconfig units.
* Don't try to use <values.h>Aaron Crane2017-10-211-8/+0
| | | | | All the information it contains can be gleaned more readily from C89 <limits.h> and <float.h>.
* Rely on C89 <float.h> defining DBL_DIGAaron Crane2017-10-211-8/+0
| | | | | | | | | I would like to be able to assume that we have long doubles, and therefore that LDBL_DIG and friends are all defined too. But it seems that we may still support some platforms which are otherwise C89, but don't have even trivial long-double support; in particular, HP/UX 10 apparently uses a struct of four uint32_t values as long double, but doesn't support other bits, and confuses the Configure probe that looks for quadmath.
* Rely on C89 <float.h>Aaron Crane2017-10-211-7/+0
| | | | This requires newer metaconfig units that also rely on C89 <float.h>.