From e37bfc19f7263b838896ae403e55aa703a06b69a Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Mon, 5 Jun 2000 09:37:43 +1000 Subject: - (djm) Added --with-cflags, --with-ldflags and --with-libs options to configure. --- configure.in | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 8056ada05..c242246d3 100644 --- a/configure.in +++ b/configure.in @@ -120,6 +120,33 @@ case "$host" in ;; esac +# Allow user to specify flags +AC_ARG_WITH(cflags, + [ --with-cflags Specify additional flags to pass to compiler], + [ + if test "x$withval" != "xno" ; then + CFLAGS="$CFLAGS $withval" + fi + ] +) +AC_ARG_WITH(ldflags, + [ --with-ldlags Specify additional flags to pass to linker], + [ + if test "x$withval" != "xno" ; then + LDFLAGS="$LDFLAGS $withval" + fi + ] +) +AC_ARG_WITH(libs, + [ --with-libs Specify additional libraries to link with], + [ + if test "x$withval" != "xno" ; then + LIBS="$LIBS $withval" + fi + ] +) + + # Checks for libraries. AC_CHECK_LIB(z, deflate, ,AC_MSG_ERROR([*** zlib missing - please install first ***])) AC_CHECK_LIB(util, login, AC_DEFINE(HAVE_LIBUTIL_LOGIN) LIBS="$LIBS -lutil") -- cgit v1.2.3