diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | configure.in | 27 |
2 files changed, 31 insertions, 0 deletions
@@ -1,3 +1,7 @@ | |||
1 | 20000606 | ||
2 | - (djm) Added --with-cflags, --with-ldflags and --with-libs options to | ||
3 | configure. | ||
4 | |||
1 | 20000604 | 5 | 20000604 |
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 | ;; |
121 | esac | 121 | esac |
122 | 122 | ||
123 | # Allow user to specify flags | ||
124 | AC_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 | ) | ||
132 | AC_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 | ) | ||
140 | AC_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. |
124 | AC_CHECK_LIB(z, deflate, ,AC_MSG_ERROR([*** zlib missing - please install first ***])) | 151 | AC_CHECK_LIB(z, deflate, ,AC_MSG_ERROR([*** zlib missing - please install first ***])) |
125 | AC_CHECK_LIB(util, login, AC_DEFINE(HAVE_LIBUTIL_LOGIN) LIBS="$LIBS -lutil") | 152 | AC_CHECK_LIB(util, login, AC_DEFINE(HAVE_LIBUTIL_LOGIN) LIBS="$LIBS -lutil") |