… | |
… | |
15 | } elsif ($^O =~ /irix/) { |
15 | } elsif ($^O =~ /irix/) { |
16 | $iface = "i"; |
16 | $iface = "i"; |
17 | } elsif ($^O =~ /linux/) { |
17 | } elsif ($^O =~ /linux/) { |
18 | # default to setjmp/longjmp on non-x86... |
18 | # default to setjmp/longjmp on non-x86... |
19 | $iface = $Config{archname} =~ /^i[3456]86-/ ? "l" : "s"; |
19 | $iface = $Config{archname} =~ /^i[3456]86-/ ? "l" : "s"; |
|
|
20 | } elsif ($^O =~ /(free|net|open)bsd/) { |
|
|
21 | # FreeBSD 4.x has ucontext.h but no makecontext et al (see BUGS section of |
|
|
22 | # man context). Assume the same problem for all other BSDs. |
|
|
23 | $iface = "s"; |
20 | } elsif ($^O =~ /solaris/) { |
24 | } elsif ($^O =~ /solaris/) { |
21 | $iface = "s"; |
25 | $iface = "s"; |
22 | } elsif (-e "/usr/include/ucontext.h") { |
26 | } elsif (-e "/usr/include/ucontext.h") { |
23 | $iface = "u"; |
27 | $iface = "u"; |
24 | } else { |
28 | } else { |