pike.git / src / configure.in

version» Context lines:

pike.git/src/configure.in:1: - AC_REVISION("$Id: configure.in,v 1.909 2005/07/08 12:27:01 grubba Exp $") + AC_REVISION("$Id: configure.in,v 1.910 2005/08/10 13:06:34 grubba Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)      rm -f config.warnings 2>/dev/null      if_autoconf(2,50,[    if test "x$cache_file" = "x/dev/null"; then    cache_file=./config.cache    if test -r "$cache_file"; then    echo "loading cache $cache_file"
pike.git/src/configure.in:1499:    pike_bundle_dir="$with_bundles"    elif test -d "$srcdir/../bundles/."; then    # We have a bundle directory; enable them if needed.    pike_bundle_dir=`cd "$srcdir/../bundles" && pwd`    fi    test -d bundles/. || mkdir bundles;   fi   if test -d bundles/.; then    touch bundles/no_testsuites    pike_bundle_prefix="`pwd`/bundles" +  test -d bundles/installed/. || mkdir bundles/installed    test -d bundles/include/. || mkdir bundles/include    CPPFLAGS="$CPPFLAGS -I$pike_bundle_prefix/include"    test -d bundles/lib/. || mkdir bundles/lib    for d in "$with_abi" "/$with_abi" $extra_abi_dirs ""; do    test -d "bundles/lib$d/." || mkdir "bundles/lib$d"    LDFLAGS="$LDFLAGS -L$pike_bundle_prefix/lib$d"    done   fi   export pike_bundle_dir   AC_ARG_WITH(site-prefixes,
pike.git/src/configure.in:2431:      #############################################################################      # Script to translate from POSIX paths to native paths.   echo "Creating posix_to_native.sh..."   if test "x$PIKE_PATH_TRANSLATE" = "x"; then    if test "x$pike_cv_is_mingw" = "xyes"; then    # MinGW system.    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.909 2005/07/08 12:27:01 grubba Exp $. + # Automatically generated by $Id: configure.in,v 1.910 2005/08/10 13:06:34 grubba Exp $.   # MinGW-version. Do NOT edit.   posix_name="`cat`"   posix_prefix="/"   native_prefix="/"   case "$posix_name" in    /*) ;;    *) posix_name="`pwd`/$posix_name" ;;   esac   case "$posix_name" in   EOF
pike.git/src/configure.in:2469:    cat <<\EOF   esac   echo "$posix_name" | \    sed -e "s,^$posix_prefix,$native_prefix," | \    sed -e 's/\/\//\//g'   EOF    else    # Native POSIX system.    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.909 2005/07/08 12:27:01 grubba Exp $. + # Automatically generated by $Id: configure.in,v 1.910 2005/08/10 13:06:34 grubba Exp $.   # POSIX-version. Do NOT edit.   cat   EOF    fi   else    # rntcl-style    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.909 2005/07/08 12:27:01 grubba Exp $. + # Automatically generated by $Id: configure.in,v 1.910 2005/08/10 13:06:34 grubba Exp $.   # RNTCL-version. Do NOT edit.   sed -e "$PIKE_PATH_TRANSLATE"   EOF   fi >posix_to_native.sh      chmod a+x posix_to_native.sh      #############################################################################      if test ! -d modules/. ; then
pike.git/src/configure.in:7887:    dist_file="$pike_bundle_dir/$dist_file"    break    fi    done    AC_MSG_RESULT($dist_file)    if test "$dist_file" = "no"; then    AC_MSG_WARN([Bundle $bundle not found.   Requested from:   $bundle_info])    bundle_info=`echo "$bundle_info" | grep -v "$bundle.bundle"` +  elif test -f "$pike_bundle_prefix/installed/$bundle"; then +  AC_MSG_WARN([Bundle $bundle already installed. + Requested from: + $bundle_info]) +  bundle_info=`echo "$bundle_info" | grep -v "$bundle.bundle"`    else    # First extract the bundle.       # Bundle source is expected to be extracted into a directory    # of the same name as the bundle.    bundle_source_dir=`echo "$dist_file"|sed -e 's/.tar.gz$//'`       if test -f "$bundle_source_dir/configure"; then    # Bundle source already extracted.    :
pike.git/src/configure.in:8016:    fi       # Compile bundle.    echo "Compiling bundle $bundle in `pwd`..."    ${MAKE-make} || exit 1       # Install bundle.    echo "Installing bundle $bundle in ${pike_bundle_prefix}..."    ${MAKE-make} install || exit 1    +  # Mark bundle as installed. +  touch "${pike_bundle_prefix}/installed/$bundle" +     # Restore PATH    PATH="$OLD_PATH"       # Done.    echo "Bundle $bundle installed successfully."    ) || exit 1    fi    done -  +  echo "Fixing libraries..."    # Kludge for rntcl in case *.lib hasn't been copied on install.    if echo foo "$CC" | egrep 'rntc.|rnt.cl' >/dev/null; then -  echo "Fixing libraries..." +     for f in `(cd bundles/lib && echo lib*.a)` no; do    if test "$f" = "no"; then    break    fi    lib_name="`echo $f|sed -e 's/^lib\(.*\)\.a$/\1.lib/'`"    if cmp "bundles/lib/$f" "bundles/lib/$lib_name" 2>/dev/null; then    :    else    echo " $f ==> $lib_name"    rm -f "bundles/lib/$lib_name" 2>/dev/null    cp "bundles/lib/$f" "bundles/lib/$lib_name"    fi    done    fi -  +  # Kludge for some OSes needing ranlib to be run on archives after install. +  for f in bundles/lib/lib*.a no; do +  if test "$f" = "no"; then +  break +  fi +  $RANLIB $f +  done    # Clear the caches.    echo Clearing cached variables related to the bundles.    for varname in `cat $bundle_info|sed -e 's/^[[ ]]*//'|sort|uniq` no; do    if test "$varname" = "no"; then :; else    unset $varname    fi    done    if test -r "$cache_file"; then    for varname in `cat $bundle_info|sed -e 's/^[[ ]]*//'|sort|uniq` no; do    if test "$varname" = "no"; then :; else