hjl / source-git / glibc

Forked from source-git/glibc 3 years ago
Clone

Blame sysdeps/nios2/configure

Packit 6c4009
# This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
Packit 6c4009
 # Local configure fragment for sysdeps/nios2.
Packit 6c4009
Packit 6c4009
# Nios II big endian is not yet supported.
Packit 6c4009
Packit 6c4009
Packit 6c4009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Packit 6c4009
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Packit 6c4009
if ${ac_cv_path_GREP+:} false; then :
Packit 6c4009
  $as_echo_n "(cached) " >&6
Packit 6c4009
else
Packit 6c4009
  if test -z "$GREP"; then
Packit 6c4009
  ac_path_GREP_found=false
Packit 6c4009
  # Loop through the user's path and test for each of PROGNAME-LIST
Packit 6c4009
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Packit 6c4009
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Packit 6c4009
do
Packit 6c4009
  IFS=$as_save_IFS
Packit 6c4009
  test -z "$as_dir" && as_dir=.
Packit 6c4009
    for ac_prog in grep ggrep; do
Packit 6c4009
    for ac_exec_ext in '' $ac_executable_extensions; do
Packit 6c4009
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Packit 6c4009
      as_fn_executable_p "$ac_path_GREP" || continue
Packit 6c4009
# Check for GNU ac_path_GREP and select it if it is found.
Packit 6c4009
  # Check for GNU $ac_path_GREP
Packit 6c4009
case `"$ac_path_GREP" --version 2>&1` in
Packit 6c4009
*GNU*)
Packit 6c4009
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
Packit 6c4009
*)
Packit 6c4009
  ac_count=0
Packit 6c4009
  $as_echo_n 0123456789 >"conftest.in"
Packit 6c4009
  while :
Packit 6c4009
  do
Packit 6c4009
    cat "conftest.in" "conftest.in" >"conftest.tmp"
Packit 6c4009
    mv "conftest.tmp" "conftest.in"
Packit 6c4009
    cp "conftest.in" "conftest.nl"
Packit 6c4009
    $as_echo 'GREP' >> "conftest.nl"
Packit 6c4009
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Packit 6c4009
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Packit 6c4009
    as_fn_arith $ac_count + 1 && ac_count=$as_val
Packit 6c4009
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
Packit 6c4009
      # Best one so far, save it but keep looking for a better one
Packit 6c4009
      ac_cv_path_GREP="$ac_path_GREP"
Packit 6c4009
      ac_path_GREP_max=$ac_count
Packit 6c4009
    fi
Packit 6c4009
    # 10*(2^10) chars as input seems more than enough
Packit 6c4009
    test $ac_count -gt 10 && break
Packit 6c4009
  done
Packit 6c4009
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Packit 6c4009
esac
Packit 6c4009
Packit 6c4009
      $ac_path_GREP_found && break 3
Packit 6c4009
    done
Packit 6c4009
  done
Packit 6c4009
  done
Packit 6c4009
IFS=$as_save_IFS
Packit 6c4009
  if test -z "$ac_cv_path_GREP"; then
Packit 6c4009
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Packit 6c4009
  fi
Packit 6c4009
else
Packit 6c4009
  ac_cv_path_GREP=$GREP
Packit 6c4009
fi
Packit 6c4009
Packit 6c4009
fi
Packit 6c4009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Packit 6c4009
$as_echo "$ac_cv_path_GREP" >&6; }
Packit 6c4009
 GREP="$ac_cv_path_GREP"
Packit 6c4009
Packit 6c4009
Packit 6c4009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Packit 6c4009
$as_echo_n "checking for egrep... " >&6; }
Packit 6c4009
if ${ac_cv_path_EGREP+:} false; then :
Packit 6c4009
  $as_echo_n "(cached) " >&6
Packit 6c4009
else
Packit 6c4009
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
Packit 6c4009
   then ac_cv_path_EGREP="$GREP -E"
Packit 6c4009
   else
Packit 6c4009
     if test -z "$EGREP"; then
Packit 6c4009
  ac_path_EGREP_found=false
Packit 6c4009
  # Loop through the user's path and test for each of PROGNAME-LIST
Packit 6c4009
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Packit 6c4009
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Packit 6c4009
do
Packit 6c4009
  IFS=$as_save_IFS
Packit 6c4009
  test -z "$as_dir" && as_dir=.
Packit 6c4009
    for ac_prog in egrep; do
Packit 6c4009
    for ac_exec_ext in '' $ac_executable_extensions; do
Packit 6c4009
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Packit 6c4009
      as_fn_executable_p "$ac_path_EGREP" || continue
Packit 6c4009
# Check for GNU ac_path_EGREP and select it if it is found.
Packit 6c4009
  # Check for GNU $ac_path_EGREP
Packit 6c4009
case `"$ac_path_EGREP" --version 2>&1` in
Packit 6c4009
*GNU*)
Packit 6c4009
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
Packit 6c4009
*)
Packit 6c4009
  ac_count=0
Packit 6c4009
  $as_echo_n 0123456789 >"conftest.in"
Packit 6c4009
  while :
Packit 6c4009
  do
Packit 6c4009
    cat "conftest.in" "conftest.in" >"conftest.tmp"
Packit 6c4009
    mv "conftest.tmp" "conftest.in"
Packit 6c4009
    cp "conftest.in" "conftest.nl"
Packit 6c4009
    $as_echo 'EGREP' >> "conftest.nl"
Packit 6c4009
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
Packit 6c4009
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Packit 6c4009
    as_fn_arith $ac_count + 1 && ac_count=$as_val
Packit 6c4009
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
Packit 6c4009
      # Best one so far, save it but keep looking for a better one
Packit 6c4009
      ac_cv_path_EGREP="$ac_path_EGREP"
Packit 6c4009
      ac_path_EGREP_max=$ac_count
Packit 6c4009
    fi
Packit 6c4009
    # 10*(2^10) chars as input seems more than enough
Packit 6c4009
    test $ac_count -gt 10 && break
Packit 6c4009
  done
Packit 6c4009
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Packit 6c4009
esac
Packit 6c4009
Packit 6c4009
      $ac_path_EGREP_found && break 3
Packit 6c4009
    done
Packit 6c4009
  done
Packit 6c4009
  done
Packit 6c4009
IFS=$as_save_IFS
Packit 6c4009
  if test -z "$ac_cv_path_EGREP"; then
Packit 6c4009
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Packit 6c4009
  fi
Packit 6c4009
else
Packit 6c4009
  ac_cv_path_EGREP=$EGREP
Packit 6c4009
fi
Packit 6c4009
Packit 6c4009
   fi
Packit 6c4009
fi
Packit 6c4009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Packit 6c4009
$as_echo "$ac_cv_path_EGREP" >&6; }
Packit 6c4009
 EGREP="$ac_cv_path_EGREP"
Packit 6c4009
Packit 6c4009
Packit 6c4009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5
Packit 6c4009
$as_echo_n "checking for big endian... " >&6; }
Packit 6c4009
if ${libc_cv_nios2_be+:} false; then :
Packit 6c4009
  $as_echo_n "(cached) " >&6
Packit 6c4009
else
Packit 6c4009
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Packit 6c4009
/* end confdefs.h.  */
Packit 6c4009
#ifdef __nios2_big_endian__
Packit 6c4009
                      yes
Packit 6c4009
                     #endif
Packit 6c4009
Packit 6c4009
_ACEOF
Packit 6c4009
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Packit 6c4009
  $EGREP "yes" >/dev/null 2>&1; then :
Packit 6c4009
  libc_cv_nios2_be=yes
Packit 6c4009
else
Packit 6c4009
  libc_cv_nios2_be=no
Packit 6c4009
fi
Packit 6c4009
rm -f conftest*
Packit 6c4009
Packit 6c4009
fi
Packit 6c4009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_nios2_be" >&5
Packit 6c4009
$as_echo "$libc_cv_nios2_be" >&6; }
Packit 6c4009
if test $libc_cv_nios2_be = yes; then
Packit 6c4009
  as_fn_error $? "Big endian not supported for Nios II" "$LINENO" 5
Packit 6c4009
fi