summaryrefslogtreecommitdiff
path: root/src/lib/libast/features/prog
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-06-24 22:28:35 +0000
committerIgor Pashev <pashev.igor@gmail.com>2012-06-24 22:28:35 +0000
commit3950ffe2a485479f6561c27364d3d7df5a21d124 (patch)
tree468c6e14449d1b1e279222ec32f676b0311917d2 /src/lib/libast/features/prog
downloadksh-upstream.tar.gz
Imported Upstream version 93u+upstream
Diffstat (limited to 'src/lib/libast/features/prog')
-rw-r--r--src/lib/libast/features/prog12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/libast/features/prog b/src/lib/libast/features/prog
new file mode 100644
index 0000000..365ce88
--- /dev/null
+++ b/src/lib/libast/features/prog
@@ -0,0 +1,12 @@
+lib getexecname,_NSGetExecutablePath
+
+tst run{
+ for p in /proc/self/exe /proc/self/path/a.out
+ do if test -e $p
+ then echo "#define _PROC_PROG \"$p\""
+ break
+ fi
+ done
+}end
+
+_hdr_macho_o_dyld = hdr mach-o/dyld