4885 | | #ifdef ARCHLIB_EXP |
4886 | | incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE, TRUE); |
4887 | | #endif |
4888 | | #ifdef MACOS_TRADITIONAL |
4889 | | { |
4890 | | Stat_t tmpstatbuf; |
4891 | | SV * privdir = newSV(0); |
4892 | | char * macperl = PerlEnv_getenv("MACPERL"); |
4893 | | |
4894 | | if (!macperl) |
4895 | | macperl = ""; |
4896 | | |
4897 | | Perl_sv_setpvf(aTHX_ privdir, "%slib:", macperl); |
4898 | | if (PerlLIO_stat(SvPVX(privdir), &tmpstatbuf) >= 0 && S_ISDIR(tmpstatbuf.st_mode)) |
4899 | | incpush(SvPVX(privdir), TRUE, FALSE, TRUE, FALSE); |
4900 | | Perl_sv_setpvf(aTHX_ privdir, "%ssite_perl:", macperl); |
4901 | | if (PerlLIO_stat(SvPVX(privdir), &tmpstatbuf) >= 0 && S_ISDIR(tmpstatbuf.st_mode)) |
4902 | | incpush(SvPVX(privdir), TRUE, FALSE, TRUE, FALSE); |
4903 | | |
4904 | | SvREFCNT_dec(privdir); |
4905 | | } |
4906 | | if (!PL_tainting) |
4907 | | incpush(":", FALSE, FALSE, TRUE, FALSE); |
4908 | | #else |
4909 | | #ifndef PRIVLIB_EXP |
4910 | | # define PRIVLIB_EXP "/usr/local/lib/perl5:/usr/local/lib/perl" |
4911 | | #endif |
4912 | | #if defined(WIN32) |
4913 | | incpush(PRIVLIB_EXP, TRUE, FALSE, TRUE, TRUE); |
4914 | | #else |
4915 | | incpush(PRIVLIB_EXP, FALSE, FALSE, TRUE, TRUE); |
4916 | | #endif |
4917 | | |
| 4886 | /* start site* locations */ |
| 4930 | /* end vendor* locations */ |
| 4931 | |
| 4932 | #ifdef ARCHLIB_EXP |
| 4933 | incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE, TRUE); |
| 4934 | #endif |
| 4935 | #ifdef MACOS_TRADITIONAL |
| 4936 | { |
| 4937 | Stat_t tmpstatbuf; |
| 4938 | SV * privdir = newSV(0); |
| 4939 | char * macperl = PerlEnv_getenv("MACPERL"); |
| 4940 | |
| 4941 | if (!macperl) |
| 4942 | macperl = ""; |
| 4943 | |
| 4944 | Perl_sv_setpvf(aTHX_ privdir, "%slib:", macperl); |
| 4945 | if (PerlLIO_stat(SvPVX(privdir), &tmpstatbuf) >= 0 && S_ISDIR(tmpstatbuf.st_mode)) |
| 4946 | incpush(SvPVX(privdir), TRUE, FALSE, TRUE, FALSE); |
| 4947 | Perl_sv_setpvf(aTHX_ privdir, "%ssite_perl:", macperl); |
| 4948 | if (PerlLIO_stat(SvPVX(privdir), &tmpstatbuf) >= 0 && S_ISDIR(tmpstatbuf.st_mode)) |
| 4949 | incpush(SvPVX(privdir), TRUE, FALSE, TRUE, FALSE); |
| 4950 | |
| 4951 | SvREFCNT_dec(privdir); |
| 4952 | } |
| 4953 | if (!PL_tainting) |
| 4954 | incpush(":", FALSE, FALSE, TRUE, FALSE); |
| 4955 | #else |
| 4956 | #ifndef PRIVLIB_EXP |
| 4957 | # define PRIVLIB_EXP "/usr/local/lib/perl5:/usr/local/lib/perl" |
| 4958 | #endif |
| 4959 | #if defined(WIN32) |
| 4960 | incpush(PRIVLIB_EXP, TRUE, FALSE, TRUE, TRUE); |
| 4961 | #else |
| 4962 | incpush(PRIVLIB_EXP, FALSE, FALSE, TRUE, TRUE); |
| 4963 | #endif |