diff options
-rw-r--r-- | README.aix | 13 | ||||
-rw-r--r-- | hints/aix.sh | 15 |
2 files changed, 17 insertions, 11 deletions
diff --git a/README.aix b/README.aix index 62d574e025..999d9ad6c3 100644 --- a/README.aix +++ b/README.aix @@ -60,10 +60,13 @@ development team. =head2 Incompatibility with AIX Toolbox lib gdbm -If the AIX Toolbox version of lib gdbm 1.8.x is installed on the -system then Perl will not work. This library contains a defect version -of the dbm_store() function. The lib gdbm will be automatically removed -from the wanted libraries. +If the AIX Toolbox version of lib gdbm < 1.8.3-5 is installed on your +system then Perl will not work. This library contains the header files +/opt/freeware/include/gdbm/dbm.h|ndbm.h which conflict with the AIX +system versions. The lib gdbm will be automatically removed from the +wanted libraries if the presence of one of these two header files is +detected. If you want to bild Perl with GDBM support then please install +at leas gdbm-devel-1.8.3-5 (or higher). =head2 Perl 5.10 was successfully compiled and tested on: @@ -470,6 +473,6 @@ Rainer Tammer <tammer@tammer.net> =head1 DATE -Version 0.0.10: 07 Aug 2009 +Version 0.0.11: 18 Jan 2010 =cut diff --git a/hints/aix.sh b/hints/aix.sh index a7c8df2b64..8d06c9fc72 100644 --- a/hints/aix.sh +++ b/hints/aix.sh @@ -539,10 +539,13 @@ libswanted=`echo " $libswanted " | sed -e 's/ BSD / /'` d_flock='undef' # remove libgdbm from wanted libraries -# The libgdbm 1.8.3 from the AIX Toolbox is not working -# (the dbm_store() function is defective) -libswanted=`echo " $libswanted " | sed -e 's/ gdbm / /'` -i_gdbm='undef' -i_gdbmndbm='undef' - +# The libgdbm < 1.8.3-5 from the AIX Toolbox is not working +# because two wrong .h are present +if [ -f "/opt/freeware/include/gdbm/dbm.h" ] || + [ -f "/opt/freeware/include/gdbm/ndbm.h" ]; then + echo "GDBM support disabled because your GDBM package contains extraneous headers - see README.aix." + libswanted=`echo " $libswanted " | sed -e 's/ gdbm / /'` + i_gdbm='undef' + i_gdbmndbm='undef' +fi # EOF |