Ignore:
Timestamp:
2009-01-11T19:46:44+13:00 (15 years ago)
Author:
davidb
Message:

Supported for compiling on 64-bit machine added

File:
1 edited

Legend:

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

    r18019 r18345  
    44AC_CONFIG_SRCDIR([gdbmdefs.h])
    55AC_CONFIG_HEADERS([autoconf.h])
     6
     7dnl get $target_cpu, $target_vendor, and $target_os
     8dnl (as well as host_*)
     9AC_CANONICAL_SYSTEM
     10
    611AC_PROG_CC
    712AC_PROG_CPP
     
    1015dnl AC_PROG_RANLIB
    1116dnl AC_C_BIGENDIAN([])
     17
     18AC_MSG_CHECKING(to see if architecture is 64-bit)
     19arch_64bit=no
     20case "$host_cpu" in
     21x86_64) arch_64bit=yes ;;
     22esac
     23
     24if 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
     30else
     31  AC_MSG_RESULT(no)
     32  if test -z "$COMPAT32BITFLAGS" ; then
     33    COMPAT32BITFLAGS=
     34    LIBTOOLCOMPAT32BITFLAGS=
     35  fi
     36fi
     37export COMPAT32BITFLAGS
     38AC_SUBST(COMPAT32BITFLAGS)
     39
     40
    1241AC_C_CONST
    1342AC_CHECK_HEADERS([stdlib.h string.h sys/file.h unistd.h fcntl.h sys/types.h memory.y])
Note: See TracChangeset for help on using the changeset viewer.