AIX 64bit gcc configuration

Description

Hi,

At the moment the configuration does not automatically set up 64bit gcc
compilation
for AIX.

This patch to aclocal.m4 should allow a configure file to be generated that in
turn generates the compile and link flags for 64bit icu using gcc.

We built with gcc 3.3.2

The patch text is below:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 --- aclocal.m4.2.8 2004-01-16 01:23:34.000000000 +0000 +++ aclocal.m4.new 2004-02-02 11:12:22.000000000 +0000 @@ -144,15 +144,18 @@ fi ;; *-*-aix*) - if test "$ac_cv_prog_gcc" = no; then - # Note: Have not tested 64-bitness with gcc. - # Maybe the flag "-maix64" could be used with gcc? OLD_CFLAGS="${CFLAGS}" OLD_CXXFLAGS="${CXXFLAGS}" OLD_LDFLAGS="${LDFLAGS}" + if test "$ac_cv_prog_gcc" = yes; then + CFLAGS="${CFLAGS} -maix64" + CXXFLAGS="${CXXFLAGS} -fno-weak -maix64" + LDFLAGS="${LDFLAGS} -maix64" + else CFLAGS="${CFLAGS} -q64" CXXFLAGS="${CXXFLAGS} -q64" LDFLAGS="${LDFLAGS} -q64" + fi AC_TRY_RUN(int main(void) {return 0;}, ENABLE_64BIT_LIBS=yes, ENABLE_64BIT_LIBS=no, ENABLE_64BIT_LIBS=no) if test "$ENABLE_64BIT_LIBS" = no; then @@ -162,7 +165,7 @@ else ARFLAGS="${ARFLAGS} -X64" fi - fi + ;; *-*-hpux*) OLD_CFLAGS="${CFLAGS}"

Status

Assignee

Steven R. Loomis

Reporter

TracBot

Labels

None

Reviewer

None

Time Needed

Hours

Start date

None

Components

Priority

trivial
Configure