Add probing for BSD-like /proc/curproc/file.
[p5sagit/p5-mst-13.2.git] / config_h.SH
index 381d258..bc2f6b4 100644 (file)
@@ -3524,10 +3524,13 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
 #$d_nl_langinfo HAS_NL_LANGINFO                /**/
 
 /* HAS_PROCSELFEXE:
- *     This symbol is defined if /proc/self/exe is a symlink
- *     to the executing program.
+ *     This symbol is defined if PROCSELFEXE_PATH is a symlink
+ *     to the absolute pathname of the executing program.
  */
 #$d_procselfexe HAS_PROCSELFEXE        /**/
+#if defined(HAS_PROCSELFEXE) && !defined(PROCSELFEXE_PATH)
+#define PROCSELFEXE_PATH       $procselfexe    /**/
+#endif
 
 /* HAS_SIGPROCMASK:
  *     This symbol, if defined, indicates that the sigprocmask