Commit | Line | Data |
---|---|---|
4e774c84 | 1 | # See dl_aix.xs for details. |
2 | use Config; | |
3 | if ($Config{libs} =~ /-lC/ && -f '/lib/libC.a') { | |
4 | $self->{CCFLAGS} = $Config{ccflags} . ' -DUSE_xlC'; | |
5 | if (-f '/usr/ibmcxx/include/load.h') { | |
6 | $self->{CCFLAGS} .= ' -I/usr/ibmcxx/include'; | |
7 | } elsif (-f '/usr/lpp/xlC/include/load.h') { | |
8 | $self->{CCFLAGS} .= ' -I/usr/lpp/xlC/include'; | |
9 | } else { | |
10 | # Hoping that <load.h> will be found somehow. | |
11 | } | |
12 | } |