@@ -19118,19 +19118,59 @@ fi
1911819118#
1911919119if test "$enable_thread_safety" = yes; then
1912019120if test cross_compiling != yes; then
19121+ for ac_prog in gmake make
19122+ do
19123+ # Extract the first word of "$ac_prog", so it can be a program name with args.
19124+ set dummy $ac_prog; ac_word=$2
19125+ echo "$as_me:$LINENO: checking for $ac_word" >&5
19126+ echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19127+ if test "${ac_cv_prog_MAKE+set}" = set; then
19128+ echo $ECHO_N "(cached) $ECHO_C" >&6
19129+ else
19130+ if test -n "$MAKE"; then
19131+ ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
19132+ else
19133+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19134+ for as_dir in $PATH
19135+ do
19136+ IFS=$as_save_IFS
19137+ test -z "$as_dir" && as_dir=.
19138+ for ac_exec_ext in '' $ac_executable_extensions; do
19139+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19140+ ac_cv_prog_MAKE="$ac_prog"
19141+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19142+ break 2
19143+ fi
19144+ done
19145+ done
19146+
19147+ fi
19148+ fi
19149+ MAKE=$ac_cv_prog_MAKE
19150+ if test -n "$MAKE"; then
19151+ echo "$as_me:$LINENO: result: $MAKE" >&5
19152+ echo "${ECHO_T}$MAKE" >&6
19153+ else
19154+ echo "$as_me:$LINENO: result: no" >&5
19155+ echo "${ECHO_T}no" >&6
19156+ fi
19157+
19158+ test -n "$MAKE" && break
19159+ done
19160+
1912119161echo "$as_me:$LINENO: checking thread safety of required library functions." >&5
1912219162echo $ECHO_N "checking thread safety of required library functions.... $ECHO_C" >&6
1912319163#
1912419164# Clean, compile, run, and clean thread test directory.
1912519165# If test fails for any reason, remove Makefile.global so the user can't
1912619166# compile (to simulate a configure failure).
1912719167#
19128- gmake -C $srcdir/src/tools/thread clean >&5 ||
19168+ $MAKE -C $srcdir/src/tools/thread clean >&5 ||
1912919169( rm -f src/Makefile.global
1913019170 { { echo "$as_me:$LINENO: error: Can not clean thread test directory." >&5
1913119171echo "$as_me: error: Can not clean thread test directory." >&2;}
1913219172 { (exit 1); exit 1; }; })
19133- gmake -C $srcdir/src/tools/thread >&5 ||
19173+ $MAKE -C $srcdir/src/tools/thread >&5 ||
1913419174( rm -f src/Makefile.global
1913519175 { { echo "$as_me:$LINENO: error: Can not build thread test proram." >&5
1913619176echo "$as_me: error: Can not build thread test proram." >&2;}
@@ -19140,7 +19180,7 @@ $srcdir/src/tools/thread/thread_test >&5 ||
1914019180 { { echo "$as_me:$LINENO: error: Thread test program failed." >&5
1914119181echo "$as_me: error: Thread test program failed." >&2;}
1914219182 { (exit 1); exit 1; }; })
19143- gmake -C $srcdir/src/tools/thread clean >&5 ||
19183+ $MAKE -C $srcdir/src/tools/thread clean >&5 ||
1914419184( rm -f src/Makefile.global
1914519185 { { echo "$as_me:$LINENO: error: Can not clean thread test directory." >&5
1914619186echo "$as_me: error: Can not clean thread test directory." >&2;}