Imported from ../bash-1.14.7.tar.gz.
[platform/upstream/bash.git] / support / PORTING
1 if _mkfifo cannot be found, add "-DMKFIFO_MISSING" to SYSDEP_CFLAGS in
2 your machine's entry in machines.h.
3
4 If bash compiles, but hangs when executing a non-builtin, there is a
5 problem with the defines in your /usr/include/sys/wait.h.  If you
6 don't have one, there is a problem in our defines.  At any rate,
7 perhaps you have a partially POSIX system, instead of a fully
8 operational one.  Try defining _POSIX_SOURCE just before the inclusion
9 of <sys/wait.h> in jobs.h, and then undefining it immediately after
10 the inclusion.
11
12 Finding out if your system has something (like setpgid, for example)
13 You can always do "nm -o /lib/*.a | grep setpgid".  If an entry for
14 the function appears, you have it, and you might have to link with
15 that library by adding "#defined REQUIRED_LIBRARIES -lfoo" to the
16 entry in machines.h.
17
18 If you seem to be going around in circles, and they are related to
19 job control and posixness, try #undef HAVE_UNISTD_H in the entry for
20 your machine in machines.h.  This can work by keeping unistd.h from
21 defining _POSIX_VERSION, which in turn prevents bash from assuming
22 full Posix semantics.