Changeset 3330 for trunk/configure


Ignore:
Timestamp:
Feb 24, 2013, 4:11:18 PM (7 years ago)
Author:
gah
Message:

merge (by hand) with Rappture1.2 branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r3282 r3330  
    645645SIZEOF_INT
    646646SHLIB_LDFLAGS
     647RUBY_VERSION_RV
     648RUBY_PLATFORM
    647649RP_BASE
    648650PYTHON_VERSION
     
    678680JAVA_HOME
    679681INSTALL_PREFIX
     682HAVE_RUBY_DEVEL
    680683HAVE_INTTYPES_H
    681684HAVE_FFMPEG_LIBS
     
    683686LDFLAGS_DEFAULT
    684687CFLAGS_DEFAULT
    685 host_os
    686 host_vendor
    687 host_cpu
    688 host
    689 build_os
    690 build_vendor
    691 build_cpu
    692 build
    693 HAVE_RUBY_H
    694 RUBY_SITELIBDIR
    695 RUBY_LIBRUBYARG_STATIC
    696 RUBY_LIBRUBYARG
    697 RUBY_LIBS
     688RUBY_EXTRA_LIBS
     689RUBY_SITE_PKG
    698690RUBY_LDFLAGS
    699 RUBY_CXXFLAGS
    700 RUBY_CFLAGS
    701691RUBY_CPPFLAGS
    702 RUBY_VERSION_CODE
     692AWK
     693RUBY_VERSION
     694SED
    703695RUBY
    704696R
     
    824816with_R
    825817with_ruby
    826 with_ruby_sitelibdir
    827818enable_shared
    828819enable_symbols
     
    14391430
    14401431  cat <<\_ACEOF
    1441 
    1442 System types:
    1443   --build=BUILD     configure for building on BUILD [guessed]
    1444   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
    14451432_ACEOF
    14461433fi
     
    14811468  --with-java=DIR         location of java [default=yes]
    14821469  --with-R=DIR            location of R interpreter [default=yes]
    1483   --with-ruby=PATH        path to the ruby interpreter [[ruby]]
    1484   --with-ruby-sitelibdir=PATH
    1485                           path to install ruby scripts [[auto-detect]]
     1470  --with-ruby=DIR         location of ruby [default=yes]
    14861471
    14871472Some influential environment variables:
     
    74667451    for path in \
    74677452     $libdir \
     7453     $prefix/lib/tcltk \
    74687454     $prefix/lib \
    74697455     $exec_prefix/lib \
     
    86308616   ${JAVA_HOME} \
    86318617   /apps/java/jdk1.6* \
     8618   /usr/lib/jvm/java-6-openjdk \
     8619   /usr/lib/jvm/icedtea-6 \
     8620   /usr/lib/jvm/*sun-1.6* \
    86328621   /opt/sun-jdk-1.6* \
     8622   /usr/lib/jvm/icedtea-7 \
    86338623   /opt/icedtea6-* \
    86348624   /opt/sun-jdk-1.5* \
    8635    /usr/lib/jvm/*sun* \
    8636    /usr/lib/jvm/*icedtea* \
    8637    /usr/lib/jvm/*openjdk*
     8625   /usr/lib/jvm/*sun-1.5*
    86388626  do
    86398627    if test -r "${d}/include/jni.h" ; then
     
    87538741
    87548742
    8755 # Make sure we can run config.sub.
    8756 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
    8757   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
    8758 
    8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
    8760 $as_echo_n "checking build system type... " >&6; }
    8761 if ${ac_cv_build+:} false; then :
    8762   $as_echo_n "(cached) " >&6
    8763 else
    8764   ac_build_alias=$build_alias
    8765 test "x$ac_build_alias" = x &&
    8766   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
    8767 test "x$ac_build_alias" = x &&
    8768   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
    8769 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
    8770   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
    8771 
    8772 fi
    8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
    8774 $as_echo "$ac_cv_build" >&6; }
    8775 case $ac_cv_build in
    8776 *-*-*) ;;
    8777 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
    8778 esac
    8779 build=$ac_cv_build
    8780 ac_save_IFS=$IFS; IFS='-'
    8781 set x $ac_cv_build
    8782 shift
    8783 build_cpu=$1
    8784 build_vendor=$2
    8785 shift; shift
    8786 # Remember, the first character of IFS is used to create $*,
    8787 # except with old shells:
    8788 build_os=$*
    8789 IFS=$ac_save_IFS
    8790 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
    8791 
    8792 
    8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
    8794 $as_echo_n "checking host system type... " >&6; }
    8795 if ${ac_cv_host+:} false; then :
    8796   $as_echo_n "(cached) " >&6
    8797 else
    8798   if test "x$host_alias" = x; then
    8799   ac_cv_host=$ac_cv_build
    8800 else
    8801   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    8802     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
    8803 fi
    8804 
    8805 fi
    8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
    8807 $as_echo "$ac_cv_host" >&6; }
    8808 case $ac_cv_host in
    8809 *-*-*) ;;
    8810 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
    8811 esac
    8812 host=$ac_cv_host
    8813 ac_save_IFS=$IFS; IFS='-'
    8814 set x $ac_cv_host
    8815 shift
    8816 host_cpu=$1
    8817 host_vendor=$2
    8818 shift; shift
    8819 # Remember, the first character of IFS is used to create $*,
    8820 # except with old shells:
    8821 host_os=$*
    8822 IFS=$ac_save_IFS
    8823 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
    8824 
    8825 
    8826 
     8743
     8744RUBY=""
     8745RUBY_DEV_PKG="no"
    88278746
    88288747
    88298748# Check whether --with-ruby was given.
    88308749if test "${with_ruby+set}" = set; then :
    8831   withval=$with_ruby;  RUBY=$withval
    8832 else
    8833    RUBY=ruby
    8834 fi
    8835 
    8836 
    8837 # Check whether --with-ruby_sitelibdir was given.
    8838 if test "${with_ruby_sitelibdir+set}" = set; then :
    8839   withval=$with_ruby_sitelibdir;  ruby_sitelibdir=$withval
    8840 else
    8841    ruby_sitelibdir=NONE
    8842 fi
    8843 
    8844 
    8845 
    8846 
    8847 RUBY_VERSION_CODE=`$RUBY -e "puts RUBY_VERSION.gsub(/\./, '')"`
    8848 
    8849 
    8850 RUBY_CONFIG_SO_NAME=`
    8851           $RUBY -rrbconfig -e "puts(Config::CONFIG['RUBY_SO_NAME'] || '')"`
    8852 RUBY_CONFIG_ARCHDIR=`
    8853           $RUBY -rrbconfig -e "puts(Config::CONFIG['archdir'] || '')"`
    8854 RUBY_CONFIG_ARCH=`
    8855           $RUBY -rrbconfig -e "puts(Config::CONFIG['arch'] || '')"`
    8856 RUBY_CONFIG_LIBDIR=`
    8857           $RUBY -rrbconfig -e "puts(Config::CONFIG['libdir'] || '')"`
    8858 RUBY_CONFIG_BINDIR=`
    8859           $RUBY -rrbconfig -e "puts(Config::CONFIG['bindir'] || '')"`
    8860 RUBY_CONFIG_RUBYHDRDIR=`
    8861           $RUBY -rrbconfig -e "puts(Config::CONFIG['rubyhdrdir'] || '')"`
    8862 RUBY_CONFIG_CFLAGS=`
    8863           $RUBY -rrbconfig -e "puts(Config::CONFIG['CFLAGS'] || '')"`
    8864 RUBY_CONFIG_LIBS=`
    8865           $RUBY -rrbconfig -e "puts(Config::CONFIG['LIBS'] || '')"`
    8866 RUBY_CONFIG_DLDLIBS=`
    8867           $RUBY -rrbconfig -e "puts(Config::CONFIG['DLDLIBS'] || '')"`
    8868 RUBY_CONFIG_LDFLAGS=`
    8869           $RUBY -rrbconfig -e "puts(Config::CONFIG['LDFLAGS'] || '')"`
    8870 RUBY_CONFIG_LIBRUBYARG=`
    8871           $RUBY -rrbconfig -e "puts(Config::CONFIG['LIBRUBYARG'] || '')"`
    8872 RUBY_CONFIG_LIBRUBYARG_STATIC=`
    8873           $RUBY -rrbconfig -e "puts(Config::CONFIG['LIBRUBYARG_STATIC'] || '')"`
    8874 RUBY_CONFIG_CCDLFLAGS=`
    8875           $RUBY -rrbconfig -e "puts(Config::CONFIG['CCDLFLAGS'] || '')"`
    8876 
    8877 if test "x${RUBY_CONFIG_RUBYHDRDIR}x" != "xx"; then
    8878   # 1.9
    8879   RUBY_CPPFLAGS="-I${RUBY_CONFIG_RUBYHDRDIR}"
    8880   RUBY_CPPFLAGS="${RUBY_CPPFLAGS} -I${RUBY_CONFIG_RUBYHDRDIR}/${RUBY_CONFIG_ARCH}"
    8881 else
    8882   # 1.8
    8883   RUBY_CPPFLAGS="-I${RUBY_CONFIG_ARCHDIR}"
    8884 fi
    8885 
    8886 
    8887 RUBY_CFLAGS="${RUBY_CONFIG_CFLAGS} ${RUBY_CONFIG_CCDLFLAGS}"
    8888 
    8889 
    8890 RUBY_CXXFLAGS="${RUBY_CONFIG_CFLAGS} ${RUBY_CONFIG_CCDLFLAGS}"
    8891 
    8892 
    8893 RUBY_LDFLAGS="-L${RUBY_CONFIG_ARCHDIR} -L${RUBY_CONFIG_LIBDIR} ${RUBY_CONFIG_LDFLAGS}"
    8894 
    8895 
    8896 RUBY_LIBS="${RUBY_CONFIG_LIBS} ${RUBY_CONFIG_DLDLIBS}"
    8897 
    8898 
    8899 RUBY_LIBRUBYARG="${RUBY_CONFIG_LIBRUBYARG}"
    8900 
    8901 
    8902 RUBY_LIBRUBYARG_STATIC="${RUBY_CONFIG_LIBRUBYARG_STATIC}"
    8903 
    8904 
    8905 if test "x${ruby_sitelibdir}x" != "xNONEx"
    8906 then
    8907   RUBY_SITELIBDIR="${ruby_sitelibdir}"
    8908 else
    8909   if test "x${prefix}x" = "xNONEx"
    8910   then
    8911     RUBY_SITELIBDIR=`
    8912           $RUBY -rrbconfig -e "puts(Config::CONFIG['sitelibdir'] || '')"`
     8750  withval=$with_ruby;
     8751else
     8752  with_ruby="yes"
     8753fi
     8754
     8755
     8756if test "${with_ruby}" != "no" ; then
     8757  if test "${with_ruby}" = "yes" ; then
     8758    # Extract the first word of "ruby", so it can be a program name with args.
     8759set dummy ruby; ac_word=$2
     8760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     8761$as_echo_n "checking for $ac_word... " >&6; }
     8762if ${ac_cv_path_RUBY+:} false; then :
     8763  $as_echo_n "(cached) " >&6
     8764else
     8765  case $RUBY in
     8766  [\\/]* | ?:[\\/]*)
     8767  ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
     8768  ;;
     8769  *)
     8770  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     8771for as_dir in $PATH
     8772do
     8773  IFS=$as_save_IFS
     8774  test -z "$as_dir" && as_dir=.
     8775    for ac_exec_ext in '' $ac_executable_extensions; do
     8776  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     8777    ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
     8778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     8779    break 2
     8780  fi
     8781done
     8782  done
     8783IFS=$as_save_IFS
     8784
     8785  ;;
     8786esac
     8787fi
     8788RUBY=$ac_cv_path_RUBY
     8789if test -n "$RUBY"; then
     8790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
     8791$as_echo "$RUBY" >&6; }
     8792else
     8793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8794$as_echo "no" >&6; }
     8795fi
     8796
     8797
    89138798  else
    8914     sitelibdir_no_prefix=`$RUBY -rrbconfig \
    8915     -e "include Config; \
    8916     puts CONFIG['sitelibdir'].sub(CONFIG['prefix'], '')"`
    8917     RUBY_SITELIBDIR="${prefix}/${sitelibdir_no_prefix}"
     8799    # Extract the first word of "ruby", so it can be a program name with args.
     8800set dummy ruby; ac_word=$2
     8801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     8802$as_echo_n "checking for $ac_word... " >&6; }
     8803if ${ac_cv_path_RUBY+:} false; then :
     8804  $as_echo_n "(cached) " >&6
     8805else
     8806  case $RUBY in
     8807  [\\/]* | ?:[\\/]*)
     8808  ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
     8809  ;;
     8810  *)
     8811  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     8812as_dummy="${with_ruby}/bin:${with_ruby}"
     8813for as_dir in $as_dummy
     8814do
     8815  IFS=$as_save_IFS
     8816  test -z "$as_dir" && as_dir=.
     8817    for ac_exec_ext in '' $ac_executable_extensions; do
     8818  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     8819    ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
     8820    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     8821    break 2
    89188822  fi
    8919 fi
    8920 
    8921 
    8922 CPPFLAGS_save="${CPPFLAGS}"
    8923 CPPFLAGS="${CPPFLAGS} ${RUBY_CPPFLAGS}"
    8924 CXXFLAGS="${CPPFLAGS}"
    8925 for ac_header in ruby.h
    8926 do :
    8927   ac_fn_cxx_check_header_mongrel "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default"
    8928 if test "x$ac_cv_header_ruby_h" = xyes; then :
    8929   cat >>confdefs.h <<_ACEOF
    8930 #define HAVE_RUBY_H 1
    8931 _ACEOF
    8932 
    8933 fi
    8934 
    8935 done
    8936 
    8937 HAVE_RUBY_H=${ac_cv_header_ruby_h}
    8938 
    8939 
    8940 for ac_header in node.h
    8941 do :
    8942   ac_fn_cxx_check_header_compile "$LINENO" "node.h" "ac_cv_header_node_h" "
    8943 #include <ruby.h>
    8944 
    8945 "
    8946 if test "x$ac_cv_header_node_h" = xyes; then :
    8947   cat >>confdefs.h <<_ACEOF
    8948 #define HAVE_NODE_H 1
    8949 _ACEOF
    8950 
    8951 fi
    8952 
    8953 done
    8954 
    8955 for ac_header in ruby/node.h
    8956 do :
    8957   ac_fn_cxx_check_header_compile "$LINENO" "ruby/node.h" "ac_cv_header_ruby_node_h" "
    8958                              #include <ruby.h>
    8959 
    8960 "
    8961 if test "x$ac_cv_header_ruby_node_h" = xyes; then :
    8962   cat >>confdefs.h <<_ACEOF
    8963 #define HAVE_RUBY_NODE_H 1
    8964 _ACEOF
    8965 
    8966 $as_echo "#define REALLY_HAVE_RUBY_NODE_H /**/" >>confdefs.h
    8967 
    8968 fi
    8969 
    8970 done
    8971 
    8972 for ac_header in version.h
    8973 do :
    8974   ac_fn_cxx_check_header_compile "$LINENO" "version.h" "ac_cv_header_version_h" "
    8975 #include <ruby.h>
    8976 
    8977 "
    8978 if test "x$ac_cv_header_version_h" = xyes; then :
    8979   cat >>confdefs.h <<_ACEOF
    8980 #define HAVE_VERSION_H 1
    8981 _ACEOF
    8982 
    8983 fi
    8984 
    8985 done
    8986 
    8987 for ac_header in env.h
    8988 do :
    8989   ac_fn_cxx_check_header_compile "$LINENO" "env.h" "ac_cv_header_env_h" "
    8990 #include <ruby.h>
    8991 
    8992 "
    8993 if test "x$ac_cv_header_env_h" = xyes; then :
    8994   cat >>confdefs.h <<_ACEOF
    8995 #define HAVE_ENV_H 1
    8996 _ACEOF
    8997 
    8998 fi
    8999 
    9000 done
    9001 
    9002 
    9003 CPPFLAGS="${CPPFLAGS_save}"
    9004 
    9005 
    9006 case $host_os in
    9007   *mingw32* ) MINGW32=yes;;
    9008           * ) MINGW32=no;;
     8823done
     8824  done
     8825IFS=$as_save_IFS
     8826
     8827  ;;
    90098828esac
    9010 
    9011 
    9012 if test x"${MINGW32}"x = xyesx; then
    9013 
    9014 RUBY_LIBS=`echo ${RUBY_LIBS} | sed -e "s%oldnames.lib%-lmoldname%"`
    9015 RUBY_LIBS=`echo ${RUBY_LIBS} | sed -e "s%user32.lib%-luser32%"`
    9016 RUBY_LIBS=`echo ${RUBY_LIBS} | sed -e "s%advapi32.lib%-ladvapi32%"`
    9017 RUBY_LIBS=`echo ${RUBY_LIBS} | sed -e "s%ws2_32.lib%-lws2_32%"`
    9018 RUBY_LIBRUBYARG=`echo ${RUBY_LIBRUBYARG} | sed -e "s%\(msvcrt-ruby.*\).lib%${RUBY_CONFIG_BINDIR}/\1.dll%"`
    9019 RUBY_LIBRUBYARG_STATIC=`echo ${RUBY_LIBRUBYARG_STATIC} | sed -e "s%\(msvcrt-ruby.*\).lib%${RUBY_CONFIG_LIBDIR}/\1.lib%"`
    9020 
    9021 fi
    9022 
     8829fi
     8830RUBY=$ac_cv_path_RUBY
     8831if test -n "$RUBY"; then
     8832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
     8833$as_echo "$RUBY" >&6; }
     8834else
     8835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8836$as_echo "no" >&6; }
     8837fi
     8838
     8839
     8840  fi
     8841fi
     8842
     8843RUBY_VERSION_RV=
     8844RUBY_PLATFORM=
     8845if test "x${RUBY}" != "x" ; then
     8846  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
     8847$as_echo_n "checking for a sed that does not truncate output... " >&6; }
     8848if ${ac_cv_path_SED+:} false; then :
     8849  $as_echo_n "(cached) " >&6
     8850else
     8851            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     8852     for ac_i in 1 2 3 4 5 6 7; do
     8853       ac_script="$ac_script$as_nl$ac_script"
     8854     done
     8855     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     8856     { ac_script=; unset ac_script;}
     8857     if test -z "$SED"; then
     8858  ac_path_SED_found=false
     8859  # Loop through the user's path and test for each of PROGNAME-LIST
     8860  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     8861for as_dir in $PATH
     8862do
     8863  IFS=$as_save_IFS
     8864  test -z "$as_dir" && as_dir=.
     8865    for ac_prog in sed gsed; do
     8866    for ac_exec_ext in '' $ac_executable_extensions; do
     8867      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
     8868      as_fn_executable_p "$ac_path_SED" || continue
     8869# Check for GNU ac_path_SED and select it if it is found.
     8870  # Check for GNU $ac_path_SED
     8871case `"$ac_path_SED" --version 2>&1` in
     8872*GNU*)
     8873  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
     8874*)
     8875  ac_count=0
     8876  $as_echo_n 0123456789 >"conftest.in"
     8877  while :
     8878  do
     8879    cat "conftest.in" "conftest.in" >"conftest.tmp"
     8880    mv "conftest.tmp" "conftest.in"
     8881    cp "conftest.in" "conftest.nl"
     8882    $as_echo '' >> "conftest.nl"
     8883    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
     8884    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     8885    as_fn_arith $ac_count + 1 && ac_count=$as_val
     8886    if test $ac_count -gt ${ac_path_SED_max-0}; then
     8887      # Best one so far, save it but keep looking for a better one
     8888      ac_cv_path_SED="$ac_path_SED"
     8889      ac_path_SED_max=$ac_count
     8890    fi
     8891    # 10*(2^10) chars as input seems more than enough
     8892    test $ac_count -gt 10 && break
     8893  done
     8894  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     8895esac
     8896
     8897      $ac_path_SED_found && break 3
     8898    done
     8899  done
     8900  done
     8901IFS=$as_save_IFS
     8902  if test -z "$ac_cv_path_SED"; then
     8903    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
     8904  fi
     8905else
     8906  ac_cv_path_SED=$SED
     8907fi
     8908
     8909fi
     8910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
     8911$as_echo "$ac_cv_path_SED" >&6; }
     8912 SED="$ac_cv_path_SED"
     8913  rm -f conftest.sed
     8914
     8915
     8916
     8917
     8918
     8919    if test -n "$RUBY"; then :
     8920
     8921        ax_ruby_version=""
     8922
     8923        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby version" >&5
     8924$as_echo_n "checking for ruby version... " >&6; }
     8925
     8926        ruby_version=`$RUBY --version 2>&1 | $GREP "^ruby " | $SED -e 's/^.* \([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
     8927
     8928        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_version" >&5
     8929$as_echo "$ruby_version" >&6; }
     8930
     8931        RUBY_VERSION=$ruby_version
     8932
     8933
     8934
     8935  for ac_prog in gawk mawk nawk awk
     8936do
     8937  # Extract the first word of "$ac_prog", so it can be a program name with args.
     8938set dummy $ac_prog; ac_word=$2
     8939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     8940$as_echo_n "checking for $ac_word... " >&6; }
     8941if ${ac_cv_prog_AWK+:} false; then :
     8942  $as_echo_n "(cached) " >&6
     8943else
     8944  if test -n "$AWK"; then
     8945  ac_cv_prog_AWK="$AWK" # Let the user override the test.
     8946else
     8947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     8948for as_dir in $PATH
     8949do
     8950  IFS=$as_save_IFS
     8951  test -z "$as_dir" && as_dir=.
     8952    for ac_exec_ext in '' $ac_executable_extensions; do
     8953  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     8954    ac_cv_prog_AWK="$ac_prog"
     8955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     8956    break 2
     8957  fi
     8958done
     8959  done
     8960IFS=$as_save_IFS
     8961
     8962fi
     8963fi
     8964AWK=$ac_cv_prog_AWK
     8965if test -n "$AWK"; then
     8966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
     8967$as_echo "$AWK" >&6; }
     8968else
     8969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8970$as_echo "no" >&6; }
     8971fi
     8972
     8973
     8974  test -n "$AWK" && break
     8975done
     8976
     8977
     8978  # Used to indicate true or false condition
     8979  ax_compare_version=false
     8980
     8981  # Convert the two version strings to be compared into a format that
     8982  # allows a simple string comparison.  The end result is that a version
     8983  # string of the form 1.12.5-r617 will be converted to the form
     8984  # 0001001200050617.  In other words, each number is zero padded to four
     8985  # digits, and non digits are removed.
     8986
     8987  ax_compare_version_A=`echo "$ax_ruby_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
     8988                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
     8989                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
     8990                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
     8991                     -e 's/[^0-9]//g'`
     8992
     8993
     8994  ax_compare_version_B=`echo "$ruby_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
     8995                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
     8996                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
     8997                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
     8998                     -e 's/[^0-9]//g'`
     8999
     9000
     9001    ax_compare_version=`echo "x$ax_compare_version_A
     9002x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
     9003
     9004
     9005
     9006    if test "$ax_compare_version" = "true" ; then
     9007
     9008            :
     9009
     9010
     9011    else
     9012            :
     9013
     9014
     9015  fi
     9016
     9017
     9018else
     9019
     9020        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the ruby interpreter" >&5
     9021$as_echo "$as_me: WARNING: could not find the ruby interpreter" >&2;}
     9022
     9023
     9024fi
     9025
     9026  RUBY_VERSION_RV=`echo ${RUBY_VERSION} | cut -d'.' -f1-2`
     9027  RUBY_PLATFORM=`ruby -e 'puts RUBY_PLATFORM'`
     9028  ac_mkmf_result=`${RUBY} -r mkmf -e ";" 2>&1`
     9029  if test -z "$ac_mkmf_result"; then
     9030    HAVE_RUBY_DEVEL="yes"
     9031
     9032    #
     9033    # Check for Ruby include path
     9034    #
     9035    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5
     9036$as_echo_n "checking for Ruby include path... " >&6; }
     9037    if test -z "$RUBY_CPPFLAGS"; then
     9038        ruby_path=`$RUBY -rmkmf -e 'print Config::CONFIG["archdir"]'`
     9039        if test -n "${ruby_path}"; then
     9040                ruby_path="-I$ruby_path"
     9041        fi
     9042        RUBY_CPPFLAGS=$ruby_path
     9043    fi
     9044    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CPPFLAGS" >&5
     9045$as_echo "$RUBY_CPPFLAGS" >&6; }
     9046
     9047
     9048    #
     9049    # Check for Ruby library path
     9050    #
     9051    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby library path" >&5
     9052$as_echo_n "checking for Ruby library path... " >&6; }
     9053    if test -z "$RUBY_LDFLAGS"; then
     9054        RUBY_LDFLAGS=`$RUBY -rmkmf -e 'print Config::CONFIG["LIBRUBYARG_SHARED"]'`
     9055    fi
     9056    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_LDFLAGS" >&5
     9057$as_echo "$RUBY_LDFLAGS" >&6; }
     9058
     9059
     9060    #
     9061    # Check for site packages
     9062    #
     9063    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby site-packages path" >&5
     9064$as_echo_n "checking for Ruby site-packages path... " >&6; }
     9065    if test -z "$RUBY_SITE_PKG"; then
     9066        RUBY_SITE_PKG=`$RUBY -rmkmf -e 'print Config::CONFIG["sitearchdir"]'`
     9067    fi
     9068    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_SITE_PKG" >&5
     9069$as_echo "$RUBY_SITE_PKG" >&6; }
     9070
     9071
     9072    #
     9073    # libraries which must be linked in when embedding
     9074    #
     9075    { $as_echo "$as_me:${as_lineno-$LINENO}: checking ruby extra libraries" >&5
     9076$as_echo_n "checking ruby extra libraries... " >&6; }
     9077    if test -z "$RUBY_EXTRA_LIBS"; then
     9078       RUBY_EXTRA_LIBS=`$RUBY -rmkmf -e 'print Config::CONFIG["SOLIBS"]'`
     9079    fi
     9080    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_EXTRA_LIBS" >&5
     9081$as_echo "$RUBY_EXTRA_LIBS" >&6; }
     9082
     9083
     9084    #
     9085    # linking flags needed when embedding
     9086    # (is it even needed for Ruby?)
     9087    #
     9088    # AC_MSG_CHECKING(ruby extra linking flags)
     9089    # if test -z "$RUBY_EXTRA_LDFLAGS"; then
     9090    # RUBY_EXTRA_LDFLAGS=`$RUBY -rmkmf -e 'print Config::CONFIG[["LINKFORSHARED"]]'`
     9091    # fi
     9092    # AC_MSG_RESULT([$RUBY_EXTRA_LDFLAGS])
     9093    # AC_SUBST(RUBY_EXTRA_LDFLAGS)
     9094
     9095    # this flags breaks ruby.h, and is sometimes defined by KDE m4 macros
     9096    CFLAGS="`echo "$CFLAGS" | sed -e 's/-std=iso9899:1990//g;'`"
     9097    #
     9098    # final check to see if everything compiles alright
     9099    #
     9100    { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of ruby development environment" >&5
     9101$as_echo_n "checking consistency of all components of ruby development environment... " >&6; }
     9102    ac_ext=c
     9103ac_cpp='$CPP $CPPFLAGS'
     9104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     9105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     9106ac_compiler_gnu=$ac_cv_c_compiler_gnu
     9107
     9108    # save current global flags
     9109    ac_save_LIBS="$LIBS"
     9110    LIBS="$ac_save_LIBS $RUBY_LDFLAGS"
     9111    ac_save_CPPFLAGS="$CPPFLAGS"
     9112    CPPFLAGS="$ac_save_CPPFLAGS $RUBY_CPPFLAGS"
     9113    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     9114/* end confdefs.h.  */
     9115
     9116        #include <ruby.h>
     9117
     9118int
     9119main ()
     9120{
     9121
     9122        ruby_init();
     9123
     9124  ;
     9125  return 0;
     9126}
     9127_ACEOF
     9128if ac_fn_c_try_link "$LINENO"; then :
     9129  rubyexists=yes
     9130else
     9131  rubyexists=no
     9132fi
     9133rm -f core conftest.err conftest.$ac_objext \
     9134    conftest$ac_exeext conftest.$ac_ext
     9135
     9136    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyexists" >&5
     9137$as_echo "$rubyexists" >&6; }
     9138
     9139    if test "$rubyexists" = "no"; then
     9140      HAVE_RUBY_DEVEL="no"
     9141    fi
     9142    ac_ext=cpp
     9143ac_cpp='$CXXCPP $CPPFLAGS'
     9144ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     9145ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     9146ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     9147
     9148    # turn back to default flags
     9149    CPPFLAGS="$ac_save_CPPFLAGS"
     9150    LIBS="$ac_save_LIBS"
     9151
     9152    #
     9153    # all done!
     9154    #
     9155
     9156  fi
     9157fi
    90239158
    90249159
     
    999710132
    999810133
     10134
    999910135MAKE=${make_command}
     10136
     10137
     10138
    1000010139
    1000110140
     
    1065410793INSTALL='$INSTALL'
    1065510794MKDIR_P='$MKDIR_P'
     10795AWK='$AWK'
    1065610796test -n "\$AWK" || AWK=awk
    1065710797_ACEOF
Note: See TracChangeset for help on using the changeset viewer.