Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r575a6e5 r47c1928  
    8080# Create variables for commonly used targets
    8181
    82 TOP_SRCDIR=$ac_pwd/$ac_confdir/
    83 TOP_BUILDDIR=$ac_pwd/
     82TOP_SRCDIR="$(readlink -f $ac_confdir/)/"
     83TOP_BUILDDIR="$(readlink -f $ac_pwd/)/"
    8484
    8585AC_DEFINE_UNQUOTED(TOP_SRCDIR, "$TOP_SRCDIR", [Top src directory])
     
    120120AC_CANONICAL_BUILD
    121121AC_CANONICAL_HOST
     122
     123if ! test "$host_cpu" = "$build_cpu"; then
     124        case $host_cpu in
     125                i386)
     126                        HOST_FLAGS="-m32"
     127                        ;;
     128                i686)
     129                        HOST_FLAGS="-m32"
     130                        ;;
     131                x86_64)
     132                        HOST_FLAGS="-m64"
     133                        ;;
     134        esac
     135fi
     136AC_SUBST(HOST_FLAGS)
    122137
    123138default_target="${host_cpu}:debug, ${host_cpu}:nodebug"
Note: See TracChangeset for help on using the changeset viewer.