+# Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
+set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+echo "configure:2204: checking for $ac_word" >&5
+if eval "test \"`echo '$''{'ac_cv_prog_GNATMAKE'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ if test -n "$GNATMAKE"; then
+ ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
+else
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ ac_dummy="$PATH"
+ for ac_dir in $ac_dummy; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$ac_word; then
+ ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+fi
+fi
+GNATMAKE="$ac_cv_prog_GNATMAKE"
+if test -n "$GNATMAKE"; then
+ echo "$ac_t""$GNATMAKE" 1>&6
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+
+if test -z "$ac_cv_prog_GNATMAKE"; then
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "gnatmake", so it can be a program name with args.
+set dummy gnatmake; ac_word=$2
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+echo "configure:2236: checking for $ac_word" >&5
+if eval "test \"`echo '$''{'ac_cv_prog_GNATMAKE'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ if test -n "$GNATMAKE"; then
+ ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
+else
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ ac_dummy="$PATH"
+ for ac_dir in $ac_dummy; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$ac_word; then
+ ac_cv_prog_GNATMAKE="gnatmake"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+ test -z "$ac_cv_prog_GNATMAKE" && ac_cv_prog_GNATMAKE="no"
+fi
+fi
+GNATMAKE="$ac_cv_prog_GNATMAKE"
+if test -n "$GNATMAKE"; then
+ echo "$ac_t""$GNATMAKE" 1>&6
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+else
+ GNATMAKE="no"
+fi
+fi
+