diff --git a/configure b/configure index 8d4887fd2..bac829915 100755 --- a/configure +++ b/configure @@ -3556,7 +3556,8 @@ else ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH +as_dummy="$PATH:/usr/ccs/bin" +for as_dir in $as_dummy do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. @@ -3594,7 +3595,8 @@ else ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH +as_dummy="$PATH:/usr/ccs/bin" +for as_dir in $as_dummy do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. @@ -3607,6 +3609,7 @@ do done done + test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR=":" fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR diff --git a/configure.in b/configure.in index 29ec9998f..dbec0a022 100644 --- a/configure.in +++ b/configure.in @@ -16,7 +16,7 @@ AC_ARG_ENABLE([ssl], [ --enable-ssl enalbe SSL support if libssl is AC_PROG_CXX AC_PROG_CC -AC_CHECK_TOOL(AR, ar) +AC_CHECK_TOOL(AR, [ar], [:], $PATH:/usr/ccs/bin) # Checks for libraries. if test "x$enable_ssl" = "xyes"; then