Changeset 13283 for trunk/configure.ac


Ignore:
Timestamp:
Apr 9, 2012, 3:00:38 AM (9 years ago)
Author:
jordan
Message:

better fix for #4826 because r13268 introduced a regression with not finding relative-path compilers. d'oh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r13282 r13283  
    7474AC_PROG_CC
    7575AC_PROG_CXX
    76 AC_MSG_CHECKING([for $CXX])
    77 if test -f "$CXX"; then
     76if test "x$CXX" != "x"; then # CXX is set...
     77  if test -f "$CXX"; then # maybe it's an absolute path passed in env variables...
     78    AC_MSG_CHECKING([for $CXX])
    7879    HAVE_CXX="yes"
    79 else
    80     HAVE_CXX="no"
    81 fi
    82 AC_MSG_RESULT([$HAVE_CXX])
     80    AC_MSG_RESULT([$HAVE_CXX])
     81  else
     82    AC_CHECK_PROG([HAVE_CXX],[$CXX],[yes],[no])
     83  fi
     84fi
    8385AC_C_INLINE
    8486if test "x$GCC" = "xyes" ; then
Note: See TracChangeset for help on using the changeset viewer.