Skip to content
Snippets Groups Projects
configure 940 KiB
Newer Older
  • Learn to ignore specific revisions
  •   $as_echo_n "(cached) " >&6
    
    else
      if test -z "$LD"; then
      lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
      for ac_dir in $PATH; do
        IFS="$lt_save_ifs"
        test -z "$ac_dir" && ac_dir=.
        if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
          lt_cv_path_LD="$ac_dir/$ac_prog"
          # Check to see if the program is GNU ld.  I'd rather use --version,
          # but apparently some variants of GNU ld only accept -v.
          # Break only if it was the GNU/non-GNU ld that we prefer.
          case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
          *GNU* | *'with BFD'*)
    	test "$with_gnu_ld" != no && break
    	;;
          *)
    	test "$with_gnu_ld" != yes && break
    	;;
          esac
        fi
      done
      IFS="$lt_save_ifs"
    else
      lt_cv_path_LD="$LD" # Let the user override the test with a path.
    fi
    fi
    
    LD="$lt_cv_path_LD"
    if test -n "$LD"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
    
    $as_echo "$LD" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    
    $as_echo "no" >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
    
    $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    if ${lt_cv_prog_gnu_ld+:} false; then :
    
      $as_echo_n "(cached) " >&6
    
    else
      # I'd rather use --version here, but apparently some GNU lds only accept -v.
    case `$LD -v 2>&1 </dev/null` in
    *GNU* | *'with BFD'*)
      lt_cv_prog_gnu_ld=yes
      ;;
    *)
      lt_cv_prog_gnu_ld=no
      ;;
    esac
    fi
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
    
    $as_echo "$lt_cv_prog_gnu_ld" >&6; }
    
    with_gnu_ld=$lt_cv_prog_gnu_ld
    
    	# note, does not work on FreeBSD
    for ac_prog in gawk mawk nawk awk
    do
      # Extract the first word of "$ac_prog", so it can be a program name with args.
    set dummy $ac_prog; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    
    $as_echo_n "checking for $ac_word... " >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    if ${ac_cv_prog_AWK+:} false; then :
    
      $as_echo_n "(cached) " >&6
    
    else
      if test -n "$AWK"; then
      ac_cv_prog_AWK="$AWK" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
    David M. Lee's avatar
    David M. Lee committed
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_prog_AWK="$ac_prog"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
    fi
    fi
    AWK=$ac_cv_prog_AWK
    if test -n "$AWK"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
    
    $as_echo "$AWK" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    
    $as_echo "no" >&6; }
    
    fi
    
    
      test -n "$AWK" && break
    done
    
    # Find a good install program.  We prefer a C program (faster),
    # so one script is as good as another.  But avoid the broken or
    # incompatible versions:
    # SysV /etc/install, /usr/sbin/install
    # SunOS /usr/etc/install
    # IRIX /sbin/install
    # AIX /bin/install
    # AmigaOS /C/install, which installs bootblocks on floppy discs
    # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    # AFS /usr/afsws/bin/install, which mishandles nonexistent args
    # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    # OS/2's system install, which has a completely different semantic
    # ./install, which can be erroneously created by make from ./install.sh.
    
    # Reject install programs that cannot install multiple files.
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
    
    $as_echo_n "checking for a BSD-compatible install... " >&6; }
    
    if test -z "$INSTALL"; then
    
    David M. Lee's avatar
    David M. Lee committed
    if ${ac_cv_path_install+:} false; then :
    
      $as_echo_n "(cached) " >&6
    
    else
      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
    
        # Account for people who put trailing slashes in PATH elements.
    case $as_dir/ in #((
      ./ | .// | /[cC]/* | \
    
      /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
    
      ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
    
      /usr/ucb/* ) ;;
      *)
        # OSF1 and SCO ODT 3.0 have their own names for install.
        # Don't use installbsd from OSF since it installs stuff as root
        # by default.
        for ac_prog in ginstall scoinst install; do
          for ac_exec_ext in '' $ac_executable_extensions; do
    
    David M. Lee's avatar
    David M. Lee committed
    	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    
    	  if test $ac_prog = install &&
    	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    	    # AIX install.  It has an incompatible calling convention.
    	    :
    	  elif test $ac_prog = install &&
    	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    	    # program-specific install script used by HP pwplus--don't use.
    	    :
    	  else
    
    	    rm -rf conftest.one conftest.two conftest.dir
    	    echo one > conftest.one
    	    echo two > conftest.two
    	    mkdir conftest.dir
    	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
    	      test -s conftest.one && test -s conftest.two &&
    	      test -s conftest.dir/conftest.one &&
    	      test -s conftest.dir/conftest.two
    	    then
    	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
    	      break 3
    	    fi
    
    rm -rf conftest.one conftest.two conftest.dir
    
    
    fi
      if test "${ac_cv_path_install+set}" = set; then
        INSTALL=$ac_cv_path_install
      else
        # As a last resort, use the slow shell script.  Don't cache a
        # value for INSTALL within a source directory, because that will
        # break other packages using the cache if that directory is
        # removed, or if the value is a relative name.
        INSTALL=$ac_install_sh
      fi
    fi
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
    
    $as_echo "$INSTALL" >&6; }
    
    
    # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
    # It thinks the first close brace ends the variable substitution.
    test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    
    test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
    
    test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
    
    $as_echo_n "checking whether ln -s works... " >&6; }
    LN_S=$as_ln_s
    if test "$LN_S" = "ln -s"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
    
    $as_echo "yes" >&6; }
    else
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
    
    $as_echo "no, using $LN_S" >&6; }
    fi
    
    
    if test -n "$ac_tool_prefix"; then
      # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    
    $as_echo_n "checking for $ac_word... " >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    if ${ac_cv_prog_RANLIB+:} false; then :
    
      $as_echo_n "(cached) " >&6
    
    else
      if test -n "$RANLIB"; then
      ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
    David M. Lee's avatar
    David M. Lee committed
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
    fi
    fi
    RANLIB=$ac_cv_prog_RANLIB
    if test -n "$RANLIB"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
    
    $as_echo "$RANLIB" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    
    $as_echo "no" >&6; }
    
    fi
    
    
    fi
    if test -z "$ac_cv_prog_RANLIB"; then
      ac_ct_RANLIB=$RANLIB
      # Extract the first word of "ranlib", so it can be a program name with args.
    set dummy ranlib; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    
    $as_echo_n "checking for $ac_word... " >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
    
      $as_echo_n "(cached) " >&6
    
    else
      if test -n "$ac_ct_RANLIB"; then
      ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
    David M. Lee's avatar
    David M. Lee committed
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_prog_ac_ct_RANLIB="ranlib"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
    fi
    fi
    ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    if test -n "$ac_ct_RANLIB"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
    
    $as_echo "$ac_ct_RANLIB" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    
    $as_echo "no" >&6; }
    
    fi
    
      if test "x$ac_ct_RANLIB" = x; then
        RANLIB=":"
      else
        case $cross_compiling:$ac_tool_warned in
    yes:)
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    
    $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    
    ac_tool_warned=yes ;;
    esac
        RANLIB=$ac_ct_RANLIB
      fi
    else
      RANLIB="$ac_cv_prog_RANLIB"
    fi
    
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
    
    $as_echo_n "checking for GNU make... " >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    if ${ac_cv_GNU_MAKE+:} false; then :
    
      $as_echo_n "(cached) " >&6
    
    else
      ac_cv_GNU_MAKE='Not Found' ;
       ac_cv_GNU_MAKE_VERSION_MAJOR=0 ;
       ac_cv_GNU_MAKE_VERSION_MINOR=0 ;
       for a in make gmake gnumake ; do
          if test -z "$a" ; then continue ; fi ;
          if ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
             ac_cv_GNU_MAKE=$a ;
             ac_cv_GNU_MAKE_VERSION_MAJOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
             ac_cv_GNU_MAKE_VERSION_MINOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
             break;
          fi
       done ;
    
    fi
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_GNU_MAKE" >&5
    
    $as_echo "$ac_cv_GNU_MAKE" >&6; } ;
    
    if test  "x$ac_cv_GNU_MAKE" = "xNot Found"  ; then
    
    David M. Lee's avatar
    David M. Lee committed
       as_fn_error $? "*** Please install GNU make.  It is required to build Asterisk!" "$LINENO" 5
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
    
    $as_echo_n "checking for egrep... " >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    if ${ac_cv_path_EGREP+:} false; then :
    
      $as_echo_n "(cached) " >&6
    
    else
      if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
       then ac_cv_path_EGREP="$GREP -E"
       else
    
         if test -z "$EGREP"; then
    
      ac_path_EGREP_found=false
    
      # Loop through the user's path and test for each of PROGNAME-LIST
      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    
    for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
    
        for ac_prog in egrep; do
    
        for ac_exec_ext in '' $ac_executable_extensions; do
          ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
    
    David M. Lee's avatar
    David M. Lee committed
          as_fn_executable_p "$ac_path_EGREP" || continue
    
    # Check for GNU ac_path_EGREP and select it if it is found.
    
      # Check for GNU $ac_path_EGREP
    case `"$ac_path_EGREP" --version 2>&1` in
    *GNU*)
      ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
    *)
      ac_count=0
    
      $as_echo_n 0123456789 >"conftest.in"
    
      while :
      do
        cat "conftest.in" "conftest.in" >"conftest.tmp"
        mv "conftest.tmp" "conftest.in"
        cp "conftest.in" "conftest.nl"
    
        $as_echo 'EGREP' >> "conftest.nl"
    
        "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
        diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    
        as_fn_arith $ac_count + 1 && ac_count=$as_val
    
        if test $ac_count -gt ${ac_path_EGREP_max-0}; then
          # Best one so far, save it but keep looking for a better one
          ac_cv_path_EGREP="$ac_path_EGREP"
          ac_path_EGREP_max=$ac_count
        fi
        # 10*(2^10) chars as input seems more than enough
        test $ac_count -gt 10 && break
      done
      rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
    esac
    
    
          $ac_path_EGREP_found && break 3
        done
    
    IFS=$as_save_IFS
    
      if test -z "$ac_cv_path_EGREP"; then
    
    David M. Lee's avatar
    David M. Lee committed
        as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
    
    $as_echo "$ac_cv_path_EGREP" >&6; }
    
     EGREP="$ac_cv_path_EGREP"
    
    
    
    if test -n "$ac_tool_prefix"; then
      for ac_prog in strip gstrip
      do
        # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    
    $as_echo_n "checking for $ac_word... " >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    if ${ac_cv_prog_STRIP+:} false; then :
    
      $as_echo_n "(cached) " >&6
    
    else
      if test -n "$STRIP"; then
      ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
    David M. Lee's avatar
    David M. Lee committed
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
    fi
    fi
    STRIP=$ac_cv_prog_STRIP
    if test -n "$STRIP"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
    
    $as_echo "$STRIP" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    
    $as_echo "no" >&6; }
    
    fi
    
    
        test -n "$STRIP" && break
      done
    fi
    if test -z "$STRIP"; then
      ac_ct_STRIP=$STRIP
      for ac_prog in strip gstrip
    do
      # Extract the first word of "$ac_prog", so it can be a program name with args.
    set dummy $ac_prog; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    
    $as_echo_n "checking for $ac_word... " >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
    
      $as_echo_n "(cached) " >&6
    
    else
      if test -n "$ac_ct_STRIP"; then
      ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
    David M. Lee's avatar
    David M. Lee committed
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_prog_ac_ct_STRIP="$ac_prog"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
    fi
    fi
    ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
    if test -n "$ac_ct_STRIP"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
    
    $as_echo "$ac_ct_STRIP" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    
    $as_echo "no" >&6; }
    
    fi
    
    
      test -n "$ac_ct_STRIP" && break
    done
    
      if test "x$ac_ct_STRIP" = x; then
        STRIP=":"
      else
        case $cross_compiling:$ac_tool_warned in
    yes:)
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    
    $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    
    ac_tool_warned=yes ;;
    esac
        STRIP=$ac_ct_STRIP
      fi
    fi
    
    if test -n "$ac_tool_prefix"; then
      for ac_prog in ar gar
      do
        # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    
    $as_echo_n "checking for $ac_word... " >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    if ${ac_cv_prog_AR+:} false; then :
    
      $as_echo_n "(cached) " >&6
    
    else
      if test -n "$AR"; then
      ac_cv_prog_AR="$AR" # Let the user override the test.
    else
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
    David M. Lee's avatar
    David M. Lee committed
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
    fi
    fi
    AR=$ac_cv_prog_AR
    if test -n "$AR"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
    
    $as_echo "$AR" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    
    $as_echo "no" >&6; }
    
    fi
    
    
        test -n "$AR" && break
      done
    fi
    if test -z "$AR"; then
      ac_ct_AR=$AR
      for ac_prog in ar gar
    do
      # Extract the first word of "$ac_prog", so it can be a program name with args.
    set dummy $ac_prog; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    
    $as_echo_n "checking for $ac_word... " >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    if ${ac_cv_prog_ac_ct_AR+:} false; then :
    
      $as_echo_n "(cached) " >&6
    
    else
      if test -n "$ac_ct_AR"; then
      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
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
    David M. Lee's avatar
    David M. Lee committed
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_prog_ac_ct_AR="$ac_prog"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
    fi
    fi
    ac_ct_AR=$ac_cv_prog_ac_ct_AR
    if test -n "$ac_ct_AR"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
    
    $as_echo "$ac_ct_AR" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    
    $as_echo "no" >&6; }
    
    fi
    
    
      test -n "$ac_ct_AR" && break
    done
    
      if test "x$ac_ct_AR" = x; then
        AR=":"
      else
        case $cross_compiling:$ac_tool_warned in
    yes:)
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    
    $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    
    ac_tool_warned=yes ;;
    esac
        AR=$ac_ct_AR
      fi
    fi
    
    
    GNU_LD=0
    if test "x$with_gnu_ld" = "xyes" ; then
       GNU_LD=1
    fi
    
    
    # Extract the first word of "bison", so it can be a program name with args.
    set dummy bison; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    
    $as_echo_n "checking for $ac_word... " >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    if ${ac_cv_path_BISON+:} false; then :
    
      $as_echo_n "(cached) " >&6
    
    else
      case $BISON in
      [\\/]* | ?:[\\/]*)
      ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
      ;;
      *)
      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
    David M. Lee's avatar
    David M. Lee committed
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
      test -z "$ac_cv_path_BISON" && ac_cv_path_BISON=":"
      ;;
    esac
    fi
    BISON=$ac_cv_path_BISON
    if test -n "$BISON"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
    
    $as_echo "$BISON" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    
    $as_echo "no" >&6; }
    
    fi
    
    
    # Extract the first word of "cmp", so it can be a program name with args.
    set dummy cmp; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    
    $as_echo_n "checking for $ac_word... " >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    if ${ac_cv_path_CMP+:} false; then :
    
      $as_echo_n "(cached) " >&6
    
    else
      case $CMP in
      [\\/]* | ?:[\\/]*)
      ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
      ;;
      *)
      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
    David M. Lee's avatar
    David M. Lee committed
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
      test -z "$ac_cv_path_CMP" && ac_cv_path_CMP=":"
      ;;
    esac
    fi
    CMP=$ac_cv_path_CMP
    if test -n "$CMP"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
    
    $as_echo "$CMP" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    
    $as_echo "no" >&6; }
    
    # Extract the first word of "cat", so it can be a program name with args.
    set dummy cat; ac_word=$2
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    $as_echo_n "checking for $ac_word... " >&6; }
    if ${ac_cv_path_CAT+:} false; then :
      $as_echo_n "(cached) " >&6
    else
      case $CAT in
      [\\/]* | ?:[\\/]*)
      ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
      ;;
      *)
      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
        for ac_exec_ext in '' $ac_executable_extensions; do
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
        ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
        break 2
      fi
    done
      done
    IFS=$as_save_IFS
    
      test -z "$ac_cv_path_CAT" && ac_cv_path_CAT=":"
      ;;
    esac
    fi
    CAT=$ac_cv_path_CAT
    if test -n "$CAT"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
    $as_echo "$CAT" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    $as_echo "no" >&6; }
    fi
    
    
    
    # Extract the first word of "cut", so it can be a program name with args.
    set dummy cut; ac_word=$2
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    $as_echo_n "checking for $ac_word... " >&6; }
    if ${ac_cv_path_CUT+:} false; then :
      $as_echo_n "(cached) " >&6
    else
      case $CUT in
      [\\/]* | ?:[\\/]*)
      ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
      ;;
      *)
      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
        for ac_exec_ext in '' $ac_executable_extensions; do
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
        ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
        break 2
      fi
    done
      done
    IFS=$as_save_IFS
    
      test -z "$ac_cv_path_CUT" && ac_cv_path_CUT=":"
      ;;
    esac
    fi
    CUT=$ac_cv_path_CUT
    if test -n "$CUT"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
    $as_echo "$CUT" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    $as_echo "no" >&6; }
    fi
    
    
    
    # Extract the first word of "flex", so it can be a program name with args.
    set dummy flex; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    
    $as_echo_n "checking for $ac_word... " >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    if ${ac_cv_path_FLEX+:} false; then :
    
      $as_echo_n "(cached) " >&6
    
    else
      case $FLEX in
      [\\/]* | ?:[\\/]*)
      ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
      ;;
      *)
      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
    David M. Lee's avatar
    David M. Lee committed
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
      test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX=":"
      ;;
    esac
    fi
    FLEX=$ac_cv_path_FLEX
    if test -n "$FLEX"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
    
    $as_echo "$FLEX" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    
    $as_echo "no" >&6; }
    
    fi
    
    
    # Extract the first word of "grep", so it can be a program name with args.
    set dummy grep; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    
    $as_echo_n "checking for $ac_word... " >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    if ${ac_cv_path_GREP+:} false; then :
    
      $as_echo_n "(cached) " >&6
    
    else
      case $GREP in
      [\\/]* | ?:[\\/]*)
      ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
      ;;
      *)
      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
    David M. Lee's avatar
    David M. Lee committed
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
      test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
      ;;
    esac
    fi
    GREP=$ac_cv_path_GREP
    if test -n "$GREP"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
    
    $as_echo "$GREP" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    
    $as_echo "no" >&6; }
    
    for ac_prog in python2.7 python2 python python3
    do
      # Extract the first word of "$ac_prog", so it can be a program name with args.
    set dummy $ac_prog; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    
    $as_echo_n "checking for $ac_word... " >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    if ${ac_cv_path_PYTHON+:} false; then :
    
      $as_echo_n "(cached) " >&6
    else
      case $PYTHON in
      [\\/]* | ?:[\\/]*)
      ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
      ;;
      *)
      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
    David M. Lee's avatar
    David M. Lee committed
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
      ;;
    esac
    fi
    PYTHON=$ac_cv_path_PYTHON
    if test -n "$PYTHON"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
    
    $as_echo "$PYTHON" >&6; }
    else
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    
    $as_echo "no" >&6; }
    fi
    
    
    
      test -n "$PYTHON" && break
    done
    test -n "$PYTHON" || PYTHON=":"
    
    
    # Extract the first word of "find", so it can be a program name with args.
    set dummy find; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    
    $as_echo_n "checking for $ac_word... " >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    if ${ac_cv_path_FIND+:} false; then :
    
      $as_echo_n "(cached) " >&6
    
    else
      case $FIND in
      [\\/]* | ?:[\\/]*)
      ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
      ;;
      *)
      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
    David M. Lee's avatar
    David M. Lee committed
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
      test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
      ;;
    esac
    fi
    FIND=$ac_cv_path_FIND
    if test -n "$FIND"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
    
    $as_echo "$FIND" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    
    $as_echo "no" >&6; }
    
    fi
    
    
    # Extract the first word of "basename", so it can be a program name with args.
    set dummy basename; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    
    $as_echo_n "checking for $ac_word... " >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    if ${ac_cv_path_BASENAME+:} false; then :
    
      $as_echo_n "(cached) " >&6
    
    else
      case $BASENAME in
      [\\/]* | ?:[\\/]*)
      ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
      ;;
      *)
      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
    David M. Lee's avatar
    David M. Lee committed
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
      test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
      ;;
    esac
    fi
    BASENAME=$ac_cv_path_BASENAME
    if test -n "$BASENAME"; then
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
    
    $as_echo "$BASENAME" >&6; }
    
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    
    $as_echo "no" >&6; }
    
    fi
    
    
    # Extract the first word of "dirname", so it can be a program name with args.
    set dummy dirname; ac_word=$2
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    
    $as_echo_n "checking for $ac_word... " >&6; }
    
    David M. Lee's avatar
    David M. Lee committed
    if ${ac_cv_path_DIRNAME+:} false; then :
    
      $as_echo_n "(cached) " >&6
    
    else
      case $DIRNAME in
      [\\/]* | ?:[\\/]*)
      ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
      ;;
      *)
      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
    
        for ac_exec_ext in '' $ac_executable_extensions; do
    
    David M. Lee's avatar
    David M. Lee committed
      if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    
        ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
    
        $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    
    IFS=$as_save_IFS
    
      test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"