diff options
author | Damien Miller <djm@mindrot.org> | 2000-06-05 09:37:43 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-06-05 09:37:43 +1000 |
commit | e37bfc19f7263b838896ae403e55aa703a06b69a (patch) | |
tree | 561c873c0c523fc40471e5ee29377829070983be | |
parent | 61e67250dc0d6a3406c4b2cd6cb787663d194481 (diff) |
- (djm) Added --with-cflags, --with-ldflags and --with-libs options to
configure.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | configure.in | 27 |
2 files changed, 31 insertions, 0 deletions
@@ -1,3 +1,7 @@ +20000606 + - (djm) Added --with-cflags, --with-ldflags and --with-libs options to + configure. + 20000604 - Configure tweaking for new login code on Irix 5.3 - (andre) login code changes based on djm feedback diff --git a/configure.in b/configure.in index 8056ada0..c242246d 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") |