From 2982a345b7a1edb63720282eef0fba5c61d0e6b5 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Wed, 21 Sep 2011 14:32:58 +0200 Subject: Where available, use sysctl() with KERN_PROC_PATHNAME to make $^X absolute. In Configure, check whether sysctl() and KERN_PROC_PATHNAME can be used to find the absolute pathname of the executable. If so, set usekernprocpathname in config.sh and USE_KERN_PROC_PATHNAME in config.h. If this is set, then use this approach in S_set_caret_X() to canonicalise $^X as an absolute path. This approach works on (at least) FreeBSD, and doesn't rely on the /proc filesystem existing, or /proc/curproc/file being present. --- configure.com | 1 + 1 file changed, 1 insertion(+) (limited to 'configure.com') diff --git a/configure.com b/configure.com index 14a73f1fc4..a58f77e863 100644 --- a/configure.com +++ b/configure.com @@ -6717,6 +6717,7 @@ $ WC "usefaststdio='" + usefaststdio + "'" $ WC "useieee='" + useieee + "'" ! VMS-specific $ WC "useithreads='" + useithreads + "'" $ WC "usekernelthreads='" + usekernelthreads + "'" ! VMS-specific +$ WC "usekernprocpathname='undef'" $ WC "uselargefiles='" + uselargefiles + "'" $ WC "uselongdouble='" + uselongdouble + "'" $ WC "usemorebits='" + usemorebits + "'" -- cgit v1.2.1