From 13158f86e3904284dce3dad36b64f07414459551 Mon Sep 17 00:00:00 2001 From: rmanfredi Date: Sat, 27 Nov 2010 11:55:39 +0000 Subject: Applied mega patch from Christian Biere to greatly improve feature detection and make a huge step towards better support for cross-compiling. git-svn-id: svn://svn.code.sf.net/p/dist/code/trunk/dist@34 2592e710-e01b-42a5-8df0-11608a6cc53d --- mcon/U/d_sysconf.U | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'mcon/U/d_sysconf.U') diff --git a/mcon/U/d_sysconf.U b/mcon/U/d_sysconf.U index 13c6177..3678592 100644 --- a/mcon/U/d_sysconf.U +++ b/mcon/U/d_sysconf.U @@ -14,7 +14,7 @@ ?RCS: Revision 3.0.1.1 1994/10/29 16:15:57 ram ?RCS: patch36: created by ADO ?RCS: -?MAKE:d_sysconf: Inlibc +?MAKE:d_sysconf: Trylink cat i_unistd ?MAKE: -pick add $@ %< ?S:d_sysconf: ?S: This variable conditionally defines the HAS_SYSCONF symbol, which @@ -29,6 +29,18 @@ ?H:. ?LINT:set d_sysconf : see if sysconf exists -set sysconf d_sysconf -eval $inlibc +$cat >try.c < +#endif +int main(void) +{ + static long ret; + ret |= sysconf(1); + return ret ? 0 : 1; +} +EOC +set d_sysconf +eval $trylink -- cgit v1.2.3