diff -r f4e6e18cae4b Makefile.pre.in --- a/Makefile.pre.in Tue Mar 29 17:28:25 2011 -0700 +++ b/Makefile.pre.in Thu Mar 31 13:09:24 2011 +0200 @@ -1028,7 +1028,7 @@ $(INSTALL_SCRIPT) $(srcdir)/Modules/makexp_aix \ $(DESTDIR)$(LIBPL)/makexp_aix; \ echo "$(LIBPL)/makexp_aix"; \ - $(INSTALL_SCRIPT) $(srcdir)/Modules/ld_so_aix \ + $(INSTALL_SCRIPT) Modules/ld_so_aix \ $(DESTDIR)$(LIBPL)/ld_so_aix; \ echo "$(LIBPL)/ld_so_aix"; \ echo; echo "See Misc/AIX-NOTES for details."; \ diff -r f4e6e18cae4b Modules/ld_so_aix.in --- a/Modules/ld_so_aix.in Tue Mar 29 17:28:25 2011 -0700 +++ b/Modules/ld_so_aix.in Thu Mar 31 13:09:24 2011 +0200 @@ -69,7 +69,10 @@ echo $usage; exit 2 fi -makexp=`dirname $0`/makexp_aix +makexp=`dirname $0`/@srcdir@/makexp_aix +if test ! -e "$makexp" ; then + makeexp=makexp_aix +fi # Check for existence of compiler. CC=$1; shift diff -r f4e6e18cae4b configure.in --- a/configure.in Tue Mar 29 17:28:25 2011 -0700 +++ b/configure.in Thu Mar 31 13:09:24 2011 +0200 @@ -1778,7 +1778,7 @@ then case $ac_sys_system/$ac_sys_release in AIX*) - BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:\$(srcdir)/Modules/python.exp" + BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp -L\$(srcdir)" LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" ;; BeOS*)