#! /bin/bash

# kgrantpty - temporary wrapper script for .libs/kgrantpty
# Generated by ltmain.sh - GNU libtool 1.5 (1.1220 2003/04/05 19:32:58)
#
# The kgrantpty program cannot be directly executed until all the libtool
# libraries that it depends on are installed.
#
# This wrapper script should never be moved out of the build directory.
# If it is, it will not operate correctly.

# Sed substitution that helps us do robust quoting.  It backslashifies
# metacharacters that are still active within double-quoted strings.
Xsed='/bin/sed -e 1s/^X//'
sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'

# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
if test "${CDPATH+set}" = set; then CDPATH=:; export CDPATH; fi

relink_command="(cd /home/steleman/programming/kde-3.4.3/kdelibs-3.4.3/kdecore; PATH=\"/opt/fsw4sun/libxml2-2.6.19/bin:/opt/fsw4sun/libxslt-1.1.14/bin:/opt/fsw4sun/bin:/opt/fsw4sun/ssl/bin:/opt/fsw4sun/cups-1.1.23/bin:/opt/fsw4sun/freetype-2.1.7/bin:/opt/fsw4sun/xft-2.1.2/bin:/opt/fsw4sun/fontconfig-2.2.0/bin:/opt/fsw4sun/glut-3.7/bin:/opt/fsw4sun/atk-1.9.1/bin:/opt/fsw4sun/pango-1.8.1/bin:/opt/fsw4sun/glib-2.6.3/bin:/opt/fsw4sun/gtk+-2.6.4/bin:/opt/fsw4sun/openldap-2.2.17/bin:/opt/fsw4sun/openslp-1.0.11/bin:/opt/fsw4sun/cups-1.1.23/bin:/opt/fsw4sun/mesa-6.2.1/bin:/opt/fsw4sun/openldap-2.2.17/bin:/opt/qt-3.3.4-32/bin:/opt/kde-3.4.3/bin:/usr/ccs/bin:/usr/openwin/bin:/usr/X11/bin:/usr/dt/bin:/usr/bin:/usr/sbin:/opt/Forte-10.0/SUNWspro/prod/bin:/opt/kde-3.4.3/bin:/opt/qt-3.3.4-32/bin\"; export PATH; /opt/Forte-10.0/SUNWspro/prod/bin/cc -DNDEBUG -erroff=%all -errshort=full -errfmt=error -errwarn=%none -xO5 -s -xc99=all -xjobs=2 -xregs=no%frameptr -xrestrict=%all -dalign -xprefetch=auto -xbuiltin=%all -xcsi -xinline=%auto -xustr=ascii_utf16_ushort -xvis=yes -z now -z rescan -z absexec -xildoff -xldscope=symbolic -xF=%none -xalias_level=std -xsafe=mem -xthreadvar -mt -D_REENTRANT -DLIBXML_THREAD_ALLOC_ENABLED -D__EXTENSIONS__ -D_XPG6 -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS -DSOLARIS10 -DUSE_SOLARIS -DQT_QLOCALE_NEEDS_VOLATILE -DQT_THREAD_SUPPORT -DKSSL_HAVE_SSL -DGTK_COMPILATION -UGTK_DISABLE_DEPRECATED -DNDEBUG -DNO_DEBUG -KPIC -xtarget=pentium4 -xarch=sse2 -xchip=pentium4 -xcache=8/64/4:256/128/8 -xO5 -s -Y P,/opt/fsw4sun/lib:/opt/fsw4sun/ssl/lib:/opt/fsw4sun/freetype-2.1.7/lib:/opt/fsw4sun/fontconfig-2.2.0/lib:/opt/fsw4sun/libxml2-2.6.19/lib:/opt/fsw4sun/libxslt-1.1.14/lib:/opt/fsw4sun/python-2.3.4/lib:/opt/fsw4sun/glib-2.6.3/lib:/opt/fsw4sun/atk-1.9.1/lib:/opt/fsw4sun/pango-1.8.1/lib:/opt/fsw4sun/gtk+-2.6.4/lib:/opt/qt-3.3.4-32/lib:/opt/kde-3.4.3/lib:/opt/kde-3.4.3/lib/kde3:/opt/fsw4sun/krb-1.3.5/lib:/opt/fsw4sun/net-snmp-5.1.2/lib:/opt/fsw4sun/sasl-2.1.19/lib:/opt/fsw4sun/openldap-2.2.17/lib:/opt/fsw4sun/samba-3.0.9/lib:/opt/fsw4sun/openslp-1.0.11/lib:/opt/fsw4sun/cups-1.1.23/lib:/usr/ccs/lib:/usr/openwin/lib:/usr/X11/lib:/usr/dt/lib:/usr/lib -i /opt/fsw4sun/lib/libiconv.so /opt/fsw4sun/lib/libintl.so /opt/fsw4sun/freetype-2.1.7/lib/libfreetype.so.6 /opt/fsw4sun/fontconfig-2.2.0/lib/libfontconfig.so.1 -KPIC -mt -D_REENTRANT -DLIBXML_THREAD_ALLOC_ENABLED -DSOLARIS -DSOLARIS10 -DUSE_SOLARIS -DQT_QLOCALE_NEEDS_VOLATILE -DQT_THREAD_SUPPORT -DKSSL_HAVE_SSL=1 /usr/lib/libCrun.so.1 /usr/lib/libCstd.so.1 -xldscope=symbolic -xlibmil -xF=%none -xthreadvar -z now -z rescan -z absexec -xtarget=pentium4 -xarch=sse2 -xchip=pentium4 -xcache=8/64/4:256/128/8 -xO5 -s -o \$progdir/\$file -mt -I/opt/fsw4sun/OpenEXR-1.1.1/lib kgrantpty.o  -L/opt/fsw4sun/lib -L/opt/kde-3.4.3/lib -L/opt/fsw4sun/freetype-2.1.7/lib -L/opt/fsw4sun/fontconfig-2.2.0/lib -L/opt/fsw4sun/glib-2.6.3/lib -L/opt/fsw4sun/atk-1.9.1/lib -L/opt/fsw4sun/pango-1.8.1/lib -L/opt/fsw4sun/gtk+-2.6.4/lib -L/opt/fsw4sun/libxml2-2.6.19/lib -L/opt/fsw4sun/libxslt-1.1.14/lib -L/opt/fsw4sun/krb-1.3.5/lib -L/opt/fsw4sun/openldap-2.2.17/lib -L/opt/fsw4sun/net-snmp-5.1.2/lib -L/opt/fsw4sun/samba-3.0.9/lib -L/opt/fsw4sun/sasl-2.1.19/lib -L/opt/fsw4sun/cups-1.1.23/lib -L/opt/fsw4sun/ssl/lib -L/opt/qt-3.3.4-32/lib -L/opt/Forte-10.0/SUNWspro/prod/lib -L/usr/dt/lib -L/usr/openwin/lib -L/usr/X11/lib -L/usr/ccs/lib -L/usr/lib -L/opt/fsw4sun/openslp-1.0.11/lib ./.libs/libkdefakes.so -lz -lc -lsunmath -lmopt -lm -ldl -lpthread -lposix4 -lrt -lxnet -lsocket -lresolv -lnsl -R/home/steleman/programming/kde-3.4.3/kdelibs-3.4.3/kdecore/.libs -R/opt/kde-3.4.3/lib -R/opt/fsw4sun/lib:/opt/fsw4sun/ssl/lib:/opt/fsw4sun/glib-2.6.3/lib:/opt/fsw4sun/atk-1.9.1/lib:/opt/fsw4sun/pango-1.8.1/lib:/opt/fsw4sun/gtk+-2.6.4/lib:/opt/fsw4sun/freetype-2.1.7/lib:/opt/fsw4sun/fontconfig-2.2.0/lib:/opt/fsw4sun/libxml2-2.6.19/lib:/opt/fsw4sun/libxslt-1.1.14/lib:/opt/kde-3.4.3/lib:/opt/qt-3.3.4-32/lib:/usr/openwin/lib:/usr/X11/lib:/usr/dt/lib:/usr/ccs/lib:/usr/lib)"

# This environment variable determines our operation mode.
if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then
  # install mode needs the following variable:
  notinst_deplibs=' ./libkdefakes.la'
else
  # When we are sourced in execute mode, $file and $echo are already set.
  if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
    echo="echo"
    file="$0"
    # Make sure echo works.
    if test "X$1" = X--no-reexec; then
      # Discard the --no-reexec flag, and continue.
      shift
    elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
      # Yippee, $echo works!
      :
    else
      # Restart under the correct shell, and then maybe $echo will work.
      exec /bin/bash "$0" --no-reexec ${1+"$@"}
    fi
  fi

  # Find the directory that this script lives in.
  thisdir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  test "x$thisdir" = "x$file" && thisdir=.

  # Follow symbolic links until we get to the real thisdir.
  file=`ls -ld "$file" | /bin/sed -n 's/.*-> //p'`
  while test -n "$file"; do
    destdir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`

    # If there was a directory component, then change thisdir.
    if test "x$destdir" != "x$file"; then
      case "$destdir" in
      [\\/]* | [A-Za-z]:[\\/]*) thisdir="$destdir" ;;
      *) thisdir="$thisdir/$destdir" ;;
      esac
    fi

    file=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
    file=`ls -ld "$thisdir/$file" | /bin/sed -n 's/.*-> //p'`
  done

  # Try to get the absolute directory name.
  absdir=`cd "$thisdir" && pwd`
  test -n "$absdir" && thisdir="$absdir"

  program=lt-'kgrantpty'
  progdir="$thisdir/.libs"

  if test ! -f "$progdir/$program" || \
     { file=`ls -1dt "$progdir/$program" "$progdir/../$program" 2>/dev/null | /bin/sed 1q`; \
       test "X$file" != "X$progdir/$program"; }; then

    file="$$-$program"

    if test ! -d "$progdir"; then
      mkdir "$progdir"
    else
      rm -f "$progdir/$file"
    fi

    # relink executable if necessary
    if test -n "$relink_command"; then
      if relink_command_output=`eval $relink_command 2>&1`; then :
      else
	echo "$relink_command_output" >&2
	rm -f "$progdir/$file"
	exit 1
      fi
    fi

    mv -f "$progdir/$file" "$progdir/$program" 2>/dev/null ||
    { rm -f "$progdir/$program";
      mv -f "$progdir/$file" "$progdir/$program"; }
    rm -f "$progdir/$file"
  fi

  if test -f "$progdir/$program"; then
    # Add our own library path to LD_LIBRARY_PATH
    LD_LIBRARY_PATH="$thisdir/./.libs:$LD_LIBRARY_PATH"

    # Some systems cannot cope with colon-terminated LD_LIBRARY_PATH
    # The second colon is a workaround for a bug in BeOS R4 sed
    LD_LIBRARY_PATH=`$echo "X$LD_LIBRARY_PATH" | $Xsed -e 's/::*$//'`

    export LD_LIBRARY_PATH

    if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
      # Run the actual program with our arguments.

      exec $progdir/$program ${1+"$@"}

      $echo "$0: cannot exec $program ${1+"$@"}"
      exit 1
    fi
  else
    # The program doesn't exist.
    $echo "$0: error: $progdir/$program does not exist" 1>&2
    $echo "This script is just a wrapper for $program." 1>&2
    echo "See the libtool documentation for more information." 1>&2
    exit 1
  fi
fi
