#! /bin/sh

# kups - temporary wrapper script for .libs/kups
# Generated by ltmain.sh - GNU libtool 1.4a (1.641.2.77 2000/08/01 04:25:15)
#
# The kups 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='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 /tmp/opt/src/kups/kups; LIBRARY_PATH=\"/tmp/opt/lib/qt-2.2.3/lib:/tmp/opt/kde/lib:/tmp/opt/lib\"; export LIBRARY_PATH; COMPILER_PATH=\"\"; export COMPILER_PATH; GCC_EXEC_PREFIX=\"\"; export GCC_EXEC_PREFIX; LD_RUN_PATH=\"\"; export LD_RUN_PATH; LD_LIBRARY_PATH=\"/tmp/opt/lib/qt-2.2.3/lib:/tmp/opt/kde/lib:/tmp/opt/lib:/imec/users/goffioul/.kde/lib\"; export LD_LIBRARY_PATH; PATH=\"/tmp/opt/kde/bin:/tmp/opt/lib/qt-2.2.3/bin:/tmp/opt/bin:/tmp/opt/sbin:.:/imec/users/goffioul/bin:/imec/users/goffioul/bin/LINUXbin:/usr/local/bin:/usr/local/bin/LINUXbin:/usr/bin/X11:/bin:/usr/bin:/imec/software/gnu/bin/LINUXbin:/imec/software/cadence/release99/dfw_v4.4.3/tools/dfII/bin:/imec/software/cadence/release99/dfw_v4.4.3/tools/bin\"; export PATH; g++ -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long -fno-builtin -o \$progdir/\$file kap_bannerselectorpage.o kap_driverconfig.o kap_fileselector.o kups_configdialog.o optionstestpage.o optionsdirspage.o kjobhelper.o kups_optionsdialog.o kups.o kups_testpagegenerator.o kups_testpage.o kups_printerconfigurator.o kpp_memberspage.o kpp_generalpage.o kpp_driverpage.o kpp_backendpage.o kups_printerproperties.o kups_printerinfo.o kups_printerview.o kupsview.o kups_attributesiterator.o kups_ipprequest.o kups_helper.o kclasshelper.o kprinterhelper.o kjob.o kobject.o kprinter.o kups_printeritem.o kups_jobitem.o kups_jobsview.o kups_jobsobserver.o kups_printerobserver.o kprinterobserver.o kups_infos.o kbuffer.o kprinterdescription.o kprintermanager.o kap_wizardpage.o kap_socketutil.o kap_socketselector.o kap_smbutil.o kap_smbselector.o kap_printerselector.o kap_printeroption.o kap_printergroup.o kap_printerconfig.o kap_namelocationselectorpage.o kap_moreinfopage.o kap_modelselectorpage.o kap_manumodeldico.o kap_lpdutil.o kap_lpdprinterselector.o kap_lpdinfopage.o kap_loginselector.o kap_localselector.o kap_lastconfirmationpage.o kap_ipputil.o kap_ippselector.o kap_ippprinterselector.o kap_explaination.o kap_driverselector.o kap_dbcreator.o kap_classselectorpage.o kap_backendselector.o kaddprinterwizard.o kap_driverselectorpage.o kups_printerpropview.o kap_driverdetectpage.o kinstancemanager.o kprinterinstance.o kups_printerinstances.o main.o optionstestbase.o optionsdirsbase.o optionsserver.o optionstimer.o kups_printerpropview.moc.o kups_helper.moc.o kups_configdialog.moc.o kap_driverselector.moc.o optionstestpage.moc.o kaddprinterwizard.moc.o kpp_backendpage.moc.o kap_classselectorpage.moc.o kap_dbcreator.moc.o kups_printerinfo.moc.o kpp_memberspage.moc.o kpp_driverpage.moc.o kap_namelocationselectorpage.moc.o kap_lastconfirmationpage.moc.o kap_printeroption.moc.o optionsdirspage.moc.o kap_fileselector.moc.o kap_driverdetectpage.moc.o kups_printerview.moc.o kups_infos.moc.o kups.moc.o kap_backendselector.moc.o kap_socketselector.moc.o kjob.moc.o kap_explaination.moc.o kap_localselector.moc.o kap_wizardpage.moc.o kap_modelselectorpage.moc.o kups_jobsview.moc.o kups_printerinstances.moc.o kprinter.moc.o kap_printerconfig.moc.o kap_loginselector.moc.o kprinterobserver.moc.o kap_driverconfig.moc.o kupsview.moc.o kap_smbselector.moc.o kups_optionsdialog.moc.o kups_meta_unload.o  -L/usr/X11R6/lib -L/tmp/opt/lib/qt-2.2.3/lib -L/tmp/opt/kde/lib -L/tmp/opt/lib -L/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66 -L/usr/i386-redhat-linux/lib ../kupsdconf/.libs/libkupsdconf.so /tmp/opt/lib/libqtcups.so -lcups /tmp/opt/kde/lib/libkfile.so /tmp/opt/kde/lib/libksycoca.so /tmp/opt/kde/lib/libkio.so /tmp/opt/kde/lib/libkdesu.so -lutil /tmp/opt/kde/lib/libkdeui.so /tmp/opt/kde/lib/libkdecore.so -ldl /tmp/opt/kde/lib/libDCOP.so -lstdc++ -lc -lgcc -lqt -lpng -lz -lm /usr/lib/libjpeg.so -lXext -lX11 -lSM -lICE -Wl,--rpath -Wl,/tmp/opt/src/kups/kupsdconf/.libs -Wl,--rpath -Wl,/tmp/opt/lib -Wl,--rpath -Wl,/tmp/opt/kde/lib -Wl,--rpath -Wl,/tmp/opt/kde/lib -Wl,--rpath -Wl,/tmp/opt/lib -Wl,--rpath -Wl,/tmp/opt/lib/qt-2.2.3/lib -Wl,--rpath -Wl,/usr/X11R6/lib"

# This environment variable determines our operation mode.
if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then
  # install mode needs the following variable:
  uninst_deplibs=' ../kupsdconf/libkupsdconf.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/sh "$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" | 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" | sed -n 's/.*-> //p'`
  done

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

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

  if test ! -f "$progdir/$program" || \
     { file=`ls -1dt "$progdir/$program" "$progdir/../$program" 2>/dev/null | 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 (eval $relink_command); then :
      else
	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
    if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
      # Run the actual program with our arguments.

      # Export the path to the program.
      PATH="$progdir:$PATH"
      export PATH

      exec $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
