#! /bin/bash
# utils/modxslt-config.pre.  Generated from modxslt-config.pre.in by configure.

#   mod-xslt -- Copyright (C) 2002, 2003 
# 		 Carlo Contavalli 
# 		 <ccontavalli at masobit.net>
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#

set -e 

prefix="/usr"
exec_prefix="${prefix}"

_acrt_srcdir=.
_acrt_abs_srcdir=/build/buildd/modxslt-2005072700/utils
_acrt_top_srcdir=..
_acrt_abs_top_srcdir=/build/buildd/modxslt-2005072700

_acrt_builddir=.
_acrt_abs_builddir=/build/buildd/modxslt-2005072700/utils
_acrt_top_builddir=..
_acrt_abs_top_builddir=/build/buildd/modxslt-2005072700

# Do NOT remove the following comment!
#%{AUTOCONF_VARS}%#
_acrt_SHELL='|#_!!_#|/bin/sh'
_acrt_PATH_SEPARATOR='|#_!!_#|:'
_acrt_PACKAGE_NAME='|#_!!_#|mod-xslt'
_acrt_PACKAGE_TARNAME='|#_!!_#|mod-xslt'
_acrt_PACKAGE_VERSION='|#_!!_#|1.3.9'
_acrt_PACKAGE_STRING='|#_!!_#|mod-xslt 1.3.9'
_acrt_PACKAGE_BUGREPORT='|#_!!_#|ccontavalli at masobit.net'
_acrt_exec_prefix='|#_!!_#|${prefix}'
_acrt_prefix='|#_!!_#|/usr'
_acrt_program_transform_name='|#_!!_#|s\'
_acrt_bindir='|#_!!_#|${exec_prefix}/bin'
_acrt_sbindir='|#_!!_#|${exec_prefix}/sbin'
_acrt_libexecdir='|#_!!_#|${exec_prefix}/libexec'
_acrt_datarootdir='|#_!!_#|${prefix}/share'
_acrt_datadir='|#_!!_#|${datarootdir}'
_acrt_sysconfdir='|#_!!_#|${prefix}/etc'
_acrt_sharedstatedir='|#_!!_#|${prefix}/com'
_acrt_localstatedir='|#_!!_#|${prefix}/var'
_acrt_includedir='|#_!!_#|${prefix}/include'
_acrt_oldincludedir='|#_!!_#|/usr/include'
_acrt_docdir='|#_!!_#|${datarootdir}/doc/${PACKAGE_TARNAME}'
_acrt_infodir='|#_!!_#|${datarootdir}/info'
_acrt_htmldir='|#_!!_#|${docdir}'
_acrt_dvidir='|#_!!_#|${docdir}'
_acrt_pdfdir='|#_!!_#|${docdir}'
_acrt_psdir='|#_!!_#|${docdir}'
_acrt_libdir='|#_!!_#|${exec_prefix}/lib'
_acrt_localedir='|#_!!_#|${datarootdir}/locale'
_acrt_mandir='|#_!!_#|${datarootdir}/man'
_acrt_DEFS='|#_!!_#|-DHAVE_CONFIG_H'
_acrt_ECHO_C='|#_!!_#|'
_acrt_ECHO_N='|#_!!_#|-n'
_acrt_ECHO_T='|#_!!_#|'
_acrt_LIBS='|#_!!_#| -L/usr/lib -lxslt -lxml2 -lexslt -L/usr/lib -lpcre -lpthread'
_acrt_build_alias='|#_!!_#|'
_acrt_host_alias='|#_!!_#|'
_acrt_target_alias='|#_!!_#|'
_acrt_CC='|#_!!_#|gcc'
_acrt_CFLAGS='|#_!!_#|-g -O2 -D_REENTRANT'
_acrt_LDFLAGS='|#_!!_#|'
_acrt_CPPFLAGS='|#_!!_#|-I/usr/include/libxml2  -I/usr/include/libxml2 '
_acrt_ac_ct_CC='|#_!!_#|gcc'
_acrt_EXEEXT='|#_!!_#|'
_acrt_OBJEXT='|#_!!_#|o'
_acrt_INSTALL_PROGRAM='|#_!!_#|${INSTALL}'
_acrt_INSTALL_SCRIPT='|#_!!_#|${INSTALL}'
_acrt_INSTALL_DATA='|#_!!_#|${INSTALL} -m 644'
_acrt_SET_MAKE='|#_!!_#|'
_acrt_build='|#_!!_#|mips-unknown-linux-gnu'
_acrt_build_cpu='|#_!!_#|mips'
_acrt_build_vendor='|#_!!_#|unknown'
_acrt_build_os='|#_!!_#|linux-gnu'
_acrt_host='|#_!!_#|mips-unknown-linux-gnu'
_acrt_host_cpu='|#_!!_#|mips'
_acrt_host_vendor='|#_!!_#|unknown'
_acrt_host_os='|#_!!_#|linux-gnu'
_acrt_GREP='|#_!!_#|/bin/grep'
_acrt_EGREP='|#_!!_#|/bin/grep -E'
_acrt_LN_S='|#_!!_#|ln -s'
_acrt_ECHO='|#_!!_#|echo'
_acrt_AR='|#_!!_#|ar'
_acrt_RANLIB='|#_!!_#|ranlib'
_acrt_STRIP='|#_!!_#|strip'
_acrt_CPP='|#_!!_#|gcc -E'
_acrt_CXX='|#_!!_#|g++'
_acrt_CXXFLAGS='|#_!!_#|-g -O2'
_acrt_ac_ct_CXX='|#_!!_#|g++'
_acrt_CXXCPP='|#_!!_#|g++ -E'
_acrt_F77='|#_!!_#|'
_acrt_FFLAGS='|#_!!_#|'
_acrt_ac_ct_F77='|#_!!_#|'
_acrt_LIBTOOL='|#_!!_#|$(SHELL) $(top_builddir)/libtool'
_acrt_LIBOBJS='|#_!!_#|'
_acrt_EN_XSLT_DEBUG='|#_!!_#|disabled'
_acrt_EN_DEBUG='|#_!!_#|disabled'
_acrt_EN_THREAD='|#_!!_#|enabled'
_acrt_EN_EXTENSIONS='|#_!!_#|enabled'
_acrt_EN_XINCLUDE='|#_!!_#|enabled'
_acrt_EN_LIBXSLT_HACK='|#_!!_#|disabled'
_acrt_EN_FALLBACK_WRAPAROUND='|#_!!_#|disabled'
_acrt_XML2='|#_!!_#|/usr/bin/xml2-config'
_acrt_XSLT='|#_!!_#|/usr/bin/xslt-config'
_acrt_PCRE='|#_!!_#|/usr/bin/pcre-config'
_acrt_APXS='|#_!!_#|/usr/bin/apxs'
_acrt_APXS_INSTALLDIR='|#_!!_#|/usr/lib/apache/1.3'
_acrt_APRC='|#_!!_#|'
_acrt_APUC='|#_!!_#|'
_acrt_SAPI_CC='|#_!!_#|gcc'
_acrt_SAPI_CFLAGS='|#_!!_#|-DLINUX=22 -DEAPI -DTARGET="apache" -DHAVE_SET_DUMPABLE -DDB_DBM_HSEARCH=1 -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -O1  -g -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC -DSHARED_MODULE'
_acrt_SAPI_CPPFLAGS='|#_!!_#|-I/usr/include/libxml2  -I/usr/include/libxml2  -I/usr/include/apache-1.3'
_acrt_SAPI_LD='|#_!!_#|gcc'
_acrt_SAPI_LDFLAGS='|#_!!_#|-shared'
_acrt_SAPI_LIBS='|#_!!_#|-lc -lm -lpthread -lcrypt -ldb -ldb -lexpat'
_acrt_LD='|#_!!_#|/usr/bin/ld'
_acrt_DEFAULT_TARGET='|#_!!_#|all'
_acrt_SAPI='|#_!!_#|apache1'
_acrt_LIB_VERSION='|#_!!_#|0'
_acrt_LIB_CURRENT='|#_!!_#|0'
_acrt_LIB_REVISION='|#_!!_#|0'
_acrt_LIB_AGE='|#_!!_#|0'
_acrt_LTLIBOBJS='|#_!!_#|'
#%{AUTOCONF_VARS}%#
#%{AUTOCONF_VARS}%#

package_name="modxslt"
_rt_libs="-L${exec_prefix}/lib -l${package_name}0"
_rt_libtool_libs="${exec_prefix}/lib/lib${package_name}0.la"
_rt_includes="-I${prefix}/include"
_rt_cppflags="-I/usr/include/libxml2  -I/usr/include/libxml2 "
_rt_cflags="-g -O2 -D_REENTRANT"

usage="\
Usage: ${package_name}-config [OPTIONS]
Available OPTIONS:
  --prefix	 lib${package_name} install prefix (as specified to configure) 
  --exec-prefix  lib${package_name} install exec_prefix (as specified to configure)

  --libs	 parameters for ld to link against lib${package_name}
  --libtool-libs parameters for libtool to link against lib${package_name}
  --includes	 parameters for cc to use lib${package_name} headers

  --cppflags	 flags to pass over to the c preprocessor to use lib${package_name}
  --cflags 	 flags to pass over cc to correctly compile using lib${package_name}

  --list	 lists all variables known to ${package_name}-config
  --query=[VAR]	 shows the value of the variable VAR. Shell variables 
                 are expanded 
  --show=[VAR]	 shows the value of the variable VAR. Shell variables 
  		 are _not_ expanded

  --version	 shows lib${package_name} version

  If more than one option is specified on the command line, the name
of the parameter being printed is prepended to its output. 
  Exit status:
        1 - No arguments - help screen was displayed
	2 - An argument which does not need any additional argument was
	    encountered with an argument (like --prefix=fuffa)
	3 - An argument which needs an additional argument was encountered
	    without it (like --query --prefix)
	4 - An unknown argument was specified
  Any other exit value should be interpreted accordingly to the shell
being used and to the command that failed."

  # Check if at least one parameter
  # was specified
if test $# -eq 0; then
  echo "${usage}"
  exit 1
fi

if test "$#" -gt 1; then
  _rt_output_name="yes"
fi

while test $# -gt 0; do
   # Get any optional argument passed over
   # to the parameter
  case "$1" in
    -*=*)
      optarg=`echo "$1"|sed 's/[a-zA-Z0-9_-]*=//'`
     ;;

    *)
      optarg=""
     ;;
  esac

    # Output parameter name if necessary
  if test "x$_rt_output_name" = "xyes"; then
    echo "$1:"
  fi

    # Output parameter value 
  case "$1" in
    --prefix)
      echo "$prefix"
     ;;
    
    --exec-prefix)
      echo "$exec_prefix"
     ;;

    --libs)
      echo "$_rt_libs"
     ;;

    --libtool-libs)
      echo "$_rt_libtool_libs"
     ;;
    
    --includes)
      echo "$_rt_includes"
     ;;

    --cppflags)
      echo "$_rt_cppflags"
     ;;
    
    --cflags)
      echo "$_rt_cflags"
     ;;
    
    --version)
      echo "$_acrt_PACKAGE_VERSION"
     ;;

    --list)
      set|grep '^_acrt_'|sed -e 's/_acrt_//'
     ;;

    --query*)
      if test "x$optarg" = "x"; then
        echo "--query=[VAR] - missing VAR" 1>&2
	echo "${usage}"
	exit 3
      fi
      eval echo `eval echo \\$_acrt_$optarg`
      optarg=""
     ;;

    --show*)
      if test "x$optarg" = "x"; then
        echo "--show=[VAR] - missing VAR" 1>&2
	echo "${usage}"
	exit 3
      fi
      eval echo \$_acrt_$optarg
      optarg=""
     ;;

    *)
     echo "$1 - unknown parameter" 1>&2
     echo "${usage}"
     exit 4
  esac

    # Check if an useless optional
    # parameter was specified
  if test "x$optarg" != "x"; then
    echo "$1 - does not require any parameter" 1>&2
    echo "${usage}"
    exit 2
  fi

    # Go on to next parameter
  shift
done
