Commits
76 76 | AC_MSG_ERROR([cannot find a C++ compiler that supports C++11, please include the path to one in your PATH environment variable]) |
77 77 | ;; |
78 78 | esac |
79 79 | |
80 80 | if [[ "${ac_success}" = "no" ]]; then |
81 81 | AC_MSG_ERROR([cannot find a C++ compiler that supports C++11, please include the path to one in your PATH environment variable]) |
82 82 | fi |
83 83 | fi |
84 84 | |
85 85 | if [[ ! -e "${CXX}" ]]; then |
86 - | CXX=`which ${CXX}` |
86 + | CXX=`type -p ${CXX}` |
87 87 | fi |
88 88 | if [[ -x "${CXX}" ]]; then |
89 89 | AC_MSG_NOTICE([C++11 compiler ${CXX}]) |
90 90 | else |
91 91 | AC_MSG_ERROR([failed to find viable C++11 compiler, please include the path to one in your PATH environment variable]) |
92 92 | fi |
93 93 | |
94 94 | AC_MSG_CHECKING([for std::defaultfloat]) |
95 95 | AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[#include <ios>]], |
96 96 | [[std::defaultfloat;]])], |