332 ]) |
332 ]) |
333 |
333 |
334 # Restore path, etc |
334 # Restore path, etc |
335 AC_DEFUN_ONCE([TOOLCHAIN_POST_DETECTION], |
335 AC_DEFUN_ONCE([TOOLCHAIN_POST_DETECTION], |
336 [ |
336 [ |
337 # Restore old path. |
337 # Restore old path, except for the microsoft toolchain, which requires VS_PATH |
338 PATH="$OLD_PATH" |
338 # to remain in place. Otherwise the compiler will not work in some situations |
|
339 # in later configure checks. |
|
340 if test "x$TOOLCHAIN_TYPE" != "xmicrosoft"; then |
|
341 PATH="$OLD_PATH" |
|
342 fi |
339 |
343 |
340 # Restore the flags to the user specified values. |
344 # Restore the flags to the user specified values. |
341 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" |
345 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" |
342 CFLAGS="$ORG_CFLAGS" |
346 CFLAGS="$ORG_CFLAGS" |
343 CXXFLAGS="$ORG_CXXFLAGS" |
347 CXXFLAGS="$ORG_CXXFLAGS" |