Ignore:
Timestamp:
Aug 5, 2010 6:27:20 AM (14 years ago)
Author:
bennylp
Message:

Re #1068 (misc): fixed error in cross compiling Mingw on a Linux box (thanks Atik Khan for the report)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure.ac

    r3205 r3246  
    4141AC_PROG_CXX 
    4242AC_LANG_C 
     43 
     44dnl # 
     45dnl # Setup CROSS_COMPILE variable 
     46dnl # 
     47if test -z "$CROSS_COMPILE"; then  
     48    CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'` 
     49fi 
    4350 
    4451if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi 
     
    7178AC_SUBST(ac_pjdir) 
    7279AC_SUBST(ac_build_mak_vars) 
    73 case $target in  
     80 
     81case $host in  
    7482    *mingw* | *cygw* | *win32* | *w32* ) 
    75         ac_pjdir=`pwd -W` 
     83        if pwd -W 2&> /dev/null; then 
     84           ac_pjdir=`pwd -W` 
     85        else 
     86           # We're probably cross-compiling mingw on Linux 
     87           ac_pjdir=`pwd` 
     88        fi 
    7689        ;; 
    7790    *) 
Note: See TracChangeset for help on using the changeset viewer.