Files
znc/znc-config.in
T
psychon 9c4a5a1d90 Some tweaking and cleaning up to configure.in
- Make it clear to autoconf that we are C++ only. It now no longer checks for a
  C compiler which might save time on some boxes.
- Honour CPPFLAGS.
- Remove some unused vars from AC_SUBST.
- Add includes to CXXFLAGS instead of using $INCLUDES for this.
- Use autoconf macros instead of 'echo' for the 'checking for perl' message.
- Fix all warnings from 'autoconf -W all'.
- Use AC_CONFIG_SRCDIR for helping configure find the source dir.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1251 726aef4b-f618-498e-8847-2d620e286838
2008-10-15 18:36:08 +00:00

48 lines
903 B
Bash
Executable File

#!/bin/sh
prefix="@prefix@"
exec_prefix="@exec_prefix@"
datarootdir="@datarootdir@"
bindir="@bindir@"
datadir="@datadir@"
CXXFLAGS="@CPPFLAGS@ @MODFLAGS@ -I@prefix@/include/znc"
# LIBS="@LIBS@"
# No libs needed, ZNC links against $LIBS and thus modules don't need to.
LIBS=""
MODDIR="@MODDIR@"
DATADIR="@DATADIR@"
VERSION="@VERSION@"
if test -z "$1"; then
echo "USAGE: $0 <--cflags|--include|--libs|--moddir|--datadir|--version|--prefix>"
echo " --cflags [$CXXFLAGS]"
echo " --libs [$LIBS]"
echo " --moddir [$MODDIR]"
echo " --datadir [$DATADIR]"
echo " --version [$VERSION]"
echo " --prefix [$prefix]"
exit 1
fi
case $1 in
--cflags)
echo $CXXFLAGS;;
--include)
# Left here for backwards compatibility
;;
--libs)
echo $LIBS;;
--moddir)
echo $MODDIR;;
--datadir)
echo $DATADIR;;
--version)
echo $VERSION;;
--prefix)
echo $prefix;;
esac
exit 0