summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--configure.in27
2 files changed, 31 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 225201544..b404849ca 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
120000606
2 - (djm) Added --with-cflags, --with-ldflags and --with-libs options to
3 configure.
4
120000604 520000604
2 - Configure tweaking for new login code on Irix 5.3 6 - Configure tweaking for new login code on Irix 5.3
3 - (andre) login code changes based on djm feedback 7 - (andre) login code changes based on djm feedback
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
120 ;; 120 ;;
121esac 121esac
122 122
123# Allow user to specify flags
124AC_ARG_WITH(cflags,
125 [ --with-cflags Specify additional flags to pass to compiler],
126 [
127 if test "x$withval" != "xno" ; then
128 CFLAGS="$CFLAGS $withval"
129 fi
130 ]
131)
132AC_ARG_WITH(ldflags,
133 [ --with-ldlags Specify additional flags to pass to linker],
134 [
135 if test "x$withval" != "xno" ; then
136 LDFLAGS="$LDFLAGS $withval"
137 fi
138 ]
139)
140AC_ARG_WITH(libs,
141 [ --with-libs Specify additional libraries to link with],
142 [
143 if test "x$withval" != "xno" ; then
144 LIBS="$LIBS $withval"
145 fi
146 ]
147)
148
149
123# Checks for libraries. 150# Checks for libraries.
124AC_CHECK_LIB(z, deflate, ,AC_MSG_ERROR([*** zlib missing - please install first ***])) 151AC_CHECK_LIB(z, deflate, ,AC_MSG_ERROR([*** zlib missing - please install first ***]))
125AC_CHECK_LIB(util, login, AC_DEFINE(HAVE_LIBUTIL_LOGIN) LIBS="$LIBS -lutil") 152AC_CHECK_LIB(util, login, AC_DEFINE(HAVE_LIBUTIL_LOGIN) LIBS="$LIBS -lutil")