Ignore:
Timestamp:
2010-01-06T17:30:17+13:00 (14 years ago)
Author:
davidb
Message:

Update to use of -m32, which is activated when compiling on a 64-bit machine. The requirement for needing to using -m32 is mg and mg++ (which currently only work with 32-bit sized data-types). If both --disable-mg and --disable-mgpp are specified this means that we don't need to use -m32. Configure files updated to detect this and 'cancel' the -m32 flag.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/packages/gdbm/gdbm-1.8.3/configure.in

    r18345 r21432  
    1616dnl AC_C_BIGENDIAN([])
    1717
    18 AC_MSG_CHECKING(to see if architecture is 64-bit)
    19 arch_64bit=no
    20 case "$host_cpu" in
    21 x86_64) arch_64bit=yes ;;
    22 esac
     18dnl AC_MSG_CHECKING(to see if architecture is 64-bit)
     19dnl arch_64bit=no
     20dnl case "$host_cpu" in
     21dnl x86_64) arch_64bit=yes ;;
     22dnl esac
     23dnl
     24dnl if test "$arch_64bit" = yes; then
     25dnl   AC_MSG_RESULT(yes)
     26dnl   if test -z "$COMPAT32BITFLAGS" ; then
     27dnl     COMPAT32BITFLAGS="-m32"
     28dnl     LIBTOOLCOMPAT32BITFLAGS="-Wl,-m32"
     29dnl   fi
     30dnl else
     31dnl   AC_MSG_RESULT(no)
     32dnl   if test -z "$COMPAT32BITFLAGS" ; then
     33dnl     COMPAT32BITFLAGS=
     34dnl     LIBTOOLCOMPAT32BITFLAGS=
     35dnl   fi
     36dnl fi
     37dnl export COMPAT32BITFLAGS
     38dnl AC_SUBST(COMPAT32BITFLAGS)
    2339
    24 if test "$arch_64bit" = yes; then
    25   AC_MSG_RESULT(yes)
    26   if test -z "$COMPAT32BITFLAGS" ; then
    27     COMPAT32BITFLAGS="-m32"
    28     LIBTOOLCOMPAT32BITFLAGS="-Wl,-m32"
    29   fi
    30 else
    31   AC_MSG_RESULT(no)
    32   if test -z "$COMPAT32BITFLAGS" ; then
    33     COMPAT32BITFLAGS=
    34     LIBTOOLCOMPAT32BITFLAGS=
    35   fi
    36 fi
    37 export COMPAT32BITFLAGS
     40
     41AC_DEFINE_UNQUOTED(COMPAT32BITFLAGS, $COMPAT32BITFLAGS)
    3842AC_SUBST(COMPAT32BITFLAGS)
    3943
Note: See TracChangeset for help on using the changeset viewer.